/* ==========================================================================
   1. VARIABLES ET RESET
   ========================================================================== */
:root {
    --navy: #000b29;
    --gold: #D4AF37;
    --light-gold: #f0c455;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --text-dark: #1a1a1a;
    --text-gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. NAVIGATION (Barre fixe en haut)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(0, 11, 41, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

/* Trait doré sous le lien actif */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

/* ==========================================================================
   3. HERO SECTION (Logo central & Slogan 1 ligne)
   ========================================================================== */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 11, 41, 0.65), rgba(0, 11, 41, 0.65)), 
                url('assets/fond-amphi.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.hero-content h1 {
    font-size: clamp(1.5rem, 4.2vw, 2.8rem); /* Taille fluide pour rester sur une ligne */
    margin-bottom: 10px;
    line-height: 1.1;
    white-space: nowrap; /* Empêche le saut de ligne sur desktop */
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-main {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-main:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}



/* --- HERO LOGO --- */
.hero-logo {
    width: 300px; /* Taille augmentée (était probablement à 150-180px) */
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* --- HERO BUTTONS --- */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espace entre les deux boutons */
    margin-top: 30px;
    flex-wrap: wrap; /* Pour que les boutons passent l'un sous l'autre sur petit mobile */
}

/* Largeur identique forcée pour les boutons de la bannière */
.hero-btns .btn-main {
    min-width: 250px; /* Ajuste cette valeur selon ton goût */
    text-align: center;
    margin: 0; /* On retire les marges automatiques pour gérer via le gap */
}

/* Optionnel : un style un peu différent pour le bouton "secondaire" si tu veux
   mais tu as demandé le même bouton pour l'esthétique, donc le code ci-dessus suffit */



/* ==========================================================================
   4. SECTIONS COMMUNES ET CONFERENCES
   ========================================================================== */
.section-container {
    padding: 30px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-light { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto;
}

.events-grid {
    display: flex;
    flex-wrap: wrap; /* Permet aux cartes de passer à la ligne */
    justify-content: center; /* CENTRE les cartes, même celle qui est seule sur sa ligne */
    gap: 40px;
    width: 100%;
    padding: 20px 0;
}

.event-card {
    background: white;
    border-radius: 12px;
    /* On définit une base à 450px, mais elle peut rétrécir si l'écran est petit */
    flex: 0 1 450px; 
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: 0.3s;
    /* Pour s'assurer que sur mobile ça ne dépasse pas */
    width: 100%;
}

.event-card:hover { transform: translateY(-10px); }

.event-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.date-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--navy);
    padding: 6px 14px;
    font-weight: bold;
    border-radius: 4px;
    width: auto !important;
    min-width: 60px;
}

.event-info { padding: 25px; }

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 1px;
}

.event-info h3 { margin: 10px 0; font-size: 1.6rem; color: var(--navy); }

.event-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 1.0rem;
    color: var(--text-gray);
    font-weight: 800;
}

/* ==========================================================================
   5. EQUIPE (Grille, Cartes & Emails)
   ========================================================================== */
.page-header {
    background: var(--navy);
    color: white;
    padding: 140px 20px 70px;
    text-align: center;
}

.header-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 11, 41, 0.15);
    border-color: var(--gold);
}

.member-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.member-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.team-card:hover .member-img { transform: scale(1.1); }

.member-info { padding: 25px 20px; }

.role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 5px;
}

.member-info h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 15px; }

.member-email {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-gray);
    border: 1px solid #eee;
    padding: 6px 12px;
    border-radius: 50px;
    transition: 0.3s;
    white-space: nowrap; /* Indispensable : pas de saut de ligne */
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-email:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* ==========================================================================
   6. ARCHIVES (Miniatures Vidéos - Fix Erreur 153)
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-thumb {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 11, 41, 0.8);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
}

.video-card:hover .play-button {
    background: var(--gold);
    color: var(--navy);
    transform: scale(1.1);
}

.video-info { padding: 20px; text-align: center; }

/* ==========================================================================
   7. FOOTER ET ANIMATIONS
   ========================================================================== */
footer {
    background: var(--navy);
    color: white;
    padding: 60px 8% 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { 
        white-space: normal; /* On autorise le saut de ligne sur mobile */
        font-size: 2.2rem; 
    }
    .hero-logo { width: 110px; }
    .team-grid, .events-grid, .video-grid { grid-template-columns: 1fr; }
}


.footer-contact-link { 
    font-size: 1.1rem; 
    color: rgba(255, 255, 255, 0.9); 
    border-bottom: 1px solid var(--gold); 
    padding-bottom: 2px; 
    transition: 0.3s; 
}

.footer-contact-link:hover { 
    color: var(--gold); 
    border-bottom-color: white; 
}



/* --- PARTENAIRES --- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Centre verticalement les logos */
    gap: 40px;
    padding: 20px;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px; /* Largeur de la zone de chaque logo */
    height: 100px; /* Hauteur de la zone */
}

.partner-logo {
    height: auto;
    width: auto;
    object-fit: contain; /* Garde les proportions sans déformer */
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* --- SECTION À PROPOS FORCÉE --- */
.about-wrapper {
    max-width: 800px;
    margin: 0 auto !important; /* Force le centrage du bloc */
    text-align: center !important; /* Force le centrage du texte */
    padding: 40px 20px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 4rem !important; /* Espace massif entre les paragraphes */
    display: block;
}

/* On retire la marge du dernier pour ne pas décaler le bas de la section */
.about-text p:last-child {
    margin-bottom: 0 !important;
}

/* Mise en valeur du paragraphe central */
.about-statement {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem !important;
    color: var(--navy) !important;
}

.about-statement strong {
    color: var(--gold);
}



/* --- NAVIGATION ANIMÉE --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative; /* Important pour le positionnement de la ligne */
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* La ligne sous le texte */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease; /* C'est ici que l'effet de mouvement se crée */
}

/* État au survol et quand la section est active */
.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%; /* La ligne s'étend sur toute la largeur */
}




.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}



.footer-legal-link {
    color: inherit; /* Prend la couleur du texte du copyright */
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.7; /* Légèrement plus clair */
    transition: opacity 0.3s;
}

.footer-legal-link:hover {
    opacity: 1;
    color: var(--gold); /* Devient doré au survol pour montrer que c'est cliquable */
}


/* --- RESPONSIVE NAVBAR --- */

/* Cacher le bouton hamburger sur desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: white; /* Ou var(--gold) selon tes goûts */
    border-radius: 2px;
    transition: 0.3s;
}

/* Version Mobile (en dessous de 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Caché à droite */
        height: 100vh;
        width: 70%; /* Prend une partie de l'écran */
        background-color: var(--navy);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0; /* Apparaît au clic */
    }

    /* Animation du bouton Hamburger en "X" au clic */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


/* Style de l'état vide */
.no-events-container {
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
    text-align: center;
    padding: 30px 30px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px dashed #d4af37; /* Bordure dorée pointillée */
    max-width: 700px;
    margin: 0px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.no-events-icon {
    font-size: 3rem;
    margin-bottom: 7px;
    filter: grayscale(1); /* Un peu plus sobre */
    opacity: 0.7;
}

.no-events-container h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.no-events-container p {
    color: #666;
    max-width: 500px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.no-events-actions .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--gold);
    color: var(--navy);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-events-actions .btn-secondary:hover {
    background: var(--gold);
    color: white;
}


.btn-card {
    display: inline-block;
    background-color: var(--navy);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--navy);
}

.btn-card:hover {
    background-color: transparent;
    color: var(--navy);
}