/* Le LiEN — site vitrine */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.4rem, 1rem + 4.2vw, 5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --red: #E30613; --red-dark: #B8050F; --yellow: #FFC20E; --ink: #111111;
  --app-bg: #0F1217; --app-surface: #181D26; --app-line: rgba(255,255,255,.1);
  --blue: #3B82F6; --green: #3FBF7F;

  --color-bg: #F5F3EE;
  --color-surface: #FFFFFF;
  --color-surface-2: #ECE9E2;
  --color-text: #111111;
  --color-muted: #55524C;
  --color-faint: #8A867E;
  --color-line: rgba(17,17,17,.12);
  --color-primary: var(--red);

  /* Couleurs des spécialités du livret */
  --c-cardio: #E30613; --c-resp: #3C78C8; --c-echo: #E8731A; --c-gyneco: #D63BB8;
  --c-pedia: #F2C200; --c-trauma: #7E3FB0; --c-intox: #15A04A; --c-sse: #111111;
  --c-autres: #1D4ED8; --c-medic: #7A7A7A;

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-xl: 22px;
  --transition-interactive: 180ms cubic-bezier(.16,1,.3,1);
  --wrap: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
p, li, figcaption { text-wrap: pretty; max-width: 68ch; }
::selection { background: rgba(227,6,19,.2); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--radius-sm); }
button { cursor: pointer; background: none; border: none; }
a, button { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-md); }
.skip:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo svg { width: 64px; height: auto; }
.logo .logo-txt { font-size: var(--text-xs); line-height: 1.2; color: var(--color-muted); max-width: 18ch; font-weight: 500; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, transform .3s cubic-bezier(.16,1,.3,1); }
.header.is-scrolled { border-bottom-color: var(--color-line); }
.header.is-hidden { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 64px; }
.nav { display: none; gap: var(--space-1); align-items: center; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding: .5rem .75rem; border-radius: var(--radius-md); color: var(--color-muted); }
.nav a:hover { color: var(--ink); background: var(--color-surface-2); }
.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-md); }
.menu-btn:hover { background: var(--color-surface-2); }
.menu-btn svg { width: 24px; height: 24px; }
.mobile-nav { display: none; border-top: 1px solid var(--color-line); padding: var(--space-2) 0 var(--space-4); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--color-line); }
.mobile-nav a span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-faint); font-weight: 400; }
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; justify-content: center; border: 0; }
@media (min-width: 960px) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .75rem 1.25rem; border-radius: var(--radius-md); font-weight: 700; font-size: var(--text-sm); text-decoration: none; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2a2a; }
.btn-ghost { color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost.on-light:hover { background: rgba(17,17,17,.06); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; }

/* ---------- Typo helpers ---------- */
.kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--red); display: inline-flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); letter-spacing: -.02em; line-height: 1.02; }
.h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; }
.lead { font-size: var(--text-base); color: var(--color-muted); }
.muted { color: var(--color-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: #0b0e13; overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,.35) 30%, rgba(8,10,14,.92) 78%, #0b0e13 100%); }
.hero-in { min-height: min(92svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--space-24) var(--space-10); }
.hero .kicker { color: var(--yellow); }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); letter-spacing: -.03em; line-height: .98; margin-top: var(--space-4); max-width: 14ch; }
.hero h1 .bar { display: inline-block; position: relative; }
.hero h1 .bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em; background: var(--red); }
.hero-sub { margin-top: var(--space-6); font-size: var(--text-base); color: rgba(255,255,255,.84); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-facts { margin-top: var(--space-12); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.hero-facts div { padding: var(--space-4) var(--space-4) var(--space-2) 0; }
.hero-facts dt { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1; }
.hero-facts dd { font-size: var(--text-xs); color: rgba(255,255,255,.7); margin-top: .35rem; }
@media (min-width: 760px) {
  .hero::after { background: linear-gradient(90deg, rgba(8,10,14,.94) 0%, rgba(8,10,14,.78) 38%, rgba(8,10,14,.15) 70%, rgba(8,10,14,.05) 100%), linear-gradient(0deg, rgba(8,10,14,.7), transparent 40%); }
  .hero picture img { object-position: 60% 50%; }
  .hero-in { justify-content: center; padding-block: var(--space-24); }
  .hero-facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 var(--space-12); max-width: 760px; }
}

/* ---------- Sommaire (3 ressources) ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.index-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-10); }
@media (min-width: 860px) { .index-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--space-12); } }
.toc { border-top: 2px solid var(--ink); }
.toc-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-6) 0; border-bottom: 1px solid var(--color-line); text-decoration: none; position: relative; }
.toc-row:hover .toc-title { color: var(--red); }
.toc-row:hover .toc-arrow { transform: translateX(4px); background: var(--red); color: #fff; }
.toc-num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-faint); width: 2.5ch; }
.toc-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -.02em; line-height: 1.05; }
.toc-desc { color: var(--color-muted); font-size: var(--text-sm); margin-top: .35rem; max-width: 58ch; }
.toc-meta { display: none; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
.toc-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--color-line); }
.toc-arrow svg { width: 18px; height: 18px; }
@media (min-width: 760px) { .toc-row { grid-template-columns: 4ch 1fr 16ch auto; padding: var(--space-8) 0; } .toc-meta { display: block; } }

/* ---------- Livret ---------- */
.livret { background: var(--color-surface); border-top: 1px solid var(--color-line); }
.livret-grid { display: grid; gap: var(--space-12); }
@media (min-width: 980px) { .livret-grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); } .livret-intro { position: sticky; top: 96px; align-self: start; } }
.livret-intro .h2 { margin-top: var(--space-4); }
.livret-intro p + p { margin-top: var(--space-4); }
.spec-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-xs); font-weight: 600; padding: .3rem .6rem; border-radius: 999px; background: var(--color-surface-2); }
.badge-ped { background: var(--yellow); color: var(--ink); font-family: var(--font-mono); }
.edition { margin-top: var(--space-8); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
.edition div { padding: var(--space-4); border-right: 1px solid var(--color-line); }
.edition div:last-child { border-right: 0; }
.edition dt { font-size: var(--text-xs); color: var(--color-muted); }
.edition dd { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); margin-top: .15rem; }

