/* ===== VARIABLES CSS CHARTE GRAPHIQUE OPTIMISÉE ===== */
:root {
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* COULEURS PRINCIPALES - SIMPLIFIÉES ET CONTRASTÉES */
    --primary-color: #0055A4;
    /* Bleu français - couleur principale */
    --primary-light: #3D7BC6;
    /* Bleu plus clair pour hover */
    --primary-dark: #003D7A;
    /* Bleu plus foncé pour accent */

    --secondary-color: #EF4135;
    /* Rouge français - couleur secondaire */
    --secondary-light: #F56B61;
    /* Rouge plus clair pour hover */
    --secondary-dark: #C8342A;
    /* Rouge plus foncé pour accent */

    --white-color: #FFFFFF;
    /* Blanc français */

    /* COULEURS DE TEXTE - BIEN CONTRASTÉES */
    --text-primary: #1a202c;
    /* Texte principal - bien contrasté */
    --text-secondary: #4a5568;
    /* Texte secondaire */
    --text-muted: #718096;
    /* Texte attenué */
    --text-light: #a0aec0;
    /* Texte clair */
    --text-on-primary: #ffffff;
    /* Texte sur fond bleu - BLANC TOUJOURS */
    --text-on-secondary: #ffffff;
    /* Texte sur fond rouge - BLANC TOUJOURS */

    /* COULEURS DE FOND */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-muted: #edf2f7;
    --bg-card: #ffffff;

    /* PAS DE DEGRADED - COULEURS UNIES SEULEMENT */
    --hero-bg: var(--primary-color);
    /* Fond hero uni bleu */
    --button-bg: var(--primary-color);
    /* Boutons unis */

    /* OMBRES ET BORDURES */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    --transition-fast: all 0.15s ease;
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ===== RESET & BASE STYLES OPTIMISÉS ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    /* Utilise la nouvelle variable de texte */
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    overflow-x: hidden;
}

/* Focus management pour accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Skip navigation pour accessibility */
.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    z-index: var(--z-tooltip);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 8px;
    color: var(--white-color);
}

/* Reduce motion pour accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== TYPOGRAPHIE OPTIMISÉE ===== */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* Texte principal bien contrasté */
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.lead {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    /* Texte secondaire plus lisible */
}

.navbar-brand,
.btn,
.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Responsive typography */

/* ===== CATEGORIES SECTION STYLES ===== */
.categories {
    background-color: var(--bg-secondary);
}

.category-card {
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
    height: 100%;
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.category-card:hover .icon-circle {
    transform: scale(1.1);
}

.category-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-description {
    font-size: 0.875rem;
    line-height: 1.5;
}

.category-stats .badge {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--border-radius-lg);
}

.bg-main-light {
    background-color: rgba(0, 85, 164, 0.1) !important;
}

.text-main {
    color: var(--primary-color) !important;
}

/* Responsive categories */
@media (max-width: 768px) {
    .category-icon .icon-circle {
        width: 60px;
        height: 60px;
    }

    .category-icon .icon-circle i {
        font-size: 1.5rem !important;
    }

    .category-title {
        font-size: 1rem;
    }
}

h1,
.h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2,
.h2 {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
}

h3,
.h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4,
.h4 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 3rem) !important;
    margin-bottom: 2rem !important;
    color: var(--primary-color);
    position: relative;
}

.card-title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    /* Titre de carte bien contrasté */
}

.card-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    /* Texte de carte lisible */
}

