/* =========================================================
   Karefully — site vitrine V2 « Connected Surgical Care »
   Direction C (cinématographique) + système éditorial B.
   Source : site/assets/site.css → publié sous /assets/site/site.<empreinte>.css
   Le centre d'aide garde /style.css : ne rien y retirer sans passe dédiée.
   ========================================================= */

/* ---------- 1. Police ---------- */
@font-face {
    font-family: 'Satoshi';
    src: url('/fonts/Satoshi-Variable.woff2') format('woff2-variations');
    font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- 2. Jetons (couleurs relevées dans les vidéos) ---------- */
:root {
    --mist: #EAF1F0; --mist-tl: #C6DADB; --mist-tr: #D8E5EB; --paper: #F3F7F6; --white: #FFFFFF;
    --mint: #A9D4CE; --mint-hi: #C2E5E0; --brand: #2F6B70; --brand-700: #1E4B4F;
    --deep: #163E43; --deep-2: #0F2F33; --deep-3: #0B2427; --deep-hi: #306466;
    --ink: #16262A; --ink-2: #3D5458; --ink-3: #56706F;
    --on-deep: #EEF5F4; --on-deep-2: rgba(238, 245, 244, .8);
    --line: rgba(22, 38, 42, .10); --line-deep: rgba(238, 245, 244, .14);
    --warn: #A44332; --warn-tint: #F7E9E5;
    --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --pill: 999px;
    --sh-1: 0 1px 2px rgba(16,42,45,.06), 0 8px 24px rgba(16,42,45,.06);
    --sh-2: 0 2px 6px rgba(16,42,45,.06), 0 24px 60px rgba(16,42,45,.12);
    --sh-3: 0 40px 120px rgba(16,42,45,.22);
    --ease: cubic-bezier(.2,.7,.1,1);
    --container: 1240px; --gutter: clamp(16px, 4vw, 40px);
    --hdr-h: 76px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body { margin: 0; font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--pill); background: var(--deep); color: #fff; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.is-deep :focus-visible, .end :focus-visible, .player :focus-visible { outline-color: var(--mint); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--solid { fill: currentColor; stroke: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand__name { font-weight: 600; font-size: 21px; letter-spacing: -.035em; }
.logo-k { color: var(--brand); }
.is-deep .logo-k, .end .logo-k { color: var(--mint); }
.is-deep .brand { color: var(--on-deep); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- 4. Typographie ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--brand); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent); }
.is-deep .eyebrow { color: var(--mint); }
.idx { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.idx > span { font-variant-numeric: tabular-nums; color: var(--brand); padding-right: 14px; border-right: 1px solid var(--line); }
.is-deep .idx { color: var(--on-deep-2); }
.is-deep .idx > span { color: var(--mint); border-color: var(--line-deep); }
.h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.h1 em { font-style: normal; color: var(--brand); }
.is-deep .h1 em { color: var(--mint); }
.h2 { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.03; font-weight: 500; letter-spacing: -.048em; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.body { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }
.is-deep { color: var(--on-deep); }
.is-deep .h2, .is-deep .h3, .is-deep .h1 { color: #fff; }
.is-deep .lead, .is-deep .body { color: var(--on-deep-2); }
.is-deep .small { color: rgba(238,245,244,.72); }

/* ---------- 5. Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--deep); color: #fff; box-shadow: 0 10px 28px rgba(22,62,67,.22); }
.btn--dark:hover { background: var(--brand-700); }
.btn--mint { background: var(--mint); color: var(--deep); }
.btn--mint:hover { background: var(--mint-hi); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--mist); }
.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.16); }
.btn--line { background: transparent; border-color: rgba(22,38,42,.22); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
.btn--cta { background: var(--deep); color: #fff; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 58px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-weight: 600; font-size: 15px; color: var(--brand); text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }
.is-deep .link-arrow { color: var(--mint); }
.play-btn { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 8px; border-radius: var(--pill); border: 1px solid transparent; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: var(--sh-1); transition: transform .3s var(--ease); }
.play-btn:hover { transform: translateY(-1px); }
.play-btn__disc { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--deep); color: #fff; }
.play-btn__disc .icon { width: 14px; height: 14px; margin-left: 2px; }
.play-btn__meta { font-weight: 500; color: var(--ink-3); }

/* ---------- 6. Cadre à repères d'angle (emprunt B) ---------- */
.brk { --brk: rgba(47,107,112,.6); position: relative; padding: 14px; background:
    linear-gradient(var(--brk), var(--brk)) 0 0 / 22px 1.5px, linear-gradient(var(--brk), var(--brk)) 0 0 / 1.5px 22px,
    linear-gradient(var(--brk), var(--brk)) 100% 0 / 22px 1.5px, linear-gradient(var(--brk), var(--brk)) 100% 0 / 1.5px 22px,
    linear-gradient(var(--brk), var(--brk)) 0 100% / 22px 1.5px, linear-gradient(var(--brk), var(--brk)) 0 100% / 1.5px 22px,
    linear-gradient(var(--brk), var(--brk)) 100% 100% / 22px 1.5px, linear-gradient(var(--brk), var(--brk)) 100% 100% / 1.5px 22px;
    background-repeat: no-repeat; }
.is-deep .brk { --brk: var(--mint); }
.brk > img, .brk > video, .brk > .loop video, .brk > picture img { border-radius: 8px; }
.shot { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--sh-2); background: #fff; }
.is-deep .shot { border-color: rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.35); }

/* ==========================================================================
   En-tête et menu mobile communs au site et au centre d'aide — source unique.
   - Balisage : site/partials/header.html et menu.html (le centre d'aide les lit aussi,
     help-center/src/templates.mjs).
   - Styles : ce fichier. site/build.mjs l'insère dans site.css à l'emplacement du marqueur
     « @inclure header.css » ; le générateur du centre d'aide l'ajoute à help.css.
   - Comportement : site/assets/header.js (même principe).
   Autonome : le centre d'aide charge /style.css et non site.css. Les couleurs (mêmes valeurs que
   site.css :root), les remises à zéro et les classes génériques sont redéfinies ici, sous .hdr et .night.
   ========================================================================== */
.hdr, .night {
    --mist: #EAF1F0; --paper: #F3F7F6; --mint: #A9D4CE; --mint-hi: #C2E5E0; --brand: #2F6B70;
    --deep: #163E43; --deep-2: #0F2F33; --deep-hi: #306466;
    --ink: #16262A; --ink-2: #3D5458; --ink-3: #56706F;
    --on-deep: #EEF5F4; --on-deep-2: rgba(238, 245, 244, .8);
    --line: rgba(22, 38, 42, .10); --line-deep: rgba(238, 245, 244, .14);
    --pill: 999px; --ease: cubic-bezier(.2,.7,.1,1);
    font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55;
}
:root { --hdr-h: 76px; }
@media (max-width: 760px) { :root { --hdr-h: 64px; } }
/* Remises à zéro et classes génériques : spécificité minimale (:where), pour que les règles de l'en-tête,
   plus bas, l'emportent toujours, comme dans site.css. */
:where(.hdr, .night) *, :where(.hdr, .night) *::before, :where(.hdr, .night) *::after { box-sizing: border-box; }
:where(.hdr, .night) p, :where(.hdr, .night) ul { margin: 0; }
:where(.hdr, .night) ul { padding: 0; list-style: none; }
:where(.hdr, .night) a { color: inherit; }
:where(.hdr, .night) button { font: inherit; color: inherit; }
:where(.hdr, .night) img, :where(.hdr, .night) svg { display: block; max-width: 100%; }
:where(.hdr, .night) img { height: auto; }
:where(.hdr, .night) [hidden] { display: none !important; }
:where(.hdr, .night) .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(.hdr, .night) :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.hdr--deep :focus-visible, .night :focus-visible { outline-color: var(--mint); }
:where(.hdr, .night) .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.hdr, .night) .icon--solid { fill: currentColor; stroke: none; }
:where(.hdr, .night) .brand, :where(.hdr, .night) .brand:hover { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
:where(.hdr, .night) .brand svg { width: 30px; height: 30px; }
:where(.hdr, .night) .brand__name { font-weight: 600; font-size: 21px; letter-spacing: -.035em; }
:where(.hdr, .night) .logo-k { color: var(--brand); }
.hdr--deep .logo-k, .night .logo-k { color: var(--mint); }
.hdr--deep .brand, .night .brand { color: var(--on-deep); }
/* Boutons de l'en-tête et du menu (mêmes valeurs que .btn de site.css) */
:where(.hdr, .night) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background-color .25s, border-color .25s, color .25s; }
:where(.hdr, .night) .btn .icon { width: 17px; height: 17px; }
:where(.hdr, .night) .btn:hover { transform: translateY(-1px); }
:where(.hdr) .btn--cta { background: var(--deep); color: #fff; }
.hdr--deep:not(.is-scrolled) .btn--cta { background: #fff; color: var(--deep); }
:where(.hdr) .btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
:where(.night) .btn--mint { background: var(--mint); color: var(--deep); }
:where(.night) .btn--mint:hover { background: var(--mint-hi); }
:where(.night) .btn--block { width: 100%; }

/* ---------- 7. En-tête ---------- */
.hdr { position: fixed; z-index: 100; top: 0; left: 0; right: 0; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s; }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--hdr-h); padding-inline: clamp(16px, 3vw, 40px); max-width: 1440px; margin-inline: auto; }
.hdr__nav { display: flex; align-items: center; gap: 2px; }
.hdr__nav > a, .hdr__nav > button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: var(--pill); border: 0; background: none; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.hdr__nav .icon { width: 14px; height: 14px; }
.hdr__nav > button .icon { transition: transform .3s var(--ease); }
.hdr__nav > button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hdr__films .icon { width: 11px; height: 11px; }
.hdr__end { display: flex; align-items: center; gap: 8px; }
.hdr__login { display: inline-flex; align-items: center; height: 40px; font-size: 15px; font-weight: 500; text-decoration: none; padding: 0 10px; border-radius: var(--pill); }
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; place-items: center; }
/* Variante sombre : transparente sur l'ouverture, verre sombre au défilement */
.hdr--deep { color: var(--on-deep); }
.hdr--deep .hdr__nav > a, .hdr--deep .hdr__nav > button, .hdr--deep .hdr__login { color: rgba(238,245,244,.82); }
.hdr--deep .hdr__nav > a:hover, .hdr--deep .hdr__nav > button:hover, .hdr--deep .hdr__nav > button[aria-expanded="true"], .hdr--deep .hdr__nav > a[aria-current="page"], .hdr--deep .hdr__login:hover { color: #fff; background: rgba(255,255,255,.08); }
.hdr--deep .hdr__films { box-shadow: inset 0 0 0 1px rgba(169,212,206,.45); color: #fff !important; }
.hdr--deep .hdr__films .icon { color: var(--mint); }
.hdr--deep .hdr__burger { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; }
.hdr--deep.is-scrolled, .hdr--deep:has([aria-expanded="true"]) { background: rgba(12, 38, 41, .86); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
/* Variante claire : pages éditoriales */
.hdr--light { background: rgba(243, 247, 246, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; }
.hdr--light.is-scrolled, .hdr--light:has([aria-expanded="true"]) { background: rgba(255,255,255,.94); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(16,42,45,.06); }
.hdr--light .hdr__nav > a, .hdr--light .hdr__nav > button, .hdr--light .hdr__login { color: var(--ink-2); }
.hdr--light .hdr__nav > a:hover, .hdr--light .hdr__nav > button:hover, .hdr--light .hdr__nav > button[aria-expanded="true"], .hdr--light .hdr__nav > a[aria-current="page"], .hdr--light .hdr__login:hover { color: var(--ink); background: rgba(22,38,42,.05); }
.hdr--light .hdr__films { box-shadow: inset 0 0 0 1px rgba(47,107,112,.35); }
.hdr--light .hdr__films .icon { color: var(--brand); }
.hdr--light .hdr__burger { border: 1px solid var(--line); background: #fff; color: var(--ink); }

/* Méga-menus */
.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 26px clamp(16px, 3vw, 40px) 30px; animation: megaIn .3s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.hdr--deep .mega { background: rgba(12, 38, 41, .985); border-top: 1px solid var(--line-deep); box-shadow: 0 40px 80px rgba(0,0,0,.35); color: var(--on-deep); }
.hdr--light .mega { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(16,42,45,.12); }
.mega__inner { max-width: 1360px; margin-inline: auto; }
.mega__inner--produit { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.mega__inner--cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.mega__label { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hdr--deep .mega__label, .hdr--deep .mega__tag { color: var(--mint); }
.hdr--light .mega__label, .hdr--light .mega__tag { color: var(--brand); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
.strip a { display: flex; flex-direction: column; gap: 1px; text-decoration: none; font-size: 13px; }
.strip img { aspect-ratio: 16/9; object-fit: cover; object-position: top left; border-radius: 10px; margin-bottom: 8px; transition: transform .4s var(--ease), border-color .3s; }
.hdr--deep .strip img { border: 1px solid var(--line-deep); }
.hdr--light .strip img { border: 1px solid var(--line); }
.strip a:hover img { transform: translateY(-3px); border-color: var(--mint); }
.strip strong { font-size: 15px; font-weight: 600; }
.hdr--deep .strip span { color: var(--on-deep-2); }
.hdr--light .strip span { color: var(--ink-3); }
.mega__side { display: flex; flex-direction: column; gap: 4px; }
.mega__side a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; transition: background-color .2s; }
.hdr--deep .mega__side a:hover { background: rgba(255,255,255,.06); }
.hdr--light .mega__side a:hover { background: var(--paper); }
.mega__side .icon { width: 36px; height: 36px; padding: 9px; border-radius: 11px; }
.hdr--deep .mega__side .icon { background: rgba(169,212,206,.12); color: var(--mint); }
.hdr--light .mega__side .icon { background: var(--mist); color: var(--brand); }
.mega__side span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; }
.hdr--deep .mega__side span { color: var(--on-deep-2); }
.hdr--light .mega__side span { color: var(--ink-3); }
.mega__side strong { font-size: 15px; font-weight: 600; }
.hdr--deep .mega__side strong { color: #fff; }
.hdr--light .mega__side strong { color: var(--ink); }
.mega__sol { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; text-decoration: none; font-size: 14px; line-height: 1.5; transition: background-color .2s, border-color .2s; }
.hdr--deep .mega__sol { background: rgba(255,255,255,.05); border: 1px solid var(--line-deep); color: var(--on-deep-2); }
.hdr--deep .mega__sol:hover { border-color: rgba(169,212,206,.5); }
.hdr--light .mega__sol { background: var(--paper); border: 1px solid var(--line); color: var(--ink-3); }
.hdr--light .mega__sol:hover { border-color: var(--brand); }
.mega__sol strong { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.hdr--deep .mega__sol strong { color: #fff; }
.hdr--light .mega__sol strong { color: var(--ink); }
.mega__tag { font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* Menu mobile « salle obscure » */
.night { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; padding: 14px 18px 22px; overflow-y: auto; color: var(--on-deep);
    background: radial-gradient(600px 420px at 0% 0%, var(--deep-hi), transparent 70%), linear-gradient(180deg, var(--deep), var(--deep-2));
    visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.night.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu-open, .menu-open body { overflow: hidden; }
.night__head { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.night__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.night__nav { margin-top: 16px; display: flex; flex-direction: column; }
.night__nav > a, .night__nav > button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-deep); background: none; color: #fff; font-size: 28px; font-weight: 500; letter-spacing: -.035em; text-decoration: none; cursor: pointer; text-align: left; }
.night__nav .icon { width: 18px; height: 18px; color: var(--mint); transition: transform .3s var(--ease); }
.night__nav [aria-expanded="true"] .icon { transform: rotate(180deg); }
.night__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 6px 0 12px; border-bottom: 1px solid var(--line-deep); }
.night__sub a { display: block; padding: 8px 0; color: var(--on-deep-2); font-size: 16px; text-decoration: none; }
.night__label { margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--mint); }
.night__films { display: flex; gap: 10px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; }
.night__films li { flex: none; width: 68%; scroll-snap-align: start; }
.night__films button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.night__films img { border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line-deep); }
.night__films span { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.night__films em { font-style: normal; font-weight: 500; color: var(--on-deep-2); }
.night__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.night__login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--on-deep-2); text-decoration: none; font-size: 15px; }
.night__login .icon { width: 16px; height: 16px; }
.night__films a { display: block; color: inherit; text-decoration: none; }

@media (max-width: 1240px) { .hdr__login { display: none; } }
@media (max-width: 1080px) {
    .hdr__nav { display: none; }
    .hdr__burger { display: grid; }
}
@media (min-width: 1081px) { .night { display: none; } }
@media (max-width: 760px) {
    .hdr__end .btn--cta { display: none; }
    .mega { display: none !important; }
}
@media print { .hdr, .night { display: none !important; } }

/* ---------- 8. Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 90px) 0; }
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--deep { color: var(--on-deep); background: radial-gradient(900px 600px at 0% 0%, rgba(48,100,102,.95), transparent 62%), radial-gradient(700px 500px at 100% 100%, rgba(48,100,102,.5), transparent 60%), linear-gradient(180deg, var(--deep), var(--deep-2)); }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); padding-top: 24px; border-top: 1px solid var(--line); }
.is-deep .sec-head { border-color: var(--line-deep); }
.sec-head__aside { max-width: 380px; font-size: 15px; color: var(--ink-3); }
.is-deep .sec-head__aside { color: var(--on-deep-2); }
@media (min-width: 1081px) { .sec-head { grid-template-columns: 250px 1fr 300px; align-items: start; } .sec-head .idx { padding-top: 12px; } }
.sec-head--plain { border-top: 0; padding-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- 9. Ouverture cinématographique ---------- */
.open { position: relative; padding: calc(var(--hdr-h) + 96px) 0 0; text-align: center; overflow: hidden; color: var(--on-deep);
    background: radial-gradient(1100px 700px at 12% -10%, var(--deep-hi), transparent 60%), radial-gradient(900px 600px at 100% 20%, rgba(48,100,102,.55), transparent 60%), linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); }
.open::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: var(--mist); }
.open--paper::after { background: var(--paper); }
.open__light { position: absolute; left: 50%; top: -20%; width: 1200px; height: 900px; margin-left: -600px; pointer-events: none; background: radial-gradient(closest-side, rgba(169,212,206,.22), rgba(169,212,206,0)); }
.open__titles { position: relative; z-index: 1; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; }
.open__eyebrow { font-size: 14px; font-weight: 600; color: var(--mint); letter-spacing: .02em; }
.open__title { margin-top: 22px; font-size: clamp(54px, 9.4vw, 150px); line-height: .9; font-weight: 500; letter-spacing: -.065em; color: #fff; }
.open__title > span { display: inline-block; animation: titleIn 1.1s var(--ease) both; }
.open__title > span:nth-child(2) { animation-delay: .2s; }
.open__title > span:nth-child(3) { animation-delay: .4s; color: var(--mint); }
.open__title em { display: block; margin-top: .3em; font-size: .34em; font-style: normal; letter-spacing: -.04em; font-weight: 400; color: rgba(238,245,244,.88); animation: titleIn 1.1s var(--ease) .6s both; }
@keyframes titleIn { from { opacity: 0; transform: translateY(.18em); filter: blur(8px); } }
.open__lead { margin-top: 26px; max-width: 660px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--on-deep-2); }
.open__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.screen { position: relative; z-index: 2; width: min(1280px, calc(100% - 2 * var(--gutter))); margin: 72px auto 0; }
.screen::before { content: ''; position: absolute; left: 6%; right: 6%; top: -8%; height: 60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(169,212,206,.35), transparent); filter: blur(30px); }
.screen__frame { position: relative; margin: 0; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 60px 140px rgba(5,20,22,.45); background: var(--mist); aspect-ratio: 16 / 9; }
@supports (animation-timeline: view()) {
    .screen__frame { animation: screenIn linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
    @keyframes screenIn { from { transform: scale(.9); border-radius: 44px; } to { transform: none; } }
}
.screen__note { position: relative; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
/* Ouverture compacte (pages Solutions, Vidéos) */
.open--compact { padding-bottom: 96px; }
.open--compact::after { display: none; }
.open--compact .open__title { font-size: clamp(44px, 6.6vw, 100px); }
.open--compact .open__title em { font-size: .42em; }

/* Image d'attente sous la vidéo (élément LCP), vidéo révélée à la lecture */
.poster-stack { position: relative; width: 100%; height: 100%; }
.poster-stack picture, .poster-stack img, .poster-stack video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-stack video { opacity: 0; transition: opacity .6s var(--ease); }
.poster-stack[data-state="playing"] video { opacity: 1; }

/* ---------- 10. Boucles vidéo et lecteur ---------- */
.loop { position: relative; }
.loop video { width: 100%; height: 100%; object-fit: cover; }
.loop__toggle { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(22,38,42,.6); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.loop__toggle .icon { width: 16px; height: 16px; }
.loop__toggle [data-when] { display: none; }
.loop[data-state="playing"] .loop__toggle [data-when="playing"], .loop:not([data-state="playing"]) .loop__toggle [data-when="paused"] { display: block; }
.player { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: #0C2326; color: var(--on-deep); overflow: auto; }
.player::backdrop { background: rgba(8,24,26,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; }
.player__title { font-weight: 600; font-size: 16px; }
.player__title span { color: var(--on-deep-2); font-weight: 500; margin-left: 8px; }
.player__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-deep); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.player__stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player__stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; background: linear-gradient(135deg, var(--deep-hi), var(--deep-2)); }
.player__fallback p { max-width: 460px; color: var(--on-deep-2); font-size: 15px; }
.player__fallback strong { display: block; color: var(--on-deep); font-size: 19px; margin-bottom: 8px; }
.player.is-missing .player__fallback { display: grid; }
.player__chapters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; border-top: 1px solid var(--line-deep); scrollbar-width: thin; }
.player__chapters button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-deep); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; text-align: left; font-size: 14px; }
.player__chapters button span { color: var(--mint); font-size: 12px; font-variant-numeric: tabular-nums; }
.player__chapters button[aria-current="true"] { background: rgba(169,212,206,.16); border-color: rgba(169,212,206,.5); }
.player details { border-top: 1px solid var(--line-deep); padding: 14px 22px 18px; }
.player summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.player details ol { margin-top: 12px; display: grid; gap: 8px; list-style: decimal; padding-left: 20px; color: var(--on-deep-2); font-size: 15px; }
.player__note { padding: 0 22px 18px; color: var(--on-deep-2); font-size: 13px; }

/* ---------- 11. Bandeau « pour qui » (emprunt B) ---------- */
.who { position: relative; z-index: 3; padding: 34px 0 10px; }
.who__box { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 26px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.who__label { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; }
.who__label span { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(22,38,42,.05); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.who__panel { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.who__panel p { flex: 1 1 420px; }

/* ---------- 12. Problème (fragments) ---------- */
.scatter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.scatter__visual { position: relative; height: 440px; }
.scatter__visual::before { content: ''; position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px; border-radius: 50%; border: 1px dashed rgba(47,107,112,.25); }
.frag { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill); background: rgba(255,255,255,.82); border: 1px solid #fff; box-shadow: var(--sh-1); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: transform 1.2s var(--ease) .3s; }
.frag .icon { width: 15px; height: 15px; color: var(--ink-3); }
.frag--1 { left: 8%; top: 4%; transform: rotate(-6deg); } .frag--2 { right: 10%; top: 9%; transform: rotate(4deg); }
.frag--3 { left: 0; top: 41%; transform: rotate(3deg); } .frag--4 { right: 0; bottom: 2%; transform: rotate(-3deg); }
.frag--5 { left: 3%; bottom: 15%; transform: rotate(-2deg); } .frag--6 { right: 4%; top: 63%; transform: rotate(5deg); }
.scatter__visual.in .frag--1 { transform: translate(14px, 12px) rotate(-2deg); } .scatter__visual.in .frag--2 { transform: translate(-12px, 10px) rotate(1deg); }
.scatter__visual.in .frag--3 { transform: translate(14px, 0) rotate(1deg); } .scatter__visual.in .frag--4 { transform: translate(-10px, -8px) rotate(-1deg); }
.scatter__visual.in .frag--5 { transform: translate(12px, -10px) rotate(-1deg); } .scatter__visual.in .frag--6 { transform: translate(-12px, -6px) rotate(2deg); }
.scatter__core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 34px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 14px rgba(255,255,255,.5), 0 0 0 30px rgba(169,212,206,.25), var(--sh-2); }
.scatter__core svg { width: 58px; height: 58px; }

/* ---------- 13. Carte film ---------- */
.film-card { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 7.2; background: var(--deep); box-shadow: var(--sh-3); color: #fff; }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-card:hover img { transform: scale(1.03); }
.film-card__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,62,67,0) 30%, rgba(15,47,51,.86)); }
.film-card__play { position: absolute; left: 50%; top: 44%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--deep); box-shadow: 0 0 0 12px rgba(255,255,255,.22); transition: transform .4s var(--ease); }
.film-card:hover .film-card__play { transform: scale(1.06); }
.film-card__play .icon { width: 28px; height: 28px; margin-left: 4px; }
.film-card__meta { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.film-card__eyebrow { font-size: 14px; font-weight: 600; color: var(--mint); }
.film-card__title { max-width: 820px; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.film-card--sm { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.film-card--sm .film-card__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.film-card--sm .film-card__play .icon { width: 22px; height: 22px; }
.film-card--sm .film-card__title { font-size: clamp(18px, 1.8vw, 24px); }

/* ---------- 14. Récit épinglé ---------- */
.story { padding: 110px 0 60px; }
.story__inner { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.story__media { position: sticky; top: 14vh; height: 72vh; display: grid; place-items: center; }
.story__clip { grid-area: 1 / 1; width: 100%; margin: 0; opacity: 0; transform: scale(.96) translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.story__clip.is-active { opacity: 1; transform: none; }
.story__clip video { aspect-ratio: 16 / 10; object-fit: contain; border-radius: 24px; background: linear-gradient(180deg, #E4EEEE, #EAF0F1); border: 1px solid #fff; box-shadow: var(--sh-3); }
.story__clip figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }
.story__rail { position: absolute; left: -28px; top: 18%; bottom: 18%; display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; width: 3px; }
.story__rail i { border-radius: 3px; background: rgba(22,38,42,.12); transition: background-color .5s; }
.story[data-active="0"] .story__rail i:nth-child(1), .story[data-active="1"] .story__rail i:nth-child(-n+2), .story[data-active="2"] .story__rail i { background: var(--brand); }
.story__title { padding-top: 8vh; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; font-weight: 500; letter-spacing: -.045em; }
.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; }
.step h3, .step > p, .step li { transition: color .6s var(--ease); }
.step:not(.is-active) h3, .step:not(.is-active) > p, .step:not(.is-active) li { color: var(--ink-3); }
.step > p.step__n { margin: 0; font-size: 96px; line-height: 1; font-weight: 500; letter-spacing: -.06em; color: var(--brand); transition: color .6s var(--ease); }
.step:not(.is-active) > p.step__n { color: var(--ink-3); }
.step h3 { margin-top: 18px; font-size: 38px; line-height: 1.05; font-weight: 500; letter-spacing: -.045em; }
.step > p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.step ul { margin-top: 20px; display: grid; gap: 10px; }
.step li, .ticks li { position: relative; padding-left: 26px; font-size: 16px; color: var(--ink-2); }
.step li::before, .ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); }
.ticks { display: grid; gap: 10px; }
.is-deep .ticks li { color: var(--on-deep-2); }
.is-deep .ticks li::before { border-color: var(--mint); }

/* ---------- 15. Bobine des écrans ---------- */
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.reel-nav { display: flex; gap: 8px; }
.reel-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.reel-nav button:hover { background: var(--mist); }
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 24px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel > li { flex: none; scroll-snap-align: start; display: flex; }
.frame { position: relative; display: block; width: min(440px, 82vw); padding: 14px 14px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.frame:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.frame img { border-radius: 14px; aspect-ratio: 16/10; object-fit: cover; object-position: top left; border: 1px solid var(--line); }
.frame__n { position: absolute; z-index: 1; left: 26px; top: 26px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: var(--mint); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.frame h3 { margin: 18px 8px 0; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.frame p { margin: 6px 8px 0; font-size: 15px; color: var(--ink-2); }

/* ---------- 16. Téléphones et appareils ---------- */
.phone { position: relative; width: min(300px, 100%); margin-inline: auto; padding: 10px; border-radius: 44px; background: #0A1F22; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px rgba(10,31,34,.35); }
.phone > img, .phone > .loop video, .phone > video { border-radius: 34px; aspect-ratio: 600 / 1301; object-fit: cover; object-position: top; background: var(--mist); }
.phone .loop__toggle { right: 22px; bottom: 22px; }
.phone--sm { width: min(230px, 100%); border-radius: 36px; padding: 8px; }
.phone--sm > img { border-radius: 28px; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 28px); }
.phones .phone:nth-child(2) { transform: translateY(-36px); }
.phones--3 .phone { width: min(260px, 30%); }

/* ---------- 17. Cartes et listes ---------- */
.card { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.card h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.card p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.card .icon-tile { margin-bottom: 16px; }
.card--link { text-decoration: none; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .25s; }
.card--link:hover { transform: translateY(-3px); border-color: rgba(47,107,112,.4); }
.card--link .link-arrow { margin-top: auto; padding-top: 16px; }
.is-deep .card { background: rgba(255,255,255,.05); border-color: var(--line-deep); box-shadow: none; }
.is-deep .card h3 { color: #fff; }
.is-deep .card p { color: var(--on-deep-2); }
.icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--mist); color: var(--brand); }
.icon-tile .icon { width: 21px; height: 21px; }
.is-deep .icon-tile { background: rgba(169,212,206,.12); color: var(--mint); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillars li { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px 0 0; }
.pillars li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.pillars .icon { width: 24px; height: 24px; color: var(--brand); margin-bottom: 8px; }
.pillars strong { font-size: 17px; font-weight: 600; }
.pillars span { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.is-deep .pillars, .is-deep .pillars li + li { border-color: var(--line-deep); }
.is-deep .pillars .icon { color: var(--mint); }
.is-deep .pillars strong { color: #fff; }
.is-deep .pillars span { color: var(--on-deep-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 20px 18px 0 0; }
.stats li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 46px; line-height: 1; font-weight: 500; letter-spacing: -.05em; color: var(--deep); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.note-box { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.note-box .icon { color: var(--brand); margin-top: 2px; }
.is-deep .note-box { background: rgba(255,255,255,.05); border-color: var(--line-deep); color: var(--on-deep-2); }
.is-deep .note-box .icon { color: var(--mint); }

/* ---------- 18. Sélecteur d'écrans (emprunt B) ---------- */
.mods { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.mods__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-deep); }
.mods__list button { display: flex; align-items: baseline; gap: 14px; padding: 15px 12px; border: 0; border-bottom: 1px solid var(--line-deep); background: transparent; color: var(--on-deep-2); cursor: pointer; text-align: left; font-size: 18px; font-weight: 500; box-shadow: inset 2px 0 0 transparent; transition: background-color .2s, color .2s, box-shadow .2s; }
.mods__list button span { font-size: 12px; font-weight: 600; color: var(--mint); font-variant-numeric: tabular-nums; }
.mods__list button:hover { color: #fff; }
.mods__list [aria-selected="true"] { color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 2px 0 0 var(--mint); }
.mods__shot { padding: 16px; }
.mods__shot img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; object-position: top left; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.mods__txt { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px 32px; margin-top: 22px; padding: 0 16px; }
.mods__txt h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.mods__txt p { font-size: 16px; color: var(--on-deep-2); }
.mods__txt .link-arrow { grid-column: 2; }

/* ---------- 19. Section smartphone et environnement connecté ---------- */
.vert { margin: 0 auto; width: min(270px, 100%); padding: 10px; border-radius: 40px; background: #0A1F22; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.vert video { border-radius: 30px; aspect-ratio: 520 / 1090; object-fit: cover; background: var(--mist); }
.vert .loop__toggle { right: 22px; bottom: 22px; }
.flows { display: grid; gap: 10px; counter-reset: flow; }
.flows li { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.flows li strong { display: block; font-size: 12px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.flows .icon { width: 22px; height: 22px; color: var(--brand); justify-self: center; }
.loop-frame { border-radius: 24px; overflow: hidden; border: 1px solid #fff; box-shadow: var(--sh-3); background: linear-gradient(180deg, #E4EEEE, #EAF0F1); }
.loop-frame video { aspect-ratio: 1280 / 580; object-fit: contain; }

/* ---------- 20. Help Center ---------- */
.helpc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.helpc__search { margin-top: 26px; display: flex; gap: 10px; padding: 8px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); max-width: 560px; }
.helpc__search .icon { margin: 0 4px 0 12px; align-self: center; color: var(--ink-3); }
.helpc__search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.helpc__search:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.helpc__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.helpc__links a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--ink-3); transition: border-color .2s, transform .3s var(--ease); }
.helpc__links a:hover { border-color: rgba(47,107,112,.4); transform: translateY(-2px); }
.helpc__links strong { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink); font-weight: 600; }
.helpc__links .icon { width: 18px; height: 18px; color: var(--brand); }

/* ---------- 21. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--brand); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 20px; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- 22. Générique de fin + formulaire ---------- */
.end { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 140px) 0; color: var(--on-deep); background: radial-gradient(900px 600px at 20% 0%, var(--deep-hi), transparent 60%), linear-gradient(180deg, #1D4A4E, var(--deep-2)); }
.end__glow { position: absolute; left: 30%; top: 40%; width: 900px; height: 500px; margin: -250px 0 0 -450px; border-radius: 50%; background: radial-gradient(closest-side, rgba(169,212,206,.16), transparent); }
.end__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.end__k { width: 60px; height: 60px; }
.end__title { margin-top: 26px; font-size: clamp(36px, 4.8vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -.052em; color: #fff; }
.end__list { margin: 28px 0 30px; display: grid; gap: 12px; }
.end__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--on-deep-2); }
.end__list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(169,212,206,.18); color: var(--mint); }
.end__mail { margin-top: 18px; font-size: 14px; color: var(--on-deep-2); }
.end__mail a { color: var(--on-deep); }
.end__note { margin-top: 30px; font-size: 13px; color: rgba(238,245,244,.66); }
.dform { padding: 30px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.3); }
.dform__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 18px; }
.dform__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(22,38,42,.18); background: var(--paper); font-weight: 400; font-size: 15px; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.field-hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.field-consent { display: flex; gap: 10px; margin: 14px 0 18px; font-size: 14px; color: var(--ink-2); }
.field-consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-status { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; font-size: 15px; }
.form-status--ok { background: #E3F1EE; color: var(--brand-700); }
.form-status--error { background: var(--warn-tint); color: #7E2E22; }
.form-status a { color: inherit; }

/* ---------- 23. Pied de page ---------- */

/* ---------- 24. Pages éditoriales (emprunt B) ---------- */
.phero { padding: calc(var(--hdr-h) + 56px) 0 clamp(56px, 7vw, 90px); background: radial-gradient(800px 500px at 100% 0%, var(--mist-tr), transparent 60%), radial-gradient(700px 500px at 0% 100%, #E1EEEA, transparent 60%), var(--paper); }
.phero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.phero__grid--wide { grid-template-columns: 5fr 7fr; }
.phero .h1 { margin-top: 22px; }
.phero .lead { margin-top: 22px; }
.phero .actions { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.is-deep .crumbs, .is-deep .crumbs a { color: var(--on-deep-2); }
.module { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.module:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.module:nth-child(even) .module__media { order: 2; }
.module__n { font-size: 13px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.module h2 { margin-top: 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; font-weight: 500; letter-spacing: -.045em; }
.module .body { margin-top: 14px; }
.module .ticks { margin-top: 20px; }
.module .link-arrow { margin-top: 22px; }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.tl__when { font-size: 13px; font-weight: 600; color: var(--brand); }
.tl__when strong { display: block; margin-top: 6px; font-size: 26px; line-height: 1.1; color: var(--ink); letter-spacing: -.035em; font-weight: 500; }
.tl__col p:first-child { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--paper); font-size: 13px; color: var(--ink-2); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 44px 0 12px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.prose h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 600; color: var(--ink); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--mint); font-size: 19px; color: var(--ink); }
.prose .meta { font-size: 14px; color: var(--ink-3); }
.post-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; box-shadow: var(--sh-1); transition: transform .35s var(--ease); }
.post-card:hover { transform: translateY(-3px); }
.post-card img { border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; }
.post-card h2 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.post-card p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.post-card .small { margin-top: 14px; }

/* Parcours patient en cartes avec téléphone */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.journey .card { padding: 18px 18px 22px; display: flex; flex-direction: column; }
.journey .phone { margin-bottom: 20px; }
.journey .module__n { margin-bottom: 6px; }
.journey h3 { font-size: 19px; }
@media (max-width: 1080px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } .journey .phone { width: min(220px, 70%); } }

/* ---------- 25. Salle de projection (page Vidéos) ---------- */
.salle__grid { display: grid; grid-template-columns: 8fr 4fr; gap: 28px; align-items: start; }
.salle__stage { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 0 50px 120px rgba(0,0,0,.4); }
.salle__stage img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.2s var(--ease); }
.salle__stage:hover img { transform: scale(1.02); }
.salle__play { position: absolute; left: 50%; top: 50%; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,38,41,.6); border: 1px solid rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .4s var(--ease); }
.salle__stage:hover .salle__play { transform: scale(1.06); }
.salle__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.salle__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.salle__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.salle__meta { font-size: 14px; color: var(--on-deep-2); }
.salle__list { display: grid; gap: 8px; }
.salle__list button { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; width: 100%; padding: 8px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: inherit; cursor: pointer; text-align: left; transition: background-color .2s, border-color .2s; }
.salle__list button:hover { background: rgba(255,255,255,.08); }
.salle__list [aria-pressed="true"] { border-color: rgba(169,212,206,.6); background: rgba(169,212,206,.12); }
.salle__list img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.salle__list span { display: flex; flex-direction: column; font-size: 13px; color: var(--on-deep-2); font-variant-numeric: tabular-nums; }
.salle__list strong { font-size: 15px; line-height: 1.3; color: #fff; font-weight: 600; margin-bottom: 2px; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.chapters button { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-deep); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; text-align: left; font-weight: 600; font-size: 15px; transition: border-color .2s; }
.chapters button:hover { border-color: rgba(169,212,206,.6); }
.chapters span { font-size: 12px; color: var(--mint); font-variant-numeric: tabular-nums; }
.chapters em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--on-deep-2); }

/* ---------- 26. Bandeau de consentement ---------- */
.consent { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.consent.is-visible { opacity: 1; transform: none; }
.consent__inner { display: flex; align-items: center; gap: 20px; max-width: 860px; padding: 16px 18px 16px 22px; border-radius: 20px; background: rgba(255,255,255,.97); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(16,42,45,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.consent__text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.consent__text a { color: var(--brand); }
.consent__actions { display: flex; gap: 8px; flex: none; }

/* ---------- 27. Apparitions ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
    .who__box { grid-template-columns: 1fr; gap: 16px; }
    .scatter__grid, .grid-2, .phero__grid, .phero__grid--wide, .end__grid, .helpc, .salle__grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4, .pillars { grid-template-columns: 1fr 1fr; }
    .pillars li:nth-child(3) { border-left: 0; padding-left: 0; }
    .story__inner { grid-template-columns: 1fr; gap: 0; }
    .story__media { top: var(--hdr-h); height: auto; z-index: 2; padding: 12px 0; background: linear-gradient(180deg, var(--mist) 85%, rgba(234,241,240,0)); }
    .story__rail, .story__clip figcaption { display: none; }
    .step { min-height: 62vh; }
    .mods { grid-template-columns: 1fr; gap: 20px; }
    .mods__list { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
    .mods__list button { flex: none; border: 1px solid var(--line-deep); border-radius: 10px; padding: 10px 14px; font-size: 15px; box-shadow: none; }
    .mods__list [aria-selected="true"] { box-shadow: none; border-color: var(--mint); }
    .module, .module:nth-child(even) { grid-template-columns: 1fr; }
    .module:nth-child(even) .module__media { order: 0; }
    .tl { grid-template-columns: 1fr 1fr; }
    .tl__when { grid-column: 1 / -1; }
    .chapters { grid-template-columns: 1fr 1fr; }
    .post-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --hdr-h: 64px; }
    body { font-size: 16px; }
    .open { padding-top: calc(var(--hdr-h) + 48px); }
    .open__title { font-size: clamp(56px, 18.6vw, 86px); }
    .open__title > span { display: block; }
    .open__title em { font-size: .4em; }
    .open__actions { width: 100%; flex-direction: column; }
    .open__actions .btn, .open__actions .play-btn { width: 100%; justify-content: center; white-space: normal; }
    .open::after { height: 22%; }
    .open--compact { padding-bottom: 64px; }
    .open--compact .open__title { font-size: clamp(42px, 12vw, 60px); }
    .open--compact .open__title > span { display: inline; }
    .screen { margin-top: 44px; }
    .screen__frame { border-radius: 20px; }
    .who { padding-top: 24px; }
    .who__box { padding: 20px; }
    .tabs { width: 100%; }
    .tabs button { flex: 1; padding: 0 10px; }
    .scatter__visual { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 132px 0 8px; }
    .scatter__visual::before { width: 210px; height: 210px; top: 0; margin: -50px 0 0 -105px; }
    .frag, .scatter__visual.in .frag { position: static; transform: none; font-size: 13px; height: 34px; padding: 0 12px; }
    .scatter__core { top: 10px; width: 92px; height: 92px; margin: 0 0 0 -46px; border-radius: 26px; }
    .film-card { aspect-ratio: 4 / 5; border-radius: 24px; }
    .film-card--sm { aspect-ratio: 16 / 10; }
    .film-card__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; top: 40%; }
    .story { padding-top: 70px; }
    .story__clip video { border-radius: 16px; }
    .story__title { padding-top: 28px; }
    .step { min-height: 58vh; }
    .step > p.step__n { font-size: 64px; }
    .step h3 { font-size: 30px; }
    .step > p { font-size: 17px; }
    .reel-nav { display: none; }
    .grid-3, .grid-4, .pillars, .helpc__links { grid-template-columns: 1fr; }
    .pillars li, .pillars li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .is-deep .pillars li { border-color: var(--line-deep); }
    .stats strong { font-size: 34px; }
    .stats li, .stats li + li { padding: 16px 10px 0; }
    .phones .phone:nth-child(2) { transform: none; }
    .phones--3 .phone:not(:nth-child(2)) { display: none; }
    .phones--3 .phone { width: min(280px, 80%); }
    .mods__txt { grid-template-columns: 1fr; padding: 0 4px; }
    .mods__txt .link-arrow { grid-column: auto; }
    .mods__shot { padding: 10px; }
    .flows li { grid-template-columns: 1fr; gap: 6px; }
    .flows .icon { transform: rotate(90deg); justify-self: start; }
    .tl { grid-template-columns: 1fr; gap: 16px; }
    .dform { padding: 22px; }
    .dform__fields { grid-template-columns: 1fr; }
    .consent__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .consent__actions .btn { flex: 1; }
    .chapters { grid-template-columns: 1fr; }
    .salle__play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
    .salle__caption { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .rv { opacity: 1; transform: none; }
    .screen__frame { animation: none !important; }
}
@media print {
    .hdr, .night, .consent, .player, .loop__toggle { display: none !important; }
    body { background: #fff; }
}

/* Fil d'Ariane sur les ouvertures sombres */
.open .crumbs { justify-content: center; color: var(--on-deep-2); margin-bottom: 22px; }
.open .crumbs a { color: var(--on-deep-2); }
.open .crumbs a:hover { color: #fff; }

/* ---------- 29. Assistant de support (sans IA, activé par site/config.json) ---------- */
/* ==========================================================================
   Assistant de support (sans IA) — styles communs au site et au centre d'aide.
   site/build.mjs l'insère dans site.css à l'emplacement du marqueur « @inclure assistant.css » ;
   le générateur du centre d'aide l'ajoute à help.css quand assistant.help_center est activé.
   Autonome : couleurs (mêmes valeurs que site.css :root) et classes génériques redéfinies sous .kfa.
   ========================================================================== */
.kfa {
    --mist: #EAF1F0; --paper: #F3F7F6; --mint: #A9D4CE; --brand: #2F6B70; --brand-700: #1E4B4F;
    --deep: #163E43; --deep-hi: #306466; --ink: #16262A; --ink-2: #3D5458; --ink-3: #56706F;
    --on-deep: #EEF5F4; --on-deep-2: rgba(238, 245, 244, .8); --line: rgba(22, 38, 42, .10); --line-deep: rgba(238, 245, 244, .14);
    --warn-tint: #F7E9E5; --pill: 999px; --ease: cubic-bezier(.2,.7,.1,1);
    font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5;
}
:where(.kfa) *, :where(.kfa) *::before, :where(.kfa) *::after { box-sizing: border-box; }
:where(.kfa) p { margin: 0; }
:where(.kfa) button, :where(.kfa) input { font: inherit; }
:where(.kfa) svg { display: block; }
:where(.kfa) .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.kfa) .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(.kfa) [hidden] { display: none !important; }
:where(.kfa) :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.kfa { position: fixed; z-index: 180; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.kfa__launch { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.2); background: var(--deep); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 16px 40px rgba(16,42,45,.3); }
/* Tant que le bandeau de consentement est affiché, il prime : le bouton de l'assistant réapparaît après le choix. */
body:has(#consentBanner:not([hidden])) .kfa__launch { visibility: hidden; }
.kfa__launch .icon { width: 20px; height: 20px; color: var(--mint); }
.kfa[data-state="open"] .kfa__launch span { display: none; }
.kfa[data-state="open"] .kfa__launch { padding: 0 16px; }
.kfa__panel { width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(16,42,45,.28); overflow: hidden; animation: kfaIn .3s var(--ease); }
@keyframes kfaIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.kfa__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; color: var(--on-deep); background: radial-gradient(400px 200px at 0% 0%, var(--deep-hi), transparent 70%), var(--deep); }
.kfa__title { font-weight: 600; font-size: 16px; color: #fff; }
.kfa__sub { font-size: 13px; color: var(--on-deep-2); margin-top: 2px; }
.kfa__close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-deep); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.kfa__close .icon { width: 16px; height: 16px; }
.kfa__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.kfa__msg { max-width: 92%; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.kfa__msg p { margin: 0; }
.kfa__msg--bot { align-self: flex-start; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.kfa__msg--user { align-self: flex-end; padding: 10px 14px; border-radius: 16px 16px 6px 16px; background: var(--deep); color: #fff; }
.kfa__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kfa__chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(47,107,112,.35); background: #fff; color: var(--brand-700); font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.kfa__chip:hover { background: var(--mist); }
.kfa__card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.kfa__card:hover { border-color: rgba(47,107,112,.5); }
.kfa__card strong { font-size: 14px; }
.kfa__card-c { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--brand); }
.kfa__card-d { font-size: 13px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kfa__safety { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-tint); color: #7E2E22; }
.kfa__safety .icon { width: 18px; height: 18px; margin-top: 2px; }
.kfa__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.kfa__form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(22,38,42,.18); background: var(--paper); font-size: 15px; }
.kfa__form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.kfa__send { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--deep); color: #fff; cursor: pointer; display: grid; place-items: center; }
.kfa__send .icon { width: 17px; height: 17px; }
.kfa__privacy { padding: 0 14px 12px; font-size: 11.5px; color: var(--ink-3); background: #fff; }
@media (max-width: 560px) { .kfa { right: 12px; bottom: 12px; left: 12px; align-items: stretch; } .kfa__launch { align-self: flex-end; } .kfa__panel { width: 100%; height: calc(100vh - 96px); } }

/* V2.1 : zones sûres iOS, hauteur visible réelle (dvh, clavier virtuel), états de chargement et d'urgence */
.kfa { right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.kfa__panel { height: min(620px, calc(100vh - 110px)); height: min(620px, calc(100dvh - 110px)); }
.kfa__head :focus-visible, .kfa__launch:focus-visible { outline-color: var(--mint); }
.kfa__hint { font-size: 12.5px; color: var(--ink-3); }
.kfa__loading { color: var(--ink-3); }
.kfa__loading::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: kfaDots 1.2s steps(4) infinite; }
@keyframes kfaDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.kfa__safety--urgent { border: 1px solid rgba(164, 67, 50, .35); }
.kfa__chip--call { border-color: #A44332; color: #7E2E22; background: #fff; }
.kfa__log:focus-visible { outline-offset: -3px; }
/* Menu mobile ouvert : l'assistant s'efface (le menu est une fenêtre modale). Idem pour le tiroir des rubriques
   et la fenêtre de recherche du centre d'aide. */
.menu-open .kfa, body:has(.hc-sidebar.is-open) .kfa, body:has(#hcSearchDialog[open]) .kfa { display: none; }
/* Le bouton ne doit pas masquer la fin du pied de page. */
.has-kfa .ftr__bottom { padding-bottom: 76px; }
@media (max-width: 560px) {
    .kfa { right: calc(12px + env(safe-area-inset-right, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--kfa-kb, 0px)); }
    .kfa__panel { height: calc(100vh - 96px); height: calc(var(--kfa-vh, 100dvh) - 96px - env(safe-area-inset-bottom, 0px)); }
    /* Clavier ouvert : le panneau occupe la zone visible, le bouton d'ouverture s'efface (la croix ferme). */
    .kfa[data-keyboard="open"] .kfa__launch { display: none; }
    .kfa[data-keyboard="open"] { bottom: calc(8px + var(--kfa-kb, 0px)); }
    .kfa[data-keyboard="open"] .kfa__panel { height: calc(var(--kfa-vh, 100dvh) - 16px); }
}
/* Écran bas (téléphone en paysage) */
@media (max-height: 520px) {
    .kfa__panel { height: calc(var(--kfa-vh, 100dvh) - 84px); }
    .kfa__head { padding-top: 10px; padding-bottom: 8px; }
    .kfa__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .kfa__panel { animation: none !important; }
    .kfa__loading::after { animation: none; content: '…'; }
}
@media print { .kfa { display: none !important; } }

/* Les éléments de grille ne débordent jamais de leur colonne (champ de recherche, titres longs) */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .helpc > *, .scatter__grid > *, .phero__grid > *, .end__grid > *, .salle__grid > *, .mods > *, .who__box > *, .module > *, .tl > * { min-width: 0; }
.helpc__search input { width: 100%; }
@media (max-width: 420px) { .helpc__search .btn { padding: 0 14px; } }
@media (max-width: 420px) { .actions .btn, .actions .play-btn { white-space: normal; height: auto; min-height: 50px; padding-block: 8px; text-align: left; } }

/* ==========================================================================
   Pied de page commun au site et au centre d'aide — source unique.
   - Balisage : site/partials/footer.html (le centre d'aide le lit aussi, help-center/src/templates.mjs).
   - Styles : ce fichier, ajouté à la fin de site.css par site/build.mjs et à la fin de help.css par
     help-center/src/build.mjs.
   Autonome : le centre d'aide charge /style.css et non site.css. Couleurs, remises à zéro et classes
   génériques (.container, .brand, .icon…) sont donc redéfinies ici, sous .ftr.
   ========================================================================== */
.ftr {
    --ftr-bg: #0B2427; --ftr-text: rgba(238, 245, 244, .8); --ftr-strong: #EEF5F4; --ftr-mint: #A9D4CE;
    --ftr-line: rgba(238, 245, 244, .14);
    padding: 72px 0 32px; background: var(--ftr-bg); color: var(--ftr-text);
    font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55;
}
.ftr *, .ftr *::before, .ftr *::after { box-sizing: border-box; }
.ftr p, .ftr ul { margin: 0; }
.ftr ul { padding: 0; list-style: none; }
.ftr svg { display: block; max-width: 100%; }
.ftr input { font: inherit; }
.ftr :focus-visible { outline: 3px solid var(--ftr-mint); outline-offset: 3px; border-radius: 6px; }
.ftr .container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.ftr .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ftr .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ftr .brand, .ftr .brand:hover { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ftr-strong); }
.ftr .brand svg { width: 30px; height: 30px; }
.ftr .brand__name { font-weight: 600; font-size: 21px; letter-spacing: -.035em; }
.ftr .logo-k { color: var(--ftr-mint); }

.ftr__top { display: grid; grid-template-columns: 1fr 2.1fr; gap: 48px; }
.ftr__tag { margin-top: 16px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--ftr-strong); }
.ftr__sub { margin-top: 8px; max-width: 320px; font-size: 14px; }
.ftr__search { margin-top: 22px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ftr-line); background: rgba(255,255,255,.04); max-width: 340px; }
.ftr__search .icon { width: 17px; height: 17px; color: var(--ftr-mint); }
.ftr__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 15px; outline: none; }
.ftr__search input::placeholder { color: rgba(238,245,244,.62); }
.ftr__search:focus-within { outline: 3px solid var(--ftr-mint); outline-offset: 2px; }
.ftr__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ftr__cols p { font-size: 13px; font-weight: 600; color: var(--ftr-mint); margin-bottom: 14px; }
.ftr__cols ul { display: grid; gap: 10px; }
.ftr__cols a { color: var(--ftr-text); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.ftr__cols a:hover { color: #fff; text-decoration: underline; }
.ftr__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--ftr-line); display: grid; gap: 14px; font-size: 13px; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.ftr__legal a { color: inherit; text-decoration: none; }
.ftr__legal a:hover { color: #fff; text-decoration: underline; }
.ftr__made { margin-left: auto; }
.ftr__legal .ftr__made a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
    .ftr__top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .ftr__cols { grid-template-columns: 1fr 1fr; }
}
