/* ============================================================================
   PFPair — direction artistique « Banc d'essai »
   Chrome gris calibré (chroma 0) · dalle noire pour l'outil ·
   la seule chroma de la page vient de la destination active.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */

:root {
  /* Champ neutre : chroma 0 volontaire. On juge une image contre du gris,
     pas contre du crème. */
  --bench-0: oklch(0.868 0 0);
  --bench-1: oklch(0.923 0 0);
  --bench-2: oklch(0.818 0 0);
  --bench-3: oklch(0.775 0 0);

  --slab-0: oklch(0.188 0 0);
  --slab-1: oklch(0.243 0 0);
  --slab-2: oklch(0.305 0 0);

  /* Le champ gris comprime la plage d'encre utilisable : ces trois valeurs
     sont les plus claires qui tiennent 4.5:1 sur --bench-0 et --bench-1. */
  --ink: oklch(0.185 0 0);
  --ink-2: oklch(0.37 0 0);
  --ink-3: oklch(0.44 0 0);

  /* Idem cote dalle : --on-slab-3 tient 4.5:1 sur --slab-0 et --slab-1. */
  --on-slab: oklch(0.968 0 0);
  --on-slab-2: oklch(0.742 0 0);
  --on-slab-3: oklch(0.665 0 0);

  --hair: color-mix(in oklab, var(--ink) 15%, transparent);
  --hair-2: color-mix(in oklab, var(--ink) 28%, transparent);
  --hair-slab: color-mix(in oklab, var(--on-slab) 14%, transparent);
  --hair-slab-2: color-mix(in oklab, var(--on-slab) 26%, transparent);

  /* Destination active. app.js écrit --accent / --accent-soft en inline ;
     on garde --dest sous contrôle CSS pour tenir les contrastes. */
  --dest: #5865f2;
  --dest-fill: #4a56e0;
  --dest-on: #ffffff;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: clamp(1.25rem, 0.9rem + 1.1vw, 1.55rem);
  --step-3: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.2rem + 3.8vw, 3.7rem);
  --step-5: clamp(2.8rem, 1.1rem + 6.2vw, 5.2rem);

  --gutter: clamp(1.1rem, 0.4rem + 2.6vw, 3.5rem);
  --measure: 1440px;
  --rule: 1px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;


  --t-mid: 220ms;
  --t-slow: 420ms;

  --z-grid: 0;
  --z-base: 1;
  --z-raised: 5;
  --z-sticky: 20;
  --z-overlay: 40;
  --z-toast: 60;

  --page-progress: 0;
}

/* ------------------------------------------------------------ mode sombre

   Le principe de la direction artistique ne change pas : chroma 0 partout, la
   seule couleur de la page reste celle de la destination. On ne bascule pas
   vers un bleu nuit ni vers un gris chaud — on juge toujours une image contre
   du gris neutre, simplement plus bas sur l'echelle.

   La relation entre le champ et la dalle s'inverse, et c'est voulu. En clair,
   la machine est une dalle sombre posee sur un banc clair. En sombre, elle
   devient un panneau eclaire dans une piece sombre : --slab reste distinct du
   champ, mais par le haut. Sans cela, dalle et champ se confondraient.

   Les six niveaux d'encre sont les plus SOMBRES qui tiennent 4.5:1 sur leur
   surface, symetriquement au mode clair ou ce sont les plus claires. Mesures
   au navigateur en bas de fichier. Ne pas y toucher sans revérifier. */

:root[data-theme="dark"] {
  color-scheme: dark;

  --bench-0: oklch(0.178 0 0);
  --bench-1: oklch(0.223 0 0);
  --bench-2: oklch(0.142 0 0);
  --bench-3: oklch(0.121 0 0);

  --slab-0: oklch(0.268 0 0);
  --slab-1: oklch(0.318 0 0);
  --slab-2: oklch(0.378 0 0);

  --ink: oklch(0.967 0 0);
  --ink-2: oklch(0.775 0 0);
  --ink-3: oklch(0.700 0 0);

  --on-slab: oklch(0.977 0 0);
  --on-slab-2: oklch(0.815 0 0);
  --on-slab-3: oklch(0.748 0 0);

  /* Les filets etaient tires de l'encre : en sombre l'encre est claire, donc
     ils s'eclaircissent tout seuls. On baisse leur part, un filet clair sur
     fond sombre se voit beaucoup plus qu'un filet sombre sur fond clair. */
  --hair: color-mix(in oklab, var(--ink) 11%, transparent);
  --hair-2: color-mix(in oklab, var(--ink) 20%, transparent);
  --hair-slab: color-mix(in oklab, var(--on-slab) 12%, transparent);
  --hair-slab-2: color-mix(in oklab, var(--on-slab) 22%, transparent);
}

/* Palette des destinations. Deux blocs, memes valeurs, roles differents :
   --dest  destination ACTIVE du banc, posee sur <html> par app.js
   --row   destination propre a CHAQUE ligne du repertoire des formats

   Les hex sont ecrits en toutes lettres des deux cotes, et non derives d'un
   token commun : Chrome ne reinvalide pas une transition background-color dont
   la valeur arrive par une double indirection var(), et le banc restait fige
   sur la couleur precedente. Toute modification doit donc etre reportee dans
   les deux blocs ci-dessous, qui sont volontairement adjacents.

   Pour chaque couple : la premiere valeur est la couleur de marque reelle, la
   seconde une variante assombrie qui tient 4.5:1 avec du blanc. */
