/* =========================================================
   PATCH 2026-05 — Awwwards moves
   - Sablier scroll-driven (sticky stage + grain qui descend)
   - Progress fil mono N0..N5
   - Magnetic CTAs, easings cinématiques, micro-interactions
   ========================================================= */

/* ---------- SABLIER SCROLL-DRIVEN ---------- */
/* Le track est haut (6 paliers × ~80vh). Le stage à l'intérieur
   est sticky → le sablier reste visible pendant qu'on scroll, et
   le JS lit la progression pour faire tomber le grain palier par
   palier. */
.sablier-scroll {
  /* override : la section ne padding plus en bas, le track gère */
  padding-bottom: 0;
}
.sablier-scroll .hg-scroll-track {
  position: relative;
  /* 6 paliers × 80vh + une marge sortie. Calé en clamp pour
     les petits viewports (paliers plus rapides à parcourir) */
  height: clamp(360vh, 480vh, 540vh);
}
.sablier-scroll .hg-sticky-stage {
  position: sticky;
  top: 64px;                                /* sous la nav */
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vh, 80px) 0;
  z-index: 2;
}
.sablier-scroll .hg-stage-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 28px);
}

/* Le grain en mode scroll-driven : suit en continu (pas de saute) */
.sablier-scroll .grain {
  transition: opacity 0.4s ease-out;
  /* top : piloté en pixels par le JS au scroll, pas de transition */
}

/* État "actif scroll" : le focus est piloté par le scroll, on lève
   le hover-only (sinon les hover désactivent le scroll-driven) */
.sablier-scroll .brick { transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.sablier-scroll .brick.active { transform: translateY(-2px) scale(1.015); }

/* Footer narratif — toujours dans le viewport en mode sticky */
.sablier-scroll .hg-footer {
  margin-top: 0;
  /* anim plus rapide pour suivre le rythme du scroll */
}
.sablier-scroll .hg-footer-num,
.sablier-scroll .hg-footer-text {
  transition: opacity 0.28s ease;
}

/* ---------- PROGRESS BAR — fil mono N0..N5 ---------- */
.hg-progress {
  position: relative;
  height: 24px;
  margin: 8px 0 4px;
  padding: 0 12px;  /* respiration aux extrêmes */
}
.hg-progress::before {
  content: '';
  position: absolute;
  left: 12px; right: 12px; top: 50%;
  height: 1px;
  background: var(--line-strong);
  transform: translateY(-50%);
  z-index: 1;
}
.hg-progress-fill {
  position: absolute;
  left: 12px; top: 50%;
  height: 1.5px;
  background: var(--accent);
  width: 0%;
  max-width: calc(100% - 24px);
  transform: translateY(-50%);
  transition: width 0.12s linear;
  z-index: 2;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hg-progress-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.hg-progress-marker[data-level="0"] { left: 12px; transform: translate(0, -50%); }
.hg-progress-marker[data-level="1"] { left: calc(12px + (100% - 24px) * 0.2); }
.hg-progress-marker[data-level="2"] { left: calc(12px + (100% - 24px) * 0.4); }
.hg-progress-marker[data-level="3"] { left: calc(12px + (100% - 24px) * 0.6); }
.hg-progress-marker[data-level="4"] { left: calc(12px + (100% - 24px) * 0.8); }
.hg-progress-marker[data-level="5"] { left: calc(100% - 12px); transform: translate(-100%, -50%); }
.hg-progress-marker em {
  display: inline-block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease-out);
}
.hg-progress-marker[data-passed="true"] em {
  color: var(--accent);
  border-color: var(--accent);
}
.hg-progress-marker[data-current="true"] em {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12);
}

/* En mode reduced-motion : on remplace le sticky scroll-driven par
   un layout statique normal (le sablier reste interactif au hover) */
@media (prefers-reduced-motion: reduce) {
  .sablier-scroll .hg-scroll-track { height: auto; }
  .sablier-scroll .hg-sticky-stage { position: relative; top: auto; min-height: 0; padding: 0; }
}

