:root {
    --rouge: #e11d48;
    --rouge-light: #fb7185;
    --rouge-dark: #be123c;
    --bleu: #0f172a;
    --bleu-light: #1e293b;
    --bleu-primary: #1e40af;
    --gris: #475569;
    --gris-light: #64748b;
    --gris-dark: #0f172a;
    --fond: #f8fafc;
    --fond-purple: #f0f4ff;
    --blanc: #ffffff;
    --succes: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 25px rgba(225, 29, 72, 0.4);
    --shadow-blue: 0 10px 25px rgba(30, 64, 175, 0.4);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   V5.0 — Dark Mode
   ============================================================ */
[data-theme="dark"] {
    --bleu: #e2e8f0;
    --bleu-light: #cbd5e1;
    --bleu-primary: #60a5fa;
    --gris: #94a3b8;
    --gris-light: #64748b;
    --fond: #0f172a;
    --fond-purple: #1a1035;
    --blanc: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

[data-theme="dark"] body {
    background: var(--fond);
    color: var(--bleu);
}

[data-theme="dark"] .card {
    background: var(--blanc);
    border-color: rgba(255, 255, 255, 0.07);
    color: var(--bleu);
}

[data-theme="dark"] .form-control {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #475569;
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-nav-item:hover,
[data-theme="dark"] .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer {
    background: #020617;
}

/* ── Dark mode : toutes les sections ── */
[data-theme="dark"] section {
    background: #0f172a;
    color: #e2e8f0;
}
[data-theme="dark"] #problem-solution  { background: #0f172a !important; }
[data-theme="dark"] #featured-courses  { background: #080f1e !important; }
[data-theme="dark"] #social-proof      { background: #080f1e !important; }
[data-theme="dark"] #valeur            { background: #080f1e !important; }
[data-theme="dark"] #welcome-video     { background: #080f1e !important; }
[data-theme="dark"] .about-section     { background: #080f1e !important; }
[data-theme="dark"] .masterclass-section { background: #0f172a !important; }
[data-theme="dark"] .articles-section  { background: #0f172a !important; }
[data-theme="dark"] .contact-section   { background: #080f1e !important; }

/* ── Dark mode : backgrounds inline white / light ── */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"] {
    background: #1e293b !important;
    color: #e2e8f0;
}
[data-theme="dark"] [style*="background: #f8fafc"],
[data-theme="dark"] [style*="background:#f8fafc"],
[data-theme="dark"] [style*="background: #f1f5f9"],
[data-theme="dark"] [style*="background: #f0f4ff"],
[data-theme="dark"] [style*="background: #eee"] {
    background: #1e293b !important;
    color: #e2e8f0;
}
/* Gradients clairs → dark */
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f8fafc"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, var(--fond-purple)"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, var(--fond)"] {
    background: #080f1e !important;
}
/* Section garantie jaune → dark bleu */
[data-theme="dark"] section[style*="fef3c7"],
[data-theme="dark"] section[style*="fde68a"] {
    background: linear-gradient(135deg, #0f1f3d, #0f172a) !important;
}
[data-theme="dark"] section[style*="fef3c7"] h2,
[data-theme="dark"] section[style*="fde68a"] h2 { color: #93c5fd !important; }
[data-theme="dark"] section[style*="fef3c7"] p,
[data-theme="dark"] section[style*="fde68a"] p  { color: #94a3b8 !important; }

/* ── Dark mode : boites problème/solution ── */
[data-theme="dark"] [style*="background: #fef2f2"] {
    background: rgba(239,68,68,0.08) !important;
    border-left-color: #ef4444;
}
[data-theme="dark"] [style*="background: #f0fdf4"] {
    background: rgba(16,185,129,0.08) !important;
    border-left-color: #10b981;
}

/* ── Dark mode : texte forcé sombre → clair ── */
[data-theme="dark"] [style*="color: #1e293b"],
[data-theme="dark"] [style*="color:#1e293b"],
[data-theme="dark"] [style*="color: #0f172a"],
[data-theme="dark"] [style*="color: #334155"],
[data-theme="dark"] [style*="color: #374151"] { color: #cbd5e1 !important; }
[data-theme="dark"] [style*="color: var(--gris-dark)"] { color: #94a3b8 !important; }

/* ── Dark mode : composants clés ── */
[data-theme="dark"] .formation-card   { background: #1e293b !important; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .formation-content { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .formation-title  { color: #f1f5f9 !important; }
[data-theme="dark"] .formation-desc   { color: #94a3b8 !important; }
[data-theme="dark"] .formation-image[style*="background:#e2e8f0"],
[data-theme="dark"] .formation-image[style*="background: #e2e8f0"] { background: #334155 !important; color: #475569; }

[data-theme="dark"] .article-card     { background: #1e293b !important; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .article-content  { background: #1e293b; color: #e2e8f0; }

[data-theme="dark"] .progress-bar     { background: #334155; }
[data-theme="dark"] .badge-payant     { background: rgba(225,29,72,0.15); color: #fb7185; }
[data-theme="dark"] .badge-gratuit    { background: rgba(16,185,129,0.15); color: #34d399; }

[data-theme="dark"] .community-message         { background: #1e293b !important; color: #e2e8f0; }
[data-theme="dark"] .community-message.pinned  { background: rgba(245,158,11,0.1) !important; }

[data-theme="dark"] header nav a      { color: #e2e8f0; }
[data-theme="dark"] header nav a:hover { color: var(--rouge); }
[data-theme="dark"] .trust-bar        { background: linear-gradient(135deg,#1e3a8a,#1e40af) !important; }
[data-theme="dark"] .promo-banner     { background: linear-gradient(135deg,#991b1b,#dc2626) !important; }
[data-theme="dark"] .about-image img  { filter: brightness(0.8); }
[data-theme="dark"] .admin-sidebar    { background: #020617 !important; }
[data-theme="dark"] .admin-content,
[data-theme="dark"] .admin-main       { background: #0f172a !important; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ── Dark mode : toggle visible ── */
#themeToggle {
    display: none;
}
[data-theme] #themeToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   V5.0 — Glassmorphism
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   V5.0 — Formation cards 3D
   ============================================================ */
.formation-card {
    transition: box-shadow 0.3s ease;
}

/* Badge aperçu gratuit */
.preview-free-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}

/* ============================================================
   V5.0 — Profil & Communauté
   ============================================================ */
.community-message-enter {
    animation: msgIn 0.3s ease forwards;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--fond);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--fond);
    color: var(--gris);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--bleu);
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.promo-banner {
    background: linear-gradient(90deg, var(--bleu-primary) 0%, #3730a3 100%);
    color: white;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1001;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.promo-banner-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.promo-banner-icon {
    font-size: 1.5rem;
}

.promo-discount {
    background: var(--rouge);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
}

.promo-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

.promo-countdown-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    min-width: 2rem;
    text-align: center;
}

.promo-btn {
    background: var(--rouge);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.promo-btn:hover {
    background: var(--rouge-dark);
    transform: translateY(-2px);
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* HERO SECTION IMPROVEMENTS */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gris);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* Hero foncé (avec canvas 3D) — texte clair */
.hero-dark .hero-content h1 {
    background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 55%, #fb7185 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-dark .hero-content p { color: #94a3b8; }
.hero-dark .hero-content strong { color: #e2e8f0; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-video-wrapper, .hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: block;
    background: #000;
}

.hero-video-wrapper video, .hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* FEATURE CARDS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--blanc);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--rouge-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: #fdf2f2;
    color: var(--rouge);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gris-light);
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--rouge);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gris-light);
}

/* BUTTONS */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
}

.header-promo-active {
    top: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bleu);
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--gris);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--bleu);
    background: rgba(15, 23, 42, 0.04);
}

nav a.active {
    background: var(--rouge);
    color: white;
}

nav a.active:hover {
    background: var(--rouge-dark);
    color: white;
}

.nav-btn-primary {
    background: var(--bleu-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-blue);
}

.nav-btn-primary:hover {
    background: #1e3a8a !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--blanc);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gris-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--rouge);
    transform: rotate(90deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--rouge), var(--rouge-dark)) !important;
    color: #FFFFFF !important;
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--rouge-light), var(--rouge)) !important;
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.5);
}

.btn-blue {
    background: var(--bleu-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
    background: #1e3a8a !important;
}

.btn-success {
    background: var(--succes);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--bleu);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-outline {
    background: transparent;
    color: var(--bleu);
    border-color: #cbd5e1;
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.02);
    border-color: var(--bleu);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
}

.videos-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.videos-section:nth-child(even) {
    background: #fcfcfc;
}
.welcome-video-section .video-container {
    transition: transform 0.4s ease;
}
.welcome-video-section:hover .video-container {
    transform: translateY(-5px);
}

.skool-btn {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 0.5rem 1.25rem;
}

.skool-btn:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.nav-btn-communaute {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem !important;
    font-weight: 600;
}

.nav-btn-communaute:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.card {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--bleu);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--gris-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--bleu);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--rouge);
    background: white;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-success,
.badge-gratuit {
    background: #d1fae5;
    color: #065f46;
}

.badge-payant {
    background: #ffe4e6;
    color: #be123c;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-featured {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--succes);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--fond-purple) 0%, var(--fond) 50%, var(--blanc) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--bleu);
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--bleu-primary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gris);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-light) 100%);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.stats-section {
    padding: 4rem 0;
    background: var(--fond-purple);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--bleu);
    line-height: 1;
}

.stat-number span {
    color: var(--bleu-primary);
}

.stat-label {
    color: var(--gris);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-section {
    padding: 5rem 0;
    background: var(--blanc);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gris-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.formation-card,
.article-card,
.youtube-card,
.banner-card {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.formation-card:hover,
.article-card:hover,
.youtube-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.formation-image,
.article-image,
.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.formation-content,
.article-content,
.banner-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.formation-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bleu);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.formation-desc {
    color: var(--gris);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #10b981;
}

.price-tag.payant {
    color: var(--rouge);
}

.formation-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.formation-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--rouge), var(--rouge-dark));
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.formation-card-wrapper {
    position: relative;
}

.ad-section {
    padding: 3rem 0;
}

.ad-card {
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-light) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.ad-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.ad-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ad-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ad-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.ad-sidebar {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
}

.ad-sidebar img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.about-section {
    padding: 5rem 0;
    background: var(--fond);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--gris);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.9rem;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.gallery-section {
    padding: 5rem 0;
    background: var(--blanc);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 600;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.messages-section {
    padding: 2rem 0;
}

.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    min-height: 500px;
}

.messages-sidebar {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.messages-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: var(--fond);
}

.messages-list {
    max-height: 400px;
    overflow-y: auto;
}

.message-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
}

.message-item:hover {
    background: var(--fond);
}

.message-item.unread {
    background: #eff6ff;
    border-left: 3px solid var(--bleu-primary);
}

.message-item-sender {
    font-weight: 600;
    color: var(--bleu);
    margin-bottom: 0.25rem;
}

.message-item-subject {
    font-size: 0.9rem;
    color: var(--gris);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-item-date {
    font-size: 0.75rem;
    color: var(--gris-light);
    margin-top: 0.25rem;
}

.messages-content {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 2rem;
}

.message-detail {
    margin-bottom: 2rem;
}

.message-detail-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.message-detail-subject {
    font-size: 1.25rem;
    color: var(--bleu);
    margin-bottom: 0.5rem;
}

.message-detail-meta {
    color: var(--gris-light);
    font-size: 0.9rem;
}

.message-detail-body {
    line-height: 1.8;
    color: var(--gris);
}

.message-form {
    background: var(--fond);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.message-badge {
    background: var(--rouge);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}

.testimonials-section {
    padding: 5rem 0;
    background: var(--fond-purple);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.testimonial-card p {
    font-style: italic;
    color: var(--gris);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rouge), var(--rouge-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--gris-light);
}

.articles-section,
.videos-section {
    padding: 4rem 0;
}

.articles-section {
    background: var(--fond);
}

.videos-section {
    background: var(--fond);
    padding: 5rem 0;
}

.youtube-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rouge-light);
}

.youtube-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    background: #000;
}

.youtube-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.youtube-card h4 {
    font-size: 1.05rem;
    color: var(--bleu);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.youtube-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(225, 29, 72, 0.1);
    color: var(--rouge);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.msg-bubble {
    max-width: 75%;
    padding: 0.9rem 1.25rem;
    border-radius: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--transition);
}

.msg-row.me .msg-bubble {
    background: linear-gradient(135deg, var(--bleu-primary), var(--bleu));
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-row.them .msg-bubble {
    background: white;
    color: var(--bleu);
    border: 1px solid #edf2f7;
    border-bottom-left-radius: 4px;
}

.msg-delete-btn {
    opacity: 0;
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: var(--rouge);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.msg-bubble:hover .msg-delete-btn {
    opacity: 1;
}

.msg-delete-btn:hover {
    background: var(--rouge);
    color: white;
    transform: scale(1.1);
}

.contact-section {
    padding: 5rem 0;
    background: var(--bleu);
    border-radius: 24px;
    margin: 2rem 1rem;
    color: white;
}

.contact-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(225, 29, 72, 0.2);
    color: #fb7185;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gris);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.admin-nav-item:hover {
    background: #f1f5f9;
    color: var(--bleu);
}

.admin-nav-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.admin-nav-item.active svg {
    stroke: #2563eb;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bleu);
    font-family: 'Outfit';
}

.stat-label {
    color: var(--gris-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.student-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    gap: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.student-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.student-name {
    font-weight: 700;
    color: var(--bleu);
    font-size: 1.05rem;
}

.student-meta {
    color: var(--gris-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer {
    background: var(--bleu);
    padding: 4rem 0 2rem;
    color: white;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit';
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--rouge);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 1.5rem;
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bleu);
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .messages-container {
        grid-template-columns: 1fr;
    }

    .ad-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanc);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-bottom-left-radius: var(--radius-md);
        border-bottom-right-radius: var(--radius-md);
    }

    #mainNav.open {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #mainNav a {
        padding: 0.75rem 1rem;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo,
    .social-links {
        justify-content: center;
    }

    div[style*="display: flex; gap: 2rem"] {
        flex-direction: column !important;
    }

    .admin-sidebar {
        width: 100% !important;
    }

    .admin-sidebar nav {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 1rem;
        flex-wrap: nowrap;
    }

    .admin-nav-item {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .student-card {
        flex-direction: column;
    }

    .promo-banner-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modern Messaging App UI */
.messenger-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: white;
    border-radius: 20px;
    height: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 1rem;
}

.messenger-sidebar {
    background: #fcfdfe;
    border-right: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}

.messenger-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #edf2f7;
    background: white;
}

.messenger-list {
    overflow-y: auto;
    flex: 1;
}

.messenger-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.messenger-item:hover {
    background: #f1f5f9;
}

.messenger-item.active {
    background: #eff6ff;
    border-left: 4px solid var(--bleu-primary);
}

.messenger-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-light));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.messenger-info {
    flex: 1;
    min-width: 0;
}

.messenger-name {
    font-weight: 700;
    color: var(--bleu);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.messenger-preview {
    font-size: 0.85rem;
    color: var(--gris);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-meta {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.75rem;
    color: var(--gris-light);
}

.chat-window {
    display: flex;
    flex-direction: column;
    background: #fdfdfd;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.chat-header {
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 0;
    scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.msg-row {
    display: flex;
    width: 100%;
    margin-bottom: 0.5rem;
}

.msg-row.me {
    justify-content: flex-end;
}

.msg-row.them {
    justify-content: flex-start;
}

.msg-bubble {
    max-width: 70%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.msg-row.me .msg-bubble {
    background: var(--bleu-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-row.them .msg-bubble {
    background: white;
    color: var(--bleu);
    border: 1px solid #edf2f7;
    border-bottom-left-radius: 4px;
}

.msg-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.4rem;
    display: block;
    text-align: right;
}

/* Enhanced Message Bubbles */
.msg-row {
    display: flex;
    width: 100%;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.3s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-row.me {
    justify-content: flex-end;
}

.msg-row.them {
    justify-content: flex-start;
}

.msg-bubble {
    max-width: 70%;
    padding: 0.9rem 1.1rem;
    border-radius: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    word-wrap: break-word;
}

.msg-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.msg-row.me .msg-bubble {
    background: linear-gradient(135deg, var(--bleu-primary), var(--bleu));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 82, 155, 0.3);
}

.msg-row.me .msg-bubble:hover {
    box-shadow: 0 8px 25px rgba(0, 82, 155, 0.4);
}

.msg-row.them .msg-bubble {
    background: white;
    color: var(--bleu);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.msg-row.them .msg-bubble:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Message Images */
.msg-bubble img {
    max-width: 220px;
    max-height: 160px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.msg-bubble img:hover {
    transform: scale(1.02);
}

/* Enhanced Timestamp */
.msg-time {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.msg-row.me .msg-time {
    color: rgba(255, 255, 255, 0.8);
}

.msg-row.them .msg-time {
    color: var(--gris-light);
}

/* Date Separator */
.msg-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.msg-date-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.msg-date-separator span {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--gris);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Unread Badge */
.unread-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: linear-gradient(135deg, var(--rouge), #dc2626);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Delete Button in Messages */
.msg-delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rouge);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.msg-bubble:hover .msg-delete-btn {
    opacity: 1;
}

.msg-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.chat-footer {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #edf2f7;
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-size: 0.95rem;
    color: var(--bleu);
    outline: none;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bleu-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 82, 155, 0.3);
}

.chat-send-btn:hover {
    background: var(--bleu);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .messenger-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 500px;
        max-height: none;
    }

    .messenger-sidebar {
        display: flex;
    }

    .messenger-sidebar.hidden {
        display: none;
    }

    .chat-window {
        display: flex;
    }

    .chat-window.hidden {
        display: none;
    }
}

/* STATS BAR OVERLAP */
.stats-section {
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TESTIMONIALS SLICK DESIGN */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card p {
    font-style: italic;
    color: var(--gris);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--bleu-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============================================
   FULLSCREEN SUPPORT FOR VIDEOS
   ============================================ */

/* Ensure iframes can go fullscreen */
.video-container {
    position: relative;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fullscreen styles */
.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
    background: #000 !important;
    border-radius: 0 !important;
}

.video-container:fullscreen iframe,
.video-container:-webkit-full-screen iframe,
.video-container:-moz-full-screen iframe,
.video-container:-ms-fullscreen iframe {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

/* Allow fullscreen on html and body */
html:fullscreen,
html:-webkit-full-screen,
html:-moz-full-screen,
html:-ms-fullscreen {
    width: 100% !important;
    height: 100% !important;
}

/* Hide other elements when video is fullscreen */
.video-container:fullscreen ~ *,
.video-container:-webkit-full-screen ~ *,
.video-container:-moz-full-screen ~ *,
.video-container:-ms-fullscreen ~ * {
    display: none !important;
}

/* Watermark visible en plein écran */
.video-container:fullscreen #videoWatermark,
.video-container:-webkit-full-screen #videoWatermark,
.video-container:-moz-full-screen #videoWatermark,
.video-container:-ms-fullscreen #videoWatermark {
    display: block !important;
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 2147483647 !important;
    font-size: 1.2rem !important;
}
