/* ==============================================
   CHÂTEAU MODULE - FRONT CSS
   ============================================== */

/* ANIMATIONS */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* DETAIL PAGE STYLES */

.chateau-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Back Button */
.chateau-back-btn {
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.chateau-back-btn:hover {
    background-color: #e8e8e8;
}

/* Hero Section - Bloc 1 */
.chateau-hero {
    margin-bottom: 60px;
}

.chateau-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    display: block;
}

.chateau-hero-content h1 {
    font-size: 3em;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.chateau-hero-content {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

.chateau-hero-content p {
    margin: 15px 0;
}

/* Alternating Sections */
.chateau-section {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chateau-section.reverse {
    direction: rtl;
}

.chateau-section.reverse > * {
    direction: ltr;
}

.chateau-section-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chateau-section-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chateau-section-content {
    padding: 0 20px;
}

.chateau-section-content h2 {
    font-size: 2.2em;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.chateau-section-content p {
    font-size: 1.05em;
    color: #666;
    line-height: 1.8;
    margin: 15px 0;
}

/* Decorative Icon */
.chateau-section-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.chateau-section-icon i {
    color: #8B7355;
}

/* LIST PAGE STYLES */

.fa-chateaux-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fa-chateaux-container h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8em;
    color: #1a1a1a;
}

.chateaux-list {
    display: grid;
    gap: 40px;
}

.chateau-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chateau-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.chateau-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.chateau-content {
    padding: 0;
}

.bloc {
    padding: 30px;
}

.bloc:first-child {
    padding-top: 0;
}

.bloc:last-child {
    padding-bottom: 30px;
}

.chateau-image {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    height: 300px;
}

.chateau-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chateau-title {
    font-size: 1.6em;
    color: #1a1a1a;
    margin: 20px 0 15px 0;
    line-height: 1.3;
}

.bloc-1 .chateau-title {
    font-size: 1.8em;
    margin-top: 0;
}

.chateau-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.7;
}

.chateau-description p {
    margin: 10px 0;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
    .chateau-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chateau-section.reverse {
        direction: ltr;
    }

    .chateau-section-content {
        padding: 0;
    }

    .chateau-hero-content h1 {
        font-size: 2.2em;
    }

    .chateau-section-content h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .chateau-detail-container {
        padding: 20px 15px;
    }

    .chateau-hero-content h1 {
        font-size: 1.8em;
    }

    .chateau-section-content h2 {
        font-size: 1.5em;
    }

    .chateau-section-content p {
        font-size: 1em;
    }

    .chateau-section {
        margin-bottom: 60px;
        gap: 30px;
    }

    .chateau-image {
        height: 250px;
    }

    .chateau-title {
        font-size: 1.3em;
    }

    .bloc {
        padding: 20px;
    }

    .chateau-hero-image {
        max-height: 350px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .chateau-detail-container {
        padding: 15px;
    }

    .chateau-hero-content h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .chateau-section-content h2 {
        font-size: 1.3em;
    }

    .chateau-image {
        height: 200px;
        margin-bottom: 15px;
    }

    .chateau-title {
        font-size: 1.2em;
        margin: 15px 0 10px 0;
    }

    .bloc {
        padding: 15px;
    }

    .chateau-section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
}

/* ============================================
   CAROUSEL SWIPER - CHATEAU DETAIL PRODUCTS
   ============================================ */

.products_chateaux {
    width: 100%;
    margin: 40px 0;
}

/* Swiper customization - Chateau Detail only */
.swiper-chateaux {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.swiper-chateaux .swiper-wrapper {
    align-items: stretch;
}

.swiper-chateaux .swiper-slide {
    height: auto;
    display: flex;
}

.swiper-chateaux .item_card_product {
    display: block !important;
    width: 100% !important;
}

/* Hide products not in swiper (show only carousel items) */
.swiper-chateaux ~ .item_card_product {
    display: none !important;
}