/* Mobile : le scroll-driven peut être lourd, on raccourcit le track
   et on garde l'interactivité tactile via hover touch */
@media (max-width: 720px) {
  .sablier-scroll .hg-scroll-track { height: clamp(360vh, 420vh, 480vh); }
  .sablier-scroll .hg-sticky-stage { padding: 24px 0; }
  .hg-progress-marker em { font-size: 8px; padding: 1px 4px; }
}

/* ---------- MAGNETIC CTAs (subtle pull on cursor approach) ---------- */
.btn, .nav-cta, .hg-footer-cta {
  will-change: transform;
}

/* ---------- TEXT REVEAL CINÉMATIQUE (lignes qui montent) ---------- */
.line-reveal {
  display: block;
  overflow: hidden;
}
.line-reveal > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.reveal.in .line-reveal > span { transform: translateY(0); }
.reveal.in .line-reveal:nth-child(2) > span { transition-delay: 0.12s; }
.reveal.in .line-reveal:nth-child(3) > span { transition-delay: 0.24s; }
.reveal.in .line-reveal:nth-child(4) > span { transition-delay: 0.36s; }

/* =========================================================
   CASEONE — DOSSIER CLASSIFIÉ
   - Tampons multiples rotés sur hero
   - Polaroids 6 enquêtes posés sur le bureau
   - Trombinoscope 12 agents
   - Texture kraft sur surfaces
   - Curseur loupe optionnel
   ========================================================= */

/* ---------- KRAFT TEXTURE — fond papier vieilli, marques d'usure ---------- */
[data-surface="caseone"] body::before {
  /* override — grain plus rugueux pour le papier dossier */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'><filter id='kraft'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 0 0.78  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23kraft)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}
[data-surface="caseone"] body::after {
  background:
    radial-gradient(ellipse 50% 35% at 25% 18%, rgba(228, 192, 121, 0.04), transparent 60%),
    radial-gradient(ellipse 45% 38% at 75% 72%, rgba(87, 23, 17, 0.05), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(11, 22, 32, 0.4), transparent 70%);
}

/* ---------- HERO CASEONE : tampons positionnés en absolute ---------- */
.hero-caseone {
  position: relative;
}
.hero-stamps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-stamps .stamp {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 14px;
  border-width: 2px;
  border-style: solid;
  white-space: nowrap;
  user-select: none;
  /* Effet "tamponné" : opacité variable + léger flou + saturation moindre */
  opacity: 0.78;
  filter: contrast(1.1) saturate(0.92);
  /* Animation discrète d'apparition décalée */
  animation: stampDrop 1.4s var(--ease-out) backwards;
}
.hero-stamps .stamp:nth-child(1) { animation-delay: 0.4s; }
.hero-stamps .stamp:nth-child(2) { animation-delay: 0.7s; }
.hero-stamps .stamp:nth-child(3) { animation-delay: 1.0s; }
.hero-stamps .stamp:nth-child(4) { animation-delay: 1.3s; }

.hero-stamps .stamp-bordeaux {
  color: var(--c-bordeaux);
  border-color: var(--c-bordeaux);
  background: color-mix(in srgb, var(--c-bordeaux) 12%, transparent);
}
[data-surface="caseone"] .hero-stamps .stamp-bordeaux {
  color: color-mix(in srgb, var(--c-bordeaux) 70%, var(--c-papier-warm));
  border-color: color-mix(in srgb, var(--c-bordeaux) 65%, var(--c-papier-warm));
  background: color-mix(in srgb, var(--c-bordeaux) 30%, transparent);
}
.hero-stamps .stamp-encre {
  color: var(--c-papier-warm);
  border-color: var(--c-papier-warm);
  background: color-mix(in srgb, var(--c-papier-warm) 10%, transparent);
}
[data-surface="caseone"] .hero-stamps .stamp-encre {
  color: var(--c-papier-warm);
  border-color: color-mix(in srgb, var(--c-papier-warm) 50%, transparent);
  background: transparent;
}
.hero-stamps .stamp-lg { font-size: 14px; padding: 12px 20px; border-width: 3px; }
.hero-stamps .stamp-sm { font-size: 9px; padding: 5px 10px; border-width: 1.5px; }

@keyframes stampDrop {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(2.2); filter: blur(6px); }
  60% { opacity: 0.9; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.94); filter: blur(0); }
  80% { opacity: 0.78; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.02); }
  100% { opacity: 0.78; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
}