.btn {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Text utilities */
.text-primary-color {
    color: var(--primary-color);
    /* Classe pour texte bleu */
}

.text-secondary-color {
    color: var(--secondary-color);
    /* Classe pour texte rouge */
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-light {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== COMPOSANTS OPTIMISÉS ===== */

/* Cards améliorées */
.card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

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

.card-body {
    padding: 1.5rem;
}

.card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.hover-lift {
    transition: var(--transition-base);
}

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

/* Buttons optimisés - SANS DÉGRADÉS */
.btn-main {
    background: var(--primary-color);
    /* Couleur unie bleue */
    color: var(--text-on-primary);
    /* Texte blanc sur fond bleu */
    border: 2px solid transparent;
    font-weight: 700;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover,
.btn-main:focus {
    background: var(--primary-dark);
    /* Bleu plus foncé au hover */
    color: var(--text-on-primary);
    /* Toujours blanc */
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.btn-outline-main {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
    transition: var(--transition-base);
    position: relative;
}

.btn-outline-main:hover,
.btn-outline-main:focus {
    background: var(--primary-color);
    color: var(--text-on-primary);
    /* Blanc sur fond bleu */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-color);
    color: var(--text-on-primary);
    /* Blanc au hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Loading states */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Badges optimisés */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.badge-success {
    background: #198754;
    color: var(--white-color);
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-danger {
    background: var(--secondary-color);
    color: var(--white-color);
}

/* Form controls */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 85, 164, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius-md);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background: rgba(239, 65, 53, 0.1);
    color: #842029;
    border-left: 4px solid var(--secondary-color);
}

.alert-info {
    background: rgba(0, 85, 164, 0.1);
    color: #055160;
    border-left: 4px solid var(--primary-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #664d03;
    border-left: 4px solid #ffc107;
}

/* ===== SECTION HERO SIMPLIFIÉE ===== */
.hero-modern {
    background: var(--primary-color);
    /* Fond uni bleu - PAS de dégradé */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-on-primary);
    /* Blanc sur fond bleu */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--text-on-primary);
    /* Blanc sur fond bleu */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.cta-primary {
    background: var(--secondary-color);
    /* Bouton rouge sur fond bleu */
    color: var(--text-on-secondary);
    /* Texte blanc */
    border: 3px solid var(--white-color);
    transition: var(--transition-base);
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.cta-primary:hover {
    background: var(--secondary-dark);
    /* Rouge plus foncé au hover */
    color: var(--text-on-secondary);
    /* Toujours blanc */
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--white-color);
}

.trust-indicators {
    margin-top: 2rem;
    opacity: 0.9;
}

.floating-stats-container {
    position: relative;
}

.floating-stat-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.floating-stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-modern {
        padding-bottom: 100px;
        /* Space for mobile nav */
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-modern .container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 100px);
        width: 100%;
    }

    .hero-modern .row {
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 1.5rem;
    }
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    height: 70px;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    height: 100%;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.mobile-bottom-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(245, 48, 3, 0.05);
}

.mobile-bottom-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(245, 48, 3, 0.1);
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-link:hover i,
.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-link span {
    font-size: 0.7rem;
    line-height: 1;
}

/* Ajuster le padding bottom pour le contenu principal sur mobile */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }

    main {
        padding-bottom: 70px;
    }
}

/* ===== MAIN SITE NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent !important;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 0 0 25px 25px;
}

.navbar.scrolled {
    background: var(--primary-color) !important;
    /* Navigation unie bleue au scroll */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .navbar-brand {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Centrer le menu de navigation */
.navbar .navbar-nav {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar .navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--text-dark) !important;
    opacity: 0.9;
}

/* .navbar .nav-link.active {
    color: var(--text-dark) !important;
    position: relative;
} */

/* .navbar .nav-link.active {
    color: var(--text-dark) !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
} */



.nav-link.active {
    color: var(--text-dark) !important;
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    padding: 0.3rem 1rem !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--primary-color) !important;
    background-color: rgba(245, 48, 3, 0.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Pour le bouton de déconnexion sur mobile */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        width: auto;
        justify-content: flex-start;
    }
}

/* ===== ADMIN LAYOUT ===== */
body {
    background: var(--bg-light);
}

.sidebar {
    background: var(--text-dark);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    box-shadow: 2px 0 8px 0 rgba(245, 48, 3, 0.03);
}