[data-platform="discord"]      { --dest: #5865f2; --dest-fill: #4a56e0; --dest-on: #fff; }
[data-platform="x"]            { --dest: #101010; --dest-fill: #101010; --dest-on: #fff; }
[data-platform="facebook"]     { --dest: #1877f2; --dest-fill: #0d5ed6; --dest-on: #fff; }
[data-platform="linkedin"]     { --dest: #0a66c2; --dest-fill: #0a66c2; --dest-on: #fff; }
[data-platform="soundcloud"]   { --dest: #ff5500; --dest-fill: #cc4000; --dest-on: #fff; }
[data-platform="youtube"]      { --dest: #ff0033; --dest-fill: #cc0022; --dest-on: #fff; }
[data-platform="twitch"]       { --dest: #9147ff; --dest-fill: #7b2ff7; --dest-on: #fff; }
[data-platform="pinterest"]    { --dest: #e60023; --dest-fill: #c8001d; --dest-on: #fff; }
[data-platform="mastodon"]     { --dest: #6364ff; --dest-fill: #4b4ce8; --dest-on: #fff; }
[data-platform="reddit"]       { --dest: #ff4500; --dest-fill: #d93a00; --dest-on: #fff; }

/* En mode sombre, deux marques doivent repasser sur leur valeur reelle.
   X : son accent officiel est un blanc casse, remplace par #101010 en mode
   clair ou il serait invisible. Sur fond sombre c'est l'inverse — un noir sur
   du gris 0.18 ne se voit plus — donc on rend le blanc.
   Discord et Mastodon : leurs bleus assombris pour tenir 4.5:1 avec du blanc
   deviennent trop proches du champ ; on remonte le remplissage. */
:root[data-theme="dark"][data-platform="x"] { --dest: #e7e9ea; --dest-fill: #d7dadc; --dest-on: #0b0b0b; }
:root[data-theme="dark"][data-platform="discord"] { --dest-fill: #5865f2; }
:root[data-theme="dark"][data-platform="mastodon"] { --dest-fill: #6364ff; }
:root[data-theme="dark"][data-platform="linkedin"] { --dest: #4aa3f0; --dest-fill: #0a66c2; }

/* Meme chose pour le repertoire des formats, dont chaque ligne porte sa
   propre destination via --row. Les deux blocs restent synchronises. */
:root[data-theme="dark"] .format-card[data-open-platform="x"] { --row: #e7e9ea; --row-fill: #d7dadc; --row-on: #0b0b0b; }
:root[data-theme="dark"] .format-card[data-open-platform="linkedin"] { --row: #4aa3f0; }

/* Le repertoire des formats est une liste de destinations : chaque ligne porte
   la sienne, pour que le survol montre la couleur de CE reseau et non celle de
   la destination selectionnee dans le banc. */
.format-card { --row: var(--ink); --row-fill: var(--ink); --row-on: var(--bench-1); }
.format-card[data-open-platform="discord"]      { --row: #5865f2; --row-fill: #4a56e0; --row-on: #fff; }
.format-card[data-open-platform="x"]            { --row: #101010; --row-fill: #101010; --row-on: #fff; }
.format-card[data-open-platform="facebook"]     { --row: #1877f2; --row-fill: #0d5ed6; --row-on: #fff; }
.format-card[data-open-platform="linkedin"]     { --row: #0a66c2; --row-fill: #0a66c2; --row-on: #fff; }
.format-card[data-open-platform="soundcloud"]   { --row: #ff5500; --row-fill: #cc4000; --row-on: #fff; }
.format-card[data-open-platform="youtube"]      { --row: #ff0033; --row-fill: #cc0022; --row-on: #fff; }
.format-card[data-open-platform="twitch"]       { --row: #9147ff; --row-fill: #7b2ff7; --row-on: #fff; }
.format-card[data-open-platform="pinterest"]    { --row: #e60023; --row-fill: #c8001d; --row-on: #fff; }
.format-card[data-open-platform="mastodon"]     { --row: #6364ff; --row-fill: #4b4ce8; --row-on: #fff; }
.format-card[data-open-platform="reddit"]       { --row: #ff4500; --row-fill: #d93a00; --row-on: #fff; }

/* ----------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100svh;
  background-color: var(--bench-0);
  /* Trame de plaque : deux filets très pâles, pas un wireframe. */
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 4%, transparent) var(--rule), transparent var(--rule)),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 4%, transparent) var(--rule), transparent var(--rule));
  background-size: 88px 88px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

:where(h1, h2, h3, h4) {
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--ink); color: var(--bench-1); }

:focus-visible {
  outline: 2px solid var(--dest-fill);
  outline-offset: 2px;
}

.slab :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-slab); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: var(--z-toast);
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bench-1);
  font-size: var(--step--1);
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus { top: 0.5rem; }

/* ------------------------------------------------------------ primitives */

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Marque de section : un filet, la donnée en bout de ligne. Pas de kicker
   capitalisé empilé au-dessus de chaque titre. */
.rule-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--rule) solid var(--hair-2);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.rule-line b {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.rule-line span {
  flex: 1;
  height: var(--rule);
  background: var(--hair);
}

.rule-line i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.slab .rule-line { border-bottom-color: var(--hair-slab-2); }
.slab .rule-line b { color: var(--on-slab); }
.slab .rule-line span { background: var(--hair-slab); }
.slab .rule-line i { color: var(--on-slab-2); }

.section-heading h2 {
  font-size: var(--step-4);
  font-variation-settings: "wdth" 94, "wght" 700;
  max-width: 21ch;
}

.section-heading h2 em {
  display: block;
  font-style: normal;
  font-variation-settings: "wdth" 94, "wght" 300;
  color: var(--ink-2);
}

.slab .section-heading h2 em { color: var(--on-slab-2); }

.section-heading > p {
  margin-top: 1.1rem;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

section { scroll-margin-top: 5rem; }

.band { padding-block: clamp(3.4rem, 7vw, 7rem); }
.band-tight { padding-block: clamp(2.4rem, 4.5vw, 4rem); }

.slab {
  background: var(--slab-0);
  color: var(--on-slab);
}

.slab h2, .slab h3 { color: var(--on-slab); }
.slab p { color: var(--on-slab-2); }

/* --------------------------------------------------------------- buttons */

.button {
  --btn-bg: var(--ink);
  --btn-fg: var(--bench-1);
  --btn-line: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0 1.15rem;
  border: var(--rule) solid var(--btn-line);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-variation-settings: "wdth" 96, "wght" 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.button svg { width: 1.05em; height: 1.05em; flex: none; }

.button-primary:hover { box-shadow: 3px 3px 0 0 var(--dest-fill); }
.button-primary:active { box-shadow: 1px 1px 0 0 var(--dest-fill); }

.button-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--hair-2);
}

.button-ghost:hover {
  --btn-line: var(--ink);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.slab .button-primary {
  --btn-bg: var(--on-slab);
  --btn-fg: var(--slab-0);
  --btn-line: var(--on-slab);
}

.slab .button-ghost {
  --btn-fg: var(--on-slab);
  --btn-line: var(--hair-slab-2);
}

.slab .button-ghost:hover {
  --btn-line: var(--on-slab);
  background: color-mix(in oklab, var(--on-slab) 9%, transparent);
}

.button.compact { min-height: 2.45rem; font-size: var(--step--1); padding: 0 0.95rem; }

.link-button {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-2);
  border-bottom: var(--rule) solid var(--hair-slab-2);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.link-button:hover { color: var(--on-slab); border-bottom-color: var(--on-slab); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2.5rem);
  padding: 0.65rem var(--gutter);
  background: color-mix(in oklab, var(--bench-1) 90%, transparent);
  backdrop-filter: blur(14px) saturate(115%);
  border-bottom: var(--rule) solid var(--hair-2);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--dest-fill);
  transform-origin: left;
  transform: scaleX(var(--page-progress));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-logo .logo-plate { fill: none; stroke: var(--ink); stroke-width: 2.8; }
.brand-logo .logo-knock { fill: var(--bench-1); stroke: var(--ink); stroke-width: 2.8; }
.brand-logo .logo-dot { fill: var(--dest-fill); }

.brand-name {
  font-size: 1rem;
  font-variation-settings: "wdth" 86, "wght" 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.brand-name span { font-variation-settings: "wdth" 86, "wght" 300; }

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.8rem);
}

.site-header nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: var(--step--1);
  font-variation-settings: "wdth" 100, "wght" 500;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}

.site-header nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.15rem 0;
  height: 2px;
  background: var(--dest-fill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}

.site-header nav a:hover { color: var(--ink); }
.site-header nav a.is-active { color: var(--ink); font-variation-settings: "wdth" 100, "wght" 700; }
.site-header nav a.is-active::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.4rem;
  padding: 0 0.9rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--bench-1);
  font-size: var(--step--1);
  font-variation-settings: "wdth" 96, "wght" 600;
  transition: box-shadow var(--t-fast) var(--ease);
}

.header-cta svg { width: 1em; height: 1em; }
.header-cta:hover { box-shadow: 3px 3px 0 0 var(--dest-fill); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: end;
  padding-block: clamp(2.6rem, 6vw, 5.5rem) clamp(2.4rem, 5vw, 4.5rem);
}

.hero-copy h1 {
  font-size: var(--step-5);
  font-variation-settings: "wdth" 90, "wght" 800;
  letter-spacing: -0.042em;
  line-height: 0.94;
}

.hero-copy h1 em {
  display: block;
  font-style: normal;
  font-variation-settings: "wdth" 90, "wght" 300;
  color: var(--ink-2);
}

.hero-lede {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: var(--step-1);
  color: var(--ink-2);
  line-height: 1.55;
}

.hero-lede strong {
  color: var(--ink);
  font-variation-settings: "wdth" 100, "wght" 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  border-top: var(--rule) solid var(--hair-2);
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem 0.65rem 0;
  margin-right: 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.hero-proof svg { width: 0.95em; height: 0.95em; color: var(--ink); }

/* Plaque de banc : la scène maître, cotée comme un plan technique. */
.hero-visual {
  position: relative;
  display: grid;
  gap: 0;
  padding: clamp(1rem, 2vw, 1.7rem);
  background: var(--bench-1);
  border: var(--rule) solid var(--hair-2);
  border-radius: 2px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--spot-x, 62%) var(--spot-y, 20%),
    color-mix(in oklab, #fff 46%, transparent),
    transparent 62%
  );
  opacity: 0.7;
  mix-blend-mode: soft-light;
}

.bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--rule) solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.bench-head b { color: var(--ink); font-weight: 500; }

.demo-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border: var(--rule) solid var(--hair-2);
  border-radius: 2px;
  background: var(--bench-0);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.demo-shuffle svg { width: 0.95em; height: 0.95em; transition: transform var(--t-slow) var(--ease-out); }
.demo-shuffle:hover { background: var(--bench-2); border-color: var(--ink); }
.demo-shuffle:hover svg { transform: rotate(-180deg); }

/* Le bloc scène : cotes à gauche et dessous, image au centre. */
.demo-card {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 2.4rem;
  margin-top: clamp(0.9rem, 2vw, 1.4rem);
}

.dim-v {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.dim-v::before,
.dim-v::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--rule);
  background: var(--hair-2);
}

.dim-v::before { top: 0; height: calc(50% - 1.6rem); }
.dim-v::after { bottom: 0; height: calc(50% - 1.6rem); }

.dim-v b {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--bench-1);
  padding-block: 0.3rem;
}

.dim-h {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
}

.dim-h::before,
.dim-h::after {
  content: "";
  position: absolute;
  top: 50%;
  height: var(--rule);
  background: var(--hair-2);
}

.dim-h::before { left: 0; width: calc(50% - 3.4rem); }
.dim-h::after { right: 0; width: calc(50% - 3.4rem); }

.dim-h b {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bench-1);
  padding-inline: 0.45rem;
}

.demo-banner {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 20 / 7;
  background: var(--bench-2);
  border: var(--rule) solid var(--hair-2);
}

.demo-banner > .demo-landscape {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-color: var(--bench-2);
}

.demo-avatar {
  position: absolute;
  left: 4.2%;
  bottom: -17%;
  width: 21%;
  aspect-ratio: 1;
  border: 7px solid var(--bench-1);
  border-radius: 50%;
  overflow: hidden;
  z-index: var(--z-raised);
  box-shadow: 0 8px 24px -14px color-mix(in oklab, var(--ink) 70%, transparent);
}

.demo-avatar .demo-landscape {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-color: var(--bench-2);
}

.demo-landscape { transition: opacity var(--t-mid) var(--ease); }
.demo-card.showcase-changing .demo-landscape { opacity: 0.22; }

/* Repères de calage posés sur la plaque, autour du cadre. */
.reg-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  border: var(--rule) solid var(--ink);
  opacity: 0.5;
  pointer-events: none;
  z-index: var(--z-raised);
}

.reg-tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.reg-tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; }
.reg-bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; }
.reg-br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

.bench-foot {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
  padding-top: 0.75rem;
  border-top: var(--rule) solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.bench-foot .dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}

.bench-foot .dest-chip i {
  width: 8px;
  height: 8px;
  background: var(--dest);
}

.bench-foot .sep { flex: 1; min-width: 1rem; height: var(--rule); background: var(--hair); }

/* --------------------------------------------------- bandeau destinations */

/* Filets obtenus par le gap : le nombre de colonnes peut changer sans
   recalculer les bordures. */
.dest-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--bench-1);
  border: var(--rule) solid var(--hair-2);
}

.dest-strip > * {
  outline: var(--rule) solid var(--hair);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.8rem clamp(0.7rem, 1.4vw, 1.2rem);
  background: var(--bench-1);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dest-strip strong { color: var(--ink); font-weight: 500; }

/* Quand la bande sert de contenu de section (les outils sur l accueil), elle
   reprend l ecart des autres blocs. La bande du hero, qui ne suit pas de
   titre de section, garde son calage propre. */
.section-heading + .dest-strip { margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.dest-strip a {
  gap: 0.45rem;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.dest-strip a:hover { background: var(--bench-0); color: var(--ink); }
.dest-strip a svg { width: 13px; height: 13px; flex: none; }

/* ---------------------------------------------------------------- studio */

.studio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: end;
}

.studio-heading > p { margin-top: 0; }

/* Sélecteur de destination */
.platform-picker-wrap { margin-top: clamp(1.8rem, 3.5vw, 2.8rem); }

.platform-picker-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-2);
}

.platform-picker-label div { display: flex; gap: 0.5rem; }
.platform-picker-label em { font-style: normal; color: var(--on-slab-3); }
.platform-picker-label span { color: var(--on-slab); }

.platform-picker {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  border: var(--rule) solid var(--hair-slab-2);
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.platform-option {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.5rem;
  padding: 0.85rem 0.8rem 0.75rem;
  border-right: var(--rule) solid var(--hair-slab);
  color: var(--on-slab-2);
  text-align: left;
  scroll-snap-align: start;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.platform-option:last-child { border-right: 0; }

.platform-option-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: var(--rule) solid var(--hair-slab-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--on-slab-2);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.platform-option strong {
  font-size: var(--step--1);
  font-variation-settings: "wdth" 94, "wght" 600;
  letter-spacing: -0.015em;
}

.platform-option small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
  font-variant-numeric: tabular-nums;
}

.platform-option:hover { background: var(--slab-1); color: var(--on-slab); }

.platform-option.active { background: var(--slab-2); color: var(--on-slab); }
.platform-option.active small { color: var(--on-slab-2); }

.platform-option.active .platform-option-mark {
  background: var(--dest-fill);
  border-color: var(--dest-fill);
}

/* Glyphes Simple Icons : blancs sur la dalle, noirs sur le champ clair. */
.brand-glyph {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  object-fit: contain;
  opacity: 0;
  filter: brightness(0) invert(1);
  transition: opacity var(--t-mid) var(--ease), filter var(--t-mid) var(--ease);
}

.platform-option-mark.brand-loaded { font-size: 0; }
.platform-option-mark.brand-loaded .brand-glyph { opacity: 0.7; }
.platform-option:hover .platform-option-mark.brand-loaded .brand-glyph,
.platform-option.active .platform-option-mark.brand-loaded .brand-glyph { opacity: 1; }

/* Atelier */
.studio-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
  border: var(--rule) solid var(--hair-slab-2);
  background: var(--slab-0);
}

.studio-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    560px circle at var(--surface-x, 30%) var(--surface-y, 0%),
    color-mix(in oklab, var(--on-slab) 6%, transparent),
    transparent 60%
  );
}

/* minmax(0, 1fr) et non la colonne implicite `auto` : sinon la piste se
   dimensionne sur le max-content (nom de fichier long, titre de plateforme)
   et le contenu deborde la dalle. */
.preview-panel {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border-right: var(--rule) solid var(--hair-slab-2);
  min-width: 0;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: var(--rule) solid var(--hair-slab);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
}

.workspace-topbar > span { display: inline-flex; align-items: center; gap: 0.5rem; }

.workspace-topbar i {
  width: 6px;
  height: 6px;
  background: var(--dest);
  animation: pulse 2.6s var(--ease) infinite;
}

.workspace-topbar b { color: var(--on-slab-2); font-weight: 500; font-variant-numeric: tabular-nums; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

/* Rail de progression : segments, pas une frise décorative. */
.workspace-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-bottom: var(--rule) solid var(--hair-slab);
}

.workspace-rail span {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem clamp(0.9rem, 2vw, 1.4rem);
  border-right: var(--rule) solid var(--hair-slab);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
  transition: color var(--t-mid) var(--ease);
}

.workspace-rail span:last-child { border-right: 0; }

.workspace-rail span::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--dest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}

.workspace-rail span.complete { color: var(--on-slab-2); }
.workspace-rail span.complete::after { transform: scaleX(1); opacity: 0.4; }
.workspace-rail span.active { color: var(--on-slab); }
.workspace-rail span.active::after { transform: scaleX(1); }
.workspace-rail b { font-weight: 500; }
.workspace-rail i { font-style: normal; }

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(0.9rem, 2vw, 1.4rem) 0.9rem;
}

.panel-topline h3 {
  font-size: var(--step-2);
  font-variation-settings: "wdth" 94, "wght" 600;
}

.panel-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
  margin-bottom: 0.25rem;
}

.precision-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border: var(--rule) solid var(--hair-slab-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-2);
  white-space: nowrap;
}

