/* Educkom v23 — Design inspiré Sencampus (sencampus.com) */

/* Police Inter auto-hébergée (../fonts/inter/) — plus de dépendance à fonts.googleapis.com */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --font: 'Inter', system-ui, sans-serif;
    --sc-green: #1E6B45;
    --sc-green-dark: #154D32;
    --sc-green-light: #E8F0EB;
    --sc-orange: #C94C00;
    --sc-orange-dark: #A03D00;
    --sc-orange-vivid: #FF6600; /* usage décoratif uniquement (glows, halos) — jamais comme texte/fond de texte */
    --sc-blue: #0066CC;
    --dark: #1A1A2E;
    --ink: #212529;
    --text: #495057;
    --muted: #6C757D;
    --line: #DEE2E6;
    --white: #FFFFFF;
    --gray: #F5F7FA;
    --gray-2: #E9ECEF;
    --accent: var(--sc-green);
    --accent-2: var(--sc-green-dark);
    --accent-soft: rgba(30, 107, 69, 0.12);
    --accent-glow: rgba(30, 107, 69, 0.28);
    --primary: var(--sc-green);
    --primary-hover: var(--sc-green-dark);
    --primary-soft: var(--sc-green-light);
    --mustard: var(--sc-orange);
    --mustard-dark: var(--sc-orange-dark);
    --ok: #1E6B45;
    --nav: 84px;
    --topbar-h: 46px;
    --max: 1200px;
    --r: 8px;
    --r-lg: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    /* Cartes de contenu navigables (services, packs, écoles, blog) — langage visuel unique */
    --card-r: 16px;
    --card-hover-shadow: 0 14px 36px rgba(0, 100, 50, 0.13);
    --body-text: var(--text);
    --bg: var(--white);
    --bg-subtle: var(--gray);
    --nav-height: var(--nav);
    --navy: var(--dark);
    --footer-bg: #1A1A2E;
    --footer-text: #ADB5BD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
a { color: var(--sc-blue); text-decoration: none; transition: 0.15s; }
a:hover { color: var(--sc-green-dark); }
img { max-width: 100%; display: block; }

/* ─── Actions flottantes — thème + WhatsApp (global, tous espaces) ───
   Un seul conteneur `position:fixed` porte l'ancrage bas-droite ; les boutons
   sont de simples éléments flex à l'intérieur (empilés, jamais superposés).
   Sélecteurs à double classe = spécificité garantie, quel que soit l'ordre
   de chargement des feuilles de style (educkom-ui.css / dashboard.css). */