@media (max-width: 720px) {
  .hero-stamps .stamp-lg { font-size: 11px; padding: 8px 14px; }
  .hero-stamps .stamp { font-size: 9px; padding: 5px 10px; }
}

/* ---------- POLAROIDS — 6 enquêtes posées sur le bureau ---------- */
.section-board {
  /* fond légèrement texturé pour la table */
  position: relative;
}
.polaroid-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 36px);
  padding: 32px 0 56px;
  position: relative;
}
@media (max-width: 980px) { .polaroid-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .polaroid-board { grid-template-columns: 1fr; gap: 36px; } }

.polaroid {
  --rot: 0deg;
  --tx: 0px;
  --ty: 0px;
  position: relative;
  background: var(--c-papier-warm);
  color: var(--c-encre);
  padding: 14px 14px 18px;
  border: 1px solid color-mix(in srgb, var(--c-encre) 8%, transparent);
  box-shadow:
    0 2px 0 rgba(11, 22, 32, 0.08),
    0 18px 36px -14px rgba(11, 22, 32, 0.45),
    0 6px 14px -8px rgba(11, 22, 32, 0.25);
  transform: rotate(var(--rot)) translate(var(--tx), var(--ty));
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), z-index 0s 0.05s;
  z-index: 1;
  cursor: pointer;
}
.polaroid:hover, .polaroid:focus-within {
  transform: rotate(0deg) translate(0, -8px) scale(1.03);
  box-shadow:
    0 4px 0 rgba(11, 22, 32, 0.10),
    0 32px 60px -18px rgba(11, 22, 32, 0.55),
    0 10px 22px -10px rgba(11, 22, 32, 0.35);
  z-index: 5;
  transition-delay: 0s;
}

/* Trombone SVG en haut */
.polaroid-clip {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 28px; height: 56px;
  background:
    linear-gradient(180deg, transparent 0 8px, color-mix(in srgb, var(--c-encre) 25%, transparent) 8px 9.5px, transparent 9.5px 10.5px, color-mix(in srgb, var(--c-encre) 25%, transparent) 10.5px 12px, transparent 12px 100%);
  pointer-events: none;
}
.polaroid-clip::before {
  content: '';
  position: absolute;
  top: 0; left: 6px;
  width: 16px; height: 18px;
  border: 1.5px solid color-mix(in srgb, var(--c-encre) 35%, transparent);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  background: transparent;
}
.polaroid-clip::after {
  content: '';
  position: absolute;
  top: 18px; left: 6px;
  width: 16px; height: 1.5px;
  background: color-mix(in srgb, var(--c-encre) 35%, transparent);
}