.sidebar .nav-link,
.nav-link-admin {
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s, color 0.2s;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    margin: 0.125rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover,
.nav-link-admin:hover,
.nav-link-admin:focus {
    background: var(--primary-color);
    /* Couleur unie bleue pour navigation admin */
    color: var(--text-on-primary) !important;
}

.nav-link-admin.active {
    background-color: var(--primary-color);
    color: var(--text-on-primary) !important;
    /* Blanc sur fond bleu */
}

.nav-link-admin i {
    width: 1.25rem;
    text-align: center;
}

.nav-link-admin.active i {
    color: var(--text-on-primary);
    /* Icons blancs aussi */
}

.nav-link-admin.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.sidebar .sidebar-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.navbar .navbar-brand {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar .dropdown-menu {
    min-width: 180px;
}

.content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.sidebar .nav-link svg {
    margin-right: 8px;
    vertical-align: middle;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff2f2;
}

/* Styles pour l'avatar utilisateur */
.avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Styles pour les dropdowns */
.dropdown-menu {
    /* background: var(--bg-light) !important; */
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-color) !important;
}

.dropdown-item:hover {
    background: rgba(0, 85, 164, 0.1) !important;
}

/* ===== FEATURE CARDS ===== */
.feature-game,
.feature-access,
.feature-certified {
    /* background: var(--text-dark); */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(255, 140, 66, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-bg {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.2), rgba(255, 140, 66, 0.2));
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

.feature-text {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Styles spécifiques pour chaque carte */
.feature-game,
.feature-access,
.feature-certified {
    border-top: 4px solid var(--primary-color);
}

/* Animation au survol */
.feature-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05), rgba(255, 140, 66, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Styles pour les éléments statistiques */
.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(245, 48, 3, 0.1),
            rgba(245, 48, 3, 0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 0;
    padding: 1rem;
    text-align: center;
}

/* Suppression des styles spécifiques inutiles car même couleur pour tous */

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-access .stat-number {
    color: var(--primary-color);
}

.feature-certified .stat-number {
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Grille d'appareils */
.device-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.device-item {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(245, 48, 3, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .device-item {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Badge certifié */
.badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(245, 48, 3, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 0;
    padding: 1rem;
    text-align: center;
}

.badge-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation au survol des cartes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== STYLES DES CATÉGORIES ===== */
.categories {
    position: relative;
    overflow: hidden;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.03), rgba(255, 140, 66, 0.03));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-image {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i,
.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.category-card:hover .category-content h3 {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== STYLES DU PROFIL ===== */
.profile-container {
    padding: 2rem 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 72px);
}

.profile-header {
    position: relative;
    margin-bottom: 6rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(255, 140, 66, 0.1));
    border-radius: 0 0 30% 30%;
    overflow: hidden;
}

.avatar-profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--text-dark);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    margin: -75px auto 1.5rem;
    z-index: 2;
    background-color: #fff;
    object-fit: cover;
}

.profile-card {
    background: var(--text-dark);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

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

.profile-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-dark);
    border: none;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.profile-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-card .card-header h5 i {
    font-size: 1.25rem;
}

.profile-card .card-body {
    padding: 1.5rem;
}

.personal-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.personal-info p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.personal-info i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

.credits-badge {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(245, 48, 3, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 0.5rem 0;
}

.transaction-item,
.consultation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.transaction-item:last-child,
.consultation-item:last-child {
    border-bottom: none;
}

.transaction-item i,
.consultation-item i {
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.transaction-item p,
.consultation-item p {
    margin: 0;
    font-size: 0.9rem;
}

.transaction-item .badge {
    margin-left: auto;
    padding: 0.35em 0.65em;
}

/* Filter Modal Enhancements for Children */
.filter-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    /* Add this to prevent overflow */
}

/* Add this to ensure the filter form doesn't cause horizontal scroll */
.filter-modal-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure the row in filter modal doesn't cause overflow */
.filter-modal-form .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Ensure fullscreen modal content doesn't cause horizontal scroll */
.modal-fullscreen .modal-content {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure filter steps don't cause horizontal overflow */
.filter-step {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.filter-step.active {
    display: block;
}

.filter-step:not(.active) {
    display: none;
}

/* Filter Level Items */
.filter-level-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.filter-level-item {
    flex: 1 0 calc(50% - 0.375rem);
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    min-width: 120px;
    max-width: calc(50% - 0.375rem);
    box-sizing: border-box;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 576px) {
    .filter-level-item {
        flex: 1 0 100%;
        max-width: 100%;
    }
}

/* Filter Category Container */
.filter-category-container {
    max-width: 100%;
    overflow-x: hidden;
}

.filter-decoration {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(245, 48, 3, 0.1);
    animation: float 8s infinite ease-in-out;
}

.decoration-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.decoration-2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.decoration-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Filter Cards */
.filter-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.filter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: #f53003;
}

.filter-card.selected {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(239, 65, 53, 0.1));
    border-color: #f53003;
    box-shadow: 0 0.5rem 1rem rgba(245, 48, 3, 0.2);
}

.filter-card-icon {
    font-size: 2rem;
    color: #f53003;
    margin-bottom: 0.75rem;
}

.filter-card-label {
    font-weight: 600;
    color: #212529;
}

/* Filter Level Items */
.filter-level-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-level-item {
    flex: 1 0 calc(50% - 0.375rem);
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    min-width: 120px;
}

.filter-level-item:hover {
    transform: translateY(-3px);
    border-color: #f53003;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.filter-level-item.selected {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(239, 65, 53, 0.1));
    border-color: #f53003;
    box-shadow: 0 0.25rem 0.5rem rgba(245, 48, 3, 0.2);
}

.filter-level-content {
    font-weight: 500;
    color: #212529;
}

/* Filter Chips */
.filter-chip {
    background: white;
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    font-weight: 500;
    color: #6c757d;
}

.filter-chip:hover {
    transform: translateY(-2px);
    border-color: #f53003;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.filter-chip.selected {
    background: linear-gradient(135deg, #f53003, #ef4135);
    border-color: #f53003;
    color: white;
    box-shadow: 0 0.25rem 0.5rem rgba(245, 48, 3, 0.3);
}

/* Filter Buttons */
.filter-apply-btn {
    background: linear-gradient(135deg, #4CAF50, #8BC34A) !important;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.filter-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.6);
}

.filter-reset-btn {
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-reset-btn:hover {
    transform: translateY(-3px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .filter-level-item {
        flex: 1 0 calc(100% - 0.375rem);
    }

    .filter-card {
        padding: 1rem 0.5rem;
    }

    .filter-card-icon {
        font-size: 1.5rem;
    }

    .filter-card-label {
        font-size: 0.9rem;
    }
}

.btn-edit-profile {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--text-dark);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

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

.stats-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.stats-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Animation des icônes */
.feature-card:hover .feature-icon {
    animation: float 3s ease-in-out infinite;
}

.feature-game:hover,
.feature-access:hover,
.feature-certified:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    color: var(--text-dark);
    font-size: 2rem;
}

.feature-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-devices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

/* ===== CONTENT CARDS ===== */
.content-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.content-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
    color: var(--text-dark);
    border-radius: 10px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

/* ===== TIMELINE & PROGRESS ===== */
.step-timeline {
    position: relative;
    padding: 2rem 0;
}

.step-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    background: var(--primary-gradient);
    z-index: 1;
    display: none;
}

@media (min-width: 768px) {
    .step-timeline::before {
        display: block;
    }
}

.step-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 0;
}

.step-circle-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--text-dark);
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 48, 3, 0.3);
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
}

.step-item:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 48, 3, 0.4);
}

.step-info {
    background: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-info {
    transform: translateY(-3px);
}

.step-item:hover .step-info::before {
    opacity: 1;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--text-dark);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 102, 0, 0.1);
    transform: translateY(0);
}