.ek-floating-actions {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
.ek-theme-toggle.ek-theme-toggle--floating,
.ek-floating-whatsapp {
    position: static;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0.88;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.ek-theme-toggle.ek-theme-toggle--floating:hover,
.ek-theme-toggle.ek-theme-toggle--floating:focus-visible,
.ek-floating-whatsapp:hover,
.ek-floating-whatsapp:focus-visible {
    opacity: 1;
}
/* Contraste garanti quel que soit le thème : noir sur fond clair, blanc sur fond sombre. */
.ek-theme-toggle.ek-theme-toggle--floating {
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}
.ek-theme-toggle.ek-theme-toggle--floating .ek-theme-toggle__icon {
    font-size: 1.05rem;
    line-height: 1;
}
.ek-theme-toggle.ek-theme-toggle--floating:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.ek-theme-toggle.ek-theme-toggle--floating:focus-visible {
    outline: 2px solid var(--sc-green);
    outline-offset: 2px;
}
.ek-floating-whatsapp {
    border: none;
    background: #25d366;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.ek-floating-whatsapp:hover,
.ek-floating-whatsapp:focus-visible {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
}
.ek-floating-whatsapp:focus-visible {
    outline: 2px solid #1ebe57;
    outline-offset: 2px;
}
@media (max-width: 575.98px) {
    .ek-floating-actions {
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        gap: 0.6rem;
    }
    .ek-theme-toggle.ek-theme-toggle--floating,
    .ek-floating-whatsapp {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .ek-theme-toggle.ek-theme-toggle--floating .ek-theme-toggle__icon {
        font-size: 0.9rem;
    }
    .ek-floating-whatsapp {
        font-size: 1.15rem;
    }
}

.sc-wrap, .kz-wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.container.sc-wrap, .container.kz-wrap { max-width: var(--max) !important; }


/* ─── TOP BAR ─── */
.sc-topbar {
    background: var(--dark);
    color: #fff;
    font-size: 0.8125rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.sc-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(var(--max), 100% - 2rem);
    margin-inline: auto;
    gap: 0.75rem;
}
.sc-topbar__inner--promo {
    flex-wrap: wrap;
    padding: 0.3rem 0;
}
.sc-topbar__cta {
    background: var(--sc-orange);
    color: #fff !important;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.sc-topbar__cta:hover { background: var(--sc-orange-dark); color: #fff !important; }

/* CTA billet d'avion — animée pour attirer l'œil */
.sc-topbar__cta--promo {
    text-transform: none;
    letter-spacing: normal;
    animation: topbarPromoPulse 1.6s ease-in-out infinite;
}
.sc-topbar__cta--promo:hover,
.sc-topbar__cta--promo:focus-visible {
    animation-play-state: paused;
}
@keyframes topbarPromoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 76, 0, 0.55);
    }
    50% {
        transform: scale(1.045);
        box-shadow: 0 0 0 7px rgba(201, 76, 0, 0);
    }
}
@media (max-width: 575.98px) {
    .sc-topbar__inner--promo {
        gap: 0.5rem;
    }
    .sc-topbar__cta {
        font-size: 0.6875rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ─── HEADER BLANC ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--nav);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.site-header__inner { height: var(--nav); display: flex; align-items: center; gap: 1.5rem; }

.site-logo {
    display: flex; align-items: center; gap: 0.6rem;
    color: var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em;
    flex-shrink: 0;
}
.site-logo__img {
    height: 84px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
    margin: -12px 0;
}
.site-logo--static { pointer-events: none; }
.site-logo__text em { font-style: normal; color: var(--sc-green); }
.site-logo:hover { color: var(--ink); }
.site-logo__icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--sc-green); color: #fff;
    display: grid; place-items: center; font-size: 1.15rem;
}
.site-logo em { font-style: normal; color: var(--sc-green); }

.site-nav-wrap { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.site-nav { display: flex; gap: 0.15rem; list-style: none; padding: 0; margin: 0; }
.site-nav__link {
    padding: 0.55rem 0.9rem; border-radius: 6px;
    font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.site-nav__link:hover { color: var(--sc-green); background: var(--sc-green-light); }
.site-nav__link.is-active { color: var(--sc-green); background: var(--sc-green-light); }

.site-header__toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 10px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 360;
}

.site-header__toggle:hover {
    background: var(--sc-green-light);
    border-color: rgba(30, 107, 69, 0.35);
    color: var(--sc-green);
}

.site-header__toggle-icon--close {
    display: none;
}

.site-header.is-nav-open .site-header__toggle-icon--open {
    display: none;
}

.site-header.is-nav-open .site-header__toggle-icon--close {
    display: inline-block;
}

.site-header.is-nav-open .site-header__toggle {
    background: var(--sc-green-light);
    border-color: rgba(30, 107, 69, 0.35);
    color: var(--sc-green);
}

.site-header__user-btn {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    max-width: 200px;
}

/* Profil connecté — chip + menu */
.site-header__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    border: 1.5px solid rgba(30, 107, 69, 0.2);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    max-width: 200px;
}

.site-header__profile:hover,
.site-header__profile.show,
.site-header__profile:focus-visible {
    border-color: rgba(30, 107, 69, 0.45);
    background: var(--sc-green-light);
    box-shadow: 0 2px 10px rgba(30, 107, 69, 0.12);
    outline: none;
}

.site-header__profile.dropdown-toggle::after {
    margin-left: 0.05rem;
    font-size: 0.55rem;
    opacity: 0.55;
    vertical-align: middle;
    border-top-color: var(--sc-green);
}

.site-header__profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sc-green) 0%, var(--sc-green-dark) 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 107, 69, 0.25);
}

.site-header__profile-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

.site-header__profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 0;
    text-align: left;
}

.site-header__profile-info strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__profile-info span {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--sc-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-header__profile-menu {
    min-width: 260px;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    margin-top: 0.55rem !important;
}

.site-header__profile-menu-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem 0.65rem;
    list-style: none;
}

.site-header__profile-menu-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.site-header__profile-menu-meta strong {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    word-break: break-word;
}

.site-header__profile-menu-meta span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    word-break: break-all;
}

.site-header__profile-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.site-header__profile-menu .dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: var(--sc-green);
}

.site-header__profile-menu .dropdown-item.text-danger i {
    color: inherit;
}

.site-header__profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
}

.site-header__notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.45);
    pointer-events: none;
}

.site-header__profile-menu-notif {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    color: #b91c1c !important;
}

.site-header__menu-item-with-badge {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.site-header__menu-item-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-header__menu-notif-badge {
    flex-shrink: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Groupe cloche + hamburger — header public mobile */
.site-header__mobile-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.site-header__mobile-notif {
    display: inline-flex;
    position: relative;
}

.site-header__mobile-notif .header-btn.notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.site-header__mobile-notif .header-btn.notification-icon:hover,
.site-header__mobile-notif .header-btn.notification-icon:focus-visible {
    border-color: rgba(30, 107, 69, 0.45);
    background: var(--sc-green-light);
    color: var(--sc-green);
    outline: none;
}

.site-header__mobile-notif .notification-icon.dropdown-toggle::after {
    display: none;
}

.dash-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.45);
}

.dash-notif-panel {
    width: min(20rem, calc(100vw - 1.5rem));
    max-height: min(26rem, calc(100vh - 5rem));
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 0;
    margin-top: 0.55rem !important;
}

.dash-notif-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.dash-notif-panel__head strong {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.25;
}

.dash-notif-panel__sub {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.3;
}

.dash-notif-panel__head .btn {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}

.dash-notif-list {
    max-height: min(22rem, calc(100vh - 9rem));
    overflow-y: auto;
}

.dash-notif-item {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}

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