/* Photo placeholder — gradient + glyph thématique */
.polaroid-photo {
  aspect-ratio: 1;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c-encre) 92%, transparent), color-mix(in srgb, var(--c-encre) 70%, var(--c-graphite)));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  /* Effet photo argentique : grain + vignettage */
  box-shadow: inset 0 0 60px 8px rgba(0, 0, 0, 0.5);
}
.polaroid-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.polaroid-photo[data-domain="ai"]       { background: linear-gradient(145deg, #1d2730, #2f5d50); }
.polaroid-photo[data-domain="aiact"]    { background: linear-gradient(145deg, #2e3031, #571711); }
.polaroid-photo[data-domain="data"]     { background: linear-gradient(145deg, #19222b, #6f8f7a); }
.polaroid-photo[data-domain="cyber"]    { background: linear-gradient(145deg, #131a21, #8c530d); }
.polaroid-photo[data-domain="compliance"]{ background: linear-gradient(145deg, #1d2730, #2e3031); }
.polaroid-photo[data-domain="hr"]       { background: linear-gradient(145deg, #19222b, #2f5d50); }

.polaroid-glyph {
  font-family: var(--serif-display);
  font-stretch: 75%;
  font-weight: 380;
  font-size: clamp(60px, 8vw, 110px);
  color: var(--c-or);
  opacity: 0.85;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  position: relative; z-index: 2;
  line-height: 1;
}

.polaroid-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 9px;
  letter-spacing: 0.18em;
  margin: 4px 2px 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.polaroid-meta .mono { color: color-mix(in srgb, var(--c-encre) 60%, transparent); }
.polaroid-meta .polaroid-stamp {
  color: var(--c-bordeaux);
  border: 1px solid var(--c-bordeaux);
  padding: 2px 6px;
  background: color-mix(in srgb, var(--c-bordeaux) 5%, transparent);
}

.polaroid-caption {
  font-family: var(--type);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--c-encre);
  margin: 8px 4px 10px;
  text-align: center;
}
/* .polaroid-caption em — code mort (les <em> ont été remplacés par
   <span class="accent">). Override anti-italique dans 03-decorations.
   Conservé en stub au cas où un composant tiers remettrait des <em>. */
.polaroid-caption em {
  color: var(--c-bordeaux);
}
.polaroid-body {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--c-encre) 70%, transparent);
  margin: 0 4px;
}

/* ---------- TROMBINOSCOPE — 12 agents en fiches d'identité ---------- */
.trombi {
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-top: 1px solid var(--line-strong);
  padding-top: 32px;
}
.trombi-family {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px dashed var(--line);
}
@media (max-width: 820px) { .trombi-family { grid-template-columns: 1fr; gap: 18px; } }
.trombi-family:last-child { border-bottom: none; }

.trombi-family-head {
  display: flex; align-items: center; gap: 14px;
  align-self: start;
  padding-top: 4px;
}
.trombi-family-letter {
  font-family: var(--serif-display);
  font-stretch: 75%;
  font-weight: 380;
  font-size: 64px;
  line-height: 0.9;
  color: var(--accent);
  font-style: italic;
}
.trombi-family-name {
  font-family: var(--type);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.1;
}
[data-surface="caseone"] .trombi-family-name { font-family: var(--type); }
.trombi-family-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

.trombi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.agent-card {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.agent-card::before {
  /* trame d'identification "fiche" en haut */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line-strong);
}
.agent-card[data-role="critical"]::before { background: var(--accent); }
.agent-card[data-role="suspect"]::before { background: var(--c-bordeaux); }
.agent-card:hover {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.agent-portrait {
  width: 56px; height: 56px;
  background: linear-gradient(145deg, var(--c-graphite), color-mix(in srgb, var(--c-encre) 60%, var(--c-graphite)));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--type);
  font-size: 26px;
  font-weight: 400;
  color: var(--c-or);
  border: 1px solid color-mix(in srgb, var(--c-or) 25%, transparent);
  position: relative;
  overflow: hidden;
}
.agent-portrait::before {
  /* Halo lumière */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 30%, rgba(228, 192, 121, 0.18), transparent 70%);
  pointer-events: none;
}
.agent-card[data-role="critical"] .agent-portrait {
  border-color: var(--c-or);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-or) 30%, transparent);
}
.agent-card[data-role="suspect"] .agent-portrait {
  border-color: var(--c-bordeaux);
  background: linear-gradient(145deg, var(--c-encre), var(--c-bordeaux));
  color: var(--c-papier-warm);
}

.agent-info { padding-top: 2px; }
.agent-id {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}
.agent-name {
  font-family: var(--type);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
}
.agent-role {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-dim);
}

/* ---------- CURSEUR LOUPE sur sections d'enquête (CaseOne) ---------- */
[data-surface="caseone"] .polaroid-board,
[data-surface="caseone"] .trombi {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='13' cy='13' r='8' fill='none' stroke='%23e4c079' stroke-width='1.8'/><line x1='19' y1='19' x2='27' y2='27' stroke='%23e4c079' stroke-width='2' stroke-linecap='round'/><circle cx='13' cy='13' r='8' fill='rgba(228,192,121,0.08)'/></svg>") 13 13, auto;
}

/* ---------- HERO CASEONE — display caseone : ajustements ---------- */
[data-surface="caseone"] .hero-display {
  position: relative;
  z-index: 2;
}

/* =========================================================
   LINKZEN — LES HUMAINS (section founders)
   - Photos en duotone via SVG filter (chaque portrait sa palette)
   - Layout magazine : 2 portraits côte à côte
   - Hover : la photo passe en couleurs (filter: none + opacité)
   ========================================================= */
.section-founders {
  position: relative;
  /* Section qui respire — fond très légèrement décalé */
  background: color-mix(in srgb, var(--bg) 96%, var(--c-papier-warm));
}
:root[data-theme="dark"] .section-founders {
  background: color-mix(in srgb, var(--bg) 92%, var(--c-encre));
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  border-top: 1px solid var(--line-strong);
  padding-top: 48px;
}
@media (max-width: 820px) {
  .founders { grid-template-columns: 1fr; gap: 56px; }
}

.founder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-encre);
  isolation: isolate;
}
/* Grain argentique visible — trame photographique 35mm */
.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
/* Vignette argentique — assombrissement périphérique léger */
.founder-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 110% 110% at 50% 40%, transparent 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 2;
}
.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* N&B argentique : grayscale + contraste poussé + léger sépia papier */
  filter: grayscale(1) contrast(1.18) brightness(1.04) sepia(0.08);
  transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}
/* Override par-photo : Jérémy (Jeremy_Offic2.png 1560×1008 landscape) — son
   visage est dans la moitié GAUCHE de l'image. Avec aspect-ratio 4/5
   portrait + object-fit cover, il faut pousser fort vers la gauche
   (object-position 15% horizontal) pour ramener le visage au centre
   du cadre. 30% n'était pas assez. */
.founder-photo img[src*="Jeremy_Offic2"] {
  object-position: 15% 22%;
}
/* L'attribut data-mode reste pour rétro-compat mais n'agit plus
   sur le filter principal — on garde N&B uniforme (Awwwards 2026) */
.founder-photo[data-mode="forest"]    img,
.founder-photo[data-mode="bordeaux"]  img,
.founder-photo[data-mode="or"]        img {
  filter: grayscale(1) contrast(1.18) brightness(1.04) sepia(0.08);
}

.founder-photo:hover img,
.founder:hover .founder-photo img {
  filter: grayscale(0.05) contrast(1.05) brightness(1) sepia(0);
  transform: scale(1.02);
}

/* Marque d'identification en bas à droite — initiales façon archive */
.founder-photo-mark {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-or);
  background: color-mix(in srgb, var(--c-encre) 75%, transparent);
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--c-or) 35%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.founder-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-top: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
}
.founder-meta .mono { color: var(--ink-mute); }
.founder-meta .founder-meta-ref { color: var(--accent); }

