/* Portfolio - Frumence Assogba
   Direction : la pièce sombre. Une seule pièce, des choses éclairées.
   Tout passe par des tokens : changer --accent relance la page entière. */

@font-face {
  font-family: "BR Candor";
  src: url("../fonts/br-candor-200.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BR Candor";
  src: url("../fonts/br-candor-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BR Candor";
  src: url("../fonts/br-candor-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BR Candor";
  src: url("../fonts/br-candor-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BR Candor";
  src: url("../fonts/br-candor-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BR Candor";
  src: url("../fonts/br-candor-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  /* couleurs */
  --bg: #0d0a14;
  --surface: #17121f;
  --ink: #efeaf7;
  --muted: #9a90ad;
  --accent: #8b6cf0;
  --accent-ink: #0d0a14;
  --lav: #c4b5ff;
  --line: #2a2238;
  --accent-deep: color-mix(in srgb, var(--accent) 55%, #0d0a14);

  /* échelle typographique : quatre pas de texte, l'affichage se cale à la largeur */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.15rem + 1.2vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  /* cadre : une seule paire de marges pour toute la page */
  --m: clamp(20px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --rail: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--rail);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body) / 1.55 "BR Candor", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

h1, h2, h3, p, ul, address { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: fixed; left: var(--m); top: 8px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-inline: var(--m);
}

/* ---------- Bouton : une seule forme, carrée ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-small); font-weight: 500; letter-spacing: 0;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 80%, #ffffff); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }

/* ---------- Premier écran ---------- */

.sw {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  background: var(--surface);
  font-size: var(--step-small);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.sw i { width: 14px; height: 14px; background: var(--c); }
.sw:hover { background: color-mix(in srgb, var(--surface) 70%, var(--ink)); }
.sw:active { transform: scale(.97); }
.sw[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Introduction ---------- */

/* ---------- Projets : des panneaux qui se recouvrent ---------- */
.work { position: relative; }
.panel {
  --g: var(--bg);
  position: relative;
  height: 100svh; overflow: hidden; isolation: isolate;
  background: var(--g);
}
.panel:nth-child(even) { --g: var(--surface); }

.panel-word {
  position: absolute; left: var(--m); bottom: -0.16em; z-index: 0;
  font-size: clamp(6rem, 21vw, 22rem);
  font-weight: var(--w, 300); letter-spacing: -0.05em; line-height: .85;
  color: color-mix(in srgb, var(--ink) 13%, var(--g));
  transform: translate3d(calc(var(--p, 0) * -5vw), 0, 0);
  white-space: nowrap; pointer-events: none; user-select: none;
  will-change: transform;
}

.panel-body {
  position: absolute; left: 0; right: 0; z-index: 2;
  top: calc(50% - 45px);
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap); row-gap: 20px;
  padding: 0 var(--m);
}
.panel-body .y { grid-column: 1; grid-row: 1; align-self: center; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.panel-body h2 {
  grid-column: 2 / span 7; grid-row: 1; align-self: center;
  font-size: var(--step-head); font-weight: var(--w, 300); line-height: 1; letter-spacing: -0.035em;
}
.panel-body .f { grid-column: 10 / span 3; grid-row: 1; align-self: center; justify-self: end; text-align: right; font-size: var(--step-small); color: var(--muted); }
.panel-body .d { grid-column: 2 / span 5; grid-row: 2; max-width: 34em; }

/* ---------- À propos ---------- */
.about { padding: var(--m); }
.about-panel {
  position: relative; overflow: hidden;
  min-height: 110svh;
  background: var(--surface);
  padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap); grid-template-rows: auto 1fr;
}
.about-panel h2 {
  grid-column: 1 / span 7; grid-row: 1;
  font-size: var(--step-head); font-weight: var(--w, 300); line-height: 1; letter-spacing: -0.035em;
}
.arch {
  grid-column: 1 / span 5; grid-row: 2; align-self: end;
  aspect-ratio: 4 / 5; margin-bottom: -8vw;
  border-radius: 50vw 50vw 0 0; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 38%, var(--surface));
}
.arch-img { width: 100%; height: 100%; object-fit: cover; }
.about-cols {
  grid-column: 8 / span 5; grid-row: 1 / span 2;
  display: flex; flex-direction: column; gap: 36px; align-items: flex-start;
  padding-top: 8px;
}
.about-cols h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; margin-bottom: 10px; }
.about-cols p { color: var(--ink); max-width: 32em; }
.about-more { font-size: var(--step-lead); font-weight: var(--w, 300); line-height: 1.25; }

/* ---------- Parcours : une seule taille, pas de filets ---------- */

/* ---------- Contact : la page s'allume ---------- */

/* ---------- Pied de page ---------- */

/* ---------- Mouvement ---------- */
.js-ready [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms);
}
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
/* l'état « .is-in » ne doit pas écraser le feedback au survol des liens */
.js-ready .btn[data-reveal].is-in:hover { transform: translateY(-2px); }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1100px) {
  .panel-body .y { grid-column: 1 / span 2; }
  .panel-body h2 { grid-column: 3 / span 6; }
  .panel-body .d { grid-column: 3 / span 6; }
}

@media (max-width: 900px) {
  :root { --rail: 76px; }
  .sw { padding: 0 12px; }
  .about { padding: 10px; }
  .about-panel { display: flex; flex-direction: column; gap: 32px; min-height: 0; padding: 28px 20px 0; }
  .about-panel h2 { font-size: var(--step-head); }
  .about-cols { display: contents; }
  .about-panel .btn { align-self: flex-start; }
  .arch { order: 5; width: 86%; align-self: center; margin-bottom: -22%; }
  .panel { height: 82svh; }
  .panel-body { top: auto; bottom: 22px; row-gap: 10px; grid-template-columns: 1fr auto; grid-template-areas: "t t" "y f" "d d" "m m"; }
  .panel-body h2 { grid-area: t; font-size: var(--step-head); }
  .panel-body .y { grid-area: y; }
  .panel-body .f { grid-area: f; grid-column: auto; }
  .panel-body .d { grid-area: d; grid-column: auto; font-size: var(--step-body); }
  .panel-body .more { grid-area: m; grid-column: auto; grid-row: auto; }
  .panel-word { bottom: auto; top: 26%; }
}

/* ====================================================================
   Pages d'étude de cas, À propos, aperçu, transitions
   ==================================================================== */
[hidden] { display: none !important; }

@view-transition { navigation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* le premier écran suit doucement le pointeur */

/* panneaux de l'accueil : titres et liens vivants */
.panel-body h2 a { transition: color .35s var(--ease); }
.panel-body h2 a:hover { color: var(--accent); }
.panel-body .more {
  grid-column: 2 / span 5; grid-row: 3; justify-self: start;
  padding: 12px 0; font-size: var(--step-lead); color: var(--accent);
  transition: transform .4s var(--ease), color .3s var(--ease);
}
.panel-body .more::after { content: " \2192"; }
.panel-body .more:hover { transform: translateX(6px); }
.js-ready .panel-body .more[data-reveal].is-in:hover { transform: translateX(6px); }

/* barre d'aperçu du brouillon */
.preview-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px;
  padding: 10px var(--m);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-small);
}
.preview-bar a, .preview-bar button { min-height: 32px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* en-tête des pages intérieures */

.page-title {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 7.4vw, 8.5rem); font-weight: var(--w, 300);
  line-height: .95; letter-spacing: -0.045em; text-wrap: balance;
}

/* étude de cas */
.case-head, .about-head { padding-block: clamp(110px, 9vw, 150px) clamp(28px, 3.5vw, 56px); }
.case-sub { grid-column: 1 / span 8; margin-top: 18px; font-size: var(--step-lead); font-weight: var(--w, 300); max-width: 30em; }

.case-facts { margin: 0; padding-block: 0 clamp(32px, 4vw, 64px); row-gap: 20px; }
.case-facts .fact { grid-column: span 3; }
.case-facts dt { font-size: var(--step-body); color: var(--muted); margin-bottom: 4px; }
.case-facts dd { margin: 0; font-size: var(--step-body); }

/* couverture : l'image entière (aucun recadrage, c'est le projet même), pleine largeur de l'écran */
.case-cover { --g: var(--surface); position: relative; display: block; overflow: hidden; background: var(--g); }
.case-img { display: block; width: 100%; height: auto; }
.case-lead { padding-block: clamp(72px, 9vw, 140px); }
.case-lead p {
  grid-column: 5 / span 8; max-width: 26em;
  font-size: var(--step-title); font-weight: var(--w, 300); line-height: 1.25; letter-spacing: -0.012em;
}
.case-sec { padding-block: clamp(40px, 5vw, 80px); row-gap: 16px; }
.case-sec h2 { grid-column: 1 / span 4; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; color: var(--accent); }
.case-body { grid-column: 5 / span 8; max-width: 38em; }
.case-body p + p { margin-top: 1em; }
.case-list li { padding-block: .45em; font-size: var(--step-lead); font-weight: var(--w, 300); line-height: 1.3; }

.shots { padding-block: clamp(40px, 5vw, 80px) clamp(72px, 9vw, 140px); row-gap: var(--gap); }
.shot { grid-column: span 6; margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

a.panel.next { display: block; --g: var(--surface); height: 72svh; min-height: 320px; }
.next-title {
  grid-column: 2 / span 7; grid-row: 1; align-self: center;
  font-size: var(--step-head); font-weight: var(--w, 300); line-height: 1; letter-spacing: -0.035em;
  transition: color .35s var(--ease);
}
.next:hover .next-title { color: var(--accent); }

.case-missing { padding-block: 22vh; row-gap: 24px; align-items: start; }
.case-missing h1 { grid-column: 1 / -1; font-size: var(--step-head); font-weight: var(--w, 300); line-height: 1; }
.case-missing p { grid-column: 1 / -1; }
.case-missing .btn { grid-column: 1 / span 3; justify-self: start; }

/* à propos */
.about-intro { padding-block: clamp(48px, 6vw, 96px); align-items: start; }
.portrait {
  grid-column: 1 / span 4; aspect-ratio: 4 / 5;
  border-radius: 50vw 50vw 0 0; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 38%, var(--surface));
  transition: background-color .9s var(--ease);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text {
  grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 1.1em; align-items: flex-start;
  font-size: var(--step-lead); font-weight: var(--w, 300); line-height: 1.4; max-width: 34em;
}
.skills { padding-block: clamp(72px, 9vw, 140px) 0; row-gap: 40px; }
.skills > div { grid-column: span 3; }
.skills h2 { font-size: var(--step-lead); font-weight: 400; color: var(--accent); margin-bottom: 12px; }
.skills p { font-size: var(--step-body); max-width: 24em; }

@media (max-width: 900px) {
  .case-facts .fact { grid-column: span 6; }
  .case-lead p, .case-sec h2, .case-body { grid-column: 1 / -1; }
  .case-lead p { font-size: var(--step-lead); }
  .shot { grid-column: 1 / -1; }
  .next-title { grid-column: 1 / -1; grid-row: 1; }
  .panel.next .f { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .case-body { max-width: none; }
  .portrait { grid-column: 1 / span 8; }
  .about-text { grid-column: 1 / -1; margin-top: 24px; }
  .skills > div { grid-column: span 6; }
}
@media (max-width: 600px) {
  .skills > div { grid-column: 1 / -1; }
  .portrait { grid-column: 1 / span 10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-ready [data-reveal] { opacity: 1; transform: none; filter: none; }
  .panel-word { transform: none; }
  @view-transition { navigation: none; }
}

/* ====================================================================
   v4 : barre flottante, premier écran 3D, bandeau, expériences, pied de page
   ==================================================================== */
@font-face {
  font-family: "MTC Ciscela";
  src: url("../fonts/mtc-ciscela-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root { --serif: "MTC Ciscela", "Times New Roman", serif; }
.it { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 1em; letter-spacing: -0.01em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Barre flottante ---------- */
.bar { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding-inline: var(--m); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-in {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px);
  padding: 6px 8px 6px clamp(18px, 2vw, 32px);
  background: var(--surface); font-size: var(--step-small);
}
.bar-in a:not(.bar-brand):not(.bar-cta) { padding: 12px 0; transition: color .3s var(--ease); }
.bar-in a:not(.bar-brand):not(.bar-cta):hover, .bar-in a[aria-current="page"] { color: var(--accent); }
.bar-brand { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 6px; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.02em; }

.bar-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); font-weight: 500; transition: background-color .35s var(--ease); }
.bar-cta:hover { background: color-mix(in srgb, var(--accent) 80%, #ffffff); }
.bar-toggle { display: none; min-height: 48px; padding: 0 20px; background: var(--surface); font-size: var(--step-small); }
.bar-in .bar-brand { order: 0; }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: 96px var(--m) var(--m); display: flex; flex-direction: column; justify-content: space-between; display: none; }
.menu.is-open { display: flex; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-size: clamp(2.5rem, 12vw, 5rem); font-weight: var(--w, 300); letter-spacing: -0.04em; line-height: 1.05; padding: 6px 0; overflow: hidden; display: block; }
.menu nav a span { display: block; }
.menu nav a:hover { color: var(--accent); }
.menu-foot { color: var(--muted); font-size: var(--step-body); }
.menu-foot a { color: var(--ink); }

/* ---------- Premier écran ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  grid-template-rows: 1fr auto auto; row-gap: clamp(20px, 3svh, 36px);
  min-height: 100svh; padding: 120px var(--m) var(--m); overflow: hidden;
}
.hero-stage { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: 0; }

.hero > *:not(.hero-stage) { position: relative; z-index: 1; }
.hero-title {
  grid-column: 1 / span 9; grid-row: 1; align-self: end;
  font-size: clamp(3rem, 9.2vw, 11rem); font-weight: var(--w, 300); line-height: .92; letter-spacing: -0.045em;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero-title .ln > span { display: block; }
.hero-title .ln:last-child { color: var(--accent); transition: color .9s var(--ease); }
.hero-copy { grid-column: 1 / span 6; grid-row: 2; display: flex; flex-direction: column; gap: 28px; }
.statement { font-size: var(--step-title); font-weight: var(--w, 300); line-height: 1.2; letter-spacing: -0.015em; max-width: 24em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-actions .btn { min-height: 52px; padding: 0 28px; font-size: var(--step-body); }
.link { font-size: var(--step-body); padding: 12px 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .3s var(--ease); }
.link:hover { color: var(--accent); }

.tokens { grid-column: 9 / span 4; grid-row: 2 / span 2; align-self: end; justify-self: end; }

.js-ready .hero-copy > *,
.js-ready .tokens { opacity: 0; transform: translateY(24px); }
.js-ready.lit .hero-copy > *,
.js-ready.lit .tokens {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
.hero-copy > :nth-child(1) { --d: 420ms; } .hero-copy > :nth-child(2) { --d: 540ms; }
 .tokens { --d: 700ms; }

/* ---------- Compteur d'arrivée ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: var(--m); }
.loader .count { font-size: clamp(5rem, 22vw, 20rem); font-weight: var(--w, 300); line-height: .8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--accent); }
.loader .what { font-size: var(--step-body); color: var(--muted); max-width: 14em; text-align: right; }

/* ---------- Bandeau ---------- */
.marquee { overflow: hidden; padding-block: clamp(36px, 5vw, 72px); background: var(--bg); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-track span { flex: none; font-size: clamp(3rem, 9vw, 9rem); font-weight: var(--w, 300); letter-spacing: -0.04em; line-height: 1; padding-right: .5em; white-space: nowrap; }
.mq-track i { font-style: normal; color: var(--accent); padding-right: .5em; }

/* ---------- Expériences ---------- */
.xp { padding: clamp(96px, 12vw, 200px) var(--m) clamp(80px, 10vw, 160px); }
.xp-title { font-size: var(--step-head); font-weight: var(--w, 300); line-height: 1; letter-spacing: -0.035em; margin-bottom: clamp(32px, 4vw, 64px); }

/* ---------- Pied de page ---------- */
.foot { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; padding: var(--m); background: var(--bg); overflow: hidden; }

.foot-mid { align-self: center; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 5vh, 56px); padding-block: 72px 48px; text-align: center; }
.foot-lead { font-size: var(--step-lead); font-weight: var(--w, 300); }
.foot-mail { font-size: clamp(1.75rem, 6.4vw, 7.5rem); font-weight: var(--w, 300); letter-spacing: -0.045em; line-height: 1; overflow-wrap: anywhere; transition: color .35s var(--ease); }
.foot-mail:hover { color: var(--accent); }
.foot-cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 120px); width: 100%; max-width: 1100px; }
.foot-cta > div { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot-cta h2 { font-size: var(--step-title); font-weight: var(--w, 300); line-height: 1.15; letter-spacing: -0.02em; }
.wordmark { position: relative; z-index: 0; white-space: nowrap; line-height: .8; font-weight: var(--w, 300); letter-spacing: -0.06em; color: color-mix(in srgb, var(--accent) 16%, var(--bg)); user-select: none; margin-bottom: -.06em; }
.wordmark .ch { display: inline-block; transition: color .5s var(--ease), transform .5s var(--ease); }
.wordmark .ch:hover { color: var(--accent); transform: translateY(-.04em); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); font-size: var(--step-small); color: var(--muted); padding-top: 18px; }
.foot-bottom button { min-height: 44px; padding: 0 16px; background: var(--surface); color: var(--ink); }
.foot-bottom button:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bar { justify-content: space-between; align-items: center; }
  .bar-in { display: none; }
  .bar-brand-m { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--surface); font-weight: 500; }
  .bar-toggle { display: inline-flex; align-items: center; }
  .hero { padding-top: calc(86px + 40svh); grid-template-rows: auto auto auto auto; }
  .hero-stage { width: 100%; height: calc(86px + 42svh); bottom: auto; }
  .hero-title { grid-column: 1 / -1; font-size: clamp(2.4rem, 10.4vw, 5.5rem); }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy { grid-row: 2; } 
  .statement { font-size: var(--step-lead); }
  .tokens { grid-column: 1 / -1; grid-row: 4; justify-self: start; align-self: start; }
   
  
  
  
  
  
  
  .foot-cta { grid-template-columns: 1fr; }
  
}
@media (min-width: 901px) { .bar-brand-m, .bar-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js-ready .hero-copy > *,
.js-ready .tokens { opacity: 1; transform: none; }
  
}

/* ---------- v5 : panneaux pilotés par l'image ---------- */
.panel.has-media {
  height: auto; min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: center; padding: clamp(72px, 9vw, 120px) var(--m);
}
.panel.has-media .panel-word {
  bottom: auto; top: 6%; left: auto; right: var(--m);
  font-size: clamp(5rem, 15vw, 15rem);
  color: color-mix(in srgb, var(--ink) 7%, var(--g));
}
.panel-media {
  position: relative; display: block; overflow: hidden; z-index: 1;
  grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 16 / 10;
  background: var(--surface);
  clip-path: inset(0 0 0 0);
}
.panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel.has-media .panel-body {
  position: relative; top: auto; left: auto; right: auto; padding: 0; z-index: 2;
  grid-column: 8 / span 5; grid-row: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.panel.has-media .panel-body h2 { font-size: var(--step-head); }
.panel.has-media .panel-body .y,
.panel.has-media .panel-body .f { text-align: left; color: var(--muted); }
.panel.has-media .panel-body .d { max-width: 28em; }
.panel.has-media:nth-child(even) .panel-media { grid-column: 6 / span 7; }
.panel.has-media:nth-child(even) .panel-body { grid-column: 1 / span 5; }
.panel.has-media:nth-child(even) .panel-word { right: auto; left: var(--m); }
@media (max-width: 900px) {
  .panel.has-media { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; }
  .panel-media, .panel.has-media:nth-child(even) .panel-media { aspect-ratio: 4 / 3; width: 100%; }
  /* la règle mobile générique .panel-body (bottom: 22px) remontait le texte de 22 px sur l'image */
  .panel.has-media .panel-body { bottom: auto; }
}
/* curseur "Voir" */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 500;
  pointer-events: none; transform: scale(.6); opacity: 0; will-change: transform; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.shots .shot img { width: 100%; height: auto; display: block; }
.panel.has-media .panel-body, .panel.has-media .panel-body h2, .panel.has-media .panel-body p { text-align: left; }
.panel.has-media .panel-body .y, .panel.has-media .panel-body .f { justify-self: auto; }
.panel.has-media .panel-body > * { align-self: flex-start; justify-self: auto; grid-column: auto; grid-row: auto; }

/* ---------- v6 : le site est un fichier Figma (violet profond) ---------- */
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23efeaf7' fill-opacity='.11'/%3E%3C/svg%3E");
  background-size: 28px 28px; background-position: 0 var(--gy, 0px); background-attachment: fixed;
  --fbg: color-mix(in srgb, var(--surface) 82%, var(--bg));
  --fline: color-mix(in srgb, var(--accent) 55%, transparent);
}
.marquee { background: transparent; }
.frame { outline: 1px solid var(--fline); outline-offset: 0; clip-path: inset(-34px -8px -8px -8px); }
.fl {
  position: absolute; left: 0; top: -26px; z-index: 5; max-width: calc(100% - 8px);
  padding: 4px 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.fh { position: absolute; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--accent); z-index: 5; pointer-events: none; }
.fh.tl { left: -5px; top: -5px; } .fh.tr { right: -5px; top: -5px; } .fh.bl { left: -5px; bottom: -5px; } .fh.br { right: -5px; bottom: -5px; }
.frame > .fl { top: -27px; }

.hero { margin: 56px var(--m) 0; min-height: calc(100svh - 72px); padding: 96px clamp(20px, 3vw, 48px) clamp(20px, 3vw, 40px); overflow: visible; background: var(--fbg); }
.hero-title { justify-self: start; position: relative; }
.hero-title .ln:last-child { color: var(--lav); }
.sel { position: absolute; inset: -12px -16px -4px; border: 1px solid var(--accent); pointer-events: none; z-index: 3; opacity: 0; transition: opacity .8s var(--ease) 2.2s; }
.lit .sel { opacity: 1; }
.sel .fh { background: var(--ink); }
.sel-dim { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); padding: 3px 8px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.hero-copy { margin-top: 24px; }

.hero-stage { width: 58%; }

.work { padding-bottom: 72px; }
.work .panel { --g: var(--fbg); margin: 64px var(--m) 0; overflow: visible; background: var(--fbg); min-height: 0; }
.work .panel.has-media { min-height: 0; padding: clamp(32px, 4.5vw, 72px) clamp(20px, 3vw, 48px); }
.work .panel:nth-child(even) { --g: var(--fbg); }
.work .panel-word { z-index: 0; }
.panel-media { outline: 1px solid var(--line); }
.about { padding: 64px var(--m) 0; }
.about-panel { overflow: visible; background: var(--fbg); }
.foot { margin: 64px var(--m) var(--m); min-height: calc(100svh - 96px); overflow: visible; background: var(--fbg); }
.wordmark { color: color-mix(in srgb, var(--accent) 22%, var(--fbg)); }

.panel-body h2 a:hover, .more { color: var(--lav); }

/* panneau de calques */
.layers { position: fixed; left: max(var(--m), env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 58; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.layers[hidden] { display: none; }
.layers-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: var(--step-small); max-width: min(78vw, 360px); }
.layers-btn:hover { border-color: var(--accent); }

.layers-cur { color: var(--lav); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layers-list { display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 6px; min-width: 240px; max-width: min(78vw, 360px); max-height: 60svh; overflow: auto; }
.layers.is-open .layers-list { display: flex; }
.layer { display: block; width: 100%; min-height: 40px; text-align: left; padding: 0 12px; font-size: var(--step-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.layer.is-on { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); }

/* curseur nommé et Voir */
.cursor { background: var(--accent); color: var(--accent-ink); }

/* Inspect */
.inspect-btn { position: fixed; right: max(var(--m), env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 58; min-height: 44px; padding: 0 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: var(--step-small); }
.inspect-btn:hover { border-color: var(--accent); }
.inspect-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.insp-box { position: fixed; z-index: 94; pointer-events: none; opacity: 0; outline: 1px solid var(--lav); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.insp-tip { position: fixed; z-index: 96; pointer-events: none; opacity: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--ink); color: var(--accent-ink); font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; max-width: 260px; }
body.is-inspecting { cursor: crosshair; }

/* copier l'adresse */

/* expériences en calques */

@media (max-width: 900px) {
  .hero-stage { width: 100%; opacity: .55; }
  
  
}
@media (max-width: 600px) {
  .hero { padding-top: 88px; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) { .sel { transition: none; opacity: 1; }  }

.hero > .fl, .hero > .fh, .hero > .sel { position: absolute; }
.hero > .fl { top: -27px; left: 0; }
.sel-dim { width: max-content; }
body { overflow-x: clip; }
.sel, .sel-dim, .fl { letter-spacing: 0; line-height: 1.3; font-size: 12px; font-weight: 500; }
.hero { padding-bottom: 88px; }
html { overflow-x: clip; }
.foot { grid-template-columns: minmax(0, 1fr); }
.foot > * { min-width: 0; }

/* ---------- v7 : barre en verre, Brand, démarche, transition ---------- */
.bar-in, .bar-toggle, .bar-brand-m {
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.bar-in { padding: 6px 6px 6px clamp(20px, 2.2vw, 34px); }
.bar-cta { border-radius: 999px; }
.bar-in a:not(.bar-brand):not(.bar-cta) { padding: 12px 4px; }
.bar-brand { border-radius: 999px; background: color-mix(in srgb, var(--accent) 24%, transparent); min-width: 48px; }
.menu {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
}
.menu nav a { border-radius: 24px; }
@media (max-width: 900px) { .menu { padding-top: 104px; } }
@supports not (backdrop-filter: blur(1px)) { .bar-in, .bar-toggle, .bar-brand-m { background: var(--surface); } .menu { background: var(--bg); } }

/* filtre des projets */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 48px var(--m) 0; }
.chip {
  min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: var(--step-body);
  color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.panel[hidden] { display: none; }
.work .panel:first-of-type { margin-top: 40px; }

/* pastilles de type et d'exemple */
.panel-body .y { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; white-space: normal; }
.kind { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--lav); font-weight: 500; font-size: var(--step-small); }
.badge { font-style: normal; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--lav) 18%, transparent); color: var(--lav); font-size: var(--step-small); font-weight: 500; }

/* panneaux Brand : image en vitrine plus carrée, texte de l'autre côté */
.work .panel.is-brand .panel-media { aspect-ratio: 4 / 3; }
.work .panel.is-brand .panel-media { grid-column: 1 / span 6; }
.work .panel.is-brand .panel-body { grid-column: 8 / span 5; }
.work .panel.is-brand:nth-child(even) .panel-media { grid-column: 7 / span 6; }
.work .panel.is-brand:nth-child(even) .panel-body { grid-column: 1 / span 5; }
.work .panel.is-brand .panel-word { font-family: var(--serif); font-style: normal; font-weight: 400; }

/* démarche */
.dem { padding-block: clamp(48px, 6vw, 96px); row-gap: 28px; }
.dem-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dem-head h2 { font-size: var(--step-head); font-weight: var(--w, 300); letter-spacing: -.035em; line-height: 1; }
.dem-blocks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.dem-block { grid-column: span 6; background: var(--fbg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dem-block small { display: block; color: var(--muted); font-size: var(--step-small); margin-bottom: 6px; }
.dem-t { font-size: var(--step-lead); font-weight: 400; color: var(--lav); }
.dem-persona { grid-column: span 5; } .dem-empathie { grid-column: span 7; }
.dem-parcours, .dem-systeme, .dem-mots, .dem-palette, .dem-typo { grid-column: span 12; }
.dem-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: var(--step-body); }
.dem-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.pe-top { display: flex; align-items: center; gap: 16px; }
.pe-av { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 500; font-size: 1.25rem; text-transform: uppercase; flex: none; }
.pe-who { display: flex; flex-direction: column; font-size: var(--step-body); }
.pe-who span { color: var(--muted); font-size: var(--step-small); }
.pe-goal { font-size: var(--step-body); }
.pe-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.em-q { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 16px; padding: 16px 18px; }
.pa-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--gap); counter-reset: s; }
.pa-steps li { counter-increment: s; position: relative; padding-top: 44px; font-size: var(--step-body); }
.pa-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: var(--step-small); font-weight: 500; }
.pa-steps li::after { content: ""; position: absolute; top: 15px; left: 40px; right: -8px; height: 2px; background: var(--line); }
.pa-steps li:last-child::after { display: none; }
.sy-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sy-chip { padding: 10px 18px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); font-size: var(--step-body); }
.mo-words { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: clamp(2.2rem, 6vw, 5rem); font-weight: var(--w, 300); letter-spacing: -.04em; line-height: 1.05; }
.mo-words .it { color: var(--lav); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pl-sw { background: var(--c); border-radius: 18px; min-height: 150px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.pl-sw b { font-weight: 500; } .pl-sw span { font-size: var(--step-small); opacity: .85; font-variant-numeric: tabular-nums; }
.ty-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.ty-c { display: flex; flex-direction: column; gap: 4px; }
.ty-aa { font-size: clamp(4rem, 9vw, 7rem); line-height: 1; font-weight: var(--w, 300); }
.ty-aa.it { font-size: clamp(4rem, 9vw, 7rem); }
@media (max-width: 900px) {
  .dem-persona, .dem-empathie, .dem-block { grid-column: 1 / -1; }
  .pa-steps { grid-auto-flow: row; }
  .pa-steps li { padding: 4px 0 4px 48px; min-height: 32px; }
  .pa-steps li::after { display: none; }
  .work .panel.is-brand .panel-media, .work .panel.is-brand:nth-child(even) .panel-media { grid-column: auto; }
}
@media (max-width: 560px) { .pe-cols, .em-grid { grid-template-columns: 1fr; } }

/* transition de page */

.foot { grid-template-rows: 1fr auto auto; }
.foot-cta { grid-template-columns: 1fr; max-width: 600px; }
.wordmark { text-transform: uppercase; }
.filters { gap: 6px; margin-top: 40px; }
.chip { position: relative; min-height: 34px; padding: 0 16px; font-size: var(--step-small); font-weight: 400; letter-spacing: .01em; border-width: 1px; border-color: color-mix(in srgb, var(--ink) 10%, transparent); background: transparent; }
.chip::after { content: ""; position: absolute; inset: -5px -3px; }
.chip[aria-pressed="true"] { font-weight: 500; }

/* ---------- v8 : finesse (boutons, liens, paragraphes) ---------- */
:root {
  --step-small: clamp(0.8125rem, 0.8rem + 0.08vw, 0.875rem);
  --step-body: clamp(1rem, 0.95rem + 0.18vw, 1.0625rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  --step-title: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
}
body { font-weight: var(--w, 300); line-height: 1.65; }
p { text-wrap: pretty; }
.btn, .hero-actions .btn, .bar-cta { min-height: 44px; padding: 0 22px; font-size: var(--step-small); font-weight: 500; letter-spacing: .02em; border-radius: 999px; }
.link, .more, .panel-body .more { font-size: var(--step-small); letter-spacing: .02em; padding: 12px 0; }
.bar-in a, .bar-toggle, .bar-brand-m { font-size: var(--step-small); letter-spacing: .02em; }
.statement { font-size: var(--step-lead); line-height: 1.5; font-weight: var(--w, 300); max-width: 30em; letter-spacing: 0; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.panel-body .d,
.about-text,
.about-cols p,
.case-body,
.skills p,
.case-sub { font-size: var(--step-body); line-height: 1.7; font-weight: var(--w, 300); color: color-mix(in srgb, var(--ink) 82%, transparent); }
.about-text { font-size: var(--step-lead); line-height: 1.6; max-width: 32em; }
.case-lead p { font-size: var(--step-title); line-height: 1.35; font-weight: var(--w, 300); }
.case-body p, .panel-body .d { max-width: 34em; }
.foot-lead { font-size: var(--step-lead); }
.foot-cta h2 { font-size: var(--step-lead); font-weight: var(--w, 300); }
.inspect-btn,
.layers-btn,
.chip { font-size: var(--step-small); }
.dem-list, .pe-who, .pe-goal, .sy-chip { font-size: var(--step-body); }

/* marquee : une seule typographie, couleur discrète */
.mq-track span { font-size: clamp(2.25rem, 6vw, 5.5rem); font-weight: 200; letter-spacing: -0.035em; color: color-mix(in srgb, var(--ink) 34%, transparent); }
.mq-track em, .mq-track .it { font-family: inherit; font-style: normal; font-weight: inherit; font-size: 1em; letter-spacing: inherit; color: inherit; }
.mq-track i { color: color-mix(in srgb, var(--accent) 55%, transparent); }
.marquee { padding-block: clamp(28px, 4vw, 56px); }

/* aération : sections plus compactes */
.about-panel { min-height: 0; padding: clamp(28px, 4vw, 64px); align-items: start; row-gap: 32px; }
.about-panel h2 { grid-row: 1; align-self: start; }
.about-cols { grid-row: 1; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.work .panel.has-media { padding-block: clamp(28px, 3.4vw, 56px); }
.work .panel { margin-top: 48px; }
.about { padding-top: 56px; padding-bottom: 0; }
.marquee { padding-block: clamp(20px, 3vw, 40px); }
.foot { min-height: 0; margin-top: 56px; padding-block: clamp(48px, 7vw, 96px) var(--m); }
.foot-mid { padding-block: 24px 40px; gap: clamp(20px, 3vh, 36px); }
.xp { padding-block: clamp(56px, 7vw, 112px) clamp(48px, 6vw, 96px); }
.skills { padding-block: clamp(48px, 6vw, 96px) 0; }
.about-intro { padding-block: clamp(32px, 4vw, 64px); }
.dem { padding-block: clamp(32px, 4vw, 64px); }
.case-lead { padding-block: clamp(48px, 6vw, 96px); }

/* mur d'outils */

.tool { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 84px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.tool:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateY(-2px); }
.tool b { font-weight: 400; font-size: var(--step-body); letter-spacing: -.01em; }
.tool small { color: var(--muted); font-size: var(--step-small); margin: 0; }

/* bandeau d'outils : deux rangées défilantes */
.about-panel > .tools-band { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(20px, 3vw, 48px); display: grid; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trow { overflow: hidden; }
.ttrack { display: flex; width: max-content; animation: tscroll 38s linear infinite; }
.trow.rev .ttrack { animation-direction: reverse; animation-duration: 46s; }
.tools-band:hover .ttrack { animation-play-state: paused; }
.tlist { list-style: none; margin: 0; padding: 0 5px; display: flex; gap: 10px; }
.tchip { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); white-space: nowrap; transition: border-color .3s var(--ease); }
.tchip:hover { border-color: var(--accent); }
.tmark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--lav); font-family: var(--serif); font-style: normal; font-size: 22px; line-height: 1; }
.tmark img { width: 26px; height: 26px; object-fit: contain; }
.tchip b { font-weight: var(--w, 300); font-size: var(--step-body); letter-spacing: -.01em; }
@keyframes tscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ttrack { animation: none; } .trow { overflow-x: auto; } }

/* respiration entre le bouton Parlons-en et le nom */
.foot-mid { padding-bottom: clamp(48px, 8vh, 96px); }
.foot .wordmark { margin-top: clamp(24px, 4vh, 56px); }

/* premier écran : graisse variable + composants flottants */
.hero-title .ch { display: inline-block; font-weight: var(--w, 300); }
.hero > .fx-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fx { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; will-change: transform; }
.fx-ui { animation: fxfloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.7s); }
.fx-tag { font-size: 11px; letter-spacing: .02em; color: var(--lav); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); padding: 2px 8px; border-radius: 4px; }
.fx-pill { display: block; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 500; letter-spacing: .02em; }
.fx-swatch .fx-ui { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.fx-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); }
.fx-hex { font-size: var(--step-small); color: var(--ink); letter-spacing: .04em; }
@keyframes fxfloat { 50% { transform: translateY(-14px); } }
@media (max-width: 900px) { .fx-swatch { display: none; } .fx-btn { top: 9% !important; right: 6% !important; } }
@media (prefers-reduced-motion: reduce) { .fx-ui { animation: none; } }
@media (max-width: 900px) { .hero > .fx-layer { display: none; } }
@media (max-width: 560px) { .hero-title { font-size: clamp(2.2rem, 10.2vw, 3.4rem); } }

/* variables : panneau de tokens */
.vars-btn { position: fixed; right: max(var(--m), env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 58; min-height: 44px; padding: 0 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: var(--step-small); }
.vars-btn:hover, .vars-btn.is-on { border-color: var(--accent); }
.vars-btn.is-on { background: var(--accent); color: var(--accent-ink); }
@media (pointer: fine) { .vars-btn { right: calc(max(var(--m), env(safe-area-inset-right, 0px)) + 100px); } }
.vars { position: fixed; right: max(var(--m), env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 56px); z-index: 59; width: min(320px, calc(100vw - 32px)); max-height: calc(100svh - 160px); overflow-y: auto; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 16px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.vars[hidden] { display: none; }
.vars-head { display: flex; flex-direction: column; gap: 2px; }
.vars-head b { font-weight: 500; font-size: var(--step-body); }
.vars-head span, .vars h3 { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin: 0; }
.vars-group { display: flex; flex-direction: column; gap: 10px; }
.vars-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.vars-mode { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: var(--step-small); }
.vars-mode i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.vars-mode[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.vars-custom { display: flex; align-items: center; justify-content: space-between; font-size: var(--step-small); color: var(--muted); }
.vars-custom input { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.vars-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vars-list li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; font-size: var(--step-small); }
.vars-list i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.vars code, .vars-st code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; color: var(--lav); }
.vars-slide { display: flex; flex-direction: column; gap: 6px; font-size: var(--step-small); }
.vars-st { display: flex; justify-content: space-between; align-items: baseline; }
.vars-slide input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 24px; }
.vars-reset { align-self: flex-start; min-height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: var(--step-small); }
.vars-reset:hover { border-color: var(--accent); }
/* rayon des cadres (variable radius/frame) */
.hero,
.work .panel,
.about-panel,
.foot,
.shots figure.shot,
.panel-media,
.tool,
.tchip { border-radius: var(--r-frame, 0); }
.panel-media { overflow: hidden; }
.tool { border-radius: max(18px, var(--r-frame, 0px)); }
.tchip { border-radius: 999px; }

/* dock d'outils */
.dock { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 58; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: dockin .9s var(--ease) 2.4s both; }
@keyframes dockin { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dk { position: relative; display: flex; }
.dk:has(> [hidden]) { display: none; }
.dock .layers { position: relative; left: auto; bottom: auto; display: block; }
.dock .layers-btn, .dock .inspect-btn, .dock .vars-btn, .dock .theme-btn { position: static; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: var(--step-small); letter-spacing: .01em; max-width: none; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.dock .layers-btn:hover, .dock .inspect-btn:hover, .dock .vars-btn:hover, .dock .layers:hover .layers-btn { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dock .inspect-btn[aria-pressed="true"], .dock .vars-btn.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dk-ic { display: inline-flex; transition: transform .45s var(--ease); }
.dock kbd { font: inherit; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 5px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); color: var(--muted); }
.dock [aria-pressed="true"] kbd, .dock .is-on kbd { color: inherit; }
.dock .layers-cur { display: none; max-width: 160px; }
@media (min-width: 1100px) { .dock .layers-cur { display: inline; } .dock .layers-cur::before { content: "/"; color: var(--muted); margin-right: 9px; }
  .dock .layers-btn .dk-lb { color: var(--muted); } }
.dock .layers-list { position: absolute; left: 0; bottom: calc(100% + 18px); border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dock .layer { border-radius: 10px; }
/* infobulles */
.dock-tip { position: absolute; left: 50%; bottom: calc(100% + 18px); transform: translate(-50%, 6px); opacity: 0; pointer-events: none; width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--accent-ink); display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.dock-tip b { font-weight: 500; }
@media (hover: hover) { .dk:hover .dock-tip, .dk:focus-within .dock-tip { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; } }
.dk:has(.is-open) .dock-tip, .dk:has(.vars-btn.is-on) .dock-tip, .dk:has([aria-pressed="true"]) .dock-tip { display: none; }
/* point de découverte */
.dk-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lav); pointer-events: none; }
.dk:not(.is-new) .dk-dot { display: none; }
/* indice */
.dock-hint { position: fixed; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 72px); transform: translate(-50%, 8px); z-index: 57; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.dock-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.dock-hint[hidden] { display: none; }
/* panneau Variables ancré au dock */
.vars { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 72px); }
@media (max-width: 560px) {
  .dock .dk-lb, .dock kbd, .dock .layers-cur { display: none; }
  .dock .layers-btn, .dock .inspect-btn, .dock .vars-btn { padding: 0 14px; }
  .dock .layers-list { left: 0; }
}
@media (hover: none) { .dock-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { animation: none; } .dk-dot::after { animation: none; } .dock button:hover .dk-ic { transform: none; } }

/* rayon animé : le composant et son aperçu changent réellement de coin */
@property --sep { syntax: "<number>"; inherits: true; initial-value: 1; }

/* scène du premier écran : composant éclaté en calques */
.hero-stage { display: block; }
.ds { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1500px; pointer-events: none; }
.ds-rig { --tx: 0deg; --tz: 0deg; position: relative; width: clamp(240px, 27vw, 420px); aspect-ratio: 8 / 5.4; transform-style: preserve-3d; transform: rotateX(calc(58deg + var(--tx))) rotateZ(calc(-34deg + var(--tz))); animation: dsbreath 8s ease-in-out infinite; }
@keyframes dsbreath { 0%, 100% { --sep: 1; } 50% { --sep: .25; } }
.ds-l { position: absolute; border-radius: calc(10px + var(--r-frame, 0px) * .6); transform: translateZ(calc(var(--z) * 46px * var(--sep))); transform-style: preserve-3d; }
.ds-base { inset: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.ds-grid { inset: 0; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%23ffffff' stroke-opacity='.14'/%3E%3C/svg%3E"); background-size: 8% 12%; }
.ds-card { left: 9%; top: 12%; width: 56%; height: 54%; background: color-mix(in srgb, var(--ink) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.ds-av { position: absolute; left: 8%; top: 12%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--lav); }
.ds-bar { position: absolute; left: 8%; height: 6%; border-radius: 99px; background: color-mix(in srgb, var(--ink) 60%, transparent); }
.ds-bar.b1 { top: 50%; width: 70%; } .ds-bar.b2 { top: 63%; width: 52%; opacity: .6; } .ds-bar.b3 { top: 76%; width: 36%; opacity: .35; }
.ds-cta { left: 9%; bottom: 10%; width: 30%; height: 15%; border-radius: 999px; background: var(--accent); display: grid; place-items: center; }
.ds-btxt { width: 48%; height: 22%; border-radius: 99px; background: var(--accent-ink); opacity: .75; }
.ds-dot { right: 9%; top: 12%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); border: 2px solid var(--lav); }
.ds-tag { position: absolute; left: calc(100% + 8px); top: 50%; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 11px; letter-spacing: .02em; color: var(--lav); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); padding: 2px 8px; border-radius: 4px; transform-origin: 0 50%; transform: translateY(-50%) rotateZ(calc(34deg - var(--tz))) rotateX(calc(-58deg - var(--tx))); }
.ds-tag::before { content: ""; position: absolute; right: 100%; top: 50%; width: 22px; border-top: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.ds-base .ds-tag, .ds-grid .ds-tag { left: calc(100% - 4px); }
@media (max-width: 900px) { .ds-rig { width: clamp(200px, 56vw, 300px); } .ds-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .ds-rig { animation: none; --sep: 1; } }
.ds { place-items: center end; padding-right: 9%; padding-top: 4%; }
.ds-rig { width: clamp(300px, 29vw, 460px); transform: rotateX(calc(54deg + var(--tx))) rotateZ(calc(-34deg + var(--tz))); }
.ds-tag { transform: translateY(-50%) rotateZ(calc(34deg - var(--tz))) rotateX(calc(-54deg - var(--tx))); }
.ds-l { transform: translateZ(calc(var(--z) * 52px * var(--sep))); }
.ds-base .ds-tag { top: 84%; }
@media (max-width: 900px) {
  .hero-stage { top: auto; bottom: 84px; height: 280px; width: 100%; opacity: 1; }
  .ds { padding: 0; place-items: center; }
  .ds-rig { width: clamp(220px, 58vw, 320px); }
}

/* calques : pont de survol entre le bouton et la liste, sélection visible */
.dock .layers-list { padding-bottom: 6px; }
.dock .layers-list::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; }
.dock .layer { transition: background-color .2s var(--ease), color .2s var(--ease); }
.dock .layer:focus-visible { outline: 1px solid var(--lav); }
.dock .layer.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lav); margin-right: 10px; vertical-align: middle; }
.dock .layers.is-open .layers-btn { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
/* logos d'outils */
.tmark.has-logo { background: #f4f1fa; }
.tmark img { width: 24px; height: 24px; object-fit: contain; }

/* sélection de cadre depuis les calques */
.frame.is-hover { outline: 1px dashed var(--lav); outline-offset: 2px; }
.frame.is-selected { outline: 2px solid var(--lav); outline-offset: 2px; }
.frame.is-selected > .fl { background: var(--lav); }
.dock .layer[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--accent) 30%, transparent); }
/* « Voir » : invisible tant qu'on ne survole pas un projet */
.cursor { visibility: hidden; }
.cursor.is-on { visibility: visible; }

/* chorégraphie : mots et lettres masqués */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.mwi { display: inline-block; will-change: transform; }
.mc { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mci { display: inline-block; will-change: transform; }
.mcount { display: inline-block; min-width: .6em; font-variant-numeric: tabular-nums; color: var(--lav); }
.work .panel-media { will-change: clip-path, transform; }

/* panneau Components : propre, aligné, en grille */

.ds { padding-right: 15%; padding-top: 10%; }

/* hero : composants aux quatre coins, deux rangées alignées (annule le panneau) */

.fx-swatch .fx-ui { min-height: 0; }
.ds { padding-right: 15%; padding-top: 6%; }
/* pied de page : Frumence en gras sur toute la largeur */
.wordmark { font-weight: 700; letter-spacing: -0.05em; }

/* BR Candor est plus large : le titre du hero reste sur deux lignes */
.hero-title { font-size: clamp(2.6rem, 7.3vw, 9rem); }
.hero-title .ln, .hero-title .ln > span { white-space: nowrap; }
@media (max-width: 900px) { .hero-title { font-size: clamp(2.4rem, 9.2vw, 5rem); } }
@media (max-width: 560px) { .hero-title { font-size: clamp(1.9rem, 8.4vw, 3rem); } }
@media (max-width: 560px) { .foot-mail { font-size: 4.9vw; letter-spacing: -0.03em; } }
/* plus d'air sous le bouton Parlons-en */
.foot-mid { padding-bottom: clamp(96px, 17vh, 200px); }
.foot .wordmark { margin-top: clamp(24px, 5vh, 64px); }
/* points du bandeau : centres entre les mots */
.mq-track i { display: inline-block; padding: 0; margin-inline: .12em; }
.mq-track span { padding-right: .37em; }

/* ---------- mobile : passe de finition ---------- */
@media (max-width: 900px) {
  .hero { padding-top: calc(86px + 9svh); padding-bottom: 24px; }
  .hero-stage { position: relative; top: auto; bottom: auto; right: auto; grid-column: 1 / -1; grid-row: 5; width: 100%; height: clamp(220px, 34svh, 300px); margin-top: 16px; }
  .hero > .hero-stage { position: relative; }
  .ds-dot { display: none; }
  .hero.frame > .fl { display: none; }
  .panel-body .more { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .foot-mail { display: inline-block; padding-block: 12px; }
  .foot-bottom a,
.foot-bottom button { min-height: 44px; }
}
@media (pointer: coarse) {
  .chip { min-height: 44px; padding-inline: 18px; }
  .chip::after { inset: 0; }
  .dock .dk { min-width: 44px; min-height: 44px; }
}
@media (max-width: 900px) {
  .panel-body a.more, .panel-body .more.more { min-height: 44px; }
  .btn, .foot-bottom button { min-height: 44px; }
  .foot-mail { padding-block: 14px; }
  .hero { row-gap: 20px; }
}
@media (max-width: 900px) {
  .hero-stage { height: clamp(190px, 27svh, 250px); margin-top: 0; }
  .hero { padding-bottom: 96px; }
}

/* ---------- mode lecture simple ---------- */
.calm *, .calm *::before, .calm *::after { animation: none !important; }
.calm .cursor, .calm .fx-layer, .calm .pt-sel, .calm .hero-stage { display: none !important; }
.calm .hero { padding-bottom: 48px; }
.calm .js-ready [data-reveal],
.calm [data-reveal],
.calm .hero-copy > *,
.calm .tokens { opacity: 1 !important; transform: none !important; }
.dock .calm-btn { position: static; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: var(--step-small); }
.dock .calm-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dock .calm-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 900px) { .menu { padding-bottom: 104px; } }
.bar-in .bar-brand, .bar-in .bar-brand[aria-current] { color: var(--lav); }

/* ---------- laboratoire : cadre agrandi, composants jouables, curseur de Frumence ---------- */
html.expanding body > *:not(.xf) { visibility: hidden; }
.xf { position: fixed; z-index: 130; overflow: hidden; background: var(--bg); border: 1px solid var(--accent); pointer-events: none; }
.xf.is-full { inset: 0; border: 0; }
.xf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xf .fh { position: absolute; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--accent); }
.xf .fh.tl { left: -5px; top: -5px; } .xf .fh.tr { right: -5px; top: -5px; } .xf .fh.bl { left: -5px; bottom: -5px; } .xf .fh.br { right: -5px; bottom: -5px; }
.xf-tag { position: absolute; left: 0; top: 0; padding: 3px 9px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; }

/* composants du hero : on peut les essayer */

/* curseur de Frumence */
.cur-carmel { position: fixed; left: 0; top: 0; z-index: 90; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; color: var(--lav); will-change: transform; }
.cur-carmel svg { flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.cc-name { margin-top: 12px; padding: 3px 10px; background: var(--lav); color: var(--bg); font-size: 12px; font-weight: 500; border-radius: 0 10px 10px 10px; }
.cc-say { margin: 12px 0 0 6px; padding: 3px 10px; font-size: 12px; color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; }
.cc-say:empty { display: none; }
.calm .cur-carmel { display: none !important; }
@media (max-width: 900px) { .cur-carmel { display: none; } }

/* pictos de profils */
.social { display: flex; align-items: center; gap: 6px; }
.social[hidden] { display: none; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); border: 1px solid var(--line); transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.social-link:hover, .social-link:focus-visible { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* lien de retour */
.back { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; font-size: var(--step-small); letter-spacing: .02em; color: var(--muted); transition: color .3s var(--ease), gap .3s var(--ease); }
.back::before { content: "\2190"; }
.back:hover, .back:focus-visible { color: var(--accent); gap: 14px; }

/* Mot "FRUMENCE" du pied de page : plus d'animation (ni survol par lettre, ni entrée) */
.wordmark, .wordmark .ch { transition: none !important; animation: none !important; }
.wordmark .ch:hover { color: inherit; transform: none; }
.wordmark { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ====================================================================
   Matière, connecteurs de prototype, mode Dev
   ==================================================================== */
.dock .dev-btn { position: static; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: var(--step-small); letter-spacing: .01em; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.dock .dev-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dock .dev-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 560px) { .dock .dev-btn { padding: 0 14px; } }

.frame { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 9%, transparent); }

/* Mode Dev */
body.is-dev { cursor: crosshair; }
body.is-dev .insp-tip, body.is-dev .insp-box { display: none; }
.dv-cols { position: fixed; inset: 0; z-index: 91; pointer-events: none; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-inline: var(--m); opacity: 0; transition: opacity .35s var(--ease); }
.dv-cols i { background: color-mix(in srgb, #ff4d6d 7%, transparent); border-inline: 1px solid color-mix(in srgb, #ff4d6d 22%, transparent); }
body.is-dev .dv-cols { opacity: 1; }
.dv-m, .dv-p, .dv-o { position: fixed; z-index: 94; pointer-events: none; opacity: 0; box-sizing: border-box; border-style: solid; border-color: transparent; }
.dv-m { border-color: color-mix(in srgb, #f59e42 24%, transparent); }
.dv-p { border-color: color-mix(in srgb, #3ddc97 24%, transparent); }
.dv-o { outline: 1px solid var(--lav); background: color-mix(in srgb, var(--accent) 12%, transparent); z-index: 95; }
.dv-l { position: fixed; z-index: 95; pointer-events: none; opacity: 0; background: #ff4d6d; }
.dv-l b { position: absolute; font: 500 10px/1 var(--sans, inherit); padding: 2px 5px; border-radius: 4px; background: #ff4d6d; color: #fff; white-space: nowrap; }
.dv-t b, .dv-b b { left: 50%; top: 50%; transform: translate(6px, -50%); }
.dv-r b, .dv-l.dv-l b { }
.dv-r b, .dv-l:not(.dv-t):not(.dv-b) b { left: 50%; top: 0; transform: translate(-50%, -150%); }
.dv-size { position: fixed; z-index: 96; pointer-events: none; opacity: 0; padding: 3px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 500; white-space: nowrap; }
.dv-code { position: fixed; z-index: 97; right: max(var(--m), env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 72px); width: min(320px, calc(100vw - 2 * var(--m))); border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, #000); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); overflow: hidden; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
body.is-dev .dv-code { opacity: 1; transform: none; pointer-events: auto; }
.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.dv-sel { font-weight: 500; font-size: 12px; color: var(--lav); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-copy { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: transparent; color: var(--ink); font-size: 12px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.dv-copy:hover { background: var(--accent); color: var(--accent-ink); }
.dv-code.is-copied .dv-copy { background: var(--accent); color: var(--accent-ink); }
.dv-pre { margin: 0; padding: 12px 14px 14px; max-height: 260px; overflow: auto; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); white-space: pre; }
.dv-ln em { font-style: normal; color: var(--lav); }
.dv-ln u { text-decoration: none; color: var(--ink); }
.dv-ln u.is-c { color: #ffb86b; }
@media (max-width: 900px), (hover: none) { .dv-code, .dv-cols { display: none; } }

/* Pastille "Vous" : bords arrondis, comme le reste de l'interface */

/* Historique des versions (page À propos) */
.vhist { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--m) clamp(96px, 12vw, 200px); }
.vh-side { grid-column: 1 / span 5; }
.vh-main { grid-column: 7 / span 6; }
.vh-card { position: sticky; top: 120px; padding: 20px 22px 24px; border: 1px solid var(--fline, var(--line)); background: var(--fbg, var(--surface)); border-radius: var(--r-frame, 12px); }
.vh-top { display: flex; align-items: center; gap: 8px; font-size: var(--step-small); color: var(--muted); }
.vh-num { margin-top: clamp(40px, 8vh, 96px); display: flex; align-items: baseline; font-size: clamp(5rem, 11vw, 10rem); line-height: .9; letter-spacing: -0.05em; font-weight: var(--w, 300); }
.vh-v { font-family: var(--serif); color: var(--lav); margin-right: .04em; }
.vh-n { display: inline-block; }
.vh-d { color: var(--muted); font-size: .4em; letter-spacing: 0; margin-left: .1em; }
.vh-cur { margin-top: 16px; font-size: var(--step-lead); }
.vh-lead { max-width: 30em; color: var(--muted); margin: -16px 0 clamp(32px, 5vw, 64px); }
.vh-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.vh-item { position: relative; padding: 0 0 clamp(56px, 11vh, 120px); }
.vh-item > :not(.vh-dot) { opacity: .45; transition: opacity .5s var(--ease); }
.vh-item:last-child { padding-bottom: 0; }
.vh-item.is-active > :not(.vh-dot) { opacity: 1; }
.vh-dot { position: absolute; left: -34px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); position: absolute; z-index: 2; background: var(--bg); box-shadow: 0 0 0 4px var(--bg); }
.vh-item.is-active .vh-dot { background: var(--accent); border-color: var(--lav); transform: scale(1.35); }
.vh-ver { font-size: var(--step-small); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.vh-ver b { font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.vh-co { margin-top: 6px; font-size: clamp(1.75rem, 3.2vw, 3rem); font-weight: var(--w, 300); line-height: 1.05; letter-spacing: -0.03em; }
.vh-note { margin-top: 14px; max-width: 32em; display: grid; grid-template-columns: 1.1em 1fr; gap: 4px; }
.vh-note span { color: #6fd9a3; font-weight: 500; }
@media (max-width: 900px) {
  .vhist { display: block; }
  .vh-side { display: none; }
  .vh-item > :not(.vh-dot) { opacity: 1; }
  .vh-lead { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .vh-item { transition: none; } }

/* Vidéo courte du prototype */
.case-proto { padding-block: clamp(32px, 5vw, 72px); }
.proto { grid-column: 1 / -1; position: relative; margin: 0; }
.proto video { display: block; width: 100%; height: auto; border-radius: var(--r-frame, 12px); background: var(--surface); outline: 1px solid var(--fline, var(--line)); }
.proto-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; }
.proto-btn { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: var(--step-small); transition: background-color .3s var(--ease), color .3s var(--ease); }
.proto-btn:hover { background: var(--accent); color: var(--accent-ink); }
.proto figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }
.proto video { max-height: 85svh; object-fit: contain; }

/* Page À propos : le parcours remplace la liste d'expériences ; branche d'enseignement */

.vhist { padding-top: clamp(96px, 12vw, 200px); }

/* Outils : bibliothèque par usage (page À propos) */
.toolkit { padding: clamp(72px, 9vw, 140px) var(--m) 0; }
.tk { border-bottom: 1px solid var(--line); }
/* Page À propos : titres, rail de version, lecture qui s'éclaire */
[data-split] { overflow: hidden; padding-bottom: .12em; }
[data-split] .it { display: inline-block; }
.vh-list { --fill: 0; }
.vh-list::after { content: ""; position: absolute; z-index: 1; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(var(--fill)); transform-origin: 50% 0; }
.lit-w { transition: none; }

/* Itinéraire dans la carte de version */
.vh-route { --s: 0; position: relative; margin-top: 26px; padding-top: 18px; }
.vh-route::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 1px; background: var(--line); }
.vh-pin { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); transition: left .9s var(--ease); left: calc(var(--s) / 4 * (100% - 9px)); }
.vh-route ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.vh-route li { transition: color .5s var(--ease); }
.vh-route li.is-on { color: var(--ink); }
.vh-route li.is-here { color: var(--lav); }

/* ===== Studio : palette, commentaires, laboratoire, thèmes ===== */
.dock .cm-btn, .dock .cmdk-btn { position: static; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: var(--step-small); letter-spacing: .01em; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.dock .cm-btn:hover, .dock .cmdk-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dock .cm-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dock .cm-btn .dk-lb { display: none; }
@media (max-width: 1180px) { .dock .cmdk-btn .dk-lb { display: none; } }
.cp-toast { position: fixed; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 76px); z-index: 99; transform: translate(-50%, 8px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--accent-ink); font-size: var(--step-small); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: calc(100vw - 32px); }
.cp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* palette */
.cmdk { position: fixed; inset: 0; z-index: 120; display: grid; align-items: start; justify-items: center; padding: 14vh 16px 16px; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cmfade .2s var(--ease); }
@keyframes cmfade { from { opacity: 0; } }
.cmdk-box { width: min(560px, 100%); max-height: 70svh; display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px #000; overflow: hidden; animation: cmrise .28s var(--ease); }
@keyframes cmrise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.cmdk-in { width: 100%; min-height: 56px; padding: 0 20px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; font-size: var(--step-body); }
.cmdk-in::placeholder { color: var(--muted); }
.cmdk-in:focus, .cmdk-in:focus-visible { outline: none; box-shadow: none; }
.cmdk-box:focus-within { border-color: color-mix(in srgb, var(--lav) 55%, var(--line)); }
.cmdk-in { border-radius: 0; }
.cmdk-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.cmdk-g { padding: 12px 12px 4px; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.cmdk-i { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; color: var(--ink); font-size: var(--step-small); }
.cmdk-i small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-i[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.cmdk-empty { padding: 20px 12px; color: var(--muted); font-size: var(--step-small); }
.cmdk-foot { display: flex; gap: 18px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cmdk-foot kbd { font: inherit; font-size: 11px; padding: 2px 5px; margin-right: 4px; border: 1px solid var(--line); border-radius: 5px; }
@media (max-width: 560px) { .cmdk-foot { display: none; } }

/* commentaires */
.cm-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 90; }
body.is-commenting, body.is-commenting * { cursor: crosshair !important; }
body.is-commenting [data-ui], body.is-commenting [data-ui] * { cursor: pointer !important; }
.cm-pin { position: absolute; width: 30px; height: 30px; margin: -30px 0 0 0; padding: 0; border: 0; border-radius: 50% 50% 50% 0; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px #000; }
.cm-pin.is-done { background: var(--lav); }
.cm-pin.is-open { outline: 2px solid var(--ink); outline-offset: 2px; }
.cm-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cm-box { position: absolute; z-index: 2; width: 288px; margin-top: -30px; padding: 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px #000; cursor: default; }
.cm-box, .cm-box * { cursor: auto !important; }
.cm-box button { cursor: pointer !important; }
.cm-box label { font-size: 12px; color: var(--muted); }
.cm-box textarea { width: 100%; resize: vertical; min-height: 84px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--step-small); }
.cm-box textarea:focus-visible { outline: 2px solid var(--lav); outline-offset: 1px; }
.cm-ctx, .cm-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.cm-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-send, .cm-ghost { min-height: 44px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: var(--step-small); }
.cm-send { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.cm-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cm-ghost:hover { border-color: var(--accent); }

/* thèmes */
.vars-theme { display: flex; flex-wrap: wrap; gap: 6px; }
.vars-theme button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: var(--step-small); cursor: pointer; }
.vars-theme button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
html[data-cp-theme="clair"] .cmdk-box,
html[data-cp-theme="clair"] .cm-box { box-shadow: 0 20px 50px -24px rgba(40, 20, 90, .35); }
html[data-cp-theme="contraste"] :focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }

/* dock replié : Chercher + Outils */
.dock:not(.is-open) .dk-fold { display: none; }
.dock .tools-btn { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--ink); font: inherit; font-size: var(--step-small); cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.dock .tools-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dock.is-open .tools-btn { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.dock .tools-btn:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.tools-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dock .dk-fold .dk-dot, .dock .dk-fold.is-new i { display: none; }
@media (max-width: 1180px) { .dock .tools-btn .dk-lb { display: none; } .dock .tools-btn { padding: 0 14px; } }

/* projet : en bref */
.case-brief { margin: 0; padding-block: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.case-brief > div { min-width: 0; }
.case-brief dt { margin: 0 0 8px; font-size: 13px; letter-spacing: 0; color: var(--lav); }
.case-brief dd { margin: 0; font-size: var(--step-small); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
@media (max-width: 900px) { .case-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .case-brief { grid-template-columns: minmax(0, 1fr); } }

/* À propos : en bref à gauche */
.about-facts { grid-column: 1 / span 4; margin: 0; display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 110px; }
.about-facts > div { padding-top: 14px; border-top: 1px solid var(--line); }
.about-facts dt { margin: 0 0 6px; font-size: 13px; letter-spacing: 0; color: var(--lav); }
.about-facts dd { margin: 0; font-size: var(--step-body); line-height: 1.45; color: var(--ink); max-width: 20em; text-wrap: pretty; }
@media (max-width: 900px) { .about-facts { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); } }
@media (max-width: 520px) { .about-facts { grid-template-columns: minmax(0, 1fr); } }
/* études de cas : progression */
.case-progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; background: transparent; }
.case-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.cp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html[data-cp-theme="clair"] .badge { color: #4a2fb8; }

/* bouton secondaire : contour */
.btn.btn-line { background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.btn.btn-line:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
.btn.btn-line:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }

/* transition : cadre sélectionné */
.pt-sel { position: fixed; z-index: 130; pointer-events: none; box-sizing: border-box; background: var(--bg); border: 1px solid var(--accent); }
.pt-tag { position: absolute; left: -1px; bottom: 100%; margin-bottom: 6px; padding: 3px 9px; background: var(--accent); color: var(--accent-ink); font-size: 12px; line-height: 1.3; white-space: nowrap; border-radius: 4px; }
.pt-tag:empty { display: none; }
.pt-h { position: absolute; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); box-sizing: border-box; }
.pt-tl { left: -5px; top: -5px; } .pt-tr { right: -5px; top: -5px; } .pt-bl { left: -5px; bottom: -5px; } .pt-br { right: -5px; bottom: -5px; }

/* boutons : la lettre qui roule */

/* menu mobile numéroté */
.menu nav { counter-reset: mn; }
.menu nav a { counter-increment: mn; display: flex; align-items: baseline; gap: 16px; }
.menu nav a::before { content: counter(mn, decimal-leading-zero); font-size: 13px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; width: 2em; }
.menu.is-open nav a { animation: mnIn .6s var(--ease) both; }
.menu.is-open nav a:nth-child(2) { animation-delay: .06s; }
.menu.is-open nav a:nth-child(3) { animation-delay: .12s; }
.menu.is-open nav a:nth-child(4) { animation-delay: .18s; }
@keyframes mnIn { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .menu.is-open nav a { animation: none; } }
/* préchargement : nom */
.loader .who { position: absolute; top: var(--m); left: var(--m); font-size: var(--step-body); color: var(--ink); letter-spacing: .02em; }

/* aperçu façon Figma (page projet) */
.fg-open { position: absolute; left: 20px; bottom: 20px; z-index: 2; min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font: inherit; font-size: var(--step-small); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.fg-open:hover { background: var(--accent); color: var(--accent-ink); }
.fg-open:focus-visible, .fg button:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; }
.fg-lock { overflow: hidden; }
.fg { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); animation: cmfade .3s var(--ease); }
.fg-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fg-title { font-size: var(--step-small); color: var(--muted); letter-spacing: .02em; }
.fg-x { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: var(--step-small); cursor: pointer; }
.fg-x:hover { border-color: var(--accent); }
.fg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr 240px; }
.fg-side, .fg-insp { padding: 20px; overflow: auto; }
.fg-side { border-right: 1px solid var(--line); }
.fg-insp { border-left: 1px solid var(--line); }
.fg h3 { margin: 0 0 12px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.fg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fg-list button { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: var(--step-small); text-align: left; cursor: pointer; }
.fg-list button:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.fg-list button.is-on { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.fg-stage { min-width: 0; display: grid; place-items: center; padding: 28px; overflow: auto; background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.fg-canvas { position: relative; width: min(100%, calc((100svh - 160px) * 1.6)); aspect-ratio: 16 / 10; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.fg-canvas img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-zones, .fg-hl { position: absolute; inset: 0; pointer-events: none; }
.fg-hl { inset: auto; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.fg-z { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.fg-tag { position: absolute; left: -1px; bottom: calc(100% + 1px); padding: 2px 8px; background: var(--accent); color: var(--accent-ink); font-size: 12px; white-space: nowrap; }
.fg-h { position: absolute; width: 7px; height: 7px; background: var(--ink); border: 1px solid var(--accent); }
.fg-tl { left: -4px; top: -4px; } .fg-tr { right: -4px; top: -4px; } .fg-bl { left: -4px; bottom: -4px; } .fg-br { right: -4px; bottom: -4px; }
.fg-vals { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fg-vals dt { font-size: 12px; color: var(--muted); }
.fg-vals dd { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.fg-sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.fg-note { margin: 24px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) {
  .fg-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; overflow: auto; }
  .fg-side, .fg-insp { border: 0; padding: 12px 16px; }
  .fg-list { flex-direction: row; overflow-x: auto; }
  .fg-list li { flex: none; }
  .fg-list button { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
  .fg-stage { padding: 16px; }
  .fg-canvas { width: 100%; }
  .fg-vals { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
}
@media (prefers-reduced-motion: reduce) { .fg { animation: none; } .fg-hl { transition: none; } }

/* mobile : le cadre du hero démarre sous la barre fixe (logo + Menu) */
@media (max-width: 900px) {
  .hero { margin-top: 88px; min-height: calc(100svh - 104px); }
}

/* chargement : un cadre qu'un curseur étire, comme dans Figma */
.ld-frame { position: relative; border: 1px solid var(--accent); display: grid; place-items: center; text-align: center; }
.ld-name { display: block; font-size: clamp(1.5rem, 6vw, 2.4rem); font-weight: 200; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.ld-name .it { display: block; font-family: "MTC Ciscela", "BR Candor", serif; font-weight: 400; color: var(--lav); }
.ld-h { position: absolute; width: 8px; height: 8px; background: var(--bg); border: 1px solid var(--accent); }
.ld-h.a { left: -5px; top: -5px; } .ld-h.b { right: -5px; top: -5px; } .ld-h.c { left: -5px; bottom: -5px; } .ld-h.d { right: -5px; bottom: -5px; }
.ld-dim { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ld-cur { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: flex-start; gap: 2px; color: var(--lav); transform: translate(8px, 8px); }
.ld-cur b { font-weight: 400; font-size: var(--step-small); margin-top: 12px; padding: 2px 8px; border-radius: 4px; background: var(--lav); color: var(--accent-ink); }

/* ---------- Hero centré : un objet éclairé dans la pièce sombre ---------- */
.hero { isolation: isolate; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(ellipse 40% 32% at 50% 34%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 70%),
    radial-gradient(ellipse 14% 10% at 50% 36%, color-mix(in srgb, var(--lav) 12%, transparent), transparent 70%);
  animation: heroGlow 7s ease-in-out infinite;
}
@keyframes heroGlow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.hero-stage { left: 0; right: 0; width: 100%; top: 0; bottom: auto; height: 56%; }
.ds { justify-content: center; align-content: center; }
.ds-rig { width: clamp(300px, 36vw, 600px); margin: 0 auto; justify-self: center; left: 7%; }
.ds-base { box-shadow: 0 0 60px 0 color-mix(in srgb, var(--accent) 18%, transparent), inset 0 0 30px color-mix(in srgb, var(--accent) 8%, transparent); }
.ds-cta { box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.ds-dot { box-shadow: 0 0 16px color-mix(in srgb, var(--lav) 40%, transparent); }
.ds-card { box-shadow: 0 18px 50px -10px color-mix(in srgb, var(--bg) 80%, transparent); }
.ds-grid .ds-tag { display: none; }

.hero-title { grid-column: 1 / -1; justify-self: center; text-align: center; font-size: clamp(2.8rem, 7.4vw, 9rem); }
.hero-copy { grid-column: 1 / -1; align-items: center; text-align: center; }
.hero-copy .statement { margin-inline: auto; max-width: 30em; }
.hero-actions { justify-content: center; }
.tokens { display: none; }

/* composants flottants : de part et d'autre de l'objet central */
.fx-swatch { top: 16% !important; left: 11% !important; right: auto !important; bottom: auto !important; }
.fx-btn    { top: 14% !important; right: 11% !important; left: auto !important; bottom: auto !important; }

@media (max-width: 900px) {
  .hero::before { background: radial-gradient(ellipse 70% 26% at 50% 28%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
  .hero { padding-top: calc(70px + 36svh); padding-bottom: 96px; }
  .hero > .hero-stage { position: absolute; top: 40px; left: 0; right: 0; bottom: auto; width: 100%; height: calc(36svh + 60px); margin: 0; grid-row: auto; opacity: 1; }
  .ds-rig { width: clamp(220px, 62vw, 320px); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

/* ---------- Projets empilés (js/stack.js) ---------- */
@media (min-width: 901px) {
  .work.is-stack { padding-bottom: 24svh; }
  .work.is-stack .panel {
    position: sticky; top: calc(88px + var(--i, 0) * 18px); margin-top: 22svh;
    transform: scale(var(--sc, 1)); transform-origin: 50% 0; filter: brightness(var(--br, 1));
    box-shadow: 0 -24px 60px -20px color-mix(in srgb, var(--bg) 90%, transparent);
  }
  .work.is-stack .panel.is-first { margin-top: 64px; }   /* premier cadre visible : le filtre peut masquer les précédents */
}

/* Bouton « remonter » : icône seule (Phosphor caret-up) */
#to-top { display: inline-grid; place-items: center; width: 44px; padding: 0; border-radius: 50%; }

/* Bouton « remonter » : au-dessus du mot géant, animation au survol */
.foot-bottom { position: relative; z-index: 3; }
#to-top { position: relative; overflow: hidden; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
#to-top .tt-i { display: grid; width: 18px; height: 18px; overflow: hidden; }
#to-top .tt-i svg { grid-area: 1 / 1; transition: transform .45s var(--ease); }
#to-top .tt-i svg:last-child { transform: translateY(150%); }
#to-top:hover, #to-top:focus-visible { transform: translateY(-3px); }
#to-top:hover .tt-i svg:first-child, #to-top:focus-visible .tt-i svg:first-child { transform: translateY(-150%); }
#to-top:hover .tt-i svg:last-child, #to-top:focus-visible .tt-i svg:last-child { transform: none; }
#to-top:active { transform: translateY(-1px) scale(.94); }
@media (prefers-reduced-motion: reduce) { #to-top, #to-top .tt-i svg { transition: none; } #to-top:hover { transform: none; } }

/* ===== Section « Ce que j'apporte » ===== */
.offer { padding: 72px var(--m) 8px; }
.offer-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 28px; padding: clamp(8px, 2vw, 24px) 0; }
.offer h2 { grid-column: 1 / span 10; font-size: var(--step-head); font-weight: var(--w, 300); line-height: 1; letter-spacing: -0.035em; }
.offer-lead { grid-column: 1 / span 6; color: var(--muted); max-width: 34em; }
.offer-list { grid-column: 1 / -1; list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.offer-list li { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.offer-list h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; margin-bottom: 10px; }
.offer-list p { color: var(--muted); font-size: var(--step-small); max-width: 30em; }
@media (max-width: 900px) { .offer { padding-top: 48px; } .offer h2, .offer-lead { grid-column: 1 / -1; } .offer-list li { padding-right: 0; } }

/* ===== Auto Layout vivant : cadre redimensionnable autour de la grille, centré (bureau seulement) ===== */
.offer { text-align: center; }
.offer h2, .offer-lead { grid-column: 1 / -1; justify-self: center; text-align: center; }
.offer-lead { margin-inline: auto; }
.offer-frame { position: relative; margin: 34px auto 0; grid-column: 1 / -1; max-width: 100%; display: flex; flex-direction: column; justify-content: center; border: 1px dashed transparent; border-radius: 4px; transition: border-color .3s var(--ease); }
.offer-frame .al-tag, .offer-frame .al-handle, .offer-frame .al-spec { display: none; }
.offer-list { width: 100%; }
.offer-list li { text-align: center; }
.offer-list p, .offer-list h3 { margin-inline: auto; }
.offer-list li { padding-inline: 16px; }
@media (min-width: 1100px) {
  .offer-frame:hover, .offer-frame.is-drag { border-color: var(--lav); }
  .offer-frame .al-tag { display: inline-block; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 10px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 11px; color: var(--muted); white-space: nowrap; }
  .offer-frame .al-handle { display: block; position: absolute; width: 12px; height: 12px; padding: 0; border: 1.5px solid var(--lav); background: var(--bg); border-radius: 2px; z-index: 2; }
  .offer-frame .al-handle.l { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
  .offer-frame .al-handle.r { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
  .offer-frame .al-handle.b { left: 50%; bottom: -6px; margin-left: -6px; cursor: ns-resize; }
  .offer-frame .al-handle:hover, .offer-frame .al-handle:focus-visible, .offer-frame.is-drag .al-handle { background: var(--lav); }
  .offer-frame .al-spec { display: block; position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: pre; }
}
.offer-frame .offer-list { margin-top: 0; }
.offer-list li { will-change: transform; }
.calm .offer-frame { width: auto !important; min-height: 0 !important; }
.calm .offer-frame .al-tag, .calm .offer-frame .al-handle, .calm .offer-frame .al-spec { display: none !important; }

/* ===== Curseur de collaboration ===== */
.cur-collab { color: #f0b45a; z-index: 91; }
.cur-collab .cc-name { background: #f0b45a; color: #1a1206; }
.cm { position: fixed; left: 0; top: 0; z-index: 89; pointer-events: none; }
.cm-pin { position: absolute; left: -14px; top: -14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: #f0b45a; color: #1a1206; font-size: 12px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cm-box { position: absolute; left: 22px; top: 10px; min-width: 210px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0 14px 14px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; color: var(--ink); }
.cm-row { display: flex; flex-direction: column; gap: 1px; margin: 0; }
.cm-row b { font-size: 11px; font-weight: 500; color: #f0b45a; }
.cm-reply { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cm-reply b { color: var(--lav); }
.calm .cm, .calm .cur-collab { display: none !important; }
@media (max-width: 900px) { .cm, .cur-collab { display: none; } }
.cm.up .cm-box { top: auto; bottom: 34px; left: auto; right: -14px; border-radius: 14px 14px 0 14px; }
.offer-list { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; }
.offer-list li { flex: 1 1 240px; max-width: 320px; }

/* ===== Vue d'ensemble (coulisses) ===== */
html.ov-open { overflow: hidden; }
.ov { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background-color: color-mix(in srgb, var(--bg) 95%, transparent); background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px); background-size: 24px 24px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: scale(1.18); transition: opacity .45s var(--ease), transform .55s var(--ease); overscroll-behavior: contain; }
.ov.is-in { opacity: 1; transform: none; }
.ov.is-out { opacity: 0; transform: scale(.97); transition-duration: .3s; }
.ov.is-zoom { opacity: 0; transform: scale(2.6); transition: opacity .4s var(--ease) .05s, transform .45s cubic-bezier(.5, 0, .9, .4); }
.ov-bar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.ov-t { font-size: var(--step-lead); font-weight: 400; }
.ov-h { margin-right: auto; color: var(--muted); font-size: var(--step-small); }
.ov-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--surface); color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.ov-x:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.ov-canvas { position: relative; flex: 1; display: grid; place-items: center; overflow: auto; padding: 24px; }
.ov-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), var(--tw, 360px)); column-gap: var(--gx, 48px); row-gap: var(--gy, 58px); position: relative; }
.ov-f { position: relative; display: block; width: var(--tw); padding: 0; background: none; border: 0; text-align: left; cursor: pointer; opacity: 0; transform: scale(.94); }
.ov.is-in .ov-f { opacity: 1; transform: none; transition: opacity .5s var(--ease) calc(var(--i) * 45ms + 120ms), transform .5s var(--ease) calc(var(--i) * 45ms + 120ms); }
.ov-l { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-f.is-here .ov-l { padding-right: 96px; }
.ov-th.is-mail b { font-size: calc(var(--tw) * .048); }
.ov-th { display: block; width: var(--tw); aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: transform .35s var(--ease), outline-color .3s var(--ease); outline: 2px solid transparent; outline-offset: 3px; }
.ov-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ov-th.is-hero, .ov-th.is-word { display: grid; place-content: center; text-align: center; gap: 2px; padding: 12px; }
.ov-th b { font-weight: 300; font-size: calc(var(--tw) * .075); line-height: 1.1; letter-spacing: -.02em; }
.ov-th.is-hero b { font-size: calc(var(--tw) * .1); }
.ov-th em { font-size: calc(var(--tw) * .08); color: var(--lav); }
.ov-f:hover .ov-th, .ov-f:focus-visible .ov-th { outline-color: var(--lav); transform: translateY(-3px); }
.ov-f:focus-visible { outline: none; }
.ov-f.is-here .ov-th { outline-color: var(--lav); }
.ov-here { position: absolute; right: 0; top: -2px; padding: 2px 8px; border-radius: 6px; background: var(--lav); color: var(--bg); font-size: 11px; font-weight: 500; }
@media (max-width: 620px) { .ov-h { display: none; } .ov-canvas { place-items: start center; } }
@media (prefers-reduced-motion: reduce) { .ov, .ov-f { transition: none !important; } .ov { transform: none; } }
.calm .ov { transition: none; transform: none; }

/* ===== Transition carte vers page projet ===== */
html.xf-fly .case-img { visibility: hidden; }
html.xf-in body > *:not(.xf) { animation: xfIn .7s var(--ease) both; }
@keyframes xfIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.xf-in body > *:not(.xf) { animation: none; } }

/* Carte « projet suivant » en bas d'une étude de cas */
a.panel.next { position: relative; }
.next-kicker { position: absolute; left: clamp(20px, 3vw, 48px); top: clamp(20px, 3vw, 40px); z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--ink); font-size: var(--step-small); letter-spacing: .02em; }
.next-kicker svg { transition: transform .35s var(--ease); }
.next:hover .next-kicker, .next:focus-visible .next-kicker { border-color: var(--lav); }
.next:hover .next-kicker svg, .next:focus-visible .next-kicker svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .next-kicker svg { transition: none; } }

/* ===== Corrections de l'audit ===== */
/* petits écrans (320 px) : le titre du hero ne doit pas déborder */
@media (max-width: 420px) { .hero-title { font-size: 11.2vw; } }
/* poignées de l'Auto Layout : zone de prise de 44 px autour du carré de 12 px */
.offer-frame .al-handle::after { content: ""; position: absolute; inset: -16px; }

/* Bouton du menu (tablette et mobile) : icône + libellé */
.bar-toggle { gap: 10px; }
.bar-toggle svg { flex: none; }

/* ===== Outils : bandeaux de tuiles « composant » (accueil) ===== */
.about-panel > .tools-band { gap: 14px; }
.trow { padding-block: 30px 6px; }
.tlist { gap: 14px; padding: 0 7px; }
.tchip { position: relative; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 55%, transparent); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.tmark { width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
.tmark.has-logo { background: #f4f1fa; }
.tmark img { width: 28px; height: 28px; }
.tchip-tx { display: grid; gap: 2px; text-align: left; }
.tchip-tx b { line-height: 1.1; }
.tchip-tx small { color: var(--muted); font-size: var(--step-small); line-height: 1.1; }
.tchip:hover { border-color: var(--lav); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.tchip .fh { position: absolute; width: 7px; height: 7px; background: var(--ink); border: 1px solid var(--accent); opacity: 0; transition: opacity .25s var(--ease); }
.tchip .fh.tl { left: -4px; top: -4px; } .tchip .fh.tr { right: -4px; top: -4px; } .tchip .fh.bl { left: -4px; bottom: -4px; } .tchip .fh.br { right: -4px; bottom: -4px; }
.tchip-tag { position: absolute; left: -1px; bottom: calc(100% + 6px); padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; }
.tchip:hover .fh, .tchip:hover .tchip-tag { opacity: 1; }
.tchip:hover .tchip-tag { transform: none; }
/* seul le bandeau survolé s'arrête */
.tools-band:hover .ttrack { animation-play-state: running; }
.trow:hover .ttrack { animation-play-state: paused; }

/* ===== Outils : panneau Assets (page À propos) ===== */
.ap { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.ap-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ap-title { font-size: var(--step-small); color: var(--muted); }
.ap-search { position: relative; flex: 1; max-width: 420px; display: block; }
.ap-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); pointer-events: none; }
.ap-search input { width: 100%; min-height: 44px; padding: 0 16px 0 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: var(--step-small); transition: border-color .3s var(--ease); }
.ap-search input::placeholder { color: var(--muted); }
.ap-search input:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; border-color: var(--lav); }
.ap-count { margin-left: auto; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ap-filters .chip small { margin-left: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ap-grid { list-style: none; margin: 0; padding: clamp(16px, 2vw, 24px); display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; min-height: 120px; align-content: start; }
.ap-card { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 55%, transparent); transition: border-color .3s var(--ease), background-color .3s var(--ease); will-change: transform; }
.ap-card .tmark { grid-row: 1 / span 2; }
.ap-card b { font-weight: var(--w, 300); font-size: var(--step-body); line-height: 1.1; letter-spacing: -.01em; align-self: end; }
.ap-card small { color: var(--muted); font-size: var(--step-small); line-height: 1.2; align-self: start; }
.ap-card:hover { border-color: var(--lav); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.ap-empty { margin: 0; padding: 0 24px 32px; color: var(--muted); }
@media (max-width: 640px) {
  .ap-bar { flex-wrap: wrap; }
  .ap-search { order: 3; max-width: none; flex-basis: 100%; }
  .ap-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ap-card { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 8px; }
  .ap-card .tmark { grid-row: auto; }
  .ap-card b, .ap-card small { align-self: auto; }
}
@media (prefers-reduced-motion: reduce) { .ap-card, .tchip, .tchip .fh, .tchip-tag { transition: none; } }
.calm .tchip-tag, .calm .tchip .fh { display: none; }
.ap-filters .chip[aria-pressed="true"] small { color: inherit; opacity: .92; }

/* Mode Dev : mesures plus fines (étiquette de dimensions et cotes d'espacement) */
.dv-size { padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 400; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.dv-l b { padding: 1px 4px; border-radius: 3px; font-size: 9px; font-weight: 400; font-variant-numeric: tabular-nums; }
.dv-l { background: color-mix(in srgb, #ff4d6d 80%, transparent); }
.sel-dim { padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 400; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

/* Versions : la ligne de progression passe sous les cercles, sans animation si le mouvement est réduit */
.vh-item.is-active .vh-dot { box-shadow: 0 0 0 4px var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .vh-list { --fill: 1; }
  .vh-item > :not(.vh-dot) { opacity: 1; transition: none; }
}

/* ===== Coulisses (touche ?) : dock réduit à Thème, Lecture simple, Aller à... ===== */
.dock .dk-theme { order: 1; } .dock .dk-calm { order: 2; } .dock .dk-cmdk { order: 3; } .dock .dk-fold { order: 5; } .dock .dk-tools { order: 6; }
html:not(.cp-x) .dock-hint { display: none !important; }   /* le bouton Outils et les outils du dock sont visibles : un clic, pas de touche secrète */
html:not(.cp-x) .dock kbd, html:not(.cp-x) .dk-dot { display: none; }
.dock .theme-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.foot-bottom .foot-calm { min-height: 44px; padding: 0 8px; background: none; color: var(--muted); font-size: var(--step-small); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); transition: color .3s var(--ease); }
.foot-bottom .foot-calm:hover { color: var(--ink); background: none; }

/* Thème clair : la barre et le logo restent lisibles même au-dessus d'une zone colorée */
html[data-cp-theme="clair"] .bar-in,
html[data-cp-theme="clair"] .bar-toggle,
html[data-cp-theme="clair"] .bar-brand-m { background: color-mix(in srgb, var(--surface) 94%, transparent); }

/* ===== Étude de cas : chapitres (sommaire collant, chapitres au traitement propre) ===== */
.cs { padding-block: clamp(56px, 8vw, 120px); align-items: start; }
.cs-nav { grid-column: 1 / span 3; position: sticky; top: 120px; align-self: start; }
.cs-nav ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.cs-nav a { display: flex; gap: 14px; align-items: baseline; min-height: 44px; padding: 10px 0 10px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: var(--step-small); transition: color .3s var(--ease), border-color .3s var(--ease); }
.cs-nav a:hover { color: var(--ink); }
.cs-nav a.is-on { color: var(--ink); border-left-color: var(--lav); }
.cs-n { color: var(--lav); font-size: 12px; font-variant-numeric: tabular-nums; }
.cs-main { grid-column: 5 / -1; display: grid; gap: clamp(72px, 10vw, 160px); min-width: 0; }
.cs-ch { scroll-margin-top: 110px; }
.cs-h { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(24px, 3vw, 44px); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cs-num { font-family: var(--serif); color: var(--lav); font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1; }
.cs-h h2 { margin: 0; font-size: var(--step-title); font-weight: var(--w, 300); letter-spacing: -.02em; line-height: 1.1; }
.cs-lead { max-width: 26em; font-size: var(--step-lead); line-height: 1.4; }
.cs-p, .cs-sub, .cs-intro { max-width: 34em; color: var(--muted); margin-top: 18px; }
.cs-intro { margin: 0 0 clamp(36px, 4vw, 56px); color: var(--ink); font-size: var(--step-lead); line-height: 1.4; }
.cs-tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: var(--step-small); }
/* enjeu : une phrase qui porte la page */
.cs-quote { margin: 0; padding-left: clamp(18px, 2.4vw, 32px); border-left: 2px solid var(--accent); }
.cs-quote p { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em; }
/* rôle : trois cadres, comme des composants sélectionnés */
.cs-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 22px); padding-top: 14px; }
.cs-card { position: relative; padding: 26px 22px 28px; border: 1px solid var(--line); border-radius: var(--r-frame, 4px); background: color-mix(in srgb, var(--surface) 60%, transparent); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.cs-card h3 { margin: 0 0 8px; font-size: var(--step-lead); font-weight: var(--w, 300); letter-spacing: -.01em; line-height: 1.15; }
.cs-card p { margin: 0; color: var(--muted); font-size: var(--step-small); }
.cs-tag { position: absolute; left: -1px; bottom: calc(100% + 6px); padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 500; white-space: nowrap; }
.cs-card .fh { position: absolute; width: 7px; height: 7px; background: var(--ink); border: 1px solid var(--accent); opacity: 0; transition: opacity .25s var(--ease); }
.cs-card .fh.tl { left: -4px; top: -4px; } .cs-card .fh.tr { right: -4px; top: -4px; } .cs-card .fh.bl { left: -4px; bottom: -4px; } .cs-card .fh.br { right: -4px; bottom: -4px; }
.cs-card:hover { border-color: var(--lav); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.cs-card:hover .fh { opacity: 1; }
/* démarche : quatre étapes sur une ligne */
.cs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; }
.cs-step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.cs-sn { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--lav); }
.cs-step h3 { margin: 0 0 8px; font-size: var(--step-lead); font-weight: var(--w, 300); line-height: 1.15; }
.cs-step p { margin: 0; color: var(--muted); font-size: var(--step-small); }
.cs-toolrow { margin-top: clamp(36px, 4vw, 56px); }
.cs-tl { margin: 0; color: var(--muted); font-size: var(--step-small); }
.cs-toolrow .cs-tags { margin-top: 12px; }
/* résultats : de grandes phrases */
.cs-res { list-style: none; margin: 0; padding: 0; }
.cs-res li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 32px; align-items: baseline; padding-block: clamp(20px, 2.6vw, 36px); border-top: 1px solid var(--line); }
.cs-res li:last-child { border-bottom: 1px solid var(--line); }
.cs-big { margin: 0; font-size: clamp(1.75rem, 3.6vw, 3.4rem); font-weight: var(--w, 300); line-height: 1.05; letter-spacing: -.03em; transition: color .35s var(--ease); }
.cs-res li:hover .cs-big { color: var(--lav); }
.cs-res p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .cs-nav { display: none; }
  .cs-main { grid-column: 1 / -1; }
  .cs-res li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cs-nav a, .cs-card, .cs-card .fh, .cs-big { transition: none; } }
/* galerie : légendes titrées et décalage d'un écran sur deux */
.shot figcaption b { margin-right: 8px; color: var(--ink); font-weight: 500; }
@media (min-width: 901px) { .shots .shot:nth-child(2n + 3):not(.wide) { margin-top: clamp(32px, 6vw, 96px); } }

/* images des études de cas : jamais recadrées (ratio d'origine), et pas de double trait sous le titre « Résultats » */
.shot img, .shots .shot img { aspect-ratio: auto; height: auto; object-fit: contain; }
.cs-res li:first-child { border-top: 0; padding-top: 0; }

/* fiche du rôle et puces des cartes */
.cs-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.cs-meta > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.cs-meta dt { margin: 0 0 4px; color: var(--muted); font-size: var(--step-small); }
.cs-meta dd { margin: 0; font-size: var(--step-body); line-height: 1.35; }
.cs-points { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cs-points li { position: relative; padding-left: 16px; color: var(--ink); font-size: var(--step-small); line-height: 1.4; }
.cs-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--accent); }
@media (max-width: 900px) { .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cs-meta { grid-template-columns: 1fr; } }

/* résultats : libellé, grande phrase, précision */
.cs-res li { grid-template-columns: 9rem minmax(0, 1.4fr) minmax(0, 1fr); }
.cs-rl { color: var(--lav); font-size: var(--step-small); }
.cs-note { margin: 22px 0 0; color: var(--muted); font-size: var(--step-small); max-width: 34em; }
@media (max-width: 900px) { .cs-res li { grid-template-columns: 1fr; } }

/* ===== Étude de cas : version mobile (écrans verticaux) ===== */
.mob { padding-block: clamp(40px, 5vw, 80px) clamp(72px, 9vw, 140px); row-gap: clamp(28px, 3vw, 44px); }
.mob-head { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 40em; }
.mob-head h2 { margin: 0; font-size: var(--step-title); font-weight: var(--w, 300); letter-spacing: -.02em; line-height: 1.1; }
.mob-head p { margin: 0; color: var(--muted); }
.mob-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.mob-item { position: relative; margin: 0; }
.mob-tag { position: absolute; left: 0; bottom: calc(100% + 6px); padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 500; white-space: nowrap; }
.mob-item img { display: block; width: 100%; height: auto; border-radius: clamp(14px, 1.8vw, 26px); box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.mob-cap { margin: 12px 0 0; color: var(--muted); font-size: var(--step-small); }
.mob-cap b { margin-right: 6px; color: var(--ink); font-weight: 500; }
.mob-list:focus-visible { outline: 2px solid var(--lav); outline-offset: 6px; }
@media (max-width: 900px) { .mob-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .mob-list { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .mob-item { scroll-snap-align: start; } }

/* l'image d'un écran non encore dévoilé est agrandie (effet d'entrée) : on coupe ce qui dépasse sur les côtés, sans créer de défilement */
.shots, .mob { overflow-x: clip; }

/* personas */
.cs-personas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cs-persona { display: grid; align-content: start; gap: 18px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r-frame, 4px); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.cp-hd { display: flex; align-items: center; gap: 16px; }
.cp-av { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.cp-who h3 { margin: 0; font-size: var(--step-lead); font-weight: var(--w, 300); line-height: 1.15; }
.cp-who p { margin: 4px 0 0; color: var(--muted); font-size: var(--step-small); }
.cp-ctx { margin: 0; color: var(--ink); }
.cp-blk h4 { margin: 0; color: var(--lav); font-size: var(--step-small); font-weight: 400; }
.cp-blk .cs-points { margin-top: 10px; padding-top: 0; border-top: 0; }
.cp-ans { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step-small); }
.cp-ans b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }

/* ---------- DA : cadres plus discrets, la couleur reste sur les étiquettes et les actions ---------- */
body { --fline: color-mix(in srgb, var(--accent) 34%, transparent); }

/* pages entières (captures longues) : cadre à défilement, l'image reste entière */
.shot.tall .shot-scroll { height: min(72vh, 720px); overflow-y: auto; border-radius: var(--r-frame, 12px); box-shadow: 0 0 0 1px var(--line); background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shot.tall .shot-scroll img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.shot.tall .shot-scroll:focus-visible, .mob-scroll:focus-visible { outline: 2px solid var(--lav); outline-offset: 4px; }
.mob-scroll { height: min(72vh, 700px); overflow-y: auto; border-radius: clamp(14px, 1.8vw, 26px); box-shadow: 0 0 0 1px var(--line); background: var(--surface); scrollbar-width: none; }
.mob-scroll img { display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.mob-item.is-tall > img { box-shadow: none; }
.mob-list.few { grid-template-columns: repeat(var(--n, 1), minmax(0, 320px)); }
@media (max-width: 560px) { .mob-list.few { grid-template-columns: none; grid-auto-columns: 72%; } }

/* Pied de page corporate (sans e-mail) */
footer.foot.foot-corp { min-height: 0; display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); margin: 64px var(--m) var(--m); padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px) var(--m); overflow: visible; }
.foot-corp .fc-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; padding-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.foot-corp .fc-name { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: var(--w, 300); letter-spacing: -0.03em; line-height: 1.05; }
.foot-corp .fc-role { margin-top: 8px; color: var(--lav, var(--accent)); font-size: var(--step-small); letter-spacing: .02em; }
.foot-corp .fc-text { margin-top: 16px; max-width: 46ch; color: var(--muted); font-size: var(--step-small); line-height: 1.6; }
.foot-corp .fc-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot-corp .fc-lead { font-size: var(--step-lead); font-weight: var(--w, 300); line-height: 1.25; letter-spacing: -0.02em; }
.foot-corp .fc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); }
.foot-corp .fc-h { margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.foot-corp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--step-small); }
.foot-corp li { color: var(--muted); }
.foot-corp li a { display: inline-block; padding-block: 8px; color: var(--ink); transition: color .2s var(--ease); }
.foot-corp li a:hover { color: var(--accent); }
.foot-corp .foot-bottom { padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .foot-corp .fc-top { grid-template-columns: 1fr; align-items: start; }
  .foot-corp .fc-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .foot-corp .fc-cols { grid-template-columns: 1fr; } }


/* ---------- Page Projets : des cadres posés sur le canvas ---------- */
.pbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: clamp(28px, 3.5vw, 48px); }
.pcount { font-size: var(--step-small); color: var(--muted); letter-spacing: .01em; }
.pcount b { color: var(--lav); font-weight: 500; }
.pfilters { margin: 0; padding: 0; justify-content: flex-start; }
.pgrid { list-style: none; margin: 0; padding-block: clamp(56px, 6vw, 96px) clamp(72px, 9vw, 140px); row-gap: clamp(64px, 7vw, 112px); align-items: start; }
.pcard { --g: var(--fbg); position: relative; grid-column: span 6; min-width: 0; background: var(--fbg); }
.pcard[hidden] { display: none; }
.pcard:nth-child(4n+1) { grid-column: 1 / span 7; }
.pcard:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: clamp(48px, 9vw, 144px); }
.pcard:nth-child(4n+3) { grid-column: 1 / span 5; }
.pcard:nth-child(4n+4) { grid-column: 6 / span 7; margin-top: clamp(48px, 9vw, 144px); }
.pcard-link { position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: clamp(14px, 1.6vw, 24px); color: inherit; text-decoration: none; isolation: isolate; }
.pcard-media { position: relative; z-index: 1; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); outline-offset: -1px; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .8s var(--ease); }
.pcard-media.is-empty { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.pcard-media.is-empty::before { content: attr(data-word); font-size: clamp(2rem, 5vw, 4.5rem); font-weight: var(--w, 300); letter-spacing: -0.04em; color: color-mix(in srgb, var(--lav) 70%, transparent); }
.pcard.is-brand .pcard-media.is-empty::before { font-family: var(--serif); font-weight: 400; }
.pcard-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.pcard-arrow { margin-left: auto; display: inline-flex; color: var(--lav); transition: transform .5s var(--ease); }
.pcard-title { position: relative; z-index: 1; font-size: var(--step-title); font-weight: var(--w, 300); line-height: 1.05; letter-spacing: -0.03em; }
.pcard-fact { position: relative; z-index: 1; font-size: var(--step-body); color: var(--muted); max-width: 30em; }
.pcard-link:hover .pcard-media img, .pcard-link:focus-visible .pcard-media img { transform: scale(1.03); }
.pcard-link:hover .pcard-arrow, .pcard-link:focus-visible .pcard-arrow { transform: translateX(6px); }
.pcard-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 900px) {
  .pcard:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .pgrid { row-gap: 56px; }
}
@media (prefers-reduced-motion: reduce) { .pcard-media img, .pcard-arrow { transition: none; } }
.work-all { display: flex; justify-content: center; padding: 8px var(--m) clamp(40px, 5vw, 72px); }
.page-projets .page-title { line-height: 1.08; padding-bottom: .04em; }

/* Pied de page : appel à l'action seul */
.foot-corp .fc-top { display: flex; justify-content: center; text-align: center; border-bottom: 0; padding-block: clamp(24px, 4vw, 56px); }
.foot-corp .fc-cta { align-items: center; gap: 22px; }
.foot-corp .fc-lead { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.page-title .mw { padding-bottom: .16em; margin-bottom: -.16em; }

/* Pied de page : zone d'appel à l'action agrandie */
footer.foot.foot-corp { min-height: min(72svh, 640px); justify-content: center; padding-block: clamp(56px, 9vw, 140px) var(--m); }
.foot-corp .fc-top { padding-block: clamp(32px, 6vw, 96px); }
.foot-corp .fc-cta { gap: clamp(28px, 4vw, 48px); }
.foot-corp .fc-lead { font-size: clamp(2.5rem, 1.2rem + 5.6vw, 6.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.foot-corp .fc-cta .btn { min-height: 56px; padding: 0 36px; font-size: var(--step-body); }

/* Accueil : en-tête de la sélection (le lien vers tous les projets est visible dès le début) et bouton du bas plus proche */
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: clamp(40px, 5vw, 72px) var(--m) 0; }
.work-head .wh-t { font-size: var(--step-small); color: var(--muted); letter-spacing: .01em; }
.work-head .wh-t b { color: var(--lav); font-weight: 500; }
.work-head .chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
@media (min-width: 901px) { .work.is-stack { padding-bottom: 6svh; } }
.work-all { padding-top: 0; }

/* Bouton « remonter » : un fond et un contour pour qu'il se voie */
#to-top { background: color-mix(in srgb, var(--surface) 88%, var(--ink)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); }
#to-top:hover, #to-top:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Transition de page : un simple voile de la couleur du fond (fondu doux), sans cadre ni poignées */
.pt-sel { inset: 0; width: auto; height: auto; border: 0; }
.pt-sel .pt-tag, .pt-sel .pt-h { display: none; }

/* curseur clair / sombre sur un écran (champ compare d'une image de galerie) */
.cmp { position: relative; overflow: hidden; border-radius: var(--r-frame, 12px); box-shadow: 0 0 0 1px var(--line); --x: 50%; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; background: var(--surface); }
.cmp img { display: block; width: 100%; height: auto; aspect-ratio: auto; pointer-events: none; }
.cmp .cmp-b { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--x)); }
.cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; }
.cmp-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.cmp-grip { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: transform .2s ease; }
.cmp.is-drag .cmp-grip, .cmp-h:hover .cmp-grip { transform: scale(1.08); }
.cmp-h:focus-visible .cmp-grip { outline: 2px solid var(--lav); outline-offset: 3px; }
.cmp-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.3; font-weight: 400; background: rgba(13,10,20,.78); color: #fff; pointer-events: none; }
.cmp-ta { left: 12px; } .cmp-tb { right: 12px; }
@media (prefers-reduced-motion: reduce) { .cmp-grip { transition: none; } }


/* ---------- Hero sobre : le nom, une phrase, deux boutons. Pas d'objet, pas de composants, pas d'étiquettes ---------- */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(26px, 4.2svh, 44px); min-height: calc(100svh - 72px); padding: clamp(96px, 15svh, 150px) clamp(20px, 4vw, 64px) clamp(72px, 11svh, 120px); }
.hero::before { background: radial-gradient(ellipse 46% 30% at 50% 44%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%); animation: none; }
.hero-title { align-self: center; justify-self: auto; margin: 0; font-size: clamp(2.7rem, 8.2vw, 10rem); line-height: .98; }
.hero-title .ln { padding-bottom: .2em; margin-bottom: -.2em; }
.hero-copy { align-self: center; margin-top: 0; gap: clamp(24px, 3.6svh, 36px); align-items: center; }
.hero-copy .statement { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.55; max-width: 32em; margin-inline: auto; }
.hero-actions { justify-content: center; }
@media (max-width: 900px) {
  .hero { padding: clamp(92px, 16svh, 130px) 20px 88px; min-height: calc(100svh - 104px); }
  .hero-title { font-size: clamp(2.3rem, 11vw, 5rem); }
}
@media (max-width: 420px) { .hero-title { font-size: 11.6vw; } }

/* Hero : la ligne « UI/UX Designer » est plus petite que le nom */
.hero-title .ln:last-child { font-size: .52em; margin-top: .14em; word-spacing: .1em; }
.hero-title .ln:last-child .it { font-size: 1em; }

/* Étoiles filantes du hero (js/stars.js) : très discrètes */
.hero > .hero-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.hero-star { position: absolute; display: block; height: 1px; transform-origin: 0 50%; border-radius: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lav) 85%, #fff)); opacity: 0; }
.hero-star::after { content: ""; position: absolute; right: 0; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: color-mix(in srgb, var(--lav) 70%, #fff); }
.calm .hero-sky { display: none; }

/* Dock : jamais de libellé sur deux lignes ; avec les outils ouverts, « Aller à... » ne garde que la loupe */
.dock .dk-lb, .dock .dk, .dock button { white-space: nowrap; }
.dock .cmdk-btn .dk-lb { white-space: nowrap; }
html.cp-x .dock .cmdk-btn .dk-lb { display: none; }
html.cp-x .dock .cmdk-btn { padding: 0 14px; }