.dash-notif-item.is-unread {
    background: var(--sc-green-light);
    border-left: 3px solid var(--sc-green);
    padding-left: calc(0.85rem - 3px);
}

a.dash-notif-item--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.dash-notif-item--link:hover,
a.dash-notif-item--link:focus-visible {
    background: rgba(30, 107, 69, 0.06);
    color: inherit;
}

.dash-notif-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.dash-notif-item__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.dash-notif-item__new {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sc-green);
    line-height: 1.2;
}

.dash-notif-item__important {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.dash-notif-item--warning.is-unread {
    border-left: 3px solid #f59e0b;
}

.dash-notif-item__title {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.dash-notif-item__message {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
    margin: 0 0 0.35rem;
}

.dash-notif-item__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.dash-notif-item__meta {
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.2;
    min-width: 0;
}

.dash-notif-empty {
    padding: 1.75rem 1rem;
    text-align: center;
}

.dash-notif-empty i {
    font-size: 1.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.dash-notif-empty h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.dash-notif-empty p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    color: var(--muted);
}

.dash-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.dash-status-pill--en_attente {
    background: #FEF3C7;
    color: #B45309;
}

.dash-status-pill--en_cours {
    background: var(--sc-green-light);
    color: var(--sc-green-dark);
}

.dash-status-pill--termine {
    background: #D1FAE5;
    color: #047857;
}

.dash-status-pill--annule {
    background: #FEE2E2;
    color: #B91C1C;
}

@media (max-width: 767.98px) {
    .dash-notif-dropdown .dropdown-menu.dash-notif-panel {
        position: fixed !important;
        top: calc(env(safe-area-inset-top, 0px) + 3.75rem) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(20rem, calc(100vw - 1.25rem)) !important;
        max-width: calc(100vw - 1.25rem);
        margin: 0 !important;
    }

    .dash-notif-item__top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .dash-notif-item__tags {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .site-header__mobile-notif {
        display: none !important;
    }
}

.site-header__profile-menu .dropdown-item.site-header__logout-item {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.16);
    margin-top: 0.15rem;
}

.site-header__profile-menu .dropdown-item.site-header__logout-item i {
    color: #dc2626;
}

.site-header__profile-menu .dropdown-item.site-header__logout-item:hover,
.site-header__profile-menu .dropdown-item.site-header__logout-item:focus {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
}

.site-header__user-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.site-header__user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav-backdrop {
    display: none;
}

.site-header__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}

.site-header__actions-label {
    display: none;
}

.site-header__auth {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}

.site-header__auth .btn {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 1.05rem;
    min-height: 38px;
    border-radius: 8px;
    white-space: nowrap;
}

.site-header__auth .site-header__login-btn {
    border-width: 1.5px;
}

.site-header__auth .site-header__register-btn {
    box-shadow: 0 2px 10px rgba(30, 107, 69, 0.22);
}

.site-header__guest-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.site-header__guest-trigger {
    display: none;
}

.site-header__guest-trigger-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sc-green) 0%, var(--sc-green-dark) 100%);
    color: #fff;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 107, 69, 0.25);
}

.site-header__guest-trigger-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.site-header__account-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.site-header__theme-label {
    display: none;
}

@media (max-width: 1199.98px) {
    .site-header__profile-info span {
        display: none;
    }

    .site-header__profile-info strong {
        max-width: 72px;
    }

    .site-header__profile {
        max-width: 148px;
        padding-right: 0.45rem;
    }
}

@media (max-width: 991.98px) {
    .site-header__profile-info span {
        display: none;
    }

    .site-header__profile-info strong {
        max-width: 78px;
    }

    .site-header__profile {
        max-width: 132px;
        padding-right: 0.4rem;
    }
}

/* Zone resserrée entre le menu mobile (≤991px) et le confort plein écran (≥1300px) :
   sur un écran/laptop "moyen" (13-14 pouces, fenêtre non maximisée...), la navigation
   complète (logo + 7 liens + connexion) peut manquer de place. On la compacte au lieu
   de la laisser déborder du header. */
