/*
 * Site public Scolarix (accueil, plateforme, solutions, tarifs, démo, écoles partenaires).
 * Gabarit : App/Views/vitrine/_layout.php. Remplace public/css/vitrine.css.
 *
 * Identité reprise de la page d'accueil historique (App/Views/external/index.php) :
 * fond crème, bleu marine, bleu vif, vert sauge, or ; titres Playfair Display, texte Plus Jakarta Sans ;
 * héros à panneau bleu incliné ; surtitres espacés en capitales ; cartes arrondies à icône cerclée
 * en pointillé ; boutons à angles droits. Le site public suit ces rayons et ces ombres ;
 * l'application connectée garde ses angles droits (ux.css / gx.css, non chargées ici).
 *
 * Autonome : ni Bootstrap, ni ux.css, ni CDN. Polices et icônes locales. Mobile d'abord (360 px),
 * WCAG AA (le sauge #7a9e7e ne sert qu'aux décors ; le texte sauge est #4f7553), sans mode sombre.
 */

/* ---------- polices locales (OFL, voir public/fonts/OFL-*.txt) : variables, sous-ensembles latin + latin-ext ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/PlayfairDisplay-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: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/PlayfairDisplay-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/PlusJakartaSans-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/PlusJakartaSans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Polices de repli AJUSTÉES (stabilité de mise en page) : pendant le chargement des polices (font-display: swap),
   le texte s'affiche en Arial / Georgia mis à l'échelle des polices du site (largeur moyenne et hauteurs
   mesurées sur les fichiers woff2 avec fontTools, à 400 et 700/800) : le remplacement ne change presque plus
   les retours à la ligne, donc plus de décalage (CLS). Absentes du système : ignorées, pile habituelle. */
@font-face { font-family: "Plus Jakarta Sans Repli"; font-weight: 200 599; src: local("Arial"), local("ArialMT"), local("Helvetica");
    size-adjust: 104.62%; ascent-override: 99.21%; descent-override: 21.22%; line-gap-override: 0%; }
@font-face { font-family: "Plus Jakarta Sans Repli"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
    size-adjust: 99.15%; ascent-override: 104.69%; descent-override: 22.39%; line-gap-override: 0%; }
@font-face { font-family: "Playfair Display Repli"; font-weight: 400 599; src: local("Georgia");
    size-adjust: 102.29%; ascent-override: 105.78%; descent-override: 24.54%; line-gap-override: 0%; }
@font-face { font-family: "Playfair Display Repli"; font-weight: 600 900; src: local("Georgia Bold"), local("Georgia-Bold");
    size-adjust: 90.14%; ascent-override: 120.03%; descent-override: 27.84%; line-gap-override: 0%; }

/* ---------- jetons ----------
   Système à rôles (audit UX 2026, P1-1 à P1-3). Une couleur = un rôle :
   marque (marine), fond (crème / blanc), ACTION (bleu : tous les boutons principaux et liens d'action),
   accent (or : sur fonds sombres seulement, jamais en texte sur crème), réussite (vert),
   alerte (rouge : erreurs et « problèmes », JAMAIS un bouton d'appel), WhatsApp (son seul bouton).
   Textes PAR SURFACE : --sx-text / --sx-text-mid / --sx-muted valent les teintes « clair » sur crème
   et blanc, et sont redéfinis sur les surfaces marine (voir « surfaces sombres » plus bas). */
:root {
    color-scheme: light;
    /* marque */
    --sx-navy: #2d4a6b;            /* titres : 8,2:1 sur crème */
    --sx-navy-900: #1a2f45;        /* texte fort, surfaces sombres */
    --sx-navy-950: #0f1e2e;
    /* fonds */
    --sx-cream: #f5f3ee;
    --sx-white: #ffffff;
    /* action */
    --sx-action: #0c6cd0;          /* boutons principaux, liens d'action : 5,2:1 sur blanc, 4,65:1 sur crème */
    --sx-action-hover: #075fb8;
    --sx-action-pale: #e7eef7;     /* fond léger (puce, survol d'un bouton secondaire) */
    --sx-action-on-dark: #9cc8f5;
    --sx-action-900: #0a57a8;      /* fin du dégradé du panneau incliné */
    --sx-action-950: #0e457f;      /* tuiles de chiffres sur le panneau bleu */  /* lien sur marine : 8,4:1 sur #1a2f45 */
    --sx-blue: var(--sx-action);   /* alias historique (titres du héros, décors) */
    --sx-blue-ink: var(--sx-action);
    /* accent (fonds sombres uniquement) */
    --sx-gold: #c9a84c;            /* 6,0:1 sur marine #1a2f45 */
    --sx-gold-pale: #f7efd6;
    --sx-gold-ink: #6e5512;        /* texte « bientôt » sur fond or pâle : 6,6:1 */
    /* réussite (le sauge clair reste un décor) */
    --sx-success: #4f7553;         /* 5,3:1 sur blanc, 4,7:1 sur crème */
    --sx-sage: #7a9e7e;            /* décor uniquement (2,7:1) */
    --sx-sage-light: #a8c5ab;      /* décor ; texte sur marine (7,3:1) */
    --sx-sage-pale: #e8f0e9;
    --sx-sage-ink: var(--sx-success);
    /* alerte */
    --sx-alert: #c82333;           /* erreurs, problèmes ; jamais un bouton d'appel */
    --sx-alert-bg: #fbe9eb;
    --sx-red: var(--sx-alert);     /* alias (illustrations « problème ») */
    /* WhatsApp */
    --sx-wa: #0f7a6e;              /* texte blanc : 5,2:1 */
    --sx-wa-hover: #0b5f56;
    /* textes sur surface claire (crème, blanc) */
    --sx-l-text: #1a2f45;
    --sx-l-text-mid: #3d5a6e;      /* 6,6:1 sur crème */
    --sx-l-muted: #56697a;         /* 5,1:1 sur crème */
    /* textes sur surface marine (#0f1e2e à #2d4a6b) */
    --sx-on-dark: #e6edf4;         /* 11,6:1 sur #1a2f45 */
    --sx-on-dark-2: #b8c7d6;       /* 7,9:1 sur #1a2f45, 6,1:1 sur #2d4a6b */
    --sx-text: var(--sx-l-text);
    --sx-text-mid: var(--sx-l-text-mid);
    --sx-muted: var(--sx-l-muted);
    --sx-line: rgba(45, 74, 107, .12);
    --sx-line-strong: #8496a6;     /* bordure de champ : ≥ 3:1 */
    --sx-ok-bg: #e3efe4; --sx-ok-ink: #2f5634;
    --sx-bad-bg: var(--sx-alert-bg); --sx-bad-ink: #a01f2d;
    --sx-warn-bg: var(--sx-gold-pale); --sx-warn-ink: var(--sx-gold-ink);
    --sx-chip-off-bg: #eceef0; --sx-chip-off-ink: #46535f;
    /* échelle typographique : 12 (minimum absolu : étiquettes), 14 (secondaire), 16–18 (courant) */
    --sx-fs-12: .75rem;
    --sx-fs-14: .875rem;
    --sx-fs-16: 1rem;
    --sx-fs-18: 1.125rem;
    --sx-fs-20: 1.25rem;
    --sx-fs-24: 1.5rem;
    --sx-fs-32: 2rem;
    --sx-fs-56: 3.5rem;
    --sx-fs-t32: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);      /* 24 → 32 */
    --sx-fs-t40: clamp(1.75rem, 1.3rem + 2.2vw, 2.5rem);   /* 28 → 40 */
    --sx-fs-t56: clamp(2rem, 1.1rem + 4.2vw, 3.5rem);      /* 32 → 56 */
    /* formes : deux rayons + pilule + cercle ; deux ombres */
    --sx-r-sm: 8px;                /* boutons, champs, étiquettes carrées, onglets */
    --sx-r-lg: 20px;               /* cartes, images, panneaux */
    --sx-r-pill: 999px;
    --sx-shadow-sm: 0 4px 20px rgba(45, 74, 107, .07);
    --sx-shadow: 0 18px 50px rgba(45, 74, 107, .14);
    /* alias historiques */
    --sx-shadow-lg: var(--sx-shadow);
    --sx-r-card: var(--sx-r-lg);
    --sx-r-img: var(--sx-r-lg);
    --sx-bar-h: 0px;               /* hauteur réservée par la barre d'action mobile */
    /* kit d'illustrations (personnages) : trois tons de peau, décor uniquement */
    --sx-skin-1: #c68e5e;
    --sx-skin-2: #94603d;
    --sx-skin-3: #5e3b26;
    --sx-serif: "Playfair Display", "Playfair Display Repli", Georgia, "Times New Roman", serif;
    --sx-sans: "Plus Jakarta Sans", "Plus Jakarta Sans Repli", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --sx-header: 64px;
    --sx-wrap: 1200px;
    --sx-focus: 0 0 0 3px rgba(12, 108, 208, .35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sx-header) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.sx { margin: 0; min-width: 0; background: var(--sx-cream); color: var(--sx-text); font-family: var(--sx-sans); font-size: var(--sx-fs-16); line-height: 1.5; overflow-x: clip; padding-bottom: var(--sx-bar-h); }
.sx :where(img, svg) { max-width: 100%; }
.sx :where(img) { height: auto; display: block; }
.sx :where(h1, h2, h3, h4) { font-family: var(--sx-serif); color: var(--sx-navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
.sx :where(h3) { font-size: var(--sx-fs-18); }
.sx :where(p) { margin: 0 0 1em; }
.sx :where(ul, ol) { margin: 0; padding: 0; }
.sx :where(a) { color: var(--sx-blue-ink); text-underline-offset: 3px; }
.sx :where(a):hover { color: var(--sx-action-hover); }
.sx button, .sx input, .sx select, .sx textarea { font: inherit; color: inherit; }
/* anneau de focus à deux tons : bleu d'action à l'extérieur, liseré blanc au contact de l'élément, donc
   visible sur crème, sur blanc ET sur les surfaces marine (les surfaces sombres passent l'anneau en blanc) */
.sx :focus-visible { outline: 3px solid var(--sx-blue); outline-offset: 2px; box-shadow: 0 0 0 2px var(--sx-white); }
.sx [tabindex="-1"]:focus { outline: none; }
.sx :where(strong) { font-weight: 700; color: var(--sx-text); }
.sx :where(small) { font-size: var(--sx-fs-14); } /* au lieu de « smaller » (13,3 px) : reste dans l'échelle */
.sx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sx-skip { position: absolute; left: 8px; top: -80px; z-index: 200; background: var(--sx-white); color: var(--sx-navy); padding: 10px 14px; font-weight: 700; border: 2px solid var(--sx-navy); border-radius: var(--sx-r-sm); }
.sx-skip:focus { top: 8px; }
.sx-wrap { width: 100%; max-width: var(--sx-wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sx-wrap { padding: 0 24px; } }
.sx-narrow { max-width: 820px; }
.sx-muted { color: var(--sx-muted); }
.sx-small { font-size: var(--sx-fs-14); }

/* icônes : sprite local public/images/vitrine/icons.svg (Bootstrap Icons, MIT) */
.sx-i { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; display: inline-block; vertical-align: -.125em; }

/* ---------- barre de navigation ---------- */
.sx-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid rgba(45, 74, 107, .1); box-shadow: var(--sx-shadow-sm); }
@supports (backdrop-filter: blur(14px)) { .sx-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.sx-header-in { display: flex; align-items: center; gap: 10px; min-height: var(--sx-header); }
.sx-brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; font-family: var(--sx-serif); font-size: var(--sx-fs-24); font-weight: 800; color: var(--sx-navy); letter-spacing: -.02em; line-height: 1; }
.sx a.sx-brand, .sx a.sx-brand:hover { color: var(--sx-navy); text-decoration: none; }
.sx-brand img { display: block; height: 40px; width: auto; }
.sx-nav { display: none; }
.sx-nav ul { list-style: none; }
.sx-menu-btn { list-style: none; }

/* bouton d'appel compact (mobile) */
.sx-header .sx-cta-mini { display: none; }
@media (min-width: 340px) { .sx-header .sx-cta-mini { display: inline-flex; min-height: 44px; padding: .5rem .9rem; font-size: var(--sx-fs-14); white-space: nowrap; } }

/* menu mobile : <details>, sans JavaScript */
.sx-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--sx-line-strong); border-radius: var(--sx-r-sm); cursor: pointer; font-weight: 600; font-size: var(--sx-fs-16); color: var(--sx-navy); background: var(--sx-white); }
.sx-menu > summary::-webkit-details-marker { display: none; }
.sx-menu > summary .sx-i { font-size: 1.3rem; }
.sx-menu[open] > summary { border-color: var(--sx-navy); background: var(--sx-cream); }
.sx-menu-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--sx-header)); overflow-y: auto; background: var(--sx-white); border-bottom: 1px solid var(--sx-line); box-shadow: var(--sx-shadow); padding: 8px 16px 20px; }
.sx-menu-panel ul { list-style: none; }
.sx-menu-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--sx-line); color: var(--sx-text); font-weight: 600; text-decoration: none; }
.sx-menu-panel a[aria-current="page"] { color: var(--sx-action); font-weight: 700; }
.sx-menu-panel a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sx-action); }
.sx-menu-group { padding-top: 10px; }
.sx-menu-group > span { display: block; font-size: var(--sx-fs-12); letter-spacing: .12em; text-transform: uppercase; color: var(--sx-sage-ink); font-weight: 700; padding: 6px 4px 2px; }
.sx-menu-group ul a { padding-left: 16px; }
.sx-menu-panel .sx-btn { width: 100%; margin-top: 14px; }
/* le bouton du menu reste le bouton principal, même sur la page courante (/demo) */
.sx .sx-menu-panel a.sx-btn { justify-content: center; min-height: 48px; padding: .75rem 1.4rem; border: 2px solid var(--sx-action); color: var(--sx-white); font-weight: 700; }
.sx .sx-menu-panel a.sx-btn::after { content: none; }

