/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
    /* ── Couleurs primaires ── */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-xlight: #eff6ff;
    --col_bg: linear-gradient(270deg, #0f172a 0%, #1e3a8a 40%, #1e1b4b 100%);
    --section-cg-gap: 30px;
    /* ── Couleurs secondaires ── */
    --secondary: #4f46e5;
    --gold-light: #b29700;
    --gold: #d4af37;
    /* ── États ── */
    --success: #059669;
    --success-light: #d1fae5;
    --success-hover: #047857;
    --danger: #dc2626;
    --danger-light: #fee2e2;

    /* ── Accents ── */
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --amber: #f59e0b;
    --amber-light: #fef3c7;

    /* ── Neutres ── */
    --slate-light: #f1f5f9;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --muted: #64748b;
    --muted-2: rgba(0, 0, 0, 0.5);
    --border: #4c3bc9;
    --border-light: #f1f5f9;
    --surface: #f8fafc;
    --white: #ffffff;

    /* ── Typographie ── */
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;

    /* ── Ombres ── */
    --shadow-sm: 0 1px 3px rgba(108, 92, 231, 0.06), 0 1px 2px rgba(108, 92, 231, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* ── Rayons ── */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --border-radius-md: 0.85rem;
    --border-radius-xl: 1.75rem;
    /* ── Transitions ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --trans: all 0.25s var(--ease);
    --trans-lg: all 0.4s var(--ease);

    /* ── Palette thématique ── */
    --titre: #002080;
    --degrade: linear-gradient(90deg, #2f4a8a, #3b6edc);

    /* ── Overlays & modals ── */
    --bg-overlay: rgba(15, 23, 42, 0.75);
    --modalpol-bg: rgba(255, 255, 255, 0.92);
    --border-color: #bbbbbb;
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.25);

    /* ── Palette violet × teal ── */
    --accent: #00b894;

    /* ── Surfaces ── */
    --bg-card: #ffffff;
    --bg-card-alt: #f3f1fb;

    /* ── Texte ── */
    --text-main: #1a1a2e;
    --text-muted: #3d3d56;

    /* ── Bordures thématiques ── */
    --border-subtle: rgba(108, 92, 231, 0.07);

    /* ── Couleurs UI sémantiques ── */
    --primary-color: #6c5ce7;

    /* ── Ombres thématiques ── */
    --shadow-blue: 0 6px 24px rgba(108, 92, 231, 0.22);
    --shadow-card: 0 1px 4px rgba(108, 92, 231, 0.06), 0 0 0 1px rgba(108, 92, 231, 0.05);

    --cb-primary: #1b2a4a; /* Bleu nuit — header, toggle */
    --cb-accent: #10b981; /* Vert émeraude — bouton envoi, dot en ligne */
    --cb-accent-hover: #059669; /* Vert foncé — hover envoi */
    --cb-user-bg: #1b2a4a; /* Bulle utilisateur */
    --cb-user-text: #ffffff;
    --cb-bot-bg: #e8edf5; /* Bulle bot */
    --cb-bot-text: #1a1a2e;
    --cb-window-bg: #f7f9fc; /* Fond zone messages */
    --cb-input-bg: #ffffff;
    --cb-border: blue;
    --cb-shadow: 0 8px 40px rgba(27, 42, 74, 0.18);
    --cb-radius: 18px;
    --cb-font: "Inter", system-ui, sans-serif;
    --cb-width: 600px;
    --cb-height: 560px;
}
.color_main {
    font-size: 25px;
    color: orangered;
}
/* ─── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
[x-cloak] {
    display: none !important;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: #000;
    background-color: var(--surface);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}
img {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    letter-spacing: -0.02em;
}
code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.875em;
    background-color: var(--slate-light);
    color: var(--secondary);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}
.flex-grow {
    flex-grow: 1;
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    width: min(1400px, 95%);
    margin: auto;
    padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 4rem);
}

.page-section {
    padding: 4rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR — version propre et organisée
   Garde les mêmes variables CSS (--primary, --muted, --radius-full,
   --trans, --shadow-md, etc.) et la même logique que l'original.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Conteneur principal ────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 7px solid var(--muted-2);
    box-shadow: var(--shadow-md);
    font-size: 12px;
}

.navbar-inner {
    width: 100%;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* ─── Logo ────────────────────────────────────────────────────── */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    transition: var(--trans);
}

.logo-link:hover .logo-svg {
    transform: scale(1.08);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.04em;
}

.logo-img {
    width: 120px;
    height: 70px;
}

.logo-img-footer {
    width: 120px;
    height: 60px;
    border-radius: 15px;
}

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

/* ─── Menu de navigation ─────────────────────────────────────── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
}

.nav-menu i {
    color: #66b3ff;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--trans);
}

.nav-item:hover {
    color: var(--primary);
    background: var(--primary-xlight);
    border: 1px solid var(--primary);
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

.nav-item .badge {
    position: absolute;
    top: -5px;
    right: -18px;
    background-color: #ff4757;
    color: #ffffff;
    font-size: 10px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    animation: flottaison 3s ease-in-out infinite;
}
.libre {
    position: absolute;
    top: -35px;
    right: -40px;
    background-color: #ff4757;
    color: #ffffff;
    font-size: 5px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    animation: flottaison 3s ease-in-out infinite;
}

/* ─── Zone de droite (recherche + login + signup) ───────────── */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: 20px;
}

.search-wrapper {
    position: relative;
    display: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .search-wrapper {
        display: block;
    }
}

.search-input {
    width: 12rem;
    max-width: 100%;
    padding: 0.45rem 0.9rem 0.45rem 2.2rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--dark-3);
    font-size: 0.875rem;
    outline: none;
    transition: var(--trans);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: var(--white);
    width: 18rem;
    max-width: 35vw;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.8rem;
    pointer-events: none;
}

.nav-login {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--primary-xlight);
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--trans);
}

.nav-login:hover {
    color: white;
    background: var(--primary);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — compactage progressif avant le passage en mobile
   6 liens + recherche + login + signup saturent vite l'espace,
   donc on resserre par étapes plutôt que de tout casser d'un coup.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1700px) {
    .nav-menu {
        gap: 0.2rem;
    }
    .nav-item {
        font-size: 0.92rem;
        padding: 0.45rem 0.55rem;
    }
    .navbar-right {
        margin-left: 10px;
    }
    .search-input {
        width: 9rem;
    }
}

@media (max-width: 1450px) {
    .search-wrapper {
        display: none !important;
    }
}

@media (max-width: 1300px) {
    .nav-item {
        font-size: 0.82rem;
        gap: 0.2rem;
        padding: 0.4rem 0.45rem;
    }
}

@media (max-width: 1150px) {
    /* garde uniquement les icônes, cache le texte des liens */
    .nav-item {
        font-size: 0;
        padding: 0.45rem 0.55rem;
    }
    .nav-item i {
        font-size: 1.15rem;
    }
}