.chapters { border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg); }
.chapters-head { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-4) var(--space-5); background: var(--ink); color: #fff; }
.chapters-head strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -.01em; }
.chapters-head span { font-family: var(--font-mono); font-size: var(--text-xs); color: rgba(255,255,255,.65); }
.chapter { border-top: 1px solid var(--color-line); background: var(--color-surface); }
.chapter summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 10px 1fr auto 24px; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); min-height: 56px; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary:hover { background: var(--color-bg); }
.chapter .sw { width: 10px; height: 28px; border-radius: 2px; background: var(--c); }
.chapter .name { font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .02em; }
.chapter .pp { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-faint); }
.chapter .chev { width: 20px; height: 20px; transition: transform .25s; color: var(--color-faint); }
.chapter[open] .chev { transform: rotate(180deg); }
.chapter ul { padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 10px + var(--space-4)); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chapter li { font-size: var(--text-xs); padding: .3rem .6rem; border-radius: var(--radius-sm); background: var(--color-bg); border: 1px solid var(--color-line); max-width: none; }
.chapter li.ped::after { content: "PED"; margin-left: .4rem; font-family: var(--font-mono); font-size: .7rem; background: var(--yellow); padding: 0 .25rem; border-radius: 2px; }
.chapters-note { padding: var(--space-4) var(--space-5); font-size: var(--text-xs); color: var(--color-muted); border-top: 1px solid var(--color-line); background: var(--color-surface); }

.method { margin-top: var(--space-16); }
.method-steps { counter-reset: step; display: grid; gap: 0; margin-top: var(--space-8); border-top: 2px solid var(--ink); }
.method-steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-line); max-width: none; }
.method-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--red); font-size: var(--text-sm); padding-top: .2rem; }
.method-steps strong { display: block; font-size: var(--text-base); }
.method-steps p { color: var(--color-muted); font-size: var(--text-sm); margin-top: .2rem; }
@media (min-width: 860px) { .method-steps { grid-template-columns: repeat(4, 1fr); } .method-steps li { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--color-line); padding: var(--space-6) var(--space-6) var(--space-6) 0; } .method-steps li + li { padding-left: var(--space-6); } .method-steps li:last-child { border-right: 0; } }