.founder-name {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 540;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.97;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-top: 6px;
}
/* .founder-name em — code mort (les <em> ont été remplacés par
   <span class="accent">). Conservé en stub. */
.founder-name em {
  color: var(--brand);
}

.founder-role {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-top: 4px;
}

.founder-bio {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 48ch;
}
.founder-bio strong { color: var(--ink); font-weight: 500; }

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.founder-tags li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-mute);
  transition: color 0.25s, border-color 0.25s;
}
.founder:hover .founder-tags li {
  border-color: var(--accent);
  color: var(--accent);
}

/* Fallback : si le navigateur ne supporte pas SVG filters bien (rare),
   on a un fallback en grayscale + sepia qui reste cohérent */
@supports not (filter: url(#duotone-forest)) {
  .founder-photo img { filter: grayscale(1) sepia(0.4) hue-rotate(80deg) saturate(0.9); }
}

/* =========================================================
   PHOTOS FOUNDERS — MASK-REVEAL cinétique au scroll
   ---------------------------------------------------------
   À l'entrée de la section humains, les photos se révèlent par
   un masque clip-path inset latéral (de droite vers gauche),
   façon "porte qui s'ouvre". Délai différent par fondateur.
   En parallèle, un léger zoom 1.06 → 1.0 donne le sentiment
   de "stabilisation" de l'image.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .section-founders .founder-photo {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .section-founders .founder-photo img {
    transform: scale(1.08);
    transition:
      transform 2s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.8s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  }

  /* Premier fondateur : démarre tôt après l'ouverture de la section */
  .section-founders.is-mask-open .founder:nth-child(1) .founder-photo {
    clip-path: inset(0 0 0 0);
    transition-delay: 0.2s;
  }
  .section-founders.is-mask-open .founder:nth-child(1) .founder-photo img {
    transform: scale(1.0);
    transition-delay: 0.2s;
  }

  /* Deuxième fondateur : décalé pour donner un rythme staccato */
  .section-founders.is-mask-open .founder:nth-child(2) .founder-photo {
    clip-path: inset(0 0 0 0);
    transition-delay: 0.55s;
  }
  .section-founders.is-mask-open .founder:nth-child(2) .founder-photo img {
    transform: scale(1.0);
    transition-delay: 0.55s;
  }
}

