/* =========================================================================
   LEMIA — site public www.lemia.ch
   Feuille de style partagée. Site statique, zéro build, zéro appel externe.

   Identité : « atelier confidentiel souverain ». Rampe anthracite oklch (RAL 7016,
   --tint=80, hue 220), accent #4a5a7a « nuit profonde », halos d'état repris de l'app.
   Faits vérifiables (art. 321 CP, routage Suisse, sandbox, HITL) portés en TEXTE lisible,
   sans petit encadré mono ni icône (les anciennes « pilules preuve » ont été retirées).

   Polices : AUTO-HÉBERGÉES dans assets/fonts/ (aucun appel à un CDN de polices →
   cohérent nLPD / zéro-build). Fichiers variables (poids 100–900), sous-ensemble latin
   (couvre les accents français + Œ/œ + ponctuation typographique). Les glyphes hors
   sous-ensemble (✓ → ▶ ☰) retombent naturellement sur la pile système.
   NB : ce dossier est HORS de `npm run check:no-hex` — les hex bruts sont volontaires.
   ========================================================================= */

/* ------------------------------------------------------------- webfonts -- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  /* Rampe anthracite (oklch, lightness résolue à --tint=80) */
  --ral-0:  oklch(10% 0.005 220);
  --ral-1:  oklch(14% 0.005 220);
  --ral-2:  oklch(17% 0.005 220);
  --ral-3:  oklch(20% 0.005 220);
  --ral-4:  oklch(23% 0.005 220);   /* RAL 7016 canonique = fond app */
  --ral-5:  oklch(27% 0.005 220);
  --ral-6:  oklch(32% 0.005 220);
  --ral-7:  oklch(38% 0.005 220);
  --ral-8:  oklch(48% 0.005 220);
  --ral-9:  oklch(60% 0.005 220);
  --ral-10: oklch(74% 0.005 220);
  --ral-11: oklch(89% 0.005 220);

  --bg:           var(--ral-3);
  --bg-deep:      var(--ral-1);
  --surface-1:    var(--ral-4);
  --surface-2:    var(--ral-5);
  --surface-3:    var(--ral-6);
  --surface-float:var(--ral-7);

  --line:         color-mix(in srgb, var(--ral-11) 8%, transparent);
  --line-strong:  color-mix(in srgb, var(--ral-11) 18%, transparent);

  --fg:           var(--ral-11);
  --fg-muted:     var(--ral-10);
  --fg-soft:      var(--ral-9);

  --accent:       #4a5a7a;          /* Nuit profonde */
  --accent-hover: color-mix(in srgb, var(--accent) 72%, white);
  --accent-soft:  color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-ring:  color-mix(in srgb, var(--accent) 48%, transparent);
  --accent-glow:  color-mix(in srgb, var(--accent) 40%, transparent);

  --success:      #6aa88a;          /* vert « validé » (HITL) */
  --success-soft: color-mix(in srgb, var(--success) 15%, transparent);
  --success-ring: color-mix(in srgb, var(--success) 42%, transparent);
  --warning:      #c9a567;
  --danger:       #c46c75;
  --run:          #6f93da;          /* halo « en cours » (fixe, comme l'app) */

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;
  --radius-pill:  999px;

  --maxw:         1140px;
  --maxw-prose:   720px;

  /* Type — webfonts auto-hébergées (voir @font-face en tête), repli pile système. */
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 30px rgba(0,0,0,.35);
  --shadow-3: 0 24px 70px rgba(0,0,0,.5);

  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: dark;
}

/* ----------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background:
    radial-gradient(1100px 560px at 78% -8%, var(--accent-soft), transparent 62%),
    radial-gradient(900px 500px at 8% 4%, color-mix(in srgb, var(--run) 7%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08;
  letter-spacing: -0.025em; font-weight: 680; margin: 0 0 .5em;
  text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.65rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.03em; }
h3 { font-size: 1.18rem; letter-spacing: -0.015em; font-weight: 660; }
p  { margin: 0 0 1rem; }
strong { color: var(--fg); font-weight: 640; }
code, kbd { font-family: var(--font-mono); font-size: .9em;
  background: color-mix(in srgb, var(--ral-11) 8%, transparent);
  padding: .12em .4em; border-radius: 6px; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--fg-muted); }
.center { text-align: center; }
.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; }

/* skip-link a11y */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .15s var(--ease); }
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-deep) 78%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 680;
  font-family: var(--font-display); color: var(--fg); letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.site-header .brand img { height: 38px; }   /* mark blanc, sans boîte, enfin visible */
.brand .wordmark { font-size: 1.08rem; }
/* Top bar : on ne montre que la marque (petit logo). Le mot « LEMIA » reste dans
   le DOM, masqué visuellement mais lu par les lecteurs d'écran (nom du lien accueil). */
