/* ======================================= */
/* 1. VARIABLES & STYLES GLOBAUX           */
/* ======================================= */
:root {
    --color-dark-blue: #101828;
    --color-light-bg: #F9FAFB;
    --color-golden: #FDB813;
    --color-golden-dark: #daa010;
    --color-grey-text: #667085;
    --color-grey-border: #D0D5DD;
    --color-white: #FFFFFF;
    --color-success: #12B76A;

    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Playfair Display', serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light-bg);
    color: var(--color-grey-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--color-dark-blue);
    font-weight: 700;
}

/* ======================================= */
/* 2. EN-TÊTE & NAVIGATION                 */
/* ======================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(208, 213, 221, 0.5);
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 60px;
    transition: var(--transition-smooth);
}
.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark-blue);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-golden);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-golden);
    color: var(--color-dark-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-golden-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-button i { margin-left: 0.5rem; }

.hamburger { display: none; }

/* ======================================= */
/* 3. SECTION ACCUEIL (HERO)               */
/* ======================================= */
#accueil {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(45deg, rgba(16, 24, 40, 0.95), rgba(16, 24, 40, 0.7)), url('assets/WhatsApp Image 2025-09-29 at 12.20.32_22ec8683.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 10rem 0 5rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-golden);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-golden);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-grey-border);
}

.hero-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ======================================= */
/* 4. SECTIONS COMMUNES & CARTES           */
/* ======================================= */
main section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--color-golden);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

#activites { background-color: var(--color-white); }
#promoter { background-color: var(--color-white); }


.activites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activite-card {
    background: var(--color-light-bg);
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-grey-border);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.activite-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-golden);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-golden);
    color: var(--color-dark-blue);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.activite-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =============================================== */
/* 5. SECTIONS À PROPOS & PROMOTEUR                */
/* =============================================== */
.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.mission-statement {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark-blue);
    margin-bottom: 2rem;
}

.about-content h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.values-list i {
    color: var(--color-success);
}

.promoter-bio {
    margin-bottom: 1.5rem;
}

.promoter-quote {
    font-family: var(--font-headings);
    border-left: 3px solid var(--color-golden);
    padding-left: 1.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-dark-blue);
}

/* ======================================= */
/* 6. GALERIE & AUTRES SECTIONS            */
/* ======================================= */
#galerie { border-top: 1px solid var(--color-grey-border); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:nth-child(3), .gallery-item:nth-child(4) {
    grid-column: span 2;
}

#affiliations {
    background: var(--color-dark-blue);
    color: var(--color-grey-border);
    padding: 4rem 0;
    text-align: center;
}

#affiliations h4 {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    filter: grayscale(100%) invert(100%) brightness(1.5);
    opacity: 0.7;
}
.logos-container img { height: 40px; }

/* ======================================= */
/* 7. NOUVEAU FORMULAIRE DE CONTACT        */
/* ======================================= */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--color-grey-border);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-grey-border);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-golden);
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem;
}

/* ======================================= */
/* 8. FOOTER & ANIMATIONS                  */
/* ======================================= */
.main-footer {
    background: var(--color-dark-blue);
    color: var(--color-grey-text);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ======================================= */
/* 9. RESPONSIVE DESIGN                    */
/* ======================================= */
@media (max-width: 992px) {
    .header-cta { display: none; }

    .hamburger {
        display: block;
        background: transparent;
        border: none;
        color: var(--color-dark-blue);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .navbar {
        position: fixed;
        top: 85px; /* Hauteur du header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--color-white);
        transition: left 0.3s ease-in-out;
    }

    .navbar.active {
        left: 0;
    }

    .nav-links {
    display: none; /* Cachez les liens par défaut */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2.5rem;
    }

    /* Ajoutez cette nouvelle règle juste après */
    .navbar.active .nav-links {
        display: flex; /* Affichez les liens quand le menu est ouvert */
    }
    .nav-links a { font-size: 1.5rem; }

    .grid-two-cols {
        grid-template-columns: 1fr;
    }
    .reverse-grid {
        grid-template-areas: "image" "text";
    }
    .reverse-grid .about-image { grid-area: image; }
    .reverse-grid .about-content { grid-area: text; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(3), .gallery-item:nth-child(4) { grid-column: span 1; }
    .logos-container { flex-direction: column; gap: 2.5rem; }
    .form-grid { grid-template-columns: 1fr; }
}