
.expandable-panels-container {
    /* Hauteur des panneaux */
    --panels-height: 700px;
    
    /* Espacement entre panneaux */
    --panels-gap: 1.75rem;
    
    /* Coins arrondis */
    --border-radius: 0;
    
    /* Vitesse d'animation */
    --animation-speed: 0.6s;
    
    /* Opacité de l'overlay sombre */
    --overlay-opacity: 0.3;
    --overlay-opacity-hover: 0.7;
    
    /* Couleurs */
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --shadow-hover-color: rgba(0, 0, 0, 0.4);
    
    /* Tailles de texte */
    --title-size-min: 2.5rem;
    --title-size-max: 4rem;
    
    /* Padding interne */
    --panel-padding: 30px;
}



/* Container principal */
.expandable-panels-container {
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}

.expandable-panels-container.alignwide {
    max-width: 1200px;
}

.expandable-panels-container.alignfull {
    max-width: none;
    padding: 40px;
}

/* Wrapper des panneaux */
.panels-wrapper {
    display: flex;
    max-width: 75rem;
    gap: 1.75rem;;
    height: 37.5rem;
    min-height: 400px;
    justify-content: center;
    margin: auto;
    padding-bottom: 3.06rem;
}

/* Panneau individuel */
.expandable-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: all .6s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--panel-padding);
    width: 12.5rem;
}

/* Effet hover - expansion */
.expandable-panel:hover,
.expandable-panel:focus {
    flex: 3;
    transform: translateY(-5px);
    max-width: 22.4375rem;
}

/* Overlay sombre */
.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 50, 108, 0.80);
    transition: opacity 0.3s ease;
}

.expandable-panel:hover .panel-overlay,
.expandable-panel:focus .panel-overlay {
    opacity: 0;
}

/* Titre principal */
.panel-title {
    position: relative;
    z-index: 2;
    font-family: "D-DIN Condensed";
    font-size: 2.0625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.3125rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transform-origin: bottom left;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    transition: all .6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.expandable-panel:hover .panel-title,
.expandable-panel:focus .panel-title {
    margin-bottom: 20px;
}

/* Contenu caché */
.panel-hidden-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    transition-delay: 0.1s;
    max-width: 300px;
}

.expandable-panel:hover .panel-hidden-content,
.expandable-panel:focus .panel-hidden-content {
    opacity: 1;
    transform: translateY(0);
}


/* 📱 RESPONSIVE */
@media (max-width: 1162px) {
    .expandable-panel {
        width: 11rem;
    }
}
@media (max-width: 992px) {
    
}

@media (max-width: 576px) {
    .expandable-panels-container {
        padding: 20px 15px;
    }
    
    .expandable-panel {
        height: 250px;
        min-height: 200px;
    }

    
}

/* États focus pour l'accessibilité */
.expandable-panel:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

/* Animation d'entrée */
.expandable-panel {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai pour chaque panneau */
.expandable-panel:nth-child(1) { animation-delay: 0.1s; }
.expandable-panel:nth-child(2) { animation-delay: 0.2s; }
.expandable-panel:nth-child(3) { animation-delay: 0.3s; }
.expandable-panel:nth-child(4) { animation-delay: 0.4s; }
.expandable-panel:nth-child(5) { animation-delay: 0.5s; }




/**
 * CSS Carousel Mobile
 * 
 * 
 */

/* Container des dots - caché par défaut */
.carousel-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 20px;
}

.carousel-dots.visible {
    display: flex;
}

/* Style des dots */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #033254;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.carousel-dot:hover {
    transform: scale(1.2);
    border-color: #0555a0;
}

.carousel-dot.active {
    background: #033254;
    transform: scale(1.3);
}

.carousel-dot:focus {
    outline: 2px solid #0555a0;
    outline-offset: 3px;
}


   /* Mode carousel actif sur mobile */
@media (max-width: 767px) {
    /* Le wrapper devient le conteneur avec overflow hidden */
    .panels-wrapper.carousel-active {
        position: relative;
        width: 100%;
        height: 400px !important;
        overflow: hidden !important;
        display: block !important;
        flex-direction: initial !important;
    }
    
    /* Le track contient tous les panneaux côte à côte */
    .carousel-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: 100%;
        width: 100%;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Chaque panneau prend 100% de la largeur du WRAPPER */
    .carousel-track .expandable-panel {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        animation: none !important;
        opacity: 1 !important;
    }
    
    /* Panneau actif */
    .carousel-track .expandable-panel.active-slide {
        z-index: 2;
    }
    
    .carousel-track .panel-title {
        position: inherit;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Désactiver les effets hover en mode carousel */
    .carousel-track .expandable-panel:hover,
    .carousel-track .expandable-panel:focus {
        flex: 0 0 100% !important;
        transform: none !important;
        max-width: none !important;
    }
    
    /* Overlay toujours visible en mode carousel */
    .carousel-track .expandable-panel .panel-overlay {
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }
    
    .carousel-track .expandable-panel.active-slide .panel-overlay {
        opacity: 0.3;
    }
    
    /* Contenu caché par défaut */
    .carousel-track .expandable-panel .panel-hidden-content {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s ease;
    }
    
    /* Contenu visible sur le slide actif */
    .carousel-track .expandable-panel.active-slide .panel-hidden-content {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Titre toujours visible */
    .carousel-track .expandable-panel .panel-title {
        opacity: 1;
    }
}




/* Animation d'entrée des dots */
.carousel-dots.visible {
    animation: fadeInDots 0.4s ease forwards;
}

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