@media (min-width: 992px) and (max-width: 1299.98px) {
    .site-header__inner {
        gap: 0.85rem;
    }

    .site-logo__img {
        max-width: 175px;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav__link {
        padding: 0.55rem 0.55rem;
        font-size: 0.85rem;
    }

    .site-header__auth .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

.site-main { padding-top: 0; }
.site-main--flush { padding-top: 0; }

/* ─── BOUTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-family: var(--font); font-weight: 700; font-size: 0.875rem;
    padding: 0.65rem 1.25rem; border-radius: 6px; border: none; cursor: pointer; transition: 0.2s;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.btn-mustard {
    background: var(--sc-green) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--accent-glow) !important;
    border: 2px solid var(--sc-green) !important;
}
.btn-mustard:hover {
    background: transparent !important;
    color: var(--sc-green) !important;
    transform: translateY(-1px);
    box-shadow: none !important;
    border: 2px solid var(--sc-green) !important;
}

/* Sur fond vert : bouton blanc plein (par défaut) pour rester lisible — le vert plein
   sur fond vert n'offre pas assez de contraste. */
.sc-dual__box--green .btn-mustard,
.services-cta .btn-mustard,
.ecoles-cta .btn-mustard,
.about-cta .btn-mustard,
.blog-cta .btn-mustard,
.faq-cta .btn-mustard,
.page-cover .btn-mustard {
    background: #fff !important;
    color: var(--sc-green-dark) !important;
    border-color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}
.sc-dual__box--green .btn-mustard:hover,
.services-cta .btn-mustard:hover,
.ecoles-cta .btn-mustard:hover,
.about-cta .btn-mustard:hover,
.blog-cta .btn-mustard:hover,
.faq-cta .btn-mustard:hover,
.page-cover .btn-mustard:hover {
    background: var(--sc-green-dark) !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
}
.btn-primary {
    background: var(--sc-green) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--accent-glow) !important;
    border: none !important;
}
.btn-primary:hover {
    background: var(--sc-green-dark) !important;
    transform: translateY(-1px);
    color: #fff !important;
}
.btn-green {
    background: var(--sc-green) !important; color: #fff !important;
    box-shadow: 0 4px 14px var(--accent-glow) !important;
}
.btn-green:hover { background: var(--sc-green-dark) !important; color: #fff !important; }
.btn-outline-mustard, .btn-outline-green {
    background: transparent !important; border: 2px solid var(--sc-green) !important; color: var(--sc-green) !important;
    text-transform: none; letter-spacing: 0;
}
.btn-outline-mustard:hover, .btn-outline-green:hover { background: var(--sc-green) !important; color: #fff !important; }
.btn-outline-light { border: 2px solid rgba(255,255,255,.75) !important; color: #fff !important; background: transparent !important; }
.btn-outline-light:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }

.btn-dual-outline {
    border: 2px solid #fff !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.btn-dual-outline:hover {
    background: #fff !important;
    color: var(--sc-green-dark) !important;
    border-color: #fff !important;
}
.btn-dark, .btn-navy { background: var(--dark) !important; color: #fff !important; text-transform: none; }
.btn-dark:hover { background: #2d2d44 !important; }
.btn-secondary { background: var(--gray-2); border: 1px solid var(--line); color: var(--ink); text-transform: none; font-weight: 600; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8125rem; text-transform: uppercase; }

/* Groupes de boutons (CTA, navigation) */
.ek-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}
.text-mustard { color: var(--sc-green) !important; }

.site-header .btn-outline-mustard {
    border-color: var(--sc-green) !important; color: var(--sc-green) !important; text-transform: none;
}
.site-header .btn-outline-mustard:hover { background: var(--sc-green) !important; color: #fff !important; }

/* ─── HERO SENCAMPUS ─── */
.sc-hero {
    position: relative; min-height: 520px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
        url('../images/ec.jpg') center/cover no-repeat;
}
.sc-hero__content { position: relative; z-index: 1; padding: 4rem 1.5rem; max-width: 800px; }
.sc-hero__title {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 1rem; color: #fff;
}
.sc-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 500;
    color: rgba(255, 255, 255, 0.95); margin-bottom: 2rem; line-height: 1.5;
}
.sc-hero__sub strong { color: var(--sc-orange); font-weight: 800; }
.sc-hero__btns {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 0;
}
.sc-hero__btns .btn { min-width: 0; }

/* ─── SECTIONS ─── */
.sc-section { padding: 3.5rem 0; }
.sc-section--gray { background: var(--gray); }
.sc-section__head { margin-bottom: 2rem; }
.sc-section__head h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 800; color: var(--ink);
    letter-spacing: -0.02em; margin-bottom: 0.35rem;
}
.sc-section__head p { color: var(--muted); font-size: 1rem; }

/* Écoles à la une */
.sc-schools-scroll {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.sc-school-card {
    background: #fff; border-radius: var(--card-r); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.sc-school-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.sc-school-card__img {
    height: 160px; background: var(--gray);
    display: grid; place-items: center; overflow: hidden;
}
.sc-school-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sc-school-card__img i { font-size: 3rem; color: var(--sc-green); opacity: 0.5; }
.sc-school-card__body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }
.sc-school-card__tag {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--sc-green); margin-bottom: 0.35rem;
}
.sc-school-card__title {
    font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.35;
    margin-bottom: 0.5rem; flex: 1;
}
.sc-school-card__link {
    font-size: 0.8125rem; font-weight: 700; color: var(--sc-blue);
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.sc-school-card__link:hover { color: var(--sc-green); }

/* Bandeau CTA écoles */
.sc-cta-band {
    background: var(--sc-green-light); border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: var(--r-lg); padding: 2rem; text-align: center; margin-top: 2rem;
}
.sc-cta-band h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 0.5rem; }
.sc-cta-band p { color: var(--muted); margin-bottom: 1.25rem; }
.sc-cta-band .btn { margin: 0 0.35rem; }

/* Filières tags */
.sc-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.sc-tag {
    display: inline-block; padding: 0.5rem 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600; color: var(--ink);
    transition: all 0.2s;
}
.sc-tag:hover {
    background: var(--sc-green); border-color: var(--sc-green); color: #fff;
    transform: translateY(-2px); box-shadow: var(--shadow);
}

/* Destinations */
.sc-dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sc-dest-card {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    aspect-ratio: 4/3; display: flex; align-items: flex-end;
    text-decoration: none; box-shadow: var(--shadow); transition: transform 0.25s;
}
.sc-dest-card:hover { transform: scale(1.02); }
.sc-dest-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.75));
}
.sc-dest-card__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
}
.sc-dest-card__title {
    position: relative; z-index: 1; color: #fff; font-weight: 800;
    font-size: 1rem; padding: 1rem; width: 100%; text-align: center;
}

