/* ═══════════════════════════════════════════════════════════════════════
   VITACURA.soft — feuille de style principale
   Direction : brutaliste éditorial, cream paper, vermillon
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────── 1. TOKENS ─────────────── */
:root {
  /* couleurs */
  --c-paper:     #EFEAE0;          /* fond cream */
  --c-paper-2:   #E6DFD0;          /* cream foncé pour zones secondaires */
  --c-ink:       #0A0A0A;          /* noir presque pur */
  --c-ink-soft:  #2A2724;          /* noir adouci */
  --c-muted:     #8A857A;          /* gris technique */
  --c-rule:      #1F1B16;          /* trait fin */
  --c-accent:    #E63E11;          /* vermillon — vita */
  --c-accent-2:  #C53005;          /* vermillon sombre */

  /* typo */
  --f-display:   "Fraunces", "Times New Roman", Georgia, serif;
  --f-sans:      "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono:      "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* layout */
  --gutter:      clamp(20px, 3vw, 48px);
  --rule:        1px solid var(--c-ink);
  --rule-thick:  2px solid var(--c-ink);

  /* easing & durée */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─────────────── 2. RESET ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;            /* défense globale contre le scroll horizontal */
}
body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* clip > hidden : ne crée pas de scroll context */
  width: 100%;
  max-width: 100vw;
}
/* Garantie globale : aucune media/SVG/élément ne peut casser la largeur du parent. */
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
/* Pour les blocs de texte éditoriaux, on autorise la rupture en dernier recours
   si jamais un mot dépasse la largeur disponible (URL, mot long, etc.). */
h1, h2, h3, h4, p { overflow-wrap: break-word; word-break: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--c-accent); color: var(--c-paper); }

/* utilitaires */
.mono { font-family: var(--f-mono); }
.lc   { text-transform: lowercase; letter-spacing: 0; }

/* ─────────────── 3. GRAIN OVERLAY ─────────────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ─────────────── 4. CURSOR ─────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
}
.cursor__dot,
.cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--c-paper);
}
.cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid var(--c-paper);
  transition: width 220ms var(--ease-out), height 220ms var(--ease-out),
              background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  background: var(--c-accent);
  border-color: var(--c-accent);
  mix-blend-mode: normal;
}
@media (max-width: 768px), (pointer: coarse) {
  .cursor { display: none; }
}

/* ─────────────── 5. TOP BAR ─────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--c-paper) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar__cell--left   { justify-self: start; }
.topbar__cell--center { justify-self: center; }
.topbar__cell--right  {
  justify-self: end;
  display: flex; gap: 16px; align-items: center;
}

.status { display: inline-flex; align-items: center; gap: 8px; }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 var(--c-accent);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-accent) 0%, transparent); }
}

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;          /* le wordmark ne doit JAMAIS wrapper */
}
.wordmark__main, .wordmark__soft { overflow-wrap: normal; }
.wordmark__main { color: var(--c-ink); }
.wordmark__soft {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--c-accent);
  margin-left: 1px;
  font-variation-settings: "SOFT" 100, "opsz" 14;
}

.meta { color: var(--c-ink-soft); }
.meta--muted { color: var(--c-muted); }

/* ─────────────── 6. HERO ─────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* padding adaptatif : laisse de la place pour topbar + respire en bas */
  padding: clamp(80px, 11vh, 120px) var(--gutter) clamp(48px, 8vh, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__rail {
  position: absolute;
  top: clamp(80px, 12vh, 120px);
  bottom: clamp(48px, 8vh, 88px);
  width: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  pointer-events: none;
}
.hero__rail--left  { left: 14px;  border-left:  var(--rule); padding-left: 8px; align-items: flex-start; }
.hero__rail--right { right: 14px; border-right: var(--rule); padding-right: 8px; align-items: flex-end;  }
.rotate90 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
}
.rotate90--rev { transform: rotate(0deg); writing-mode: vertical-rl; }

.hero__inner {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;                 /* indispensable pour ne pas pousser le parent flex */
  position: relative;           /* ancre pour le glyphe absolu */
}

/* ─────────── COLONNE DROITE DU HERO ───────────
   Wrapper qui contient le scribe + le bon de commande, empilés
   verticalement. Composition A "Le carnet d'atelier". */