.precision-badge i { width: 6px; height: 6px; background: currentColor; }
.precision-badge.exact { color: var(--on-slab); border-color: var(--on-slab-3); }
.precision-badge.responsive i { border-radius: 50%; }
.precision-badge.safe i { transform: rotate(45deg); }

/* Puits de contrôle */
.canvas-shell {
  position: relative;
  margin: 0 clamp(0.9rem, 2vw, 1.4rem);
  background: var(--slab-1);
  border: var(--rule) solid var(--hair-slab);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.canvas-shell.has-image:active { cursor: grabbing; }
.canvas-shell canvas { width: 100%; height: 100%; }
.canvas-shell.dragging-file { border-color: var(--dest); }

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--slab-1);
}

.empty-state.hidden { display: none; }

.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.35rem;
  border: var(--rule) dashed var(--hair-slab-2);
  color: var(--on-slab-2);
}

.empty-icon svg { width: 20px; height: 20px; }

.empty-state strong {
  font-size: var(--step-1);
  font-variation-settings: "wdth" 96, "wght" 600;
  color: var(--on-slab);
}

.empty-state > span {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
}

.empty-state .button { margin-top: 0.6rem; }

.empty-state small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

.drag-overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  background: color-mix(in oklab, var(--slab-0) 88%, transparent);
  border: 2px dashed var(--dest);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}

