/* ============================================
   CSS DÉDIÉ PAGE AGENCEMENT
   ============================================ */

/* ===== SECTION HERO ===== */
.agencement-hero {
    padding: 140px 60px 60px;
    background: #fff;
}

.agencement-hero-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

.agencement-hero-left {
    display: flex;
    flex-direction: column;
}

.agencement-hero-left h1 {
    font-size: 48px;
    font-weight: 400;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.agencement-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agencement-hero-right {
    padding-top: 10px;
}

.agencement-hero-right p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px 0;
}

.agencement-hero-right p:last-child {
    margin-bottom: 0;
}

.agencement-hero-right strong {
    font-weight: 600;
    color: #000;
}

/* ===== SECTION VIDÉO BANNIÈRE ===== */
.agencement-video-section {
    width: 100%;
    background: #000;
}

.agencement-video-container {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.agencement-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== SECTION FOND GRIS ===== */
.agencement-gray-section {
    background: #f5f5f5;
    padding: 40px 40px;
}

.agencement-gray-content {
    max-width: 1600px;
    margin: 0 auto;
}

.agencement-gray-content p {
    font-size: 22px;
    font-weight: 500;
    color: #5d4037;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ===== BANDEAU BLANC ===== */
.agencement-white-banner {
    background: #fff;
    padding: 30px 30px;
}

.agencement-white-content {
    max-width: 1600px;
    margin: 0 auto;
}

.agencement-white-content p {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-align: center;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.5;
}

/* ===== SECTION INTERACTIVE ===== */
.agencement-interactive-section {
    background: #f5f5f5;
    padding: 80px 60px;
}

.agencement-interactive-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 620px 1fr;
    gap: 50px;
    align-items: start;
}

.agencement-interactive-left {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 480px;
    justify-self: start;
}

/* Image cliquable - cachée sur desktop, visible sur mobile */
.agencement-interactive-image {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 15px;
}

.agencement-interactive-image .agencement-switch-img-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
    cursor: pointer;
}

.agencement-interactive-image .agencement-switch-img-mobile.active {
    opacity: 1;
}

.agencement-text-wrapper {
    background: #fff;
    padding: 50px 45px;
    width: 100%;
    min-width: 550px;
    position: relative;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Encoche avec boutons à droite du bloc blanc */
.agencement-buttons-wrapper {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    background: #f5f5f5;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    border-radius: 14px;
    z-index: 3;
}

.agencement-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #5d4037;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.agencement-btn:hover {
    background: rgba(93, 64, 55, 0.3);
    transform: scale(1.1);
}

.agencement-btn.active {
    background: #5d4037;
}

.agencement-text-container {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.agencement-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.agencement-text-item.active {
    opacity: 1;
    visibility: visible;
}

.agencement-text-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 18px 0;
}

.agencement-text-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.agencement-interactive-right {
    position: relative;
    overflow: hidden;
    height: 480px;
    width: 100%;
    justify-self: end;
}

.agencement-switch-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.agencement-switch-img.active {
    opacity: 1;
}

/* ===== SLIDER COVERFLOW - OVERRIDE TAILLES FIXES ===== */
.coverflow-slider-section {
    background: #f5f5f5;
}

.coverflow-slide {
    width: 450px;
    max-width: 450px;
}

.coverflow-slide img {
    width: 450px;
    height: 280px;
    object-fit: cover;
}

