/* admin_web/static/admin_web/css/about_styles.css */

/* --- 0. RESET & SCROLL GLOBAL --- */
html, body {
    /* On retire le scroll-snap et on remet le comportement par défaut */
    scroll-snap-type: none !important;
    height: auto !important;
    overflow-y: auto !important;
}

/* --- 1. ARRIÈRE-PLAN VIDÉO & WRAPPER --- */
.about-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Le wrapper suit le contenu */
    height: auto; 
    overflow: visible; 
}

/* Vidéo toujours fixe en fond */
.about-background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.about-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

/* --- 2. CONTENEUR --- */
.about-scroll-container {
    position: relative;
    z-index: 10;
    height: auto; /* Hauteur automatique */
    overflow: visible;
}

/* --- 3. SECTIONS (Anciennement Slides) --- */
.about-slide {
    position: relative;
    width: 100%;
    
    /* On change la hauteur fixe en hauteur minimale */
    min-height: 90vh; 
    height: auto; /* S'agrandit si le texte est long */
    
    /* Plus de snap align */
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Marges généreuses pour aérer */
    padding: 120px 5%;
    box-sizing: border-box;
}

/* --- 4. ANIMATIONS & ELEMENTS VISUELS (Inchangés) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-element {
    opacity: 0; 
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.hero-title-block {
    text-align: center;
    margin-bottom: 40px;
    z-index: 11;
    max-width: 900px;
}

.hero-title-block h1 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white-color);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 0;
}
.highlight-yellow { color: var(--primary-color); }

/* Glass Panel */
.glass-panel {
    position: relative;
    z-index: 11;
    background: linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 20px 10px rgba(0,0,0,0.1);
    color: var(--white-color);
}

.glass-panel h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.glass-panel p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* Grille Valeurs */
.values-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.value-card {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.value-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 20px;
    color: var(--white-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.value-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Fondateur */
.founder-quote-container {
    text-align: center;
    max-width: 800px;
}

.founder-quote {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 300;
    font-style: italic;
    color: var(--white-color);
    margin-bottom: 30px;
    position: relative;
}

.founder-quote::before {
    content: "“";
    font-family: serif;
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.founder-signature {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- 5. NETTOYAGE SLIDE JAUNE (Supprimée du HTML, mais on garde propre au cas où) --- */
.about-slide.slide-yellow {
    display: none; /* On cache si jamais elle traîne */
}

/* Responsive */
@media (max-width: 991px) {
    .about-slide {
        padding-top: 100px;
        min-height: auto; /* Laisse le contenu décider */
    }
    .values-wrapper {
        flex-direction: column;
    }
}