/* admin_web/static/admin_web/css/page_avenir_styles.css */

/* --- 0. GLOBAL & HERO FIXES --- */
/* admin_web/static/admin_web/css/page_avenir_styles.css */

/* --- 0. GLOBAL & HERO FIXES --- */

/* 1. Conteneur Principal : Doit grandir avec le contenu */
.hero.roadmap-hero {
    /* On force height: auto pour que le conteneur s'agrandisse si le texte dépasse l'écran */
    min-height: 100vh;
    height: auto !important; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    
    padding-top: 120px; 
    padding-bottom: 80px; /* Plus d'espace en bas sur mobile */
    
    /* IMPORTANT : On enlève le scroll interne pour laisser le body scroller naturellement */
    overflow-y: visible !important; 
    position: relative;
    z-index: 1;
}

/* 2. Vidéo d'arrière-plan : FIXE (Wallpaper effect) */
/* Cela empêche le fond blanc d'apparaître quand la page grandit sur mobile */
.hero.roadmap-hero .hero-background-video {
    position: fixed !important; /* Reste collé à l'écran */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: none !important; /* Annule le centrage CSS global */
    z-index: -2; /* Tout au fond */
}

/* 3. Overlay sombre : FIXE aussi */
.hero.roadmap-hero .hero-video-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Assombrissement léger */
    z-index: -1;
}

/* ... Le reste du fichier (roadmap-content-wrapper, etc.) reste inchangé ... */
.roadmap-content-wrapper {
    width: 90%;
    max-width: 1100px;
    position: relative;
    z-index: 10;
}


.roadmap-hero-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--white-color);

    /* Fond sombre et flou (Glassmorphism) */
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* ▼▼▼ LA TOUCHE JAUNE ▼▼▼ */
    /* Bordure jaune fine */
    

    padding: 30px 20px; /* Un peu plus d'espace vertical */
    border-radius: 16px;
   
    margin-left: auto;
    margin-right: auto;
}
.highlight-yellow {
    color: var(--primary-color);
    font-weight: 900; 
}


/* --- 1. CONTAINER INTERACTIF (GRID DESKTOP) --- */
.roadmap-interactive-container {
    display: grid;
    grid-template-columns: 300px 1fr; /* Menu Gauche | Contenu Droite */
    grid-auto-rows: min-content;
    gap: 0 10px;
    
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
   
   
}

/* --- 2. ITEMS --- */
.mission-item {
    display: contents; /* Essentiel pour le Grid */
}

/* --- HEADER (MENU GAUCHE) --- */
.mission-header {
    grid-column: 1; 
    
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mission-item.active .mission-header {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.mission-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.mission-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 15px;
}

.mission-header-text {
    display: flex;
    flex-direction: column;
}

.mission-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white-color);
}

.mission-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.mobile-toggle-icon {
    display: none; 
}


/* --- BODY (CONTENU DROIT) --- */
.mission-body {
    grid-column: 2; 
    grid-row: 1 / span 3; 
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: stretch;
}

.mission-item.active .mission-body {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 5;
}

.mission-content-card {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white-color);
    width: 100%;
    max-height: 97%;
}

.mission-content-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    margin-top: 0;
}

.mission-content-card p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}


@media (max-width: 991px) {
    
    .roadmap-interactive-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        min-height: auto;
    }

    .mission-item {
        display: block; /* Sortie du Grid */
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    /* Header Mobile */
    .mission-header {
        margin-bottom: 0;
        background-color: transparent; 
        border-radius: 0;
        border-left: none;
        padding: 20px;
        max-height: 90%;
    }
    
    .mission-header:hover {
        transform: none;
    }

    .mission-item.active .mission-header {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-toggle-icon {
        display: block;
        margin-left: auto;
        font-size: 24px;
        color: var(--primary-color);
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .mission-item.active .mobile-toggle-icon {
        transform: rotate(45deg); 
    }

    /* ▼▼▼ MODIFICATION POUR HAUTEUR FIXE UNIFORME ▼▼▼ */
    .mission-body {
        /* Reset Grid */
        grid-column: auto;
        grid-row: auto;
        
        /* Reset visibilité desktop */
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: block;
        
        /* Animation Accordéon sur la HAUTEUR (Height) */
        height: 0; /* Fermé par défaut */
        overflow-y: hidden; /* Cache le contenu quand fermé */
        transition: height 0.4s ease-in-out; /* Animation fluide */
    }

    .mission-item.active .mission-body {
        /* HAUTEUR FIXE : C'est ici qu'on définit la taille uniforme */
        /* 55vh = 55% de la hauteur de l'écran. Vous pouvez mettre 450px si vous préférez. */
        height: 45vh; 
        
        /* Permet de scroller DANS la carte si le texte est très long */
        overflow-y: auto; 
    }
    /* ▲▲▲ FIN MODIFICATION ▲▲▲ */

    .mission-content-card {
        background-color: transparent;
        border: none;
        padding: 20px;
        padding-top: 10px;
        /* On s'assure que le padding n'ajoute pas à la hauteur calculée */
        box-sizing: border-box; 
    }

    .mission-content-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .mission-content-card p {
        font-size: 14px;
    }
}