/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Couleurs principales */
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    /* --primary: #0e4dcb;
    --primary-light: #4c72af;
    --primary-dark: #0b2a5e; */

    /* Couleurs neutres */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-900: #212121;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-xl: 0 15px 35px rgba(46, 125, 50, 0.2);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR GLASSMORPHIQUE
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    width: 45px;
    height: 45px;
    /* border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1); */
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(46, 125, 50, 0.08);
}

.nav-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION MODERN (PROFESSIONAL WAVE)
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
    /* Fond vert profond professionnel */
    background: linear-gradient(180deg, #1b5e20 0%, #2e7d32 100%);
    color: #ffffff;
}

/* Vague SVG en arrière-plan bas */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: 0;
    pointer-events: none;
}

/* Texture subtile haut */
/* Texture subtile haut */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@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);
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--gray-900);
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid var(--gray-300);
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.8s both;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(46, 125, 50, 0.1);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 125, 50, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    color: var(--white);
    font-size: 20px;
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ============================================
   SECTION ÉVÉNEMENTS PREMIUM
   ============================================ */
.events-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.event-card.show {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.event-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.event-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.event-content {
    padding: 24px;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary);
    width: 16px;
}

.event-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.event-btn:hover {
    gap: 12px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.empty-text {
    color: var(--gray-600);
    font-size: 16px;
}

/* ============================================
   SECTION CTA PREMIUM
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cta-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   FOOTER PREMIUM
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links i {
    font-size: 10px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-400);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
       MOBILE MENU - PREMIUM DRAWER DESIGN
       ============================================ */
/* ============================================
    MENU PC (Default - Solid White)
   ============================================ */
.navbar {
    /* Background managed in navbar.css to allow glassmorphism */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active-page {
    color: #CE1126;
    /* Juste la couleur, pas de souligné */
}

/* Hamburger caché sur PC (Géré par navbar.css) */
/* .nav-hamburger { display: none; } */

/* ============================================
   MOBILE MENU - PREMIUM DRAWER DESIGN (< 900px)
   ============================================ */
@media (max-width: 900px) {
    /* Le design du menu mobile est maintenant géré dans navbar.css pour éviter les conflits */
    /* Voir public/assets/front/css/navbar.css */
}

/* Ajustements généraux mobile */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: row;
        /* On garde en ligne si possible */
        flex-wrap: wrap;
        /* Mais on permet le wrap */
        justify-content: center;
        gap: 20px;
    }

    .stat-item {
        width: 45%;
        /* 2 par ligne */
        min-width: 140px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* Hide toggler on desktop */
@media (min-width: 769px) {
    .nav-hamburger {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 60px;
        padding: 0 15px;
    }

    .brand-text {
        font-size: 18px;
        /* Un peu plus grand */
    }

    .navbar-menu {
        width: 100%;
        max-width: 100%;
        /* Plein écran sur petit mobile */
    }

    .stat-item {
        width: 100%;
        /* 1 par ligne sur très petit */
        margin-bottom: 10px;
    }

    /* Nav buttons small */
    .nav-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* ============================================
   SECTION COMMENT CA MARCHE
   ============================================ */
.steps-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.steps-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    /* Hauteur égale */
    height: 100%;
    display: flex;
    flex-direction: column;

    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 125, 50, 0.2);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0f9f4, #ffffff);
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--primary);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: var(--white);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    border: 2px solid var(--white);
}

.step-card:hover .step-number {
    background: var(--white);
    color: var(--primary);
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    text-align: center;
}

.step-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    /* Texte justifié */
    text-align: justify;
    text-justify: inter-word;
    margin-top: auto;
    /* Pousse vers le bas si flex column */
}


.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--gray-300);
    font-size: 24px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .step-arrow {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-card {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 24px;
        padding: 20px;
    }

    .step-icon {
        margin: 0;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .step-card:hover .step-icon {
        transform: scale(1.05);
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #CE1126 !important;
    /* Rouge Premium */
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a50e1e !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(206, 17, 38, 0.6);
}

/* ============================================
   TURBO PROGRESS BAR HIDE
   ============================================ */
.turbo-progress-bar {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}