.hero__rightcol {
  position: absolute;
  top: clamp(48px, 7vh, 92px);
  right: 0;
  width: clamp(320px, 32vw, 520px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
  transform-origin: top right;
  scale: var(--rightcol-scale, 1);
}

/* ─────────── SCRIBE — calligraphie en direct (SVG) ───────────
   Une plume invisible trace chaque mot via stroke-dashoffset,
   puis l'encre remplit, puis hold, puis fade. Cycle infini. */
.hero__scribe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.52;
  border: var(--rule);
  background: var(--c-paper);
  overflow: hidden;
  isolation: isolate;
  font-family: var(--f-mono);
  color: var(--c-ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Header + footer */
.hero__scribe-head,
.hero__scribe-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  z-index: 2;
}
.hero__scribe-head { border-bottom: var(--rule); }
.hero__scribe-foot { border-top: var(--rule); }

.scribe-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scribe-meta--accent { color: var(--c-accent); }
.scribe-meta--right  { color: var(--c-muted); }

/* Pointe de plume vermillon qui pulse — signature du scribe */
.scribe-nib {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--c-accent);
  transform: rotate(45deg);
  margin-right: 4px;
  animation: scribe-nib-pulse 1.2s ease-in-out infinite;
}
@keyframes scribe-nib-pulse {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) scale(0.9); }
  50%      { opacity: 1;   transform: rotate(45deg) scale(1.1); }
}

/* Scène : zone où la plume écrit */
.hero__scribe-stage {
  position: relative;
  overflow: hidden;
  /* deux fines lignes de cahier (haut + bas), subtiles */
  background-image:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 22%,
      color-mix(in srgb, var(--c-ink) 5%, transparent) 22%,
      color-mix(in srgb, var(--c-ink) 5%, transparent) calc(22% + 1px),
      transparent calc(22% + 1px),
      transparent 78%,
      color-mix(in srgb, var(--c-ink) 5%, transparent) 78%,
      color-mix(in srgb, var(--c-ink) 5%, transparent) calc(78% + 1px),
      transparent calc(78% + 1px),
      transparent 100%);
}

/* SVG mot : occupe toute la scène, anime sa propre opacité */
.word-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  overflow: visible;
  animation-name: word-life;
  animation-duration: 4200ms;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* Le texte SVG : stroke calligraphique → fill encre */
.word-svg text {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: 180px;
  letter-spacing: -3px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  fill: transparent;
  stroke: var(--c-ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  animation-name: scribe-write, scribe-fill;
  animation-duration: 2200ms, 600ms;
  animation-delay: 0ms, 2000ms;
  animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1), ease-out;
  animation-fill-mode: forwards, forwards;
}
/* Le point final : tracé puis fill vermillon (signature .soft) */
.word-svg .dot {
  fill: transparent;
  stroke: var(--c-accent);
  animation-name: scribe-write, scribe-fill-accent;
  animation-duration: 2200ms, 600ms;
  animation-delay: 0ms, 2000ms;
  animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1), ease-out;
  animation-fill-mode: forwards, forwards;
}

@keyframes scribe-write       { to { stroke-dashoffset: 0; } }
@keyframes scribe-fill        { to { fill: var(--c-ink); } }
@keyframes scribe-fill-accent { to { fill: var(--c-accent); } }
@keyframes word-life {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Hover : pause */
.hero__scribe-wrap:hover .word-svg,
.hero__scribe-wrap:hover .word-svg text,
.hero__scribe-wrap:hover .word-svg .dot { animation-play-state: paused; }

/* Corners brutalistes "+" */
.hero__scribe-corner {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--c-accent);
  pointer-events: none;
  z-index: 3;
  user-select: none;
}
.hero__scribe-corner--tl { top: 4px;    left: 4px; }
.hero__scribe-corner--tr { top: 4px;    right: 4px; }
.hero__scribe-corner--bl { bottom: 4px; left: 4px; }
.hero__scribe-corner--br { bottom: 4px; right: 4px; }