@media (min-width: 1140px) {
    :root { --sx-header: 76px; }
    .sx-menu, .sx-header .sx-cta-mini { display: none !important; }
    .sx-nav { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; }
    .sx-nav > ul { display: flex; align-items: center; gap: 0; }
    .sx-nav > ul > li { position: relative; }
    .sx-nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: .4rem .55rem; font-size: var(--sx-fs-16); font-weight: 600; letter-spacing: 0; color: var(--sx-text-mid); text-decoration: none; transition: color .2s, box-shadow .2s; white-space: nowrap; }
    .sx a.sx-nav-link { color: var(--sx-text-mid); }
    .sx a.sx-nav-link:hover, .sx-dd:focus-within > .sx-nav-link, .sx-dd:hover > .sx-nav-link { color: var(--sx-navy-900); box-shadow: inset 0 -2px 0 var(--sx-line-strong); }
    /* état actif : texte marine, gras, filet bleu d'action */
    .sx a.sx-nav-link[aria-current] { color: var(--sx-navy-900); font-weight: 700; box-shadow: inset 0 -3px 0 var(--sx-action); }
    .sx-nav-link .sx-i { font-size: .7rem; transition: transform .2s; }
    .sx-dd:hover > .sx-nav-link .sx-i, .sx-dd:focus-within > .sx-nav-link .sx-i { transform: rotate(180deg); }
    /* sous-menu « Plateforme » : survol ou focus clavier (Tab), sans JavaScript */
    .sx-dd-panel { position: absolute; top: 100%; left: -8px; min-width: 300px; padding: 10px; background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); box-shadow: var(--sx-shadow);
        visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
    .sx-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
    .sx-dd:hover > .sx-dd-panel, .sx-dd:focus-within > .sx-dd-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .sx-dd.is-closed > .sx-dd-panel { visibility: hidden; opacity: 0; }
    .sx-dd-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--sx-r-sm); text-decoration: none; color: var(--sx-text); }
    .sx-dd-panel a:hover, .sx-dd-panel a:focus-visible { background: var(--sx-cream); color: var(--sx-navy); }
    .sx-dd-panel a[aria-current="page"] { background: var(--sx-action-pale); }
    .sx-dd-panel .sx-i { font-size: 1.15rem; color: var(--sx-navy); margin-top: 3px; }
    .sx-dd-panel strong { display: block; font-size: var(--sx-fs-16); color: var(--sx-navy); }
    .sx-dd-panel small { display: block; font-size: var(--sx-fs-14); color: var(--sx-muted); line-height: 1.4; }
    .sx-nav-login { margin-left: 2px; }
    .sx-nav .sx-btn { margin-left: 8px; white-space: nowrap; flex: 0 0 auto; }
}
@media (min-width: 1280px) { .sx-nav-link { padding: .4rem .8rem; } }

/* ---------- boutons : UN principal (plein, bleu d'action), UN secondaire (contour), UN tertiaire (.sx-link) ----------
   Même petit rayon que les champs. Casse normale, 16 px. .sx-btn-red et .sx-btn-light sont des alias
   conservés pour les vues existantes : ils rendent le bouton principal (le rouge est réservé aux erreurs). */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.4rem; border: 2px solid transparent; border-radius: var(--sx-r-sm);
    font-family: var(--sx-sans); font-weight: 700; font-size: var(--sx-fs-16); letter-spacing: 0; text-transform: none; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.sx a.sx-btn:hover, .sx-btn:hover { text-decoration: none; }
/* micro-interactions : soulèvement de 1 px au survol (souris seulement), pression au toucher / clic */
@media (hover: hover) { .sx .sx-btn:not(:disabled):hover { transform: translateY(-1px); } }
.sx .sx-btn:not(:disabled):active { transform: translateY(1px) scale(.98); box-shadow: none; }
.sx .sx-btn-primary, .sx .sx-btn-red, .sx .sx-btn-light { background: var(--sx-action); border-color: var(--sx-action); color: var(--sx-white); }
.sx .sx-btn-primary:hover, .sx .sx-btn-red:hover, .sx .sx-btn-light:hover { background: var(--sx-action-hover); border-color: var(--sx-action-hover); color: var(--sx-white); box-shadow: var(--sx-shadow-sm); }
.sx .sx-btn-outline { background: transparent; border-color: var(--sx-navy); color: var(--sx-navy); }
.sx .sx-btn-outline:hover { background: var(--sx-action-pale); border-color: var(--sx-navy-900); color: var(--sx-navy-900); }
.sx .sx-btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--sx-white); }
.sx .sx-btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: var(--sx-white); color: var(--sx-white); }
/* sur une surface sombre, le bouton principal garde un liseré clair pour se détacher du fond */
.sx-sec-navy .sx-btn-primary, .sx-eh .sx-btn-primary, .sx-ls .sx-btn-primary, .sx-ent-band .sx-btn-primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.sx-btn:disabled, .sx-btn[aria-disabled="true"] { opacity: .75; cursor: progress; }
.sx-btn .sx-i { font-size: 1.05rem; }
.sx-btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: var(--sx-fs-16); }
.sx-actions { display: grid; gap: 12px; }
.sx-actions .sx-btn { width: 100%; }
@media (min-width: 576px) { .sx-actions { display: flex; flex-wrap: wrap; align-items: center; } .sx-actions .sx-btn { width: auto; } .sx-actions.is-center { justify-content: center; } }
.sx-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: var(--sx-fs-16); text-decoration: none; color: var(--sx-action); }
.sx a.sx-link:hover { text-decoration: underline; color: var(--sx-action-hover); }
.sx-link .sx-i { transition: transform .2s; }
.sx-link:hover .sx-i { transform: translateX(3px); }
.sx-spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: var(--sx-white); border-radius: 50%; animation: sx-spin .8s linear infinite; }
.is-busy .sx-spin { display: inline-block; }
.is-busy .sx-i { display: none; }
@keyframes sx-spin { to { transform: rotate(360deg); } }

/* ---------- éléments partagés ---------- */
.sx-eyebrow { display: block; font-size: var(--sx-fs-12); letter-spacing: .28em; text-transform: uppercase; color: var(--sx-sage-ink); font-weight: 700; margin: 0 0 .7rem; }
.sx-eyebrow-light { color: var(--sx-sage-light); }
.sx-divider { width: 48px; height: 3px; background: var(--sx-sage); margin: 1rem 0 1.5rem; border: 0; }
.sx-divider-gold { background: var(--sx-gold); }
.is-center .sx-divider, .sx-divider.is-center { margin-left: auto; margin-right: auto; }
.sx-lead { font-size: var(--sx-fs-18); color: var(--sx-text-mid); line-height: 1.6; max-width: 640px; }
.is-center .sx-lead { margin-left: auto; margin-right: auto; }
.sx-chip { display: inline-flex; align-items: center; gap: 5px; padding: .2rem .65rem; border-radius: var(--sx-r-pill); font-size: var(--sx-fs-12); font-weight: 700; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.sx-chip-soon { background: var(--sx-warn-bg); color: var(--sx-warn-ink); }
.sx-chip-ok { background: var(--sx-ok-bg); color: var(--sx-ok-ink); }
.sx-chip-off { background: var(--sx-chip-off-bg); color: var(--sx-chip-off-ink); }
.sx-chip-opt { background: var(--sx-action-pale); color: var(--sx-navy); }
.sx-chip .sx-i { font-size: .85rem; }
.sx-demo-tag { display: inline-block; font-weight: 700; font-size: var(--sx-fs-12); color: var(--sx-warn-ink); background: var(--sx-warn-bg); padding: 0 .45rem; border-radius: var(--sx-r-pill); white-space: nowrap; }

/* fil d'Ariane */
.sx-crumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: var(--sx-fs-14); color: var(--sx-muted); margin: 0 0 1.2rem; padding: 0; }
.sx-crumb { align-items: center; }
.sx-crumb li { display: inline-flex; align-items: center; }
.sx-crumb li + li::before { content: "/"; margin-right: 6px; color: var(--sx-muted); }
/* cible tactile : 24 px utiles au minimum, 44 px sur téléphone (WCAG 2.5.8) */
.sx-crumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--sx-text-mid); }
@media (max-width: 767.98px) { .sx-crumb { gap: 0 6px; } .sx-crumb a { min-height: 44px; } .sx-crumb [aria-current] { display: inline-flex; align-items: center; min-height: 44px; } }
.sx-crumb [aria-current] { color: var(--sx-navy); font-weight: 700; }

/* ---------- héros de l'accueil : panneau bleu incliné et tuiles de chiffres ---------- */
.sx-hero { position: relative; overflow: hidden; background: var(--sx-cream); }
.sx-hero-in { position: relative; z-index: 1; padding-top: 2.6rem; padding-bottom: 3rem; }
.sx-hero-eyebrow { display: block; font-size: var(--sx-fs-16); color: var(--sx-text-mid); font-weight: 400; margin-bottom: .4rem; }
.sx .sx-hero-title { font-family: var(--sx-serif); font-size: var(--sx-fs-t56); font-weight: 800; line-height: 1; color: var(--sx-blue); letter-spacing: -.02em; margin: 0 0 1.2rem; text-transform: uppercase; }
.sx-hero-lead { font-size: var(--sx-fs-18); color: var(--sx-text-mid); line-height: 1.6; max-width: 520px; margin-bottom: 2rem; }
.sx-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.4rem; font-size: var(--sx-fs-14); color: var(--sx-text-mid); }
.sx-trust li { display: inline-flex; align-items: center; gap: 6px; }
.sx-trust .sx-i { color: var(--sx-sage-ink); }
.sx-hero-panel { position: relative; margin-top: 2.2rem; padding: 2.4rem 1.2rem 1.6rem; background: linear-gradient(160deg, var(--sx-blue) 0%, var(--sx-action-900) 100%); clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); }
.sx-hero-panel .sx-hero-mark { position: absolute; right: -10px; bottom: -14px; font-size: 9rem; color: rgba(255, 255, 255, .06); pointer-events: none; }
.sx-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; position: relative; }
.sx-stat { background: var(--sx-action-950); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--sx-r-sm); padding: 1.1rem .8rem; text-align: center; }
.sx-stat-num { display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-32); font-weight: 800; color: var(--sx-gold); line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
.sx-stat-label { display: block; margin-top: .45rem; font-size: var(--sx-fs-12); letter-spacing: .12em; text-transform: uppercase; color: var(--sx-on-dark); line-height: 1.35; }
/* note posée sur une pastille opaque : lisible quelle que soit la position du panneau incliné */
.sx-stats-note { position: relative; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: .3rem .9rem; border-radius: var(--sx-r-pill); background: var(--sx-action-950); font-size: var(--sx-fs-12); color: var(--sx-on-dark); text-align: center; }
@media (min-width: 992px) {
    .sx-hero { min-height: calc(100vh - var(--sx-header)); display: flex; align-items: center; }
    .sx-hero > .sx-wrap { width: 100%; }
    .sx-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
    .sx-hero-panel { position: static; margin: 0; padding: 0; background: none; clip-path: none; }
    .sx-hero-shape { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; background: linear-gradient(170deg, var(--sx-blue) 0%, var(--sx-action-900) 100%); clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); z-index: 0; }
    .sx-hero-shape .sx-i { position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%); font-size: 12rem; color: rgba(255, 255, 255, .06); }
    .sx-hero-panel .sx-hero-mark { display: none; }
    .sx-stats { padding-left: 20%; gap: 16px; }
    .sx-stat { padding: 1.3rem 1.2rem; }
    .sx-stats-note { margin-right: 0; }
}
@media (max-width: 991.98px) { .sx-hero-shape { display: none; } }