/* ─── Bascule en menu mobile ─────────────────────────────────── */
@media (max-width: 1023px) {
    .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.6rem 1.1rem;
    }
    .logo-link {
        order: 1;
    }
    .navbar-right {
        order: 2;
        margin-left: auto;
    }
    .nav-menu {
        order: 3;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 0.4rem;
    }
    .nav-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
    .nav-item i {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .nav-item {
        font-size: 0.82rem;
        padding: 0.3rem 0.5rem;
    }
    .nav-item i {
        font-size: 1rem;
    }
    .nav-login {
        font-size: 0.9rem;
        padding: 0.35rem 0.65rem;
    }
}
/* ─── BOUTONS ─────────────────────────────────────────────────── */
.btn_signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--trans);
    text-wrap: nowrap;color:#fff;
    white-space: nowrap;background: var(--primary);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--trans);
    text-wrap: nowrap;
    white-space: nowrap;
}
.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    margin-left: 20px;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-ghost {
    background: transparent;
    color: var(--dark-3);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--primary-hover);
    color: var(--white);
    border-color: var(--primary-light);
}
.btn-dark {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 0.7rem 1.4rem;
}
.btn-dark:hover {
    background: var(--col_bg);
    transform: translateY(-1px);
}
.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.75rem;
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
}
.btn-success {
    background: var(--success);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-success:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
}
.btn-success:disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}
.btn-fit {
    width: fit-content;
}
.ms-1 {
    margin-left: 0.25rem;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(270deg, #0f172a 0%, #1e3a8a 40%, #1e1b4b 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--white);
}
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}
.shape-1 {
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, #60a5fa, transparent);
    top: -8rem;
    right: -8rem;
    animation-delay: 0s;
}
.shape-2 {
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, #a78bfa, transparent);
    bottom: -6rem;
    left: -4rem;
    animation-delay: -3s;
}
.shape-3 {
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, #34d399, transparent);
    top: 30%;
    left: 20%;
    animation-delay: -5s;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 63rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59, 130, 246, 0.05);
    color: #b3c5fd;
    border: 2px solid rgba(147, 197, 253, 0.8);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--white);
}
.hero-gradient-text {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.125rem;
    color: #ffffff;
    max-width: 40rem;
    font-weight: 300;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--amber);
    border-radius: 15px;
    padding: 10px 15px;
}
.hero-stat span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
}
.hero-stat {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;position: relative;
}
.hero-stat-sep {
    width: 1px;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.7);
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.hero-stat .libre{
    position: relative;
    top: -120px;
    right: -18px;
    background-color: #ff4757;
    color: #ffffff;
    font-size: 20px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 4px blue;
    animation: flottaison 3s ease-in-out infinite;
}
.hero-stat .libre::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 18px solid #ff4757;
}


.alt-grid {
    opacity: 0;
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Arrivée depuis la gauche */
.alt-grid.from-left {
    transform: translateX(-100px);
}
/* Arrivée depuis la droite */
.alt-grid.from-right {
    transform: translateX(100px);
}
/* Arrivée depuis le haut */
.alt-grid.from-top {
    transform: translateY(-100px);
}
/* Arrivée depuis le bas */
.alt-grid.from-bottom {
    transform: translateY(100px);
}
/* Position finale */
.alt-grid.show {
    opacity: 1;
    transform: translate(0);
}

@media (prefers-reduced-motion: reduce) {
    .alt-grid {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
}

/* ─── SECTIONS ALTERNÉES (ACCUEIL) ───────────────────────────── */
.sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.alt-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .alt-grid {
        grid-template-columns: 1fr 1fr;
    }
    .alt-grid.reverse .section-info {
        order: 2;
    }
}
.section-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: justify;
}
.section-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tag-blue {
    color: var(--primary);
}
.tag-emerald {
    color: var(--success);
}
.tag-purple {
    color: var(--purple);
}
.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.1rem, 2.5vw, 2.1rem);
    font-weight: bolder;
    margin-bottom: 0.2rem;
    color: var(--titre);
    letter-spacing: -0.02em;
    line-height: 1;
}
.section-desc {
    color: #000000;
    font-size: clamp(0.8rem, 1.2vw, 0.8625rem);
    text-align: justify;
}
.section-visual {
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 80%;
}
.section-visual img {
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
}
.visual-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary);
}
.visual-emerald {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--success);
}
.visual-purple {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    color: var(--purple);
}
.visual-glow {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}
.glow-blue {
    background: radial-gradient(circle at 60% 40%, var(--primary-light), transparent 70%);
}
.glow-emerald {
    background: radial-gradient(circle at 60% 40%, var(--success-light), transparent 70%);
}
.glow-purple {
    background: radial-gradient(circle at 60% 40%, var(--purple-light), transparent 70%);
}
.visual-icon {
    font-size: 6rem;
    opacity: 0.12;
    position: absolute;
    transition: var(--trans-lg);
}
.section-visual:hover .visual-icon {
    opacity: 0.2;
    transform: scale(1.1) rotate(-5deg);
}
.visual-pill {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}
.pill-blue {
    color: var(--primary-hover);
}
.pill-emerald {
    color: var(--success-hover);
}
.pill-purple {
    color: var(--purple);
}