.site-header .brand .wordmark {
  font-family: var(--font-display); font-weight: 680; font-size: 1.18rem;
  letter-spacing: .07em; color: var(--fg); white-space: nowrap;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--fg-muted); padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 500; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; position: relative; margin-left: auto; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--fg); border-radius: var(--radius-sm);
  width: 42px; height: 42px; cursor: pointer; }
/* hamburger dessiné en CSS (3 traits) — remplace le glyphe ☰ */
.nav-toggle::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--fg);
  box-shadow: 0 -6px 0 var(--fg), 0 6px 0 var(--fg);
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    padding: 10px; margin: 0; display: none; box-shadow: var(--shadow-2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px; }
  .nav-cta { margin: 8px 0 2px; text-align: center; justify-content: center; }
}

/* --------------------------------------------------------------- layout -- */
.section { padding: 76px 0; }
.section--tight { padding: 50px 0; }
.section h2 { margin-bottom: .3em; }
.section .lead { color: var(--fg-muted); font-size: clamp(1.2rem, 1.9vw, 1.45rem); max-width: 60ch; margin-bottom: 2.2rem; line-height: 1.5; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .22em;
  font-size: .7rem; font-weight: 600; color: var(--accent-hover); margin-bottom: .7rem; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--fg-muted); line-height: 1.5; }

/* ----------------------------------------------------------------- hero -- */
.hero { padding: clamp(72px, 10vw, 120px) 0 84px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero h1 .accent { color: var(--accent-hover); }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--fg-muted);
  max-width: 56ch; margin: 1.2rem 0 2rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* ----------------------------------------------------------- Mock héros -- */
/* Maquette décorative (aria-hidden) d'un run « étages » en mode Confidentiel :
   agents par rôle, relecteur critique, juge de run, staging en attente HITL.
   Fidèle au vrai produit — halos d'état discrets, métadonnées en mono. */
.hero-visual { display: flex; justify-content: center; align-items: center; }
/* variante 3 : le logo en grand comme visuel du hero (colonne droite). Le logo fixe est
   sur transparent (fond = couleur de la page, aucune boîte) ; la vidéo d'intro se DESSINE
   par-dessus, exactement au même cadrage, puis se fond pour le révéler. */
.hero-logo { display: flex; align-items: center; justify-content: center; padding: 8px; width: 100%; }
.hero-logo-frame { position: relative; width: clamp(210px, 26vw, 340px); }
.hero-logo-still { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 45%, transparent)); }
.hero-logo-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; mix-blend-mode: screen; pointer-events: none;
  transition: opacity .5s var(--ease); }
.hero-logo-video[hidden] { display: none; }
.hero-logo-video.is-leaving { opacity: 0; }
/* (maquette de run fictive .hero-mock/.hm-* retirée — un vrai screenshot la remplacera) */

/* (la « preuve en mono » — pilules mono encadrées avec coche/cadenas — a été retirée :
   les faits vivent désormais en texte lisible, sans petit encadré ni icône) */

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-sans);
  transition: background .15s, border-color .15s, transform .06s, box-shadow .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; position: relative; }
.btn-primary:hover { background: var(--accent-hover); color: #0c0f14;
  box-shadow: 0 0 0 1px var(--accent-ring), 0 0 26px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* CTA principal : anneau discret statique (sans pulsation) */
.btn-primary.halo { box-shadow: 0 0 0 1px var(--accent-ring); }

/* ---------------------------------------------------------------- cards -- */
.cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-1);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: .4em; font-size: 1.32rem; }
.card p { color: var(--fg-muted); margin-bottom: 0; font-size: 1.04rem; }

/* two modes */
.modes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mode {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mode:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mode h3 { display: flex; align-items: center; gap: 10px; }
.mode ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--fg-muted); }
.mode li { margin-bottom: .4rem; }

/* (composant pilule .tag retiré — les libellés sont désormais en texte simple .muted) */

/* ------------------------------------------------------------- usecases -- */
.usecases { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  margin-top: 1.8rem; }
.usecase {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.usecase:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.usecase .uc-eyebrow { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent-hover); margin-bottom: .7rem; }
.usecase h3 { font-size: 1.3rem; margin-bottom: .5em; }
.usecase ul { list-style: none; padding: 0; margin: .4rem 0 1.4rem; color: var(--fg-muted); }
.usecase li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.usecase li:last-child { border-bottom: none; }
.usecase .uc-foot { margin-top: auto; }