.stats-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.15);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(214, 69, 0, 0.9) 0%,
            rgba(255, 140, 0, 0.95) 50%,
            rgba(214, 69, 0, 0.9) 100%);
    background-size: 200% 200%;
    z-index: 1;
    opacity: 0.97;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientPulse 10s ease infinite;
}

.stats-section:hover::before {
    opacity: 1;
    animation: gradientPulse 5s ease infinite;
    background: linear-gradient(-45deg,
            rgba(255, 102, 0, 0.9) 0%,
            rgba(255, 165, 0, 0.95) 25%,
            rgba(255, 102, 0, 0.9) 50%,
            rgba(255, 165, 0, 0.95) 75%,
            rgba(255, 102, 0, 0.9) 100%);
    background-size: 200% 200%;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stat-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.stats-section:hover .stat-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.stat-number h3 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--text-dark);
    font-weight: bold;
}

.stat-label p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stat-description p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== PROGRESS BARS ===== */
.level-progress .progress {
    height: 10px;
    background-color: var(--bg-light);
    border-radius: 5px;
}

.level-progress .progress-bar {
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.progress-label {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 240, 240, 0.98) 100%);
    border: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.testimonial-author h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.badge i {
    animation: float 2s ease-in-out infinite;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-light {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
}

.object-fit-cover {
    object-fit: cover;
}

/* Correction pour line-clamp */
.text-ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Correction pour background-clip */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {

    h1,
    .h1 {
        font-size: 1.75rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.4rem 1rem;
    }

    .sidebar {
        min-height: auto;
    }
}

@media (min-width: 576px) and (max-width: 992px) {

    h1,
    .h1 {
        font-size: 2.25rem;
    }

    h2,
    .h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .step-timeline {
        padding: 40px 0;
    }

    .step-item {
        display: flex;
        align-items: center;
        margin-bottom: 60px;
    }

    .step-circle-wrapper {
        margin-bottom: 0;
        flex: 0 0 auto;
        width: 60px;
    }

    .step-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .step-info {
        flex: 1;
        margin: 0 30px;
    }

    .step-item:nth-child(odd) .step-info {
        margin-left: 40px;
        margin-right: 0;
    }

    .step-item:nth-child(even) .step-info {
        margin-right: 40px;
        margin-left: 0;
    }

    .step-item:nth-child(even) {
        flex-direction: row-reverse;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
    }
}

/* ===== CONTENT PAGE STYLES ===== */
.content-hero {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
    padding: 4rem 0;
}

.content-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}


.content-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Filters Card */
.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.875rem;
}

.filter-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 48, 3, 0.25);
}

