/* ==========================================================
   Direction artistique : crème · vert olive · citron vert
   ========================================================== */
:root {
  --bg: #f1efe4;
  --bg-line: rgba(30, 35, 22, .085);
  --bg-glow: #93b800;
  --text: #1e2316;
  --muted: #6a6e5c;
  --line: #1e231620;
  --lime: #d4ff3a;
  --lime-ink: #1e2316;
  --green: #232a1a;
  --green-2: #2e3624;
  --cream: #f1efe4;
  --display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --radius: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #13160e;
  --bg-line: rgba(241, 239, 228, .055);
  --bg-glow: #d4ff3a;
  --text: #f1efe4;
  --muted: #a3a693;
  --line: #f1efe41c;
  --green: #1d2316;
  --green-2: #29311f;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13160e;
    --bg-line: rgba(241, 239, 228, .055);
    --bg-glow: #d4ff3a;
    --text: #f1efe4;
    --muted: #a3a693;
    --line: #f1efe41c;
    --green: #1d2316;
    --green-2: #29311f;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; transition: background-color .4s, color .4s;
}
::selection { background: var(--lime); color: var(--lime-ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
kbd { font: 11px var(--mono); border: 1px solid currentColor; border-radius: 5px; padding: 0 5px; opacity: .8; }
mark { background: var(--lime); color: var(--lime-ink); padding: 0 .2em; border-radius: 4px; }

.shell { width: min(1360px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 8px 14px; border-radius: 99px; }
.lime { color: var(--lime); }

.label { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: lowercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 30%, transparent); animation: pulse 2s ease-in-out infinite; }
.script { font-family: var(--hand); font-weight: 700; color: var(--text); line-height: 1; }

/* Gros titres condensés */
.mega, .big, .footer-title {
  font-family: var(--display); font-stretch: 62%; font-weight: 800;
  text-transform: uppercase; line-height: .84; letter-spacing: -.01em;
}
.outline, .line-outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.mask { display: block; overflow: hidden; padding-bottom: .04em; }
.line { display: block; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 24px; background: var(--lime); color: var(--lime-ink);
  border-radius: 0 0 0 0; transition: transform 1.1s cubic-bezier(.77, 0, .18, 1), border-radius 1.1s cubic-bezier(.77, 0, .18, 1);
}
.loader-logo { place-self: center; width: min(62vw, 560px); height: auto; overflow: visible; transition: transform 1.1s cubic-bezier(.77, 0, .18, 1), opacity .6s; }
.loader-logo path {
  fill: var(--lime-ink); fill-opacity: 0; stroke: var(--lime-ink); stroke-width: 6; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: logo-draw 1.1s cubic-bezier(.65, 0, .35, 1) .1s forwards, logo-fill .45s ease 1.05s forwards;
}
.loader-logo path + path { animation-delay: .35s, 1.15s; }
.is-loaded .loader { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 22% 22%; pointer-events: none; }
.is-loaded .loader-logo { transform: translateY(-30vh) scale(.85); opacity: 0; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; padding: 16px 0; transition: translate .5s var(--ease); }
.site-header.is-hidden { translate: 0 -110%; }
.header-inner { display: flex; align-items: center; gap: 16px; }
/* Logo : pastille-sticker citron vert + nom empilé */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.site-header .logo { background: var(--bg); padding: 5px 16px 5px 5px; border-radius: 99px; border: 1px solid var(--line); }
.logo-badge {
  --size: 44px;
  position: relative; display: grid; place-items: center; flex: none;
  width: calc(var(--size) * 1.45); height: var(--size); border-radius: calc(var(--size) * .28);
  background: var(--lime); color: var(--lime-ink); border: 2px solid var(--lime-ink);
  rotate: -5deg; transition: rotate .6s var(--ease), scale .6s var(--ease);
}
.logo-mark { width: 80%; height: 62%; fill: currentColor; }
.logo-spark {
  position: absolute; top: -5px; right: -6px; width: 38%; height: 38%;
  fill: var(--lime); stroke: var(--lime-ink); stroke-width: 2.4px; paint-order: stroke;
  transition: rotate .8s var(--ease), scale .6s var(--ease);
}
.logo-text { font: 800 15px/.86 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .02em; }
.logo:hover .logo-badge { rotate: 0deg; scale: 1.06; }
.logo:hover .logo-spark { rotate: 180deg; scale: 1.25; }
.nav {
  display: flex; gap: 2px; margin-left: auto; padding: 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav a { padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: background-color .3s, color .3s; }
.nav a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav a.is-current { background: var(--text); color: var(--bg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.pill span { transition: transform .3s var(--ease); }
.pill:hover span { transform: translate(2px, -2px) rotate(8deg); }
.pill-lime { background: var(--lime); color: var(--lime-ink); }
.pill-lime:hover { background: var(--cream); }
.pill-ghost { border: 1.5px solid currentColor; }
.pill-ghost:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }
.pill-lg { height: 60px; padding: 0 28px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding: 110px 0 36px; position: relative; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; }
.mega { font-size: clamp(110px, 25vw, 400px); margin: auto 0 0; position: relative; padding-top: 24px; }
.mega .line-outline { -webkit-text-stroke-width: clamp(1.5px, .3vw, 4px); }
.hero-script {
  position: absolute; right: 4%; top: 34%; font-size: clamp(44px, 8vw, 130px); color: var(--text);
  text-transform: none; letter-spacing: 0; rotate: -9deg;
  background: var(--lime); color: var(--lime-ink); padding: 0 .25em .08em; border-radius: .2em;
}
.hero-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: end; margin-top: 34px; }
.lede { font-size: clamp(17px, 1.5vw, 21px); max-width: 560px; line-height: 1.5; }

.release-card {
  display: flex; flex-direction: column; gap: 6px; width: 260px; padding: 18px 20px;
  background: var(--green); color: var(--cream); border-radius: 22px;
  transition: transform .5s var(--ease), background-color .3s;
}
.release-card .label { color: color-mix(in srgb, var(--cream) 70%, transparent); }
.release-card:hover { transform: rotate(-2deg) translateY(-4px); background: var(--lime); color: var(--lime-ink); }
.release-card:hover .label { color: var(--lime-ink); }
.release-top { display: flex; justify-content: space-between; align-items: center; }
.release-arrow { font-size: 22px; }
.release-name { font: 800 54px/.9 var(--display); font-stretch: 62%; text-transform: uppercase; }
.release-meta { display: flex; justify-content: space-between; font: 12px var(--mono); }

.badge-link { display: block; border-radius: 50%; transition: scale .5s var(--ease), background-color .3s; }
.badge-link:hover { scale: 1.08; background: var(--lime); }
.badge-link:hover .badge text { fill: var(--lime-ink); }
.badge-link:hover .badge-arrow { stroke: var(--lime-ink); }
.badge-link:hover .badge-arrow { translate: 0 6px; }
.badge-link:focus-visible { outline-offset: 6px; border-radius: 50%; }
.badge-arrow { transition: translate .4s var(--ease); }
.badge { width: 130px; height: 130px; animation: spin 16s linear infinite; }
.badge text { font: 600 15.5px var(--mono); letter-spacing: 2.6px; fill: var(--text); text-transform: uppercase; }
.badge-arrow { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; animation: spin 16s linear infinite reverse; transform-origin: 100px 100px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--lime); color: var(--lime-ink); overflow: hidden; padding: 14px 0; rotate: -1.5deg; margin: 20px -20px 0; border-block: 2px solid var(--lime-ink); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; }
.marquee span { font: 800 clamp(40px, 5.5vw, 80px)/1 var(--display); font-stretch: 62%; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; font-size: clamp(22px, 3vw, 40px); }

/* ---------- Sections ---------- */
.section { padding-top: clamp(100px, 15vh, 180px); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.big { font-size: clamp(84px, 15vw, 240px); }
.big span { display: block; }
.split-side { max-width: 380px; display: grid; gap: 12px; padding-bottom: 10px; }
.split-side .script { font-size: 40px; rotate: -4deg; transform-origin: left; width: fit-content; background: var(--lime); color: var(--lime-ink); padding: 0 12px 4px; border-radius: 10px; }
.split-side p { color: var(--muted); font-size: 17px; }

/* ---------- Fond : lignes topographiques ---------- */
.bg-lines { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Projets : galerie à cadres ---------- */
.hof {
  --c-text: #f1efe4; --c-muted: #a9ad98; --c-line: #f1efe424; --c-chip: #2a3220;
  margin-top: clamp(100px, 15vh, 180px); padding: clamp(80px, 12vh, 140px) 0;
  background: #10130b; color: var(--c-text); border-radius: 40px;
}
.hof .big { color: var(--c-text); }
.hof .big .hof-script {
  display: block; font-family: var(--hand); font-weight: 700; font-stretch: 100%; text-transform: none;
  font-size: .42em; line-height: 1; color: var(--lime); rotate: -4deg; transform-origin: left; margin-top: .08em;
}
.hof .split-side p { color: var(--c-muted); }
.hof .split-side strong { color: var(--lime); font-weight: 600; }

.hof { overflow: hidden; }
.hof-grid {
  list-style: none; margin: 0; padding: 60px 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); row-gap: clamp(40px, 5vw, 70px);
}
.hof-item { will-change: transform; }
.hof-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 407 / 411; padding: 0; text-align: left;
  container-type: inline-size; color: var(--c-text);
}
.hof-frame:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: 10px; }

.hof-shape {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 407 411' preserveAspectRatio='none'%3E%3Cpath d='M8 1h391a7 7 0 0 1 7 7v357a7 7 0 0 1-7 7H263.3a24 24 0 0 0-18.7 9l-16.5 20.7a22 22 0 0 1-17.2 8.3H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 407 411' preserveAspectRatio='none'%3E%3Cpath d='M8 1h391a7 7 0 0 1 7 7v357a7 7 0 0 1-7 7H263.3a24 24 0 0 0-18.7 9l-16.5 20.7a22 22 0 0 1-17.2 8.3H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: radial-gradient(#f1efe414 1px, transparent 1px) 0 0 / 12px 12px, #181d11;
}
.hof-reveal {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 75%),
    color-mix(in srgb, var(--accent) 22%, #181d11);
  clip-path: ellipse(0% 0% at 50% 0%); transform: scale(1.2); transform-origin: top;
  transition: clip-path .9s var(--ease), transform .9s var(--ease);
}
.hof-art { position: absolute; inset: 6% 0 14%; display: grid; place-items: center; }
.hof-art svg { width: 112%; max-width: none; height: auto; transition: transform .9s var(--ease); }
.hof-num, .hof-cat { position: absolute; top: 5.5cqw; font: 500 max(10px, 3.2cqw) var(--mono); color: var(--c-muted); transition: color .4s; }
.hof-num { left: 5.5cqw; }
.hof-cat { right: 5.5cqw; background: #f1efe414; padding: .25em .8em; border-radius: 99px; top: 4.5cqw; }

.hof-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hof-outline path { fill: none; vector-effect: non-scaling-stroke; }
.o-base { stroke: #f1efe438; stroke-width: 1.5; }
.o-lime { stroke: var(--lime); stroke-width: 2; opacity: 0; transition: opacity .5s var(--ease); }

.hof-name {
  position: absolute; left: 0; bottom: 0; width: 54%; height: 9.6%;
  display: flex; align-items: center; padding-left: 5.5cqw;
  font: 800 7.4cqw/1 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em;
  transition: color .4s;
}
.hof-year {
  position: absolute; right: 0; bottom: 0; width: 42%; height: 9.6%;
  display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: .2em;
  font: 500 max(9px, 2.9cqw) var(--mono); color: var(--c-muted); white-space: nowrap; transition: color .4s;
}

.hof-frame:hover .hof-reveal, .hof-frame:focus-visible .hof-reveal { clip-path: ellipse(100% 120% at 50% 0%); transform: scale(1); }
.hof-frame:hover .hof-art svg, .hof-frame:focus-visible .hof-art svg { transform: scale(1.1); }
.hof-frame:hover .o-lime, .hof-frame:focus-visible .o-lime { opacity: 1; }
.hof-frame:hover .hof-name, .hof-frame:hover .hof-year, .hof-frame:focus-visible .hof-name { color: var(--lime); }
.hof-frame:hover .hof-num, .hof-frame:hover .hof-cat { color: var(--c-text); }
.js .hof-item.reveal.is-visible { transition-delay: calc(var(--i, 0) * 70ms); }

/* détails des illustrations */
.hof-art text, .pd-art text { font-family: var(--sans); }
.nodes text { font: 800 15px var(--sans); fill: #14121c; }
.art-word { font: 800 46px var(--display); font-stretch: 62%; letter-spacing: 4px; fill: var(--c-text); }
.stroke-a { fill: none; stroke: #c28cff; stroke-opacity: .5; }
.stroke-b { fill: none; stroke: #83d9ff; stroke-opacity: .35; }
.stroke-dash { fill: none; stroke: var(--c-text); stroke-opacity: .15; stroke-dasharray: 3 5; transform-origin: 200px 110px; animation: spin 60s linear infinite; }
.nodes g { animation: float 6s ease-in-out infinite; }
.nodes g:nth-child(2) { animation-delay: -1.2s; } .nodes g:nth-child(3) { animation-delay: -2.4s; }
.nodes g:nth-child(4) { animation-delay: -3.6s; } .nodes g:nth-child(5) { animation-delay: -4.8s; }
.crop { fill: none; stroke: var(--accent-2); stroke-width: 3; }
.pill-svg rect { fill: var(--accent); }
.pill-svg text { font: 700 10px var(--sans); fill: #1e2316; }
.doc-label { font: 700 6px var(--mono); fill: #223746; }
.mono-sm { font: 7px var(--mono); fill: #c1cce8; }
.playhead { animation: playhead 6s ease-in-out infinite; }
.ext { font: 700 12px var(--mono); }
.arrow path { fill: none; stroke: var(--c-text); stroke-opacity: .6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hand { font: 700 24px var(--hand); fill: var(--c-text); }
.teams rect { fill: var(--c-chip); stroke: var(--c-line); }
.cube { animation: float 7s ease-in-out infinite; }

/* ---------- Fiche projet (dialog) ---------- */
.project-dialog {
  --c-text: #f1efe4; --c-muted: #b4b7a4; --c-line: #f1efe424; --c-chip: #2f3725;
  width: min(1100px, 100% - 32px); max-height: min(92svh, 860px); padding: 0; border: 0; border-radius: 32px;
  background: var(--green); color: var(--c-text); overflow: auto;
  display: none; grid-template-columns: 1fr 1fr;
}
.project-dialog[open] { display: grid; animation: pd-in .6s var(--ease); }
.project-dialog::backdrop { background: #0b0d07cc; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pd-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink); font-size: 18px; font-weight: 700; transition: rotate .4s var(--ease);
}
.pd-close:hover { rotate: 90deg; }
.pd-art {
  margin: 12px 0 12px 12px; border-radius: 22px; min-height: 360px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 75%),
              radial-gradient(#f1efe414 1px, transparent 1px) 0 0 / 12px 12px, #181d11;
}
.pd-art svg { width: 100%; height: auto; }
.pd-body { padding: 44px 40px 40px; display: flex; flex-direction: column; }
.card-meta { display: flex; gap: 14px; font: 12px var(--mono); color: var(--c-muted); margin-bottom: 14px; padding-right: 50px; }
.card-meta span:first-child { color: var(--accent); }
.pd-body h3 { font: 800 clamp(56px, 7vw, 100px)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; margin-bottom: 14px; }
.tagline { font-size: 30px; color: var(--accent); margin-bottom: 14px; rotate: -1.5deg; transform-origin: left; }
.pd-body > p:not(.tagline) { color: var(--c-muted); margin-bottom: 18px; font-size: 15.5px; }
.points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 14.5px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 12px; line-height: 1.9; }
.tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 12px var(--mono); color: var(--c-text); background: var(--c-chip); border-radius: 99px; padding: 4px 11px; }
.links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.links a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--c-line); transition: background-color .3s, color .3s, border-color .3s; }
.links a:hover { border-color: var(--c-text); }
.links .link-primary { background: var(--accent); border-color: var(--accent); color: #1e2316; }
.links .link-primary:hover { background: var(--c-text); border-color: var(--c-text); }
.links a span { transition: transform .3s var(--ease); }
.links a:hover span { transform: translate(2px, -2px); }
@keyframes pd-in { from { opacity: 0; translate: 0 40px; scale: .97; } }


/* ---------- À propos ---------- */
.about-title { position: relative; }
.about-title .about-script {
  position: absolute; left: 52%; top: 8%; display: inline-block; font-size: .3em; font-stretch: 100%;
  text-transform: none; letter-spacing: 0; line-height: 1; white-space: nowrap;
  background: var(--lime); color: var(--lime-ink); padding: 0 .3em .1em; border-radius: .2em; rotate: -6deg;
}
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-text p { font-size: 18px; color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .about-lead { font: 700 clamp(26px, 3vw, 42px)/1.12 var(--display); font-stretch: 85%; letter-spacing: -.01em; color: var(--text); margin-bottom: 26px; }
.about-cta { margin-top: 14px; }
.about-card {
  position: relative; overflow: hidden; padding: 26px 28px 10px; border-radius: var(--radius);
  background: radial-gradient(#f1efe412 1px, transparent 1px) 0 0 / 12px 12px, var(--green); color: var(--cream);
  transition: rotate .6s var(--ease), translate .6s var(--ease);
}
.about-card:hover { rotate: -1deg; translate: 0 -4px; }
.about-card .label { color: var(--cream); }
.about-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.about-card-id { font: 600 12px var(--mono); color: var(--lime); }
.about-facts { margin: 0; }
.about-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #f1efe41f; }
.about-facts dt { font: 12px var(--mono); color: #b4b7a4; padding-top: 3px; }
.about-facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.about-facts div:hover dd { color: var(--lime); }

/* ---------- Approche ---------- */
.statement {
  font: 700 clamp(30px, 4.6vw, 70px)/1.08 var(--display); font-stretch: 85%; letter-spacing: -.02em;
  margin: 22px 0 70px; max-width: 1200px;
}
.statement .w { opacity: .14; transition: opacity .3s; }
.statement .w.on { opacity: 1; }
.statement .w.hl.on { background: var(--lime); color: var(--lime-ink); border-radius: 8px; box-shadow: 0 0 0 4px var(--lime); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principles article { border-top: 2px solid var(--text); padding-top: 18px; }
.p-num { font: 12px var(--mono); color: var(--muted); }
.principles h3 { font: 800 30px/.95 var(--display); font-stretch: 70%; text-transform: uppercase; margin: 12px 0 10px; }
.principles p { color: var(--muted); font-size: 15px; }

/* ---------- Compétences ---------- */
.skill-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.skill-rows li {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; gap: 24px; align-items: center;
  padding: 22px 12px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden;
}
.skill-rows li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.skill-rows li:hover::before { transform: scaleY(1); }
.skill-rows li:hover { color: var(--lime-ink); }
.sr-title { font: 800 clamp(40px, 5vw, 76px)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; transition: translate .5s var(--ease); }
.skill-rows li:hover .sr-title { translate: 12px 0; }
.sr-list { font-size: 16px; }
.sr-num { font: 12px var(--mono); }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(110px, 16vh, 190px); background: var(--lime); color: var(--cream); padding: 48px 14px 0; position: relative; }
.footer-panel {
  position: relative; min-height: min(100svh, 900px); border-radius: 30px; background: #1b2013;
  display: grid; grid-template-columns: 1fr minmax(0, 2.4fr) 1fr; grid-template-rows: 1fr auto;
  align-items: center; padding: clamp(60px, 9vh, 110px) clamp(16px, 3vw, 48px) 0;
}
.footer-notch { position: absolute; top: -40px; left: 50%; translate: -50% 0; width: min(46%, 520px); height: 42px; fill: #1b2013; }
.footer-topo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.footer-topo path { fill: none; stroke: var(--lime); stroke-opacity: .07; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.footer-topo g { transform-origin: center; animation: topo-drift 40s ease-in-out infinite alternate; }

.footer-col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.footer-col-label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #b4b7a4; margin-bottom: 10px; }
.footer-col a {
  font: 800 clamp(22px, 2.3vw, 36px)/1.08 var(--display); font-stretch: 70%; text-transform: uppercase;
  color: var(--cream); transition: color .3s, translate .4s var(--ease);
}
.footer-col a:hover { color: var(--lime); translate: 0 -2px; }
.footer-col .footer-col-accent { color: var(--lime); margin-top: 22px; font-size: clamp(18px, 1.7vw, 26px); }
.footer-col .footer-col-mail { font: 500 13px var(--mono); text-transform: none; color: #b4b7a4; margin-top: 18px; }

.footer-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-title { position: relative; font-size: clamp(40px, 5vw, 96px); line-height: .92; }
.footer-title .mask { display: block; }
.footer-title em {
  font-family: 'Instrument Serif', Georgia, serif; font-style: normal; font-weight: 400; font-stretch: 100%;
  color: var(--lime); letter-spacing: -.02em; font-size: 1.08em;
}
.footer-script {
  position: absolute; left: 50%; top: -1.3em; z-index: 2; translate: -10% 0;
  font-size: .62em; font-stretch: 100%; text-transform: none; letter-spacing: 0; line-height: 1;
  color: var(--lime); rotate: -9deg; white-space: nowrap; text-shadow: 0 4px 24px #0008;
}
.footer-mark { width: min(340px, 60%); aspect-ratio: 1003 / 386; fill: var(--lime); margin-top: clamp(28px, 5vh, 60px); filter: drop-shadow(0 20px 40px #0006); animation: float 6s ease-in-out infinite; }

.footer-marquee {
  grid-column: 1 / -1; position: relative; z-index: 1; overflow: hidden; margin: clamp(40px, 7vh, 80px) calc(-1 * clamp(16px, 3vw, 48px)) 0; padding: 26px 0 74px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.footer-marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.footer-marquee span { font: 800 clamp(22px, 2.4vw, 34px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: #f1efe48c; white-space: nowrap; transition: color .3s; }
.footer-marquee span:hover { color: var(--lime); }
.footer-marquee i { font-style: normal; color: var(--lime); opacity: .6; }
.footer-cta {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 12px;
  background: var(--lime); color: var(--lime-ink); font: 800 18px var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em;
  transition: background-color .3s, scale .4s var(--ease);
}
.footer-cta:hover { background: var(--cream); scale: 1.04; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px 18px; font: 12px var(--mono); color: var(--lime-ink); }
.footer-legal strong { font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes topo-drift { to { transform: scale(1.08) rotate(2deg) translate(-1%, 1%); } }

.magnetic { translate: var(--tx, 0px) var(--ty, 0px); transition: translate .6s var(--ease), background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.magnetic.is-pulled { transition: translate .1s linear, background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }

/* ---------- Apparitions ---------- */
/* Texte manuscrit qui « s'écrit » de gauche à droite */
.js .write { clip-path: inset(-20% 100% -20% 0); }
.js .is-visible .write { clip-path: inset(-20% -5% -20% 0); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1) .9s; }
/* Titre Projets : un bandeau citron vert balaie le mot et le dévoile */
.hof-title .mask { display: inline-block; position: relative; vertical-align: top; }
.js .hof-title .mask .line { translate: none; opacity: 0; }
.js .hof-title .mask::after {
  content: ''; position: absolute; inset: 2% -2% 4%; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
}
.js .hof-title.is-visible .mask .line { opacity: 1; transition: opacity 0s .55s; }
.js .hof-title.is-visible .mask::after { animation: wipe 1.1s cubic-bezier(.77, 0, .18, 1) forwards; }
@keyframes wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.01% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.js .hof-title .hof-script { scale: .9; }
.js .hof-title.is-visible .hof-script { scale: 1; transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1) 1s, scale 1.4s var(--ease) 1s; }
.js .reveal { opacity: 0; translate: 0 60px; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease), translate 1.2s var(--ease); }
.js .mask .line { translate: 0 105%; }
.is-loaded .hero .mask .line, .js .footer.is-visible .mask .line { translate: 0 0; transition: translate 1.3s var(--ease); }
.is-loaded .hero .mask:nth-child(2) .line, .footer.is-visible .mask:nth-child(2) .line { transition-delay: .1s; }
.js .hero-script { scale: 0; }
.is-loaded .hero-script { scale: 1; transition: scale .8s var(--ease) .6s; }

/* ---------- Effets de titres ---------- */
/* Remplissage du mot en contour au défilement */
.fill-text {
  background: linear-gradient(90deg, var(--text) 0 var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
}
/* Lettres brouillées */
[data-scramble] .sc { color: var(--brand-scramble, currentColor); opacity: .55; }

@keyframes pulse { 50% { opacity: .4; } }
@keyframes float { 50% { translate: 0 -6px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes playhead { 0%, 100% { translate: -90px 0; } 50% { translate: 60px 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .hero-bottom { grid-template-columns: 1fr auto; }
  .badge-link { display: none; }
  .principles { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .hof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-dialog[open] { grid-template-columns: 1fr; }
  .pd-art { margin: 12px 12px 0; min-height: 0; height: 260px; }
  .skill-rows li { grid-template-columns: 1fr auto; }
  .sr-list { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hide-sm { display: none; }
  .hero { padding-top: 96px; }
  .hero-script { top: 26%; right: 0; }
  .hero-bottom { grid-template-columns: 1fr; }
  .release-card { width: 100%; }
  .principles { grid-template-columns: 1fr; }
  .hof { border-radius: 28px; }
  .hof-cat { display: none; }
  .hof-grid { gap: 12px; row-gap: 28px; padding: 30px 0; }
  .pd-body { padding: 26px 22px 24px; }
  .pd-art { height: 200px; }
  .split-side .script { font-size: 32px; }
  .footer { padding: 40px 8px 0; }
  .footer-panel { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; row-gap: 48px; padding-top: 70px; border-radius: 22px; }
  .footer-center { grid-column: 1 / -1; order: -1; }
  .footer-notch { width: 70%; }
  .footer-col .footer-col-mail { font-size: 11px; overflow-wrap: anywhere; }
  .footer-legal { flex-direction: column; gap: 4px; }
  .about-facts div { grid-template-columns: 1fr; gap: 4px; }
  .about-title .about-script { left: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .mask .line { opacity: 1; translate: none; }
  .js .hero-script { scale: 1; }
  .js .write { clip-path: none; }
  .js .hof-title .mask .line { opacity: 1; }
  .js .hof-title .mask::after { display: none; }
  .js .loader { display: none; }
}