/* Hover : ressort en couleurs + zoom subtil supplémentaire (override anim) */
.section-founders .founder-photo:hover img,
.section-founders .founder:hover .founder-photo img {
  transform: scale(1.04);
  transition-delay: 0s;
}

/* Sur la section humains, on retire le data-section-reveal global mask
   pour ne pas avoir un double rideau (le mask des photos est plus signature) */
.section-founders[data-section-reveal] {
  clip-path: none !important;
  opacity: 1 !important;
}

/* =========================================================
   ACCESSIBILITY — couverture étendue pour les nouvelles anims
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Tampons hero : pas d'animation drop, juste opacité finale */
  .hero-stamps .stamp { animation: none; opacity: 0.78; }

  /* Polaroids : pas de tilt 3D, juste lift discret au hover */
  .polaroid:hover, .polaroid:focus-within {
    transform: rotate(0deg);  /* annule la rotation, pas de scale */
  }
  /* Photos founders : pas de zoom au hover */
  .founder-photo:hover img,
  .founder:hover .founder-photo img { transform: none; }

  /* Sablier scroll-driven : déjà géré plus haut (track auto, sticky désactivé),
     ajout : grain reste statique */
  .sablier-scroll .grain { transition: none; }
}

/* Focus visible — accessibilité clavier */
.btn:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
.hg-footer-cta:focus-visible,
.brick:focus-visible,
.theme-toggle:focus-visible,
.polaroid:focus-visible,
.agent-card:focus-visible,
.founder-photo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0;
}

/* Skip link à la première tab — pas de saut intempestif sur les pages denses */
.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;
}

/* =========================================================
   TYPO 2026 — Override Instrument Serif (sans axes wdth)
   Les chiffres ornementaux et glyphes restent sur Instrument
   Serif (--serif-display) ; on neutralise les font-stretch
   hérités du système Fraunces qui produiraient un synthétique
   moche, et on laisse la chasse naturelle haute/étroite.
   ========================================================= */
.spec .v,
.bar-num,
.vm-num,
.bignum .num,
.diag-circle .core,
.split-side .roman,
.axis-cell .roman,
.hg-footer-num,
.polaroid-glyph,
.trombi-family-letter {
  font-stretch: 100%;
  font-variation-settings: normal;
}