.filter-actions {
    margin-top: 2rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Content Cards */
.content-card {
    /* background: var(--text-light); */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .content-img {
    transform: scale(1.05);
}

.content-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

/* Card Badges */
.card-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.badge-credits {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.badge-views {
    background: rgba(13, 110, 253, 0.9);
    color: var(--text-dark);
}

.badge-langue {
    background: rgba(25, 135, 84, 0.9);
    color: var(--text-dark);
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-meta {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.meta-item {
    display: inline-block;
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-actions {
    margin-top: auto;
}

.card-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    color: var(--primary-color);
    font-size: 2rem;
}

.empty-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-hero {
        padding: 2rem 0;
    }

    .content-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .content-stats .stat-item {
        min-width: auto;
    }

    .filters-card {
        position: static;
        margin-bottom: 2rem;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        height: calc(100% - 180px);
    }
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-hero {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
    padding: 4rem 0;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--text-dark);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.avatar-img:hover {
    transform: scale(1.05);
}

.avatar-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--text-dark);
    box-shadow: var(--shadow-light);
}

.avatar-status i {
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* Personalized Learning Path */
.learning-path-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.learning-path-title {
    color: #f53003;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.learning-path-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

.learning-path-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.learning-path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.learning-path-icon {
    font-size: 2.5rem;
    color: #f53003;
    margin-bottom: 1rem;
}

.learning-path-content h3 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.learning-path-content p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.learning-path-progress {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.learning-path-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f53003, #ef4135);
    border-radius: 5px;
}

.learning-path-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.learning-path-stat {
    text-align: center;
}

.learning-path-stat-value {
    font-weight: 700;
    color: #f53003;
    font-size: 1.2rem;
}

.learning-path-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Consultation History */
.consultations-list {
    max-height: 400px;
    overflow-y: auto;
}

.consultation-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.consultation-item:last-child {
    border-bottom: none;
}

.consultation-icon {
    width: 40px;
    height: 40px;
    background: #f530031a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.consultation-icon i {
    color: #f53003;
}

.consultation-details {
    flex: 1;
    min-width: 0;
}

.consultation-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.consultation-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.consultation-type {
    background: #f530031a;
    color: #f53003;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
}

.consultation-date {
    color: #6c757d;
}

.consultation-actions {
    margin-left: 1rem;
    flex-shrink: 0;
}

.empty-icon {
    text-align: center;
    font-size: 3rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.empty-text {
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-subtext {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Stats Cards */
.stat-icon {
    width: 50px;
    height: 50px;
    background: #f530031a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    color: #f53003;
    font-size: 1.5rem;
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-hero {
        padding: 2rem 0;
    }

    .content-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .content-stats .stat-item {
        min-width: auto;
    }

    .filters-card {
        position: static;
        margin-bottom: 2rem;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        height: calc(100% - 180px);
    }

    .consultation-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .consultation-item {
        flex-wrap: wrap;
    }

    .consultation-actions {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
}

/* ===== GENERAL STYLES ===== */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.btn-main {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--text-dark);
    text-decoration: none;
}

.text-main {
    color: var(--primary-color) !important;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.section-title-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-badge {
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITIES ===== */
.shadow-custom {
    box-shadow: var(--shadow-light);
}

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

.transition-all {
    transition: var(--transition);
}

/* ===== CONTENT DETAIL PAGE STYLES ===== */
.content-detail-hero {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
    padding: 4rem 0;
    position: relative;
}

.content-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--text-dark);
}

.content-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.content-detail-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 4rem;
}

.content-info {
    padding: 2rem;
    background: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    height: 100%;
}

.content-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: white;
}

.badge-type {
    background: rgba(245, 48, 3, 0.9);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.badge-credits {
    background: rgba(255, 193, 7, 0.9);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.badge-langue {
    background: rgba(25, 135, 84, 0.9);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.content-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.content-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-levels {
    margin-bottom: 2rem;
}

.levels-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.levels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.level-badge {
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(245, 48, 3, 0.2);
}

.content-actions {
    margin-top: 2rem;
}

.credits-info {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.credits-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.credits-text {
    font-weight: 600;
    color: #856404;
    font-size: 1.1rem;
}

.login-required {
    text-align: center;
}

.login-required .alert {
    margin-bottom: 1rem;
    border: none;
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* Content Preview Card */
.content-preview-card {
    background: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-preview-card .card-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.content-preview-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.content-preview-card .card-body {
    padding: 2rem;
}

.content-preview-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 300px;
}

.content-preview {
    padding: 1rem;
    background: #f8f9fa;
    min-height: 300px;
}

.content-preview iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    background: #f8f9fa;
}

.content-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Sidebar Cards */
.content-stats-card,
.content-info-card {
    background: var(--text-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.content-stats-card .card-header,
.content-info-card .card-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.content-stats-card .card-title,
.content-info-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.content-stats-card .card-body,
.content-info-card .card-body {
    padding: 1.5rem;
}

/* Stats Items */
.stat-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stat-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.info-content {
    flex: 1;
}

.info-content label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.info-content p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-dark);
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    overflow-x: hidden;
    /* Add this to prevent horizontal scroll */
    max-width: 100vw;
    /* Add this to ensure it doesn't exceed viewport */
}

/* Add specific styles for the fullscreen modal */
.modal-fullscreen .modal-body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-detail-hero {
        padding: 2rem 0;
    }

    .content-title {
        font-size: 2rem;
    }

    .content-detail-img,
    .content-detail-placeholder {
        height: 250px;
    }

    .content-info {
        padding: 1.5rem;
    }

    .levels-list {
        justify-content: center;
    }

    .content-preview-card .card-body {
        padding: 1rem;
    }

    .content-preview iframe {
        height: 300px;
    }
}

/* ===== NAVBAR FRANÇAISE ===== */
/* .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent !important;
    background: linear-gradient(to right,
            rgba(0, 85, 164, 0.9) 0%,
            rgba(239, 65, 53, 0.5) 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .navbar-brand {
    color: var(--text-dark);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--text-dark) !important;
    opacity: 0.9;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: var(--text-dark);
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--primary-color) !important;
    background-color: rgba(245, 48, 3, 0.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Pour le bouton de déconnexion sur mobile */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        width: auto;
        justify-content: flex-start;
    }
}

/* Ligne 762 - Correction spécifique pour line-clamp */
.content-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ligne 1356 - Correction spécifique pour background-clip */
.gradient-button {
    background: var(--primary-gradient);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

/* Correction pour tous les line-clamp */
[class*='line-clamp'] {
    display: -webkit-box;
    -webkit-line-clamp: inherit;
    line-clamp: inherit;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Correction pour tous les background-clip */
[class*='background-clip'] {
    -webkit-background-clip: inherit;
    background-clip: inherit;
}

/* Hero Section - Nouveau style */
.hero-modern {
    color: white;
    overflow: hidden;
    min-height: 100vh;
}

/* Hero Content - Pour les autres pages (sans min-height 100vh) */
.hero-content {
    color: white;
    overflow: hidden;
    min-height: auto;
}

.hero-modern .object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.hero-modern .z-index-1 {
    z-index: 1;
}

.hero-modern h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-modern .btn-outline-light {
    border-color: white;
    color: white;
}

.hero-modern .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Scroll horizontal */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
}

/* Scroll horizontal naturel et fluide */
.scroll-content {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    /* Support tactile optimisé pour mobile */
    touch-action: pan-x;
}

.scroll-content>div {
    flex: 0 0 300px;
    /* Taille fixe des cartes */
}

/* Masquer complètement la scrollbar */
.scroll-content::-webkit-scrollbar {
    display: none;
}

.scroll-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation par flèches */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 85, 164, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Styles pour les cartes de catégories cliquables */
.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    padding: 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(245, 48, 3, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(245, 48, 3, 0.2);
}

.category-card:hover:before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    color: #f53003;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    max-height: 80px;
    max-width: 80px;
    object-fit: contain;
}

.category-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 0.9rem;
    color: #666;
}

.stat-item i {
    margin-right: 5px;
    color: #f53003;
}

.view-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 0;
    color: #f53003;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.view-more i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.category-card:hover .view-more i {
    transform: translateX(5px);
}

/* Conteneur des marquees */
.partners-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Style du bandeau défilant */
.partners-marquee {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.partners-marquee:before,
.partners-marquee:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100%;
    top: 0;
    z-index: 2;
}

.partners-marquee:before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.partners-marquee:after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Animation de défilement */
.partners-track {
    display: flex;
    align-items: center;
    animation: marquee 30s linear infinite;
}

.partners-marquee-reverse .partners-track {
    animation-direction: reverse;
    margin-left: -50px;
    /* Décalage pour le quinconce */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

/* Chaque logo partenaire */
.partner-item {
    flex-shrink: 0;
    padding: 0 30px;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Style du cercle autour du logo */
.partner-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.partner-circle:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(245, 48, 3, 0.5);
    /* Utilise la couleur principale du site */
}

.partner-circle img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

/* Liens des partenaires */
.partner-link {
    display: inline-block;
    text-decoration: none;
}

/* Adaptation mobile */
@media (max-width: 767px) {
    .partner-circle {
        width: 80px;
        height: 80px;
    }

    .partner-item {
        padding: 0 15px;
    }

    .partners-track {
        animation-duration: 20s;
    }
}

.hero-bg {
    background: linear-gradient(to right,
            rgba(0, 85, 164, 0.9) 0%,
            rgba(239, 65, 53, 0.5) 100%) !important;
}

/* ==========================================================================
   CSS Critique pour Performance et Accessibilité - MagabyFrench
   ========================================================================== */

/* Critical CSS pour hero section - chargement prioritaire */
.hero-modern {
    background: #0055a4;
    /* Couleur unie bleue - PLUS de dégradé */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

/* Navigation critique */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background: #0055a4;
    /* Navigation unie bleue aussi */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand img {
    width: auto;
    height: 50px;
    transition: transform 0.3s ease;
}

/* Boutons critiques */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    /* border: 2px solid transparent; */
}

.btn-main {
    background: #ef4135;
    /* Bouton rouge uni */
    color: white;
    border-color: white;
}

.btn-main:hover {
    background: #c73529;
    /* Rouge plus foncé au hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 65, 53, 0.6);
    color: white;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Layout critique mobile */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 100vh;
        padding-bottom: 100px;
        /* Espace pour navigation mobile */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-modern .container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 100px);
        width: 100%;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Accessibilité critique */
*:focus-visible {
    outline: 2px solid #0055a4;
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    background: #0055a4;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 8px;
    color: white;
}

/* Préchargement des polices critiques */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Poppins Regular'), local('Poppins-Regular');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Montserrat Bold'), local('Montserrat-Bold');
}

/* Optimisations performance */
.hero-modern img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.floating-stat-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* États de chargement */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animation de défilement fluide pour UX */
html {
    scroll-behavior: smooth;
}

/* Réduction de mouvement pour accessibilité */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-modern {
        background: #0055a4;
        /* Fallback statique */
    }
}

/* Optimisation pour les connexions lentes */
@media (max-width: 768px) and (max-resolution: 150dpi) {
    .hero-modern {
        background: #0055a4;
        /* Couleur unie sur mobile low-res */
    }
}

/* Performance - Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Critique pour navigation mobile bottom */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
        /* Espace pour navigation mobile */
    }

    .mobile-nav-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .mobile-bottom-nav {
        background: var(--primary-color);
        /* Navigation mobile unie bleue */
        height: 70px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    }
}

/* Styles pour les en-têtes de section */
.section-header {
    position: relative;
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-badge {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    /* Bleu français */
    background-color: rgba(0, 85, 164, 0.1);
    /* Bleu clair */
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 85, 164, 0.2);
}

.section-badge i {
    margin-right: 0.5rem;
}

.section-title {
    position: relative;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--text-color);
    line-height: 1.2;
    display: inline-block;
}