/* Articles */
.sc-articles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.sc-article-card {
    background: #fff; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow); transition: 0.25s;
}
.sc-article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sc-article-card__img { height: 180px; background: var(--gray); overflow: hidden; }
.sc-article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sc-article-card__body { padding: 1.25rem; }
.sc-article-card__title { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* Dual CTA */
.sc-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sc-dual__box {
    border-radius: var(--r-lg); padding: 2.5rem 2rem; text-align: center;
    border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
.sc-dual__box--green {
    background: linear-gradient(145deg, #007A3D 0%, var(--sc-green-dark) 55%, #006633 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 100, 50, 0.25);
}
.sc-dual__box--green h3 {
    color: #fff !important;
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}
.sc-dual__box--green p {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}
.sc-dual__box h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.65rem; color: var(--ink); }
.sc-dual__box p { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.sc-dual__box .btn { margin: 0.25rem; }

/* ─── PAGE COVER ─── */
.page-cover {
    background: linear-gradient(135deg, var(--sc-green), var(--sc-green-dark));
    color: #fff; text-align: center; padding: 3rem 1.5rem;
}
.page-cover.page-cover--has-bg {
    position: relative;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-cover.page-cover--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.52));
    pointer-events: none;
}
.page-cover.page-cover--has-bg > .container {
    position: relative;
    z-index: 1;
}
.page-cover__title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-cover__sub { font-size: 1.0625rem; opacity: 0.9; max-width: 560px; margin-inline: auto; }
.page-cover__stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.page-cover__stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.page-cover__stat span { font-size: 0.875rem; opacity: 0.85; }

@media (max-width: 575.98px) {
    .page-cover { padding: 2.25rem 1rem; }
    .page-cover__stats {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.4rem;
        margin-top: 1.1rem;
        width: 100%;
    }
    .page-cover__stat {
        min-width: 0;
        flex: 1 1 0;
    }
    .page-cover__stat strong { font-size: 1rem; white-space: nowrap; }
    .page-cover__stat span {
        font-size: 0.6875rem;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ─── FOOTER ─── */
.site-footer { background: var(--footer-bg) !important; color: var(--footer-text) !important; padding: 3.5rem 0 0 !important; }
.site-footer__brand-block { max-width: 340px; text-align: left; }
.site-footer__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 76px;
}
.site-footer__logo-wrap .site-logo--static {
    margin: 0;
    line-height: 0;
}
.site-footer__logo {
    height: 70px;
    width: auto;
    max-width: 196px;
    object-fit: contain;
    margin: 0;
    display: block;
}
.site-footer__brand-block .site-logo--static {
    margin-bottom: 0.75rem;
}
.site-footer__brand-block .site-logo__icon {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
}
.site-footer__brand-block .site-logo__text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.site-footer__brand-block .site-logo__text em { color: var(--sc-green); }
.site-footer__slogan {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sc-green) !important;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-align: left;
}
.site-footer__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    text-align: left;
    color: var(--footer-text) !important;
    margin-bottom: 1.25rem;
    max-width: none;
}
.site-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.9375rem;
    color: var(--footer-text);
}
.site-footer__contact i {
    color: var(--sc-green);
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}
.site-footer__contact a {
    color: #dee2e6 !important;
}
.site-footer__contact a:hover { color: var(--sc-green) !important; }
.site-footer__note {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0;
}
.site-footer__nav { list-style: none; padding: 0; margin: 0; }
.site-footer__nav--compact {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
}
.site-footer__nav li { margin-bottom: 0.4rem; }
.site-footer__nav--compact li { margin-bottom: 0.35rem; }
.site-footer__nav a {
    color: var(--footer-text) !important;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
}
.site-footer__nav a:hover {
    color: var(--sc-green) !important;
    padding-left: 4px;
}
.site-footer__brand { font-size: 1.375rem; font-weight: 800; color: #fff !important; margin-bottom: 0.75rem; }
.site-footer__brand span { color: var(--sc-green) !important; }
.site-footer__heading {
    font-size: 0.8125rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; color: #fff !important; margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--sc-green);
    display: block;
    white-space: nowrap;
}
.site-footer__col-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.site-footer__col-nav .site-footer__nav--compact {
    align-items: flex-start;
    width: 100%;
}
.site-footer__col-nav .site-footer__nav a {
    text-align: left;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.site-footer ul li a { color: var(--footer-text) !important; }
.site-footer ul li a:hover { color: var(--sc-green) !important; }
.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
    justify-content: flex-start;
}
.site-footer__social a {
    width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.08);
    color: #fff !important; display: grid; place-items: center;
}
.site-footer__social a:hover { background: var(--sc-green); }
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem;
    padding: 1.25rem 0; font-size: 0.8125rem; color: #6C757D;
}
.site-footer__bottom a { color: #6C757D !important; margin-left: 1rem; }

/* Newsletter footer */
.site-footer__col-newsletter {
    display: flex;
    flex-direction: column;
}

.site-footer__newsletter-lead {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--footer-text) !important;
    margin: 0 0 1rem;
    max-width: 320px;
}

