﻿/* ==========================================================================
       1. Système de Sections Dépliables (Accordéon)
       ========================================================================== */

/* Masque le triangle par défaut du navigateur */
.collapsible-section summary::-webkit-details-marker {
    display: none;
}
.collapsible-section summary {
    list-style: none;
}

/* Conteneur principal de la section */
.collapsible-section {
    margin: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

/* Titre cliquable (Summary) */
.collapsible-title {
    font-size: 1.5em;
    /* S'aligne avec le style visuel de vos titres */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    outline: none;
    color: #ffffff;
    transition: color 0.2s ease;
}

.collapsible-title:hover {
    color: var(--text-hover, #4df0bf);
    /* Légère surbrillance au survol (vert du site, défini dans :root de style.css) */
}

/* Flèche triangulaire personnalisée */
.collapsible-title::before {
    content: "▶";
    display: inline-block;
    margin-right: 12px;
    font-size: 0.7em;
    color: var(--text-hover, #4df0bf);
    /* Couleur d'accentuation (vert du site, défini dans :root de style.css) */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pivotement du triangle lors du déploiement */
.collapsible-section[open]>.collapsible-title::before {
    transform: rotate(90deg);
}

.collapsible-section + .collapsible-section {
    margin-top: 15px; 
}

/* Contenu masqué avec animation d'apparition douce */
/* Animation d'apparition douce et rapide du contenu */
.collapsible-content {
    animation: fadeInSmooth 0.4s ease-out forwards;
    opacity: 0;
}

/* Force le séparateur à conserver son déploiement horizontal dans un flux Flexbox */
.tableau_videos separator, 
.collapsible-content separator {
    display: block !important;
    width: 100% !important;
    align-self: stretch !important;
    flex-shrink: 0 !important;
}

@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateY(-8px); /* Léger mouvement de descente */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandCollapse {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
       2. Galerie d'images Flexbox & Alignement Vertical Centré
       ========================================================================== */
.image-gallery {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
    /* Alignement vertical centré parfait */
    margin: 15px 0;
}

.flex-img-wide {
    flex: auto;
    /* Adapte la largeur selon le ratio réel de l'image */
    min-width: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Évite toute perte ou rognage */
}