/* ===== VARIABLES ===== */
:root {
    /* --primary: #2563eb;
    --primary-dark: #1d4ed8; */
    --primary: #10b981;
    --primary-dark: #10b981;
    --primary-light: #dbeafe;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Theme variables */
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --text-color: #e5e7eb;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== TOPBAR ===== */
.topbar {
    font-size: 0.875rem;
    position: relative;
    z-index: 1030;
}

.topbar a:hover {
    opacity: 0.9;
}

.theme-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
}

.theme-switch .form-check-label {
    cursor: pointer;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
}

.navbar-brand .schoola-logo i {
    font-size: 2rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background-color: var(--card-bg);
}

.dropdown-item {
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

[data-theme="dark"] .hero-subtitle {
    color: #d1d5db;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

footer h5 {
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.rounded-xl {
    border-radius: 20px;
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== FORMS ===== */
.form-control {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}


/* ===== HERO SPECIFIC ===== */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

[data-theme="dark"] .hero-subtitle {
    color: #d1d5db;
}

/* ===== CAROUSEL ===== */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}

.swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ===== CARD ICONS ===== */
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

/* ===== TESTIMONIALS ===== */
.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--primary);
    color: white;
}


/* ===== GRADIENTS ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-dark-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ===== COUNTERS ===== */
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}