/* ─── PAGE VIDÉOS ────────────────────────────────────────────── */
.video-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .video-layout {
        grid-template-columns: 1fr 340px;
    }
}
.video-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.video-player {
    position: relative;
    background: #020617;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid #1e293b;
}
.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 35%,
        transparent 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
}
.player-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.player-live-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
}
.live-dot {
    width: 0.45rem;
    height: 0.45rem;
    background: #4ade80;
    border-radius: var(--radius-full);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.player-quality {
    background: rgba(0, 0, 0, 0.5);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}
.player-center {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}
.play-btn {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.25);
    transition: var(--trans);
}
.play-btn i {
    margin-left: 0.15rem;
}
.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.2);
}
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.progress-track {
    height: 0.35rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    cursor: pointer;
}
.progress-thumb {
    height: 100%;
    background: var(--primary);
    transition: width 0.1s linear;
}
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cbd5e1;
}
.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ctrl-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--trans);
}
.ctrl-btn:hover {
    color: var(--white);
}
.time-display {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-left: 0.25rem;
}
.player-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.04);
}
.video-info {
    padding: 0.25rem;
}
.video-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.875rem;
}
.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.playlist {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}
.playlist-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.playlist-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    transition: var(--trans);
    text-align: left;
}
.playlist-item:hover {
    background: var(--surface);
}
.playlist-item-active {
    background: var(--primary-xlight) !important;
    border-color: var(--primary-light) !important;
}
.playlist-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}
.playlist-item-active .playlist-num {
    color: var(--primary);
}
.playlist-info {
    flex: 1;
    min-width: 0;
}
.playlist-item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-dur {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
.playlist-play-icon {
    font-size: 0.7rem;
    color: var(--muted);
    flex-shrink: 0;
    opacity: 0;
    transition: var(--trans);
}
.playlist-item:hover .playlist-play-icon,
.playlist-item-active .playlist-play-icon {
    opacity: 1;
    color: var(--primary);
}

/* ─── TABLEAU DE BORD ────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}
.kpi-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--trans);
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.kpi-blue .kpi-icon {
    background: var(--primary-light);
    color: var(--primary);
}
.kpi-emerald .kpi-icon {
    background: var(--success-light);
    color: var(--success);
}
.kpi-purple .kpi-icon {
    background: var(--purple-light);
    color: var(--purple);
}
.kpi-amber .kpi-icon {
    background: var(--amber-light);
    color: var(--amber);
}
.kpi-body {
    min-width: 0;
}
.kpi-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.kpi-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--dark);
    margin-top: 0.125rem;
}
.dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .dash-grid {
        grid-template-columns: 1fr 280px;
    }
}
.progress-panel,
.chart-panel {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.panel-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}
.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-3);
}
.progress-pct {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800;
}
.progress-bar-track {
    height: 0.75rem;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease);
}
.next-lesson {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
@media (min-width: 640px) {
    .next-lesson {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.next-lesson-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}
.next-lesson-info h4 {
    font-size: 0.9375rem;
}
.next-lesson-info p {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
.modules-quick {
    margin-top: 1.5rem;
}
.modules-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.module-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}
.module-status {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.module-status.done {
    background: var(--success-light);
    color: var(--success);
}
.module-status.wip {
    background: var(--amber-light);
    color: var(--amber);
}
.module-track-wrap {
    flex: 1;
    min-width: 0;
}
.module-track-wrap > span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dark-3);
}
.module-track {
    height: 0.35rem;
    background: var(--border-light);
    border-radius: var(--radius-full);
    margin-top: 0.25rem;
    overflow: hidden;
}
.module-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease);
}
.module-fill.fill-done {
    background: linear-gradient(90deg, var(--success), #34d399);
}
.module-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.donut-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}
.donut-chart {
    width: 9rem;
    height: 9rem;
}
.donut-bg {
    stroke: var(--border-light);
}
.donut-fill {
    stroke: var(--primary);
    transition: stroke-dasharray 0.6s var(--ease);
}
.donut-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.donut-center strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
}
.donut-center span {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}
.chart-note {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.75rem;
}
.chart-note strong {
    color: var(--primary);
}
.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--dark-3);
}
.dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: var(--radius-full);
    display: inline-block;
}
.dot-blue {
    background: var(--primary);
}
.dot-light {
    background: var(--border);
}

/* ─── MODAL CAROUSEL ─────────────────────────────────────────── */
/* ── Animations ─────────────────────────────────────────── */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Backdrop ───────────────────────────────────────────── */
#js-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 24px;
    box-sizing: border-box;
}

#js-modal-backdrop.is-visible {
    display: flex;
}

/* ── Boîte modale ───────────────────────────────────────── */
#js-modal-box {
    position: relative;
    background: var(--surface, #fff);
    border-radius: 1.25rem;
    padding: 2rem;
    flex: 1 1 0;
    width: 90% !important;
    min-width: 0;
    height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    transform: scale(0.94) translateY(12px);
    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
    opacity: 0;
    box-sizing: border-box;
}

#js-modal-backdrop.is-open #js-modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ── Boutons extérieurs ─────────────────────────────────── */
.modal-nav-outside {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.85); /* Fond blanc semi-transparent */
    color: #2c3e50;
    font-weight: bolder;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-nav-outside:hover {
    background-color: #ffffff; /* Fond entièrement blanc */
    color: #3498db;
    font-weight: bolder;
}

/* ── Titre ──────────────────────────────────────────────── */
.modal-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--titre, #222);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Bouton fermer ──────────────────────────────────────── */
#js-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background: red;
    border: 1px solid transparent !important;
    color: white;
    font-weight: bolder;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    font-size: 1.15rem;
}

#js-modal-close:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--danger-light);
}

/* ── Carousel ───────────────────────────────────────────── */
.carousel-slide {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 2rem;
    align-items: start;
}

/* ── Visuel ─────────────────────────────────────────────── */
.slide-visual {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-visual.slide-img {
    position: relative;
    align-items: flex-start;
}

.slide-cover-img,
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    display: block;
}

.slide-cover-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.slide-video {
    overflow: hidden;
    border-radius: 12px;
}

/* ── Contenu ─────────────────────────────────────────────── */
.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 0.3rem;
    padding: clamp(0.85rem, 1.2vw, 1.3rem);
    background: var(--bg-card-alt);
    border-radius: 15px;
    margin-right: 10px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.slide-content h4 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--success);
    padding-bottom: 4px;
}

.slide-text {
    margin: 0;
    line-height: 1.1;
}

.slide-content p {
    margin: 0;
    line-height: 1.3;
    color: #000;
    font-size: 0.95rem;
    text-align: justify;
}

.slide-content ul {
    text-align: justify;
    padding: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.3;
    font-size: 0.95rem;
    color: #000;
    margin-top: 10px !important;
}

/* ── Couleurs des visuels ───────────────────────────────── */
.slide-blue {
    background: var(--primary-xlight);
    color: var(--primary);
}
.slide-emerald {
    background: var(--success-light);
    color: var(--success);
}
.slide-purple {
    background: var(--purple-light);
    color: var(--purple);
}
.slide-step {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}
.slide-visual h4 {
    font-size: 1.25rem;
}

/* ── Dots ───────────────────────────────────────────────── */
.modal-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.modal-dot {
    border: none;
    cursor: pointer;
    height: 0.5rem;
    border-radius: var(--radius-full, 99px);
    transition: var(--trans, all 0.2s);
}

.dot-active {
    width: 1.25rem;
    background: var(--primary);
}
.dot-inactive {
    width: 0.5rem;
    background: var(--border);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 992px) {
    #js-modal-box {
        height: 95vh;
        padding: 1rem;
    }
    .modal-nav-outside {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .carousel-slide {
        grid-template-columns: 1fr;
    }
    .slide-visual {
        min-height: 300px;
        height: 350px;
    }
    .slide-content {
        padding-right: 0;
    }
    .slide-content h3,
    .slide-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #js-modal-backdrop {
        gap: 10px;
        padding: 0 8px;
    }
    #js-modal-box {
        height: 92vh;
        padding: 0.75rem;
    }
    .modal-nav-outside {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .slide-visual {
        height: 250px;
    }
    .slide-content h3,
    .slide-content h4 {
        font-size: 1.1rem;
    }
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: #8bafc7;
    color: white;
    padding: 1rem 1rem 0;
    border-top: 1px solid var(--dark-2);
    margin-top: 100px;
}
.footer-inner {
    max-width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 1rem;
}
@media (min-width: 640px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.footer-logo-svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #60a5fa;
}
.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
}
.footer-logo-accent {
    color: #60a5fa;
}
.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 22rem;
}
.footer-socials {
    display: flex;
    gap: 0.625rem;
}
.social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--trans);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
}
/* Boutons */
.facebook {
    color: white;
    background: #1877f2;
    --tooltip-color: #1877f2;
}
.facebook:hover {
    color: #1877f2;
    background: white;
    --tooltip-color: #1877f2;
    transform: translateY(-2px);
}
.twit_x {
    color: white;
    background: #000000;
    --tooltip-color: #000000;
}
.twit_x:hover {
    color: #000000;
    background: white;
    --tooltip-color: #000000;
    transform: translateY(-2px);
}
.linkid {
    color: white;
    background: #007bb5;
    --tooltip-color: #007bb5;
}
.linkid:hover {
    color: #007bb5;
    background: white;
    --tooltip-color: #007bb5;
    transform: translateY(-2px);
}
.youtub {
    color: white;
    background: #ff0000;
    --tooltip-color: #ff0000;
}
.youtub:hover {
    color: #ff0000;
    background: white;
    --tooltip-color: #ff0000;
    transform: translateY(-2px);
}
/*.social-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }*/
.footer-links-group {
    display: flex;
    flex-direction: column;
}
.footer-links-group h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
}
.footer-links-group ul {
    padding-left: 0;
    margin-top: 0;
    padding-top: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-left: 0;
}
.footer-links-group li a {
    font-size: 0.875rem;
    color: white;
    transition: var(--trans);
    line-height: 1.9;
}
.footer-links-group li a:hover {
    font-size: 0.975rem;
    font-weight: bolder;
    text-decoration: underline;
}
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 0;
    border-top: 1px solid var(--white);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: white;
}

