/* ===================================================================
   FEUILLE DE STYLE FINALE - ASSOCIATION TSOUMOU
   Thème : Élégance Violet - Version Complète et Corrigée
   =================================================================== */

/* -------------------- VARIABLES & STYLES DE BASE -------------------- */
:root {
    --c-violet-dark: #240046;
    --c-violet: #240046;
    --c-violet-light: #9d4edd;
    --c-violet-xlight: #e0aaff;
    --c-white: #ffffff;
    --c-light-bg: #f8f7fc;
    --c-dark-text: #333;
    --c-light-text: #666;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Manrope', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--c-dark-text);
    background-color: var(--c-white);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-light { background-color: var(--c-light-bg); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--c-violet-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after { content: ''; position: absolute; width: 60%; height: 4px; background-color: var(--c-violet-light); bottom: -10px; left: 20%; }
.section-header p { font-size: 1.1rem; color: var(--c-light-text); max-width: 650px; margin: 1rem auto 0; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2.2rem; border-radius: 50px; font-weight: 700; text-decoration: none; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary { background-color: var(--c-violet); color: var(--c-white); }
.btn-primary:hover { background-color: var(--c-violet-dark); transform: translateY(-3px); }
.btn.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.1rem; }
.link-arrow { color: var(--c-violet); font-weight: 600; text-decoration: none; }
.link-arrow i { transition: transform 0.3s; }
.link-arrow:hover i { transform: translateX(5px); }

/* -------------------- HEADER -------------------- */
.header { position: fixed; width: 100%; z-index: 100; transition: var(--transition); }
.header.scrolled { background-color: var(--c-violet); box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 5.5rem; }
.logo img { height: 45px; border-radius: 50%; }

/* --- Styles pour un texte de navbar toujours blanc et gras --- */
.logo,
.nav-link,
.nav-toggle {
    color: var(--c-white);
    font-weight: 700; /* 700 est la valeur numérique pour 'bold' */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre portée subtile pour une lisibilité parfaite sur l'image du hero */
    text-decoration: none;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
}

.nav-menu { display: flex; align-items: center; gap: 1rem; }
.nav-list { display: flex; list-style: none; gap: 2.5rem; }
.nav-link { position: relative; padding: 0.2rem 0; }

/* --- Styles de survol et lien actif pour le texte blanc --- */
.nav-link:hover, .nav-link:focus {
    color: var(--c-violet-xlight); /* Survol en violet très clair */
}
.nav-link.active {
    color: var(--c-white); /* Le lien actif reste blanc pur */
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-white);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-toggle { font-size: 1.5rem; cursor: pointer; display: none; }


/* ===================================================================
   STYLE POUR LE BOUTON "ADHÉSION" DANS LA NAVBAR
   =================================================================== */

/* Style du bouton d'appel à l'action dans la navigation */
.btn-nav-cta {
    background: #E6007E; /* Le même rose vibrant */
    color: var(--c-white) !important; /* !important pour garantir la couleur blanche */
    font-weight: 700;
    padding: 0.6rem 1.5rem; /* Padding réduit pour s'intégrer à la navbar */
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(230, 0, 126, 0.3);
    transition: all 0.3s ease;
    text-shadow: none; /* On enlève l'ombre du texte par défaut des nav-links */
    margin-left: 1rem; /* Ajoute un espace avec les autres liens */
}

.btn-nav-cta:hover {
    background: #C3006A; /* Rose plus foncé */
    color: var(--c-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(195, 0, 106, 0.4);
}

/* --- Adaptation pour le menu mobile --- */
@media (max-width: 768px) {
    /* Cache le bouton quand le menu est fermé sur mobile */
    .nav-container > .btn-nav-cta {
        display: none;
    }
    
    /* Affiche le bouton dans le menu vertical quand il est ouvert */
    .nav-menu .btn-nav-cta {
        display: block; /* S'assurer qu'il est visible */
        margin-top: 2rem; /* Espace au-dessus dans le menu vertical */
        margin-left: 0; /* Pas de marge à gauche dans le menu vertical */
        padding: 0.8rem 2rem;
        width: 80%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }
}

/* -------------------- HERO SECTION -------------------- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; background: url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover; color: var(--c-white); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(36, 0, 70, 0.7); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-family: var(--font-heading); font-size: 4rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* -------------------- HISTOIRE (DESIGN COMPACT) -------------------- */
.history-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding: 2rem 0; gap: 2rem; }
.history-grid-container::before { content: ''; position: absolute; top: 45px; left: 10%; right: 10%; height: 3px; background-color: var(--c-violet-xlight); z-index: 0; }
.history-step { text-align: center; position: relative; padding-top: 70px; }
.history-icon { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background-color: var(--c-violet); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: 5px solid var(--c-white); z-index: 1; box-shadow: 0 0 0 4px var(--c-violet); }
.history-year { font-family: var(--font-body); font-size: 1.5rem; font-weight: 700; color: var(--c-violet); margin-bottom: 0.5rem; }
.history-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--c-violet-dark); margin-bottom: 1rem; }
.history-step p { font-size: 0.95rem; color: var(--c-light-text); line-height: 1.6; }

/* -------------------- BUREAU EXÉCUTIF -------------------- */
.bureau-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.bureau-card { background: var(--c-white); border-radius: 10px; padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.bureau-card:hover { transform: translateY(-10px); }
.bureau-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 5px solid var(--c-violet-xlight); }
.bureau-card h3 { font-family: var(--font-heading); margin-bottom: 0.25rem; }
.bureau-card span { color: var(--c-violet); font-weight: 600; display: block; margin-bottom: 1rem; }
.bureau-social { display: flex; justify-content: center; gap: 1rem; }
.bureau-social a { color: var(--c-violet-light); font-size: 1.2rem; }
.bureau-social a:hover { color: var(--c-violet-dark); }