/* MOBILE — colonne droite repasse en flow naturel sous le bloc texte */
@media (max-width: 900px) {
  .hero__rightcol {
    position: static;
    width: 100%;
    margin-top: clamp(28px, 5vh, 48px);
    gap: 16px;
  }
  /* Le hero n'est plus contraint à 100vh : il grandit avec le contenu */
  .hero {
    min-height: auto;
  }
  /* Scribe : un peu plus ramassé en mobile pour ne pas bouffer 2 écrans */
  .hero__scribe-wrap { aspect-ratio: 1 / 0.55; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .hero__rightcol { width: clamp(300px, 28vw, 440px); --rightcol-scale: 0.78; }
  .hero__scribe-wrap { aspect-ratio: 1 / 0.55; }
}

/* ─────────── MÉTHODE — process 3 étapes ─────────── */
.hero__process {
  position: relative;
  width: 100%;
  border: var(--rule);
  background: var(--c-paper);
  font-family: var(--f-sans);
  color: var(--c-ink);
  padding: 14px 20px 18px;
}
.process__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: var(--rule);
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.process__title { color: var(--c-ink); font-weight: 500; }
.process__nobullshit {
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: 2px 6px;
  letter-spacing: 0.18em;
}
.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process__step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dotted color-mix(in srgb, var(--c-ink) 18%, transparent);
}
.process__step:last-child { border-bottom: none; padding-bottom: 0; }
.process__num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}
.process__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.process__action {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  font-variation-settings: "opsz" 24, "SOFT" 40;
}
.process__action em {
  color: var(--c-accent);
  font-variation-settings: "opsz" 24, "SOFT" 100;
}
.process__detail {
  font-size: 12px;
  line-height: 1.45;
  color: var(--c-ink-soft);
  max-width: 38ch;
}

/* ─────────── BON DE COMMANDE — fiche papier brutaliste ─────────── */
.hero__ordersheet {
  position: relative;
  width: 100%;
  border: var(--rule);
  background: var(--c-paper);
  font-family: var(--f-mono);
  color: var(--c-ink);
  padding: 14px 20px 16px;
  overflow: hidden;
}

.ordersheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: var(--rule);
  margin-bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ordersheet__title { color: var(--c-ink); font-weight: 500; }
.ordersheet__id    { color: var(--c-muted); }
.ordersheet__id em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--c-accent);
  font-variation-settings: "opsz" 14, "SOFT" 100;
}

.ordersheet__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ordersheet__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  font-size: 12px;
}
.ordersheet__key {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--c-ink);
  font-variation-settings: "opsz" 24, "SOFT" 40;
  white-space: nowrap;
}
.ordersheet__dots {
  flex: 1;
  height: 1em;
  border-bottom: 1px dotted color-mix(in srgb, var(--c-ink) 35%, transparent);
  transform: translateY(-3px);
}
.ordersheet__val {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  white-space: nowrap;
}
.ordersheet__line--strong .ordersheet__val--accent {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--c-accent);
  font-variation-settings: "opsz" 32, "SOFT" 70;
}

/* Pied : cachet "V.s" tamponné + mention validité */
.ordersheet__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: var(--rule);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.ordersheet__cachet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ordersheet__cachet-label { font-size: 8px; }
.ordersheet__cachet-mark {
  display: inline-block;
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  padding: 4px 8px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-transform: none;
  transform: rotate(-6deg);
  font-variation-settings: "opsz" 18, "SOFT" 100;
}
.ordersheet__cachet-mark .lc-soft {
  color: var(--c-accent);
  font-style: italic;
}

