/*
Theme Name: Etienne Schirmann
Theme URI: https://etienneschirmann.com
Author: Etienne Schirmann
Description: Thème bloc sur mesure du portfolio d'Etienne Schirmann, graphiste et directeur artistique à Toulouse. Tout le contenu reste modifiable dans l'éditeur de blocs.
Version: 1.1.3
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etienne-schirmann
Tags: block-theme, full-site-editing, portfolio, blog, dark
*/

/* ==========================================================
   Etienne Schirmann — portfolio · maquette (phase 2)
   Registre : charbon + vermillon, grotesque condensée,
   accents manuscrits, grain, bandes pleine largeur.
   ========================================================== */

:root {
  --ink: #151515;        /* charbon */
  --ink-2: #1c1c1c;      /* charbon levé */
  --ink-3: #232323;
  --paper: #e8e4df;      /* blanc cassé */
  --mute: #8a8a8a;       /* gris micro-texte */
  --dim: #5d5d5d;
  --red: #e5321b;        /* vermillon */

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --gut: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; }
.foot-loc { display: block; margin-top: 10px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
i, em { font-style: normal; }

/* ---------- matière ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 50;
  opacity: .11;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) }
  40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) }
  80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) }
}
.ruler {
  position: fixed; left: 0; top: 0; bottom: 0; width: 10px; z-index: 40; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(232,228,223,.22) 0 1px, transparent 1px 28px);
  -webkit-mask: linear-gradient(to right, #000 0 6px, transparent 6px);
          mask: linear-gradient(to right, #000 0 6px, transparent 6px);
}
.ticks { position: fixed; right: 0; top: 0; bottom: 0; width: 6px; z-index: 40; pointer-events: none; }
.ticks i { position: absolute; right: 0; width: 5px; height: 26px; background: var(--red); }
.ticks i:nth-child(1) { top: 14% } .ticks i:nth-child(2) { top: 33% }
.ticks i:nth-child(3) { top: 52% } .ticks i:nth-child(4) { top: 71% } .ticks i:nth-child(5) { top: 90% }

/* ---------- typo ---------- */
.title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(54px, 8.6vw, 150px);
  line-height: .9;
  letter-spacing: -.005em;
  hyphens: none;
  text-wrap: balance;
}
.title > span { display: block; }
.title.mid { font-size: clamp(44px, 6vw, 104px); }
.title.small { font-size: clamp(34px, 3.6vw, 60px); }
.title .l2 { padding-left: .32em; }
.red { color: var(--red); }
.dots { letter-spacing: -.06em; }
.micro {
  font-family: var(--f-text);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .01em; }

.brush { display: block; width: min(52vw, 760px); height: 18px; margin: 14px 0 0 .32em; }
.brush path { fill: var(--paper); }
.brush.short { width: min(36vw, 520px); }
.brush.tiny { width: 230px; height: 12px; margin: 8px 0 0 auto; }
.brush.wide { width: min(64vw, 980px); margin-left: 0; }
.scribble-arrow path { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.wrap { position: relative; padding: 0 var(--gut); max-width: 1680px; margin: 0 auto; }
section { position: relative; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gut);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(21,21,21,.92), rgba(21,21,21,0));
}
.brand { font-weight: 600; color: var(--paper); }
.brand span { color: var(--mute); font-weight: 400; }
.menu { display: flex; gap: 28px; }
.menu a { color: var(--mute); transition: color .2s; }
.menu a:hover { color: var(--red); }