.section-title-decoration {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(0, 85, 164, 0.3);
    /* Couleur unie bleue atténuée */
    z-index: 1;
    border-radius: 3px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.section-title:hover .section-title-decoration {
    height: 15px;
    transform: rotate(-0.5deg);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Styles spécifiques pour chaque section */
.popular-content .section-badge {
    background-color: rgba(239, 65, 53, 0.1);
    /* Rouge clair */
    color: var(--secondary-color);
    /* Rouge français */
    border: 1px solid rgba(239, 65, 53, 0.2);
}

.popular-content .section-title-decoration {
    background: rgba(239, 65, 53, 0.3);
    /* Couleur unie rouge atténuée */
}

/* Animation pour les badges */
@keyframes floatBadge {
    0% {
        transform: translateY(0) rotate(-1deg);
        box-shadow: 0 2px 5px rgba(0, 85, 164, 0.1);
    }

    50% {
        transform: translateY(-5px) rotate(1deg);
        box-shadow: 0 5px 15px rgba(0, 85, 164, 0.2);
    }

    100% {
        transform: translateY(0) rotate(-1deg);
        box-shadow: 0 2px 5px rgba(0, 85, 164, 0.1);
    }
}

.section-badge:hover {
    animation: floatBadge 2s ease-in-out infinite;
}

/* ===== OFFCANVAS NAVIGATION STYLES ===== */
.offcanvas {
    --bs-offcanvas-width: 300px;
}

.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    border-bottom: none;
}

.offcanvas-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--white-color);
}