/* ---------- héros des pages de contenu ---------- */
.sx-phero { position: relative; overflow: hidden; background: var(--sx-cream); border-bottom: 1px solid var(--sx-line); }
.sx-phero-in { position: relative; z-index: 1; padding-top: 1.6rem; padding-bottom: 2.4rem; display: grid; gap: 1.8rem; }
.sx-phero h1 { font-size: var(--sx-fs-t56); font-weight: 800; color: var(--sx-navy); line-height: 1.05; margin: 0; }
.sx-phero h1 em { font-style: normal; color: var(--sx-blue); }
.sx-phero .sx-lead { margin: 0; }
.sx-phero .sx-actions { margin-top: 1.6rem; }
.sx-phero-media { position: relative; }
.sx-phero-media::before { content: ""; position: absolute; inset: 18% -16px -24px -16px; background: linear-gradient(170deg, var(--sx-blue) 0%, var(--sx-action-900) 100%); clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); z-index: -1; }
.sx-phero-media { z-index: 0; isolation: isolate; }
@media (min-width: 992px) {
    .sx-phero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; padding-top: 2.4rem; padding-bottom: 4rem; }
    .sx-phero-in.is-text-only { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
    .sx-phero-media::before { inset: -60px -400px -80px 12%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
}
.sx-phero-media .sx-phone { margin: 0 auto; }

/* ---------- sections ---------- */
.sx-sec { padding: 3.5rem 0; }
@media (min-width: 992px) { .sx-sec { padding: 4.5rem 0; } }
.sx-sec-white { background: var(--sx-white); }
.sx-sec-navy { background: var(--sx-navy-900); color: var(--sx-on-dark); }
/* surfaces sombres : les jetons de texte prennent leurs teintes « sur marine » (≥ 7:1) */
.sx-sec-navy, .sx-footer, .sx-eh, .sx-ls, .sx-ent-band, .sx-kpi, .sx-sms, .sx-hero-panel, .sx-hero-shape, .sx-phero-media, .sx-shot-bar {
    --sx-text: var(--sx-on-dark); --sx-text-mid: var(--sx-on-dark-2); --sx-muted: var(--sx-on-dark-2); --sx-sage-ink: var(--sx-sage-light); }
/* … et retrouvent les teintes « clair » sur une carte blanche posée dans une surface sombre */
:is(.sx-sec-navy, .sx-footer, .sx-eh, .sx-ls, .sx-ent-band, .sx-phero-media) :is(.sx-card, .sx-box, .sx-shot, .sx-note, .sx-plan, .sx-mini-plan, .sx-faq, .sx-acc, .sx-school, .sx-change, .sx-cta-wrap, .sx-auth-card, .sx-fx, .sx-optmods li, .sx-steps > li, .sx-msg) {
    --sx-text: var(--sx-l-text); --sx-text-mid: var(--sx-l-text-mid); --sx-muted: var(--sx-l-muted); --sx-sage-ink: var(--sx-success); }
.sx-sec-navy h2, .sx-sec-navy h3 { color: var(--sx-white); }
.sx-sec-navy .sx-lead, .sx-sec-navy p { color: var(--sx-on-dark-2); }
.sx-sec-navy strong { color: var(--sx-white); }
.sx-sec-navy a { color: var(--sx-action-on-dark); }
:is(.sx-sec-navy, .sx-band, .sx-hv, .sx-hero-panel, .sx-kpi) :focus-visible { outline-color: var(--sx-white); box-shadow: 0 0 0 2px var(--sx-navy-950); }
:is(.sx-sec-navy, .sx-footer, .sx-eh, .sx-ls, .sx-ent-band) :is(.sx-card, .sx-box, .sx-shot, .sx-note, .sx-faq, .sx-tile2, .sx-change, .sx-cta-wrap, .sx-vs > li) :focus-visible { outline-color: var(--sx-blue); box-shadow: 0 0 0 2px var(--sx-white); }
.sx-head { max-width: 760px; margin-bottom: 2.4rem; }
.sx-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.sx-head h2 { font-size: var(--sx-fs-t40); font-weight: 800; margin: 0; }
.sx-head .sx-lead { margin: 0; }

/* grilles : les rangées de cartes utilisent .sx-rail (css/formats.css) */
.sx-split { display: grid; gap: 2.2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 992px) {
    .sx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
    .sx-split.is-wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .sx-split.is-top { align-items: start; }
}

/* cartes à icône cerclée en pointillé */
.sx-card { position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 2rem 1.5rem; box-shadow: var(--sx-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.sx-card.is-center { text-align: center; align-items: center; }
.sx-card h3 { font-size: var(--sx-fs-18); margin: 0 0 .5rem; }
.sx-card p { font-size: var(--sx-fs-16); color: var(--sx-text-mid); margin: 0; }
.sx-card p + p { margin-top: .6rem; }
.sx-card.is-link:hover, .sx-card.is-link:focus-within { transform: translateY(-4px); box-shadow: var(--sx-shadow); border-color: var(--sx-sage); }
.sx-card.is-link:active { transform: translateY(-1px); }
.sx-card .sx-link { margin-top: auto; padding-top: .6rem; }
.sx-card-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sx-card-cover:focus-visible { outline-offset: 3px; }
.sx-icon { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; border: 2px dashed var(--sx-sage-light); display: flex; align-items: center; justify-content: center; margin: 0 0 1.3rem; font-size: 1.8rem; color: var(--sx-navy); transition: background-color .2s, border-color .2s; }
.sx-card.is-center .sx-icon { margin-left: auto; margin-right: auto; }
.sx-card:hover .sx-icon { background: var(--sx-sage-pale); border-color: var(--sx-sage); }
.sx-icon-sm { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.35rem; margin-bottom: 1rem; }
.sx-sec-navy .sx-icon { border-color: rgba(168, 197, 171, .6); color: var(--sx-sage-light); }
.sx-num-badge { font-family: var(--sx-serif); font-size: var(--sx-fs-14); font-weight: 800; color: var(--sx-sage-ink); letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: .35rem; }

/* listes à icône avec filet */
.sx-feats { list-style: none; }
.sx-feats > li { display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(45, 74, 107, .1); }
.sx-feats > li:last-child { border-bottom: 0; }
.sx-feats > li > .sx-i { font-size: 1.3rem; color: var(--sx-sage-ink); margin-top: 3px; }
.sx-feats h3 { font-family: var(--sx-sans); font-size: var(--sx-fs-16); font-weight: 700; color: var(--sx-navy); margin: 0 0 .25rem; letter-spacing: 0; line-height: 1.35; }
.sx-feats p { font-size: var(--sx-fs-16); color: var(--sx-text-mid); margin: 0; line-height: 1.6; }
.sx-sec-navy .sx-feats > li { border-color: rgba(255, 255, 255, .12); }
.sx-sec-navy .sx-feats > li > .sx-i { color: var(--sx-sage-light); }
.sx-sec-navy .sx-feats h3 { color: var(--sx-white); }

/* liste à coches */
.sx-check { list-style: none; display: grid; gap: .55rem; font-size: var(--sx-fs-16); color: var(--sx-text-mid); }
.sx-check li { display: flex; gap: .6rem; align-items: flex-start; }
.sx-check li > .sx-i { color: var(--sx-sage-ink); margin-top: .3em; font-size: 1rem; }
.sx-check li.is-soon > .sx-i { color: var(--sx-gold-ink); }
.sx-sec-navy .sx-check { color: var(--sx-on-dark-2); }
.sx-sec-navy .sx-check li > .sx-i { color: var(--sx-sage-light); }

/* ---------- captures et photos ---------- */
.sx :where(figure) { margin: 0; min-width: 0; }
.sx :where(figcaption) { font-size: var(--sx-fs-14); color: var(--sx-muted); margin-top: .6rem; line-height: 1.45; }
.sx-shot { background: var(--sx-white); border-radius: var(--sx-r-img); overflow: hidden; box-shadow: var(--sx-shadow-lg); border: 1px solid rgba(45, 74, 107, .1); }
.sx-shot-bar { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; background: var(--sx-navy-900); color: var(--sx-on-dark-2); font-size: var(--sx-fs-12); overflow: hidden; white-space: nowrap; }
.sx-shot-bar i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #e06c75; }
.sx-shot-bar i:nth-child(2) { background: #e5c07b; }
.sx-shot-bar i:nth-child(3) { background: #98c379; }
.sx-shot-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.sx-shot img { width: 100%; background: var(--sx-cream); }
.sx-shot figcaption { margin: 0; padding: .55rem .9rem; border-top: 1px solid var(--sx-line); background: var(--sx-white); }
.sx-phone { width: 62%; max-width: 250px; }
.sx-phone img { border: 7px solid var(--sx-navy-900); border-radius: var(--sx-r-lg); box-shadow: var(--sx-shadow); background: var(--sx-white); }
.sx-phone figcaption { text-align: center; }
.sx-sec-navy figcaption { color: var(--sx-on-dark); }
.sx-phero-media .sx-phone figcaption { color: var(--sx-white); } /* sur le bleu d'action : blanc seul ≥ 4,5:1 */
.sx-phone-pair { display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.sx-phone-pair .sx-phone { width: 46%; }
.sx-phone-pair .sx-phone:nth-child(2) { margin-bottom: 2.2rem; }
.sx-photo img { width: 100%; border-radius: var(--sx-r-img); box-shadow: var(--sx-shadow); object-fit: cover; }
.sx-photo.is-short img { aspect-ratio: 16 / 9; }
.sx-phero-media figcaption { color: var(--sx-white); }

/* bulle SMS */
.sx-sms { max-width: 360px; background: var(--sx-navy-950); color: var(--sx-white); border-radius: var(--sx-r-lg) var(--sx-r-lg) var(--sx-r-lg) 0; padding: .95rem 1.1rem; font-size: var(--sx-fs-16); line-height: 1.55; }
.sx-sms small { display: block; color: var(--sx-sage-light); font-size: var(--sx-fs-12); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: .35rem; }

/* encart « Bientôt » / note */
.sx-note { display: flex; gap: .8rem; align-items: flex-start; background: var(--sx-white); border-left: 4px solid var(--sx-sage); border-radius: 0 var(--sx-r-sm) var(--sx-r-sm) 0; padding: 1rem 1.2rem; font-size: var(--sx-fs-16); color: var(--sx-text-mid); box-shadow: var(--sx-shadow-sm); }
.sx-note > .sx-i { font-size: 1.2rem; color: var(--sx-sage-ink); margin-top: 2px; }
.sx-note.is-soon { border-left-color: var(--sx-gold); }
.sx-note.is-soon > .sx-i { color: var(--sx-gold-ink); }
.sx-note p { margin: 0; }
.sx-note p + p, .sx-note ul { margin-top: .4rem; }
.sx-sec-white .sx-note { background: var(--sx-cream); }

/* « Ce que ça change pour vous » */
.sx-change { background: var(--sx-sage-pale); border-radius: var(--sx-r-card); padding: 2rem 1.4rem; border: 1px solid rgba(122, 158, 126, .25); }
@media (min-width: 768px) { .sx-change { padding: 2.6rem 2.4rem; } }
.sx-change h2 { font-size: var(--sx-fs-t32); margin: 0 0 1.4rem; }
/* éléments : petites cartes blanches, en carrousel à accroche sur téléphone (.sx-rail, formats.css) */
.sx-change ul { list-style: none; }
.sx-change-it { display: flex; gap: .8rem; align-items: flex-start; background: var(--sx-white); border-radius: var(--sx-r-lg); padding: 1rem 1.1rem; }
.sx-change-it > .sx-i { flex: 0 0 auto; font-size: 1.3rem; color: var(--sx-navy); margin-top: 2px; }
.sx-change-it strong { display: block; color: var(--sx-navy); font-size: var(--sx-fs-16); }
.sx-change-it span { display: block; font-size: var(--sx-fs-14); color: var(--sx-text-mid); line-height: 1.55; }
@media (min-width: 768px) { .sx-change-it { background: transparent; padding: 0; flex-direction: column; gap: .5rem; } .sx-change-it span { font-size: var(--sx-fs-14); } }

/* page suivante / précédente */
.sx-pager { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; }
@media (min-width: 640px) { .sx-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-pager a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; padding: .9rem 1.2rem; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .12); border-radius: var(--sx-r-sm); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sx-pager a:hover { border-color: var(--sx-sage); box-shadow: var(--sx-shadow-sm); transform: translateY(-2px); }
.sx-pager a:active { transform: none; }
.sx-pager small { font-size: var(--sx-fs-12); letter-spacing: .2em; text-transform: uppercase; color: var(--sx-sage-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.sx-pager strong { font-family: var(--sx-serif); font-size: var(--sx-fs-18); color: var(--sx-navy); }
.sx-pager .is-next { text-align: right; align-items: flex-end; }
@media (min-width: 640px) { .sx-pager .is-next:only-child { grid-column: 2; } }

/* appel final (bloc blanc à filet dégradé, comme l'accueil historique) */
.sx-cta-wrap { position: relative; overflow: hidden; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); box-shadow: var(--sx-shadow-lg); padding: 2.4rem 1.4rem; display: grid; gap: 1.6rem;  border-radius: var(--sx-r-lg); }
.sx-cta-wrap::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sx-navy), var(--sx-sage)); }
.sx-cta-wrap h2 { font-size: var(--sx-fs-t40); font-weight: 800; line-height: 1.1; margin: 0 0 .8rem; }
.sx-cta-wrap p { color: var(--sx-text-mid); margin: 0; }
@media (min-width: 992px) { .sx-cta-wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: center; padding: 3.5rem 3rem; gap: 3rem; } }
.sx-cta-side { display: grid; gap: .9rem; }
.sx-cta-side .sx-check { font-size: var(--sx-fs-14); }

/* ---------- accueil : enjeux, domaines, pourquoi ---------- */
.sx-mt { margin-top: 2rem; }
.sx-mt-s { margin-top: .8rem; }
.sx-card-cover-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--sx-r-card); }
.sx-feats-card { height: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--sx-r-card); padding: 2rem 1.5rem; text-align: center; transition: background-color .2s, border-color .2s; }
.sx-feats-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--sx-sage-light); }
.sx-feats-card .sx-icon { margin-left: auto; margin-right: auto; }
.sx-feats-card h3 { font-size: var(--sx-fs-18); }
.sx-feats-card p { font-size: var(--sx-fs-16); margin: 0; }
.sx-domains .sx-card { padding: 2.2rem 1.6rem; }
.sx-why { background: var(--sx-sage-pale); border-color: rgba(122, 158, 126, .22); box-shadow: none; }
.sx-why:hover { background: var(--sx-white); }