/* ─── RESPONSIVE (mobile) ────────────────────────────────────── */
@media (max-width: 767px) {
    .navbar-inner {
        gap: 1rem;
        height: auto;
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
        order: 3;
    }
    .navbar-right {
        width: 100%;
        justify-content: center;
        order: 2;
    }
    .navbar-inner > .logo-link {
        order: 1;
    }
    .chatbot-window {
        width: calc(100vw - 2rem);
        height: 75vh;
    }
    .chatbot-wrapper {
        right: 1rem;
        bottom: 1rem;
    }
    .hero {
        padding: 4rem 1rem;
    }
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .modal-box {
        padding: 1.25rem;
    }
}

/* ─── LIENS MODALPOL ─────────────────────────────────────────── */
.open-modalpol {
    display: inline-block;
    margin: 1px;
    color: white;width:auto;
    text-decoration: none;
    cursor: pointer;
}
.open-modalpol:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    border:1px solid #fff;padding:4px; border-radius: 10px;
}

/* ─── MODAL POLITIQUE ────────────────────────────────────────── */
.modalpol-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9999;
    padding: 20px;
}
.modalpol-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modalpol {
    width: 90%;
    height: 80%;
    background: var(--modalpol-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow);
    top: 10%;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: all 0.25s ease;
    overflow: auto;
}
.modalpol-overlay.active .modalpol {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modalpol-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background: red;
    border: 1px solid transparent !important;
    color: white;
    font-weight: bolder;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    font-size: 1.15rem;
}
.modalpol-close:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--danger-light);
}

.modalpol h2 {
    margin: 0 0 18px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.modalpol-content {
    font-size: 14px;
    line-height: 1.3;
    color: #334155;
}
.modalpol-content p {
    margin-bottom: 16px;
}
.modalpol-content ul {
    padding-left: 20px;
}
.modalpol-content li {
    margin-bottom: 10px;
}
.modalpol-content code {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-hover);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
}
body.modalpol-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .modalpol {
        padding: 24px;
        border-radius: 20px;
    }
    .modalpol h2 {
        font-size: 24px;
    }
}
.form-fomcontact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-fomcontact input,
.form-fomcontact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 15px;
}
.form-fomcontact textarea {
    resize: vertical;
}
.form-fomcontact .hidden-field {
    display: none;
}
#footerContactStatus {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}
/* ════════════════════════════════════════════════
   DESCRIPTION
════════════════════════════════════════════════ */
.description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title   title"
        "image   content";
    gap: 2.5rem;
    padding: 3rem 5vw 3.5rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}
.description h1 {
    grid-area: title;
    font-family: "Bungee Spice", serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--titre);
    text-align: center;
    letter-spacing: -0.025em;
    margin: 10px clamp(5px, 2vw, 20px);
    text-transform: uppercase;
}
.description h1 em {
    font-style: normal;
    font-weight: 400;
    color: var(--secondary);
}
.description > img {
    grid-area: image;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
    animation: fadeUp 0.85s ease both;
}
.description > img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 900px) {
    .description {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "image" "content";
    }
    .description-content2 {
        gap: 1.5rem;
    }
    .description-image {
        order: -1;
    }
    .description-image img {
        max-height: 300px;
    }
}
@media (max-width: 479px) {
    .description-image img {
        max-height: 220px;
    }
    .description-text p {
        line-height: 1.6;
        padding: 1rem 1.1rem;
    }
}