.offcanvas-body {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
}

.offcanvas .nav-link {
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.offcanvas .nav-link:hover {
    background-color: var(--bg-muted);
    color: var(--primary-color);
    transform: translateX(5px);
}

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

.offcanvas .nav-link.active:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
}

.offcanvas .user-section {
    background: var(--white-color);
    border-radius: var(--border-radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.offcanvas .avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.offcanvas hr {
    margin: 1rem 0;
    border-color: var(--border-color);
}

.offcanvas .btn {
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-base);
}

.offcanvas .btn-main {
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
}

.offcanvas .btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white-color);
}

.offcanvas .btn-outline-main {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.offcanvas .btn-outline-main:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Responsive pour l'offcanvas */
@media (max-width: 767.98px) {
    .offcanvas {
        --bs-offcanvas-width: 280px;
    }
}

/* Animation pour l'ouverture de l'offcanvas */
.offcanvas.showing {
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

/* Amélioration du backdrop */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* ===== MOBILE FILTER OFFCANVAS STYLES ===== */
/* Bouton de filtre mobile */
.mobile-filter-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: var(--text-on-primary);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.mobile-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-on-primary);
}

.mobile-filter-btn:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-on-primary);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(0, 85, 164, 0.2);
}

.mobile-filter-btn:active {
    transform: translateY(0);
}

/* Offcanvas personnalisé */
.offcanvas {
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
}

.offcanvas-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.offcanvas-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.offcanvas-body {
    padding: 1.5rem;
}

/* Styles des filtres dans l'offcanvas */
.offcanvas .filter-group {
    margin-bottom: 1.5rem;
}

.offcanvas .filter-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.offcanvas .filter-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.offcanvas .filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}

.offcanvas .filter-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.offcanvas .btn {
    border-radius: var(--border-radius-md);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
}

.offcanvas .btn-main {
    background: var(--primary-color);
    border: none;
    color: var(--text-on-primary);
}

.offcanvas .btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-on-primary);
}