.drag-overlay.visible { opacity: 1; }
.drag-overlay svg { width: 26px; height: 26px; color: var(--on-slab); }
.drag-overlay strong { color: var(--on-slab); font-variation-settings: "wdth" 96, "wght" 600; }

.preview-instructions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  padding: 0.85rem clamp(0.9rem, 2vw, 1.4rem) clamp(0.9rem, 2vw, 1.3rem);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
}

.preview-instructions span { display: inline-flex; align-items: center; gap: 0.4rem; }
.preview-instructions svg { width: 0.95em; height: 0.95em; }

.preview-instructions a {
  margin-left: auto;
  color: var(--on-slab-2);
  border-bottom: var(--rule) solid var(--hair-slab-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.preview-instructions a:hover { color: var(--on-slab); border-bottom-color: var(--on-slab); }

/* Pile de réglages : des zones séparées par des filets, pas des cartes
   imbriquées dans une carte. */
.controls-panel {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
}

.controls-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem clamp(0.9rem, 2vw, 1.3rem);
  border-bottom: var(--rule) solid var(--hair-slab);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
}

.controls-topbar b { color: var(--on-slab-2); font-weight: 500; }

.control-block {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.3rem);
  border-bottom: var(--rule) solid var(--hair-slab);
}

.control-block:last-child { border-bottom: 0; }

.block-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.block-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: var(--rule) solid var(--hair-slab-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-2);
  flex: none;
}

.block-heading > div { flex: 1; min-width: 0; }

.block-heading small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

.block-heading h3 {
  font-size: var(--step-1);
  font-variation-settings: "wdth" 96, "wght" 600;
}

.png-pill {
  padding: 0.2rem 0.45rem;
  border: var(--rule) solid var(--hair-slab-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-2);
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border: var(--rule) solid var(--hair-slab-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.reset-button svg { width: 0.9em; height: 0.9em; }
.reset-button:hover:not(:disabled) { color: var(--on-slab); border-color: var(--on-slab); }
.reset-button:disabled { opacity: 0.4; cursor: not-allowed; }

.source-picker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem;
  border: var(--rule) solid var(--hair-slab-2);
  background: var(--slab-1);
  text-align: left;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.source-picker:hover { border-color: var(--on-slab-3); background: var(--slab-2); }

.source-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: var(--rule) solid var(--hair-slab);
  background: var(--slab-2) center / cover no-repeat;
  color: var(--on-slab-3);
}

.source-thumb svg { width: 16px; height: 16px; color: var(--on-slab-2); }
.source-thumb.has-image svg { display: none; }

.source-copy { flex: 1; min-width: 0; }

.source-copy strong {
  display: block;
  font-size: var(--step-0);
  font-variation-settings: "wdth" 100, "wght" 500;
  color: var(--on-slab);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Le picker s'assombrit au survol : on reste sur --on-slab-2, seul niveau
   qui tient 4.5:1 jusque sur --slab-2. */
.source-copy small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-2);
}

.source-picker .chevron { width: 16px; height: 16px; color: var(--on-slab-2); flex: none; }

.view-selector { border: 0; padding: 0; margin: 0 0 1rem; }

.view-selector legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

.view-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: var(--rule) solid var(--hair-slab-2);
}

.view-button {
  padding: 0.5rem 0.4rem;
  border-right: var(--rule) solid var(--hair-slab-2);
  font-size: var(--step--1);
  font-variation-settings: "wdth" 96, "wght" 500;
  color: var(--on-slab-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.view-button:last-child { border-right: 0; }
.view-button:hover { background: var(--slab-1); color: var(--on-slab); }
.view-button.active { background: var(--on-slab); color: var(--slab-0); font-variation-settings: "wdth" 96, "wght" 600; }

#viewPresetHint {
  margin-top: 0.45rem;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--on-slab-3);
}

.slider-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

.slider-label output { color: var(--on-slab); font-variant-numeric: tabular-nums; }

.range-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.45rem;
  color: var(--on-slab-3);
}

.range-row svg { width: 15px; height: 15px; flex: none; }

input[type="range"] {
  --range-progress: 0%;
  flex: 1;
  min-width: 0;
  height: 22px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--dest) 0 var(--range-progress),
    color-mix(in oklab, var(--on-slab) 20%, transparent) var(--range-progress) 100%
  );
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--dest) 0 var(--range-progress),
    color-mix(in oklab, var(--on-slab) 20%, transparent) var(--range-progress) 100%
  );
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 0;
  background: var(--on-slab);
  border: 0;
  transition: transform var(--t-fast) var(--ease);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--on-slab);
  border: 0;
}

input[type="range"]:hover::-webkit-slider-thumb { transform: scaleY(1.35); }
input[type="range"]:disabled { opacity: 0.4; cursor: not-allowed; }

.fit-note {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: var(--rule) solid var(--hair-slab);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--on-slab-3);
}

.fit-note svg { width: 15px; height: 15px; flex: none; margin-top: 0.15rem; }
.fit-note strong { color: var(--on-slab-2); font-variation-settings: "wdth" 100, "wght" 600; }

.export-files { display: grid; border: var(--rule) solid var(--hair-slab-2); }

.export-files > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-bottom: var(--rule) solid var(--hair-slab);
}

.export-files > div:last-child { border-bottom: 0; }

.file-shape {
  flex: none;
  border: var(--rule) solid var(--on-slab-3);
  background: var(--slab-1);
}

.banner-shape { width: 30px; height: 11px; }
.avatar-shape { width: 18px; height: 18px; border-radius: 50%; }

.export-files p { flex: 1; min-width: 0; }

.export-files strong {
  display: block;
  font-size: var(--step--1);
  font-variation-settings: "wdth" 100, "wght" 500;
  color: var(--on-slab);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-files small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

.file-status {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
  white-space: nowrap;
}

.file-status.ready { color: var(--on-slab); }

.button-export {
  --btn-bg: var(--dest-fill);
  --btn-fg: var(--dest-on);
  --btn-line: var(--dest-fill);
  width: 100%;
  margin-top: 0.8rem;
  transition: box-shadow var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.button-export span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  opacity: 0.78;
}

.button-export:hover:not(:disabled) { box-shadow: 3px 3px 0 0 var(--on-slab); }
.button-export:disabled { opacity: 0.35; cursor: not-allowed; }
.button-export.working { opacity: 0.7; cursor: progress; }

.separate-downloads {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.separate-downloads button {
  flex: 1;
  padding: 0.45rem 0.3rem;
  border: var(--rule) solid var(--hair-slab-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.separate-downloads button:hover:not(:disabled) { color: var(--on-slab); border-color: var(--on-slab); }
.separate-downloads button:disabled { opacity: 0.35; cursor: not-allowed; }
.separate-downloads i { width: var(--rule); height: 16px; background: var(--hair-slab-2); }

.privacy-strip {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
  padding: clamp(0.85rem, 2vw, 1.1rem) clamp(0.9rem, 2vw, 1.3rem);
  border: var(--rule) solid var(--hair-slab-2);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: var(--rule) solid var(--hair-slab-2);
  color: var(--on-slab);
}

.privacy-icon svg { width: 17px; height: 17px; }

.privacy-strip strong {
  display: block;
  font-size: var(--step-0);
  font-variation-settings: "wdth" 100, "wght" 600;
  color: var(--on-slab);
}

.privacy-strip p { font-size: var(--step--1); color: var(--on-slab-3); margin-top: 0.1rem; }

.privacy-strip > span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
  white-space: nowrap;
}

/* ----------------------------------------------------- répertoire formats */

.format-grid {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border: var(--rule) solid var(--hair-2);
  background: var(--bench-1);
}

.format-directory-head,
.format-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.8fr) 2.6rem;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.1rem);
  padding: 0 clamp(0.7rem, 1.6vw, 1.1rem);
}

.format-directory-head {
  padding-block: 0.6rem;
  border-bottom: var(--rule) solid var(--hair-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.format-directory-head span:first-child { grid-column: 1 / 3; }

.format-card {
  position: relative;
  width: 100%;
  padding-block: 0.75rem;
  border-bottom: var(--rule) solid var(--hair);
  text-align: left;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease);
}

.format-card:last-child { border-bottom: 0; }

.format-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--card-x, 50%) var(--card-y, 50%),
    color-mix(in oklab, var(--row) 16%, transparent),
    transparent 70%
  );
  transition: opacity var(--t-mid) var(--ease);
}

.format-card:hover { background: color-mix(in oklab, var(--row) 8%, var(--bench-1)); }
.format-card:hover::before { opacity: 1; }
.format-card.selected { background: color-mix(in oklab, var(--row) 17%, var(--bench-1)); }

.platform-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: var(--rule) solid var(--hair-2);
  background: var(--bench-0);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  transition: background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}

.platform-mark .brand-glyph { filter: brightness(0); }
.platform-mark.brand-loaded { font-size: 0; }
.platform-mark.brand-loaded .brand-glyph { opacity: 0.8; }

.format-card:hover .platform-mark,
.format-card.selected .platform-mark {
  background: var(--row-fill);
  border-color: var(--row-fill);
}

.format-card:hover .platform-mark .brand-glyph,
.format-card.selected .platform-mark .brand-glyph {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.format-name h3 {
  font-size: var(--step-1);
  font-variation-settings: "wdth" 94, "wght" 600;
}

.format-name p { font-size: var(--step--1); color: var(--ink-2); }

.format-dim {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.format-dim b { display: block; font-size: 0.6875rem; color: var(--ink-3); font-weight: 400; }

.format-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.format-state i { width: 6px; height: 6px; flex: none; background: currentColor; }
.format-state.exact { color: var(--ink); }
.format-state.responsive i { border-radius: 50%; background: none; border: 1px solid currentColor; }
.format-state.safe i { transform: rotate(45deg); }

.format-go {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  justify-self: end;
  border: var(--rule) solid var(--hair-2);
  color: var(--ink-2);
  transition: transform var(--t-mid) var(--ease-out), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.format-go svg { width: 14px; height: 14px; }
.format-card:hover .format-go { background: var(--row-fill); border-color: var(--row-fill); color: var(--row-on); transform: translateX(3px); }
.format-card.selected .format-go { background: var(--row-fill); border-color: var(--row-fill); color: var(--row-on); }

.format-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* -------------------------------------------------------------- workflow */

/* Vraie séquence : les numéros portent une information d'ordre. */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  padding: 0;
  list-style: none;
  border: var(--rule) solid var(--hair-2);
}

.how-steps li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border-right: var(--rule) solid var(--hair);
  background: var(--bench-1);
}

.how-steps li:last-child { border-right: 0; }

.how-steps li > span {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 0.3rem;
  border: var(--rule) solid var(--ink);
  color: var(--ink);
}

.step-icon svg { width: 17px; height: 17px; }

.how-steps h3 {
  margin-top: 0.4rem;
  font-size: var(--step-2);
  font-variation-settings: "wdth" 94, "wght" 600;
}

.how-steps p { font-size: var(--step-0); color: var(--ink-2); }

/* ------------------------------------------------------------ comparaison */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border: var(--rule) solid var(--hair-2);
}

.compare-cell {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border-right: var(--rule) solid var(--hair-2);
  background: var(--bench-1);
}

.compare-cell:last-child { border-right: 0; }
.compare-cell.is-good { background: var(--bench-0); }

.compare-cell > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.1rem;
  border-bottom: var(--rule) solid var(--hair);
}

.compare-cell h3 {
  font-size: var(--step-2);
  font-variation-settings: "wdth" 94, "wght" 600;
}

.compare-cell > header span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.compare-cell > p { font-size: var(--step-0); color: var(--ink-2); }

.diagram {
  display: grid;
  gap: 0.7rem;
  max-width: 420px;
  margin-bottom: 1.2rem;
}

.diagram-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.diagram-band,
.diagram-disc {
  position: relative;
  background: var(--bench-2) center / cover no-repeat;
  border: var(--rule) solid var(--hair-2);
}

.diagram-band { flex: 1; aspect-ratio: 20 / 7; }
.diagram-disc { width: 62px; height: 62px; border-radius: 50%; flex: none; overflow: hidden; }

.diagram-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* Méthode courante : deux recadrages sans repère commun. */
.is-bad .diagram-band { background-position: 18% 26%; }
.is-bad .diagram-disc { background-size: 240%; background-position: 84% 78%; }

/* Méthode PFPair : l'avatar est une fenêtre ouverte dans la même scène,
   donc la continuité est vraie par construction. */
.is-good .diagram-band { background-position: center 46%; }

.window-ring {
  position: absolute;
  left: 7%;
  bottom: 12%;
  width: 26%;
  aspect-ratio: 1;
  border: 2px solid var(--dest);
  border-radius: 50%;
}

.window-ring::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: var(--rule) dashed color-mix(in oklab, var(--ink) 40%, transparent);
  border-radius: 50%;
}

.compare-list {
  display: grid;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule) solid var(--hair);
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: var(--rule) solid var(--hair);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.compare-list li:last-child { border-bottom: 0; }
.compare-list svg { width: 14px; height: 14px; flex: none; color: var(--ink); }

.seo-metrics {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
  border-block: var(--rule) solid var(--hair-2);
}

.seo-metrics div {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.85rem clamp(0.9rem, 2vw, 1.6rem);
  border-right: var(--rule) solid var(--hair);
  white-space: nowrap;
}

.seo-metrics div:last-child { border-right: 0; }

.seo-metrics strong {
  font-family: var(--font-mono);
  font-size: var(--step-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.seo-metrics span { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-2); }

/* ------------------------------------------------------------------ offre */

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border: var(--rule) solid var(--hair-2);
}

.offer-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
}

.offer-free { background: var(--slab-0); color: var(--on-slab); }

.offer-free::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--surface-x, 50%) var(--surface-y, 0%),
    color-mix(in oklab, var(--dest) 22%, transparent),
    transparent 62%
  );
}

.offer-free > * { position: relative; z-index: var(--z-base); }

.offer-creator { background: var(--bench-1); }

.offer-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--rule) solid var(--hair-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.offer-free .offer-card-top { border-bottom-color: var(--hair-slab-2); color: var(--on-slab-2); }

.offer-free .offer-card-top strong {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 92, "wght" 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--on-slab);
}

.offer-card-top em { font-style: normal; color: var(--ink-3); }

.offer-card h3 {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 94, "wght" 600;
  max-width: 16ch;
}

.offer-card ul { display: grid; margin: 0; padding: 0; list-style: none; }

.offer-free li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-bottom: var(--rule) solid var(--hair-slab);
  font-size: var(--step-0);
  color: var(--on-slab-2);
}

.offer-free li:last-child { border-bottom: 0; }
.offer-free li svg { width: 15px; height: 15px; flex: none; color: var(--on-slab); }

.offer-card .button { justify-self: start; margin-top: 0.4rem; }

.creator-audience { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.creator-audience span {
  padding: 0.28rem 0.55rem;
  border: var(--rule) solid var(--hair-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
}

.offer-creator small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.offer-creator p { color: var(--ink-2); font-size: var(--step-0); }

/* ----------------------------------------------------------------- guides */

.resource-grid {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: var(--rule) solid var(--hair-2);
}

.resource-card {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(0.4rem, 1vw, 0.8rem);
  border-bottom: var(--rule) solid var(--hair);
  transition: background-color var(--t-fast) var(--ease), padding-left var(--t-mid) var(--ease-out);
}

.resource-card:hover { background: var(--bench-1); padding-left: clamp(0.9rem, 2vw, 1.5rem); }

.resource-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.resource-card h3 {
  font-size: var(--step-2);
  font-variation-settings: "wdth" 94, "wght" 600;
}

.resource-card p { font-size: var(--step-0); color: var(--ink-2); margin-top: 0.15rem; }

.resource-card strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.resource-card strong span { transition: transform var(--t-mid) var(--ease-out); }
.resource-card:hover strong span { transform: translateX(4px); }

.resource-card.featured { background: var(--bench-1); }
.resource-card.featured .resource-tag { color: var(--dest-fill); }

/* -------------------------------------------------------------------- faq */

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.4rem, 4vw, 4rem);
}

.faq-heading h2 {
  font-size: var(--step-4);
  font-variation-settings: "wdth" 94, "wght" 700;
}

.faq-heading p { margin-top: 0.9rem; color: var(--ink-2); max-width: 34ch; }

.faq-list { border-top: var(--rule) solid var(--hair-2); }
.faq-list details { border-bottom: var(--rule) solid var(--hair); }

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: var(--step-1);
  font-variation-settings: "wdth" 96, "wght" 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary span {
  position: relative;
  width: 13px;
  height: 13px;
  margin-left: auto;
  flex: none;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: var(--rule);
  background: var(--ink);
  transition: transform var(--t-mid) var(--ease);
}

.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0deg); }

.faq-list details p {
  padding-bottom: 1.1rem;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: var(--step-0);
  line-height: 1.62;
}


/* Le debordement du halo est borne par la dalle qui le porte, et non par la
   fenetre : body a bien overflow-x: hidden, mais html est en visible, et c'est
   la racine qui gouverne le defilement de la fenetre — le debordement
   s'echappait donc et rendait la page defilable de 600 px sur le cote.
   `clip` et non `hidden` : clip ne cree pas de conteneur de defilement, donc
   il ne casse ni les positions collantes ni les ancres a l'interieur. */
.slab {
  overflow-x: clip;
}

/* -------------------------------------------------------------- final cta */

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-block: clamp(2.8rem, 6vw, 5rem);

  /* Debordement du halo de chaque cote. La dalle qui porte ce bloc occupe
     toute la largeur de la fenetre, alors que le bloc lui-meme est limite a
     la colonne de contenu (--measure, 1440 px) : un halo en inset: 0 se
     coupait donc net sur les deux bords, et on voyait deux aretes verticales
     franches au milieu de la dalle. On l'etend au-dela, le debordement etant
     rogne par overflow-x: hidden deja pose sur body. */
  --cta-bleed: 45vw;

  /* Position de depart du halo, avant tout survol. En longueur et non en
     pourcentage : la valeur est reutilisee dans le repere du pseudo-element,
     bien plus large que le bloc, ou un pourcentage ne designerait plus le
     meme point. */
  --surface-x: 26rem;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--cta-bleed));
  pointer-events: none;
  /* --surface-x est mesure par visuals.js depuis le bord gauche du BLOC.
     Le pseudo-element commence --cta-bleed plus a gauche, d'ou le decalage. */
  background: radial-gradient(
    760px circle at calc(var(--surface-x) + var(--cta-bleed)) var(--surface-y, 50%),
    color-mix(in oklab, var(--dest) 20%, transparent),
    transparent 62%
  );
}

.final-cta > * { position: relative; z-index: var(--z-base); }

.final-cta h2 {
  font-size: var(--step-5);
  font-variation-settings: "wdth" 90, "wght" 800;
  letter-spacing: -0.042em;
  line-height: 0.94;
}

.final-cta h2 em {
  display: block;
  font-style: normal;
  font-variation-settings: "wdth" 90, "wght" 300;
  color: var(--on-slab-2);
}

.final-cta > div > span {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-slab-3);
}

.final-cta p { margin-top: 1.1rem; max-width: 48ch; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--slab-0);
  color: var(--on-slab-2);
  border-top: var(--rule) solid var(--hair-slab-2);
}

.site-footer .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
}

.site-footer .brand-logo .logo-plate { stroke: var(--on-slab); }
.site-footer .brand-logo .logo-knock { stroke: var(--on-slab); fill: var(--slab-0); }
.site-footer .brand-name { color: var(--on-slab); }

.footer-brand p { margin-top: 0.9rem; max-width: 40ch; font-size: var(--step--1); color: var(--on-slab-3); }

.footer-links { display: grid; align-content: start; gap: 0.5rem; }

.footer-links strong {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--on-slab-3);
  padding-bottom: 0.35rem;
  border-bottom: var(--rule) solid var(--hair-slab);
  margin-bottom: 0.25rem;
}

.footer-links a {
  font-size: var(--step--1);
  color: var(--on-slab-2);
  transition: color var(--t-fast) var(--ease);
}

.footer-links a:hover { color: var(--on-slab); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: var(--measure);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  border-top: var(--rule) solid var(--hair-slab);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--bench-1);
  border-radius: 2px;
  font-size: var(--step--1);
  font-variation-settings: "wdth" 100, "wght" 500;
  box-shadow: 0 12px 34px -18px color-mix(in oklab, var(--ink) 90%, transparent);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out);
}

.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; }
.toast.error { background: #a3231b; color: #fff; }

/* ------------------------------------------------------- pages editoriales */

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.seo-breadcrumbs a { color: var(--ink-2); border-bottom: var(--rule) solid var(--hair-2); }
.seo-breadcrumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.seo-breadcrumbs span + span::before { content: "/ "; color: var(--ink-3); }

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: end;
  padding-block: clamp(2rem, 4.5vw, 3.6rem) clamp(1.6rem, 3.5vw, 3rem);
}

.seo-hero h1 {
  font-size: var(--step-4);
  font-variation-settings: "wdth" 92, "wght" 800;
  letter-spacing: -0.038em;
}

.seo-hero h1 em {
  display: block;
  font-style: normal;
  font-variation-settings: "wdth" 92, "wght" 300;
  color: var(--ink-2);
}

.seo-hero-copy > p {
  margin-top: 1.2rem;
  max-width: 58ch;
  font-size: var(--step-1);
  color: var(--ink-2);
}

.seo-hero .hero-actions { margin-top: 1.6rem; }

.seo-updated {
  display: block;
  margin-top: 1.4rem;
  padding-top: 0.7rem;
  border-top: var(--rule) solid var(--hair-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

/* Plaque schematique de la page guide */
.seo-demo {
  position: relative;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  background: var(--bench-1);
  border: var(--rule) solid var(--hair-2);
}

.seo-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--rule) solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-2);
}

.seo-demo-top b { color: var(--ink); font-weight: 500; }

.seo-profile-diagram {
  position: relative;
  aspect-ratio: 20 / 7;
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.6rem, 3vw, 2.2rem);
  background: var(--bench-2) center / cover no-repeat;
  border: var(--rule) solid var(--hair-2);
}

.seo-avatar-diagram {
  position: absolute;
  left: 6%;
  bottom: -18%;
  width: 22%;
  aspect-ratio: 1;
  border: 6px solid var(--bench-1);
  border-radius: 50%;
  /* Continuite exacte, independante du viewport : l'origine border-box rend
     la zone de positionnement egale a 22% de la largeur du cadre, donc
     454.5% ramene l'image a la largeur exacte de la banniere, et 7.7% / 78.6%
     la recalent sur la position de l'avatar. */
  background: inherit;
  background-origin: border-box;
  background-size: 454.5% auto;
  background-position: 7.7% 78.6%;
  box-shadow: 0 8px 22px -14px color-mix(in oklab, var(--ink) 70%, transparent);
}

.seo-demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-top: 0.7rem;
  border-top: var(--rule) solid var(--hair);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.seo-demo-caption strong { color: var(--ink); font-weight: 500; }

/* Reponse rapide */
.seo-answer {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: var(--slab-0);
  color: var(--on-slab-2);
  border: var(--rule) solid var(--slab-0);
}

.seo-answer > span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-slab-3);
}

.seo-answer p { font-size: var(--step-1); line-height: 1.55; max-width: 78ch; }
.seo-answer strong { color: var(--on-slab); font-variation-settings: "wdth" 100, "wght" 600; }

.seo-content-section { padding-block: clamp(2rem, 4.5vw, 3.6rem); }

.seo-content-heading h2 {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 94, "wght" 700;
  max-width: 24ch;
}

.seo-prose { margin-top: 1.4rem; max-width: 72ch; }
.seo-prose > * + * { margin-top: 1rem; }

.seo-prose h3 {
  margin-top: 2rem;
  font-size: var(--step-2);
  font-variation-settings: "wdth" 96, "wght" 600;
}

.seo-prose p { color: var(--ink-2); line-height: 1.62; }
.seo-prose strong { color: var(--ink); font-variation-settings: "wdth" 100, "wght" 600; }

.seo-prose a {
  color: var(--ink);
  border-bottom: var(--rule) solid var(--hair-2);
  transition: border-color var(--t-fast) var(--ease);
}

.seo-prose a:hover { border-bottom-color: var(--ink); }

.seo-prose ul { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--rule) solid var(--hair); }

.seo-prose ul li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  padding: 0.6rem 0;
  border-bottom: var(--rule) solid var(--hair);
  color: var(--ink-2);
  line-height: 1.55;
}

.seo-prose ul li::before {
  content: "\2014";
  color: var(--ink-3);
  grid-row: 1 / span 2;
}

.seo-prose ul li strong { display: block; }

.seo-specs {
  width: 100%;
  border-collapse: collapse;
  border: var(--rule) solid var(--hair-2);
  background: var(--bench-1);
}

.seo-specs th,
.seo-specs td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: var(--rule) solid var(--hair);
  font-size: var(--step--1);
}

.seo-specs thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ink-3);
  border-bottom-color: var(--hair-2);
}

.seo-specs tbody tr:last-child td { border-bottom: 0; }
.seo-specs td:first-child { font-variation-settings: "wdth" 100, "wght" 600; }
.seo-specs td:nth-child(2) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.seo-specs td:last-child { color: var(--ink-2); }

.seo-source-note { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-3); }
.seo-source-note a { color: var(--ink-2); }

.seo-callout {
  padding: clamp(0.9rem, 2vw, 1.2rem);
  border: var(--rule) solid var(--hair-2);
  background: var(--bench-1);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}

.seo-faq .seo-prose { max-width: 78ch; }
.seo-faq details { border-bottom: var(--rule) solid var(--hair); margin-top: 0; }
.seo-faq .seo-prose > details:first-of-type { border-top: var(--rule) solid var(--hair-2); }

.seo-faq summary {
  padding: 0.9rem 0;
  font-size: var(--step-1);
  font-variation-settings: "wdth" 96, "wght" 600;
  cursor: pointer;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: " +"; color: var(--ink-3); font-family: var(--font-mono); }
.seo-faq details[open] summary::after { content: " \2212"; }
.seo-faq details p { padding-bottom: 1rem; margin-top: 0; }

.seo-related { padding-block: clamp(2rem, 4.5vw, 3.4rem); }

.seo-related h2 {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 94, "wght" 700;
}

.seo-related-grid { margin-top: 1.4rem; border-top: var(--rule) solid var(--hair-2); }

.seo-related-card {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(0.4rem, 1vw, 0.8rem);
  border-bottom: var(--rule) solid var(--hair);
  transition: background-color var(--t-fast) var(--ease), padding-left var(--t-mid) var(--ease-out);
}

.seo-related-card:hover { background: var(--bench-1); padding-left: clamp(0.9rem, 2vw, 1.4rem); }

.seo-related-card > span:first-child {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.seo-related-card h3 {
  font-size: var(--step-2);
  font-variation-settings: "wdth" 94, "wght" 600;
}

.seo-related-card p { font-size: var(--step-0); color: var(--ink-2); margin-top: 0.15rem; }

.seo-related-card em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .seo-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .seo-related-card { grid-template-columns: minmax(0, 1fr) auto; }
  .seo-related-card > span:first-child { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- motion */

/* Le contenu est visible par défaut : la révélation enrichit, elle ne
   conditionne pas l'affichage. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-slow) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--t-slow) var(--ease-out) var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .motion-ready .reveal-item { opacity: 1; transform: none; }
  .hero-visual::before { display: none; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .studio-shell { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); }
  .format-directory-head,
  .format-card { grid-template-columns: 2.8rem minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.85fr) 2.4rem; }
  .format-state { display: none; }
  .format-directory-head span:nth-child(4) { display: none; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-copy { max-width: 40rem; }
  .studio-heading { grid-template-columns: minmax(0, 1fr); }
  .studio-shell { grid-template-columns: minmax(0, 1fr); }
  .preview-panel { border-right: 0; border-bottom: var(--rule) solid var(--hair-slab-2); }
  .faq-section { grid-template-columns: minmax(0, 1fr); }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-free { border-bottom: var(--rule) solid var(--hair-2); }
  .final-cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .site-footer .shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto auto; row-gap: 0.5rem; }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .resource-card { grid-template-columns: minmax(0, 1fr) auto; }
  .resource-tag { grid-column: 1 / -1; }
  .how-steps li { border-right: 0; border-bottom: var(--rule) solid var(--hair); }
  .how-steps li:last-child { border-bottom: 0; }
  .compare-cell { border-right: 0; border-bottom: var(--rule) solid var(--hair-2); }
  .compare-cell:last-child { border-bottom: 0; }
  .dest-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .demo-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 2.2rem; }
  .dim-v { display: none; }
  .demo-banner { grid-column: 1; }
  .dim-h { grid-column: 1; }
  .demo-avatar { bottom: -14%; width: 24%; border-width: 5px; }
  .format-directory-head { display: none; }
  .format-card {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    grid-template-areas: "mark name go" ". dims dims";
    row-gap: 0.4rem;
  }
  .format-card .platform-mark { grid-area: mark; }
  .format-card .format-name { grid-area: name; }
  .format-card .format-go { grid-area: go; }
  .format-card .format-dim:first-of-type { grid-area: dims; display: flex; gap: 0.45rem; }
  .format-card .format-dim:first-of-type b { display: inline; }
  .format-card .format-dim:last-of-type { display: none; }
  .privacy-strip { flex-wrap: wrap; }
  .privacy-strip > span { margin-left: 0; width: 100%; }
  .seo-metrics div { flex: 1 1 40%; }
  .separate-downloads { flex-wrap: wrap; }
  .separate-downloads i { display: none; }
  .separate-downloads button { flex-basis: 100%; }
}

@media (max-width: 520px) {
  .hero-proof span { margin-right: 0.6rem; }
  .dest-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-cta { padding: 0 0.7rem; }
  .platform-picker-label { flex-wrap: wrap; gap: 0.15rem 0.6rem; }
  .platform-picker-label small { flex-basis: 100%; }
}

/* =================================================== langue et theme

   Deux commandes construites en JavaScript et inserees dans l'en-tete, pour
   ne pas avoir a modifier le balisage des vingt pages. Elles suivent la
   grammaire du banc : angles vifs, filets d'un pixel, aucune couleur propre —
   la seule chroma reste celle de la destination. */

.lang-switch { position: relative; }

.lang-current,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.6rem;
  border: var(--rule) solid var(--hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.theme-toggle { width: 34px; padding: 0; }
.theme-toggle svg { width: 16px; height: 16px; }

.lang-current:hover,
.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.lang-current:focus-visible,
.theme-toggle:focus-visible,
.lang-list button:focus-visible {
  outline: 2px solid var(--dest);
  outline-offset: 2px;
}

/* Le drapeau est un carre a bord net, pas une pastille : on est sur un banc
   d'essai, pas sur une barre d'application. */
.lang-flag {
  display: block;
  flex: none;
  width: 20px;
  height: 15px;
  border: var(--rule) solid var(--hair-2);
  overflow: hidden;
}

.lang-flag svg { display: block; width: 100%; height: 100%; }

.lang-list {
  position: absolute;
  z-index: var(--z-overlay);
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 0;
  border: var(--rule) solid var(--hair-2);
  background: var(--bench-1);
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.55);
}

.lang-list[hidden] { display: none; }

.lang-list button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--step--1);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.lang-list button + button { border-top: var(--rule) solid var(--hair); }
.lang-list button:hover { background: var(--bench-0); color: var(--ink); }

/* La langue active est marquee par un filet en couleur de destination sur son
   bord gauche — le seul endroit du site ou un filet lateral porte une
   information plutot qu'une decoration. */
.lang-list button.is-active {
  box-shadow: inset 3px 0 0 var(--dest);
  color: var(--ink);
  font-weight: 600;
}

/* Voile d'attente pendant le chargement du dictionnaire.
   L'animation le leve toute seule au bout de 600 ms : si le script echoue ou
   si le reseau tombe, la page se revele quand meme au lieu de rester vide. */
html[data-lang-loading] body { animation: i18n-revele 600ms steps(1, end) forwards; }
@keyframes i18n-revele { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html[data-lang-loading] body { animation: none; }
  .lang-current, .theme-toggle, .lang-list button { transition: none; }
}

@media (max-width: 720px) {
  .lang-current .lang-code { display: none; }
  .lang-current { width: 34px; padding: 0; }
}

/* Les commandes et l'appel a l'action partagent la troisieme colonne de la
   grille de l'en-tete. Sans ce regroupement, chaque bouton ajoute creait une
   ligne implicite et passait sous la navigation. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
