/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* --- Palette de Couleurs --- */
    /* Fond principal : Bleu Nuit profond (issu du logo) */
    --color-bg: #051121;
    /* Fond secondaire : Pour alterner les sections */
    --color-bg-alt: #0B1E36;
    /* Texte principal : Blanc cassé pour éviter l'éblouissement */
    --color-text: #F0F2F5;
    /* Texte secondaire : Gris bleuté */
    --color-text-muted: #8b9bb4;
    /* Accent Majeur : Or (référence aux étoiles) */
    --color-gold: #D4AF37;
    /* Accent Mineur : Vert (référence à la carte Afrique) */
    --color-accent: #1B4D3E;

    /* --- Typographie --- */
    /* Titres : Élégance diplomatique */
    --font-heading: 'Playfair Display', serif;
    /* Corps : Lisibilité moderne */
    --font-body: 'Manrope', sans-serif;

    /* --- Dimensions & Espacements --- */
    --container-width: 1300px;
    --header-height: 90px;
    --section-padding: 120px;
    --border-radius: 8px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden; /* Évite le scroll horizontal accidentel */
    -webkit-font-smoothing: antialiased; /* Rendu de police net sur Mac */
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   3. TYPOGRAPHIE
   ========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

/* Grand titre du Hero */
.display-title {
    font-size: clamp(3rem, 5.5vw, 5.5rem); /* Responsive scaling */
    margin-bottom: 2rem;
}

/* Titres de section avec soulignement Or */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin-top: 15px;
}

/* Utilitaires de texte */
.text-gold { color: var(--color-gold); }
.text-italic { font-style: italic; }
.text-muted { color: var(--color-text-muted); }

/* =========================================
   4. LAYOUT & GRILLES
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.grid { display: grid; gap: 4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.align-center { align-items: center; }

/* =========================================
   5. NAVIGATION (HEADER)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

/* État du header au scroll (via JS) */
.header.scrolled {
    background: rgba(5, 17, 33, 0.95); /* Fond semi-transparent */
    backdrop-filter: blur(12px);       /* Effet verre flouté */
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px; /* Taille ajustée pour l'élégance */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Ombre pour détacher le logo */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    color: rgba(255,255,255,0.7);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* Bouton Call-to-Action (CTA) */
.btn-cta {
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-cta:hover {
    background-color: var(--color-gold);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); /* Glow doré */
}

/* =========================================
   6. HERO SECTION (NOUVELLE VERSION)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Compensation header fixe */
    padding-bottom: 50px;
}

/* Fond dégradé subtil */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 60% 40%, #1a3457 0%, var(--color-bg) 70%);
    z-index: -1;
}

/* Conteneur Flexbox pour Texte + Logo */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Colonne Texte (Gauche) */
.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-subtitle {
    font-family: var(--font-body);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    display: block;
    font-weight: 600;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 3rem;
    max-width: 550px;
}

.btn-hero {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.btn-hero:hover {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-bg);
}

/* Colonne Visuel (Droite) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Style du grand logo transparent */
.hero-big-logo {
    width: 100%;
    max-width: 550px; /* Assez grand pour l'impact */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); /* Profondeur */
    /* Animation de flottement */
    animation: floatLogo 6s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* =========================================
   7. MANIFESTO / VISION
   ========================================= */
.section-manifesto {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid rgba(255,255,255,0.03);
}

.manifesto-text p:first-child {
    font-size: 1.8rem; /* Mise en exergue */
    line-height: 1.5;
    font-family: var(--font-heading);
    color: #fff;
}