/* écoles partenaires (cartes) */
.sx-schools { list-style: none; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sx-schools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sx-schools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-school { position: relative; display: flex; flex-direction: column; gap: .9rem; height: 100%; min-width: 0; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.4rem; box-shadow: var(--sx-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.sx-school:hover { transform: translateY(-4px); box-shadow: var(--sx-shadow); border-color: var(--sx-sage); }
.sx-school[hidden] { display: none; }
.sx-school-id { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.sx-school-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--sx-sage-light); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--sx-white);
    font-family: var(--sx-serif); font-weight: 800; font-size: var(--sx-fs-18); color: var(--sx-navy); }
.sx-school-logo img { width: 100%; height: 100%; object-fit: contain; }
.sx-school-logo.has-img { border-style: solid; border-color: var(--sx-line); }
.sx-school h3 { font-family: var(--sx-serif); font-size: var(--sx-fs-18); margin: 0; line-height: 1.25; }
.sx-school h3 a { display: inline-flex; align-items: center; min-height: 24px; color: var(--sx-navy); text-decoration: none; }
@media (max-width: 767.98px) { .sx-school h3 a { min-height: 44px; } }
.sx-school h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sx-school h3 a:hover { text-decoration: underline; }
.sx-school-meta { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: .2rem 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.sx-school .sx-chip { align-self: flex-start; }
.sx-school-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.sx-school-actions .sx-btn { flex: 1 1 auto; }
.sx-school-dl { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: -.4rem 0 0; }
/* état des inscriptions en simple mention (annuaire « Toutes les écoles », accueil, solutions) : discret si fermé */
.sx-school-state { display: flex; gap: 6px; align-items: flex-start; margin: auto 0 0; font-size: var(--sx-fs-14); color: var(--sx-muted); line-height: 1.45; }
.sx-school-state.is-open { color: var(--sx-ok-ink); font-weight: 700; }
.sx-school-state .sx-i { margin-top: .2em; }
.sx-school.is-featured { border-color: var(--sx-ok-ink); border-top-width: 4px; }
.sx-empty { background: var(--sx-white); border: 1px dashed var(--sx-line-strong); border-radius: var(--sx-r-card); padding: 2rem 1.4rem; text-align: center; color: var(--sx-text-mid); }
.sx-empty p { margin: 0 0 1rem; }

/* recherche dans l'annuaire (formulaire GET : marche sans JavaScript) */
.sx-search { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-card); padding: 1rem; box-shadow: var(--sx-shadow-sm); margin-bottom: 1.2rem; }
@media (min-width: 768px) { .sx-search { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; padding: 1.2rem 1.4rem; } }
.sx-search-field { position: relative; }
.sx-search-field .sx-i { position: absolute; left: 14px; bottom: 15px; color: var(--sx-muted); pointer-events: none; }
.sx-search-field .sx-input { padding-left: 40px; }
.sx-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: var(--sx-fs-16); color: var(--sx-text); cursor: pointer; }
.sx-switch input { width: 24px; height: 24px; margin: 0; accent-color: var(--sx-navy); }
.sx-count { font-size: var(--sx-fs-16); color: var(--sx-text-mid); margin: 0 0 1rem; }

/* fiche d'une école */
.sx-school-hero { display: flex; gap: 1rem; align-items: center; }
.sx-school-hero .sx-school-logo { flex-basis: 76px; width: 76px; height: 76px; font-size: var(--sx-fs-24); }
.sx-school-hero h1 { font-size: var(--sx-fs-t40); margin: 0; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: .6rem; }
.sx-tag { font-size: var(--sx-fs-14); color: var(--sx-text-mid); }
.sx-box { background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.4rem 1.2rem; box-shadow: var(--sx-shadow-sm); min-width: 0; }
@media (min-width: 576px) { .sx-box { padding: 1.8rem 1.8rem; } }
.sx-box + .sx-box { margin-top: 1.2rem; }
.sx-box > h2 { font-size: var(--sx-fs-20); margin: 0 0 1rem; }
.sx-box > h2 + .sx-divider { margin-top: -.4rem; }
.sx-rows { list-style: none; }
.sx-rows > li { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--sx-line); }
.sx-rows > li:last-child { border-bottom: 0; }
.sx-rows .sx-ri { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; border: 1px dashed var(--sx-sage-light); display: flex; align-items: center; justify-content: center; color: var(--sx-navy); }
.sx-rows small { display: block; font-size: var(--sx-fs-14); color: var(--sx-muted); }
.sx-rows span { display: block; font-weight: 600; color: var(--sx-text); overflow-wrap: anywhere; }
.sx-rows span > a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 767.98px) { .sx-rows span > a { min-height: 44px; } }
.sx-levels { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 1rem; }
.sx-levels span { font-size: var(--sx-fs-14); font-weight: 600; padding: .25rem .7rem; border: 1px solid var(--sx-line); border-radius: var(--sx-r-pill); background: var(--sx-cream); }
.sx-sub { font-size: var(--sx-fs-12); letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--sx-sage-ink); margin: 0 0 .3rem; }
.sx-docs { margin: .3rem 0 0; padding-left: 1.2rem; font-size: var(--sx-fs-16); color: var(--sx-text-mid); }
.sx-docs li { margin: .25rem 0; }

/* Offre pédagogique d'une école (fiche partenaire) : un volet par niveau, sans JavaScript */
.sx-curr { margin-top: 1.6rem; }
.sx-curr > p.sx-note { margin: 0 0 1rem; color: var(--sx-text-mid); font-size: var(--sx-fs-14); }
.sx-curr-lv { border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); background: var(--sx-white); margin: 0 0 .6rem; }
.sx-curr-lv > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .85rem 1rem; min-height: 48px; cursor: pointer; font-weight: 700; list-style: none; }
.sx-curr-lv > summary::-webkit-details-marker { display: none; }
.sx-curr-lv > summary::after { content: '+'; margin-left: auto; font-size: var(--sx-fs-20); line-height: 1; color: var(--sx-action); }
.sx-curr-lv[open] > summary::after { content: '−'; }
.sx-curr-lv > summary small { font-weight: 500; color: var(--sx-text-mid); font-size: var(--sx-fs-14); }
.sx-curr-lv > summary:focus-visible { outline: 3px solid var(--sx-action); outline-offset: 2px; }
.sx-curr-tb { width: 100%; border-collapse: collapse; font-size: var(--sx-fs-16); }
.sx-curr-tb caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sx-curr-tb th, .sx-curr-tb td { padding: .55rem 1rem; text-align: left; border-top: 1px solid var(--sx-line); }
.sx-curr-tb thead th { font-size: var(--sx-fs-14); color: var(--sx-text-mid); font-weight: 600; }
.sx-curr-tb td:nth-child(n+2), .sx-curr-tb th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.sx-curr-tb tfoot th, .sx-curr-tb tfoot td { font-weight: 700; }
.sx-two { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .sx-two { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem; } .sx-two > div > .sx-box + .sx-box { margin-top: 1.5rem; } }
.sx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: var(--sx-fs-16); text-decoration: none; margin-bottom: .6rem; }

/* résumé des tarifs (accueil) */
.sx-mini-plans { list-style: none; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sx-mini-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sx-mini-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-mini-plan { position: relative; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.6rem 1.4rem; box-shadow: var(--sx-shadow-sm); display: flex; flex-direction: column; gap: .4rem; }
.sx-mini-plan.is-featured { border: 2px solid var(--sx-navy); }
.sx-mini-plan h3 { font-size: var(--sx-fs-20); margin: 0; }
.sx-mini-plan .sx-plan-cap { font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-sage-ink); }
.sx-mini-price { font-family: var(--sx-serif); font-size: var(--sx-fs-24); font-weight: 800; color: var(--sx-navy); line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.sx-mini-price small { display: block; font-family: var(--sx-sans); font-size: var(--sx-fs-14); font-weight: 500; color: var(--sx-muted); }

/* liste des modules (vue d'ensemble) */
.sx-domain h3 { display: flex; align-items: center; gap: .6rem; }
.sx-mods { list-style: none; display: grid; gap: .85rem; margin: .4rem 0 1.2rem; }
.sx-mods li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .7rem; font-size: var(--sx-fs-16); }
.sx-mods li > .sx-i { grid-row: span 2; color: var(--sx-sage-ink); margin-top: .3em; }
.sx-mods li > .sx-i.is-soon { color: var(--sx-gold-ink); }
.sx-mods b { font-weight: 700; color: var(--sx-navy); }
.sx-mods span { color: var(--sx-text-mid); font-size: var(--sx-fs-14); line-height: 1.55; }
.sx-optmods { list-style: none; display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sx-optmods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sx-optmods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-optmods li { background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-sm); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.sx-optmods b { color: var(--sx-navy); font-size: var(--sx-fs-16); }
.sx-optmods span { font-size: var(--sx-fs-14); color: var(--sx-text-mid); line-height: 1.5; }
.sx-optmods .sx-chip { align-self: flex-start; }

/* étapes */
.sx-steps { list-style: none; counter-reset: sx; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-steps > li { counter-increment: sx; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.6rem 1.4rem; box-shadow: var(--sx-shadow-sm); }
.sx-steps > li::before { content: counter(sx, decimal-leading-zero); display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-32); font-weight: 800; color: var(--sx-gold-ink); line-height: 1; margin-bottom: .8rem; }
.sx-steps h3 { font-size: var(--sx-fs-18); margin: 0 0 .4rem; }
.sx-steps p { margin: 0; font-size: var(--sx-fs-16); color: var(--sx-text-mid); }

/* comparaison honnête */

/* FAQ */
.sx-faq { display: grid; gap: .7rem; max-width: 860px; }
.sx-faq details { background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .12); border-radius: var(--sx-r-sm); }
.sx-sec-white .sx-faq details { background: var(--sx-cream); }
.sx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: .8rem 1.2rem; font-weight: 700; color: var(--sx-navy); }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary .sx-i { color: var(--sx-sage-ink); transition: transform .2s; }
.sx-faq details[open] summary .sx-i { transform: rotate(180deg); }
.sx-faq details > div { padding: 0 1.2rem 1.1rem; color: var(--sx-text-mid); font-size: var(--sx-fs-16); }
.sx-faq details > div p { margin: 0; }