/* ---------------------------------------------------------------- steps -- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-ring);
  color: var(--fg); font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .2em; font-size: 1.08rem; }
.step p { margin-bottom: 0; color: var(--fg-muted); }

/* --------------------------------------------------------------- videos -- */
.video-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.video { background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.video:hover { border-color: var(--line-strong); transform: translateY(-2px); }
/* Vignette « à venir » assumée : fond calme, picto lecture discret, pastille mono. */
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background:
    radial-gradient(340px 150px at 50% 38%, var(--accent-soft), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
}
.video-frame .play { width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg-soft);
  display: grid; place-items: center; font-size: .95rem; padding-left: 3px; }
.video-frame .vf-soon { font-size: .82rem; color: var(--fg-soft); white-space: nowrap; }
.video-meta { padding: 16px 18px; }
.video-meta h3 { font-size: 1.02rem; margin-bottom: .2em; }
.video-meta p { color: var(--fg-muted); margin: 0; font-size: .92rem; }

/* ------------------------------------------------------------------ faq -- */
.faq { display: grid; gap: 12px; max-width: var(--maxw-prose); }
.faq details {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 20px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-hover); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--fg-muted); padding-bottom: 16px; margin: 0; }

/* -------------------------------------------------------------- pricing -- */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.price--featured { border-color: var(--accent-ring);
  box-shadow: 0 0 0 1px var(--accent-ring), 0 0 28px var(--accent-glow); }
.price .amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700;
  margin: .2em 0; letter-spacing: -.03em; }
.price ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; color: var(--fg-muted);
  text-align: left; }
.price li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- forms -- */
.form { display: grid; gap: 16px; max-width: var(--maxw-prose); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  color: var(--fg); border-radius: var(--radius-sm); padding: 11px 14px;
  font: inherit; font-size: .95rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent-ring); }
.field input:disabled, .field textarea:disabled { opacity: .55; cursor: not-allowed; }

/* -------------------------------------------------------------- callout -- */
.callout {
  background: var(--surface-1); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 18px 22px; margin: 1.5rem 0; color: var(--fg-muted);
}
.callout--warn { border-left-color: var(--warning); }
.callout--ok { border-left-color: var(--success); }
.callout strong { color: var(--fg); }

/* --------------------------------------------------------------- prose --- */
.prose { max-width: var(--maxw-prose); }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { color: var(--fg-muted); padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* download list */
.dl-list { display: grid; gap: 14px; max-width: var(--maxw-prose); }
.dl {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
}
.dl .dl-os { font-weight: 600; }
.dl .dl-meta { color: var(--fg-soft); font-size: .85rem; }
.dl .btn { margin-left: auto; }

/* ----------------------------------------------------------- about/404 --- */
.about-lede { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-family: var(--font-display);
  letter-spacing: -.02em; line-height: 1.3; max-width: 24ch; color: var(--fg); }
.notfound { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-mono); font-size: clamp(3rem, 12vw, 7rem);
  color: var(--accent-hover); letter-spacing: -.04em; line-height: 1; margin-bottom: .4rem; }

/* --------------------------------------------------------------- footer -- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; background: var(--bg-deep); }
.site-footer .container { padding-top: 52px; padding-bottom: 34px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.5fr repeat(3, 1fr); }
.footer-grid h4 { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--fg-soft); margin: 0 0 .9rem; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--fg-muted); font-size: .92rem; }
.footer-grid a:hover { color: var(--fg); }
.footer-brand p { color: var(--fg-soft); font-size: .9rem; max-width: 34ch; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--fg-soft); font-size: .85rem; }

/* --------------------------------------------------------------- misc ---- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kicker-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 1rem; }

/* ----------------------------------------------------------- motion ------ */
/* reveal au scroll — progressive enhancement (JS ajoute .is-in) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* (ancienne séquence data-load du hero remplacée par la composition post-intro ci-dessous ;
   les attributs data-load restent inertes dans le DOM) */
.hero [data-load] { opacity: 1; transform: none; }
/* intro b : la marque se pose (fondu court), puis la page se compose */
@keyframes brandIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.site-header .brand { animation: brandIn .9s var(--ease) both; }

/* ---- intro d'accueil (index.html) : la vidéo (.hero-logo-video) se DESSINE à la place de
   repos du logo (colonne droite), superposée au logo fixe. Fin en DEUX temps :
   1) `intro-drawing` retiré → la vidéo se fond et le logo fixe (identique) se révèle ;
   2) après un court battement, `intro-pending` retiré → en-tête + texte + sections se
   composent en fondu (+ léger glissement). Gate posé AVANT paint → aucun flash ; sans JS le
   <video> reste caché → seul le logo fixe s'affiche. ---- */
.hero-logo-still { transition: opacity .45s var(--ease); }
html.intro-drawing .hero-logo-still { opacity: 0; }
.site-header, .hero-copy, main > *:not(.hero) {
  transition: opacity .75s var(--ease), transform .75s var(--ease); }