.offcanvas .btn-outline-main {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.offcanvas .btn-outline-main:hover {
    background: var(--primary-color);
    color: var(--text-on-primary);
}

.offcanvas .btn-secondary {
    background: var(--bg-muted);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.offcanvas .btn-secondary:hover {
    background: var(--text-muted);
    color: var(--white-color);
}

/* Responsive pour le bouton mobile */
@media (min-width: 992px) {
    .mobile-filter-btn {
        display: none !important;
    }
}

/* Animation pour l'ouverture de l'offcanvas */
.offcanvas.showing {
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

/* Amélioration du backdrop */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Style pour l'icône dans le bouton mobile */
.mobile-filter-btn .fas {
    margin-right: 0.5rem;
}

.mobile-filter-btn .fa-chevron-right {
    margin-left: 0.5rem;
    margin-right: 0;
    transition: transform var(--transition-base);
}

.mobile-filter-btn:hover .fa-chevron-right {
    transform: translateX(3px);
}

.bg-gradient {
    background: linear-gradient(135deg, rgba(0, 85, 164, 0.85) 0%, rgba(239, 65, 53, 0.6) 100%) !important;
}

/* =========================
   MASCOT CHARACTER STYLES
   ========================= */
.mascot-container {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mascot-character {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    animation: bounce 2s infinite;
    max-width: 100%;
}

.mascot-character-step2 {
    animation: bounce 2s infinite, tilt 3s infinite;
}

.mascot-body {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FF9E40, #FF6B5A);
}


.mascot-eyes {
    position: absolute;
    top: 40px;
    left: 35px;
    width: 70px;
    height: 25px;
    z-index: 2;
}

.eye {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    box-shadow: inset -3px -5px 5px rgba(0, 0, 0, 0.1);
}

.eye.left {
    left: 0;
}

.eye.right {
    right: 0;
}

.eye::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 6px;
    animation: blink 4s infinite;
}

.mascot-mouth {
    width: 40px;
    height: 20px;
    border-bottom: 5px solid #333;
    border-radius: 0 0 60% 60%;
    position: absolute;
    top: 75px;
    left: 50px;
    z-index: 2;
}

.mascot-cheeks {
    position: absolute;
    width: 25px;
    height: 15px;
    background: rgba(255, 158, 64, 0.6);
    border-radius: 50%;
    top: 65px;
    z-index: 1;
}

.mascot-cheeks.left {
    left: 20px;
}

.mascot-cheeks.right {
    right: 20px;
}

.step-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.step-description {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Animations */
@keyframes bounce {

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

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

@keyframes tilt {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes blink {

    0%,
    45%,
    55%,
    100% {
        height: 8px;
    }

    50% {
        height: 0;
        top: 10px;
    }
}

@keyframes happyJump {

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

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

@keyframes wink {

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

    95% {
        transform: scaleX(0.1);
    }
}

@keyframes smile {

    0%,
    100% {
        border-radius: 0 0 60% 60%;
    }

    50% {
        border-radius: 0 0 70% 70%;
    }
}

.mascot-character:hover .eye.left {
    animation: wink 2s infinite;
}

.mascot-character:hover .mascot-mouth {
    animation: smile 3s infinite;
}

/* =========================
   CELEBRATION EFFECTS
   ========================= */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 85, 164, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.celebration-content {
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: zoomIn 0.5s ease, pulse 2s infinite;
}

.celebration-text {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.celebration-subtext {
    font-size: 1.5rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

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

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

/* =========================
   2-STEP FILTER MODAL
   ========================= */
.filter-step {
    display: none;
}

.filter-step.active {
    display: block;
}

.filter-level-container,
.filter-category-container {
    max-height: 60vh;
    overflow-y: auto;
}

/* Filter Category Container */
.filter-category-container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Filter Category Items */
.modal-body * {
    max-width: 100%;
    box-sizing: border-box;
}

.filter-category-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}


.filter-level-item,
.filter-category-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    text-align: center;
}


.filter-level-item:hover,
.filter-category-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.filter-level-item.selected,
.filter-category-item.selected {
    border-color: var(--primary-color);
    background: rgba(0, 85, 164, 0.05);
    box-shadow: var(--shadow-md);
}

.filter-level-content,
.filter-card-label {
    font-weight: 600;
    color: var(--text-primary);
}

.filter-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    text-align: center;
    height: 100%;
}

.filter-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.filter-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 85, 164, 0.05);
    box-shadow: var(--shadow-md);
}

.filter-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-navigation {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Search Container */
.search-container {
    margin-bottom: 1.5rem;
}

.search-container .input-group-text {
    background: var(--primary-color);
    color: white;
    border: none;
}

.search-container .form-control {
    border-left: none;
}

.search-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 85, 164, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .filter-level-item,
    .filter-category-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .filter-card {
        padding: 1rem 0.75rem;
    }

    .filter-card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .mascot-character {
        width: 100px;
        height: 100px;
    }

    .mascot-body {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 1rem;
    }
}