/* ---------- tarifs ---------- */
.sx-billing { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 1.4rem; }
.sx-billing-label { font-weight: 700; color: var(--sx-navy); }
.sx-seg { display: inline-flex; border: 1px solid var(--sx-line-strong); background: var(--sx-white); padding: 3px; max-width: 100%;  border-radius: var(--sx-r-sm); }
.sx-seg label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; font-weight: 700; cursor: pointer; color: var(--sx-text-mid); white-space: nowrap; font-size: var(--sx-fs-16); border-radius: calc(var(--sx-r-sm) - 3px); }
.sx-seg label small { font-weight: 700; font-size: var(--sx-fs-12); color: var(--sx-ok-ink); background: var(--sx-ok-bg); padding: 1px 6px;  border-radius: var(--sx-r-pill); }
.sx-bill-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#sx-bill-m:checked ~ .sx-billing label[for="sx-bill-m"], #sx-bill-y:checked ~ .sx-billing label[for="sx-bill-y"] { background: var(--sx-navy); color: var(--sx-white); }
#sx-bill-m:checked ~ .sx-billing label[for="sx-bill-m"] small, #sx-bill-y:checked ~ .sx-billing label[for="sx-bill-y"] small { background: var(--sx-white); }
#sx-bill-m:focus-visible ~ .sx-billing label[for="sx-bill-m"], #sx-bill-y:focus-visible ~ .sx-billing label[for="sx-bill-y"] { outline: 3px solid var(--sx-blue); outline-offset: 2px; }
.sx-price-y { display: none; }
#sx-bill-y:checked ~ .sx-plans .sx-price-m { display: none; }
#sx-bill-y:checked ~ .sx-plans .sx-price-y { display: block; }
.sx-plans { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 640px) { .sx-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .sx-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-plan { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.8rem 1.3rem 1.4rem; box-shadow: var(--sx-shadow-sm); }
.sx-plan.is-featured { border: 2px solid var(--sx-navy); box-shadow: var(--sx-shadow); }
.sx-plan-badge { position: absolute; top: -12px; left: 1.3rem; background: var(--sx-sage-ink); color: var(--sx-white); font-size: var(--sx-fs-12); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .8rem;  border-radius: var(--sx-r-pill); }
.sx-plan h3 { font-size: var(--sx-fs-24); margin: 0 0 .3rem; }
.sx-plan-cap { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sx-sage-ink); font-size: var(--sx-fs-14); margin: 0 0 .5rem; }
.sx-plan-aud { font-size: var(--sx-fs-16); color: var(--sx-text-mid); margin: 0 0 1rem; min-height: 3em; }
.sx-price { margin: 0 0 1rem; padding: .9rem 0; border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); }
.sx-price-amount { display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-32); font-weight: 800; color: var(--sx-navy); line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.sx-price-amount small { display: block; margin-top: 2px; font-family: var(--sx-sans); font-size: var(--sx-fs-14); font-weight: 500; color: var(--sx-muted); }
.sx-price-sub { display: block; font-size: var(--sx-fs-14); color: var(--sx-muted); margin-top: 4px; }
.sx-price-save { display: inline-block; margin-top: 6px; font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-ok-ink); background: var(--sx-ok-bg); padding: 2px 8px; border-radius: var(--sx-r-pill); }
.sx-plan-inc { font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-navy); margin: 0 0 .6rem; }
.sx-plan .sx-check { margin: 0 0 1rem; font-size: var(--sx-fs-16); }
.sx-plan-meta { list-style: none; display: grid; gap: 6px; font-size: var(--sx-fs-14); color: var(--sx-muted); margin: 0 0 1.2rem; padding-top: .8rem; border-top: 1px dashed var(--sx-line-strong); }
.sx-plan-meta li { display: flex; gap: 8px; align-items: flex-start; }
.sx-plan-meta .sx-i { color: var(--sx-navy); margin-top: .25em; }
.sx-plan .sx-btn { margin-top: auto; width: 100%; }
.sx-notes { list-style: none; display: grid; gap: 6px; margin: 1.4rem 0 0; font-size: var(--sx-fs-14); color: var(--sx-muted); }
.sx-notes li { display: flex; gap: 8px; align-items: flex-start; }
.sx-notes .sx-i { margin-top: .3em; color: var(--sx-navy); }
.sx-soon { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: var(--sx-white); border-left: 4px solid var(--sx-gold); border-radius: 0 var(--sx-r-sm) var(--sx-r-sm) 0; padding: .9rem 1.2rem; margin-top: 1.4rem; font-size: var(--sx-fs-16); box-shadow: var(--sx-shadow-sm); }
.sx-soon ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sx-soon strong { color: var(--sx-navy); }
.sx-acc { background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .12); border-radius: var(--sx-r-sm); overflow: hidden; }
.sx-sec-white .sx-acc { background: var(--sx-cream); }
.sx-acc + .sx-acc { margin-top: .7rem; }
.sx-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: .8rem 1.2rem; font-weight: 700; color: var(--sx-navy); }
.sx-acc > summary::-webkit-details-marker { display: none; }
.sx-acc > summary span { font-weight: 500; font-size: var(--sx-fs-14); color: var(--sx-muted); margin-left: auto; }
.sx-acc > summary .sx-i { color: var(--sx-sage-ink); transition: transform .2s; }
.sx-acc[open] > summary .sx-i { transform: rotate(180deg); }
.sx-cmp { list-style: none; border-top: 1px solid var(--sx-line); background: var(--sx-white); }
.sx-cmp > li { padding: .8rem 1.2rem; border-bottom: 1px solid var(--sx-line); }
.sx-cmp > li:last-child { border-bottom: 0; }
.sx-cmp-label { display: block; font-weight: 600; color: var(--sx-text); margin-bottom: .5rem; font-size: var(--sx-fs-16); }
.sx-cmp-plans { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sx-cmp-plans li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: var(--sx-fs-14); padding: 6px 8px; background: var(--sx-cream); min-width: 0; border-radius: var(--sx-r-sm); }
.sx-cmp-plans .sx-cmp-name { color: var(--sx-muted); font-weight: 500; }
.sx-cmp-yes { color: var(--sx-ok-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.sx-cmp-no { color: var(--sx-muted); }
.sx-cmp-head { display: none; }
@media (min-width: 768px) {
    .sx-cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 118px); gap: 6px; padding: .7rem 1.2rem; font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-navy); background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .12); border-radius: var(--sx-r-sm) var(--sx-r-sm) 0 0; position: sticky; top: var(--sx-header); z-index: 5; }
    .sx-cmp-head span { text-align: center; }
    .sx-cmp > li { display: grid; grid-template-columns: minmax(0, 1fr) 366px; gap: 6px; align-items: center; }
    .sx-cmp-label { margin: 0; }
    .sx-cmp-plans { grid-template-columns: repeat(3, 118px); }
    .sx-cmp-plans li { align-items: center; background: transparent; padding: 0; }
    .sx-cmp-plans .sx-cmp-name { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.sx-fx { background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.8rem 1.3rem; box-shadow: var(--sx-shadow-sm); }
@media (min-width: 768px) { .sx-fx { padding: 2.4rem 2.2rem; } }
.sx-fx h2 { font-size: var(--sx-fs-t32); }
.sx-fx-rows { list-style: none; display: grid; gap: 12px; margin: 1.2rem 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .sx-fx-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-fx-rows > li { border: 1px solid var(--sx-line); background: var(--sx-cream); border-radius: var(--sx-r-sm); padding: 1rem; }
.sx-fx-rows h3 { font-family: var(--sx-sans); font-size: var(--sx-fs-16); font-weight: 800; margin: 0 0 .7rem; letter-spacing: 0; }
.sx-fx-rows dl { margin: 0; display: grid; gap: 8px; }
.sx-fx-rows dt { font-size: var(--sx-fs-14); color: var(--sx-muted); font-weight: 500; }
.sx-fx-rows dd { margin: 0; font-weight: 800; color: var(--sx-navy); font-variant-numeric: tabular-nums; }
.sx-fx-rows dd small { font-weight: 500; color: var(--sx-muted); }
.sx-fx-rows .is-ours dd { color: var(--sx-sage-ink); }
.sx-fx-note { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: 0; }

/* ---------- formulaire de démonstration ---------- */
.sx-facts { list-style: none; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin: 1.4rem 0 0; }
@media (min-width: 576px) { .sx-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-facts li { display: flex; gap: 8px; align-items: flex-start; background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); padding: .7rem .9rem; font-size: var(--sx-fs-14); color: var(--sx-text); }
.sx-facts .sx-i { color: var(--sx-sage-ink); font-size: 1.05rem; margin-top: .2em; }
.sx-progress { position: sticky; top: var(--sx-header); z-index: 20; background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); padding: .7rem 1rem; margin: 0 0 1rem; box-shadow: var(--sx-shadow-sm); }
.sx-progress-line { display: flex; justify-content: space-between; gap: 8px; font-size: var(--sx-fs-14); }
.sx-progress-line strong { color: var(--sx-navy); }
.sx-progress-line span { color: var(--sx-muted); white-space: nowrap; }
.sx-bar { height: 6px; background: var(--sx-sage-pale); margin-top: 8px; overflow: hidden; border-radius: var(--sx-r-pill); }
.sx-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sx-navy), var(--sx-sage-ink)); transition: width .25s ease; }
.sx-progress[hidden] { display: none; }
.sx-step { background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.3rem 1.1rem; margin: 0 0 1rem; box-shadow: var(--sx-shadow-sm); }
@media (min-width: 576px) { .sx-step { padding: 1.8rem 1.8rem; } }
.sx-step-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.sx-num { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--sx-sage-light); display: flex; align-items: center; justify-content: center; color: var(--sx-navy); font-family: var(--sx-serif); font-weight: 800; font-size: var(--sx-fs-18); }
.sx-step-head h2 { font-size: var(--sx-fs-20); margin: .3rem 0 .15rem; }
.sx-step-head p { margin: 0; font-size: var(--sx-fs-14); color: var(--sx-muted); }
.sx-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .sx-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-row + .sx-row, .sx-field + .sx-field, .sx-row + .sx-field, .sx-field + .sx-row, .sx-fieldset + .sx-field, .sx-field + .sx-fieldset, .sx-fieldset + .sx-fieldset, .sx-row + .sx-fieldset, .sx-fieldset + .sx-row { margin-top: 1rem; }
.sx-row > .sx-field { margin-top: 0; }
.sx-field { min-width: 0; }
.sx-label, .sx-fieldset > legend { display: block; font-weight: 700; color: var(--sx-navy); font-size: var(--sx-fs-16); margin: 0 0 .4rem; padding: 0; }
.sx-opt { font-weight: 400; color: var(--sx-muted); }
.sx-req { color: var(--sx-bad-ink); }
.sx-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sx-input { display: block; width: 100%; min-height: 48px; padding: .65rem .8rem; font-size: var(--sx-fs-16); color: var(--sx-text); background: var(--sx-white); border: 1px solid var(--sx-line-strong); border-radius: var(--sx-r-sm); box-shadow: none; appearance: none; -webkit-appearance: none; }
.sx-input::placeholder { color: var(--sx-l-muted); opacity: 1; }
.sx-input:hover { border-color: var(--sx-navy); }
.sx-input:focus { outline: 0; border-color: var(--sx-blue); box-shadow: var(--sx-focus); }
textarea.sx-input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.sx-input { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d4a6b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.sx-input[aria-invalid="true"] { border: 2px solid var(--sx-bad-ink); }
.sx-group { display: flex; min-width: 0; }
.sx-group .sx-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--sx-line-strong); border-right: 0; background: var(--sx-cream); color: var(--sx-navy); font-weight: 700; white-space: nowrap;  border-radius: var(--sx-r-sm) 0 0 var(--sx-r-sm); }
.sx-group .sx-input { flex: 1 1 auto; min-width: 0; }
.sx-help { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: .4rem 0 0; }
.sx-err { display: flex; gap: 6px; align-items: flex-start; color: var(--sx-bad-ink); font-size: var(--sx-fs-14); font-weight: 700; margin: .4rem 0 0; }
.sx-err::before { content: "!"; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sx-bad-ink); color: var(--sx-white); font-size: var(--sx-fs-12); margin-top: 2px; }
.sx-count-chars { display: block; text-align: right; font-size: var(--sx-fs-14); color: var(--sx-muted); margin-top: 4px; }
.sx-count-chars.is-near { color: var(--sx-warn-ink); font-weight: 700; }
.sx-tiles { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .sx-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .sx-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sx-tiles-2b { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-tile { display: flex; gap: 10px; align-items: flex-start; min-height: 48px; padding: 11px 12px; border: 1px solid var(--sx-line-strong); background: var(--sx-white); cursor: pointer; font-size: var(--sx-fs-16); color: var(--sx-text); line-height: 1.35;  border-radius: var(--sx-r-sm); }
.sx-tile:hover { border-color: var(--sx-navy); }
.sx-tile input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--sx-navy); }
.sx-tile span small { display: block; font-size: var(--sx-fs-14); color: var(--sx-muted); margin-top: 2px; }
.sx-tile:has(input:checked) { border: 2px solid var(--sx-navy); background: var(--sx-sage-pale); padding: 10px 11px; }
.sx-tile:has(input:focus-visible) { box-shadow: var(--sx-focus); }
.sx-fieldset[aria-invalid="true"] .sx-tile { border-color: var(--sx-bad-ink); }
.sx-slot { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 576px) { .sx-slot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sx-hint { display: flex; gap: 8px; align-items: flex-start; margin: .7rem 0 0; padding: .7rem .9rem; background: var(--sx-sage-pale); color: var(--sx-text); font-size: var(--sx-fs-16); border-radius: var(--sx-r-sm); }
.sx-hint .sx-i { color: var(--sx-sage-ink); margin-top: .25em; }
.sx-hint[hidden] { display: none; }
.sx-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--sx-line-strong); background: var(--sx-white); cursor: pointer; font-size: var(--sx-fs-16); color: var(--sx-text);  border-radius: var(--sx-r-sm); }
.sx-consent input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--sx-navy); }
.sx-consent.is-invalid { border: 2px solid var(--sx-bad-ink); }
.sx-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sx-recap { border: 1px solid var(--sx-line); background: var(--sx-cream); margin: 0 0 1rem; border-radius: var(--sx-r-sm); overflow: hidden; }
.sx-recap h3 { font-family: var(--sx-sans); font-size: var(--sx-fs-16); font-weight: 800; letter-spacing: 0; margin: 0; padding: .75rem .9rem; border-bottom: 1px solid var(--sx-line); }
.sx-recap dl { margin: 0; }
.sx-recap div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: .5rem .9rem; border-bottom: 1px solid var(--sx-line); }
.sx-recap div:last-child { border-bottom: 0; }
@media (min-width: 576px) { .sx-recap div { grid-template-columns: 180px minmax(0, 1fr); gap: 10px; } }
.sx-recap dt { font-size: var(--sx-fs-14); font-weight: 500; color: var(--sx-muted); }
.sx-recap dd { margin: 0; font-weight: 700; color: var(--sx-navy); font-size: var(--sx-fs-16); overflow-wrap: anywhere; }
.sx-recap dd.is-empty { color: var(--sx-bad-ink); font-weight: 500; }
.sx-msg { display: flex; gap: 10px; align-items: flex-start; padding: .8rem 1rem; margin: 0 0 1rem; border-left: 4px solid currentColor; font-size: var(--sx-fs-16); border-radius: 0 var(--sx-r-sm) var(--sx-r-sm) 0; }
.sx-msg > .sx-i { font-size: 1.2rem; margin-top: 2px; }
.sx-msg > div { min-width: 0; }
.sx-msg p { margin: 0; }
.sx-msg ul { margin: 6px 0 0; padding-left: 18px; }
.sx-msg a { color: inherit; font-weight: 700; text-decoration: underline; }
.sx-msg-bad { background: var(--sx-bad-bg); color: var(--sx-bad-ink); }
.sx-msg-warn { background: var(--sx-warn-bg); color: var(--sx-warn-ink); }
.sx-msg-ok { background: var(--sx-ok-bg); color: var(--sx-ok-ink); }
.sx-legal { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: .8rem 0 0; }
.sx-btn .sx-label { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }

/* contact de l'équipe */
.sx-contact { display: flex; gap: 1rem; align-items: flex-start; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 1.3rem; margin: 0 0 1rem; box-shadow: var(--sx-shadow-sm); }
.sx-contact > .sx-icon { margin: 0; }
.sx-contact h2 { font-size: var(--sx-fs-20); margin: 0 0 .25rem; }
.sx-contact p { margin: 0; font-size: var(--sx-fs-16); color: var(--sx-text-mid); }
.sx-contact ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: .3rem; }
.sx-contact a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 479.98px) { .sx-contact > .sx-icon { display: none; } }