.site-footer__newsletter-form {
    margin-top: auto;
}

.site-footer__newsletter-field {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.35rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-footer__newsletter-field:focus-within {
    border-color: rgba(30, 107, 69, 0.65);
    box-shadow: 0 0 0 3px rgba(30, 107, 69, 0.2);
}

.site-footer__newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0.65rem;
    outline: none;
}

.site-footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__newsletter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 8px;
    background: var(--sc-green);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.site-footer__newsletter-btn:hover {
    background: var(--sc-green-dark);
    transform: translateY(-1px);
}

.site-footer__newsletter-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.site-footer__newsletter-btn-text {
    display: inline;
}

.site-footer__newsletter-msg {
    font-size: 0.8125rem;
    margin: 0.55rem 0 0;
    min-height: 1.25em;
    line-height: 1.4;
}

.site-footer__newsletter-msg.is-success {
    color: #6ee7b7 !important;
}

.site-footer__newsletter-msg.is-error {
    color: #fca5a5 !important;
}

.site-footer__newsletter-legal {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #6C757D !important;
    margin: 0.5rem 0 0;
}

.site-footer__newsletter-legal a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__newsletter-legal a:hover {
    color: var(--sc-green) !important;
}

@media (max-width: 575px) {
    .site-footer__newsletter-btn-text {
        display: none;
    }
    .site-footer__newsletter-btn {
        padding: 0.5rem 0.65rem;
    }
}

@media (max-width: 991px) {
    .site-footer__col-newsletter {
        margin-top: 0.5rem;
    }
    .site-footer__newsletter-lead {
        max-width: none;
    }
}

/* ─── Compat cartes internes ─── */
.card-pro, .svc-tile, .school-card, .educkom-card, .pack-card-pro, .contact-chip, .ek-card, .card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.card-pro, .svc-tile { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; transition: 0.2s; }
.card-pro:hover, .svc-tile:hover, .school-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-pro__icon, .svc-tile__icon {
    width: 48px; height: 48px; border-radius: 10px; background: var(--sc-green-light);
    color: var(--sc-green); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 0.85rem;
}
.card-pro__title, .svc-tile__title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.card-pro__tag--free, .svc-tile__price--free { background: var(--sc-green-light); color: var(--sc-green); }

.page-shell, .section-padding, .section, .ek-section, .kz-section { padding: 3rem 0; }
.page-toolbar__title, .section-title { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.section-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--sc-green); letter-spacing: 0.08em; }
.filter-bar { background: var(--gray); border-block: 1px solid var(--line); padding: 1rem 0; }

.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.contact-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.contact-form-card, .contact-chip { padding: 1.5rem; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }

.quiz-section { background: var(--gray) !important; padding: 3rem 0 !important; }
.quiz-card { padding: 2rem; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.quiz-answer-option:hover { border-color: var(--sc-green) !important; background: var(--sc-green-light) !important; }

.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-split__brand {
    background: linear-gradient(135deg, var(--sc-green), var(--sc-green-dark));
    color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 3rem;
}
.auth-split__brand h2 { font-size: 2rem; font-weight: 800; color: #fff; }
.auth-split__form { display: grid; place-items: center; padding: 2rem; background: var(--gray); }
.auth-box { width: min(400px, 100%); }
.auth-box h1 { font-size: 1.75rem; font-weight: 800; color: var(--ink); }

.form-label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); margin-bottom: 0.35rem; display: block; }
.form-control, .form-select {
    width: 100%; font-family: var(--font); padding: 0.7rem 1rem;
    border: 1px solid var(--line); border-radius: 6px; font-size: 1rem;
}
.form-control:focus { border-color: var(--sc-green); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.alert { padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.9375rem; margin-bottom: 1rem; }
.alert-danger { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-success { background: var(--sc-green-light); border: 1px solid #A7F3D0; color: #065F46; }
.mb-3 { margin-bottom: 1rem; }

/* Blog & FAQ */
.blog-featured, .blog-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow);
}
.blog-card__title { font-weight: 700; color: var(--ink); }
.faq-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.faq-cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 1.5rem; text-align: center; transition: 0.2s;
}
.faq-cat-card:hover { border-color: var(--sc-green); box-shadow: var(--shadow); }
.faq-cat-card i { font-size: 1.75rem; color: var(--sc-green); margin-bottom: 0.75rem; }
#faqTabs .nav-link.active { background: var(--sc-green) !important; color: #fff !important; }
.accordion-button:not(.collapsed) { background: var(--sc-green-light) !important; color: var(--sc-green) !important; }

.ek-empty { text-align: center; padding: 3rem; }
.ek-empty i { font-size: 2.5rem; color: var(--line); display: block; margin-bottom: 1rem; }