/* ---------- 1 · hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  background: radial-gradient(120% 90% at 30% 40%, #1f1f1f 0%, var(--ink) 60%);
  overflow: hidden;
}
.hero .wrap { width: 100%; }
/* halo : la position suit la souris (js/app.js), la respiration reste en CSS */
.blob {
  position: absolute; left: 0; top: 0;
  width: 46vw; height: 46vw; max-width: 760px; max-height: 760px;
  margin: calc(min(46vw, 760px) / -2) 0 0 calc(min(46vw, 760px) / -2);
  translate: 38vw 62vh;
  background: radial-gradient(circle at 50% 50%, rgba(229,50,27,.58), rgba(150,20,10,.26) 40%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite alternate;
  will-change: translate;
}
@keyframes breathe { from { scale: 1; opacity: .9; } to { scale: 1.18; opacity: 1; } }
.hero .title { position: relative; font-size: clamp(56px, 7.4vw, 136px); }
.hero .title > span { white-space: nowrap; }
.hero-lede { margin: 30px 0 0 .55em; max-width: 520px; }
.stats { position: relative; margin: 54px 0 0 4vw; display: grid; gap: 8px; }
.stats li { display: flex; align-items: flex-start; gap: 12px; }
.stats b {
  font-family: var(--f-display); font-weight: 400;
  color: var(--red); font-size: clamp(42px, 4.6vw, 76px); line-height: .95;
}
.stats span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 10px; line-height: 1.5; }
.stats .s2 { margin-left: clamp(40px, 6vw, 110px); }
.stats .s3 { margin-left: clamp(70px, 11vw, 200px); }
.stats .s3 b { color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.hero-arrow { position: absolute; left: calc(var(--gut) - 6px); bottom: 70px; width: 46px; }
.scroll-hint {
  position: absolute; right: var(--gut); bottom: 34px; z-index: 2;
  color: var(--mute); font-size: 17px; transform: rotate(-4deg);
  padding: 8px 4px; cursor: pointer; transition: color .2s;
}
.scroll-hint i { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.scroll-hint:hover { color: var(--red); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- 2 · savoir-faire ---------- */
.skills {
  padding: clamp(110px, 16vh, 190px) 0 clamp(90px, 12vh, 140px);
  background: var(--ink-2);
  border-top: 1px solid #0e0e0e;
}
.skill-list { display: grid; gap: clamp(44px, 6vh, 72px); }
.skill-list h2 {
  position: relative;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  line-height: .95; letter-spacing: .002em;
}
.skill-list .dot {
  position: absolute; left: -.55em; bottom: .14em;
  width: .2em; height: .2em; background: var(--red);
}
.skill-list .micro { margin-top: 12px; letter-spacing: .22em; }
.skill-list .dim { color: var(--dim); }
.k1 { margin-left: 4vw; }  .k1 h2 { font-size: clamp(46px, 6.2vw, 108px); }
.k2 { margin-left: 32vw; } .k2 h2 { font-size: clamp(30px, 3.4vw, 58px); }
.k3 { margin-left: 12vw; } .k3 h2 { font-size: clamp(38px, 4.8vw, 84px); }
.k4 { margin-left: 46vw; } .k4 h2 { font-size: clamp(30px, 3.4vw, 58px); }

/* ---------- 3 · réalisations ---------- */
.works { padding: clamp(110px, 15vh, 180px) 0 clamp(90px, 12vh, 140px); background: var(--ink); overflow: hidden; }
.works .title .l2 { padding-left: .3em; }
.reel { margin-top: 70px; }
.reel-track {
  display: flex; gap: 26px;
  padding: 40px calc(50vw - 170px);
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
  cursor: grab;
  perspective: 1100px;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.drag { cursor: grabbing; }
.card {
  flex: 0 0 auto; width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 3;
  position: relative;
  background: var(--paper); padding: 7px;
  box-shadow: 0 30px 50px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
  transform-style: preserve-3d;
  transition: transform .15s linear, filter .3s;
  will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); pointer-events: none; user-select: none; }
.card figcaption {
  position: absolute; left: 7px; bottom: -26px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.somehow { position: relative; margin-top: 70px; text-align: right; }
.somehow .title .l2 { padding-left: 0; }
.somehow .micro { margin-top: 10px; }
.somehow .tag { position: absolute; left: 8vw; top: 6px; color: var(--mute); font-size: 18px; transform: rotate(-6deg); }

/* ---------- 4 · parcours ---------- */
.path {
  padding: clamp(120px, 18vh, 220px) 0 clamp(70px, 10vh, 110px);
  background: linear-gradient(to bottom, #121212, var(--ink-2) 70%);
  overflow: hidden;
}
.eyebrow { font-size: 11px; color: #b5b1ac; letter-spacing: .2em; }
.eyebrow span { color: var(--mute); margin: 0 .5em; }
.eyebrow em { font-style: normal; font-size: 26px; letter-spacing: 0; text-transform: none; display: inline-block; transform: rotate(-4deg) translateY(-4px); }
.giant-row { display: flex; align-items: center; gap: 2.4vw; margin-top: 46px; }
.giant-arrow { width: clamp(40px, 5vw, 80px); flex: 0 0 auto; align-self: flex-end; margin-bottom: 3vw; }

/* logo typographique */
.wordmark {
  --s: clamp(84px, 15vw, 270px);
  position: relative; display: inline-block;
  padding: .42em .36em .46em .34em;
  font-size: var(--s); line-height: 1;
}
.wm-name {
  display: block;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: 1em; line-height: .8; letter-spacing: -.028em;
  white-space: nowrap;
  /* coupe pochoir : une fente charbon traverse les lettres */
  color: transparent;
  background: linear-gradient(to bottom, var(--red) 0 53%, transparent 53% 58.5%, var(--red) 58.5%);
  -webkit-background-clip: text; background-clip: text;
}
.wm-first {
  position: absolute; left: calc(var(--s) * .21); top: calc(var(--s) * .17); z-index: 2;
  font-size: .3em; line-height: 1; color: var(--paper);
  transform: rotate(-9deg);
  text-shadow: 0 .05em .15em rgba(0,0,0,.6);
}
.wm-reg {
  position: absolute; right: calc(var(--s) * .17); top: calc(var(--s) * .2);
  font-family: var(--f-text); font-weight: 500; font-size: .11em; color: var(--paper);
}
.wm-tag {
  position: absolute; right: calc(var(--s) * .34); bottom: calc(var(--s) * .15);
  display: flex; gap: 1.4em; align-items: center;
  font-family: var(--f-text); font-size: max(10px, .052em); letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
}
.wm-tag span + span { color: var(--mute); }
.wm-tag::before { content: ""; width: 4em; height: 1px; background: var(--red); }
.crop { position: absolute; width: calc(var(--s) * .09); height: calc(var(--s) * .09); border: 0 solid rgba(232,228,223,.45); }
.c-tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.c-tr { right: 0; top: 0; border-width: 1px 1px 0 0; }
.c-bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.c-br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.serious { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.serious b {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 38px); letter-spacing: .01em;
}
.serious .micro { max-width: 460px; }
.path-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: clamp(90px, 14vh, 160px); gap: 30px; flex-wrap: wrap; }
.meta { display: grid; gap: 14px; }
.meta dt { font-size: 9.5px; }
.meta dd { color: var(--paper); font-size: 10.5px; }
.showcase { font-size: clamp(22px, 2vw, 30px); color: var(--paper); transform: rotate(-3deg); display: inline-block; transition: color .2s; }
.showcase:hover { color: var(--red); }

/* ---------- 5 · projets à la une ---------- */
.time { padding: clamp(110px, 15vh, 170px) 0 clamp(100px, 13vh, 150px); background: #111; }
.time-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.time-head .title > span { display: inline; }
.badge {
  display: inline-block; padding: 10px 26px;
  border: 2px solid var(--paper); border-radius: 50%;
  font-size: 18px; color: var(--paper);
  transform: rotate(-7deg);
}
.feature {
  display: grid; grid-template-columns: 60px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 50px); align-items: center;
  margin-top: clamp(70px, 10vh, 110px);
}
.idx { align-self: start; color: var(--paper); font-size: 12px; }
.collage { position: relative; aspect-ratio: 16 / 10; }
.collage img { position: absolute; object-fit: cover; box-shadow: 0 24px 40px -12px rgba(0,0,0,.9); }
.c1 { left: 0; top: 4%; width: 26%; height: 58%; }
.c2 { left: 29%; top: 0; width: 24%; height: 50%; z-index: 2; }
.c3 { left: 56%; top: 8%; width: 22%; height: 44%; }
.c4 { left: 3%; top: 66%; width: 28%; height: 34%; }
.c5 { left: 34%; top: 54%; width: 22%; height: 46%; z-index: 2; }
.c6 { left: 59%; top: 56%; width: 30%; height: 44%; outline: 6px solid var(--red); outline-offset: -6px; }
.feature-title {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(44px, 5vw, 86px); line-height: .9; margin: 14px 0 18px;
}
.wide-badge { display: table; margin: clamp(70px, 9vh, 100px) 0 0 auto; font-size: 17px; transition: color .2s, border-color .2s; }
.wide-badge:hover { color: var(--red); border-color: var(--red); }
.disciplines {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px clamp(30px, 8vw, 160px); margin-top: 44px;
}
.disciplines li { display: grid; gap: 4px; }
.disciplines b {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(22px, 2vw, 32px); letter-spacing: .01em;
}
.disciplines li > .micro:first-child { color: var(--paper); font-size: 9.5px; }

/* ---------- 6 · jusqu'où ---------- */
.far { padding: clamp(130px, 18vh, 210px) 0 clamp(60px, 8vh, 100px); background: var(--ink); overflow: hidden; }
.center { text-align: center; }
.far .title > span { display: inline; }
.far-brush { margin: 12px auto 0; width: min(54vw, 820px); }
.sign { color: var(--paper); font-size: 20px; margin: 16px 0 0 auto; width: max-content; padding-right: 12vw; transform: rotate(-3deg); }
.far-lede { margin-top: 26px; }
.fan { position: relative; height: clamp(260px, 24vw, 380px); margin-top: 70px; }
.fan figure {
  position: absolute; left: 50%; top: 0;
  width: clamp(150px, 15vw, 240px); aspect-ratio: 4 / 3;
  padding: 6px; background: var(--paper);
  transform-origin: 50% 700%;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.85);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.fan img { width: 100%; height: 100%; object-fit: cover; }
.fan .f1 { transform: translateX(-50%) rotate(-26deg); }
.fan .f2 { transform: translateX(-50%) rotate(-13deg); }
.fan .f3 { transform: translateX(-50%) rotate(0deg); z-index: 2; }
.fan .f4 { transform: translateX(-50%) rotate(13deg); }
.fan .f5 { transform: translateX(-50%) rotate(26deg); }
.fan:hover .f1 { transform: translateX(-50%) rotate(-29deg); }
.fan:hover .f5 { transform: translateX(-50%) rotate(29deg); }
.fan-word {
  position: absolute; left: 50%; top: clamp(150px, 14vw, 230px); z-index: 3;
  transform: translateX(-50%) rotate(-5deg);
  font-size: clamp(26px, 3vw, 46px); color: var(--paper);
  text-shadow: 0 4px 24px rgba(0,0,0,.95);
  white-space: nowrap;
}

/* ---------- 7 · alors ---------- */
.so { padding: clamp(110px, 16vh, 190px) 0; background: var(--ink-2); }
.so-txt {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(48px, 7.6vw, 132px); line-height: .9;
  color: #3a3a3a; padding-left: 4vw;
}
.so-txt span { color: var(--paper); }

/* ---------- 8 · contact ---------- */
.cta { min-height: 88vh; display: grid; place-items: center; overflow: hidden; background: #0d0d0d; }
.mosaic {
  position: absolute; inset: -4%;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  transform: rotate(-4deg) scale(1.08);
  opacity: .32; filter: grayscale(.35) contrast(1.1);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 50%, rgba(13,13,13,.92) 0%, rgba(13,13,13,.7) 55%, rgba(13,13,13,.35) 100%);
}
.cta-in { position: relative; z-index: 2; text-align: center; padding: 0 var(--gut); }
.cta-title { font-size: clamp(50px, 7.4vw, 128px); }
.cta-title > span { display: inline; }
.mail {
  display: inline-block; margin-top: 30px;
  padding: 14px 28px; border: 1px solid rgba(232,228,223,.35);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.mail:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: #0a0a0a; padding: clamp(80px, 11vh, 120px) 0 0; overflow: hidden; border-top: 1px solid #1f1f1f; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.wordmark.sm { --s: clamp(54px, 6vw, 96px); padding: .36em .3em .1em .3em; }
.foot-pitch {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 36px); line-height: 1; max-width: 520px; text-align: right;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 40px; margin-top: clamp(60px, 9vh, 100px);
  padding-top: 34px; border-top: 1px solid #222;
}
.foot-cols ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; }
.foot-cols a { transition: color .2s; }
.foot-cols a:hover { color: var(--red); }
.foot-cols .mute { color: var(--mute); }
.foot-up { align-self: start; font-size: 20px; line-height: 1.15; text-align: right; transform: rotate(-4deg); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(60px, 9vh, 90px); padding: 20px 0 0;
  border-top: 1px solid #222; font-size: 9.5px;
}
.foot-bottom a:hover { color: var(--paper); }
.foot-giant {
  font-family: var(--f-display); text-transform: uppercase; white-space: nowrap;
  font-size: 23.4vw; line-height: .74; letter-spacing: -.03em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(229,50,27,.45);
  margin: 30px 0 -4.2vw; user-select: none;
}

/* ---------- effet TV vintage ---------- */
.crt {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.26) 0 1px, rgba(255,255,255,.018) 1px 2px, transparent 2px 3px),
    radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0,0,0,.6) 100%);
  animation: flicker 4.5s steps(1) infinite;
}
/* barre de balayage qui descend l'écran */
.crt::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(232,228,223,.035) 45%, rgba(232,228,223,.06) 50%, rgba(232,228,223,.035) 55%, transparent);
  animation: roll 7s linear infinite;
}
/* neige : parasites qui crépitent */
.crt::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='s'><feTurbulence type='turbulence' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .6  0 0 0 0 .6  0 0 0 0 .6  0 0 0 1.4 -.55'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
  opacity: .1; mix-blend-mode: screen;
  animation: snow .35s steps(4) infinite;
}
@keyframes roll { to { transform: translateY(680%); } }
@keyframes snow {
  0% { transform: translate(0,0) } 25% { transform: translate(-7%,4%) }
  50% { transform: translate(5%,-6%) } 75% { transform: translate(-3%,-8%) } 100% { transform: translate(0,0) }
}
@keyframes flicker {
  0%, 100% { opacity: 1 } 31% { opacity: .9 } 32% { opacity: 1 }
  67% { opacity: .94 } 68% { opacity: 1 } 88% { opacity: .88 } 88.6% { opacity: 1 }
}
body.tv-on main, body.tv-on .site-foot { animation: tvon 1s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes tvon {
  0% { transform: scaleY(.006) scaleX(.6); filter: brightness(4) grayscale(1); }
  35% { transform: scaleY(.006) scaleX(1); filter: brightness(3) grayscale(1); }
  70% { transform: scaleY(1.02); filter: brightness(1.3) grayscale(.4); }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .crt, .crt::before, .crt::after, .blob, .scroll-hint i { animation: none !important; }
  body.tv-on main, body.tv-on .site-foot { animation: none; }
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .menu { gap: 16px; }
  .brand span { display: none; }
  .k1, .k2, .k3, .k4 { margin-left: 6vw; }
  .k2, .k4 { margin-left: 16vw; }
  .feature { grid-template-columns: 1fr; }
  .idx { display: none; }
  .disciplines { grid-template-columns: 1fr; }
  .sign { padding-right: 0; margin: 16px auto 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-pitch { text-align: left; }
}
@media (max-width: 560px) {
  .hero .title { font-size: 50px; }
  .hero .title > span { white-space: normal; }
  .title .l2 { padding-left: 0; }
  .brush { margin-left: 0; width: 78vw; }
  .stats { margin-left: 0; }
  .k2, .k4 { margin-left: 6vw; }
  .wordmark { --s: 19vw; }
  .wm-tag { position: static; margin-top: 14px; flex-wrap: wrap; gap: 6px 14px; font-size: 9px; letter-spacing: .14em; }
  .wm-tag::before { display: none; }
  .wordmark.sm { --s: 15vw; }
  .giant-arrow { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-up { text-align: left; }
  .topbar { font-size: 9px; letter-spacing: .08em; padding-top: 14px; }
  .menu { gap: 12px; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .fan figure { width: 110px; transform-origin: 50% 700%; }
  .mail { font-size: 11px; padding: 12px 16px; letter-spacing: .08em; }
}

/* ==========================================================
   PAGES INTERNES (phase 3) — même registre, mêmes jetons
   ========================================================== */
.menu a.is-active { color: var(--paper); }
.menu a.is-active::after { content: ""; display: block; height: 2px; background: var(--red); margin-top: 3px; }

/* en-tête de page */
.hero--page { min-height: 78vh; min-height: 78svh; padding: 140px 0 110px; }
.hero--page .eyebrow { margin-bottom: 30px; }
.hero--page .title { font-size: clamp(52px, 7vw, 128px); }
.hero--contact { min-height: 92vh; min-height: 92svh; }
.big-mail {
  display: inline-block; margin: 46px 0 0 .1em;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 62px); line-height: 1; letter-spacing: .005em;
  color: var(--paper); border-bottom: 3px solid var(--red); padding-bottom: 6px;
  transition: color .2s;
  overflow-wrap: anywhere;
}
.big-mail:hover { color: var(--red); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.sec-head .title > span { display: inline; }

/* skills · disciplines en lignes */
.rows-sec { padding: clamp(110px, 15vh, 170px) 0 clamp(90px, 12vh, 140px); background: var(--ink-2); border-top: 1px solid #0e0e0e; }
.rows { list-style: none; margin: clamp(60px, 8vh, 90px) 0 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 70px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(26px, 3.4vh, 40px) 0; border-top: 1px solid #2a2a2a;
}
.row:last-child { border-bottom: 1px solid #2a2a2a; }
.row-idx { color: var(--paper); }
.row-name {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 88px); line-height: .9; letter-spacing: .002em;
  transition: color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.row-name .dim { color: var(--dim); }
.row:hover .row-name { color: var(--red); transform: translateX(14px); }
.row-txt p:first-child { font-size: 15px; color: #c9c5c0; max-width: 460px; }
.row-txt .micro { margin-top: 10px; }

/* skills · logiciels */
.tools-sec { padding: clamp(110px, 15vh, 180px) 0; background: var(--ink); overflow: hidden; }
.tools {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin-top: clamp(60px, 8vh, 90px); border-left: 1px solid #2a2a2a; border-top: 1px solid #2a2a2a;
}
.tool {
  position: relative; display: grid; gap: 6px; align-content: end;
  min-height: clamp(190px, 17vw, 260px); padding: 26px;
  border-right: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;
  transition: background .25s;
}
.tool b {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 6vw, 104px); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
  transition: color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.tool-name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: .01em; }
.tool:hover { background: #1b1b1b; }
.tool:hover b { color: var(--red); transform: rotate(-4deg); }
.tools-note { display: block; text-align: right; margin-top: 26px; font-size: 22px; color: var(--mute); transform: rotate(-3deg); }

/* skills · méthode */
.method-sec { padding: clamp(110px, 15vh, 170px) 0 clamp(110px, 15vh, 170px); background: #111; }
.method-sec .title { margin-top: 26px; }
.steps {
  list-style: none; padding: 0; margin: clamp(60px, 8vh, 90px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 50px);
}
.steps li { position: relative; padding-top: 8px; }
.steps li:nth-child(2) { margin-top: 50px; }
.steps li:nth-child(3) { margin-top: 100px; }
.steps li:nth-child(4) { margin-top: 150px; }
.steps b {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(90px, 9vw, 160px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.steps h3 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 42px); margin: 14px 0 10px;
}

/* appel court */
.cta--short { min-height: 64vh; }
.cta--short .mosaic { grid-template-rows: repeat(2, 1fr); inset: -10% -4%; }

/* portfolio */
.pf-sec { padding: clamp(80px, 11vh, 120px) 0 clamp(110px, 15vh, 170px); background: var(--ink-2); border-top: 1px solid #0e0e0e; }
.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 500 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); background: transparent; border: 1px solid #333; padding: 11px 16px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter:hover { color: var(--paper); border-color: var(--paper); }
.filter.is-on { color: #fff; background: var(--red); border-color: var(--red); }
.pf-count { font-size: 20px; color: var(--paper); transform: rotate(-3deg); }
.pf-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense;
  gap: clamp(40px, 5vw, 70px) clamp(20px, 2.4vw, 36px); margin-top: clamp(50px, 7vh, 80px);
}
.pf-item { margin: 0; }
.pf-item.is-hidden { display: none; }
.pf-wide { grid-column: span 2; }
.pf-img {
  background: var(--paper); padding: 7px; aspect-ratio: 4 / 3; overflow: hidden;
  box-shadow: 0 30px 50px -14px rgba(0,0,0,.85);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.pf-wide .pf-img { aspect-ratio: 16 / 9; }
.pf-tall { grid-row: span 2; }
.pf-tall .pf-link { display: flex; flex-direction: column; height: 100%; }
.pf-tall .pf-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 360px; }
.pf-tall .pf-img img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
.pf-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.pf-item:hover .pf-img { transform: rotate(-1.2deg) translateY(-6px); }
.pf-item:hover .pf-img img { transform: scale(1.05); filter: none; }
.pf-item figcaption { display: grid; gap: 4px; margin-top: 18px; }
.pf-item figcaption b {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 2vw, 34px); line-height: 1; transition: color .2s;
}
.pf-item:hover figcaption b { color: var(--red); }
.pf-item figcaption .micro:first-child { color: var(--paper); }
.pf-empty { margin-top: 40px; font-size: 22px; color: var(--mute); }

/* contact */
.form-sec { padding: clamp(110px, 15vh, 170px) 0; background: var(--ink-2); border-top: 1px solid #0e0e0e; }
.form-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.form-aside .title { margin-bottom: 24px; }
.form-aside .title .l2 { padding-left: 0; }
.form-aside > .micro { max-width: 380px; }
.form-aside .meta { margin: 46px 0 50px; }
.form-aside .meta dd { font-size: 14px; }
.form-aside .meta a:hover { color: var(--red); }
.form { display: grid; gap: 34px; }
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend {
  font-family: var(--f-display); text-transform: uppercase; font-size: 22px; letter-spacing: .02em; padding: 0;
}
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; background: transparent; color: var(--paper);
  font: 400 16px/1.5 var(--f-text);
  border: 0; border-bottom: 1px solid #3a3a3a; padding: 10px 0; border-radius: 0;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { font: inherit; text-transform: none; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; font: 500 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); border: 1px solid #333; padding: 11px 16px; transition: all .2s;
}
.chips label:hover span { color: var(--paper); border-color: var(--paper); }
.chips input:checked + span { color: #fff; background: var(--red); border-color: var(--red); }
.chips input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.send {
  font-family: var(--f-display); text-transform: uppercase; font-size: 26px; letter-spacing: .02em;
  color: #fff; background: var(--red); border: 0; padding: 18px 40px; cursor: pointer;
  box-shadow: 8px 8px 0 #000; transition: transform .2s, box-shadow .2s;
}
.send:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 #000; }
.form-ok { font-size: 22px; color: var(--paper); transform: rotate(-3deg); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }

@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row-idx { display: none; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(n) { margin-top: 0; }
  .steps li:nth-child(even) { margin-top: 50px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero--page .title { font-size: 46px; }
  .tool { min-height: 160px; padding: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { margin-top: 0; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-wide { grid-column: auto; }
  .pf-tall { grid-row: auto; }
  .pf-tall .pf-img { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
  .send { font-size: 22px; padding: 16px 28px; }
}

/* ---------- portfolio · fiches projet en panneau ---------- */
.pf-link { display: block; color: inherit; }
.pf-img { position: relative; }
.pf-open {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  font-size: 18px; color: #fff; background: var(--red); padding: 6px 14px;
  transform: rotate(-4deg) translateY(8px); opacity: 0;
  transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.pf-item:hover .pf-open, .pf-link:focus-visible .pf-open { opacity: 1; transform: rotate(-4deg); }
.pf-link:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

body.case-open { overflow: hidden; }
.case-backdrop {
  position: fixed; inset: 0; z-index: 44;
  background: rgba(8,8,8,.72); backdrop-filter: blur(6px) grayscale(.6);
  opacity: 0; pointer-events: none; transition: opacity .45s;
}
body.case-open .case-backdrop { opacity: 1; pointer-events: auto; }
.case {
  position: fixed; left: 0; right: 0; bottom: 0; top: 4vh; z-index: 45;
  background: var(--ink); border-top: 3px solid var(--red);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -40px 80px rgba(0,0,0,.7);
  transform: translateY(104%); visibility: hidden;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s linear .6s;
}
.case.is-open { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.case.is-open .case-in { animation: zap .55s ease-out both; }
@keyframes zap {
  0% { filter: brightness(2.4) contrast(1.4) grayscale(1); opacity: .2; }
  30% { filter: brightness(1.5) grayscale(.6); opacity: 1; }
  100% { filter: none; }
}
.case-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gut);
  background: linear-gradient(to bottom, var(--ink) 60%, rgba(21,21,21,0));
}
.case-bar .micro { color: var(--paper); }
.case-close {
  font-size: 20px; color: var(--paper); background: none; border: 0; cursor: pointer; padding: 6px 2px;
  transform: rotate(-3deg); transition: color .2s;
}
.case-close:hover { color: var(--red); }
.case-in { max-width: 1440px; margin: 0 auto; padding: 30px var(--gut) 90px; }
.case-head .eyebrow { margin-bottom: 22px; }
.case-head .title { font-size: clamp(54px, 7.6vw, 136px); }
.case-head .title .l2 { padding-left: .32em; }
.case-lede { margin: 28px 0 0 .55em; max-width: 620px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #c9c5c0; }
.case-hero {
  margin: clamp(50px, 7vh, 80px) 0 0; background: var(--paper); padding: 8px;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.9);
  transform: rotate(-.8deg);
}
.case-hero { width: fit-content; max-width: 100%; margin-inline: auto; }
.case-hero img { display: block; width: auto; max-width: 100%; max-height: 82vh; }
.case-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 70px); margin-top: clamp(70px, 10vh, 110px);
}
.case-cols section:nth-child(2) { margin-top: 50px; }
.case-cols section:nth-child(3) { margin-top: 100px; }
.case-cols b {
  display: block; font-family: var(--f-display); font-weight: 400; line-height: .8;
  font-size: clamp(70px, 7vw, 120px); color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.case-cols h3 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 38px); margin: 14px 0 12px;
}
.case-cols p, .case-cols li { font-size: 15px; color: #c9c5c0; line-height: 1.6; }
.case-cols ul { display: grid; gap: 6px; }
.case-cols li { padding-left: 18px; position: relative; }
.case-cols li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--red); }
.case-gallery {
  columns: 3 260px; column-gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(80px, 11vh, 130px);
}
.case-gallery figure {
  break-inside: avoid; margin: 0 0 clamp(20px, 2.4vw, 36px);
  background: var(--paper); padding: 7px; box-shadow: 0 30px 50px -14px rgba(0,0,0,.85);
}
.case-gallery figure:nth-child(3n+2) { transform: rotate(1deg); }
.case-gallery figure:nth-child(3n) { transform: rotate(-1.4deg); }
.case-gallery img { display: block; width: 100%; height: auto; }
.case-meta {
  display: flex; flex-wrap: wrap; gap: 30px clamp(30px, 6vw, 100px);
  margin-top: clamp(70px, 9vh, 100px); padding-top: 30px; border-top: 1px solid #2a2a2a;
}
.case-meta dd { margin-top: 6px; font-size: 14px; }
.case-nav {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid #2a2a2a; font-size: clamp(18px, 1.6vw, 24px);
}
.case-nav a { transition: color .2s; }
.case-nav a:hover { color: var(--red); }
@media (max-width: 900px) {
  .case-cols { grid-template-columns: 1fr; }
  .case-cols section:nth-child(n) { margin-top: 0; }
}
@media (max-width: 560px) {
  .case { top: 2vh; }
  .case-head .title { font-size: 46px; }
  .case-head .title .l2, .case-lede { padding-left: 0; margin-left: 0; }
  .case-hero img { max-height: 70vh; }
  .pf-open { opacity: 1; transform: rotate(-4deg); font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .case, .case.is-open { transition: none; }
  .case.is-open .case-in { animation: none; }
}

/* ---------- accueil · intro en deux mises en page ----------
   Par défaut (mobile, sans script) : mise en page 1 puis 2, l'une sous l'autre.
   .intro.is-live (script, grand écran) : la section reste épinglée et les éléments
   [data-m] glissent de leur place « 1 » (les [data-slot] invisibles) à leur place « 2 ». */
.intro {
  --side: clamp(290px, 22vw, 400px);
  --fs: min(15.5vw, 34vh);
  background: radial-gradient(120% 90% at 30% 40%, #1f1f1f 0%, var(--ink) 60%);
  padding: 120px 0 70px;
}
.intro-pin { position: relative; }
.intro-a, .intro-b { position: relative; padding: 0 var(--gut); }
.intro .title { font-size: clamp(46px, 6vw, 118px); }
.intro .title > span { white-space: nowrap; }
.intro-lede { margin: 30px 0 0 .55em; max-width: 560px; font-size: 13px; letter-spacing: .1em; line-height: 1.7; text-transform: uppercase; color: #a19d98; }
.intro-stats { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 26px clamp(30px, 5vw, 90px); margin: clamp(40px, 7vh, 80px) 0 0; }
.intro-stats .scribble-arrow { width: 54px; margin-right: -10px; }
.intro-stats p { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
.intro-stats b { font-family: var(--f-display); font-weight: 400; color: var(--red); font-size: clamp(46px, 5vw, 92px); line-height: .82; }
.intro-stats span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a19d98; line-height: 1.45; }
.intro-stats p:last-child b { color: transparent; -webkit-text-stroke: 1.5px var(--red); }

.intro-side { display: none; }
.intro-tag { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1; letter-spacing: .01em; }
.intro [data-m] { transform-origin: 0 0; }
.intro-top { display: none; }
.intro-nav { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.intro-nav a, .slot-nav span { font-family: var(--f-display); text-transform: uppercase; font-size: 25px; line-height: 1.1; color: var(--paper); white-space: nowrap; transition: color .2s; }
.intro-nav a:hover { color: var(--red); }
.intro-nav i, .slot-nav i { font-style: normal; font-size: .62em; color: var(--mute); margin-right: .4em; }
.intro-nav a[aria-current] { color: var(--red); }

.intro-b { margin-top: 70px; }
.intro-hero { position: relative; display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 30px); margin-top: 40px; }
.intro-name {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--fs); line-height: .84; letter-spacing: -.005em; transform-origin: 0 0;
}
.intro-name span { display: block; white-space: nowrap; text-shadow: 0 0 28px rgba(232,228,223,.14); }
.intro-name .red { text-shadow: 0 0 34px rgba(229,50,27,.38); }
.intro-photo {
  margin: 0; flex: none; position: relative; transform-origin: 0 0;
  height: calc(var(--fs) * 1.68); aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2);
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; filter: contrast(1.05); }
.intro-photo figcaption {
  position: absolute; left: 12px; top: 10px; font-family: var(--f-display); text-transform: uppercase;
  font-size: 15px; letter-spacing: .04em; color: var(--ink); mix-blend-mode: normal;
  background: rgba(232,228,223,.86); padding: 2px 6px;
}
.intro-quip { position: absolute; right: calc(var(--fs) * 1.26 + 40px); top: -1.9em; margin: 0; font-size: clamp(16px, 1.5vw, 26px); color: var(--paper); transform: rotate(-2deg); }
.intro-foot { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-top: 18px; }
.intro-foot > a { font-size: clamp(18px, 1.7vw, 28px); color: var(--paper); white-space: nowrap; transition: color .2s; }
.intro-foot > a:hover { color: var(--red); }
.intro-foot .brush { flex: 1 1 auto; margin: 6px 0 0; width: auto; height: 16px; }
.intro-links { display: flex; gap: 24px; margin: 0; }
.intro-links a { font-family: var(--f-display); text-transform: uppercase; font-size: 16px; letter-spacing: .05em; white-space: nowrap; transition: color .2s; }
.intro-links a:hover { color: var(--red); }

/* mode épinglé */
.intro.is-live { height: 250vh; padding: 0; }
.intro.is-live .intro-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.intro.is-live .intro-a {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--side);
  gap: clamp(30px, 4vw, 70px); padding-right: max(50px, calc(var(--gut) * .6));
}
.intro.is-live .intro-main { align-self: center; padding-top: 30px; }
.intro.is-live .intro-side { display: flex; flex-direction: column; gap: 13px; height: 100%; padding: 18px 0 20px; min-height: 0; }
.intro.is-live [data-slot] { visibility: hidden; }
.slot-name { font-family: var(--f-display); text-transform: uppercase; font-size: calc(var(--side) / 3.95); line-height: .84; align-self: flex-start; }
.slot-name span { display: block; white-space: nowrap; }
.side-brush.brush { width: 86%; height: 12px; margin: -4px 0 0; }
.side-icons { display: flex; gap: 14px; margin-top: 8px; }
.side-icons svg { width: 30px; height: 30px; fill: none; stroke: var(--paper); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.side-icons a:hover svg { stroke: var(--red); }
.side-role { margin: 0; font-size: 14px; line-height: 1.55; color: #cfcac4; }
.side-badges { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.side-badges span { display: inline-flex; align-items: center; gap: 7px; }
.side-badges i { width: 9px; height: 9px; border: 1.5px solid var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.side-badges i.globe { border-radius: 50%; transform: none; }
.slot-nav { display: grid; grid-template-columns: auto auto; justify-content: start; justify-items: start; gap: 6px 26px; }
.slot-photo { flex: 1 1 auto; min-height: 120px; }
.side-mail {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1px solid #3a3a3a; padding: 14px 16px; font-size: 14px; letter-spacing: .04em; transition: border-color .2s, color .2s;
}
.side-mail svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; }
.side-mail:hover { border-color: var(--red); color: var(--red); }
.intro.is-live .intro-b { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; padding-top: 18px; padding-bottom: 24px; pointer-events: none; }
.intro.is-live .intro-b a, .intro.is-live .intro-b figure { pointer-events: auto; }
.intro.is-live .intro-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.intro.is-live .intro-top .micro { margin: 8px 0 0; }
.intro.is-live .intro-hero { margin-top: auto; }
.intro.is-live [data-m] { will-change: transform; }
body.intro-on .topbar { opacity: 0; pointer-events: none; }
.topbar { transition: opacity .35s; }

/* nom de la section en cours, à droite */
.slide-name {
  position: fixed; right: 16px; bottom: 30px; z-index: 35; pointer-events: none;
  writing-mode: vertical-rl; font-family: var(--f-display); text-transform: uppercase;
  font-size: 15px; letter-spacing: .08em; color: var(--paper); white-space: nowrap;
  transition: opacity .3s;
}
.slide-name b { font-weight: 400; color: var(--red); }
.slide-name i { font-style: normal; color: var(--mute); }
.slide-name { height: 12em; } /* le début du texte reste fixe pendant l'écriture */
.slide-name::after { content: ""; display: inline-block; inline-size: 2px; block-size: .95em; margin-top: .12em; background: var(--red); opacity: 0; }
.slide-name.is-typing::after { opacity: 1; }
.slide-name.is-idle::after { animation: caret 1s steps(1) 3; }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slide-name::after { display: none; } }

@media (max-width: 899px) {
  .intro { --fs: min(22vw, calc((100vw - 2 * var(--gut) - 16px) / 4.4)); padding-top: 100px; }
  .intro-b { margin-top: 60px; }
  .intro-hero { flex-wrap: wrap; }
  .intro-photo { height: auto; width: 60%; }
  .intro-quip { position: static; order: -1; width: 100%; }
  .intro-foot { flex-wrap: wrap; }
  .intro-foot .brush { order: 3; flex-basis: 100%; }
  .slide-name { font-size: 12px; right: 10px; bottom: 18px; }
}
@media (max-width: 560px) {
  .intro .title { font-size: 40px; }
  .intro .title > span { white-space: normal; }
}

/* ---------- lab · liste ---------- */
.lab-note { margin: 26px 0 0 .55em; font-size: 20px; color: var(--paper); transform: rotate(-2deg); display: inline-block; }
.lab-sec { padding: 30px 0 clamp(100px, 14vh, 160px); }
.lab-feat { margin-top: clamp(50px, 7vh, 80px); }
.lab-feat.is-hidden, .lab-row.is-hidden { display: none; }
.lab-feat-link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.lab-feat-img { background: var(--paper); padding: 8px; transform: rotate(-1.4deg); box-shadow: 0 40px 70px -20px rgba(0,0,0,.9); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.lab-feat-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lab-feat-link:hover .lab-feat-img { transform: rotate(0) scale(1.02); }
.lab-feat-txt { display: grid; gap: 14px; justify-items: start; }
.lab-feat-txt .title { font-size: clamp(44px, 5.2vw, 96px); }
.lab-feat-txt .lab-lede { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: #c9c5c0; max-width: 460px; }
.lab-meta b { font-weight: 500; color: var(--red); }
.lab-go { color: var(--red); font-size: 20px; transition: transform .3s; }
.lab-feat-link:hover .lab-go, .lab-row a:hover .lab-go { transform: translateX(8px); }
.lab-stamp {
  display: inline-block; font-size: 15px; color: var(--red); border: 2px solid var(--red);
  padding: 2px 10px; transform: rotate(-6deg); line-height: 1.3;
}
.lab-list { list-style: none; margin: clamp(80px, 11vh, 130px) 0 0; padding: 0; border-top: 1px solid #2a2a2a; }
.lab-row a {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 230px; gap: 30px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid #2a2a2a;
}
.lab-n { font-family: var(--f-display); font-size: 22px; color: var(--mute); transition: color .3s; }
.lab-row-txt { display: grid; gap: 8px; justify-items: start; }
.lab-t {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 60px); line-height: .95; transition: color .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.lab-row .lab-lede { font-size: 14px; line-height: 1.55; color: #a9a5a0; max-width: 560px; }
.lab-thumb { background: var(--paper); padding: 5px; transform: rotate(2deg); box-shadow: 0 24px 40px -14px rgba(0,0,0,.85); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.lab-row:nth-child(even) .lab-thumb { transform: rotate(-2.4deg); }
.lab-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lab-row .lab-go { display: none; }
.lab-row .lab-stamp { position: absolute; right: 150px; top: 18px; z-index: 2; }
.lab-row a:hover .lab-t { color: var(--red); transform: translateX(10px); }
.lab-row a:hover .lab-n { color: var(--red); }
.lab-row a:hover .lab-thumb { transform: rotate(0) scale(1.06); }

/* ---------- lab · article ---------- */
.post-head { padding: 150px 0 0; overflow: hidden; }
.post-head .eyebrow { margin-bottom: 26px; }
.post-head .eyebrow a:hover { color: var(--red); }
.post-head .title { position: relative; font-size: clamp(54px, 7.6vw, 136px); }
.post-lede { position: relative; margin: 28px 0 0 .55em; max-width: 640px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: #c9c5c0; }
.post-meta { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 30px 0 0 .55em; }
.post-meta .micro { color: #b5b1ac; }
.post-cover {
  position: relative; width: min(1160px, calc(100% - 2 * var(--gut))); margin: clamp(50px, 8vh, 90px) auto 0;
  background: var(--paper); padding: 8px; transform: rotate(-.8deg); box-shadow: 0 40px 70px -20px rgba(0,0,0,.9);
}
.post-cover img { width: 100%; max-height: 78vh; object-fit: cover; }
.post-main { padding: clamp(80px, 11vh, 130px) 0; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); }
.post-body { grid-column: 2; font-size: 18px; line-height: 1.75; color: #d6d2cd; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: var(--paper); margin-top: 1.9em; }
.post-body blockquote { margin: 1.6em calc(-1 * min(14vw, 200px)) 1.6em -.2em; font-size: clamp(28px, 3vw, 46px); line-height: 1.2; color: var(--red); transform: rotate(-2deg); }
.post-body ul { display: grid; gap: 10px; }
.post-body li { position: relative; padding-left: 22px; }
.post-body li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 8px; background: var(--red); }
.post-fig { margin: 2.2em 0; }
.post-fig img { width: 100%; border: 7px solid var(--paper); box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); transform: rotate(.6deg); }
.post-fig.is-wide { margin-right: calc(-1 * min(18vw, 260px)); }
.post-fig.is-wide img { transform: rotate(-.6deg); }
.post-fig figcaption { margin-top: 14px; }
.post-projet {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center;
  margin-top: 3em; padding: 16px; border: 1px solid #333; transition: border-color .3s;
}
.post-projet:hover { border-color: var(--red); }
.post-projet img { width: 110px; aspect-ratio: 1; object-fit: cover; }
.post-projet > span { display: grid; gap: 4px; }
.post-projet b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1; color: var(--paper); }
.post-projet .hand { color: var(--red); font-size: 17px; }
.post-share { padding: clamp(80px, 12vh, 130px) 0; background: #0d0d0d; }
.post-share .title > span { display: block; }
.post-share .title .red { padding-left: .32em; }
.post-more { padding: clamp(60px, 8vh, 90px) 0 clamp(100px, 14vh, 150px); }
.post-nav { margin: 0 0 clamp(60px, 8vh, 90px); }
.post-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); margin-top: 26px; }
.post-card { display: grid; gap: 10px; justify-items: start; }
.post-card figure { width: 100%; background: var(--paper); padding: 6px; transform: rotate(-1.2deg); box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.post-card:nth-child(2) figure { transform: rotate(1.4deg); }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card > b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 1.9vw, 30px); line-height: 1; transition: color .3s; }
.post-card:hover figure { transform: rotate(0) scale(1.03); }
.post-card:hover > b { color: var(--red); }

/* ---------- partager ---------- */
.share a, .share button {
  display: inline-flex; align-items: center; gap: 10px; color: var(--paper); background: none; border: 0; cursor: pointer;
  font: 500 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; transition: color .2s, background .2s, border-color .2s;
}
.share svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.share .is-copied { color: var(--red); }
.share--rail { grid-column: 1; justify-self: end; align-self: start; position: sticky; top: 110px; display: grid; gap: 10px; justify-items: center; margin-right: clamp(30px, 4vw, 70px); }
.share--rail .micro { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.share--rail a, .share--rail button { width: 42px; height: 42px; justify-content: center; border: 1px solid #333; }
.share--rail a:hover, .share--rail button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.share--row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 5vh, 50px); }
.share--row a, .share--row button { padding: 15px 20px; border: 1px solid #333; }
.share--row a:hover, .share--row button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.share--row .share-native { background: var(--red); border-color: var(--red); color: #fff; }
.share--drop { position: relative; }
.share-toggle { padding: 13px 18px; border: 1px solid #555 !important; }
.share-toggle:hover, .share--drop.is-open .share-toggle { background: var(--red); border-color: var(--red) !important; color: #fff !important; }
.share-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 230px;
  display: grid; padding: 8px; background: #0d0d0d; border: 1px solid #333; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.share--drop.is-open .share-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.share-menu a, .share-menu button { padding: 12px; width: 100%; }
.share-menu a:hover, .share-menu button:hover { color: var(--red); }

@media (max-width: 899px) {
  .lab-feat-link { grid-template-columns: 1fr; }
  .lab-row a { grid-template-columns: 40px minmax(0, 1fr) 104px; gap: 14px; padding: 24px 0; }
  .lab-n { font-size: 17px; }
  .lab-row .lab-lede { display: none; }
  .lab-row .lab-stamp { right: 0; top: 6px; font-size: 13px; }
  .post-head { padding-top: 120px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-body { grid-column: 1; font-size: 17px; }
  .share--rail { display: none; }
  .post-fig.is-wide { margin-right: 0; }
  .post-body blockquote { margin-inline: 0; }
  .post-more-grid { grid-template-columns: 1fr; }
  .post-nav a:nth-child(2) { display: none; }
}
@media (max-width: 380px) {
  .topbar { letter-spacing: .07em; }
  .menu { gap: 9px; }
}
@media (min-width: 900px) and (max-height: 780px) {
  .intro.is-live .side-badges { display: none; }
}


/* ==========================================================================
   ADAPTATION WORDPRESS (phase 4)
   Le CSS de la maquette ci-dessus reste tel quel. Ici : ce que changent les blocs
   natifs (balises différentes, figures autour des images, blocs dynamiques).
   Le CSS des blocs est imprimé APRÈS cette feuille : à spécificité égale il gagne,
   d'où les sélecteurs qualifiés (.wp-block-image.x img…).
   ========================================================================== */
:root {
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath fill='%23e8e4df' d='M4 15 C 90 8, 180 13, 270 10 S 470 7, 596 12 L 594 17 C 470 13, 360 17, 250 16 S 70 18, 6 20 Z'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M4 34 C 18 30, 30 22, 46 8 M 34 8 L 47 7 L 44 20' fill='none' stroke='%23e8e4df' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5321b' stroke-width='1.8'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E");
}
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-block-template-part { margin: 0; }
main.wp-block-group { margin: 0; }
.wp-element-caption { margin: 0; }
a { text-decoration: none; }
.sr-only, .intro-name strong, .slot-name strong { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; }

/* ---------- titres : <em> = 2e ligne rouge, <strong> = mot rouge ---------- */
.title em { display: block; font-style: normal; color: var(--red); padding-left: .32em; }
.title strong { font-weight: inherit; color: var(--red); }
.hero .title, .hero .title em, .intro .title, .intro .title em { white-space: nowrap; }
.somehow .title em, .form-aside .title em { padding-left: 0; }
.brushed::after { content: ""; display: block; width: min(52vw, 760px); height: 18px; margin: 14px 0 0 5px; background: var(--brush) 0 0 / 100% 100% no-repeat; }
.brushed.brush-short::after { width: min(36vw, 520px); }
.brushed.brush-tiny::after { width: 230px; height: 12px; margin: 8px 0 0 auto; }
.brushed.far-brush::after { width: min(54vw, 820px); margin: 12px auto 0; }
.eyebrow em { font-family: var(--f-hand); color: var(--red); }
.eyebrow a:hover { color: var(--red); }
.has-blob { position: relative; overflow: hidden; }
.has-blob::before {
  content: ""; position: absolute; left: 0; top: 0; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 760px; max-height: 760px;
  margin: calc(min(46vw, 760px) / -2) 0 0 calc(min(46vw, 760px) / -2);
  translate: var(--bx, 38vw) var(--by, 62vh);
  background: radial-gradient(circle at 50% 50%, rgba(229,50,27,.58), rgba(150,20,10,.26) 40%, transparent 68%);
  filter: blur(40px); animation: breathe 6s ease-in-out infinite alternate;
}
.has-blob > * { position: relative; }
.hero.has-blob > .scroll-hint { position: absolute; }
.scroll-hint a, .scroll-next a { color: inherit; }

/* ---------- en-tête et pied ---------- */
.brand { margin: 0; }
.brand a { color: var(--paper); }
.brand em { font-style: normal; color: var(--mute); font-weight: 400; }
.wp-block-navigation.menu { gap: 28px; font-size: inherit; }
.wp-block-navigation.menu .wp-block-navigation-item__content { color: var(--mute); transition: color .2s; padding: 0; }
.wp-block-navigation.menu .wp-block-navigation-item__content:hover { color: var(--red); }
.wp-block-navigation.menu .is-active .wp-block-navigation-item__content { color: var(--paper); }
.wp-block-navigation.menu .is-active .wp-block-navigation-item__content::after { content: ""; display: block; height: 2px; background: var(--red); margin-top: 3px; }
.foot-cols .wp-block-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.foot-pitch strong { font-weight: inherit; color: var(--red); }
.foot-pitch em { display: block; margin-top: 10px; font: 400 10.5px/1.55 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-style: normal; }
.foot-up a, .foot-bottom a { color: inherit; }
.foot-bottom p { margin: 0; }

/* logo typographique : coins de recadrage dessinés en une couche */
.wordmark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --c: calc(var(--s) * .09); --l: rgba(232,228,223,.45);
  background:
    linear-gradient(var(--l), var(--l)) 0 0 / var(--c) 1px, linear-gradient(var(--l), var(--l)) 0 0 / 1px var(--c),
    linear-gradient(var(--l), var(--l)) 100% 0 / var(--c) 1px, linear-gradient(var(--l), var(--l)) 100% 0 / 1px var(--c),
    linear-gradient(var(--l), var(--l)) 0 100% / var(--c) 1px, linear-gradient(var(--l), var(--l)) 0 100% / 1px var(--c),
    linear-gradient(var(--l), var(--l)) 100% 100% / var(--c) 1px, linear-gradient(var(--l), var(--l)) 100% 100% / 1px var(--c);
  background-repeat: no-repeat;
}
.wordmark > p { margin: 0; }
.wm-name a { color: inherit; }
.wm-tag em { font-style: normal; color: var(--mute); }
.giant-row::before { content: ""; width: clamp(40px, 5vw, 80px); aspect-ratio: 3 / 2; flex: 0 0 auto; align-self: flex-end; margin-bottom: 3vw; background: var(--arrow) center / contain no-repeat; }

/* ---------- accueil · intro ---------- */
.intro-stats::before { content: ""; width: 54px; aspect-ratio: 3 / 2; margin-right: -10px; background: var(--arrow) center / contain no-repeat; }
.intro-stats strong { font-family: var(--f-display); font-weight: 400; color: var(--red); font-size: clamp(46px, 5vw, 92px); line-height: .82; }
.intro-stats em { font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a19d98; line-height: 1.45; }
.intro-stats p:last-child strong { color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.intro .m-tag, .intro .m-name, .intro .m-photo, .intro-nav a { transform-origin: 0 0; }
.intro-nav { margin: 0; }
.intro-nav strong, .slot-nav strong { font-weight: 400; font-size: .62em; color: var(--mute); margin-right: .4em; }
.intro-name em, .slot-name em { display: block; font-style: normal; white-space: nowrap; color: var(--red); }
.intro-name { white-space: nowrap; text-shadow: 0 0 28px rgba(232,228,223,.14); }
.intro-name em { text-shadow: 0 0 34px rgba(229,50,27,.38); }
.wp-block-image.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; filter: contrast(1.05); }
.intro-photo .wp-element-caption { position: absolute; left: 12px; top: 10px; margin: 0; font-family: var(--f-display); text-transform: uppercase; font-size: 15px; letter-spacing: .04em; color: var(--ink); background: rgba(232,228,223,.86); padding: 2px 6px; }
.intro-foot > p { margin: 0; }
.intro-foot .scroll-next { order: 1; }
.intro-foot .scroll-next a { font-size: clamp(18px, 1.7vw, 28px); color: var(--paper); white-space: nowrap; transition: color .2s; }
.intro-foot .scroll-next a:hover { color: var(--red); }
.intro-foot::after { content: ""; order: 2; flex: 1 1 auto; height: 16px; margin-top: 6px; background: var(--brush) 0 0 / 100% 100% no-repeat; }
.intro-foot .intro-links { order: 3; }
span.side-brush { display: block; width: 86%; height: 12px; margin: -4px 0 0; background: var(--brush) 0 0 / 100% 100% no-repeat; }
.intro.is-live .slot { visibility: hidden; }
.intro .m-tag, .intro .m-name, .intro .m-photo { will-change: transform; }
.wp-block-social-links.side-icons { display: flex; gap: 14px; margin: 8px 0 0; padding: 0; }
.intro .wp-block-social-links.side-icons.is-style-logos-only .wp-social-link { color: var(--paper); background: none; padding: 0; transition: color .2s; }
.intro .wp-block-social-links.side-icons.is-style-logos-only .wp-social-link:hover { color: var(--red); transform: none; }
.intro .wp-block-social-links.side-icons .wp-social-link svg { width: 28px; height: 28px; }
.side-badges em, .side-badges strong { display: inline-flex; align-items: center; gap: 7px; font-style: normal; font-weight: inherit; }
.side-badges em::before, .side-badges strong::before { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--red); }
.side-badges em::before { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.side-badges strong::before { border-radius: 50%; }
.side-mail { padding: 0; border: 0; display: block; }
.side-mail a { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #3a3a3a; padding: 14px 16px; font-size: 14px; letter-spacing: .04em; transition: border-color .2s, color .2s; }
.side-mail a::after { content: ""; width: 20px; height: 20px; flex: none; background: var(--mail) center / contain no-repeat; }
.side-mail a:hover { border-color: var(--red); color: var(--red); }

/* ---------- accueil · sections ---------- */
.skill-list h2::before { content: ""; position: absolute; left: -.55em; bottom: .14em; width: .2em; height: .2em; background: var(--red); }
.skill-list h2 em, .row-name em { font-style: normal; color: var(--dim); }
.reel-track > .wp-block-image.card { margin: 0; }
.wp-block-image.card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); pointer-events: none; user-select: none; }
.card .wp-element-caption { position: absolute; left: 7px; bottom: -26px; margin: 0; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-align: left; }
.serious strong { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: .01em; }
.serious em { font: 400 10.5px/1.55 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-style: normal; max-width: 460px; }
.meta > div p { margin: 0; }
.meta .dt { font-size: 9.5px; }
.meta .dd { color: var(--paper); font-size: 10.5px; }
.showcase a { color: inherit; }
.collage .wp-block-image { position: absolute; box-shadow: 0 24px 40px -12px rgba(0,0,0,.9); }
.collage .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.badge a { color: inherit; }
.wide-badge { width: max-content; }
.disciplines > .disc { display: grid; gap: 4px; }
.disciplines .disc p { margin: 0; }
.disciplines .disc-t { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2vw, 32px); letter-spacing: .01em; }
.disciplines .disc > .micro:first-child { color: var(--paper); font-size: 9.5px; }
.fan .wp-block-image { position: absolute; margin: 0; }
.fan .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.so-txt strong { font-weight: inherit; color: var(--paper); }
.mosaic .wp-block-image { margin: 0; }
.mosaic .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
p.mail { padding: 0; border: 0; }
p.mail a { display: block; padding: 14px 28px; border: 1px solid rgba(232,228,223,.35); transition: background .2s, color .2s, border-color .2s; }
p.mail a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cta-title strong { font-weight: inherit; color: var(--red); }

/* ---------- skills ---------- */
.rows > .row:last-child { border-bottom: 1px solid #2a2a2a; }
.row-txt p { margin: 0; }
.row-txt > p:first-child { font-size: 15px; color: #c9c5c0; max-width: 460px; }
.tool p { margin: 0; }
.tool .tool-b {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 6vw, 104px); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--red); transition: color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.tool:hover .tool-b { color: var(--red); transform: rotate(-4deg); }
.steps > .step { position: relative; padding-top: 8px; }
.steps > .step:nth-child(2) { margin-top: 50px; }
.steps > .step:nth-child(3) { margin-top: 100px; }
.steps > .step:nth-child(4) { margin-top: 150px; }
.step-b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(90px, 9vw, 160px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.steps h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 42px); margin: 14px 0 10px; }

/* ---------- filtres (paragraphes rendus cliquables par le script) ---------- */
.filters > .filter { margin: 0; }
.filter.is-on { color: #fff; background: var(--red); border-color: var(--red); }
.pf-count strong { font-weight: inherit; }
.pf-empty { display: none; }
.pf-empty.is-shown { display: block; }
.is-hidden { display: none !important; }

/* ---------- portfolio : grille = boucle de requête ---------- */
.pf-query { counter-reset: pf; }
.wp-block-post-template.pf-grid { list-style: none; padding: 0; margin: clamp(50px, 7vh, 80px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(40px, 5vw, 70px) clamp(20px, 2.4vw, 36px); }
.pf-grid > li { margin: 0; counter-increment: pf; }
.pf-grid > li.taille-wide { grid-column: span 2; }
.pf-grid > li.taille-tall { grid-row: span 2; }
.pf-card { display: flex; flex-direction: column; height: 100%; }
.pf-card > * { margin: 0; }
.wp-block-post-featured-image.pf-img { position: relative; margin: 0; background: var(--paper); padding: 7px; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.taille-wide .wp-block-post-featured-image.pf-img { aspect-ratio: 16 / 9; }
.taille-tall .wp-block-post-featured-image.pf-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 360px; }
.wp-block-post-featured-image.pf-img a { display: block; height: 100%; }
.wp-block-post-featured-image.pf-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.taille-tall .wp-block-post-featured-image.pf-img img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
.cadrage-contain .wp-block-post-featured-image.pf-img img { object-fit: contain; background: #0d0d0d; }
.cadrage-blanc .wp-block-post-featured-image.pf-img img { object-fit: contain; background: #fff; }
.wp-block-post-featured-image.pf-img::after { content: "voir le projet →"; position: absolute; right: 18px; bottom: 16px; z-index: 2; font: 18px/1.3 var(--f-hand); color: #fff; background: var(--red); padding: 6px 14px; transform: rotate(-4deg) translateY(8px); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.pf-grid > li:hover .pf-img { transform: rotate(-1.2deg) translateY(-6px); }
.pf-grid > li:hover .pf-img img { transform: scale(1.05); filter: none; }
.pf-grid > li:hover .pf-img::after { opacity: 1; transform: rotate(-4deg); }
.pf-cat { margin-top: 18px !important; color: var(--paper); }
.pf-cat::before { content: "/" counter(pf, decimal-leading-zero) " · "; }
.pf-cat a { color: inherit; pointer-events: none; }
.pf-t { margin-top: 4px !important; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2vw, 34px); line-height: 1; }
.pf-t a { color: var(--paper); transition: color .2s; }
.pf-grid > li:hover .pf-t a { color: var(--red); }
.pf-sub { margin-top: 4px !important; }
.pf-sub p { margin: 0; }

/* ---------- page projet ---------- */
.case-page { padding-top: 70px; background: var(--ink); }
.case-page .case-in { padding-top: 40px; }
.case-retour { margin: 0; }
.case-retour a { font: 20px/1.3 var(--f-hand); color: var(--paper); transition: color .2s; display: inline-block; transform: rotate(-3deg); }
.case-retour a:hover { color: var(--red); }
.case-head .eyebrow { margin-bottom: 22px; }
.case-head .title { font-size: clamp(54px, 7.6vw, 136px); }
.wp-block-image.case-hero { width: fit-content; max-width: 100%; margin: clamp(50px, 7vh, 80px) auto 0; background: var(--paper); padding: 8px; box-shadow: 0 40px 70px -20px rgba(0,0,0,.9); transform: rotate(-.8deg); }
.wp-block-image.case-hero img { display: block; width: auto; max-width: 100%; max-height: 82vh; }
.case-cols > .case-col:nth-child(2) { margin-top: 50px; }
.case-cols > .case-col:nth-child(3) { margin-top: 100px; }
.case-n { margin: 0; display: block; font-family: var(--f-display); font-size: 70px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.case-h { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.2vw, 36px); margin: 10px 0 12px; }
.case-col p, .case-col li { font-size: 15px; color: #c9c5c0; line-height: 1.6; }
.case-col .wp-block-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }
.case-col li { padding-left: 18px; position: relative; }
.case-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--red); }
.case-gallery > .wp-block-image { break-inside: avoid; margin: 0 0 clamp(20px, 2.4vw, 36px); background: var(--paper); padding: 7px; box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); }
.case-gallery > .wp-block-image:nth-child(3n+2) { transform: rotate(1deg); }
.case-gallery > .wp-block-image:nth-child(3n) { transform: rotate(-1.4deg); }
.case-gallery .wp-block-image img { display: block; width: 100%; height: auto; }
.case-meta > div p { margin: 0; }
.case-meta .dd { margin-top: 6px; font-size: 14px; }
.case-nav .wp-block-post-navigation-link a { color: inherit; transition: color .2s; }
.case-nav .wp-block-post-navigation-link a:hover, .case-nav p a:hover { color: var(--red); }
.case-nav p { margin: 0; }
.case-nav p a { color: inherit; }
.case-nav > * { font-family: var(--f-hand); }

/* ---------- lab : liste ---------- */
.lab-une-q, .lab-q { counter-reset: lab; }
.lab-q { counter-reset: lab 1; }
.wp-block-post-template.lab-une-q-list, .wp-block-post-template.lab-q-list { list-style: none; padding: 0; margin: 0; }
.lab-une-q-list > li { margin-top: clamp(50px, 7vh, 80px); }
.lab-feat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.wp-block-post-featured-image.lab-feat-img { margin: 0; background: var(--paper); padding: 8px; transform: rotate(-1.4deg); box-shadow: 0 40px 70px -20px rgba(0,0,0,.9); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.wp-block-post-featured-image.lab-feat-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lab-feat:hover .lab-feat-img { transform: rotate(0) scale(1.02); }
.lab-feat-txt { display: grid; gap: 14px; justify-items: start; }
.lab-feat-txt > * { margin: 0; }
.wp-block-post-title.lab-feat-title { font-size: clamp(44px, 5.2vw, 96px); }
.lab-feat-title a, .lab-t a { color: inherit; }
.lab-meta { display: flex; gap: .6em; align-items: baseline; }
.lab-meta > * { margin: 0; }
.lab-meta .lab-cat a { color: var(--red); font-weight: 500; }
.lab-meta .lab-date::before { content: "· "; }
.lab-lede p { margin: 0; }
.lab-feat .lab-lede { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: #c9c5c0; max-width: 460px; }
.wp-block-read-more.lab-go { color: var(--red); font-size: 20px; transition: transform .3s; text-decoration: none; }
.lab-feat:hover .lab-go { transform: translateX(8px); }
.wp-block-post-template.lab-q-list { margin-top: clamp(80px, 11vh, 130px); border-top: 1px solid #2a2a2a; }
.lab-q-list > li { counter-increment: lab; }
.lab-row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 230px; gap: 30px; align-items: center; padding: 30px 0; border-bottom: 1px solid #2a2a2a; }
.lab-row::before { content: "/" counter(lab, decimal-leading-zero); font-family: var(--f-display); font-size: 22px; color: var(--mute); transition: color .3s; }
.lab-row-txt { display: grid; gap: 8px; justify-items: start; }
.lab-row-txt > * { margin: 0; }
/* la maquette met « .lab-row a » en grille (ligne entière cliquable) : ici les liens sont le titre et la vignette */
.lab-row a { position: static; display: inline; grid-template-columns: none; gap: 0; padding: 0; border: 0; }
.lab-row .lab-thumb a { display: block; }
.wp-block-post-title.lab-t { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 60px); line-height: .95; transition: color .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.lab-row .lab-lede { font-size: 14px; line-height: 1.55; color: #a9a5a0; max-width: 560px; }
.wp-block-post-featured-image.lab-thumb { margin: 0; background: var(--paper); padding: 5px; transform: rotate(2deg); box-shadow: 0 24px 40px -14px rgba(0,0,0,.85); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.lab-q-list > li:nth-child(even) .lab-thumb { transform: rotate(-2.4deg); }
.wp-block-post-featured-image.lab-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lab-row:hover .lab-t { color: var(--red); transform: translateX(10px); }
.lab-row:hover::before { color: var(--red); }
.lab-row:hover .lab-thumb { transform: rotate(0) scale(1.06); }

/* ---------- lab : article ---------- */
.post-head .post-cat { margin-bottom: 26px; }
.post-cat a { color: inherit; }
.post-head .wp-block-post-title { position: relative; font-size: clamp(54px, 7.6vw, 136px); }
.post-head .post-lede p { margin: 0; }
.post-meta .wp-block-post-date { color: #b5b1ac; }
.wp-block-post-featured-image.post-cover { position: relative; width: min(1160px, calc(100% - 2 * var(--gut))); margin: clamp(50px, 8vh, 90px) auto 0; background: var(--paper); padding: 8px; transform: rotate(-.8deg); box-shadow: 0 40px 70px -20px rgba(0,0,0,.9); }
.wp-block-post-featured-image.post-cover img { width: 100%; max-height: 78vh; object-fit: cover; }
.post-body > * + * { margin-top: 1.2em; }
.post-body > h2 { margin-top: 1.9em; }
.post-body .wp-block-list { display: grid; gap: 10px; list-style: none; padding: 0; }
.wp-block-quote.post-quote { margin: 1.6em calc(-1 * min(14vw, 200px)) 1.6em -.2em; padding: 0; border: 0; font: clamp(28px, 3vw, 46px)/1.2 var(--f-hand); color: var(--red); transform: rotate(-2deg); }
.wp-block-quote.post-quote p { margin: 0; }
.wp-block-image.post-fig { margin: 2.2em 0; }
.wp-block-image.post-fig img { width: 100%; border: 7px solid var(--paper); box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); transform: rotate(.6deg); }
.wp-block-image.post-fig.is-wide { margin-right: calc(-1 * min(18vw, 260px)); }
.wp-block-image.post-fig.is-wide img { transform: rotate(-.6deg); }
.post-fig .wp-element-caption { margin-top: 14px; font: 400 10.5px/1.55 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: left; }
.post-projet .wp-block-image img { width: 110px; aspect-ratio: 1; object-fit: cover; }
.post-projet-txt { display: grid; gap: 4px; }
.post-projet-txt > * { margin: 0 !important; }
.post-projet-t { font-family: var(--f-display); text-transform: uppercase; font-size: 28px; line-height: 1; color: var(--paper); }
.post-projet .hand a { color: var(--red); font-size: 17px; }
.post-more .wp-block-post-template { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.post-card { display: grid; gap: 10px; justify-items: start; }
.post-card > * { margin: 0; }
.wp-block-post-featured-image.post-card-img { width: 100%; margin: 0; background: var(--paper); padding: 6px; transform: rotate(-1.2deg); box-shadow: 0 30px 50px -14px rgba(0,0,0,.85); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.post-more li:nth-child(2) .post-card-img { transform: rotate(1.4deg); }
.wp-block-post-featured-image.post-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card .wp-block-post-title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 1.9vw, 30px); line-height: 1; }
.post-card .wp-block-post-title a { color: inherit; transition: color .3s; }
.post-card:hover .post-card-img { transform: rotate(0) scale(1.03); }
.post-card:hover .wp-block-post-title a { color: var(--red); }

/* ---------- partager : liens sociaux natifs, adresses posées par le script ---------- */
.share .wp-social-link { background: none !important; color: var(--paper) !important; border-radius: 0; }
.share .wp-social-link a { color: inherit !important; padding: 0 !important; display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; }
.share .wp-social-link svg { width: 18px; height: 18px; }
.wp-block-social-links.share--rail { display: grid; gap: 10px; justify-items: center; margin: 0; padding: 0; }
.share--rail .wp-social-link a { width: 42px; height: 42px; justify-content: center; border: 1px solid #333; }
.share--rail .wp-social-link:hover a { background: var(--red); border-color: var(--red); color: #fff; }
.share--rail .wp-block-social-link-label { display: none; }
.post-rail { grid-column: 1; justify-self: end; align-self: start; position: sticky; top: 110px; display: grid; gap: 10px; justify-items: center; margin-right: clamp(30px, 4vw, 70px); }
.post-rail > .micro { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 6px; }
.post-grid > .wp-block-post-content { grid-column: 2; }
.wp-block-social-links.share--row { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(30px, 5vh, 50px) 0 0; padding: 0; }
.share--row .wp-social-link a { padding: 15px 20px !important; border: 1px solid #333; }
.share--row .wp-social-link:hover a { background: var(--red); border-color: var(--red); color: #fff; }
.share-native { display: none; margin: 12px 0 0; }
.share-native.is-shown { display: inline-block; }
.share-native, .share-toggle { font: 500 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--red); padding: 15px 20px; cursor: pointer; }
.share--drop { position: relative; }
.share--drop > .share-toggle { margin: 0; background: transparent; color: var(--paper); border: 1px solid #555; padding: 13px 18px; }
.share--drop > .share-toggle::before { content: "↗ "; }
.share--drop.is-open > .share-toggle, .share--drop > .share-toggle:hover { background: var(--red); border-color: var(--red); color: #fff; }
.share--drop .wp-block-social-links.share-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 230px; margin: 0;
  display: grid; padding: 8px; background: #0d0d0d; border: 1px solid #333; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.share--drop.is-open .wp-block-social-links.share-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.share-menu .wp-social-link a { padding: 12px !important; width: 100%; }
.share-menu .wp-social-link:hover a { color: var(--red); }
.share .is-copied a { color: var(--red) !important; }

/* ---------- formulaire Contact Form 7 ---------- */
.form .wpcf7-form { display: grid; gap: 34px; }
.form .wpcf7-form > p { margin: 0; }
.form .wpcf7-form-control-wrap { display: block; }
.chips .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .wpcf7-list-item { margin: 0; }
.chips .wpcf7-list-item label { position: relative; cursor: pointer; font: inherit; text-transform: none; }
.chips .wpcf7-list-item input { position: absolute; opacity: 0; pointer-events: none; }
.chips .wpcf7-list-item-label { display: inline-block; font: 500 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); border: 1px solid #333; padding: 11px 16px; transition: all .2s; }
.chips label:hover .wpcf7-list-item-label { color: var(--paper); border-color: var(--paper); }
.chips input:checked + .wpcf7-list-item-label { color: #fff; background: var(--red); border-color: var(--red); }
.wpcf7-submit.send { font-family: var(--f-display); }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { color: var(--red); font: 18px/1.3 var(--f-hand); margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 0; border: 0; padding: 0; font: 22px/1.3 var(--f-hand); color: var(--paper); }
.wpcf7-not-valid { border-color: var(--red) !important; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .wp-block-navigation.menu { gap: 16px; }
  .brand em { display: none; }
  .wp-block-post-template.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > .step:nth-child(n) { margin-top: 0; }
  .steps > .step:nth-child(even) { margin-top: 50px; }
  .case-cols > .case-col:nth-child(n) { margin-top: 0; }
  .lab-feat { grid-template-columns: 1fr; }
  .lab-row { grid-template-columns: 40px minmax(0, 1fr) 104px; gap: 14px; padding: 24px 0; }
  .lab-row::before { font-size: 17px; }
  .lab-row .lab-lede { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid > .wp-block-post-content { grid-column: 1; }
  .post-rail { display: none; }
  .wp-block-image.post-fig.is-wide { margin-right: 0; }
  .wp-block-quote.post-quote { margin-inline: 0; }
  .post-more .wp-block-post-template { grid-template-columns: 1fr; }
  .intro-foot::after { order: 3; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .hero .title, .hero .title em, .intro .title, .intro .title em { white-space: normal; }
  .title em { padding-left: 0; }
  .brushed::after { margin-left: 0; width: 78vw; }
  .wp-block-post-template.pf-grid { grid-template-columns: 1fr; }
  .pf-grid > li.taille-wide { grid-column: auto; }
  .pf-grid > li.taille-tall { grid-row: auto; }
  .taille-tall .wp-block-post-featured-image.pf-img { min-height: 0; aspect-ratio: 3 / 4; }
  .wp-block-navigation.menu { gap: 12px; }
  .giant-row::before { display: none; }
}
@media (max-width: 380px) { .wp-block-navigation.menu { gap: 9px; } }
.foot-cols .wp-block-list li:not(:has(a)) { color: var(--mute); }
.foot-cols .wp-block-list a { transition: color .2s; }
.foot-cols .wp-block-list a:hover { color: var(--red); }
.foot-up a { display: block; }
.foot-giant { pointer-events: none; user-select: none; }

/* ---------- 404 : la soucoupe et son faisceau (décor dessiné par app.js) ---------- */
.nf { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 110%, #1f1d1c 0, var(--ink) 55%, #0e0e0e 100%); }
.nf > * { margin: 0; }
.nf-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nf-scene svg, .nf-front { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.nf-front { z-index: 2; pointer-events: none; mix-blend-mode: screen; }
p.nf-num { position: absolute; z-index: 1; left: 50%; top: 47%; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 400; line-height: .8; letter-spacing: .02em; white-space: nowrap;
  font-size: clamp(150px, 31vw, 520px); user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232,228,223,.14);
  background: radial-gradient(circle var(--lr, 180px) at var(--lx, 50%) var(--ly, 120%), rgba(255,250,240,.95) 0, rgba(232,228,223,.55) 38%, rgba(229,50,27,.35) 62%, rgba(229,50,27,0) 100%), linear-gradient(#1d1c1b, #1d1c1b);
  -webkit-background-clip: text; background-clip: text; }
.nf-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0 auto; padding-bottom: clamp(34px, 6vh, 70px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.nf .eyebrow { margin-bottom: 22px; }
.nf .title { font-size: clamp(46px, 5.4vw, 100px); }
.nf .hero-lede { margin-top: 22px; max-width: 460px; }
.nf-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
p.nf-btn a { display: inline-block; padding: 15px 30px; font: 500 12px/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--paper);
  border: 1px solid rgba(232,228,223,.35); transition: background .2s, color .2s, border-color .2s, transform .3s cubic-bezier(.2,.8,.2,1); }
p.nf-btn--fill a { background: var(--paper); border-color: var(--paper); color: var(--ink); }
p.nf-btn a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-2deg); }
@media (max-width: 900px) {
  p.nf-num { top: 36%; font-size: 40vw; }
  .nf-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .nf-actions { justify-content: flex-start; }
  .nf .title { font-size: 44px; }
}

/* ---------- header : fond plein dès qu'on a défilé (lisible au-dessus des images) ---------- */
.topbar { transition: opacity .35s, background-color .3s, box-shadow .3s; }
body.is-scrolled .topbar { background: rgba(21,21,21,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 #2a2a2a; }

/* ---------- article : bouton « fermer » toujours à portée ---------- */
p.post-close { position: fixed; z-index: 31; top: 72px; right: var(--gut); margin: 0; }
p.post-close a { display: inline-block; font: 17px/1 var(--f-hand); color: #fff; background: var(--red); padding: 9px 16px 8px; transform: rotate(-3deg);
  box-shadow: 0 14px 26px -12px rgba(0,0,0,.9); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s; }
p.post-close a:hover, p.post-close a:focus-visible { transform: rotate(0) scale(1.06); background: var(--paper); color: var(--ink); }
@media (max-width: 900px) { p.post-close { top: 54px; } p.post-close a { font-size: 15px; padding: 7px 13px 6px; } }