/* ─────────── TICKER MÉTIERS ─────────── */
.hero__trades {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(-8px, -1vh, 0px);
  margin-bottom: clamp(18px, 3vh, 32px);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(14px, 1vw, 17px);
  color: var(--c-ink-soft);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  max-width: 720px;
}
.trades__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}
.trades__track {
  display: flex;
  width: max-content;
  animation-name: trades-scroll;
  animation-duration: 45s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.trades__group {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding-right: 12px;
  white-space: nowrap;
}
.trades__sep { color: var(--c-accent); font-style: normal; }
@keyframes trades-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trades__label {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}
.hero__trades:hover .trades__track { animation-play-state: paused; }

/* ─────────── GARANTIE — remplace le footnote méta ─────────── */
.hero__guarantee {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.5;
  color: var(--c-ink);
  border-top: var(--rule);
  padding-top: 14px;
  max-width: 640px;
}
.hero__guarantee .mono {
  color: var(--c-accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.hero__guarantee em {
  font-style: italic;
  color: var(--c-accent);
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 18, "SOFT" 100;
}

/* Reduced motion : on n'enlève PAS l'animation entièrement (sinon zone vide),
   on rallonge juste la durée et on adoucit les transitions. */
@media (prefers-reduced-motion: reduce) {
  .kinetic-word, .hero__kinetic-stage::before {
    animation-duration: 4000ms !important;
  }
}

.hero__pretitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: var(--rule);
  margin-bottom: clamp(24px, 4vh, 56px);
}
.kicker {
  font-family: var(--f-mono);
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.kicker--accent { color: var(--c-accent); }

/* Titre du hero
   borné par la LARGEUR (vw) ET la HAUTEUR (vh) pour éviter le débordement
   sur écrans hauts/larges, et capé absolument pour 4K+ */
.hero__title {
  font-family: var(--f-display);
  font-weight: 350;
  /* Cap réduit à 112px pour cohabiter avec le glyphe canvas top-right.
     min(vw, vh) garantit qu'il ne déborde ni en largeur ni en hauteur. */
  font-size: clamp(40px, min(7vw, 10.5vh), 112px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--c-ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin-bottom: clamp(24px, 4vh, 56px);
  max-width: 100%;
  min-width: 0;
}
.hero__title .line {
  display: block;
  overflow: hidden;            /* pour l'animation entrante (clip slider) */
  max-width: 100%;
  /* on autorise la coupure pour éviter qu'un mot italique trop long pousse
     la viewport (cas où la fonte se charge en gras temporaire) */
  overflow-wrap: break-word;
}
.hero__title em {
  font-style: italic;
  font-weight: 350;
  color: var(--c-accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
/* alignements alternés pour un rythme éditorial — capés pour laisser
   le glyphe canvas respirer en top-right sans collision */
.hero__title .line:nth-child(2) { padding-left: clamp(16px, 4vw, 80px); }
.hero__title .line:nth-child(3) { padding-left: clamp(32px, 8vw, 160px); }
.hero__title .line:nth-child(4) { padding-left: clamp(8px, 2vw, 48px); }

.hero__sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  color: var(--c-ink-soft);
  margin-bottom: clamp(24px, 4vh, 48px);
}
.hero__sub .mono {
  font-size: 0.92em;
  color: var(--c-accent);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vh, 64px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: clamp(13px, 1.2vh, 18px) clamp(20px, 1.6vw, 28px);
  border: var(--rule);
  font-family: var(--f-sans);
  font-size: clamp(13px, 0.85vw, 14px);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--c-ink);
  transition: color 320ms var(--ease-out), background 320ms var(--ease-out),
              border-color 320ms var(--ease-out), transform 220ms var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--c-ink);
  transform: translateY(101%);
  transition: transform 480ms var(--ease-in-out);
  z-index: -1;
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn:hover,
.btn:focus-visible { color: var(--c-paper); }
.btn__arrow {
  font-family: var(--f-display);
  font-size: 18px;
  transition: transform 360ms var(--ease-out);
}
.btn:hover .btn__arrow { transform: translate(4px, -4px) rotate(0deg); }

.btn--primary {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}
.btn--primary::before { background: var(--c-accent); }
.btn--primary:hover { color: var(--c-paper); border-color: var(--c-accent); }

.hero__footnote {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: clamp(12px, 0.85vw, 14px);
  color: var(--c-muted);
  border-top: var(--rule);
  padding-top: 12px;
  max-width: 520px;
}
.hero__footnote .mono { color: var(--c-accent); letter-spacing: 0.08em; }
.hero__footnote em { color: var(--c-ink); font-style: normal; font-weight: 500; }

/* ─────────────── 7. MARQUEE ─────────────── */
.marquee {
  background: var(--c-ink);
  color: var(--c-paper);
  border-top: var(--rule-thick);
  border-bottom: var(--rule-thick);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--c-ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--c-ink), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll-x 60s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(28px, 4.5vw, 58px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}
.marquee__group .sep {
  color: var(--c-accent);
  font-style: normal;
  font-size: 0.5em;
  transform: translateY(-0.15em);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ─────────────── 8. CATALOGUE CONNECTÉ ─────────────── */
.catalogue {
  background:
    linear-gradient(180deg, var(--c-paper) 0%, color-mix(in srgb, var(--c-paper-2) 62%, var(--c-paper)) 100%);
  border-bottom: var(--rule);
}
.catalogue__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 120px) var(--gutter) clamp(72px, 10vh, 132px);
}
.catalogue__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(24px, 4vh, 48px);
  border-bottom: var(--rule);
}
.catalogue__title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(40px, 6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 16px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.catalogue__title em {
  color: var(--c-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.catalogue__lede {
  color: var(--c-ink-soft);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.6;
  max-width: 52ch;
}
.catalogue__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule);
  border-top: none;
}
.catalogue__stat {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: var(--rule);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c-paper) 88%, transparent), transparent),
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--c-ink) 6%, transparent) 0 1px,
      transparent 1px 18px);
}
.catalogue__stat:last-child { border-right: none; }
.catalogue__stat-value {
  font-family: var(--f-display);
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.9;
  font-style: italic;
  color: var(--c-accent);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.catalogue__stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.catalogue__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: clamp(22px, 4vh, 44px) 0 clamp(18px, 3vh, 32px);
}
.catalogue-filter {
  border: var(--rule);
  background: transparent;
  color: var(--c-ink);
  padding: 9px 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out),
              border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.catalogue-filter:hover,