/* Masquer ancien hero */
.kz-hero, .kz-why, .kz-svc, .kz-feature, .kz-testi, .kz-cta, .kz-marquee,
.home-hero, .ek-hero, .hero-banner, .page-hero { display: none !important; }

/* Animations */
.ek-animate, .sc-school-card, .sc-article-card, .sc-dest-card {
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.ek-animate.is-visible, .sc-school-card.is-visible, .sc-article-card.is-visible { opacity: 1; transform: none; }

.site-nav__icon {
    display: none;
}

.site-nav-wrap__head {
    display: none;
}

@media (max-width: 991px) {
    .site-nav-wrap__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        height: var(--nav);
        padding: 0 3.25rem 0 0.9rem;
        margin: 0 -0.9rem;
        border-bottom: 1px solid var(--line);
        box-sizing: border-box;
        background: #fff;
        z-index: 2;
    }

    .site-nav-wrap__title {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 1.125rem;
        font-weight: 800;
        color: var(--ink);
        letter-spacing: -0.02em;
        line-height: 1;
    }

    .site-nav-wrap__title::before {
        content: '';
        width: 4px;
        height: 1.15rem;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--sc-green) 0%, var(--sc-green-dark) 100%);
        flex-shrink: 0;
    }

    .site-header.is-nav-open {
        border-bottom: 2px solid rgba(30, 107, 69, 0.12);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
    }

    .site-header__inner {
        position: relative;
        gap: 0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-logo__img {
        height: 62px;
        max-width: 170px;
        margin: -4px 0;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .site-header__mobile-controls {
        display: flex;
    }

    .site-header.is-nav-open {
        z-index: 400;
    }

    .site-header__toggle {
        position: relative;
        z-index: 410;
    }

    .site-header.is-nav-open .site-header__mobile-controls {
        position: fixed;
        top: 0;
        right: 0.75rem;
        left: auto;
        height: var(--nav);
        margin-left: 0;
        z-index: 410;
    }

    .site-nav-backdrop {
        position: fixed;
        inset: 0;
        top: 0;
        background: rgba(15, 23, 42, 0.38);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 370;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .site-nav-backdrop.is-visible {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav-wrap {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        height: 100%;
        height: 100dvh;
        width: min(68vw, 300px);
        max-width: calc(100vw - 3rem);
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 0 0.9rem 1.25rem;
        border-left: 1px solid var(--line);
        border-bottom: none;
        border-radius: 0;
        box-shadow: -10px 0 36px rgba(15, 23, 42, 0.14);
        z-index: 380;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
    }

    .site-nav-wrap.is-open {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .site-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
        padding-top: 0.85rem;
        margin-top: 0;
    }

    .site-nav__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.35rem;
        font-size: 0.95rem;
        color: var(--sc-green);
        flex-shrink: 0;
    }

    .site-nav__link {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .site-nav__link.is-active .site-nav__icon,
    .site-nav__link:hover .site-nav__icon {
        color: var(--sc-green-dark);
    }

    .site-nav li {
        width: 100%;
    }

    .site-header__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding-top: 1rem;
        margin-top: 0.75rem;
        margin-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: none;
    }

    .site-header__actions-label {
        display: none;
    }

    .site-header__account-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        row-gap: 0.4rem;
        width: 100%;
        margin-left: 0;
    }

    .site-header__user--nav {
        display: contents;
    }

    .site-header__user--nav .site-header__profile {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: auto;
        max-width: min(280px, 100%);
        padding: 0.4rem 1rem 0.4rem 0.35rem;
        border-radius: 999px;
        pointer-events: auto;
        cursor: pointer;
        justify-content: flex-start;
        min-height: 48px;
        background: #fff;
        border: 1.5px solid rgba(30, 107, 69, 0.22);
    }

    .site-header__guest-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        row-gap: 0.4rem;
        width: 100%;
        padding: 0.6rem;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-sizing: border-box;
    }

    .site-header__guest-account {
        display: contents;
    }

    .site-header__guest-trigger {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: auto;
        max-width: min(240px, 100%);
        padding: 0.3rem 0.85rem 0.3rem 0.3rem;
        border-radius: 999px;
        border: 1.5px solid rgba(30, 107, 69, 0.22);
        background: #fff;
        min-height: 44px;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }

    .site-header__guest-trigger:hover,
    .site-header__guest-trigger.show,
    .site-header__guest-trigger:focus-visible {
        border-color: rgba(30, 107, 69, 0.45);
        background: var(--sc-green-light);
        box-shadow: 0 2px 10px rgba(30, 107, 69, 0.12);
        outline: none;
    }

    .site-header__guest-trigger.dropdown-toggle::after {
        display: inline-block !important;
        margin-left: 0.15rem;
        flex-shrink: 0;
        font-size: 0.55rem;
        opacity: 0.55;
        border-top-color: var(--sc-green);
    }

    .site-header__guest-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: none;
        padding: 0.35rem;
        margin: 0 !important;
        background: #fff;
    }

    .site-header__guest-account .dropdown-menu.show {
        display: block !important;
    }

    .site-header__guest-menu .dropdown-item {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 0.9rem;
        margin-bottom: 0.2rem;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--ink);
        background: transparent;
        border: none;
    }

    .site-header__guest-menu .dropdown-item:last-child {
        margin-bottom: 0;
    }

    .site-header__guest-menu .dropdown-item i {
        width: 1.1rem;
        text-align: center;
        color: var(--sc-green);
    }

    .site-header__guest-menu .dropdown-item:hover,
    .site-header__guest-menu .dropdown-item:focus {
        background: var(--sc-green-light);
        color: var(--ink);
    }

    .site-header__user--nav .site-header__profile.dropdown-toggle::after {
        display: inline-block !important;
        margin-left: 0.25rem;
        flex-shrink: 0;
    }

    .site-header__user--nav .site-header__profile-info span {
        display: none;
    }

    .site-header__user--nav .site-header__profile-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.8125rem;
    }

    .site-header__user--nav .site-header__profile-info strong {
        max-width: 160px;
        font-size: 0.9375rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header__user--nav .site-header__profile-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: none;
        padding: 0.35rem;
        margin: 0 !important;
        background: #fff;
    }

    .site-header__user--nav .dropdown-menu.show {
        display: block !important;
    }

    .site-header__user--nav .site-header__profile-menu-head,
    .site-header__user--nav .site-header__profile-menu > li > hr.dropdown-divider:first-of-type {
        display: none;
    }

    .site-header__user--nav .site-header__profile-menu .dropdown-item {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 0.9rem;
        margin-bottom: 0.2rem;
        border-radius: 8px;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--ink);
        background: transparent;
        border: none;
    }

    .site-header__user--nav .site-header__profile-menu .dropdown-item:hover,
    .site-header__user--nav .site-header__profile-menu .dropdown-item:focus {
        background: var(--sc-green-light);
        color: var(--ink);
    }

    .site-header__user--nav .site-header__profile-menu .dropdown-item.text-danger {
        margin-bottom: 0;
    }

    body.is-nav-open {
        overflow: hidden;
    }

    .sc-dest-grid { grid-template-columns: repeat(2, 1fr); }
    .sc-articles { grid-template-columns: repeat(2, 1fr); }
    .sc-dual { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-chips { grid-template-columns: repeat(2, 1fr); }
    .faq-categories { grid-template-columns: repeat(2, 1fr); }
    .auth-split { grid-template-columns: 1fr; }
    .auth-split__brand { display: none; }
    .sc-topbar__phones { display: none; }
}
@media (max-width: 575px) {
    .sc-dest-grid { grid-template-columns: repeat(2, 1fr); }
    .sc-schools-scroll { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .sc-articles { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .sc-article-card__img { height: 90px; }
    .sc-article-card__body { padding: 0.65rem; }
    .sc-article-card__title { font-size: 0.8125rem; line-height: 1.3; }
    .contact-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Boutons : largeur adaptée au texte, pas toute la page */
    .sc-hero__btns,
    .sc-cta-band,
    .sc-dual__box,
    .sc-newsletter__btns,
    .blog-cta,
    .blog-article__nav,
    .blog-featured__actions,
    .blog-section__head,
    .services-cta,
    .ecoles-cta,
    .faq-cta,
    .about-cta,
    .quiz-result-row__actions,
    .quiz-results-footer,
    .contact-quick-actions,
    .ecoles-filters__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
    }

    .sc-hero__btns .btn,
    .sc-cta-band .btn,
    .sc-dual__box .btn,
    .sc-newsletter__btns .btn,
    .blog-cta .btn,
    .blog-article__nav .btn,
    .blog-featured__actions .btn,
    .blog-section__head .btn,
    .services-cta .btn,
    .ecoles-cta .btn,
    .faq-cta .btn,
    .about-cta .btn,
    .quiz-result-row__actions .btn,
    .quiz-results-footer .btn,
    .contact-quick-actions .btn,
    .ecoles-filters__actions .btn,
    .sc-svc-card__footer .btn,
    .sc-svc-card__footer--dual .btn,
    .sc-school-card__footer .btn,
    .page-ecoles .sc-school-card--compact .sc-school-card__footer .btn {
        width: auto !important;
        max-width: 100%;
        min-width: 0;
        flex: 0 1 auto;
        text-transform: none;
        letter-spacing: 0;
    }

    .sc-svc-card__footer,
    .sc-svc-card__footer--dual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
    }

    .sc-svc-card__footer--dual {
        grid-template-columns: unset;
    }

    .sc-school-card__footer {
        display: flex;
        justify-content: center;
    }

    /* Soumissions de formulaire : pleine largeur conservée */
    .auth-card__submit,
    .contact-form-panel__actions .btn[type="submit"],
    .w-100 {
        width: 100% !important;
    }
}

/* ─── Page 404 ─── */
.ek-404 {
    max-width: 560px;
    margin: 3rem auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.ek-404__code {
    display: block;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--sc-green-dark);
    letter-spacing: -0.03em;
}

.ek-404__icon {
    font-size: 1.75rem;
    color: var(--sc-green);
    margin: 0.5rem 0 1rem;
}

.ek-404__title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.ek-404__text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ek-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

@media (max-width: 575px) {
    .ek-404__code {
        font-size: 3.75rem;
    }
}
