/* ==========================================================================
   hugopinaud.com — feuille de style (v2)
   Palette : rouge identité #ED1E24, encre #1D1D1F, blanc, gris #F5F5F7, noir.
   Typo    : Archivo (titres larges et texte), Bodoni Moda italique en accent.
   Accueil : couverture rouge → énoncé → chapitres pleine largeur en tuiles → index → contact.
   ========================================================================== */

:root {
  --red: #ED1E24;
  --ink: #1D1D1F;
  --paper: #FFFFFF;
  --grey: #F5F5F7;
  --black: #000000;
  --mute: #6E6E73;
  --mute-dark: #A1A1A6;          /* texte secondaire sur fond noir */
  --line: rgba(0, 0, 0, .1);
  --line-dark: rgba(255, 255, 255, .18);

  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Bodoni Moda', 'Bodoni 72', 'Didot', Georgia, serif;

  --margin: clamp(20px, 5vw, 80px);
  --gap: clamp(12px, 1.4vw, 20px);
  --radius: clamp(18px, 2vw, 28px);
  --header-h: 60px;
  --section: clamp(5rem, 14vh, 10rem);
  --u: calc((100vw - 2 * var(--margin) - 11 * var(--gap)) / 12);  /* unité de colonne, affinée en JS */

  /* Mouvement : une seule courbe, trois durées, partout (DECISIONS.md § 35) */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t1: .25s;   /* couleurs, petits survols */
  --t2: .6s;    /* déplacements, bandeaux, passage d'une page à l'autre */
  --t3: 1s;     /* apparitions, zooms d'image */
  color-scheme: light;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: inherit; }
li { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

/* --- Typographie -------------------------------------------------------- */
.h {
  font-family: var(--sans);
  font-stretch: 106%;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.h em, .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -.01em;
  font-stretch: 100%;
}
.eyebrow {
  font-stretch: 112%;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
}
.eyebrow--red { color: var(--red); }
.sub { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--mute); text-wrap: pretty; }
.mute { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }

.wrap { padding-inline: var(--margin); }
.center { text-align: center; }
.narrow { max-width: 62rem; margin-inline: auto; }
.reading { max-width: 42rem; margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  font-weight: 500;
  padding: .85rem 1.5rem;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  transition: background var(--t1) var(--ease), color var(--t1) var(--ease), transform var(--t1) var(--ease);
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--red { background: var(--red); }
.btn--red:hover { background: #d0161c; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #fff; color: #b8121a; }
.more {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--red);
}
.more .chev { transition: transform var(--t1) var(--ease); }
.more:hover .chev { transform: translateX(3px); }
/* Soulignement dessiné : il arrive par la gauche et repart par la droite */
.more, .ccard .val a, .crumbs a {
  padding-bottom: .12em;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size var(--t2) var(--ease), color var(--t1) var(--ease);
}
.more:hover, .more:focus-visible, .ccard .val a:hover, .ccard .val a:focus-visible, .crumbs a:hover, .crumbs a:focus-visible {
  background-size: 100% 1px;
  background-position: 0 100%;
}

/* --- En-tête ------------------------------------------------------------ */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: background var(--t2) var(--ease), color var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.site-head.on-cover {
  color: #fff;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mono { width: 24px; height: 24px; color: var(--red); transition: transform var(--t3) var(--ease), color var(--t2) var(--ease); }
.site-head.on-cover .brand .mono { color: #fff; }
.brand:hover .mono { transform: rotate(45deg); }
.brand .word { width: 80px; }
.brand svg { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: .95rem; font-weight: 500; }
.nav a { opacity: .85; transition: opacity var(--t1) var(--ease), background var(--t1) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav .lang { font-size: .78rem; font-weight: 600; letter-spacing: .1em; opacity: .6; padding: .2rem .35rem; border-radius: 6px; }
.nav .lang:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.site-head.on-cover .nav .lang:hover { background: rgba(255, 255, 255, .16); }
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .8rem .4rem .65rem;
  border-radius: 980px;
  background: rgba(0, 0, 0, .06);
  transition: background var(--t1) var(--ease);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.site-head.on-cover .status { background: rgba(255, 255, 255, .16); }
.site-head.on-cover .status::before { background: #fff; }
.status:hover { background: rgba(0, 0, 0, .1); }
@media (max-width: 720px) {
  .brand .word { display: none; }
  .status span { display: none; }
  .status { padding: .45rem .55rem; gap: 0; }
}

/* --- Couverture (accueil) ------------------------------------------------ */
.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #fff;
  background-color: var(--red);
  overflow: hidden;
  isolation: isolate;
}
/* Fond (choix E) : rouge plat et un seul monogramme géant, rouge foncé opaque, recadré à gauche comme dans le book. */
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cover-bg .bloc {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  left: -55%;
  top: 8%;
  color: #D6151B;
}
.cover-bg .bloc svg { width: 100%; height: 100%; }

.cover-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 3vh) var(--margin) 12vh;
  transform: translateY(calc(var(--scroll, 0) * .18px));
}
.cover .mono {
  width: clamp(120px, 22vh, 220px);
  aspect-ratio: 1;
  animation: spin 90s linear infinite;
}
.cover .mono svg { width: 100%; height: 100%; }
.cover .word { width: clamp(200px, 30vw, 440px); margin-top: clamp(1.6rem, 4vh, 3rem); }
.cover .word svg { width: 100%; height: auto; }
.cover .line { margin-top: clamp(1.5rem, 4vh, 2.6rem); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; }
.cover .line small { display: block; margin-top: .4rem; font-size: .85em; font-weight: 400; opacity: .82; }
.cover-foot {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem var(--margin);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  font-weight: 500;
}
.cover-foot .dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: .5rem; vertical-align: 2px; animation: pulse 2.4s infinite; }
.cover-foot .down { display: inline-flex; align-items: center; gap: .5rem; }
.cover-foot .down .arr { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.cover-inner > * { animation: rise var(--t3) var(--ease) both; }
.cover-inner > :nth-child(2) { animation-delay: .12s; }
.cover-inner > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .cover-foot { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .cover-bg .bloc { width: 230%; left: -75%; top: 4%; }
}

/* --- Énoncé ---------------------------------------------------------------- */
.statement {
  padding-block: var(--section);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.6rem;
}
.statement h1 { font-size: clamp(2.2rem, 5.2vw, 5.6rem); max-width: 18ch; }
.statement h1 em { color: var(--red); }
.statement .sub { max-width: 46ch; }
.statement .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; margin-top: .6rem; }

/* --- Chapitres ------------------------------------------------------------- */
.chapter { padding-block: var(--section); }
.chapter.tone-grey { background: var(--grey); }
.chapter.tone-dark { background: var(--black); color: #fff; --mute: var(--mute-dark); --line: var(--line-dark); }
.chapter.tone-red { position: relative; overflow: hidden; isolation: isolate; background-color: var(--red); color: #fff; --mute: rgba(255,255,255,.8); --line: rgba(255,255,255,.25); }
/* Même fond que la couverture, troisième placement : le monogramme géant déborde par le haut, centré derrière le titre. */
.chapter-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.chapter-bg .bloc { position: absolute; width: 110vw; aspect-ratio: 1; left: 50%; top: -68vw; transform: translateX(-50%); color: #D6151B; }
.chapter-bg .bloc svg { width: 100%; height: 100%; }
.tone-red .chapter-head, .tone-red .tiles, .tone-red .chapter-more { position: relative; z-index: 1; }
.chapter-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.chapter-head .eyebrow { color: var(--red); }
.tone-dark .chapter-head .eyebrow { color: var(--red); }
.tone-red .chapter-head .eyebrow { color: #fff; opacity: .85; }
.chapter-head h2 { font-size: clamp(2rem, 4.4vw, 4.6rem); max-width: 16ch; }
.chapter-head .sub { max-width: 52ch; }
.tone-red .sub { color: rgba(255,255,255,.85); }

/* Grille de tuiles : 12 colonnes, demi-lignes de hauteur u/2 (voir tools/images.py) */
.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: calc(var(--u) / 2);
  gap: var(--gap);
}
.tile {
  grid-column: var(--cs, auto) / span var(--c, 4);
  grid-row: span var(--r, 9);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tile .ph {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey);
  transform: translateZ(0);
}
.tone-dark .tile .ph, .tone-red .tile .ph { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tile .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(1.001);
  transition: transform var(--t3) var(--ease);
}
.tile:hover .ph img { transform: scale(1.03); }
.tile .ph .badge {
  position: absolute; right: 14px; bottom: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform var(--t1) var(--ease);
}
.tile .ph .badge svg { margin-left: 2px; }
.tile:hover .ph .badge { transform: scale(1.08); }

/* Lecteur à la demande */
.player { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: transform var(--t1) var(--ease), background var(--t1) var(--ease);
}
.player .play svg { width: 40%; height: 40%; margin-left: 4%; }
.player .play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.player .dur {
  position: absolute; left: 14px; bottom: 14px;
  padding: .3rem .6rem; border-radius: 980px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player.is-playing > img, .player.is-playing .play, .player.is-playing .dur { display: none; }
.tile .cap {
  height: 96px;
  padding-top: .9rem;
  display: grid;
  align-content: start;
  gap: .2rem;
}
.tile .cap .t { font-weight: 600; font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: color var(--t1) var(--ease); }
.tile:hover .cap .t { color: var(--red); }
.tone-red .tile:hover .cap .t { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.tile .cap .k { font-size: .9rem; color: var(--mute); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.chapter-more { margin-top: clamp(2rem, 5vh, 3.5rem); text-align: center; }

@media (max-width: 900px) {
  .chapter-bg .bloc { width: 200vw; top: -125vw; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; row-gap: 1.8rem; }
  .tile { grid-column: span 1; grid-row: auto; }
  .tile[data-wide="1"] { grid-column: span 2; }
  .tile .ph { flex: none; aspect-ratio: var(--ar, 4 / 5); }
  .tile .cap { height: auto; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile[data-wide="1"] { grid-column: span 1; }
}

/* --- Sélection (six projets phares) ---------------------------------------- */
.selection { background: var(--grey); padding-block: var(--section); }
.inter {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: .9rem; margin-bottom: clamp(1.6rem, 3vh, 2.6rem);
  border-bottom: 1px solid var(--line);
}
.inter .eyebrow { margin: 0; }
.inter .mute { font-size: .95rem; }
.inter .mute a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.inter .mute a:hover { color: var(--red); }
.feat-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.feat-row + .feat-row { margin-top: clamp(3rem, 8vh, 6rem); }
.feat { grid-column: span var(--fc, 12); display: grid; gap: 1.4rem; min-width: 0; }
.feat--solo {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}
.feat--solo .tile--feat { grid-column: span var(--c); }
.feat--solo .feat-text { grid-column: span var(--tc); padding-inline: clamp(0rem, 2vw, 2rem); }
.feat--solo.feat--flip .feat-text { order: -1; }
.tile--feat { grid-row: auto; }
.feat--pair { grid-template-columns: minmax(0, 1fr); grid-column: var(--fs, auto) / span var(--fc); }
.feat--pair .tile--feat, .feat--pair .feat-text { grid-column: auto; }
.tile--feat .ph { flex: none; aspect-ratio: var(--ar); background: rgba(0, 0, 0, .04); }
.tile--feat .cap { height: auto; padding-top: .8rem; }
.tile--feat .cap .k { font-size: .92rem; }
.feat-text { display: grid; gap: 1rem; align-content: start; max-width: 44ch; }
.feat-text h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.feat-text h3 a { color: inherit; transition: color var(--t1) var(--ease); }
.feat-text h3 .hook { font-weight: 700; color: var(--ink); }
.feat-text h3 .hook em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); font-size: 1.08em; letter-spacing: 0; }
.feat:hover h3 a, .feat:focus-within h3 a { color: var(--red); }
.feat:hover .ph img { transform: scale(1.03); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-size: .85rem; padding: .4rem .9rem; border-radius: 980px; background: #fff; color: var(--ink); }


/* --- Hors écran (accueil) : trois faits, avant le contact ------------------ */
.offscreen-block { padding-block: clamp(2rem, 5vh, 3.5rem) var(--section); scroll-margin-top: 5rem; }
.offscreen-head { display: grid; justify-items: center; text-align: center; gap: 1.2rem; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.offscreen-head h2 { font-size: clamp(2.2rem, 4.8vw, 4.8rem); max-width: 16ch; }
.offscreen-head .sub { max-width: 46ch; }
.offscreen-block .wide-photo { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.about-inner .links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.fact { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; align-content: start; gap: .7rem; }
.fact { border-top: 2px solid var(--ink); }
.fact p { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 500; line-height: 1.38; letter-spacing: -.012em; max-width: 30ch; text-wrap: pretty; }
.fact small { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; font-size: .82rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.fact small .sep { opacity: .6; }
.fact small .more { font-size: inherit; }

@media (max-width: 900px) {
  .feat-row, .feat-row--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .feat-row--solo { grid-template-columns: 1fr; }
  .feat { grid-column: auto; }
  .feat--solo { grid-template-columns: 1fr; }
  .feat--solo .tile--feat, .feat--solo .feat-text { grid-column: auto; }
  .feat--solo.feat--flip .feat-text { order: 0; }
  .feat--solo .feat-text { padding-inline: 0; }
  .feat-text h3 { font-size: 1.5rem; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { padding-block: 1.1rem; }
  .fact:last-child { border-bottom: 1px solid var(--line); }
  .fact p { max-width: 40ch; }
}
@media (max-width: 560px) {
  .feat-row, .feat-row--pair { grid-template-columns: 1fr; }
}

/* --- Index : tous les projets, un titre par ligne ---------------------------
   Chaque ligne fait --rh de haut ; au survol, un bandeau photo pleine largeur s'ouvre depuis le centre,
   déborde sur les lignes voisines (2,6 × --rh) et le texte passe en blanc. */
.index { padding-block: var(--section); }
.index-head { display: grid; justify-items: center; text-align: center; gap: .5rem; margin-bottom: clamp(2.5rem, 7vh, 5rem); }
.index-head h2 { font-size: clamp(.95rem, 1.2vw, 1.15rem); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; }
.index-head .mute { font-size: .85rem; }
.shows { --rh: clamp(68px, 7.6vw, 112px); --side: clamp(4.5rem, 12vw, 11rem); }
.show { position: relative; display: block; height: var(--rh); outline: none; }
.show-info {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding-inline: var(--margin);
  transition: color var(--t1) var(--ease);
}
.show-d, .show-k { flex: 0 0 var(--side); font-size: 1rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-d { text-align: right; font-variant-numeric: tabular-nums; }
.show-t {
  flex: 0 1 auto; min-width: 0; white-space: nowrap; text-align: center;
  font-size: clamp(2rem, 5.3vw, 4.75rem); font-weight: 900; font-stretch: 125%;
  line-height: .8; letter-spacing: -.05em; text-transform: uppercase;
}
.show-band {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 1;
  height: calc(var(--rh) * 2.6); transform: translateY(-50%);
  overflow: hidden; background: var(--ink); pointer-events: none;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path var(--t2) var(--ease);
}
.show-band img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform var(--t3) var(--ease); }
.show-band::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
@media (hover: hover) {
  .show:hover { z-index: 3; }
  .show:hover .show-band { clip-path: inset(0); }
  .show:hover .show-band img { transform: scale(1); }
  .show:hover .show-info { color: #fff; }
}
.show:focus-visible { z-index: 3; }
.show:focus-visible .show-band { clip-path: inset(0); }
.show:focus-visible .show-band img { transform: scale(1); }
.show:focus-visible .show-info { color: #fff; }
.show.is-wrap { height: auto; min-height: var(--rh); padding-block: 1rem; }
.show.is-wrap .show-t { white-space: normal; text-wrap: balance; line-height: .86; }
@media (prefers-reduced-motion: reduce) { .show-band, .show-band img { transition: none; } }
@media (max-width: 720px) {
  .shows { --side: 2.6rem; --rh: 64px; }
  .show-info { gap: 10px; }
  .show-d { font-size: .72rem; }
  .show-k { visibility: hidden; }
}

/* --- Profil (bande d'accueil) -------------------------------------------- */
.about { background: var(--grey); padding-block: var(--section); }
.about-inner { display: grid; justify-items: center; text-align: center; gap: 1.4rem; max-width: 46rem; margin-inline: auto; }
.about-inner .pic { width: clamp(120px, 14vw, 168px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.about-inner .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-inner h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.about-inner p { color: var(--mute); font-size: 1.15rem; }

/* --- Pied de page : contact ------------------------------------------------- */
.foot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-color: var(--red);
  padding-block: var(--section) 1.6rem;
}
/* Même fond que la couverture, en symétrie : le monogramme géant rouge foncé est recadré à droite. */
.foot-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.foot-bg .bloc { position: absolute; width: 150%; aspect-ratio: 1; right: -55%; top: 8%; color: #D6151B; transform: scaleX(-1); }
.foot-bg .bloc svg { width: 100%; height: 100%; }
.foot-grid, .foot-bottom, .colophon { position: relative; z-index: 1; }
.foot ::selection { background: #fff; color: var(--red); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 76rem;
  margin-inline: auto;
}
.foot-lead .eyebrow { opacity: .85; }
.foot-lead h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); margin: 1rem 0 1.4rem; max-width: 13ch; }
.foot-text { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; max-width: 40ch; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.foot-status { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem; padding: .55rem 1rem .55rem .8rem; border-radius: 980px; background: rgba(255, 255, 255, .14); font-size: .9rem; font-weight: 500; }
.foot-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2.4s infinite; }

.ccard {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.ccard .crow { display: grid; grid-template-columns: 1fr; gap: .35rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.ccard .crow:first-child { border-top: 0; padding-top: 0; }
.ccard .lbl { font-stretch: 112%; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ccard .val { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -.015em; line-height: 1.3; word-break: break-word; }
.ccard .val a:hover { color: var(--red); }
.ccard .ext { display: inline-block; font-weight: 500; font-size: .85em; opacity: .55; transition: transform var(--t1) var(--ease); }
.ccard .val a:hover .ext--out { transform: translate(2px, -2px); }
.ccard .val a:hover .ext--down { animation: drop var(--t2) var(--ease); }
@keyframes drop { 0% { transform: none; opacity: .55; } 40% { transform: translateY(7px); opacity: 0; } 41% { transform: translateY(-7px); opacity: 0; } 100% { transform: none; opacity: .55; } }
.ccard .hint { font-size: .78rem; font-weight: 500; color: var(--mute); padding: .15rem .5rem; border-radius: 980px; background: var(--grey); }
.ccard .copy { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 500; color: var(--mute); padding: .15rem .6rem; border-radius: 980px; background: var(--grey); transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.copy .ck { width: 0; height: 12px; opacity: 0; transition: width var(--t1) var(--ease), margin var(--t1) var(--ease), opacity var(--t1) var(--ease); }
.copy .ck path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.copy.is-done .ck { width: 12px; margin-right: .3rem; opacity: 1; }
.copy.is-done .ck path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t2) var(--ease) .08s; }
.ccard .copy:hover { background: var(--ink); color: #fff; }
.ccard .copy.is-done { background: var(--red); color: #fff; }
.ccard .actions { margin-top: 1.5rem; }
.ccard .actions .btn { width: 100%; justify-content: center; }
.foot ::selection { background: var(--red); color: #fff; }
.ccard ::selection { background: var(--red); color: #fff; }

.foot-bottom {
  margin-top: var(--section);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.foot-bottom .mono { width: 48px; }
.foot-bottom .word { width: clamp(160px, 22vw, 300px); }
.foot-bottom svg { width: 100%; height: auto; }
.colophon {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .8rem;
  opacity: .9;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-lead h2 { max-width: 16ch; }
  .foot-bg .bloc { width: 230%; right: -75%; top: 2%; }
}

/* --- Page projet ------------------------------------------------------------- */
.page { padding-top: var(--header-h); }
.proj-head {
  padding-block: clamp(3.5rem, 10vh, 7rem) clamp(2rem, 5vh, 3.5rem);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
}
.proj-head h1 { font-size: clamp(2.6rem, 7vw, 7.6rem); max-width: 14ch; }
.proj-head .kicker { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.3; color: var(--mute); max-width: 32ch; text-wrap: pretty; }
.crumbs { display: flex; justify-content: space-between; align-items: center; padding-top: 1.4rem; font-size: .9rem; color: var(--mute); }
.crumbs a:hover { color: var(--red); }
.specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: .4rem;
}
.specs li { display: inline-flex; gap: .5rem; align-items: baseline; padding: .55rem 1rem; border-radius: 980px; background: var(--grey); font-size: .92rem; }
.specs li b { font-weight: 600; }
.specs li span { color: var(--mute); }
.hero-media { margin-top: clamp(1.5rem, 4vh, 3rem); }
.hero-media .frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey);
  display: grid;
  place-items: center;
}
.hero-media .frame img { width: 100%; height: auto; cursor: zoom-in; }
.hero-media .frame > .player { width: 100%; border-radius: 0; }
.hero-media .frame.portrait { aspect-ratio: 16 / 10; }
.hero-media .frame.portrait > img { width: auto; height: 86%; max-width: 90%; border-radius: calc(var(--radius) * .5); box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.hero-media .frame.portrait > .player { width: auto; height: 86%; max-width: 90%; border-radius: calc(var(--radius) * .5); box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.hero-media figcaption { text-align: center; font-size: .9rem; color: var(--mute); padding-top: .9rem; }
.proj-text { padding-block: clamp(3rem, 8vh, 5.5rem) clamp(2rem, 5vh, 3.5rem); }
.proj-text p { font-size: 1.25rem; line-height: 1.55; margin-bottom: 1.4rem; text-wrap: pretty; }
.proj-text p:first-child { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.32; font-weight: 500; letter-spacing: -.02em; margin-bottom: 1.8rem; }
.proj-text .tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.proj-text .tools li { font-size: .85rem; padding: .4rem .9rem; border-radius: 980px; background: var(--grey); }
.gallery { display: grid; gap: clamp(1.2rem, 2.4vw, 2.2rem); padding-bottom: var(--section); }
.gallery .pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.gallery figure { display: grid; gap: .8rem; }
.gallery figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--grey); cursor: zoom-in; }
.gallery figure .player { width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--mute); text-align: center; }
@media (max-width: 560px) { .gallery .pair { grid-template-columns: 1fr; } }

.next { background: var(--grey); padding-block: clamp(3rem, 8vh, 5.5rem); }
.next a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(140px, 18vw, 260px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 62rem;
  margin-inline: auto;
}
.next .lbl, .next .ttl, .next .kick { display: block; }
.next .lbl { color: var(--mute); margin-bottom: .8rem; }
.next .ttl { font-size: clamp(2rem, 4.6vw, 4.4rem); }
.next .ttl .chev { display: inline-block; margin-left: .1em; transition: transform var(--t2) var(--ease); }
.next a:hover .ttl .chev { transform: translateX(.15em); }
.next .kick { color: var(--mute); margin-top: .6rem; font-size: 1.05rem; }
.next .thumb { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #fff; }
.next .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--ease); }
.next a:hover .thumb img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0, 0, 0, .94); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; cursor: zoom-out; padding: clamp(2.5rem, 6vh, 4rem) clamp(3.5rem, 8vw, 6rem) 0; }
.lightbox figcaption { text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .75); padding: .8rem 4rem 1.4rem; min-height: 3.4rem; }
.lightbox button { position: absolute; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: .55rem .9rem; border-radius: 980px; background: rgba(255,255,255,.14); color: #fff; transition: background var(--t1) var(--ease); }
.lightbox button:hover { background: rgba(255,255,255,.26); }
.lightbox .lb-close { top: 1rem; right: 1.25rem; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border-radius: 50%; font-size: 1.9rem; line-height: 1; letter-spacing: 0; text-transform: none; display: grid; place-items: center; }
.lightbox .lb-prev { left: 1.25rem; }
.lightbox .lb-next { right: 1.25rem; }
.lightbox .lb-prev span, .lightbox .lb-next span { display: block; margin-top: -.15em; }
.lightbox .lb-count { position: absolute; top: 1.3rem; left: 1.5rem; font-size: .85rem; letter-spacing: .06em; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 720px) {
  .lightbox img { padding: 3.5rem .5rem 0; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; width: 44px; height: 44px; }
  .lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; }
  .lightbox figcaption { padding: .6rem 4.5rem 4.5rem; }
}

/* --- Page profil ---------------------------------------------------------------- */
.profile-head {
  padding-block: clamp(3.5rem, 10vh, 7rem) clamp(2.5rem, 6vh, 4rem);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.2rem;
}
.profile-head .pic { width: clamp(140px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: .6rem; }
.profile-head .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.profile-head h1 { font-size: clamp(2.4rem, 5.6vw, 6rem); max-width: 14ch; }
.profile-text { padding-bottom: clamp(3rem, 8vh, 5.5rem); }
.profile-text p { font-size: 1.25rem; line-height: 1.55; margin-bottom: 1.4rem; text-wrap: pretty; }
.profile-text p:first-child { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.32; font-weight: 500; letter-spacing: -.02em; margin-bottom: 1.8rem; }
.profile-text .actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 2rem; }
/* Deux colonnes : la carte Outils (la plus haute) occupe la gauche sur toute la hauteur,
   Expertise / Formation / Actualité s'empilent à droite — aucune case vide. */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding-bottom: var(--section);
}
.card.tools { grid-row: span 3; }
.card { background: var(--grey); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2.2rem); display: grid; align-content: start; gap: 1rem; }
.card .eyebrow { color: var(--red); }
.card h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.card ul { display: grid; gap: .55rem; }
.card li { display: grid; gap: .1rem; font-size: 1.02rem; }
.card li span { color: var(--mute); font-size: .88rem; }
.card li b { font-weight: 600; }
.card.tags ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.card.tags li { padding: .45rem .9rem; border-radius: 980px; background: #fff; font-size: .95rem; }
.card .news li { grid-template-columns: minmax(3.4rem, max-content) 1fr; gap: .8rem; }
.card .news li b { white-space: nowrap; }
.card .news li b { color: var(--red); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card.tools { grid-row: auto; } }
.wide-photo { padding-bottom: var(--section); }
.wide-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); filter: grayscale(1); }
.wide-photo figcaption { text-align: center; font-size: .9rem; color: var(--mute); padding-top: .9rem; }
@media (max-width: 720px) { .wide-photo img { aspect-ratio: 4 / 3; } }

/* --- Contact : bandeau qui avance avec le défilement (site.js), jamais tout seul ------ */
.foot-mq {
  position: relative;
  z-index: 1;
  margin: var(--section) calc(-1 * var(--margin)) 0;
  overflow: hidden;
  padding-block: clamp(.6rem, 2vh, 1.3rem);
  border-block: 1px solid rgba(255, 255, 255, .28);
}
.foot-mq-track { display: flex; width: max-content; will-change: transform; }
.foot-mq-track span { white-space: nowrap; font-stretch: 118%; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-size: clamp(3rem, 9.5vw, 9rem); padding-right: .25em; }
.foot-mq-track b { font-weight: 800; color: #B8121A; }
.foot-mq + .foot-bottom { margin-top: clamp(2.5rem, 7vh, 4.5rem); }

/* --- Film piloté par le défilement (page projet, `sequence` dans content.js) -----------
   Caché sans JavaScript, avec « réduire les animations » ou en économie de données : la page garde
   alors la vidéo en ouverture. Sinon, un canevas épinglé sous l'en-tête ; 10 vh de défilement par dessin. */
.seq { display: none; }
.motion:not(.save-data) .seq {
  display: block;
  position: relative;
  height: calc(var(--n, 53) * 10vh + 100svh - var(--header-h));
  background: var(--black);
  color: #fff;
}
.seq-pin { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; }
.seq-frame { position: absolute; inset: 0; background: var(--black); transform-origin: 50% 45%; }
.seq-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .78)); }
.seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-load {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: .5rem .9rem; border-radius: 980px; background: rgba(0, 0, 0, .55); color: var(--mute-dark);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; white-space: nowrap;
  transition: opacity var(--t2) var(--ease);
}
.seq.is-ready .seq-load { opacity: 0; }
.seq-intro { position: absolute; left: var(--margin); right: var(--margin); bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: .6rem; max-width: 30rem; }
.seq-intro .eyebrow { color: var(--red); }
.seq-hint { font-stretch: 106%; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.seq-steps { position: absolute; left: var(--margin); right: var(--margin); bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px)); max-width: 30rem; }
.seq-steps li { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .55rem; opacity: 0; transition: opacity var(--t2) var(--ease); }
.seq-steps li.on { opacity: 1; }
.seq-steps .n { font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--mute-dark); font-variant-numeric: tabular-nums; }
.seq-steps .t { display: block; overflow: hidden; padding-block: .06em .14em; }
.seq-steps .t > span { display: block; font-stretch: 106%; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(1.45rem, 2.5vw, 2.4rem); text-wrap: balance; }
.seq-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.seq-bar i { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
/* écran horizontal : le dessin vertical au centre, le texte à gauche */
@media (min-width: 768px) and (min-aspect-ratio: 5/4) {
  .seq { --fh: calc(100svh - var(--header-h) - 2 * clamp(16px, 3.2vh, 34px)); }
  .seq-frame { inset: auto; top: 50%; left: 50%; translate: -50% -50%; height: var(--fh); aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; }
  .seq-frame::after { display: none; }
  .seq-intro, .seq-steps { right: auto; width: calc(50vw - var(--fh) * 9 / 32 - var(--margin) - 3vw); max-width: 26rem; }
  .seq-intro { top: 50%; bottom: auto; translate: 0 -50%; }
  .seq-steps { bottom: 14vh; }
}

/* --- Titres qui se lèvent ligne par ligne (site.js découpe les [data-split]) ------------
   Cachés le temps de la découpe ; si le script ne tourne pas, ils réapparaissent seuls après 2,5 s. */
.motion [data-split]:not(.is-split) { visibility: hidden; animation: split-wait 0s 2.5s forwards; }
@keyframes split-wait { to { visibility: visible; } }
.sl, .ln, .li { display: block; }
.ln { overflow: hidden; padding-block: .08em .14em; margin-block: -.08em -.14em; }
.is-split:not(.in) .li { transform: translateY(115%); }
.is-split.in .li { transform: none; transition: transform var(--t3) var(--ease) calc(var(--l, 0) * 90ms); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Logotype de la couverture : les lettres montent une à une, une fois par visite ---- */
.motion.kin .cover-inner > .word { animation: none; }
.motion.kin .cover .word .k { animation: letter var(--t3) var(--ease) both; animation-delay: calc(.15s + var(--k) * 65ms); }
@keyframes letter { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }

/* --- Passage d'une page à l'autre : l'image cliquée devient l'image d'ouverture ---------
   Chrome, Edge et Safari ; ailleurs la page change normalement. site.js nomme l'image cliquée. */
@view-transition { navigation: auto; }
.vt-hero .frame { view-transition-name: hero; }
.vt-out .vt-hero .frame { view-transition-name: none; }
::view-transition-group(hero) { animation-duration: var(--t2); animation-timing-function: var(--ease); }
::view-transition-old(hero), ::view-transition-new(hero) { height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t1); }

/* --- Focus clavier lisible sur les fonds rouges ------------------------------------------ */
.cover :focus-visible, .site-head.on-cover :focus-visible, .tone-red :focus-visible, .foot :focus-visible { outline-color: #fff; }
.foot .ccard :focus-visible { outline-color: var(--red); }
[tabindex="-1"]:focus { outline: none; }

/* --- Défilement lissé (Lenis, site.js) ---------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* --- Apparition au défilement ----------------------------------------------------------
   Seulement quand JavaScript tourne et que les animations sont permises (.motion, posée dans <head>) :
   sans script, tout reste visible. site.js fait arriver les éléments d'une rangée l'un après l'autre. */
.motion .reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal:not(.in) .ph img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .cover .mono, .cover-foot .dot::before, .cover-foot .down .arr, .cover-inner > *, .foot-status .dot { animation: none; }
  .cover-inner { transform: none; }
  .tile .ph img, .next .thumb img, .ccard .ext { transition: none; }
}