.catalogue-filter:focus-visible,
.catalogue-filter.is-active {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
  outline: none;
}
.catalogue-filter.is-active {
  box-shadow: inset 0 -3px 0 var(--c-accent);
}
/* ─── PROJECT BOARD — grille commerciale style "shop" ─── */
.project-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.project-board__empty {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--c-ink);
  border-radius: 14px;
  color: var(--c-muted);
  text-align: center;
}

/* Card projet — bandeau haut / image / bandeau bas, coins arrondis */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--c-ink);
  border-radius: 14px;
  background: var(--c-paper);
  color: var(--c-ink);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 260ms var(--ease-out),
              box-shadow 260ms var(--ease-out),
              border-color 260ms var(--ease-out),
              opacity 520ms var(--ease-out);
  transition-delay: 0ms, 0ms, 0ms, calc(var(--i, 0) * 18ms);
  opacity: 0;
  transform: translateY(18px);
  isolation: isolate;
}
.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--c-ink) 22%, transparent);
  border-color: var(--c-accent);
  outline: none;
}
.project-card:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Bandeau HAUT — titre + année */
.project-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--c-ink);
  background: var(--c-paper);
}
.project-card__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.project-card__year {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  flex-shrink: 0;
}

/* Image (ou placeholder hachuré si absente) */
.project-card__figure {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-paper-2);
}
.project-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 480ms var(--ease-out);
}
.project-card:hover .project-card__figure img {
  transform: scale(1.04);
}
.project-card__figure--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 14px,
      color-mix(in srgb, var(--c-ink) 5%, transparent) 14px,
      color-mix(in srgb, var(--c-ink) 5%, transparent) 15px);
}
.project-card__placeholder-domain {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(28px, 3.6vw, 44px);
  color: color-mix(in srgb, var(--c-ink) 42%, transparent);
  letter-spacing: -0.02em;
  padding: 0 12px;
  text-align: center;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}