.description-text {
    animation: fadeUp 0.85s ease both;
}
.description-text {
    font-size: clamp(0.875rem, 1.3vw + 0.15rem, 0.975rem);
    font-weight: 400;
    line-height: 1.35;
    padding: 1.4rem 1.6rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card);
    text-align: justify !important;
    color: var(--text-main);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
}
.description-text:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-blue);
    border-left-color: var(--accent);
}
.description-text h3 {
    color:darkblue;
}
.description-image img {
    width: 100%;
    height: 550px;
    border-radius: 1.25rem;
    object-fit: fill;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.description-image img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
}
.description-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── SÉPARATEUR ÉTOILES ─────────────────────────────────────── */
.star-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}
.star-divider::before,
.star-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #1e40af 10%);
}
.star-divider::after {
    background: linear-gradient(to left, transparent 0%, #1e40af 10%);
}
.star-divider span {
    padding: 0 18px;
    color: #1e40af;
    font-size: 20px;
    letter-spacing: 10px;
}

/* =============================================
   section-cgS (layout image + texte)
   ============================================= */
.section-cg {
    counter-increment: section-cg-counter;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: center;
    margin-bottom: var(--section-cg-gap);
    padding: 20px 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 40px rgba(28, 28, 46, 0.3);
    animation: fadeUp 0.7s var(--ease) both;
}

/* Numérotation décorative — délais d'animation */
.section-cg:nth-child(2) {
    animation-delay: 0.05s;
}
.section-cg:nth-child(3) {
    animation-delay: 0.1s;
}
.section-cg:nth-child(4) {
    animation-delay: 0.15s;
}
.section-cg:nth-child(5) {
    animation-delay: 0.2s;
}
.section-cg:nth-child(6) {
    animation-delay: 0.25s;
}

/* Bande dorée à gauche */
.section-cg::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Alternance côté image à droite / gauche */
.section-cg:nth-child(even) {
    grid-template-columns: 340px 1fr;
}
.section-cg:nth-child(even) .text-content {
    order: 2;
}
.section-cg:nth-child(even) .image-content {
    order: 1;
}

/* =============================================
   CONTENU TEXTE
   ============================================= */
.text-content {
    position: relative;
    z-index: 1;
}

/* Numéro décoratif en filigrane dans la colonne texte */
.text-content::before {
    content: counter(section-cg-counter);
    position: absolute;
    top: -15px;
    right: 40px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: -10;
    /* caché par défaut */
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.2s var(--ease),
        transform 0.4s var(--ease);
}

.section-cg:hover .text-content::before {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   MODAL — POLITIQUE DE CONFIDENTIALITÉ
   ============================================= */
.tab_polit_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0; /* remplace top/left/width/height: 100% */
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.tab_polit_modal_content {
    background-color: var(--white);
    margin: 20px auto;
    border-radius: var(--radius-lg);
    border: 10px groove #ff8f00;
    width: 70%;
    height: 95%;
    overflow: auto;
    position: relative;
}

.main_politconf {
    width: 95%;
    margin-left: 2.5%;
    padding: 20px;
    text-align: justify;
    text-justify: inter-word;
    box-shadow: 10px 10px 40px #f8f9fa;
    border: 4px solid #f8f9fa;
}

.main_politconf h1 {
    color: #2c3e50;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 10px;
}

.main_politconf h2 {
    color: #2980b9;
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.main_politconf i {
    color: #3498db;
}
.main_politconf ul {
    padding-left: 20px;
}
.main_politconf li {
    margin-bottom: 8px;
}

/* ════════════════════════════════════════════════
   COOKIES
════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    background: var(--bg-card);
    color: var(--text-main);
    width: min(900px, 94vw);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
    z-index: 9999;
}
.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.cookie-logo {
    height: 55px;
    width: 105px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--primary-color);
    object-fit: contain;
}
.cookie-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}
@media (max-width: 600px) {
    .cookie-banner {
        width: 92%;
        padding: 1.5rem;
    }
}

.cookie-banner .content {
    flex: 1;
    width: 100%;
}
.cookie-banner p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-main);
}
.cookie-banner .actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn_cookie {
    padding: 0.5rem 0.8rem;
    border-radius: 9px;
    border: 1px solid white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.btn_cookie-primary {
    background: var(--primary);
    color: var(--bg-card);
}
.btn_cookie-secondary {
    background: red;
    color: var(--bg-card);
    border: 1px solid var(--bg-card);
}
.btn_cookie-ghost {
    background: green;
    color: var(--bg-card);
}
.btn_cookie-primary:hover,
.btn_cookie-secondary:hover,
.btn_cookie-ghost:hover {
    transform: scale(1.1);
}
.btn_cookie-margin {
    margin-right: 50px;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 9998;
    display: none;
}
.modalcook-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.55);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
}
.modalcook {
    background: var(--bg-card);
    color: var(--text-main);
    width: 70%;
    max-height: 90vh;
    overflow: auto;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}
.modalcook.active {
    bottom: 50%;
    transform: translate(-50%, 50%);
}
.modalcook h2 {
    margin-top: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}
.category {
    border: 1.5px solid var(--border-subtle);
    padding: 1rem;
    width: 90%;
    border-radius: var(--border-radius-md);
    transition: var(--trans);
    background: var(--bg-card);
}
.category:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}
.category h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}
.category p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.switch input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--secondary);
}
.modalcook .modalcook-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1rem;
}
.content ul {
    padding: 40px;
    font-size: 18px;
}
.modalcook .footer_cookies {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-top: 0.75rem;
}
.modalcook .sidebar {
    background: var(--bg-card-alt);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    width: 290px;
    margin-left: 0 !important;
}
@media (max-width: 700px) {
    .modalcook .modalcook-grid {
        grid-template-columns: 1fr;
    }
}

.titre_h1 {
    font-family: "Lora", serif;
    font-size: clamp(1.2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: clamp(0, 0.3vw, -0.02em);
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    color: darkblue;
}
.titre_h3 strong {
    color: darkblue;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: bold;
    margin: 10px auto;
    padding: 5px;
    text-align: left;
}
.position1 {
    left: 50%;
    transform: translateX(-50%);
}
.position2 {
    right: 10px;
}
.scroll-top {
    position: fixed;
    bottom: 10px;
    height: 40px;
    width: 40px;
    background-color: blue;
    border-radius: 50%;
    cursor: pointer;
    transition:
        width 0.3s ease,
        opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.sparkle {
    display: inline-block;
    font-size: 2rem;
    animation: flipSparkle 2.5s infinite ease-in-out;
}
@keyframes flipSparkle {
    0%,
    100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(-1);
    }
}
/* ════════════════════════════════════════════════════════════════
   RESPONSIVE ADDITIONS — à inclure APRÈS votre CSS principal
   Breakpoints : 1400px | 1200px | 1024px | 768px | 480px | 360px
════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   0. UTILITAIRES FLUIDES (remplacements)
══════════════════════════════════════════ */

/* Titres principaux — clamp() remplace les valeurs fixes */
/* ══════════════════════════════════════════
   1. NAVBAR
══════════════════════════════════════════ */

/* ── Burger button (caché par défaut) ── */
.navbar-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--trans);
    flex-shrink: 0;
}
.navbar-burger:hover {
    background: var(--primary-xlight);
    color: var(--primary);
}
.navbar-burger[aria-expanded="true"] {
    color: var(--danger);
}

@media (max-width: 1024px) {
    .navbar-inner {
        height: auto;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo-link {
        order: 1;
    }
    .navbar-burger {
        display: flex;
        order: 2;
        margin-left: auto;
        align-items: center;
    }
    .navbar-right {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    /* Menu fermé par défaut */
    .nav-menu {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        transition:
            max-height 0.35s ease,
            padding 0.35s ease;
        padding: 0;
    }

    /* Menu ouvert */
    .nav-menu.is-open {
        max-height: 600px;
        padding: 0.5rem 0 0.75rem;
    }

    .nav-item {
        border-radius: var(--radius-md);
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        justify-content: flex-start;
        border-bottom: 1px solid var(--border-light);
    }

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

    .search-wrapper {
        display: block; /* visible sur tablette/mobile dans la barre */
        width: 100%;
    }

    .search-input {
        width: 100%;
        font-size: 0.95rem;
    }
    .search-input:focus {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-inner {
        padding: 0.6rem 0.75rem;
    }
    .logo-img {
        width: 90px;
        height: 52px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .btn.btn-ghost,
    .btn:not(.chat-toggle) {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
}

/* ══════════════════════════════════════════
   2. HERO
══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        padding: 2.5rem 1.25rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .hero-stat span {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 8px 10px;
    }
    .hero-stat-sep {
        display: none;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.75rem;
    }
    .hero-pill {
        font-size: 0.7rem;
    }
}

/* ══════════════════════════════════════════
   3. SECTIONS ALTERNÉES (description, alt-grid, section-cg)
══════════════════════════════════════════ */

@media (max-width: 1200px) {
    .section-cg {
        grid-template-columns: 1fr 280px;
        gap: 30px;
        padding: 16px 24px;
    }
    .section-cg:nth-child(even) {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 1024px) {
    .sections-wrapper {
        gap: 3rem;
    }

    .section-cg,
    .section-cg:nth-child(even) {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }
    .section-cg:nth-child(even) .text-content {
        order: 1;
    }
    .section-cg:nth-child(even) .image-content {
        order: 2;
    }

    .description {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "image" "content";
        padding: 2rem 3vw;
        gap: 1.5rem;
    }
    .description > img {
        max-height: 340px;
    }
    .description-content2 {
        margin-left: 0 !important;
        width: 100%;
    }
    .description-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .description {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    .description > img {
        max-height: 240px;
    }
    .description-image img {
        height: 220px;
    }
    .description-text p {
        font-size: 0.875rem;
        padding: 1rem 1.1rem;
        line-height: 1.65;
    }
    .description-btns {
        flex-direction: column;
    }
    .description-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .description > img {
        max-height: 180px;
    }
    .description-image img {
        height: 180px;
    }
    .description h1 {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }
}

/* ══════════════════════════════════════════
   4. TABLES — scroll horizontal + tailles
══════════════════════════════════════════ */

/* Wrapper universel */
.table-responsive,
#table-wrapper,
[class*="table-wrap"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    /* Quiz / exercices */
    .quiz-card {
        padding: 1.75rem 1.25rem;
    }

    /* Tableau de bord */
    .kpi-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    .kpi-value {
        font-size: 1.15rem;
    }
    .kpi-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    /* Stats row → 2 cols */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Cellules table génériques */
    th,
    td {
        padding: 6px 5px;
        font-size: 0.8rem;
    }

    /* Vidéo layout */
    .video-layout {
        grid-template-columns: 1fr;
    }
    .playlist {
        margin-top: 1rem;
    }

    /* Quiz */
    .quiz-card {
        padding: 1.25rem 1rem;
    }
    .quiz-question {
        font-size: 1.05rem;
    }
    .quiz-option {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    .opt-letter {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
    .quiz-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .quiz-footer {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .kpi-value {
        font-size: 1rem;
    }
    .kpi-label {
        font-size: 0.65rem;
    }

    th,
    td {
        padding: 5px 3px;
        font-size: 0.75rem;
    }

    .quiz-card {
        padding: 1rem 0.75rem;
    }
    .quiz-option {
        flex-direction: row;
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 360px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   5. FOOTER
══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem 0;
        margin-top: 60px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-tagline {
        max-width: 100%;
        font-size: 0.875rem;
    }
    .footer-socials {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .footer-links-group h4 {
        font-size: 1rem;
    }
    .footer-links-group li a {
        font-size: 0.875rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem 0;
        font-size: 0.75rem;
    }
    .logo-img-footer {
        width: 90px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-links-group {
        gap: 0.5rem;
    }
    .social-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    .footer-links-group h4 {
        font-size: 0.9rem;
    }
}

/* ══════════════════════════════════════════
   6. TEXTE GÉNÉRAL & PARAGRAPHES
══════════════════════════════════════════ */

@media (max-width: 1024px) {
    body {
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    p {
        margin-bottom: 0.75rem;
    }
    h1 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
    h2 {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }
    h3 {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }
    h4 {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .section-info {
        gap: 1rem;
    }
    .section-tag {
        font-size: 0.7rem;
    }

    /* Boutons d'action groupés */
    .hero-actions,
    .description-btns {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.8125rem;
    }
    h1 {
        font-size: clamp(1.1rem, 6vw, 1.6rem);
    }
    h2 {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    .btn-lg {
        font-size: 0.875rem;
        padding: 0.65rem 1.3rem;
    }
}

/* ══════════════════════════════════════════
   7. MODAL CAROUSEL & JS MODAL
══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .modal-box {
        padding: 1.5rem;
    }
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .slide-visual {
        min-height: 260px;
        height: 300px;
    }
    .slide-content {
        margin-right: 0;
        padding: 0.9rem 1rem;
    }
    .slide-content h4 {
        font-size: 1.15rem;
    }
    .slide-content p,
    .slide-content ul {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .modal-box {
        padding: 1.1rem 0.9rem;
    }
    .modal-title {
        font-size: 1.1rem;
    }
    .slide-visual {
        height: 220px;
    }
    .modal-nav-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    #js-modal-box {
        width: 98%;
        height: 96%;
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-backdrop {
        padding: 0.5rem;
    }
    .modal-box {
        border-radius: var(--radius-lg);
    }
    .slide-visual {
        height: 180px;
    }
    .slide-content h4 {
        font-size: 1rem;
    }
    .slide-content p,
    .slide-content ul {
        font-size: 0.8rem;
    }
    .modal-dots {
        gap: 0.3rem;
    }
    .dot-active {
        width: 1rem;
    }
}

/* ══════════════════════════════════════════
   8. CHATBOT
══════════════════════════════════════════ */

@media (max-width: 768px) {
    .chatbot-wrapper {
        right: 0.75rem;
        bottom: 0.75rem;
        gap: 0.5rem;
    }
    .chatbot-window {
        width: calc(100vw - 1.5rem);
        height: 72vh;
    }
    .chat-toggle {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .chat-header {
        padding: 0.75rem;
    }
    .chat-messages {
        padding: 0.75rem;
        gap: 0.65rem;
    }
    .msg-bubble {
        font-size: 0.75rem;
        padding: 0.55rem 0.75rem;
    }
    .chat-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    .chat-action-btn {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }
}

/* ══════════════════════════════════════════
   9. VIDÉO PLAYER
══════════════════════════════════════════ */

@media (max-width: 768px) {
    .play-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1rem;
    }
    .video-title {
        font-size: 1.2rem;
    }
    .video-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
    .playlist {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }
    .playlist-item {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    .playlist-item-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .player-overlay {
        padding: 0.75rem;
    }
    .time-display {
        font-size: 0.7rem;
    }
    .ctrl-btn {
        font-size: 0.8rem;
    }
}

/* ══════════════════════════════════════════
   10. COOKIE BANNER & MODAL POLITIQUE
══════════════════════════════════════════ */

@media (max-width: 768px) {
    .cookie-banner {
        width: 95vw;
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }
    .cookie-header {
        gap: 0.6rem;
    }
    .cookie-logo {
        height: 45px;
        width: 80px;
    }
    .cookie-title {
        font-size: 1.25rem;
    }

    .modalpol {
        width: 95%;
        height: 90%;
        padding: 1.25rem;
        border-radius: 16px;
    }
    .modalpol h2 {
        font-size: 1.3rem;
    }
    .modalpol-content {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .cookie-title {
        font-size: 1.05rem;
    }
    .cookie-banner {
        padding: 1rem 0.875rem;
    }
    .modalpol {
        padding: 1rem 0.75rem;
    }
    .modalpol h2 {
        font-size: 1.15rem;
    }
    .modalpol-close {
        top: 0.6rem;
        right: 0.6rem;
    }
}

/* ══════════════════════════════════════════
   11. SCROLL-TO-TOP
══════════════════════════════════════════ */

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 4.5rem;
        right: 0.75rem;
        font-size: 1.5rem;
    }

    .scroll-top {
        bottom: 70px;
        height: 36px;
        width: 36px;
    }
    .scroll-top:hover {
        width: 36px;
        border-radius: 50%;
    }
    .scroll-top:hover .scroll-text {
        opacity: 0;
    }
}

/* ══════════════════════════════════════════
   12. DASHBOARD — PROGRESS & DONUT
══════════════════════════════════════════ */

@media (max-width: 768px) {
    .progress-panel,
    .chart-panel {
        padding: 1.25rem 1rem;
    }
    .panel-title {
        font-size: 1rem;
    }
    .donut-chart {
        width: 7.5rem;
        height: 7.5rem;
    }
    .donut-center strong {
        font-size: 1.2rem;
    }
    .next-lesson {
        padding: 1rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .kpi-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.875rem;
    }
    .next-lesson {
        flex-direction: column;
    }
    .module-row {
        gap: 0.5rem;
    }
}

/* ══════════════════════════════════════════
   13. SÉPARATEUR ÉTOILES
══════════════════════════════════════════ */

@media (max-width: 480px) {
    .star-divider span {
        font-size: 14px;
        letter-spacing: 6px;
        padding: 0 10px;
    }
    .star-divider {
        margin: 14px 0;
    }
}

/* ══════════════════════════════════════════
   14. GRANDS ÉCRANS (≥ 1400px)
══════════════════════════════════════════ */

@media (min-width: 1400px) {
    .container {
        width: min(1400px, 90%);
    }

    .navbar-inner {
        width: 90%;
    }

    .hero-title {
        font-size: 4.25rem;
    }
    .hero-sub {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2.3rem;
    }
    .section-desc {
        font-size: 0.95rem;
    }

    .kpi-value {
        font-size: 1.6rem;
    }

    .chatbot-window {
        width: 36rem;
        height: 38rem;
    }

    .slide-visual {
        height: 560px;
    }
    .slide-content h4 {
        font-size: 1.55rem;
    }
    .slide-content p,
    .slide-content ul {
        font-size: 1rem;
    }

    .footer-inner {
        gap: 3.5rem;
    }
    .footer-links-group h4 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1600px) {
    .description h1 {
        font-size: 2.5rem;
    }
    .description-text p {
        font-size: 1.05rem;
    }
    .section-cg {
        padding: 28px 56px;
        gap: 70px;
    }
}
/* modal_fomcontact */
.modal_fomcontact {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal_fomcontact.active {
    display: flex;
}

.modal_fomcontact-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    font-size: 1.05rem;
    z-index: 9999;
}
.close-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--danger-light);
}
.modal_fomcontact h2 {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5d5d5;
    border-radius: 1px;
    font-size: 15px;
}

textarea {
    resize: vertical;
}

#status {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.hidden-field {
    display: none;
}

.bouton-fiche {
    border: none;
    color: white;
    padding: 0.48rem 0.7rem;
    border-radius: 15px;
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        opacity 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    right: 2px;
}

.badge-blue {
    background: #2563eb;
}
.bouton_presentation {
    border: none;
    background: var(--muted);
    color: white;
    padding: 0.48rem 0.4rem;
    border-radius: 15px;
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        opacity 0.18s;
    display: inline-flex;
    align-items: center;
}
.bouton_presentation.outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(37, 99, 235, 0.75);
}

/* ============================================================
   CHATBOT GO-COMPTA.CH — CSS Moderne
   Police : Inter (Google Fonts)
   Importer dans le <head> :
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
   ============================================================ */

/* ── Wrapper positionné ────────────────────────────────────── */
.chatbot-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    font-family: var(--cb-font);
}

/* ── Fenêtre principale ────────────────────────────────────── */
.chatbot-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: var(--cb-width);
    height: var(--cb-height);
    background: var(--cb-window-bg);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cb-border);
    transform-origin: bottom right;
}

/* ── Header ────────────────────────────────────────────────── */
.chat-header {
    background-image: repeating-conic-gradient(from 0deg, orangered, transparent 10deg, orange 10deg, orangered 20deg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: orange;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.chat-header-left strong {
    display: block;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 4px blue;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.bot-status {
    display: block;
    color: #ffffff;
    background: var(--degrade);
    font-size: 13.5px;
    font-weight: 400;
    border-radius: 15px;
    margin-top: 1px;
    padding-left: 10px;
}

/* Avatar header */
.bot-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-avatar .fa-robot {
    color: darkblue;
    font-size: 17px;
}
.bot-avatar img {
    border-radius: 50%;
}
.online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: var(--cb-accent);
    border-radius: 50%;
    border: 2px solid var(--cb-primary);
}

/* Boutons header */
.chat-header-actions {
    display: flex;
    gap: 4px;
}

.chat-action-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 1);
    border: none;
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.75) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition:
        background 0.2s,
        color 0.2s;
}

.chat-action-btn:hover {
    background: rgba(0, 0, 255, 1);
    color: #ffffff !important;
}

/* ── Zone messages ─────────────────────────────────────────── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--cb-border);
    border-radius: 4px;
}

/* ── Ligne de message ──────────────────────────────────────── */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: msgIn 0.22s ease-out both;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Messages utilisateur alignés à droite */
.msg-user {
    flex-direction: row-reverse;
}

/* Avatar bot dans les messages */
.bot-msg-avatar {
    width: 30px;
    height: 30px;
    background: var(--cb-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.bot-msg-avatar .fa-robot {
    color: #fff;
    font-size: 13px;
}
.bot-msg-avatar img {
    border-radius: 50%;
}
/* ── Wrapper bulle + suggestions + heure ──────────────────── */
.msg-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 90%;
}

.msg-user .msg-bubble-wrap {
    align-items: flex-end;
}

.msg-bot .msg-bubble-wrap {
    align-items: flex-start;
}

/* ── Bulles ────────────────────────────────────────────────── */
.msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.55;
    font-size: 13.5px;
    word-break: break-word;
}

.msg-bubble p {
    margin: 0;
}

/* Bulle bot — queue en bas à gauche */
.bubble-bot {
    background: var(--cb-bot-bg);
    color: var(--cb-bot-text);
    border-bottom-left-radius: 4px;
}

/* Bulle utilisateur — queue en bas à droite */
.bubble-user {
    background: var(--cb-user-bg);
    color: var(--cb-user-text);
    border-bottom-right-radius: 4px;
}

/* Styles inline dans les réponses */
.msg-bubble strong {
    font-weight: 600;
}

.msg-bubble code {
    background: rgba(27, 42, 74, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 12.5px;
}

.bubble-user code {
    background: rgba(255, 255, 255, 0.18);
}

/* ── Suggestions ───────────────────────────────────────────── */
.msg-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.sug-btn {
    background: #ffffff;
    border: 1.5px solid var(--cb-border);
    color: var(--cb-primary);
    font-family: var(--cb-font);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 20px;
    cursor: pointer;
    transition:
        background 0.18s,
        border-color 0.18s,
        color 0.18s,
        transform 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.sug-btn:hover {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

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

/* ── Horodatage ────────────────────────────────────────────── */
.msg-time {
    font-size: 11px;
    color: #9eaabf;
    padding: 0 3px;
}

/* ── Indicateur de frappe (typing) ────────────────────────── */
.typing-row {
    align-items: flex-end;
}

.typing-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    min-width: 56px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: #93a3bc;
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}
.typing-dot:nth-child(2) {
    animation-delay: 0.18s;
}
.typing-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes typingBounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ── Zone de saisie ────────────────────────────────────────── */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--cb-input-bg);
    border-top: 1px solid var(--cb-border);
    flex-shrink: 0;
    width: 100%;
}

.chat-input {
    flex: 1;
    border: 1.5px solid var(--cb-border);
    border-radius: 24px;
    padding: 9px 16px;
    font-family: var(--cb-font);
    font-size: 13.5px;
    color: var(--cb-bot-text);
    background: var(--cb-window-bg);
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.chat-input::placeholder {
    color: #b0bbc9;
}

.chat-input:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bouton envoyer */
.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--cb-primary);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--cb-accent-hover);
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.chat-send-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.chat-send-btn:disabled {
    background: #c8d0dc;
    box-shadow: none;
    cursor: not-allowed;
}

/* ── Bouton flottant (toggle) ──────────────────────────────── */
.chat-toggle {
    width: 4.3rem;
    height: 4.3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--trans);
    position: relative;
}
.chat-toggle img {
    border: none;
    border-radius: 50%;
    width: 3.8rem;
    height: 3.8rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 26px rgba(27, 42, 74, 0.45);
}

.chat-toggle:active {
    transform: scale(0.95);
}

/* Badge messages non lus */
.unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-family: var(--cb-font);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ── Responsive mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
    .chatbot-wrapper {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-window {
        width: calc(100vw - 32px);
        height: 72vh;
        bottom: 68px;
        right: 0;
    }
}

/* ── Respect du mode réduit mouvement ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .msg-row,
    .typing-dot,
    .unread-badge,
    .chat-toggle,
    .sug-btn,
    .chat-send-btn {
        animation: none !important;
        transition: none !important;
    }
}

.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal_overlay {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    margin-top: 0 !important;
    width: 100%;
    z-index: 999;
}

.modal_overlay.show .modal_login {
    opacity: 1;
    transform: translateY(0);
}

.modal_login {
    background-color: #e8e8e8 !important;
    border-radius: 8px;
    box-shadow: -1px 10px 25px 10px #21719369;
    font-family: Arial, sans-serif;
    margin: 30px auto;
    max-width: 90% !important;
    padding: 10px;
    position: relative;
    text-align: center;
    width: 450px !important;
}

.modal_login h2 {
    color: #00698f;
    font-size: 30px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    text-shadow: none;
}

.modal_login input {
    border-radius: 8px;
    border: 1px solid #c0c0c0;
    box-shadow: 3px 4px 1px 1px #e99f4c;
    font-family: inherit;
    font-size: 17px;
    height: 45px;
    margin-bottom: 25px;
    padding: 10px 10px;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto 25px;
    box-sizing: border-box;
}
.modal_login a {
    color: #0039e6;
    font-size: 1.1em;
    margin-right: 50px;
    text-decoration: none;
}
.modal_overlay .modal_login {
    opacity: 0;
    transform: translateY(-30px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    max-width: 400px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
}
.inputGroup {
    position: relative;
    margin-bottom: 5px 0;
    margin-left: 5px;
}

.inputGroup input {
    background-color: transparent;
    border: 2px solid rgb(200, 200, 200);
    font-size: 100%;
    outline: none;
    padding: 0.8em;
    width: 100%;
}

.inputGroup label {
    position: absolute;
    left: 30px;
    top: 10px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
    font-weight: bolder;
    color: blue;
    font-size: 17px;
}

.inputGroup input:focus ~ label,
.inputGroup input:valid ~ label {
    top: -5px;
    left: 50px;
    font-size: 17px;
    color: #00698f;
    background: #e8e8e8 !important;
    transform: translateY(-50%) scale(0.9);
}
.button_login,
.button_log {
    background: #009999;
    border: none;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    margin-right: 40px;
    padding: 10px 10px;
    text-transform: uppercase;
    transform: skew(-21deg);
    min-width: 150px;
}

.button_login::before {
    background: blue;
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0;
    position: absolute;
    right: 100%;
    top: 0;
    transition: all 0.5s;
    z-index: -1;
}

.button_login:hover,
.button_log:hover {
    color: #fff;
    transform: skew(-21deg);
}

.button_login:hover::before,
.button_log:hover::before {
    left: 0;
    opacity: 1;
    right: 0;
}

.button_log {
    background-color: #6c757d;
}

.button_log::before {
    background: red;
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0;
    position: absolute;
    right: 100%;
    top: 0;
    transition: all 0.5s;
    z-index: -1;
}

#login-error,
#forgot-error {
    color: red;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 10px;
}

.disabled-link {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
    text-decoration: none;
}

/* ==================== MODALS SUPPORT ==================== */
.help-center,
.blog-modal,
.certification-modal {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 10px;
}
.certification-modal ul {
    padding: 10px;
    list-style-type: decimal;
    list-style-position: outside;
    margin-left: 15px;
}
.help-center h4,
.blog-modal h4 {
    color: #bf8040;
    border-bottom: 2px solid #f0e6d2;
    padding-bottom: 20px;
}

.faq-section {
    margin-bottom: 30px;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
    max-width: 520px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.contact-form button {
    padding: 10px;
    background: #cf8040;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 200px;
}

.contact-form button:hover {
    background: #936b35;
}

/* Articles Blog */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.article-teaser {
    background: #f9f7f0;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #bf8040;
    transition: transform 0.2s;
}

.article-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.article-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.read-more {
    color: #bf8040;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Scrollbar stylée */
.help-center::-webkit-scrollbar,
.blog-modal::-webkit-scrollbar {
    width: 8px;
}
.help-center::-webkit-scrollbar-thumb,
.blog-modal::-webkit-scrollbar-thumb {
    background: #bf8040;
    border-radius: 10px;
}

.help-split-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.help-left-panel {
    background: #f8f4eb;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.help-left-panel h3 {
    padding: 20px;
}
.faq-content h3 {
    padding-bottom: 20px;
    text-align: center;
    color: darkblue;
}
.faq-nav .faq-item {
    padding: 4px 6px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-nav .faq-item:hover {
    background: #f0e6d2;
}

.faq-nav .faq-item.active {
    background: #bf8040;
    color: white;
}

.help-right-panel {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    min-height: 400px;
    margin-left: 5px !important;
}

.faq-detail {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-detail:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .help-split-container {
        grid-template-columns: 1fr;
    }
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    position: relative;
}

/* Tooltip */
.social-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--tooltip-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    z-index: 100;
}

/* Petite flèche */
.social-btn::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--tooltip-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 100;
}

/* Affichage au survol */
.social-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-btn:hover::before {
    opacity: 1;
    visibility: visible;
}