/* confirmation */
.sx-done { text-align: center; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); padding: 2rem 1.2rem; margin: 0 0 1rem; box-shadow: var(--sx-shadow-sm); position: relative; overflow: hidden; }
.sx-done::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sx-navy), var(--sx-sage)); }
.sx-done .sx-icon { margin: 0 auto 1rem; color: var(--sx-sage-ink); border-color: var(--sx-sage); background: var(--sx-sage-pale); }
.sx-done h1 { font-size: var(--sx-fs-t32); margin: 0 0 .6rem; }
.sx-done > p { margin: 0 auto; max-width: 540px; color: var(--sx-text-mid); }
.sx-ref { margin: 1.2rem auto .4rem; padding: .9rem .6rem; border: 2px dashed var(--sx-sage); background: var(--sx-sage-pale); max-width: 440px; border-radius: var(--sx-r-sm); }
.sx-ref small { display: block; font-size: var(--sx-fs-12); font-weight: 700; color: var(--sx-sage-ink); text-transform: uppercase; letter-spacing: .2em; }
.sx-ref output { display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-32); font-weight: 800; color: var(--sx-navy); letter-spacing: .04em; line-height: 1.25; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
@media (max-width: 339.98px) { .sx-ref output { font-size: var(--sx-fs-24); } }
@media (min-width: 576px) { .sx-ref output { font-size: var(--sx-fs-32); } }
.sx-copy { margin-top: .7rem; }
.sx-copy-msg { min-height: 1.4em; font-size: var(--sx-fs-14); color: var(--sx-ok-ink); font-weight: 700; margin: .3rem 0 0; }
.sx-sum { margin: 0; }
.sx-sum div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: .55rem 0; border-bottom: 1px solid var(--sx-line); }
.sx-sum div:last-child { border-bottom: 0; }
@media (min-width: 576px) { .sx-sum div { grid-template-columns: 200px minmax(0, 1fr); gap: 10px; } }
.sx-sum dt { font-size: var(--sx-fs-14); color: var(--sx-muted); font-weight: 500; }
.sx-sum dd { margin: 0; color: var(--sx-navy); font-weight: 700; overflow-wrap: anywhere; }
.sx-next { list-style: none; counter-reset: sxn; display: grid; gap: 1rem; }
.sx-next li { position: relative; padding-left: 52px; counter-increment: sxn; font-size: var(--sx-fs-16); color: var(--sx-text-mid); }
.sx-next li::before { content: counter(sxn); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px dashed var(--sx-sage-light); display: flex; align-items: center; justify-content: center; color: var(--sx-navy); font-family: var(--sx-serif); font-weight: 800; }
.sx-next strong { display: block; color: var(--sx-navy); }

/* ---------- pied de page ---------- */
.sx-footer { background: var(--sx-navy-900); color: var(--sx-on-dark-2); padding: 3.2rem 0 1.6rem; font-size: var(--sx-fs-16); }
.sx-footer a { color: var(--sx-on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sx-footer a:hover { color: var(--sx-white); text-decoration: underline; }
.sx-footer :focus-visible { outline-color: var(--sx-white); }
.sx-footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.sx-footer-grid > div { min-width: 0; }
@media (min-width: 640px) { .sx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sx-footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 2rem 1.6rem; } }
.sx-footer h2 { font-family: var(--sx-sans); color: var(--sx-sage-light); font-size: var(--sx-fs-12); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .6rem; }
.sx-footer ul { list-style: none; }
.sx-footer-logo { font-family: var(--sx-serif); font-size: var(--sx-fs-24); font-weight: 800; color: var(--sx-white); line-height: 1; margin: 0 0 .7rem; display: block; }
.sx-footer-logo img { display: block; height: 40px; width: auto; }
.sx-footer p { margin: 0 0 .6rem; }
.sx-footer-bottom { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: var(--sx-fs-14); }
/* adresse e-mail : ligne dédiée, 14 px, coupure seulement avant « @ » (<wbr> dans le gabarit) ;
   overflow-wrap en dernier recours sur un écran plus étroit que la partie locale de l'adresse */
.sx-footer a.sx-mail { display: flex; align-items: flex-start; gap: 6px; padding: 10px 0; min-height: 44px; font-size: var(--sx-fs-14); line-height: 1.5; }
.sx-footer a.sx-mail .sx-i { flex: 0 0 auto; margin-top: .2em; }
.sx-mail-txt { min-width: 0; overflow-wrap: anywhere; word-break: normal; }

/* ---------- contact WhatsApp et barre d'action mobile ----------
   Ordinateur (≥ 1280 px, gouttière assez large pour ne rien recouvrir) : pastille discrète en bas à droite
   (#0f7a6e : 5,2:1 avec le blanc). Téléphone et tablette (< 1280 px) : barre collée en bas (« WhatsApp » + « Demander une démo », 48 px), qui RÉSERVE
   sa hauteur (padding-bottom du corps) pour ne jamais recouvrir le contenu. Absente sur /demo et dans
   les gabarits « focus » (non rendue), masquée pendant la saisie d'un champ et à l'impression. */
.sx-wa { position: fixed; z-index: 90; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px 0 12px;
    background: var(--sx-wa); color: var(--sx-white); text-decoration: none; font-weight: 700; font-size: var(--sx-fs-16); border: 2px solid var(--sx-white); border-radius: var(--sx-r-pill); box-shadow: var(--sx-shadow); transition: background-color .2s; }
.sx a.sx-wa, .sx a.sx-wa:hover { color: var(--sx-white); text-decoration: none; }
.sx-wa:hover { background: var(--sx-wa-hover); }
.sx .sx-wa:focus-visible { outline: 3px solid var(--sx-navy-900); outline-offset: 3px; }
.sx-wa-ico { width: 24px; height: 24px; flex: 0 0 auto; }
@media (min-width: 1280px) { .sx-wa { display: inline-flex; } body.sx:has(.sx-wa) .sx-footer { padding-bottom: 88px; } }
/* jusqu'à 1440 px : rond de 48 px (icône seule, nom accessible par aria-label) logé dans la gouttière droite,
   sans recouvrir les cartes ; libellé visible seulement quand la gouttière est assez large */
@media (max-width: 1439.98px) { .sx-wa { width: 48px; padding: 0; } .sx-wa > span { display: none; } }
body.sx:has(.sx-input:focus, .sx-tile input:focus, .sx-consent input:focus) .sx-wa { display: none; }

.sx-mbar { display: none; }
@media (max-width: 1279.98px) {
    .sx-mbar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        background: rgba(255, 255, 255, .98); border-top: 1px solid var(--sx-line); box-shadow: 0 -6px 20px rgba(45, 74, 107, .1); }
    .sx-mbar { justify-content: center; }
    .sx-mbar .sx-btn { flex: 1 1 0; min-width: 0; max-width: 320px; min-height: 48px; padding: .6rem .8rem; white-space: nowrap; }
    .sx .sx-mbar .sx-mbar-wa { background: var(--sx-wa); border-color: var(--sx-wa); color: var(--sx-white); }
    .sx .sx-mbar .sx-mbar-wa:hover { background: var(--sx-wa-hover); border-color: var(--sx-wa-hover); }
    .sx-mbar .sx-wa-ico { width: 22px; height: 22px; }
    .sx-mbar-short { display: none; }
    /* très petits écrans : libellé court affiché, libellé complet gardé pour les lecteurs d'écran */
    @media (max-width: 379.98px) { .sx-mbar .sx-btn { padding: .6rem .5rem; } .sx-mbar-short { display: inline; } .sx-mbar-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
    body.sx:has(.sx-mbar) { --sx-bar-h: calc(64px + env(safe-area-inset-bottom)); }
    /* saisie en cours : le clavier occupe l'écran, la barre s'efface */
    body.sx:has(input:focus, textarea:focus, select:focus) .sx-mbar { display: none; }
}

/* ---------- apparition au défilement : amélioration progressive, contenu TOUJOURS visible ----------
   Aucune opacité nulle ni visibility: hidden de base. Seuls les navigateurs qui gèrent les animations
   pilotées par le défilement (animation-timeline: view()) font glisser légèrement les blocs ; sans ce
   support, sans JavaScript, à l'impression ou avec moins de mouvement : aucune animation. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .sx-reveal, .sx-steps > li, .sx-mini-plans > li {
            animation: sx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    }
}
@keyframes sx-rise { from { transform: translateY(18px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .sx *, .sx *::before, .sx *::after { transition: none !important; animation: none !important; }
}

/* ---------- impression ---------- */
@media print {
    .sx-header, .sx-footer, .sx-wa, .sx-mbar, .sx-skip, .sx-pager, .sx-cta-wrap, .sx-copy, .sx-hero-shape, .sx-phero-media::before { display: none !important; }
    body.sx { background: #fff; padding-bottom: 0; }
    .sx-reveal, .sx-steps > li, .sx-mini-plans > li { animation: none !important; }
}

.sx-photo + .sx-head { margin-top: 1.8rem; margin-bottom: 0; }
.sx .sx-sec-navy a:not(.sx-btn):hover { color: var(--sx-white); }

/* sommaire de page (ancres) */
.sx-sec.sx-toc { padding: 1rem 0; border-bottom: 1px solid var(--sx-line); }
.sx-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(45, 74, 107, .18); border-radius: var(--sx-r-pill); font-size: var(--sx-fs-14); font-weight: 600; color: var(--sx-text-mid); text-decoration: none; background: var(--sx-white); transition: border-color .2s, background-color .2s; }
.sx a.sx-toc-a, .sx-toc a:hover { border-color: var(--sx-sage); background: var(--sx-sage-pale); color: var(--sx-navy); }
.sx-phero-cap { text-align: center; font-size: var(--sx-fs-14); color: var(--sx-on-dark); margin: .8rem 0 0; }
@media (max-width: 991.98px) { .sx-phero-cap { color: var(--sx-white); } }
.sx-media-center { display: flex; flex-direction: column; align-items: center; }
.sx-media-center > .sx-shot { align-self: stretch; }
.sx-schools + .sx-link { margin-top: 1rem; }
h3.sx-mt { margin-bottom: 1rem; }
.sx-kpi { background: var(--sx-navy-900); border-radius: var(--sx-r-sm); padding: 1rem 1.1rem; color: var(--sx-on-dark); font-size: var(--sx-fs-14); line-height: 1.4; }
.sx-kpi strong { display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-32); font-weight: 800; color: var(--sx-gold); line-height: 1.1; }
.sx-desc { margin: 0; color: var(--sx-text-mid); overflow-wrap: anywhere; }
.sx-tag .sx-i { color: var(--sx-sage-ink); }
.sx .sx-phero-media .sx-shot figcaption { color: var(--sx-muted); }
.sx-crumb + .sx-eyebrow { margin-top: .4rem; }
.sx [hidden]:not([hidden="until-found"]) { display: none !important; }
.sx .sx-phero-cap { width: fit-content; max-width: 100%; margin: .9rem auto 0; background: var(--sx-navy-900); color: var(--sx-white); padding: .3rem .9rem; border-radius: var(--sx-r-pill); }

/* ---------- en-tête « focus » (pré-inscription, connexion, mot de passe oublié) ----------
   Marque + deux liens, sans sous-menu ni appel commercial. Libellé court sur téléphone
   (le libellé complet reste lu par les lecteurs d'écran). */