/* Bandeau BAS — domaine + prix */
.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--c-ink);
  background: var(--c-paper);
}
.project-card__domain {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--c-ink) 30%, transparent);
  border-radius: 4px;
}
.project-card__price {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--c-accent);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24, "SOFT" 60;
}
.project-card__price--empty {
  font-family: var(--f-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Statut LIVE : pastille en haut à droite de l'image */
.project-card--live .project-card__figure::after {
  content: "● LIVE";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: var(--c-paper);
  border: 1px solid var(--c-accent);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  animation: pc-live-blink 1.6s steps(2, end) infinite;
}
@keyframes pc-live-blink {
  0%, 60%    { opacity: 1; }
  61%, 100%  { opacity: 0.35; }
}

/* Mobile : 1 colonne large */
@media (max-width: 640px) {
  .project-board { grid-template-columns: 1fr; gap: 16px; }
  .project-card__title { font-size: 17px; white-space: normal; }
}

/* ─────────────── 9. MANIFESTE ─────────────── */
.manifest {
  padding: clamp(80px, 12vh, 160px) var(--gutter);
  border-bottom: var(--rule);
}
.manifest__head {
  max-width: 1500px;
  margin: 0 auto clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: var(--rule);
}
.manifest__title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 100%;
}
.manifest__title em {
  color: var(--c-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.manifest__grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: 32px 32px 0 0;
  border-right: var(--rule);
  position: relative;
  min-width: 0;                 /* permet au grid de réduire la cellule proprement */
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar + .pillar { padding-left: 32px; }

.pillar__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}
.pillar__index {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: 64px;
  line-height: 1;
  color: var(--c-accent);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.pillar__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  padding: 6px 10px;
  border: var(--rule);
}
.pillar__title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.pillar__title em {
  font-style: italic;
  color: var(--c-accent);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.pillar__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: 38ch;
}

/* ─────────────── 9. FOOTER ─────────────── */
.foot {
  padding: 28px var(--gutter) 0;
  background: var(--c-paper);
  position: relative;
  overflow: hidden;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  padding-bottom: 24px;
  border-bottom: var(--rule);
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.foot__count strong {
  color: var(--c-accent);
  font-weight: 700;
}
.foot__contact { position: relative; }
.foot__contact::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--c-ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 420ms var(--ease-in-out);
}
.foot__contact:hover::after { transform: scaleX(1); transform-origin: left; }

/* Wordmark géant : SVG fit-to-width. Le viewBox impose le ratio (1000:200 = 5:1),
   donc la hauteur s'ajuste proportionnellement à la largeur du parent.
   Aucun débordement possible — ni horizontal, ni à 320px, ni à 4K. */
.foot__giant {
  width: 100%;
  margin: 0;
  padding: 24px 0 0;
  user-select: none;
  /* on cape la hauteur visuelle sur ultra-wide pour ne pas écraser l'écran */
  max-height: clamp(140px, 24vw, 380px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.foot__giant-svg {
  width: 100%;
  height: auto;
  display: block;
  /* la hauteur de rendu suit le viewBox (5:1) ; sur ultra-wide on retombe
     dans la limite max-height du parent */
}
.foot__giant-text {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 180px;          /* relatif au viewBox, pas au viewport */
  letter-spacing: -8px;
  fill: var(--c-ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.foot__giant-main {
  font-style: normal;
  fill: var(--c-ink);
}
.foot__giant-soft {
  font-style: italic;
  fill: var(--c-accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ─────────────── 10. RESPONSIVE ───────────────
   Paliers cibles :
   ≥1600px  ultra-wide / 27"+      — cap les tailles, max-width tighter
   1280-1600 desktop standard       — base
   1024-1280 petit desktop / iPad pro paysage
   768-1024  iPad portrait / tablette
   480-768   gros phone paysage / petite tablette
   ≤480      iPhone / phones portrait
   ─────────────────────────────────────────────── */

/* Ultra-wide (>=1600px) : on évite les titres délirants */
@media (min-width: 1600px) {
  .hero__inner   { max-width: 1400px; }
  .manifest__head,
  .manifest__grid { max-width: 1400px; }
}

/* 4K et plus : on borne franchement pour ne pas se retrouver avec un titre
   à 250px qui mange tout l'écran */
@media (min-width: 2200px) {
  .hero__inner,
  .manifest__head,
  .manifest__grid,
  .foot__row { max-width: 1600px; }
  .hero__title { font-size: clamp(80px, 6vw, 160px); }
  .manifest__title { font-size: clamp(64px, 4.5vw, 120px); }
  .foot__giant { max-height: 320px; }
}

/* Petits desktops & iPad Pro paysage (1024-1280) : titre un cran plus petit */
@media (max-width: 1280px) {
  .hero__title {
    font-size: clamp(40px, min(8vw, 10.5vh), 120px);
  }
  .project-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 901px) and (max-height: 960px) {
  .hero__rightcol {
    --rightcol-scale: 0.86;
    top: clamp(42px, 6vh, 72px);
  }
}

/* Tablette portrait / iPad (768-1024) : layout 2 colonnes pour manifeste */
@media (max-width: 1024px) {
  :root { --gutter: clamp(18px, 4vw, 32px); }
  .hero__rail { display: none; }
  .hero__title {
    font-size: clamp(38px, min(8.5vw, 10vh), 96px);
  }
  .hero__title .line:nth-child(2) { padding-left: clamp(16px, 4vw, 48px); }
  .hero__title .line:nth-child(3) { padding-left: clamp(32px, 8vw, 96px); }
  .hero__title .line:nth-child(4) { padding-left: clamp(8px, 2vw, 24px); }

  .manifest__grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(3) {
    grid-column: 1 / -1;
    border-top: var(--rule);
    padding-top: 32px;
    margin-top: 32px;
  }

  .catalogue__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .project-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablette / phone landscape (480-768) */
@media (max-width: 768px) {
  .hero {
    padding: clamp(72px, 10vh, 96px) var(--gutter) clamp(40px, 6vh, 64px);
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__pretitle {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero__title {
    font-size: clamp(36px, 10vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .hero__title .line:nth-child(n) { padding-left: 0; }

  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { justify-content: space-between; width: 100%; }

  /* manifeste : retour à 1 colonne propre */
  .manifest__grid { grid-template-columns: 1fr; }
  .pillar {
    border-right: none !important;
    border-top: var(--rule);
    padding: 28px 0 0 !important;
    margin: 28px 0 0 !important;
    grid-column: auto !important;
  }
  .pillar:first-child { border-top: none; padding-top: 0 !important; margin-top: 0 !important; }

  .manifest__title { font-size: clamp(32px, 7vw, 48px); }
  .pillar__index { font-size: 48px; }

  .catalogue__inner {
    padding-top: clamp(40px, 7vh, 72px);
  }
  .catalogue__stats {
    grid-template-columns: 1fr;
  }
  .catalogue__stat {
    border-right: none;
    border-bottom: var(--rule);
  }
  .catalogue__stat:last-child { border-bottom: none; }
  .catalogue__filters {
    gap: 6px;
  }
  .catalogue-filter {
    flex: 1 1 auto;
    min-width: max-content;
  }
  .project-board { grid-template-columns: 1fr; }
  .project-card {
    min-height: 250px;
  }

  /* topbar compacte : on garde tout mais plus petit */
  .topbar { padding: 10px var(--gutter); }
  .topbar__cell--right { gap: 10px; }
  .topbar__cell--right .meta--muted { display: none; }
  .status__label { font-size: 10px; }
}

/* Phones portrait (<=480) */
@media (max-width: 480px) {
  :root { --gutter: 16px; }

  .topbar {
    grid-template-columns: auto 1fr;
    padding: 8px var(--gutter);
    font-size: 10px;
  }
  .topbar__cell--center { justify-self: end; }
  .topbar__cell--right { display: none; }
  .wordmark { font-size: 12px; }
  .wordmark__soft { font-size: 13px; }

  .hero__title { font-size: clamp(34px, 11vw, 56px); }
  .marquee { padding: 16px 0; }
  .marquee__group { font-size: clamp(22px, 7vw, 32px); gap: 18px; padding-right: 18px; }

  .foot__row { font-size: 11px; gap: 12px; }
  /* le SVG fit-to-width n'a pas besoin d'override : il s'adapte tout seul.
     On réduit juste la max-height pour ne pas écraser un petit écran. */
  .foot__giant { max-height: 30vw; padding-top: 16px; }

  /* ─── Colonne droite empilée : tightening pour phone portrait ─── */
  .hero__scribe-wrap { aspect-ratio: 1 / 0.62; }

  /* Process : padding et tailles réduites */
  .hero__process { padding: 14px 16px 16px; }
  .process__step { grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 10px; }
  .process__num { font-size: 24px; }
  .process__action { font-size: 17px; }
  .process__detail { font-size: 12px; }

  /* Ordersheet : padding et tailles réduites */
  .hero__ordersheet { padding: 12px 16px 14px; }
  .ordersheet__head { padding-bottom: 8px; margin-bottom: 10px; font-size: 9px; }
  .ordersheet__line { padding: 4px 0; }
  .ordersheet__key { font-size: 14px; }
  .ordersheet__val { font-size: 10px; }
  .ordersheet__line--strong .ordersheet__val--accent { font-size: 19px; }
  .ordersheet__foot { margin-top: 10px; padding-top: 8px; }
  .ordersheet__cachet-mark { font-size: 12px; padding: 3px 6px; }

  /* Trades ticker : labels plus petits */
  .hero__trades { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trades__label { align-self: flex-end; }

  /* Garantie : passer en colonne pour les très petits écrans */
  .hero__guarantee { flex-direction: column; gap: 6px; }
}

/* Très courts (laptops 13" en mode dock, ou paysage iPhone) :
   le hero doit absolument tenir → on réduit encore par hauteur */
@media (max-height: 720px) {
  .hero__title { font-size: clamp(36px, min(7vw, 10.5vh), 96px); }
  .hero__sub { font-size: 14px; }
  .hero__pretitle { margin-bottom: clamp(16px, 2.5vh, 28px); }
  .hero__title { margin-bottom: clamp(16px, 2.5vh, 28px); }
  .hero__sub { margin-bottom: clamp(16px, 2.5vh, 28px); }
  .hero__actions { margin-bottom: clamp(16px, 2.5vh, 32px); }
}

/* Paysage très court (iPhone landscape ~414×896 tourné) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 72px; padding-bottom: 32px; }
  .hero__title { font-size: clamp(28px, 6vh, 56px); }
  .hero__footnote { display: none; }
}

/* ─────────────── 11. ENTRANCE STATE (avant GSAP) ─────────────── */
.is-js-ready .hero__title .line > * { display: inline-block; }
.is-js-ready .hero__title .reveal { transform: translateY(110%); }

/* Reduced motion : on désactive le décoratif (entrance GSAP, cursor custom)
   MAIS on préserve le scribe qui EST l'identité du studio.
   On rallonge juste sa cadence pour le rendre moins agressif. */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none !important; }
  .status__dot { animation: none !important; }
  .scribe-nib { animation: none !important; opacity: 0.7; }
  .cursor { display: none; }
  /* Marquee et scribe : on garde animés mais plus lents */
  .marquee__track { animation-duration: 120s !important; }
  .word-svg { animation-duration: 6500ms !important; }
  .word-svg text,
  .word-svg .dot {
    animation-duration: 3500ms, 800ms !important;
    animation-delay: 0ms, 3000ms !important;
  }
  .project-card { transition: none !important; }
  .project-card__figure img { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MODAL FICHE PROJET — overlay éditorial plein écran
   ═══════════════════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  visibility: hidden;
  opacity: 0;
  transition: opacity 320ms var(--ease-out), visibility 0s 320ms;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 320ms var(--ease-out), visibility 0s 0s;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--c-ink) 50%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal__panel {
  position: relative;
  margin: clamp(20px, 4vh, 60px) auto;
  width: min(1200px, calc(100vw - clamp(20px, 6vw, 80px)));
  max-height: calc(100vh - clamp(40px, 8vh, 120px));
  background: var(--c-paper);
  border: var(--rule-thick);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 360ms var(--ease-out);
  z-index: 1;
}
.modal.is-open .modal__panel { transform: translateY(0); }

/* Head : kicker mono + bouton fermer */
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(16px, 2vw, 28px);
  border-bottom: var(--rule);
  font-family: var(--f-mono);
  flex-shrink: 0;
}
.modal__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal__kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.modal__divider {
  color: var(--c-muted);
  font-size: 11px;
}
.modal__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: var(--rule);
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
  cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out);
}
.modal__close:hover,
.modal__close:focus-visible {
  background: var(--c-ink);
  color: var(--c-paper);
  outline: none;
}
.modal__close-icon { font-size: 16px; line-height: 1; }

/* Body : scrollable */
.modal__body {
  overflow-y: auto;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: var(--c-paper-2); }
.modal__body::-webkit-scrollbar-thumb { background: var(--c-ink-soft); }

/* Intro : status + title + lede */
.modal__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
}
.modal__status {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  border: var(--rule);
  padding: 5px 10px;
  position: relative;
}
.modal__status::before {
  content: "✓";
  margin-right: 6px;
  color: var(--c-ink);
}
.modal__status[data-status="live"] {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.modal__status[data-status="live"]::before {
  content: "●";
  color: var(--c-accent);
}
.modal__title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  color: var(--c-ink);
}
.modal__title .lc-soft {
  font-style: italic;
  color: var(--c-accent);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.modal__lede {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 64ch;
}

/* Figure : cadre éditorial avec coins brutalistes */
.modal__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal__figure-frame {
  position: relative;
  border: var(--rule);
  background: var(--c-paper-2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal__figure-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-muted);
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 18px,
      color-mix(in srgb, var(--c-ink) 4%, transparent) 18px,
      color-mix(in srgb, var(--c-ink) 4%, transparent) 19px);
}
.modal__figure-corner {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--c-accent);
  pointer-events: none;
}
.modal__figure-corner--tl { top: 6px;    left: 6px; }
.modal__figure-corner--tr { top: 6px;    right: 6px; }
.modal__figure-corner--bl { bottom: 6px; left: 6px; }
.modal__figure-corner--br { bottom: 6px; right: 6px; }
.modal__figure-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

/* Sections : grille 2 colonnes pour /01 /02 /03 /04 */
.modal__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px) clamp(28px, 4vw, 64px);
}
.modal__section { display: flex; flex-direction: column; gap: 12px; }
.modal__section--metrics {
  grid-column: 1 / -1;
  border-top: var(--rule);
  padding-top: 24px;
}
.modal__section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: var(--rule);
}
.modal__section-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 350;
  font-size: 28px;
  line-height: 1;
  color: var(--c-accent);
  font-variation-settings: "opsz" 48, "SOFT" 100;
}
.modal__section-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.modal__section-body {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.65;
  color: var(--c-ink-soft);
  max-width: 60ch;
}

/* Métriques : liste brutale, chaque ligne avec marker numéroté */
.modal__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.modal__metrics li {
  position: relative;
  padding: 14px 16px 14px 32px;
  border: var(--rule);
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-ink);
  background: color-mix(in srgb, var(--c-paper) 60%, transparent);
}
.modal__metrics li::before {
  content: "›";
  position: absolute;
  top: 50%; left: 12px;
  transform: translateY(-50%);
  color: var(--c-accent);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
}

/* Footer : lien externe */
.modal__foot {
  display: flex;
  justify-content: flex-start;
  border-top: var(--rule);
  padding-top: 24px;
}
.modal__foot[hidden] { display: none; }

/* Responsive modal */
@media (max-width: 768px) {
  .modal__panel {
    margin: 0;
    width: 100vw;
    max-height: 100vh;
    border-left: none;
    border-right: none;
  }
  .modal__cols { grid-template-columns: 1fr; }
  .modal__close-label { display: none; }
}