css

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== MEGA MENU ===== */
.mega-menu .dropdown-menu {
    width: 800px;
    max-width: 90vw;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.mega-menu-content {
    padding: 1.5rem;
    background: var(--card-bg);
}

.mega-menu .nav-pills .nav-link {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: left;
    transition: all 0.3s ease;
}

.mega-menu .nav-pills .nav-link.active {
    background: var(--light);
    border-color: var(--primary);
    color: white;
}

.mega-menu .nav-pills .nav-link:hover:not(.active) {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
}

.mega-menu .tab-content {
    min-height: 200px;
}


[data-theme="dark"] .hover-card {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
}

[data-theme="dark"] .text-dark {
    color: var(--text-color);
}

[data-theme="dark"] .navbar-light .navbar-brand {
    color: var(--text-color);
}

[data-theme="dark"] .bg-light {
    --bs-bg-opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}



[data-theme="dark"] .border-start {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .bg-white {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-light {
    background-color: rgba(255, 255, 255, 0.05);
}








/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
    animation: fadeInDown 0.3s ease;
    border-radius: 10px;
    margin-top: 10px;
    padding: 0.5rem 0;
}

[data-theme="dark"] .dropdown-menu {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    border-radius: 5px;
    margin: 0 0.5rem;
    width: auto;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.dropdown-item:hover i {
    color: white !important;
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-header {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

/* ===== SEARCH SYSTEM ===== */
.search-container {
    position: relative;
}

.search-trigger {
    transition: transform 0.3s ease;
}

.search-trigger:hover {
    transform: scale(1.1);
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.search-container:hover .search-box {
    display: block;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary);
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    font-size: 0.875rem;
    color: var(--gray);
    opacity: 0.8;
}

.search-result-item:hover .search-result-excerpt {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BADGES ===== */
.badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .mega-menu .dropdown-menu {
        width: 100%;
        max-width: 100%;
        position: static !important;
        transform: none !important;
    }

    .search-box {
        width: 300px;
        right: -50px;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 0;
    }

    .nav-link i {
        width: 20px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .search-box {
        width: 280px;
        right: -100px;
    }

    .mega-menu-content .row {
        flex-direction: column;
    }

    .mega-menu-content .col-lg-3,
    .mega-menu-content .col-lg-9 {
        width: 100%;
    }
}

/* ===== PROMOTION BANNER STYLES ===== */
.text-warning {
    color: #f59e0b !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


/* Correction pour le mega menu */
.mega-menu .nav-pills .nav-link {
    position: relative;
}

.mega-menu .nav-pills .nav-link .badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
}

/* Hover effect pour les services */
.hover-card {
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.hover-card:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Badge small */
.badge-sm {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mega-menu .nav-pills .nav-link .badge {
        position: static;
        display: inline-block;
        margin-left: 0.5rem;
        transform: none;
    }

    .hover-card {
        padding: 0.5rem;
    }
}


/* ===== MEGA MENU ===== */
.dropdown-mega .mega-menu {
    width: 100%;
    min-width: 900px;
    max-width: 1200px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-menu-section {
    padding: 0.5rem 1.5rem;
    height: auto;
    min-height: 300px;
    border-right: 1px solid var(--border-color);
}

.mega-menu-section:last-child {
    border-right: none;
}

.mega-menu .dropdown-header {
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-light);
}

.mega-menu .dropdown-item {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--primary-light);
    padding-left: 1rem;
    transform: translateX(5px);
}

.mega-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.mega-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Footer avec stats */
.mega-footer {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .mega-footer {
    background: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    text-align: center;

}

.stat-item {
    padding: 0.5rem;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.05);
    border-radius: 8px;
    transition: transform 0.2s ease;
    background-color: var(--primary-light);
}

.stat-item:hover {
    transform: translateY(-2px);
    background: var(--primary);
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scrollbar personnalisée */
.mega-menu::-webkit-scrollbar {
    width: 8px;
}

.mega-menu::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

[data-theme="dark"] .mega-menu::-webkit-scrollbar-track {
    background: var(--dark);
}

/* Badges colorés */
.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

/* Couleurs pour les icônes */
.text-primary i {
    color: var(--primary) !important;
}

.text-success i {
    color: #10b981 !important;
}

.text-warning i {
    color: #f59e0b !important;
}

.text-info i {
    color: #0ea5e9 !important;
}

.text-danger i {
    color: #ef4444 !important;
}

.text-purple i {
    color: #8b5cf6 !important;
}

.text-secondary i {
    color: #6b7280 !important;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1200px) {
    .dropdown-mega .mega-menu {
        min-width: 1000px;
        max-width: 1200px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .dropdown-mega .mega-menu {
        min-width: 800px;
        max-width: 900px;
    }

    .mega-menu-section {
        padding: 0.5rem 1rem;
    }
}

/* Tablette */
/* @media (max-width: 991px) {
    .dropdown-mega .mega-menu {
        min-width: auto;
        max-width: 95vw;
        max-height: 70vh;
        position: fixed !important;
        left: 2.5vw !important;
        right: 2.5vw !important;
        transform: none !important;
    }

    .mega-menu-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        min-height: auto;
    }

    .mega-menu-section:last-child {
        border-bottom: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} */

/* ===== CORRECTIONS SPÉCIFIQUES POUR LE MEGA MENU MOBILE ===== */

@media (max-width: 991px) {

    /* Force le mega menu à être visible sur mobile */
    .dropdown-mega .mega-menu {
        min-width: auto !important;
        max-width: 95vw !important;
        max-height: 70vh !important;
        position: fixed !important;
        left: 2.5vw !important;
        right: 2.5vw !important;
        transform: none !important;
        top: auto !important;
        bottom: auto !important;
        z-index: 1050 !important;
    }

    /* S'assurer que le menu est au-dessus de tout */
    .dropdown-mega {
        position: relative !important;
    }

    /* Rendre les sections scrollables */
    .mega-menu {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Style pour le scroll sur mobile */
    .mega-menu::-webkit-scrollbar {
        width: 4px;
    }

    .mega-menu::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dropdown-mega .mega-menu {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-height: calc(100vh - 80px) !important;
        transform: none !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mega-menu {
        max-height: 80vh;
        padding: 0.5rem 0;
    }

    .mega-menu .dropdown-item {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.25rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}


/* ===== CORRECTIONS SPÉCIFIQUES POUR LE MENU ===== */
.dropdown-mega {
    position: static !important;
}

/* Ajuster les marges sur desktop */
@media (min-width: 992px) {
    .mega-menu .dropdown-header {
        font-size: 0.9rem;
        padding: 1rem 0 0.75rem 0;
    }

    .mega-menu .dropdown-item {
        padding: 0.5rem 0;
    }

    .mega-menu-section {
        padding: 0 1.5rem;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mega-menu-section>* {
        flex-shrink: 0;
    }

    .mega-menu-section .dropdown-header {
        flex-shrink: 0;
    }

    .mega-menu-section>.dropdown-item {
        flex-shrink: 0;
    }

    .mega-footer {
        margin-top: auto;
    }
}


/* ===== SERVICE CARDS STYLES ===== */
.service-card {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.service-card:hover .card-border {
    width: 100%;
}

.service-icon-wrapper {
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.service-card:hover .service-icon-wrapper i {
    color: white !important;
}

.card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.4s ease;
    border-radius: 0 0 16px 16px;
}

.shadow-hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.transition-all {
    transition: all 0.3s ease;
}

.service-card:hover .btn-link i {
    transform: translateX(5px);
}

.bg-primary-light {
    background-color: rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .bg-primary-light {
    background-color: rgba(37, 99, 235, 0.2);
}

/* Badge styling */
.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }
}

/* Animation pour l'affichage progressif */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== POSITION HERO ===== */
.position-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.position-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.position-hero-icon {
    font-size: 8rem;
    opacity: 0.15;
    transition: all 0.5s ease;
}

.position-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.position-stat-icon:hover {
    transform: scale(1.1);
}

.breadcrumb-light .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-light .breadcrumb-item.active {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .position-hero {
        padding: 3rem 0;
        text-align: center;
    }

    .position-hero-icon {
        font-size: 5rem;
        margin-top: 2rem;
    }

    .position-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
}

/* ===== PROMOTIONS HERO ===== */
.promotions-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Background Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pattern-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.pattern-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.pattern-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
}

.pattern-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.pattern-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 1px;
}

.pattern-line-1 {
    top: 30%;
    left: 0;
    right: 0;
    width: 100%;
}

.pattern-line-2 {
    top: 70%;
    left: 0;
    right: 0;
    width: 100%;
}

/* Breadcrumb */
.hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "›";
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* Hero Icon */
.hero-icon-container {
    position: relative;
    display: inline-block;
}

.hero-main-icon {
    font-size: 8rem;
    color: white;
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.hero-icon-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
    animation: rotate 20s linear infinite;
}

.hero-icon-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.badge-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.hero-icon-badge small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Highlight Text */
.highlight-text {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.3));
    border-radius: 4px;
    z-index: -1;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.stat-primary::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-success::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-info::before {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.stat-primary .stat-icon {
    background: rgba(59, 130, 246, 0.2);
}

.stat-success .stat-icon {
    background: rgba(16, 185, 129, 0.2);
}

.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.2);
}

.stat-info .stat-icon {
    background: rgba(14, 165, 233, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quick Info Card */
.quick-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.quick-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fbbf24;
}

/* Animations */
@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

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

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

/* Responsive */
@media (max-width: 768px) {
    .promotions-hero {
        padding: 60px 0;
    }

    .hero-main-icon {
        font-size: 5rem;
    }

    .hero-icon-circle {
        width: 150px;
        height: 150px;
    }

    .hero-icon-badge {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem 0.75rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .highlight-text::after {
        height: 6px;
        bottom: 3px;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .promotions-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

[data-theme="dark"] .stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quick-info-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}



/* Section */
.achievements-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Card */
.achievement-card {
    height: 100%;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Icon */
.achievement-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Value */
.achievement-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

/* Title */
.achievement-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0;
}

/* Description */
.achievement-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* Gradient text (si déjà utilisé ailleurs) */
.text-gradient {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .achievements-section {
    background: linear-gradient(180deg, #020617 0%, #020617 100%);
}

[data-theme="dark"] .achievement-card {
    background: #020617;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .achievement-title,
[data-theme="dark"] .achievement-desc {
    color: #cbd5f5;
}

[data-theme="dark"] .achievement-value {
    color: #f8fafc;
}

/* Section */
.partners-section {
    overflow: hidden;
}

/* Carousel */
.partners-carousel {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

/* Track */
.partners-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: partnersScroll 25s linear infinite;
}

/* Pause au survol */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

/* Item */
.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

/* Logo ORIGINAL (sans filtre) */
.partner-logo {
    max-height: 90px;
    max-width: 220px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover léger */
.partner-logo:hover {
    transform: scale(1.05);
}

/* Texte fallback */
.partner-text {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

/* Animation */
@keyframes partnersScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
}

.hero-section .breadcrumb-light .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.hero-section .breadcrumb-light .breadcrumb-item a:hover {
    color: white;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-75 {
    opacity: 0.75;
}

/* ===== ACHIEVEMENT CARDS ===== */
.achievement-icon .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.achievement-icon .icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.trophy-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-light);
}

.timeline-item {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}

.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

.timeline-content {
    position: relative;
    width: 100%;
}

.timeline-year {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 1;
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow);
}

.timeline-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }

    .timeline-year {
        left: 0;
        transform: translateX(0);
    }

    .timeline-icon {
        left: 30px;
        transform: translateX(-50%);
    }
}

/* ===== UTILITIES ===== */
.fst-italic {
    font-style: italic;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.rating i {
    font-size: 0.875rem;
    margin-right: 2px;
}






















/* ===== DARK MODE OVERRIDES ===== */

[data-theme="dark"] .section.bg-light {
    background-color: var(--bg-color) !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1a1a1a !important;
    color: var(--text-color);
}

[data-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-body {
    background-color: var(--card-bg);
}

[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .border-bottom {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .border-top {
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

/* Boutons en dark mode */
[data-theme="dark"] .btn-light {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .btn-light:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

[data-theme="dark"] .btn-outline-light {
    color: #d1d5db;
    border-color: #4b5563;
}

[data-theme="dark"] .btn-outline-light:hover {
    background-color: #374151;
    border-color: #6b7280;
    color: #f9fafb;
}

/* Badges en dark mode */
[data-theme="dark"] .badge.bg-light {
    background-color: #374151 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .badge.bg-secondary {
    background-color: #4b5563 !important;
    color: #f9fafb !important;
}

/* Formulaires en dark mode */
[data-theme="dark"] .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control:focus {
    background-color: #4b5563;
    border-color: #60a5fa;
    color: #f9fafb;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Modals en dark mode */
[data-theme="dark"] .modal-content {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #374151;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #374151;
}

/* Pagination en dark mode */
[data-theme="dark"] .page-link {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .page-link:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Alertes en dark mode */
[data-theme="dark"] .alert-light {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Spécifique pour la page vidéos YouTube */
[data-theme="dark"] .hero-youtube-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
}

[data-theme="dark"] .video-card-youtube {
    background: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .video-title {
    color: #f3f4f6;
}

[data-theme="dark"] .video-meta {
    color: #9ca3af;
}

[data-theme="dark"] .tag {
    background: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .sidebar-playlists {
    background: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .sidebar-title {
    color: #f3f4f6;
    border-bottom-color: #ef4444;
}

[data-theme="dark"] .playlist-item {
    color: #d1d5db;
}

[data-theme="dark"] .playlist-item:hover {
    background: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .playlist-item.active {
    background: #ef4444;
    color: white;
}

[data-theme="dark"] .playlist-icon {
    background: #374151;
}

[data-theme="dark"] .playlist-item.active .playlist-icon {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .channel-info {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .filter-btn {
    background: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .filter-btn:hover {
    background: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .filter-btn.active {
    background: #ef4444;
    color: white;
}

[data-theme="dark"] .search-box .search-input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .search-box .search-input:focus {
    background: #4b5563;
    border-color: #ef4444;
    color: #f9fafb;
}

[data-theme="dark"] .btn-search {
    background: #4b5563;
    color: #d1d5db;
}

[data-theme="dark"] .btn-search:hover {
    background: #6b7280;
    color: #f9fafb;
}

/* Projets page */
[data-theme="dark"] .project-card,
[data-theme="dark"] .project-card-small {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .project-content h2,
[data-theme="dark"] .project-content h3,
[data-theme="dark"] .project-content h4 {
    color: #e5e7eb;
}

[data-theme="dark"] .project-content p {
    color: #d1d5db;
}

[data-theme="dark"] .related-projects a {
    color: #e5e7eb;
}

[data-theme="dark"] .related-projects a:hover {
    color: #60a5fa;
}

/* FAQ Accordion dark mode */
[data-theme="dark"] .accordion-item {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .accordion-button {
    background-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .accordion-body {
    background-color: #374151;
    color: #d1d5db;
}

/* Hero sections en dark mode */
[data-theme="dark"] .hero-project-single-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

[data-theme="dark"] .hero-projects-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* Text colors spécifiques */
[data-theme="dark"] .text-dark {
    color: #e5e7eb !important;
}

[data-theme="dark"] .text-black {
    color: #f9fafb !important;
}

[data-theme="dark"] .text-gray {
    color: #9ca3af !important;
}

/* Backgrounds spécifiques */
[data-theme="dark"] .bg-white {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .bg-opacity-10 {
    background-color: rgba(31, 41, 55, 0.1) !important;
}

[data-theme="dark"] .bg-opacity-20 {
    background-color: rgba(31, 41, 55, 0.2) !important;
}

[data-theme="dark"] .bg-opacity-50 {
    background-color: rgba(31, 41, 55, 0.5) !important;
}

/* YouTube spécific dark mode */
[data-theme="dark"] .duration-badge {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

[data-theme="dark"] .featured-badge {
    background: #ef4444;
    color: white;
}

[data-theme="dark"] .action-btn.watch-btn {
    color: #e5e7eb;
    border-color: #4b5563;
}

[data-theme="dark"] .action-btn.watch-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .action-btn.youtube-btn {
    color: #f87171;
    border-color: #ef4444;
}

[data-theme="dark"] .action-btn.youtube-btn:hover {
    background: #ef4444;
    color: white;
}

/* Empty states en dark mode */
[data-theme="dark"] .empty-state,
[data-theme="dark"] .empty-state-youtube {
    background: transparent;
}

[data-theme="dark"] .empty-state h4,
[data-theme="dark"] .empty-state p,
[data-theme="dark"] .empty-state-youtube h4,
[data-theme="dark"] .empty-state-youtube p {
    color: #9ca3af;
}

/* Stats en dark mode */
[data-theme="dark"] .stat-item .stat-number {
    color: #f9fafb;
}

[data-theme="dark"] .stat-item .stat-label {
    color: #9ca3af;
}

[data-theme="dark"] .list-group .list-group-item {
    background: #1f2937;
        border-top-color: #374151;
}


/* Section titles en dark mode */
[data-theme="dark"] .section-title {
    color: #f3f4f6;
}

[data-theme="dark"] .section-title::after {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

/* Breadcrumb dark mode */
[data-theme="dark"] .breadcrumb-item a {
    color: #60a5fa;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #d1d5db;
}

[data-theme="dark"] .breadcrumb-item+.breadcrumb-item::before {
    color: #6b7280;
}

/* Features spécifiques pour la vidéo en vedette */
[data-theme="dark"] .featured-video-container .card-footer {
    background: #1f2937;
    border-top-color: #374151;
}

/* Responsive adjustments for dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .mobile-menu {
        background: #1f2937;
        border-color: #374151;
    }

    [data-theme="dark"] .mobile-menu a {
        color: #e5e7eb;
        border-bottom-color: #374151;
    }

    [data-theme="dark"] .mobile-menu a:hover {
        background: #374151;
        color: #f9fafb;
    }
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0 !important;
}

/*
*
*===========================================
* Les ajouts
*===========================================
*
*/

/* ===== Footer Medical ===== */
.footer-medical {
    position: relative;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(22, 163, 74, .25), transparent 60%),
        radial-gradient(900px 500px at 90% 30%, rgba(14, 165, 233, .18), transparent 55%),
        linear-gradient(180deg, #0b1220 0%, #070b14 100%);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-medical::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #0ea5e9);
    opacity: .9;
}

.footer-title {
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 14px;
    color: #fff;
}

.footer-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, .18);
    border: 1px solid rgba(22, 163, 74, .35);
    color: #a7f3d0;
}

.footer-badge {
    font-size: .82rem;
    padding: .38rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .85);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    background: rgba(22, 163, 74, .18);
    border-color: rgba(22, 163, 74, .35);
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.service-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .18);
    display: inline-block;
    margin-right: 10px;
}

.footer-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.btn-footer {
    background: rgba(22, 163, 74, .18);
    color: #fff;
    border: 1px solid rgba(22, 163, 74, .35);
    border-radius: 14px;
    padding: 10px 14px;
}

.btn-footer:hover {
    background: rgba(22, 163, 74, .28);
    border-color: rgba(22, 163, 74, .55);
    color: #fff;
}

.btn-whatsapp {
    background: rgba(34, 197, 94, .16);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #fff;
    border-radius: 14px;
    padding: 10px 14px;
}

.btn-whatsapp:hover {
    background: rgba(34, 197, 94, .26);
    border-color: rgba(34, 197, 94, .55);
    color: #fff;
}

.footer-input .form-control {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    border-radius: 14px 0 0 14px;
}

.footer-input .form-control::placeholder {
    color: rgba(255, 255, 255, .55);
}

.footer-input .form-control:focus {
    box-shadow: none;
    border-color: rgba(22, 163, 74, .45);
}

.btn-footer-icon {
    background: rgba(14, 165, 233, .18);
    border: 1px solid rgba(14, 165, 233, .35);
    color: #fff;
    border-radius: 0 14px 14px 0;
}

.btn-footer-icon:hover {
    background: rgba(14, 165, 233, .28);
    border-color: rgba(14, 165, 233, .55);
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .10) !important;
}

.footer-legal {
    color: rgba(255, 255, 255, .60);
    text-decoration: none;
}

.footer-legal:hover {
    color: #fff;
    text-decoration: underline;
}

/* header */

/* ===== Medical Navbar ===== */
.navbar-medical {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, .14);
    border: 1px solid rgba(22, 163, 74, .25);
    color: #16a34a;
    font-size: 1.15rem;
}

.brand-title {
    font-weight: 800;
    letter-spacing: .2px;
    color: #0f172a;
    font-size: 1.05rem;
}

.brand-subtitle {
    color: rgba(15, 23, 42, .55);
    font-size: .78rem;
}

.nav-medical .nav-link {
    border-radius: 14px;
    padding: .6rem .85rem;
    color: rgba(15, 23, 42, .72);
    transition: background .15s ease, color .15s ease, transform .15s ease;
    display: flex;
    align-items: center;
}

.nav-medical .nav-link:hover {
    background: rgba(22, 163, 74, .10);
    color: #0f172a;
    transform: translateY(-1px);
}

.nav-medical .nav-link.active {
    background: rgba(22, 163, 74, .14);
    color: #0f172a;
    border: 1px solid rgba(22, 163, 74, .20);
}

.badge-soft {
    background: rgba(14, 165, 233, .14);
    border: 1px solid rgba(14, 165, 233, .22);
    color: #0f172a;
    font-weight: 700;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .9);
    color: #0f172a;
}

.dropdown-menu-medical {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 50px rgba(2, 6, 23, .12);
    padding: .5rem;
}

.dropdown-menu-medical .dropdown-item {
    border-radius: 14px;
    padding: .65rem .75rem;
}

.dropdown-menu-medical .dropdown-item:hover {
    background: rgba(22, 163, 74, .10);
}

.mega-menu-medical {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 22px 70px rgba(2, 6, 23, .14);
    overflow: hidden;
}

/* Buttons */
.btn-med {
    background: rgba(22, 163, 74, .95);
    border: 1px solid rgba(22, 163, 74, .95);
    color: #fff;
    border-radius: 14px;
    padding: .55rem .85rem;
}

.btn-med:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.btn-outline-med {
    background: transparent;
    border: 1px solid rgba(22, 163, 74, .35);
    color: #0f172a;
    border-radius: 14px;
    padding: .55rem .85rem;
}

.btn-outline-med:hover {
    background: rgba(22, 163, 74, .10);
    border-color: rgba(22, 163, 74, .55);
    color: #0f172a;
}

.btn-donate {
    background: rgba(14, 165, 233, .14);
    border: 1px solid rgba(14, 165, 233, .25);
    color: #0f172a;
    border-radius: 14px;
    padding: .55rem .85rem;
}

.btn-donate:hover {
    background: rgba(14, 165, 233, .22);
    border-color: rgba(14, 165, 233, .35);
    color: #0f172a;
}

.btn-urgent {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .22);
    color: #0f172a;
    border-radius: 14px;
    padding: .55rem .85rem;
}

.btn-urgent:hover {
    background: rgba(239, 68, 68, .18);
    border-color: rgba(239, 68, 68, .35);
    color: #0f172a;
}

.mobile-search-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 50px rgba(2, 6, 23, .10);
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* affiche toute l'image */
    object-position: center;
    background: #0b1220;
    /* si transparent */
}

/* Ajoute un fond flou derrière (option premium) */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg, #0b1220);
    z-index: -1;
}