.obtain { margin-top: var(--space-12); display: grid; gap: var(--space-6); padding: var(--space-8); border-radius: var(--radius-xl); background: var(--yellow); color: var(--ink); }
.obtain h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -.02em; }
.obtain p { margin-top: var(--space-2); }
@media (min-width: 860px) { .obtain { grid-template-columns: 1fr auto; align-items: center; padding: var(--space-10) var(--space-12); } }

/* ---------- Application (sombre) ---------- */
.app { background: var(--app-bg); color: #E8EAED; position: relative; overflow: hidden; }
.app .kicker { color: #FF5A52; }
.app .lead, .app .muted { color: #A6ADB8; }
.app-top { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 980px) { .app-top { grid-template-columns: 1fr 1.05fr; gap: var(--space-16); } }
.app-top .h2 { margin-top: var(--space-4); color: #fff; }
.app-top .lead { margin-top: var(--space-5); }
.app-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.pill { font-size: var(--text-xs); font-weight: 600; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--app-line); color: #D6DAE0; display: inline-flex; align-items: center; gap: .45rem; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63,191,127,.2); }
.app-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.5rem, 2vw, 1.25rem); padding-top: var(--space-4); }
.phone { width: clamp(118px, 29vw, 220px); aspect-ratio: 390 / 844; border-radius: clamp(18px, 4vw, 34px); padding: clamp(4px, 1vw, 7px); background: #2A303B; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(14px, 3.2vw, 28px); background: #14181F; }
.phone.mid { transform: translateY(-18px); width: clamp(132px, 33vw, 250px); }
.phone-cap { text-align: center; font-size: var(--text-xs); color: #8F97A3; margin-top: var(--space-3); }

.features { margin-top: clamp(var(--space-16), 8vw, var(--space-24)); display: grid; gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--app-bg); padding: var(--space-6); }
.feature svg { width: 22px; height: 22px; color: #FF5A52; }
.feature h3 { font-size: var(--text-base); font-weight: 700; color: #fff; margin-top: var(--space-4); }
.feature p { font-size: var(--text-sm); color: #A6ADB8; margin-top: .3rem; }
.feature.wide { background: var(--app-surface); }
.feature .calc { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-sm); color: #A6ADB8; flex-wrap: wrap; }
.feature .calc b { color: var(--blue); font-weight: 600; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } .feature.wide { grid-column: span 2; } }

.install { margin-top: clamp(var(--space-16), 8vw, var(--space-24)); display: grid; gap: var(--space-10); }
@media (min-width: 980px) { .install { grid-template-columns: 1.3fr 1fr; gap: var(--space-16); align-items: start; } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--app-surface); margin-top: var(--space-6); }
.tab { min-height: 44px; padding: .5rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: var(--text-sm); color: #A6ADB8; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.tab:hover:not([aria-selected="true"]) { color: #fff; }
.steps { margin-top: var(--space-6); display: grid; gap: var(--space-3); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--app-surface); max-width: none; color: #D6DAE0; font-size: var(--text-sm); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-mono); font-size: var(--text-xs); }
.steps b { color: #fff; }
.steps li span.ok { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-inline: .2rem; vertical-align: middle; }
.qr-card { background: #fff; color: var(--ink); border-radius: var(--radius-xl); padding: var(--space-6); display: grid; grid-template-columns: 120px 1fr; gap: var(--space-5); align-items: center; }
.qr-card img { width: 120px; height: 120px; image-rendering: pixelated; }
.qr-card strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; display: block; line-height: 1.15; }
.qr-card a.url { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--red); word-break: break-all; }
.qr-card p { font-size: var(--text-xs); color: var(--color-muted); margin-top: .35rem; }
.poster-link { margin-top: var(--space-4); display: inline-flex; gap: .5rem; align-items: center; font-size: var(--text-sm); color: #D6DAE0; text-underline-offset: 3px; min-height: 44px; }
.poster-link:hover { color: #fff; }
.poster-link svg { width: 18px; height: 18px; }
.warning { margin-top: var(--space-12); display: grid; grid-template-columns: 24px 1fr; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: rgba(255,194,14,.08); border: 1px solid rgba(255,194,14,.35); color: #E9DDB8; font-size: var(--text-sm); }
.warning svg { width: 22px; height: 22px; color: var(--yellow); }
.warning p { max-width: none; }

/* ---------- Vidéos ---------- */
.videos-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-10); }
@media (min-width: 900px) { .videos-head { grid-template-columns: 1fr auto; align-items: end; } }
.yt-stats { display: flex; gap: var(--space-8); font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-4); }
.yt-stats b { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); font-weight: 800; line-height: 1; }

.featured { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .featured { grid-template-columns: 1.6fr 1fr; } }
.vid { text-align: left; display: block; width: 100%; }
.vid .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-md); background: #1b1b1b; }
.vid .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.vid:hover .thumb img { transform: scale(1.04); }
.vid .play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.vid .play svg { width: 18px; height: 18px; margin-left: 2px; }
.vid .tag { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); margin-top: var(--space-3); }
.vid .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--ink)); }
.vid .t { display: block; font-weight: 700; font-size: var(--text-sm); line-height: 1.35; margin-top: .25rem; }
.vid:hover .t { color: var(--red); }
.vid.big .t { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.015em; line-height: 1.1; }
.vid.big .play { width: 64px; height: 64px; left: 20px; bottom: 20px; }
.vid.big .play svg { width: 26px; height: 26px; }
.vid .views { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-faint); margin-top: .2rem; display: block; }
.featured-side { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; align-content: start; }
@media (min-width: 900px) { .featured-side { grid-template-columns: 1fr 1fr; } }

