:root {
    --primary: #1e54b7;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --info: #4895ef;
    --primary-0: #e7f3fd;
    /* Bleu très clair */
    --primary-100: #e9f5ff;
    /* Bleu très clair */
    --primary-200: #bae6fd;
    /* Bleu clair */
    --primary-300: #7dd3fc;
    /* Bleu moyen */
    --primary-400: #38bdf8;
    /* Bleu vif */
    --primary-500: #0ea5e9;
    /* Bleu principal */
    --primary-600: #0284c7;
    /* Bleu foncé */
    --primary-700: #0369a1;
    /* Bleu profond */

    --accent-pink: #f472b6;
    /* Rose vif */
    --accent-purple: #a855f7;
    /* Violet */
    --accent-teal: #14b8a6;
    /* Vert d'eau */
    /* Nuances de gris */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;

    --hero-gradient-start: var(--primary-100);
    --hero-gradient-end: var(--primary-200);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Poppins Thin (100) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

/* Poppins ExtraLight (200) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

/* Poppins Light (300) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Poppins Regular (400) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Poppins Medium (500) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Poppins SemiBold (600) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Poppins Bold (700) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Poppins ExtraBold (800) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Poppins Black (900) */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.hero .container {
    position: relative;
    z-index: 2;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    /*
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--dark);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    /*transition: color 0.3s;*/
}

nav ul li a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-bepc-nav {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff !important;
    border: none;
    font-weight: 700;
    font-size: .85rem;
    padding: 8px 14px;
    border-radius: 20px;
    animation: bepc-pulse 2s ease-in-out infinite;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-bepc-nav:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: scale(1.05);
    color: #fff !important;
}
@keyframes bepc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
    50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
@media (max-width: 600px) {
    .btn-bepc-nav { font-size: .75rem; padding: 6px 10px; }
}

/* Hero + bannière BEPC : desktop = bannière sous le hero, mobile = bannière au-dessus */
.hero-banner-wrapper {
    display: flex;
    flex-direction: column;
}
.hero-banner-wrapper .hero        { order: 1; }
.hero-banner-wrapper .exam-banner { order: 2; }

@media (max-width: 767px) {
    .hero-banner-wrapper .hero        { order: 2; }
    .hero-banner-wrapper .exam-banner { order: 1; }
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-500), var(--accent-purple));
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}



/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 2000;
    }

    nav.active {
        height: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .auth-buttons {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-dropdown>a i {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover>a i,
.nav-dropdown.active>a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-level {
    margin-bottom: 15px;
}

.dropdown-level-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.dropdown-level-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dropdown-class {
    background-color: var(--light);
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-class:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.dropdown-class a:hover {
    color: white !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
    }

    .dropdown-level {
        margin-bottom: 20px;
    }

    .dropdown-level-classes {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-dropdown .dropdown-level-title {
        background-color: var(--light);
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    /* Accordion-like mobile behavior */
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 1000px;
        /* Adjust as needed */
    }
}