/* -------------------- SECTION MISSION -------------------- */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.mission-card { background: var(--c-white); padding: 2.5rem 2rem; text-align: center; border-radius: 10px; box-shadow: var(--shadow); transition: var(--transition); border-top: 5px solid var(--c-violet); }
.mission-card:hover { transform: translateY(-10px); }
.mission-icon { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--c-violet); }
.mission-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }

/* -------------------- SECTION RÉALISATIONS -------------------- */
.section-realisations { background: var(--c-violet-dark); color: var(--c-white); padding: 6rem 0; }
.section-realisations .section-title, .section-realisations .section-header p { color: var(--c-white); }
.section-realisations .section-title::after { background-color: var(--c-violet-light); }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-size: 4rem; font-weight: 700; line-height: 1; }
.stat-item p { font-size: 1.1rem; font-weight: 500; opacity: 0.8; }

/* -------------------- SECTION ÉVÉNEMENTS -------------------- */
.events-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.event-card { background: var(--c-white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.event-card:hover { transform: translateY(-10px); }
.event-card img { width: 100%; height: 200px; object-fit: cover; }
.event-content { padding: 2rem; }
.event-date { font-weight: 700; color: var(--c-violet); margin-bottom: 0.5rem; font-size: 0.9rem; }
.event-content h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 1rem; }
.event-content p { margin-bottom: 1.5rem; }

/* -------------------- SECTION GALERIE -------------------- */
.gallery-filters { text-align: center; margin-bottom: 3rem; }
.filter-btn { background: none; border: 2px solid var(--c-violet-xlight); padding: 0.6rem 1.8rem; margin: 0.25rem; border-radius: 50px; cursor: pointer; font-weight: 600; transition: var(--transition); color: var(--c-violet); }
.filter-btn:hover, .filter-btn.active { background-color: var(--c-violet); color: var(--c-white); border-color: var(--c-violet); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item::after { content: '\f00e'; /* FontAwesome zoom icon */ font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); color: var(--c-white); font-size: 2rem; opacity: 0; transition: var(--transition); }
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.6); }

/* -------------------- SECTION ADHESION -------------------- */
.section-adhesion { background: var(--c-light-bg); padding: 6rem 0; }
.adhesion-container { background: var(--c-violet-dark); color: var(--c-white); border-radius: 15px; padding: 4rem; text-align: center; }
.adhesion-container h2 { font-size: 2.5rem; font-family: var(--font-heading); }
.adhesion-container p { max-width: 600px; margin: 1.5rem auto 2.5rem; font-size: 1.1rem; opacity: 0.9; }
.adhesion-container .btn-primary { background-color: var(--c-white); color: var(--c-violet-dark); }
.adhesion-container .btn-primary:hover { background-color: var(--c-violet-xlight); }

.section-adhesion .btn {
    background: #E6007E; /* Un rose vibrant et moderne */
    color: var(--c-white);
    font-weight: 700; /* Texte en gras (bold) */
    font-family: var(--font-body); /* Assure la cohérence de la police */
    padding: 1rem 2.5rem; /* Un peu plus de padding pour plus d'impact */
    border-radius: 50px; /* Bords entièrement arrondis (style "pilule") */
    box-shadow: 0 4px 20px rgba(230, 0, 126, 0.4); /* Ombre portée rose assortie */
    transition: all 0.3s ease; /* Transition douce pour le survol */
    text-transform: uppercase; /* Met le texte en majuscules pour un style plus affirmé */
    letter-spacing: 1px; /* Espace légèrement les lettres */
    border: none; /* S'assurer qu'il n'y a pas de bordure par défaut */
}

/* Effet au survol de la souris pour rendre le bouton interactif */
.section-adhesion .btn:hover,
.section-adhesion .btn:focus {
    background: #C3006A; /* Un rose légèrement plus foncé au survol */
    transform: translateY(-4px); /* L'effet de soulèvement est plus prononcé */
    box-shadow: 0 6px 25px rgba(195, 0, 106, 0.5); /* Ombre plus forte */
}



/* -------------------- FOOTER -------------------- */
.footer { background-color: var(--c-violet-dark); color: var(--c-violet-xlight); padding: 5rem 0 2rem; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col h3 { font-family: var(--font-heading); color: var(--c-white); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--c-violet-xlight); text-decoration: none; }
.footer-col a:hover { color: var(--c-white); }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { width: 100%; padding: 0.8rem; border: none; border-radius: 5px 0 0 5px; background-color: rgba(255, 255, 255, 0.1); color: var(--c-white); }
.newsletter-form .btn { border-radius: 0 5px 5px 0; }
.social-links { display: flex; gap: 1.5rem; margin-top: 1rem; }
.social-links a { font-size: 1.5rem; color: var(--c-violet-xlight); }
.social-links a:hover { color: var(--c-white); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero h1 { font-size: 3rem; }
    .history-grid-container { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
    .history-grid-container::before { left: 25%; right: 25%; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: var(--c-violet-dark); flex-direction: column; justify-content: center; align-items: center; transition: var(--transition); padding: 2rem; }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; gap: 2rem; text-align: center; }
    .nav-link { font-size: 1.2rem; }
    .nav-toggle { display: block; z-index: 101; }
    .nav-toggle.active i::before { content: '\f00d'; }
    .history-grid-container { grid-template-columns: 1fr; gap: 3rem; }
    .history-grid-container::before { display: none; }
    .history-step { text-align: left; padding-left: 90px; padding-top: 0; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
    .history-icon { left: 0; top: 50%; transform: translateY(-50%); }
}

/* -------------------- ANIMATIONS -------------------- */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }