/* lab. — généré le 2026-12-02T02:56:35.443Z */
/* Marill.dev — colour tokens
   Source of truth: resources/css/app.css (@theme, Tailwind v4) + literal hexes
   used inline in the Blade views. OKLCH values are copied verbatim from the repo. */
:root{
  /* ---- Brand core (app.css @theme) ---- */
  --color-night: oklch(34.54% 0.199 267.97);        /* deep royal blue — hero field */
  --color-deep-night: oklch(22.16% 0.144 264.20);   /* near-black indigo — page floor */
  --color-sky: oklch(77.47% 0.121 247.97);          /* soft cyan-blue — "Transmettre" */
  --color-blouge: oklch(65.15% 0.188 277.48);       /* periwinkle violet — ACCENT + logo dot */
  --color-peach: oklch(79.55% 0.163 68.76);         /* warm amber — "Concevoir" */

  /* Literal hexes hard-coded in home-page.blade.php — keep them exact */
  --color-hero-blue: #2127BE;      /* hero background + <meta name="theme-color"> */
  --color-night-floor: #0E0A35;    /* gradient end / projects + contact sections */
  --color-glow-blue: #2025B3;      /* radial glow, mix-blend-color-dodge */
  --color-glow-pink: #FFCAEC;      /* radial glow, mix-blend-lighten */
  --color-glow-cyan: #92D9FF;      /* radial glow, mix-blend-hard-light */

  /* ---- Sakura (rose/magenta) — pivot #ffa9f5 at 300 ---- */
  --color-sakura-50:  oklch(97% 0.012 325);
  --color-sakura-100: oklch(94% 0.028 325);
  --color-sakura-200: oklch(89% 0.068 325);
  --color-sakura-300: oklch(83% 0.125 325);
  --color-sakura-400: oklch(74% 0.178 325);
  --color-sakura-500: oklch(64% 0.212 325);
  --color-sakura-600: oklch(54% 0.200 325);
  --color-sakura-700: oklch(45% 0.174 325);
  --color-sakura-800: oklch(37% 0.140 325);
  --color-sakura-900: oklch(29% 0.105 325);
  --color-sakura-950: oklch(20% 0.072 325);

  /* ---- Gold (warm amber) — pivot #ffbd7d at 300 ---- */
  --color-gold-50:  oklch(98% 0.016 68);
  --color-gold-100: oklch(95% 0.042 68);
  --color-gold-200: oklch(91% 0.092 68);
  --color-gold-300: oklch(84% 0.150 68);
  --color-gold-400: oklch(78% 0.180 68);
  --color-gold-500: oklch(70% 0.185 68);
  --color-gold-600: oklch(60% 0.170 68);
  --color-gold-700: oklch(51% 0.148 68);
  --color-gold-800: oklch(42% 0.118 68);
  --color-gold-900: oklch(34% 0.088 68);
  --color-gold-950: oklch(23% 0.058 68);

  /* ---- Neutrals — Tailwind zinc, the scale every Flux surface reads ---- */
  --color-zinc-50:  #fafafa;
  --color-zinc-100: #f4f4f5;
  --color-zinc-200: #e4e4e7;
  --color-zinc-300: #d4d4d8;
  --color-zinc-400: #a1a1aa;
  --color-zinc-500: #71717a;
  --color-zinc-600: #52525b;
  --color-zinc-700: #3f3f46;
  --color-zinc-800: #27272a;
  --color-zinc-900: #18181b;
  --color-zinc-950: #09090b;
  --color-white: #ffffff;

  /* ---- Accent (what Flux primary buttons, focus rings, checkboxes read) ---- */
  --color-accent: var(--color-blouge);
  --color-accent-content: var(--color-blouge);
  --color-accent-foreground: var(--color-zinc-50);

  /* ---- Semantic aliases — light surfaces (project pages, legal pages) ---- */
  --surface-page: var(--color-zinc-50);
  --surface-card: var(--color-white);
  --surface-nav: color-mix(in srgb, var(--color-zinc-100) 80%, transparent);
  --border-subtle: var(--color-zinc-200);
  --text-strong: var(--color-deep-night);
  --text-body: var(--color-zinc-700);
  --text-muted: var(--color-zinc-500);
  --text-link: var(--color-accent);

  /* ---- Semantic aliases — night surfaces (home / landing, .dark) ---- */
  --surface-night-page: var(--color-night-floor);
  --surface-night-card: rgba(255,255,255,0.10);
  --surface-night-raised: rgba(39,39,42,0.90);       /* bg-zinc-800/90 contact tiles */
  --border-night: rgba(255,255,255,0.10);
  --border-night-strong: var(--color-zinc-600);
  --text-night-strong: var(--color-white);
  --text-night-body: var(--color-zinc-300);
  --text-night-muted: var(--color-zinc-400);

  /* ---- Sakura-code rain palette (hero particles, sakura-code.js) ---- */
  --sakura-rain-1: #ff98f3;
  --sakura-rain-2: #ffbeda;
  --sakura-rain-3: #f569e1;
  --sakura-rain-4: #e040c8;
  --sakura-rain-gold: #ffd97d;
  --sakura-rain-cyan: #7df9ff;
}

/* Marill.dev — typography tokens
   The site sets html{font-size:12px}. Tailwind rem sizes therefore resolve to
   0.75x their usual px value; Flux components are re-scaled x4/3 by
   resources/css/flux-scale.css so they still read as a 16px-root UI.
   Everything below is written in ABSOLUTE PX so it is unambiguous. */
:root{
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Lato', ui-sans-serif, system-ui, sans-serif;
  --font-sans: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace; /* version tag in the footer */

  --root-font-size: 12px;   /* html{font-size:12px} — quirk of this codebase */

  /* Page-level scale (12px root) */
  --text-size-hero: 96px;        /* h1 lg:text-9xl — hero headline */
  --text-size-hero-md: 72px;     /* sm:text-7xl */
  --text-size-hero-sm: 60px;     /* text-6xl */
  --text-size-display: 48px;     /* .landing-page h2 lg:text-[4rem] */
  --text-size-display-sm: 30px;  /* .landing-page h2 base text-[2.5rem] */
  --text-size-page-title: 60px;  /* project + index h1 text-5xl */
  --text-size-h2: 27px;          /* .section-title lg:text-4xl */
  --text-size-h2-sm: 22.5px;     /* .section-title text-3xl */
  --text-size-h3: 24px;          /* .landing-page h3 text-[2rem] */
  --text-size-lead: 27px;        /* hero chips line lg:text-4xl */
  --text-size-lead-sm: 18px;     /* hero chips line text-2xl */
  --text-size-body-lg: 18px;     /* .landing-page p text-[1.5rem] */
  --text-size-body: 15px;        /* nav links, contact values text-xl */
  --text-size-sm: 12px;          /* flux text-base at 12px root */
  --text-size-xs: 10.5px;        /* text-sm — footer legal links */

  /* Component scale (Flux, re-scaled to a 16px root) */
  --text-size-ui-base: 14px;     /* button / badge / input text-sm */
  --text-size-ui-xs: 12px;       /* button size=xs, badge size=sm */

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;  /* hero h1 */
  --weight-black: 900;      /* contact section title */

  --leading-tight: 1.1;     /* section titles */
  --leading-snug: 1.25;     /* card titles */
  --leading-body: 1.75;     /* .prose-sakura p leading-7 */
  --leading-relaxed: 1.625;

  --tracking-normal: 0;
}

/* Marill.dev — spacing, layout & radii
   Page spacing uses Tailwind units at a 12px root (1 unit = 3px).
   Component spacing uses Flux's re-scaled 16px root (1 unit = 4px). */
:root{
  /* Page rhythm (12px root) */
  --space-1: 3px;
  --space-2: 6px;
  --space-3: 9px;
  --space-4: 12px;
  --space-5: 15px;
  --space-6: 18px;
  --space-8: 24px;
  --space-10: 30px;
  --space-12: 36px;
  --space-16: 48px;
  --space-20: 60px;
  --space-26: 78px;   /* py-26 — the standard vertical section padding */
  --space-30: 90px;

  /* Component rhythm (16px root, Flux) */
  --space-ui-1: 4px;
  --space-ui-2: 8px;
  --space-ui-3: 12px;
  --space-ui-4: 16px;
  --space-ui-6: 24px;

  /* Layout */
  --container-max: 1800px;    /* section / .conteneur max-width */
  --content-max: 1280px;      /* max-w-7xl inner column */
  --gutter-sm: 12px;          /* px-4 */
  --gutter-md: 30px;          /* sm:px-[2.5rem] */
  --gutter-lg: 60px;          /* lg:px-[5rem] */
  --nav-height: 84px;         /* py-6 + 36px logo at 12px root */
  --anchor-offset: 84px;      /* scroll-margin-top: 7rem */

  /* Radii — Flux scale */
  --radius-sm: 6px;           /* rounded-md — badge, small button */
  --radius-md: 8px;           /* rounded-lg — button base, contact tiles */
  --radius-lg: 12px;          /* rounded-xl — card */
  --radius-image: 6px;        /* rounded-md — cover image inside a card */
  --radius-full: 9999px;      /* avatar, pill badge */

  /* Borders */
  --border-width: 1px;
}

/* Marill.dev — motion tokens
   Two families: UI transitions (fast, ease, colour-only) and ambient loops
   (slow, infinite, decorative). Everything ambient is disabled under
   prefers-reduced-motion. */
:root{
  --duration-fast: 150ms; /* @kind other */
  --duration-base: 200ms; /* @kind other */
  --duration-slow: 300ms; /* @kind other */
  --duration-reveal: 600ms; /* @kind other */
  --stagger-reveal: 80ms; /* @kind other */

  --ease-out: cubic-bezier(0, 0, 0.2, 1);   /* @kind other */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */

  --hover-scale-cover: 1.05; /* @kind other */
  --tremble-duration-min: 6.7s; /* @kind other */
  --tremble-duration-max: 9.2s; /* @kind other */
  --scroll-bounce-duration: 1.8s; /* @kind other */
}
@keyframes marill-reveal{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes marill-scroll-bounce{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,0.6rem)}}
@keyframes marill-tremble{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(2px,-3px) rotate(1.4deg)}50%{transform:translate(-2px,2px) rotate(-0.9deg)}75%{transform:translate(3px,1px) rotate(0.7deg)}}
@media (prefers-reduced-motion: reduce){:root{--duration-reveal:0ms; /* @kind other */}}

/* ==========================================================================
   lab. — le carnet d'expériences
   Identité dérivée de la charte Marill.dev : on garde l'ADN (palette blouge /
   sakura / peach / sky, Bricolage Grotesque + Lato, le point du logo, les
   petites inclinaisons) et on le transpose sur du papier quadrillé.
   Les jetons --color-* et --font-* viennent du design system (concaténé avant).
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Papier & encre */
  --paper: #f7f5f0;
  --paper-card: #fffefb;
  --ink: var(--color-deep-night);
  --ink-soft: oklch(40% 0.075 266);
  --ink-faint: oklch(56% 0.045 266);
  --accent: var(--color-blouge);
  --accent-ink: oklch(52% 0.2 277);
  --hl: oklch(90% 0.075 325);
  --margin-line: oklch(83% 0.125 325 / 0.85);
  --grid: oklch(65% 0.188 277 / 0.15);
  --grid-fine: oklch(65% 0.188 277 / 0.07);
  --hole: #e6e1d6;
  --rule: oklch(22% 0.144 264 / 0.3);

  /* Scotch */
  --tape-1: var(--color-sakura-300);
  --tape-2: var(--color-sky);
  --tape-3: var(--color-peach);
  --tape-blend: multiply;
  --tape-alpha: 0.82;

  /* Tampons */
  --st-en-cours: var(--accent-ink);
  --st-stable: oklch(52% 0.13 248);
  --st-en-sommeil: var(--ink-faint);
  --st-archivee: var(--color-gold-700);
  --st-hors-ligne: var(--color-sakura-600);

  --shadow-photo: 0 1px 0 rgb(0 0 0 / 0.04), 0 18px 34px -22px rgb(14 10 53 / 0.45);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Mise en page : la marge rose du cahier sert de repère */
  --margin-x: 18px;
  --pad-l: 36px;
  --pad-r: 20px;
}
@media (min-width: 720px) { :root { --margin-x: 56px; --pad-l: 92px; --pad-r: 40px; } }
@media (min-width: 1100px) { :root { --margin-x: 108px; --pad-l: 144px; --pad-r: 72px; } }

/* Le carnet à la lampe */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100d33;
    --paper-card: #1a1648;
    --ink: #eef0ff;
    --ink-soft: #b8bbe8;
    --ink-faint: #8d91c6;
    --accent-ink: oklch(74% 0.15 277);
    --hl: oklch(55% 0.17 325 / 0.55);
    --margin-line: oklch(64% 0.212 325 / 0.6);
    --grid: oklch(77% 0.121 248 / 0.13);
    --grid-fine: oklch(77% 0.121 248 / 0.055);
    --hole: #08061f;
    --rule: oklch(90% 0.03 264 / 0.3);
    --tape-blend: normal;
    --tape-alpha: 0.62;
    --st-stable: oklch(80% 0.1 248);
    --st-archivee: var(--color-gold-300);
    --st-hors-ligne: var(--color-sakura-300);
    --shadow-photo: 0 18px 34px -20px rgb(0 0 0 / 0.75);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.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 {
  position: absolute; left: var(--pad-l); top: -60px; z-index: 100;
  font-family: var(--mono); font-size: 13px;
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Marge rose et trous de perforation */
.notebook { position: absolute; inset: 0 auto 0 0; width: calc(var(--margin-x) + 2px); pointer-events: none; z-index: 0; }
.notebook__margin { position: absolute; top: 0; bottom: 0; left: var(--margin-x); width: 2px; background: var(--margin-line); }
.notebook__holes { display: none; }
@media (min-width: 1100px) {
  .notebook__holes { display: flex; flex-direction: column; gap: 220px; position: absolute; left: 40px; top: 130px; }
  .notebook__holes i { width: 22px; height: 22px; border-radius: 50%; background: var(--hole); box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.14); }
}

/* Surligneur */
.hl { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.hl::before {
  content: ''; position: absolute; z-index: -1;
  left: -0.06em; right: -0.08em; bottom: 0.08em; height: 0.36em;
  background: var(--hl);
  border-radius: 0.04em 0.12em 0.05em 0.1em;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  animation: lab-highlight 700ms var(--ease-out) 250ms both;
}
@keyframes lab-highlight { from { transform: rotate(-1.5deg) scaleX(0); } to { transform: rotate(-1.5deg) scaleX(1); } }

/* ---------------------------------------------------------------- en-tête */
.top {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 28px var(--pad-r) 0 var(--pad-l);
}
.brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.brand__mark {
  display: inline-flex; align-items: flex-end;
  font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 0.8; letter-spacing: -0.045em;
  color: var(--ink);
}
/* Le point de Marill.dev devient le liquide d'un ballon penché, d'où remontent des bulles.
   Le liquide reste à l'horizontale ; seul le verre (et ce qu'il contient) pivote. */
.brand__flask { flex: none; height: 0.74em; width: auto; margin: 0 0 -0.01em 0.05em; overflow: visible; }
.flask__glass { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.flask__liquid { fill: var(--accent); }
.flask__bub {
  fill: none; stroke: var(--color-sakura-400); stroke-width: 1.4;
  transform: translateY(var(--rest, 0px)); /* position figée : footer, image de partage, animations coupées */
}
@media (prefers-reduced-motion: no-preference) {
  .brand__mark:not(.brand__mark--sm) .flask__bub { animation: lab-bub 4.5s cubic-bezier(0.45, 0, 0.75, 1) var(--d, 0s) infinite; }
}
@keyframes lab-bub {
  0% { transform: translate(0, 0); opacity: 0; }
  12%, 78% { opacity: 1; }
  100% { transform: translate(var(--dx, 0px), -27px); opacity: 0; }
}
.brand__sub { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding-bottom: 1px; }
@media (max-width: 560px) { .brand__sub { display: none; } }
.top__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--mono); font-size: 13px; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.top__nav b { color: var(--accent-ink); font-weight: 500; margin-right: 4px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; z-index: 1;
  display: grid; gap: 56px;
  padding: 72px var(--pad-r) 96px var(--pad-l);
}
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 560px; align-items: center; padding-top: 72px; }
}
.folio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 26px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.folio__tag { border: 1.5px solid var(--ink); color: var(--ink); padding: 3px 8px; border-radius: 4px; }
/* Signature Marill.dev au-dessus du titre : le PNG officiel, jamais redessiné */
.hero__sign { display: inline-block; margin: 0 0 30px; border-radius: 4px; transition: transform var(--duration-base) var(--ease-out); }
.hero__sign img { display: block; height: 30px; width: auto; }
.hero__sign:hover { transform: rotate(-1.5deg); }
.hero__sign:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (max-width: 560px) { .hero__sign img { height: 24px; } }
.hero h1 {
  margin: 0 0 34px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(76px, 13vw, 172px); line-height: 0.86; letter-spacing: -0.055em;
  color: var(--ink);
}
.lead { max-width: 560px; margin: 0 0 36px; font-size: 21px; line-height: 1.55; color: var(--ink-soft); }
.lead strong { color: var(--ink); }
@media (max-width: 560px) { .lead { font-size: 18px; } }

.ledger { width: 100%; max-width: 540px; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.ledger th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 0 12px 8px 0; border-bottom: 1.5px solid var(--ink); }
.ledger td {
  padding: 10px 12px 10px 0; border-bottom: 1px dashed var(--rule);
  font-family: var(--font-display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums;
}

/* Le tableau de liège... version scotch */
.hero__board { position: relative; display: grid; gap: 36px; justify-items: center; }
@media (min-width: 1100px) { .hero__board { display: block; height: 700px; } }

.shot {
  position: relative; margin: 0;
  width: min(100%, 420px);
  padding: 12px 12px 14px;
  background: var(--paper-card);
  box-shadow: var(--shadow-photo);
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--duration-base) var(--ease-out);
}
.shot:hover { transform: rotate(0deg); z-index: 3; }
.shot__photo { display: block; }
.shot__photo img, .shot__photo .placeholder {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border: 1px solid var(--rule);
}
.shot figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
}
.shot figcaption a { text-decoration: none; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot figcaption a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.shot figcaption b { font-weight: 700; }
.shot--1 { --rot: 2deg; --tape: var(--tape-1); }
.shot--2 { --rot: -2deg; --tape: var(--tape-2); justify-self: start; }
.shot--3 { --rot: 1deg; --tape: var(--tape-3); justify-self: end; }
@media (min-width: 1100px) {
  .shot { position: absolute; }
  .shot--1 { left: 110px; top: 0; width: 410px; }
  .shot--2 { left: 0; top: 300px; width: 360px; }
  .shot--3 { left: 250px; top: 440px; width: 300px; }
}
.shot__stamp { position: absolute; right: -14px; top: -26px; transform: rotate(8deg); }

.tape {
  position: absolute; z-index: 2; top: -15px; left: 50%;
  width: 112px; height: 30px; margin-left: -56px;
  background: var(--tape, var(--tape-1));
  opacity: var(--tape-alpha); mix-blend-mode: var(--tape-blend);
  transform: rotate(-3deg);
  clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.shot--2 .tape { left: 18%; transform: rotate(6deg); }
.shot--3 .tape { left: 72%; transform: rotate(-8deg); }

.annot {
  display: none;
  font-family: var(--mono); font-size: 13px; color: var(--accent-ink);
}
@media (min-width: 1100px) {
  .annot--latest { display: block; position: absolute; left: -128px; top: 96px; width: 120px; }
  .annot svg { position: absolute; left: 36px; top: 22px; width: 90px; height: 60px; }
}

/* ---------------------------------------------------------------- tampons */
.stamp {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; white-space: nowrap;
  color: var(--st, var(--ink));
  border: 2px solid currentColor; border-radius: 6px;
  background: color-mix(in oklab, var(--paper-card) 82%, transparent);
  transform: rotate(-4deg);
}
.stamp--en-cours { --st: var(--st-en-cours); }
.stamp--stable { --st: var(--st-stable); }
.stamp--en-sommeil { --st: var(--st-en-sommeil); border-style: dashed; }
.stamp--archivee { --st: var(--st-archivee); }
.stamp--hors-ligne { --st: var(--st-hors-ligne); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap;
}
.lang::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }

.placeholder {
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, transparent 0 9px, var(--grid) 9px 10px), var(--paper);
}
.placeholder span { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); background: var(--paper-card); padding: 2px 8px; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; z-index: 1; padding: 72px var(--pad-r) 96px var(--pad-l); }
.section__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.section__num {
  flex: none; margin: 6px 0 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  background: var(--paper);
}
.section h2 {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); line-height: 0.95; letter-spacing: -0.04em;
}
.section__sub { margin: 0; max-width: 620px; font-size: 18px; color: var(--ink-soft); }

/* Barre d'outils */
.toolbar { display: grid; gap: 18px; align-items: end; margin-bottom: 48px; }
@media (min-width: 1000px) { .toolbar { grid-template-columns: minmax(260px, 380px) 1fr auto; gap: 32px; } }
.search { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.search:focus-within { border-bottom-color: var(--accent); }
.search__label { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 18px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-faint); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  font-family: var(--mono); font-size: 13px;
  background: var(--paper-card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.tab[style]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.tab span { color: var(--ink-faint); }
.tab:hover { background: var(--hl); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tab[aria-pressed="true"] span { color: inherit; opacity: 0.7; }
.tab--reset { border-style: dashed; color: var(--ink-soft); }
.count { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }

/* Fiches */
.cards {
  display: grid; gap: 52px 36px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 12px;
  background: var(--paper-card);
  box-shadow: var(--shadow-photo);
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--duration-base) var(--ease-out);
}
.card:nth-child(3n + 1) { --rot: -1deg; --tape: var(--tape-1); }
.card:nth-child(3n + 2) { --rot: 0.8deg; --tape: var(--tape-2); }
.card:nth-child(3n) { --rot: -0.4deg; --tape: var(--tape-3); }
.card:nth-child(4n + 1) .tape { left: 30%; transform: rotate(4deg); }
.card:nth-child(4n + 3) .tape { left: 68%; transform: rotate(-6deg); }
.card:hover { transform: rotate(0deg); }
.card__photo { position: relative; }
.card__photo img, .card__photo .placeholder {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border: 1px solid var(--rule);
}
.card__stamp { position: absolute; right: 10px; bottom: -12px; }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 4px 4px; }
.card__num { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.12; letter-spacing: -0.02em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; }
.card__desc {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__desc--empty { font-style: italic; color: var(--ink-faint); }
.card__topics { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.card__meta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 12px;
}
.card__meta div { min-width: 0; }
.card__meta dt { color: var(--ink-faint); }
.card__meta dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__links { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-family: var(--mono); font-size: 13px; }
.card__go { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.card:hover .card__go { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.card__code { color: var(--ink-soft); text-underline-offset: 4px; }
.card__code:hover { color: var(--accent-ink); }

.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0; font-size: 18px; color: var(--ink-soft); }
.empty p { margin: 0; }

/* ---------------------------------------------------------------- protocole */
.protocol { display: grid; gap: 48px; }
@media (min-width: 1000px) { .protocol { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.steps__n {
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-ink);
}
.steps__kicker { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.steps h3 { margin: 2px 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.steps p { margin: 0; max-width: 520px; color: var(--ink-soft); }
.legend {
  position: relative; padding: 26px 22px 20px;
  background: var(--paper-card); box-shadow: var(--shadow-photo);
  transform: rotate(1deg);
  --tape: var(--tape-2);
}
.legend::before {
  content: ''; position: absolute; top: -15px; left: 50%; width: 112px; height: 30px; margin-left: -56px;
  background: var(--tape); opacity: var(--tape-alpha); mix-blend-mode: var(--tape-blend);
  transform: rotate(-3deg); clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.legend__title { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.legend__intro { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15px; color: var(--ink-soft); }
.legend li { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.legend .stamp { justify-self: start; }

.cta {
  margin-top: 88px; padding-top: 40px;
  border-top: 1.5px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px;
}
.cta p {
  margin: 0; max-width: 820px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.035em;
}
.cta .hl { white-space: normal; }
.cta .hl::before { animation: none; }
.cta__link {
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.cta__link:hover { color: var(--ink); }

/* ---------------------------------------------------------------- pied de page */
.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding: 26px var(--pad-r) 30px var(--pad-l);
  border-top: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
}
.foot p { margin: 0; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.brand__mark--sm { font-size: 22px; margin-right: 4px; }
.foot a { color: var(--ink); text-underline-offset: 4px; }
.foot a:hover { color: var(--accent-ink); }
.foot__sync { color: var(--ink-faint); }

/* ---------------------------------------------------------------- apparition */
.js .reveal { opacity: 0; translate: 0 16px; }
.js .reveal.is-visible {
  opacity: 1; translate: 0 0;
  transition: opacity var(--duration-reveal) var(--ease-out), translate var(--duration-reveal) var(--ease-out), transform var(--duration-base) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger-reveal)), calc(var(--i, 0) * var(--stagger-reveal)), 0ms;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl::before { animation: none; }
  .js .reveal { opacity: 1; translate: none; }
  .shot, .card { transition: none; }
}