/* Italiques éditoriaux — assurer la rondeur/fragilité Instrument */
.hg-footer-num,
.trombi-family-letter,
.h2,
.h2 .accent {
  font-feature-settings: "ss01", "calt";
}

/* Body global — Geist a un axe wght 300-700, on évite les bold abrupts */
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss03";   /* alternates Geist propres */
}

/* Mono UI — Space Mono : on resserre le tracking par défaut
   (Space Mono est plus large que JetBrains Mono natif) */
.mono,
.spec .k,
.spec .k::after,
.spec .d,
.bar-tag,
.mod-id,
.bignum .head,
.principle .head,
.doc-row .doc-id,
.doc-row .doc-label,
.brand-mark,
.brand-sub,
.nav-links a,
.nav-cta,
.nav-status,
.footer-bot,
.footer-col h5,
.casefile-head .mono,
.divider,
.hg-eyebrow,
.hg-col-h,
.brick .sub,
.brick .tag,
.hg-footer-cta,
.hg-progress-marker em,
.hero-stamps .stamp,
.polaroid-meta .mono,
.polaroid-meta .polaroid-stamp,
.trombi-family-sub,
.agent-id,
.founder-meta .mono {
  letter-spacing: 0.14em;   /* descend de 0.18-0.22em → plus contemporain */
}

/* Eyebrows : moins claviers-IA, plus presse */
.mod-id,
.principle .head,
.bignum .head,
.spec .k,
.doc-row .doc-id {
  letter-spacing: 0.16em;
}

/* =========================================================
   CURSEUR CUSTOM — point doré + ring qui scale sur interactifs
   - Accompagne le curseur natif (pas de cursor: none global)
   - Désactivé sur tactile et prefers-reduced-motion
   - Sur CaseOne, le ring devient loupe (cf. règles existantes)
   ========================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  /* mix-blend-mode pour la lisibilité sur fonds clairs et sombres */
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--c-or);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--c-or);
  background: transparent;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease-out),
              width 0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out);
}
/* Scale + couleur sur éléments interactifs */
.cursor-ring.is-link {
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--c-or) 8%, transparent);
}
.cursor-ring.is-grab {
  width: 64px; height: 64px;
  border-color: var(--c-bordeaux);
}
/* État pressé : contraction */
.cursor-ring.is-pressed { width: 22px; height: 22px; }

/* Activation : visible quand JS l'a positionné */
.cursor-dot.is-active,
.cursor-ring.is-active { opacity: 1; }

/* On désactive notre curseur custom sur tactile / reduced-motion */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================
   SECTION DARK — bascule de fond pour rythmer la lecture
   - Une section locale en encre profonde au milieu de la page
     claire (LinkZen home : le Manifeste)
   - Inverse les variables locales pour que tout le contenu
     hérite proprement
   ========================================================= */
.section-dark {
  background: var(--c-encre);
  color: var(--c-papier-warm);
  --bg: var(--c-encre);
  --bg-soft: #131a21;
  --bg-raised: #19222b;
  --bg-paper: #1d2730;
  --ink: var(--c-papier-warm);
  --ink-dim: #b8b09c;
  --ink-mute: #7a7160;
  --line: rgba(232, 221, 200, 0.10);
  --line-strong: rgba(232, 221, 200, 0.22);
  --display-acc: var(--c-vert-sauge);   /* en dark, l'accent passe en sauge */
  --h2-italic: var(--c-vert-sauge);
  --brand: var(--c-vert-sauge);
  position: relative;
}
/* Filets de transition entrée/sortie — le passage clair → sombre est
   accentué par un trait or fin sur les bordures haute/basse */
.section-dark::before,
.section-dark::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-or) 40%, var(--c-or) 60%, transparent);
  opacity: 0.4;
  z-index: 3;
}
.section-dark::before { top: 0; }
.section-dark::after  { bottom: 0; }

/* Contre-correction : le bg::before grain papier doit s'adapter */
.section-dark { z-index: 2; }

/* =========================================================