.lib { margin-top: clamp(var(--space-16), 7vw, var(--space-20)); }
.lib-bar { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 2px solid var(--ink); margin-bottom: var(--space-8); }
@media (min-width: 900px) { .lib-bar { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; justify-content: flex-end; } }
.chip { flex: none; min-height: 40px; padding: .45rem .9rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line); display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--ink)); }
.chip[data-f="all"]::before { display: none; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip span { font-family: var(--font-mono); opacity: .6; font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-8) var(--space-5); }
.grid .vid[hidden] { display: none; }
.lib-more { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-line); }
.lib-more p { font-size: var(--text-sm); color: var(--color-muted); }

dialog.player { border: 0; padding: 0; background: transparent; width: min(100% - 1.5rem, 1040px); max-width: none; margin: auto; color: #fff; }
dialog.player::backdrop { background: rgba(5,7,10,.88); backdrop-filter: blur(4px); }
.player-frame { aspect-ratio: 16/9; background: #000; border-radius: var(--radius-md); overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; }
.player-bar p { font-weight: 700; font-size: var(--text-sm); }
.player-bar a { font-size: var(--text-xs); color: #cfd3da; white-space: nowrap; }
.player-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; flex: none; }
.player-close:hover { background: rgba(255,255,255,.22); }
.player-close svg { width: 20px; height: 20px; }

/* ---------- Association ---------- */
.asso { background: var(--color-surface); border-top: 1px solid var(--color-line); }
.asso-grid { display: grid; gap: var(--space-12); }
@media (min-width: 980px) { .asso-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.asso-grid .h2 { margin-top: var(--space-4); }
.asso-grid .lead { margin-top: var(--space-5); }
.timeline { margin-top: var(--space-10); border-left: 2px solid var(--ink); padding-left: var(--space-6); display: grid; gap: var(--space-8); }
.timeline li { position: relative; max-width: none; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--space-6) - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--ink); }
.timeline li.now::before { background: var(--yellow); }
.timeline .yr { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--red); font-weight: 500; }
.timeline strong { display: block; font-size: var(--text-base); margin-top: .1rem; }
.timeline p { font-size: var(--text-sm); color: var(--color-muted); margin-top: .2rem; }
.asso-figure { border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.asso-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.asso-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-10) var(--space-5) var(--space-4); color: #fff; font-size: var(--text-xs); background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); max-width: none; }
.audience { margin-top: var(--space-8); }
.audience h3 { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.audience ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.contact { margin-top: var(--space-8); background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: var(--space-8); }
.contact h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; }
.contact p { color: rgba(255,255,255,.72); font-size: var(--text-sm); margin-top: var(--space-2); }
.contact .mail { display: inline-block; margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-base); color: var(--yellow); text-underline-offset: 4px; word-break: break-all; }
.contact .mail:hover { color: #fff; }
.contact ul { margin-top: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-sm); color: rgba(255,255,255,.8); }
.contact li { display: flex; gap: .6rem; align-items: baseline; }
.contact li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: #0B0D11; color: #A6ADB8; padding-block: var(--space-16) var(--space-8); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-10); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { color: #fff; }
.footer .logo .logo-txt { color: #8F97A3; }
.footer h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: #fff; font-weight: 700; margin-bottom: var(--space-3); }
.footer ul { display: grid; gap: .15rem; }
.footer li a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer li a:hover { color: #fff; }
.footer-disclaimer { margin-top: var(--space-5); font-size: var(--text-xs); color: #7C8490; max-width: 52ch; }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--text-xs); color: #7C8490; }
.footer-bottom a { color: #A6ADB8; }

/* ---------- Pages légales ---------- */
.legal { padding-block: var(--space-16) var(--space-24); }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); letter-spacing: -.02em; margin-top: var(--space-4); }
.legal .updated { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-faint); margin-top: var(--space-3); }
.legal section { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.legal h2 { font-size: var(--text-lg); font-weight: 700; }
.legal p, .legal li { margin-top: var(--space-3); color: #2f2d2a; }
.legal ul { padding-left: 1.2rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem var(--space-6); margin-top: var(--space-4); }
.legal dt { color: var(--color-muted); font-size: var(--text-sm); }
.legal dd { font-weight: 500; }
.todo { background: #FFF1C2; border-radius: 3px; padding: 0 .3rem; font-family: var(--font-mono); font-size: .85em; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-sm); font-weight: 600; text-decoration: none; min-height: 44px; }
.back:hover { color: var(--red); }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: var(--space-3); } }

/* ---------- Révélation douce ---------- */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
.player-bar a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.player-bar a svg { width: 14px; height: 14px; }
.lib-more .btn svg { width: 16px; height: 16px; }
[hidden] { display: none !important; }
.chapters-note { max-width: none; }
.logo .logo-txt { max-width: 24ch; }
@media (min-width: 980px) { .app-top { grid-template-columns: 1.1fr 1fr; } }
.vid .thumb { display: block; }
.vid .tag { display: flex; }
@media (max-width: 599px) { .grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-3); } .grid .vid .t { font-size: var(--text-xs); } .grid .vid .play { width: 36px; height: 36px; left: 8px; bottom: 8px; } .grid .vid .play svg { width: 14px; height: 14px; } }
.grid.is-collapsed .vid.extra { display: none; }
.more-btn { margin: var(--space-8) auto 0; display: flex; }
.header .header-cta { display: none; }
@media (min-width: 960px) { .header .header-cta { display: inline-flex; } }
@media (max-width: 480px) { .qr-card { grid-template-columns: 96px 1fr; gap: var(--space-4); padding: var(--space-5); } .qr-card img { width: 96px; height: 96px; } .qr-card a.url { word-break: normal; font-size: .75rem; } }
.legal .back { display: flex; width: fit-content; }
/* V4 */
.announce { align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; min-height: 40px; padding: .35rem .9rem .35rem .4rem; margin-bottom: var(--space-6); border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-size: var(--text-xs); font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.announce:hover { background: rgba(255,255,255,.18); }
.announce svg { width: 14px; height: 14px; }
.announce-tag { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: .15rem .55rem; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.hero-facts .fact-v { grid-column: span 2; }
.hero-facts .to { color: rgba(255,255,255,.5); font-weight: 400; }
.hero-facts .v4 { color: var(--yellow); }
@media (min-width: 760px) { .hero-facts { grid-template-columns: repeat(5, auto); max-width: 900px; gap: 0 var(--space-10); } .hero-facts .fact-v { grid-column: auto; } }
.edition .next { background: var(--yellow); }
.edition .next dt { color: var(--ink); }
.obtain-tag { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin: 0 0 var(--space-2) !important; }
.obtain h3 + p { max-width: 62ch; }
@media (max-width: 420px) { .edition { grid-template-columns: 1fr 1fr; } .edition div:last-child { grid-column: span 2; border-top: 1px solid var(--color-line); } .edition div:nth-child(2) { border-right: 0; } }
/* Ordinateur */
@media (min-width: 760px) { .hero-facts dd { white-space: nowrap; } }
.edition dd { font-size: var(--text-base); white-space: nowrap; }
@media (min-width: 980px) {
  .app-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .phones { width: 100%; }
  .phone { width: 30%; max-width: 230px; }
  .phone.mid { width: 34%; max-width: 260px; }
  .app-top .h2 { max-width: 13ch; }
}
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  .hero h1 { max-width: 15ch; }
}
.method-steps li { align-content: start; }