.sx-fnav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.sx-fnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 .55rem; font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-text-mid); text-decoration: none; white-space: nowrap; }
.sx .sx-fnav a:hover { color: var(--sx-navy); }
.sx-fnav a[aria-current] { color: var(--sx-navy-900); font-weight: 700; box-shadow: inset 0 -3px 0 var(--sx-action); }
.sx-fnav .sx-i { color: var(--sx-sage-ink); font-size: 1rem; }
.sx-fnav-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 339.98px) { .sx-fnav a { padding: 0 .35rem; font-size: var(--sx-fs-14); } .sx-fnav .sx-i { display: none; } }
@media (min-width: 640px) {
    .sx-fnav a { font-size: var(--sx-fs-16); font-weight: 600; padding: 0 .8rem; }
    .sx-fnav-long { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .sx-fnav-short { display: none; }
}

/* ---------- connexion, mot de passe oublié (carte centrée, un seul objectif) ---------- */
.sx-auth { padding-top: 1.6rem; }
@media (min-width: 768px) { .sx-auth { padding-top: 3rem; } }
.sx-auth-wrap { max-width: 480px; }
.sx-auth-card { position: relative; overflow: hidden; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); box-shadow: var(--sx-shadow); padding: 1.6rem 1.2rem 1.4rem; }
.sx-auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sx-navy), var(--sx-sage)); }
@media (min-width: 576px) { .sx-auth-card { padding: 2.2rem 2.2rem 1.8rem; } }
.sx-auth-card .sx-icon { margin-bottom: 1rem; }
.sx-auth-card h1 { font-size: var(--sx-fs-t32); font-weight: 800; margin: 0 0 .5rem; }
.sx-auth-card h2 { font-size: var(--sx-fs-24); margin: 0 0 .4rem; }
.sx-auth-sub { color: var(--sx-text-mid); font-size: var(--sx-fs-16); margin: 0 0 1.4rem; }
.sx-auth-card .sx-field + .sx-field { margin-top: 1rem; }
.sx-auth-input { position: relative; }
.sx-auth-input > .sx-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sx-muted); pointer-events: none; }
.sx-auth-input .sx-input { padding-left: 42px; }
.sx-auth-input.has-toggle .sx-input { padding-right: 52px; }
.sx-auth-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--sx-text-mid); cursor: pointer; font-size: 1.1rem; }
.sx-auth-eye:hover { color: var(--sx-navy); background: var(--sx-cream); }
.sx-auth-eye span { display: inline-flex; }
.sx-auth-eye .sx-eye-off, .sx-auth-eye.is-shown .sx-eye-on { display: none; }
.sx-auth-eye.is-shown .sx-eye-off { display: inline-flex; }
.sx .sx-input.is-invalid { border: 2px solid var(--sx-bad-ink); }
.sx-auth-caps { display: flex; align-items: center; gap: 6px; margin: .45rem 0 0; font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-warn-ink); background: var(--sx-warn-bg); padding: .35rem .6rem; border-radius: var(--sx-r-sm); }
.sx-auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; margin: .6rem 0 1rem; }
.sx-auth-remember { font-size: var(--sx-fs-16); font-weight: 600; }
.sx-auth-submit { width: 100%; }
.sx-auth-msg { margin-top: 1rem; }
.sx-auth-msg:empty { display: none; }
.sx-auth-msg .sx-msg, #pr-msg .sx-msg { margin: 0; }
#pr-msg:not(:empty) { margin-bottom: 1rem; }
#pr-code-simulation:empty { display: none; }
.sx-auth-center { text-align: center; }
.sx-auth-back { margin: 1.2rem 0 0; padding-top: .8rem; border-top: 1px solid var(--sx-line); }
.sx-auth-card .sx-auth-ok, .sx-lock-dialog .sx-auth-ok { color: var(--sx-sage-ink); border-color: var(--sx-sage); background: var(--sx-sage-pale); }
.sx-auth-card .sx-auth-center .sx-auth-ok { margin: 0 auto 1rem; }
.sx-otp { font-family: var(--sx-sans); font-size: var(--sx-fs-24); font-weight: 700; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.sx-otp.is-backup { letter-spacing: .12em; font-size: var(--sx-fs-20); text-transform: uppercase; }
.sx-auth-demo { background: var(--sx-cream); border: 1px dashed var(--sx-line-strong); border-radius: var(--sx-r-sm); padding: .8rem; margin: 0 0 1.2rem; }
.sx-auth-demo p { display: flex; gap: 6px; align-items: center; margin: 0 0 .6rem; font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-navy); }
.sx-auth-demo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sx-auth-demo-list button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--sx-line-strong); background: var(--sx-white); font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-navy); cursor: pointer; padding: 0 4px;  border-radius: var(--sx-r-sm); }
.sx-auth-demo-list button:hover { border-color: var(--sx-navy); }
.sx-auth-spaces { border-top: 1px solid var(--sx-line); margin-top: 1.4rem; padding-top: 1rem; }
.sx-auth-spaces p { font-size: var(--sx-fs-14); color: var(--sx-muted); text-align: center; margin: 0 0 .6rem; }
.sx-auth-spaces ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 420px) { .sx-auth-spaces ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-auth-spaces li { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-text-mid); background: var(--sx-cream); border: 1px solid var(--sx-line); border-radius: var(--sx-r-pill); padding: .3rem .5rem; }
.sx-auth-spaces li .sx-i { color: var(--sx-sage-ink); }
.sx-auth-spaces li.is-current { background: var(--sx-sage-pale); border-color: var(--sx-sage); color: var(--sx-navy); }
.sx-auth-help { list-style: none; display: grid; gap: .6rem; margin: 1.2rem 0 0; font-size: var(--sx-fs-16); color: var(--sx-text-mid); }
.sx-auth-help li { display: flex; gap: .6rem; align-items: flex-start; }
.sx-auth-help .sx-i { color: var(--sx-sage-ink); margin-top: .25em; flex: 0 0 auto; }
.sx-auth-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 1.2rem; }
.sx-auth-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: var(--sx-fs-12); font-weight: 700; color: var(--sx-muted); line-height: 1.25; }
.sx-auth-steps b { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--sx-sage-light); display: flex; align-items: center; justify-content: center; font-family: var(--sx-serif); color: var(--sx-navy); }
.sx-auth-steps li.is-current { color: var(--sx-navy); }
.sx-auth-steps li.is-current b { border: 2px solid var(--sx-navy); }
.sx-auth-steps li.is-done b { border: 2px solid var(--sx-sage-ink); background: var(--sx-sage-ink); color: var(--sx-white); }

/* ---------- espace numérique (choix de l'espace) ---------- */
.sx-ent-card { padding: 1.8rem 1.4rem; }
.sx-ent-card .sx-icon { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.6rem; margin-bottom: 1rem; }
.sx-ent-card h3 { font-size: var(--sx-fs-20); }
.sx-card .sx-ent-who { font-size: var(--sx-fs-14); font-weight: 700; color: var(--sx-sage-ink); letter-spacing: .04em; margin: 0 0 .6rem; }
.sx-ent-list { margin: 1rem 0 1.3rem; font-size: var(--sx-fs-14); }
.sx-card .sx-ent-go { margin-top: auto; width: 100%; }
@media (min-width: 992px) { .sx-steps.sx-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- double authentification (coquille sans données + modal bloquant) ---------- */
body.sx-lock { overflow: hidden; height: 100vh; }
.sx-lock-shell { display: flex; min-height: 100vh; filter: blur(2px); pointer-events: none; user-select: none; }
.sx-lock-side { width: 250px; flex: none; background: var(--sx-white); border-right: 1px solid var(--sx-line); padding: 20px 16px; }
@media (max-width: 991.98px) { .sx-lock-side { display: none; } }
.sx-lock-brand { display: block; height: 36px; width: auto; margin-bottom: 28px; }
.sx-lock-main { flex: 1; min-width: 0; }
.sx-lock-top { height: 64px; background: var(--sx-white); border-bottom: 1px solid var(--sx-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; color: var(--sx-text-mid); }
.sx-lock-body { padding: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sx-lock-card { background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); padding: 18px; height: 120px; }
.sx-lock-card.is-wide { grid-column: 1 / -1; height: 260px; }
.sx-sk { display: block; background: #e6e3da; border-radius: var(--sx-r-sm); }
.sx-sk-line { height: 14px; margin: 0 0 18px; }
.sx-sk-title { height: 32px; width: 280px; max-width: 40%; }
.sx-sk-small { height: 12px; width: 50%; margin-bottom: 18px; }
.sx-sk-big { height: 28px; width: 40%; }
.sx-sk-chart { height: 180px; width: 100%; }
.sx-sk.w50 { width: 50%; } .sx-sk.w55 { width: 55%; } .sx-sk.w60 { width: 60%; } .sx-sk.w65 { width: 65%; } .sx-sk.w70 { width: 70%; } .sx-sk.w75 { width: 75%; } .sx-sk.w80 { width: 80%; }
.sx-lock-backdrop { position: fixed; inset: 0; background: rgba(15, 30, 46, .6); z-index: 1040; }
.sx-lock-modal { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.sx-lock-dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--sx-white); border-radius: var(--sx-r-card); border-top: 4px solid var(--sx-navy); box-shadow: var(--sx-shadow-lg); padding: 1.6rem 1.2rem; }
@media (min-width: 576px) { .sx-lock-dialog { padding: 2rem; } }
.sx-lock-dialog .sx-icon { margin-bottom: .9rem; }
.sx-lock-dialog h1 { font-size: var(--sx-fs-t32); margin: 0 0 .5rem; }
.sx-lock-dialog > div > p { color: var(--sx-text-mid); font-size: var(--sx-fs-16); }
.sx-lock-steps { margin: 0 0 1rem; gap: .7rem; }
.sx-lock-steps li { font-size: var(--sx-fs-16); }
.sx-lock-qr { display: flex; justify-content: center; padding: 8px; border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); margin-bottom: .6rem; }
.sx-lock-qr img { width: 180px; height: 180px; }
.sx-lock-secret { font-family: ui-monospace, Consolas, monospace; font-size: var(--sx-fs-16); background: var(--sx-cream); border: 1px solid var(--sx-line); padding: 8px; word-break: break-all; text-align: center; margin: .3rem 0 1rem; color: var(--sx-navy); }
.sx-lock-msg { min-height: 1.4em; font-size: var(--sx-fs-16); margin: .6rem 0; }
.sx-lock-msg.is-err { color: var(--sx-bad-ink); font-weight: 700; }
.sx-lock-msg.is-ok { color: var(--sx-ok-ink); font-weight: 700; }
.sx-lock-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin-top: .6rem; }
.sx-lock-links button.sx-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.sx-lock-links button.sx-link:disabled { color: var(--sx-muted); cursor: default; }
.sx-lock-note { margin-top: .2rem; }
.sx-lock-help { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: 1rem 0 0; border-top: 1px solid var(--sx-line); padding-top: .8rem; }
.sx-lock-codes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: var(--sx-fs-16); margin: 0 0 1rem; }
.sx-lock-codes li { background: var(--sx-cream); border: 1px solid var(--sx-line); padding: 6px; text-align: center; color: var(--sx-navy); }

/* ---------- vérification des documents ---------- */
.sx-vf { padding-top: 1.8rem; }
.sx-vf .sx-box + .sx-box, .sx-vf-result + .sx-box, .sx-vf-facts + .sx-box, #vf-result-zone + .sx-box { margin-top: 1.2rem; }
.sx-vf-facts { margin: 0; }
.sx-vf-search { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .sx-vf-search { grid-template-columns: minmax(0, 1fr) auto; } }
.sx-vf-input { letter-spacing: .06em; text-transform: uppercase; }
.sx-vf-input::placeholder { text-transform: none; letter-spacing: 0; }
.sx-vf-result { position: relative; overflow: hidden; background: var(--sx-white); border: 1px solid rgba(45, 74, 107, .1); border-radius: var(--sx-r-card); box-shadow: var(--sx-shadow); }
.sx-vf-result-head { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.2rem; border-bottom: 1px solid var(--sx-line); }
@media (min-width: 576px) { .sx-vf-result-head { padding: 1.6rem 1.8rem; } }
.sx-vf-result.is-ok .sx-vf-result-head { background: var(--sx-ok-bg); border-top: 5px solid var(--sx-ok-ink); }
.sx-vf-result.is-bad .sx-vf-result-head { background: var(--sx-bad-bg); border-top: 5px solid var(--sx-bad-ink); }
.sx-vf-result.is-warn .sx-vf-result-head { background: var(--sx-warn-bg); border-top: 5px solid var(--sx-gold); }
.sx-vf-badge { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--sx-white); }
.is-ok .sx-vf-badge { color: var(--sx-ok-ink); border: 2px solid var(--sx-ok-ink); }
.is-bad .sx-vf-badge { color: var(--sx-bad-ink); border: 2px solid var(--sx-bad-ink); }
.is-warn .sx-vf-badge { color: var(--sx-warn-ink); border: 2px solid var(--sx-gold); }
.sx-vf-kicker { font-size: var(--sx-fs-12); letter-spacing: .22em; text-transform: uppercase; font-weight: 800; margin: 0 0 .2rem; }
.sx .is-ok .sx-vf-kicker { color: var(--sx-ok-ink); }
.sx .is-bad .sx-vf-kicker { color: var(--sx-bad-ink); }
.sx .is-warn .sx-vf-kicker { color: var(--sx-warn-ink); }
.sx-vf-result-head h2 { font-size: var(--sx-fs-t32); margin: 0 0 .3rem; }
.sx-vf-result-head p { margin: 0; color: var(--sx-text); font-size: var(--sx-fs-16); }
.sx-vf-result-body { padding: 1.2rem; }
@media (min-width: 576px) { .sx-vf-result-body { padding: 1.6rem 1.8rem; } }
.sx-vf-holder { margin: 0 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--sx-line); }
.sx-vf-holder small { display: block; font-size: var(--sx-fs-14); color: var(--sx-muted); }
.sx-vf-holder strong { display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-20); color: var(--sx-navy); overflow-wrap: anywhere; }
.sx-vf-check { margin-top: 1.1rem; }
.sx-vf-result-body > p { color: var(--sx-text-mid); }
.sx-vf-stamp { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: .9rem 0 0; }
.sx-vf-actions { margin-top: 1rem; }
.sx-vf-mail { word-break: break-all; }
.sx-vf-legend { list-style: none; display: grid; gap: .9rem; margin: 0 0 1rem; }
.sx-vf-legend li { display: flex; gap: .8rem; align-items: flex-start; }
.sx-vf-legend strong { display: block; color: var(--sx-navy); font-size: var(--sx-fs-16); }
.sx-vf-legend span { display: block; font-size: var(--sx-fs-16); color: var(--sx-text-mid); line-height: 1.55; }
.sx-vf-legend .sx-vf-dot { flex: 0 0 auto; font-size: 1.25rem; margin-top: 1px; }
.sx-vf-dot.is-ok { color: var(--sx-ok-ink); }
.sx-vf-dot.is-bad { color: var(--sx-bad-ink); }
.sx-vf-dot.is-warn { color: var(--sx-warn-ink); }
.sx-help.sx-err::before { content: none; }
.sx-help.sx-err { display: block; }

/* ---------- politique de confidentialité ---------- */
.sx-pc { padding-top: 1.8rem; }
.sx-pc .sx-box { scroll-margin-top: calc(var(--sx-header) + 16px); }
.sx-pc .sx-box p, .sx-pc .sx-box li { color: var(--sx-text-mid); overflow-wrap: anywhere; }
.sx-pc .sx-box strong { color: var(--sx-text); }
.sx-pc .sx-box > p:last-child { margin-bottom: 0; }
.sx-pc-list { list-style: none; display: grid; gap: .6rem; margin: 0 0 1rem; }
.sx-pc-list li { position: relative; padding-left: 1.3rem; line-height: 1.6; }
.sx-pc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sx-sage); }
.sx-pc-extra { white-space: pre-line; }
.sx-pc-version { font-size: var(--sx-fs-14); color: var(--sx-muted); margin: 1.2rem 0 0; }
.sx-pc-center { text-align: center; }
.sx-pc-center .sx-icon { margin: 0 auto 1rem; }
.sx-pc .sx-sum { margin-top: .4rem; }