html.intro-pending .site-header,
html.intro-pending .hero-copy,
html.intro-pending main > *:not(.hero) { opacity: 0; transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-load] { opacity: 1; transform: none; }
  /* L'intro d'accueil est un choix produit assumé : ses transitions de composition restent
     ACTIVES même en reduced-motion — sinon le fondu du texte serait instantané (la règle
     universelle ci-dessus force transition-duration à .001ms). */
  .site-header, .hero-copy, main > *:not(.hero) { transition-duration: .75s !important; }
  .hero-logo-still, .hero-logo-video { transition-duration: .5s !important; }
}

/* --------------------------------------------------------- responsive ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-visual { margin-top: 1.6rem; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 58px 0; }
  .hero { padding: 56px 0 48px; }
}

/* (ancien tableau comparatif .cmp retiré — remplacé par .verdicts, voir plus haut) */

/* ------------------------------------------------------------- sources --- */
.sources { max-width: var(--maxw-prose); margin-top: 1rem; }
.sources ol { list-style: decimal; padding-left: 1.4rem; margin: 0; }
.sources li { margin-bottom: .7rem; color: var(--fg-muted); font-size: .92rem; line-height: 1.5; }
.sources li b { color: var(--fg); font-weight: 600; }
.sources .src-meta { font-family: var(--font-mono); font-size: .9rem; color: var(--fg-soft);
  display: block; margin-top: .25rem; word-break: break-word; }

/* idées reçues : réutilise .usecase mais avec un en-tête « mythe → réalité » */
.myth .uc-eyebrow { color: var(--danger); }
.myth .uc-real { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line);
  color: var(--fg); }
.myth .uc-real b { color: var(--accent-hover); }

/* comparatif en GRANDS BLOCS (remplace la table dense .cmp) — un bloc par critère */
.verdicts { display: grid; gap: 20px; margin-top: 1.6rem; }
.verdict { background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px; }
.verdict h3 { font-size: 1.35rem; margin-bottom: .7em; }
.verdict p { font-size: 1.06rem; margin: 0 0 .55rem; color: var(--fg-muted); }
.verdict p:last-child { margin-bottom: 0; }
.v-us { color: var(--fg); }
.v-them b { color: var(--danger); }
.v-us b { color: var(--success); }

/* ------------------------------------------------------------- impression */
/* Le PDF du dossier est généré depuis cette page en vue print → thème CLAIR,
   contenu data-reveal forcé visible, chrome de navigation masqué. */
.print-only { display: none; }
@media print {
  :root {
    --bg: #ffffff; --bg-deep: #ffffff;
    --surface-1: #ffffff; --surface-2: #f4f5f7; --surface-3: #eceef1; --surface-float: #ffffff;
    --fg: #14171c; --fg-muted: #3b4047; --fg-soft: #5c636d;
    --line: #d9dce1; --line-strong: #bcc1c9;
    --accent: #38456180; --accent: #384561; --accent-hover: #2b3651;
    --accent-soft: #eef1f6; --accent-ring: #c3ccdb; --accent-glow: transparent;
    --success: #2f7d56; --warning: #8a6b1e; --danger: #a8454f;
    --shadow-1: none; --shadow-2: none; --shadow-3: none;
  }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
    box-shadow: none !important; text-shadow: none !important;
  }
  html, body { background: #ffffff !important; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .nav, .nav-toggle, .skip-link, .no-print,
  .hero-actions, .hero-logo-video { display: none !important; }
  /* sécurité : imprimer pendant l'intro ne doit jamais masquer le contenu */
  html.intro-pending .site-header, html.intro-pending .hero-copy,
  html.intro-drawing .hero-logo-still, html.intro-pending main > * {
    opacity: 1 !important; transform: none !important; }
  [data-reveal], .hero [data-load] { opacity: 1 !important; transform: none !important;
    animation: none !important; }
  a { color: var(--fg) !important; text-decoration: none; }
  .section, .hero { padding: 10px 0 !important; }
  .section--tight { padding: 8px 0 !important; }
  .container { max-width: none; padding: 0; }
  h1 { font-size: 22pt; } h2 { font-size: 15pt; } h3 { font-size: 12pt; }
  .usecase, .card, .callout, .verdict { break-inside: avoid; }
  .usecase:hover, .card:hover { transform: none; }
  .print-only { display: block !important; }
  .print-title { margin: 0 0 .2rem; }
  .print-meta { font-family: var(--font-mono); font-size: 9pt; color: var(--fg-soft);
    margin: 0 0 1.2rem; }
  @page { margin: 16mm 15mm; }
}