.manifesto-sub {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-top: 2rem;
    color: var(--color-text-muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item h4 { 
    font-size: 3.5rem; 
    color: var(--color-gold); 
    margin-bottom: 0.5rem; 
    font-family: var(--font-heading);
}
.stat-item p { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #fff;
}

.legal-note {
    margin-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    font-style: italic;
}

/* =========================================
   8. LES 5 CERCLES (CARDS)
   ========================================= */
.section-circles {
    padding: var(--section-padding) 0;
}

.section-intro {
    margin-bottom: 5rem;
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.circle-card {
    background: rgba(255,255,255,0.02);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.circle-card:hover {
    transform: translateY(-15px);
    border-color: var(--color-gold);
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.circle-num {
    font-size: 5rem;
    color: rgba(255,255,255,0.03);
    font-family: var(--font-heading);
    position: absolute;
    top: -10px;
    right: 20px;
    transition: color 0.3s ease;
    line-height: 1;
}

.circle-card:hover .circle-num {
    color: rgba(212, 175, 55, 0.1);
}

.circle-icon {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    display: block;
}

.circle-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.circle-card p { font-size: 1rem; color: var(--color-text-muted); line-height: 1.6; }

/* =========================================
   9. ACTUALITÉS (EVENT NANCY)
   ========================================= */
.section-event {
    padding: var(--section-padding) 0;
    background: var(--color-bg); /* Fallback */
    /* Un fond dégradé horizontal pour créer une transition visuelle */
    background: linear-gradient(90deg, var(--color-bg-alt) 50%, var(--color-bg) 50%);
}

.event-wrapper {
    background-color: var(--color-accent);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.event-content {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.2);
}

.event-title { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.event-text { margin-bottom: 1.5rem; opacity: 0.9; font-size: 1.05rem; }

.link-gold {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.link-gold:hover { gap: 15px; color: #fff; }

.event-image {
    position: relative;
    background-color: #000;
    min-height: 500px;
}

/* Placeholder stylisé si l'image manque */
.event-placeholder {
    width: 100%; height: 100%;
    background: #0e2a47;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.1);
    font-size: 5rem;
    font-family: var(--font-heading);
}

/* =========================================
   10. GOUVERNANCE (TEAM)
   ========================================= */
.section-team {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg);
}

.team-intro {
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 500px;
}

.team-visual {
    position: relative;
}

.team-visual::before {
    content: '';
    position: absolute;
    top: 20px; right: -20px;
    width: 100%; height: 100%;
    border: 2px solid var(--color-gold);
    z-index: 0;
    opacity: 0.3;
}

.team-photo {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: grayscale(30%) contrast(110%);
    transition: filter 0.5s ease;
}

.team-photo:hover { filter: grayscale(0%) contrast(100%); }

.photo-caption {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    text-align: right;
    font-style: italic;
}

.team-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.member h4 { font-size: 1.2rem; margin-bottom: 0.3rem; letter-spacing: 0.5px; }
.member span { 
    font-size: 0.9rem; 
    color: var(--color-gold); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.75rem;
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    background-color: #030a14;
}

.footer-title { font-size: 2.5rem; margin-bottom: 1rem; color: #fff; }
.footer-address { margin-bottom: 3rem; color: var(--color-text-muted); }
.footer-cta { margin-bottom: 4rem; }
.footer-legal { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* =========================================
   12. ANIMATIONS (SCROLL REVEAL)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. RESPONSIVE (TABLETTES & MOBILES)
   ========================================= */
@media (max-width: 992px) {
    /* Ajustement Hero : Colonne pour mettre le logo au dessus ou dessous */
    .hero-wrapper {
        flex-direction: column-reverse; /* Logo au dessus du texte sur mobile ? ou dessous. Ici : Texte en bas, Logo en haut */
        text-align: center;
        gap: 3rem;
    }
    
    .hero-visual { justify-content: center; }
    .hero-text { max-width: 100%; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-big-logo { max-width: 350px; } /* Logo plus petit */

    /* Navigation simplifiée */
    .nav-links { display: none; } /* TODO: Ajouter menu burger JS */
    
    /* Grilles */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    /* Event Section */
    .section-event { background: var(--color-bg); } /* Enlève le dégradé split */
    .event-wrapper { grid-template-columns: 1fr; }
    .event-image { min-height: 300px; order: -1; /* Image au dessus */ }
    .event-content { padding: 3rem 2rem; }
    
    /* Stats & Team */
    .stat-grid { grid-template-columns: 1fr; text-align: center; }
    .team-list { grid-template-columns: 1fr; }
    
    .display-title { font-size: 3rem; }
    
    .team-visual::before { display: none; } /* Simplifie le design sur mobile */
}