/* impression : résultat de vérification, politique */
@media print {
    .sx-toc, .sx-vf-form, .sx-vf-actions, .sx-phero .sx-crumb, .sx-auth-help { display: none !important; }
    .sx-vf-result, .sx-box { box-shadow: none; border-color: #999; break-inside: avoid; }
    .sx-phero { border: 0; }
}

/* Boutons <button> : « .sx button { font: inherit } » l'emportait sur .sx-btn / .sx-link (taille, graisse, couleur). */
.sx button.sx-btn { font-family: var(--sx-sans); font-weight: 700; font-size: var(--sx-fs-16); line-height: 1.2; letter-spacing: 0; }
.sx button.sx-btn-sm { font-size: var(--sx-fs-16); }
.sx button.sx-link { color: var(--sx-blue-ink); font-weight: 700; font-size: var(--sx-fs-16); }
.sx button.sx-link:hover { color: var(--sx-navy); text-decoration: underline; }
.pi-center .sx-link { justify-content: center; text-align: center; }

/* ---------- kit d'illustrations signature (App/Views/vitrine/_kit.php) ----------
   Palette fermée : jetons du site + trois tons de peau. Valable dans tout <svg> de la vitrine,
   de l'Espace numérique et de la connexion (classes préfixées kt- : aucun conflit avec .i-*). */
.sx .kt-sk1 { fill: var(--sx-skin-1); }
.sx .kt-sk2 { fill: var(--sx-skin-2); }
.sx .kt-sk3 { fill: var(--sx-skin-3); }
.sx .kt-h { fill: var(--sx-navy-950); }
.sx .kt-n { fill: var(--sx-navy); }
.sx .kt-n9 { fill: var(--sx-navy-900); }
.sx .kt-b { fill: var(--sx-action); }
.sx .kt-s { fill: var(--sx-sage); }
.sx .kt-sl { fill: var(--sx-sage-light); }
.sx .kt-sp { fill: var(--sx-sage-pale); }
.sx .kt-g { fill: var(--sx-gold); }
.sx .kt-gp { fill: var(--sx-gold-pale); }
.sx .kt-c { fill: var(--sx-cream); }
.sx .kt-w { fill: var(--sx-white); }
.sx .kt-r { fill: var(--sx-alert); }
.sx .kt-sh { fill: rgba(15, 30, 46, .22); }
.sx .kt-k { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sx .kt-k-arm { stroke-width: 11; }
.sx .kt-k-sl { stroke: var(--sx-sage-light); }
.sx .kt-k-s { stroke: var(--sx-sage); }
.sx .kt-k-gp { stroke: var(--sx-gold-pale); }
.sx .kt-k-b { stroke: var(--sx-action); }
.sx .kt-k-sk3 { stroke: var(--sx-skin-3); stroke-width: 8; }
.sx-kit-fig { display: block; width: 100%; height: auto; }

/* ---------- accueil : visuel produit du héros (navigateur + téléphone + bulles de repère) ----------
   Contenu visible par défaut ; l'entrée échelonnée des bulles ne se joue qu'une fois, jamais avec
   prefers-reduced-motion. Mobile d'abord : le visuel suit le texte et le bouton. */
.sx-hv { position: relative; margin: 2.2rem 0 0; padding: 2.4rem 12px 1.8rem; background: linear-gradient(160deg, var(--sx-blue) 0%, var(--sx-action-900) 100%); clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); }
.sx-hv-stage { position: relative; max-width: 560px; margin: 0 auto; padding: 0 0 46px; }
.sx-hv-browser { position: relative; margin: 0; width: 84%; background: var(--sx-white); border-radius: var(--sx-r-sm); overflow: hidden; box-shadow: 0 24px 60px rgba(15, 30, 46, .35); }
.sx-hv-browser .sx-shot-bar { min-height: 26px; }
.sx-hv-browser img { display: block; width: 100%; height: auto; }
.sx-hv-phone { position: absolute; right: 0; bottom: 0; width: 27%; max-width: 160px; padding: 6px; background: var(--sx-navy-950); border-radius: 22px; box-shadow: 0 20px 44px rgba(15, 30, 46, .4); }
.sx-hv-phone img { display: block; width: 100%; height: auto; border-radius: 16px; }
.sx-hv-cap { position: relative; width: fit-content; max-width: 100%; margin: 1rem auto 0; padding: .3rem .9rem; border-radius: var(--sx-r-pill); background: var(--sx-action-950); color: var(--sx-white); font-size: var(--sx-fs-12); text-align: center; }
/* bulles : texte HTML (pas dans l'image). Chaque repère .sx-hv-pin est posé, en % de l'image, sur un
   élément réel de la capture ; l'étiquette se place à côté (is-up : au-dessus, is-down : dessous,
   is-right : à droite). Calques : .sx-hv-pins couvre exactement l'image du navigateur, .sx-hv-ppins
   celle du téléphone. */
.sx-hv-pins, .sx-hv-ppins { position: absolute; z-index: 2; list-style: none; pointer-events: none; }
.sx-hv-pins { left: 0; width: 84%; top: 26px; aspect-ratio: 1120 / 793; }
.sx-hv-ppins { left: 6px; right: 6px; top: 6px; bottom: 6px; }
.sx-hv-pin { position: absolute; width: 0; height: 0; }
.sx-hv-pin::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sx-gold); box-shadow: 0 0 0 3px var(--sx-white), 0 2px 8px rgba(15, 30, 46, .35); }
.sx-hv-tag { position: absolute; display: flex; align-items: center; gap: 6px; width: max-content; max-width: 10rem; padding: .35rem .6rem; background: var(--sx-white); color: var(--sx-navy-900); border-radius: var(--sx-r-sm); box-shadow: var(--sx-shadow); font-size: var(--sx-fs-12); font-weight: 700; line-height: 1.3; }
.sx-hv-tag .sx-i { flex: 0 0 auto; color: var(--sx-success); font-size: .95rem; }
.sx-hv-pin.is-up .sx-hv-tag { left: 0; bottom: 14px; transform: translateX(-50%); }
.sx-hv-pin.is-down .sx-hv-tag { left: 0; top: 14px; transform: translateX(-50%); }
.sx-hv-pin.is-right .sx-hv-tag { left: 14px; top: 0; transform: translateY(-50%); }
.sx-hv-pin.is-left .sx-hv-tag { right: 14px; top: 0; transform: translateY(-50%); }
.sx-hv-pin.is-a { left: 21%; top: 30%; }   /* anneau « 47.6 % recouvré » */
.sx-hv-pin.is-b { left: 56.4%; top: 69.2%; }   /* ligne « Absents » de la présence */
.sx-hv-pin.is-c { left: 74%; top: 22%; }       /* moyenne de l'enfant, espace Parent */
.sx-hv-pin.is-c .sx-hv-tag { transform: translateX(-80%); }
.sx-hv-pin.is-a .sx-hv-tag { transform: translateX(-30%); }
@media (max-width: 575.98px) { .sx-hv-pin.is-b, .sx-hv-pin.is-c { display: none; } .sx-hv-tag { max-width: 10rem; } }
@media (prefers-reduced-motion: no-preference) {
    .sx-hv-tag { animation: sx-hv-in .45s cubic-bezier(.2, .8, .2, 1) .6s 1 backwards; }
    .sx-hv-pin.is-b .sx-hv-tag { animation-delay: .9s; }
    .sx-hv-pin.is-c .sx-hv-tag { animation-delay: 1.2s; }
}
@keyframes sx-hv-in { from { translate: 0 8px; scale: .94; } to { translate: 0 0; scale: 1; } }
@media (min-width: 992px) {
    .sx-hv { margin: 0; padding: 0; background: none; clip-path: none; }
    .sx-hv-stage { padding-bottom: 56px; }
    .sx-hv-cap { margin-right: 0; background: var(--sx-action-950); }
    .sx-hv-tag { max-width: 13.5rem; }
}
@media print { .sx-hv-tags { display: none; } }

/* bande de confiance sous le héros : les chiffres réels de la plateforme (PublicStats) */
.sx-band { background: var(--sx-navy-900); color: var(--sx-on-dark); padding: 1.6rem 0; --sx-text: var(--sx-on-dark); --sx-text-mid: var(--sx-on-dark-2); --sx-muted: var(--sx-on-dark-2); }
.sx-band .sx-stats { gap: 10px; padding-left: 0; }
@media (min-width: 768px) { .sx-band .sx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sx-band .sx-stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); padding: .9rem .6rem; }
.sx-band .sx-stat-num { font-size: var(--sx-fs-24); }
@media (min-width: 768px) { .sx-band .sx-stat-num { font-size: var(--sx-fs-32); } }
.sx-band .sx-stats-note { background: transparent; color: var(--sx-on-dark-2); padding: 0; margin-top: .8rem; }

/* ---------- preuve sociale réelle (App/Config/Testimonials.php) : rendue seulement avec accord écrit ---------- */
.sx-quotes { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .sx-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-quote { position: relative; height: 100%; margin: 0; background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-lg); padding: 1.8rem 1.4rem 1.4rem; box-shadow: var(--sx-shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.sx-quote blockquote { margin: 0; font-family: var(--sx-serif); font-size: var(--sx-fs-20); line-height: 1.45; color: var(--sx-navy); }
.sx-quote blockquote::before { content: "« "; color: var(--sx-success); }
.sx-quote blockquote::after { content: " »"; color: var(--sx-success); }
.sx-quote figcaption { display: flex; gap: .8rem; align-items: center; margin-top: auto; font-size: var(--sx-fs-14); color: var(--sx-muted); }
.sx-quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.sx-quote figcaption strong { display: block; font-size: var(--sx-fs-16); color: var(--sx-navy); }
.sx-case { display: grid; gap: 1.2rem; background: var(--sx-white); border: 1px solid var(--sx-line); border-radius: var(--sx-r-lg); padding: 1.6rem 1.4rem; box-shadow: var(--sx-shadow-sm); }
.sx-case + .sx-case { margin-top: 1.2rem; }
@media (min-width: 992px) { .sx-case { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding: 2.2rem; gap: 2rem; } }
.sx-case h3 { font-size: var(--sx-fs-24); margin: 0 0 .5rem; }
.sx-case p { color: var(--sx-text-mid); }
.sx-case-facts { list-style: none; display: grid; gap: .7rem; align-content: start; }
.sx-case-facts li { background: var(--sx-cream); border-radius: var(--sx-r-sm); padding: .8rem 1rem; color: var(--sx-text-mid); font-size: var(--sx-fs-14); }
.sx-case-facts strong { display: block; font-family: var(--sx-serif); font-size: var(--sx-fs-24); color: var(--sx-navy); }

/* légende d'une capture posée sur une surface marine : la carte reste blanche, la légende reste foncée */
.sx-sec-navy .sx-shot figcaption { color: var(--sx-l-muted); }

/* deux captures côte à côte (une carte chacune) */
.sx-shots-2 { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 576px) { .sx-shots-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

/* captures téléphone dans un cadre neutre (pages de contenu) */
.sx-phone.is-framed img { border-width: 6px; border-radius: 26px; }

/* ---------- rythme (audit P1-7) : en-têtes de section plus serrés sur téléphone ---------- */
@media (max-width: 767.98px) {
    .sx-sec { padding: 2.5rem 0; }
    .sx-head { margin-bottom: 1.6rem; }
    .sx-lead { font-size: var(--sx-fs-16); line-height: 1.55; }
    .sx-mt { margin-top: 1.5rem; }
    .sx-change { padding: 1.6rem 1.2rem; }
    .sx-change h2 { margin-bottom: 1rem; }
    .sx-footer { padding-top: 2.4rem; }
    .sx-footer-bottom { margin-top: 1.6rem; }
    .sx-divider { margin: .8rem 0 1rem; }
    .sx-cta-wrap { padding: 1.8rem 1.2rem; gap: 1.2rem; }
}
/* pages voisines côte à côte dès 340 px */
@media (min-width: 340px) and (max-width: 639.98px) {
    .sx-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sx-pager a { padding: .7rem .8rem; }
    .sx-pager small { letter-spacing: .06em; }
    .sx-pager strong { font-size: var(--sx-fs-16); }
    .sx-pager .is-next:only-child { grid-column: 2; }
}

/* ---------- pied de page sur téléphone : listes de liens sur deux colonnes (le contact reste pleine
   largeur pour ne jamais couper l'adresse e-mail) ---------- */
@media (min-width: 340px) and (max-width: 639.98px) {
    .sx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
    .sx-footer-grid > div:first-child, .sx-footer-grid > div:last-child { grid-column: 1 / -1; }
    .sx-footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
    .sx-footer-grid > div:nth-child(4) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
    .sx-footer a { line-height: 1.3; }
}

/* ---------- transitions entre pages (View Transitions inter-documents, amélioration progressive) ----------
   Fondu court du contenu ; l'en-tête et la barre d'action sont identiques d'une page à l'autre et passent
   sans animation (aucun clignotement). Navigateurs sans support ou mouvement réduit : navigation normale. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    .sx-header { view-transition-name: sx-header; }
    .sx-mbar { view-transition-name: sx-mbar; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
    ::view-transition-group(sx-header), ::view-transition-group(sx-mbar),
    ::view-transition-old(sx-header), ::view-transition-new(sx-header),
    ::view-transition-old(sx-mbar), ::view-transition-new(sx-mbar) { animation: none; }
}

/* Message d'erreur dans un formulaire (pages de connexion par lien) */
.sx-alert { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: var(--sx-r-sm); background: var(--sx-alert-bg); color: var(--sx-alert); font-weight: 600; }