/* Image centrale plus grande */
.coverflow-slide.active {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Images côtés - même taille */
.coverflow-slide.prev {
    transform: translate(-150%, -50%) scale(1);
}

.coverflow-slide.next {
    transform: translate(50%, -50%) scale(1);
}

/* ===== SECTION STRUCTURE INCUS ===== */
.agencement-structure-section {
    background: #fff;
    padding: 80px 60px;
}

.agencement-structure-content {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.agencement-structure-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.agencement-structure-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.agencement-structure-small img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.agencement-structure-big {
    position: relative;
}

.agencement-structure-big img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.structure-arrow-next {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    background: transparent;
    border: 1px solid #5d4037;
    color: #5d4037;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.structure-arrow-next:hover {
    background: #5d4037;
    color: #fff;
}

.structure-arrow-next svg {
    stroke: currentColor;
}

.agencement-structure-right {
    padding-top: 0;
    padding-left: 0;
}

.agencement-structure-right h2 {
    font-size: 32px;
    font-weight: 400;
    color: #000;
    margin: 0 0 5px 0;
    margin-left: -20px;
}

.agencement-structure-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 25px;
    margin-left: -20px;
}

.agencement-structure-right p {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    margin: 0 0 22px 0;
}

.agencement-structure-right p:last-child {
    margin-bottom: 0;
}

.agencement-structure-right strong {
    font-weight: 600;
    color: #000;
}

/* ===== RESPONSIVE TABLETTE (1024px) ===== */
@media (max-width: 1024px) {
    .agencement-hero {
        padding: 120px 40px 50px;
    }
    
    .agencement-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .agencement-hero-left h1 {
        font-size: 40px;
    }
    
    .agencement-gray-section {
        padding: 25px 40px;
    }
    
    .agencement-gray-content p {
        font-size: 14px;
    }
    
    .agencement-white-banner {
        padding: 40px 40px;
    }
    
    .agencement-interactive-section {
        padding: 60px 40px;
    }
    
    .agencement-interactive-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .agencement-interactive-left {
        order: 2;
        height: auto;
        min-height: 350px;
    }
    
    .agencement-text-wrapper {
        min-width: unset;
        width: 100%;
    }
    
    .agencement-buttons-wrapper {
        right: 20px;
    }
    
    .agencement-interactive-right {
        order: 1;
        height: 350px;
    }
    
    .agencement-structure-section {
        padding: 60px 40px;
    }
    
    .agencement-structure-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .agencement-structure-right {
        order: -1;
    }
}

/* ===== RESPONSIVE MOBILE (768px) ===== */
@media (max-width: 768px) {
    .agencement-hero {
        padding: 100px 20px 40px;
    }
    
    .agencement-hero-content {
        gap: 25px;
    }
    
    .agencement-hero-left h1 {
        font-size: 32px;
    }
    
    .agencement-hero-left {
        text-align: center;
    }
    
    .agencement-hero-right {
        text-align: center;
    }
    
    .agencement-hero-right p {
        font-size: 14px;
    }
    
    .agencement-video-container {
        max-height: 300px;
    }
    
    .agencement-gray-section {
        padding: 20px 20px;
    }
    
    .agencement-gray-content p {
        font-size: 13px;
    }
    
    .agencement-white-banner {
        padding: 35px 20px;
    }
    
    .agencement-white-content p {
        font-size: 11px;
    }
    
    /* Bloc interactif simplifié sur mobile */
    .agencement-interactive-section {
        padding: 30px 20px;
    }
    
    .agencement-interactive-content {
        display: block;
    }
    
    .agencement-interactive-left {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    /* Afficher l'image au-dessus sur mobile */
    .agencement-interactive-image {
        display: block;
        order: 1;
        margin-bottom: 15px;
        aspect-ratio: 16/10;
        max-height: 200px;
    }
    
    .agencement-interactive-image .agencement-switch-img-mobile {
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Cacher l'image à droite sur mobile */
    .agencement-interactive-right {
        display: none;
    }
    
    .agencement-text-wrapper {
        width: 100%;
        min-width: unset;
        padding: 25px 20px;
        order: 3;
    }
    
    /* Boutons en horizontal entre image et texte */
    .agencement-buttons-wrapper {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 10px 0;
        background: transparent;
        order: 2;
    }
    
    .agencement-btn {
        width: 14px;
        height: 14px;
    }
    
    .agencement-text-container {
        min-height: auto;
        display: block;
    }
    
    .agencement-text-item {
        position: relative;
        top: auto;
        height: auto;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .agencement-text-item.active {
        display: block;
    }
    
    .agencement-text-item h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .agencement-text-item p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Slideshow basique sur mobile - swipe */
    .coverflow-slider-section {
        padding: 40px 0;
    }
    
    .coverflow-slider-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        height: auto;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .coverflow-slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .coverflow-slider-track {
        display: flex;
        gap: 10px;
        padding: 10px 0;
        position: relative;
        height: auto;
    }
    
    .coverflow-slide {
        position: relative !important;
        flex: 0 0 90%;
        width: 90% !important;
        min-width: 90% !important;
        max-width: 90% !important;
        transform: none !important;
        opacity: 1 !important;
        scroll-snap-align: center;
        left: auto !important;
        top: auto !important;
        pointer-events: auto !important;
        cursor: pointer;
    }
    
    .coverflow-slide:last-child {
        flex: 0 0 90%;
        width: 90% !important;
        min-width: 90% !important;
        max-width: 90% !important;
    }
    
    .coverflow-slide img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover;
    }
    
    .coverflow-slide.prev,
    .coverflow-slide.next {
        display: flex !important;
        opacity: 1 !important;
    }
    
    .coverflow-arrow,
    .coverflow-dots {
        display: none !important;
    }
    
    .slide-progress {
        display: none !important;
    }
    
    /* Section structure sur mobile */
    .agencement-structure-section {
        padding: 40px 20px;
    }
    
    .agencement-structure-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .agencement-structure-left {
        max-width: 100%;
    }
    
    .agencement-structure-right {
        order: -1;
    }
    
    .agencement-structure-right h2 {
        font-size: 26px;
        margin-left: 0;
    }
    
    .agencement-structure-subtitle {
        margin-left: 0;
    }
    
    .agencement-structure-right p {
        font-size: 14px;
    }
}
