/* christian.k - styles du site. Les valeurs (couleurs, polices, rayons) viennent de tokens.css. */
/* =========================================================
   christian.k - Portfolio étudiant
   Ambiance : jjettas.com - nuit profonde, lettres géantes, cartes inclinées, citation révélée
   Structure : mkvision.studio - menu en pilule, liste des disciplines, texte révélé, chiffres
   Charte : christian.k (Stitch « Kinetic Blueprint »)
   Typo : Unbounded (titres) + Inter (texte)
   ========================================================= */

:root {
  /* Surfaces nuit */
  --bg: var(--oxford);
  --bg-2: var(--night-bg-2);
  --surface: var(--night-surface);
  --ink: var(--night-ink);
  --ink-2: var(--night-ink-2);
  --ink-3: var(--night-ink-3);
  --line: rgb(var(--sky-rgb) / .14);
  --line-2: rgb(var(--sky-rgb) / .3);
  --faint: rgb(var(--night-ink-rgb) / .14);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--orange); color: var(--oxford); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Grain, comme le fond texturé de jjettas */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sections blanches : on alterne le bleu Oxford du logo et le blanc.
   Les composants lisent les mêmes variables, ils s'adaptent tout seuls. */
.theme-light {
  --bg: var(--white);
  --bg-2: var(--cloud);
  --surface: var(--mist);
  --ink: var(--oxford);
  --ink-2: rgb(var(--oxford-rgb) / .76);
  --ink-3: rgb(var(--oxford-rgb) / .58);
  --line: rgb(var(--oxford-rgb) / .12);
  --line-2: rgb(var(--oxford-rgb) / .26);
  --faint: rgb(var(--oxford-rgb) / .14);
  background: var(--bg); color: var(--ink);
}
.theme-light .pill--light { background: var(--oxford); color: var(--white); }
.theme-light .pill--light:hover { background: var(--orange); color: var(--oxford); }
/* l'écran du jeu reste bleu, comme un écran allumé */
.theme-light .game {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: var(--night-ink-3); --line-2: rgb(var(--sky-rgb) / .3);
  background: radial-gradient(70% 60% at 50% 30%, rgb(var(--azure-rgb) / .18), transparent 70%), var(--oxford);
  color: var(--ink);
}
.theme-light .game .pill--light { background: var(--night-ink); color: var(--oxford); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

/* ---------- Typo ---------- */
.eyebrow {
  font: 500 13px/1.3 var(--f-body);
  color: var(--orange);
}
.eyebrow--dark { color: var(--oxford); }
.h2 {
  margin: 0;
  font: 500 clamp(30px, 4.2vw, 64px)/1.08 var(--f-display);
  letter-spacing: -.02em;
}
.h2 em {
  font-family: var(--f-body); font-style: italic; font-weight: 400;
  color: var(--orange);
  letter-spacing: -.01em;
}
.h2 .accent, .accent { color: var(--orange); }
.h2--sm { font-size: clamp(26px, 3vw, 44px); }

/* ---------- Pilules (boutons mkvision) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px 0 18px;
  border-radius: var(--r-pill);
  font: 600 12px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.pill[hidden] { display: none; }
.pill i, .pill .burger {
  font-style: normal; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--oxford); font-size: 14px;
  transition: transform .4s var(--ease-out);
}
.pill:hover i { transform: rotate(45deg); }
.pill--light { background: var(--ink); color: var(--oxford); }
.pill--light:hover { background: var(--orange); }
.pill--light:hover i { background: var(--oxford); color: var(--orange); }
.pill--dark { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.pill--line { border: 1px solid var(--line-2); color: var(--ink); padding: 0 18px; height: 40px; }
.pill--line i { width: auto; height: auto; background: none; color: var(--orange); }
.pill--line:hover { border-color: var(--orange); color: var(--orange); }
.burger { gap: 4px; place-content: center; background: var(--orange) !important; }
.burger i { display: block; width: 14px; height: 2px; background: var(--oxford); transition: transform .4s var(--ease-out); }
.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   PRELOADER - barre verticale
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  overflow: hidden;
}
.loader__top {
  position: absolute; top: var(--margin); left: var(--margin); right: var(--margin);
  display: flex; justify-content: space-between;
  font: 500 13px var(--f-body); color: var(--ink-3);
}
.loader__wm { height: 18px; width: auto; }
.loader__bar {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 52vh;
  transform: translate(-50%, -50%);
  background: rgb(var(--sky-rgb) / .12);
  overflow: hidden;
}
.loader__fill {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--orange), var(--amber));
  transform-origin: 50% 100%; transform: scaleY(0);
}
.loader__count {
  position: absolute; left: var(--margin); bottom: var(--margin);
  font: 700 clamp(64px, 11vw, 180px)/.8 var(--f-display);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start;
}
.loader__count small { font-size: .3em; margin-left: .2em; color: var(--orange); }
.loader__tags {
  position: absolute; right: var(--margin); bottom: var(--margin);
  font: 500 13px var(--f-body); color: var(--ink-3);
}

/* =========================================================
   CURSEUR & APERÇU FLOTTANT
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: var(--orange);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s;
}
.cursor__label { font: 700 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--oxford); opacity: 0; transition: opacity .2s; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-view .cursor__label { opacity: 1; }
.preview {
  position: fixed; top: 0; left: 0; z-index: 140; pointer-events: none;
  width: 340px; aspect-ratio: 4 / 3; margin: -130px 0 0 40px;
  border-radius: var(--r-md); overflow: hidden;
  opacity: 0; transform: scale(.7) rotate(-6deg);
  transition: opacity .3s, transform .5s var(--ease-out);
  border: 4px solid var(--orange);
  box-shadow: 0 30px 70px -20px rgb(var(--black-rgb) / .8);
}
.preview.is-on { opacity: 1; transform: scale(1) rotate(-3deg); }
.preview__inner { width: 100%; height: 100%; background: var(--cloud) center / cover no-repeat; }
@media (hover: none), (pointer: coarse) { .cursor, .preview { display: none; } }

/* =========================================================
   NAV (mkvision : logo, pilules)
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--margin);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(var(--oxford-rgb) / .9), rgb(var(--oxford-rgb) / 0));
  pointer-events: none; transition: opacity .3s;
}
.nav > * { position: relative; }
.nav__logo img { width: 40px; transition: filter .3s; }
.nav__name img { height: 17px; width: auto; transition: filter .3s; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.menu-open .nav::before, .nav-dark .nav::before { opacity: 0; }
.nav-dark .nav__logo img, .menu-open .nav__logo img, .nav-dark .nav__name img, .menu-open .nav__name img, .nav-white .nav__logo img, .nav-white .nav__name img { filter: brightness(0) saturate(100%) invert(9%) sepia(60%) saturate(3000%) hue-rotate(200deg); }

.menu {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--margin) var(--margin);
  visibility: hidden;
}
.menu__bg { position: absolute; inset: 0; background: var(--white); clip-path: inset(0 0 100% 0); }
.menu__list { position: relative; list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: flex-start; gap: 16px;
  font: 700 clamp(40px, 7vw, 104px)/1.05 var(--f-display); letter-spacing: -.03em;
  color: var(--oxford);
  transform: translateY(105%);
  transition: color .15s;
}
.menu__list a:hover { color: var(--orange); }

/* =========================================================
   HERO (jjettas)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(36px, 6vh, 64px);
  padding: 120px var(--margin) 110px;
  background:
    radial-gradient(55% 55% at 50% 42%, rgb(var(--azure-rgb) / .2), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__stage { position: relative; z-index: 1; perspective: 1200px; }

/* Carte à collectionner (cadre orange/ambre) */
.card { position: relative; margin: 0; }
.card__frame {
  position: relative; overflow: hidden; padding: 6px; border-radius: var(--r-xs);
  background: linear-gradient(145deg, var(--gold-1) 0%, var(--orange) 28%, var(--gold-5) 52%, var(--amber) 74%, var(--gold-2) 100%);
  box-shadow: 0 30px 80px -20px rgb(var(--orange-rgb) / .4), 0 0 0 1px rgb(var(--gold-glow-rgb) / .4);
}
.card__frame > img, .card__frame > video { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: var(--bg-2); }
.card__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgb(var(--white-rgb) / .55), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .card__shine { opacity: 1; }

/* « portfolio » : lettres en verre, au centre du hero, au-dessus du K */
.hero__word {
  position: absolute; z-index: 4; left: 0; right: 0; top: 50%; transform: translateY(-62%);
  display: flex; justify-content: center; pointer-events: none;
  font: 700 clamp(56px, 11vw, 190px)/1 var(--f-display); letter-spacing: -.04em;
  color: rgb(var(--night-ink-rgb) / .22); -webkit-text-stroke: 1.5px rgb(var(--night-ink-rgb) / .85);
  text-shadow: 0 0 40px rgb(var(--sky-rgb) / .35);
}
.hero__word span { display: inline-block; will-change: transform, filter, opacity; }
/* Hero : le logo christian.k, animé comme « Le Point » */
.hero__brandwrap { position: relative; z-index: 1; margin: 0; line-height: 0; }
.hero__brand { display: block; width: min(64vw, 620px, 70vh); height: auto; overflow: visible; }
.hero__brand .hb-kpath, .hero__brand .hb-letter, .hero__brand .hb-seed { fill: var(--ink); }
.hero__brand .hb-dot { fill: var(--orange); }
.hero__tagline {
  position: relative; z-index: 1; margin: 0; text-align: center;
  font: 600 clamp(20px, 2.4vw, 38px)/1.15 var(--f-display); letter-spacing: -.03em;
}
.hero__tagline .line { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: top; }
.hero__tagline .line > span { display: inline-block; }
.hero__tagline .line--accent { color: var(--orange); }

.hero__sign {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px;
  margin: calc(clamp(36px, 6vh, 64px) * -1 + 14px) 0 0;
  font: 500 12px/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.hero__sign span:first-child { color: var(--ink); }
.hero__sign i { width: 5px; height: 5px; background: var(--orange); }

/* repère de défilement : une ligne fine où glisse un segment orange */
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.hero__scroll-line { position: relative; width: 1px; height: 42px; background: var(--line-2); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--orange); animation: scrollcue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* =========================================================
   À PROPOS - fond blanc, texte Oxford Blue
   ========================================================= */
.about { background: var(--bg); color: var(--ink); padding: clamp(100px, 13vw, 190px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(220px, 1fr) 1.7fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.about__side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 110px; }
.card--about { width: 100%; max-width: 380px; }
.card--about .card__frame { aspect-ratio: 4 / 5; box-shadow: 0 30px 70px -30px rgb(var(--oxford-rgb) / .45), 0 0 0 1px rgb(var(--gold-glow-rgb) / .4); }
.about__title {
  margin: 0; max-width: 22ch;
  font: 600 clamp(30px, 4vw, 62px)/1.12 var(--f-display); letter-spacing: -.03em;
}
.about__title .w { display: inline-block; }
.about__title .w.is-hl { color: var(--orange); }
.about__text { margin: clamp(28px, 3vw, 44px) 0 0; max-width: 52ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
/* nav lisible au-dessus du blanc */
.nav-dark .pill--light, .nav-white .pill--light, .menu-open .pill--light { background: var(--oxford); color: var(--white); }
.nav-white .nav::before { background: linear-gradient(180deg, rgb(var(--white-rgb) / .96) 55%, rgb(var(--white-rgb) / 0)); }

/* transition entre sections : le point orange s'ouvre (voir main.js) */
.pt-slot { position: relative; }
.pt-dot { position: absolute; left: 50%; top: 0; z-index: 5; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: var(--orange); box-shadow: 0 0 0 1px rgb(var(--sky-rgb) / .35); pointer-events: none; transform: scale(0); }

/* =========================================================
   PROCESSUS - quatre maquettes isométriques du K qui se construisent
   ========================================================= */
.process { position: relative; background: var(--bg); color: var(--ink); padding: clamp(90px, 11vw, 170px) 0 clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); }
.process__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px var(--gutter); margin-bottom: clamp(48px, 6vw, 96px); }
.process__head .eyebrow { grid-column: 1 / -1; }
.process__title { grid-column: 1 / 8; margin: 0; font: 700 clamp(48px, 8vw, 128px)/.92 var(--f-display); letter-spacing: -.05em; }
.process__intro { grid-column: 8 / -1; align-self: end; margin: 0; max-width: 40ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.process { overflow: hidden; }
.ptrack { position: relative; overflow-x: auto; scrollbar-width: none; }
.process.is-h .ptrack { overflow: visible; }
.prail { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font: 600 12px var(--f-body); letter-spacing: .12em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prail__n:first-child { color: var(--orange); }
.prail__bar { position: relative; flex: 1; height: 1px; background: var(--line-2); }
.prail__bar b { position: absolute; inset: 0 auto 0 0; width: 25%; background: var(--orange); height: 2px; top: -.5px; }
.pgrid { --pw: clamp(300px, 36vw, 560px); display: grid; grid-auto-flow: column; grid-auto-columns: var(--pw); grid-template-rows: repeat(6, auto); column-gap: clamp(28px, 3vw, 48px); width: max-content; will-change: transform; }
.pstep { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; transition: opacity .4s; }
.pgrid.has-open .pstep:not(.is-open) { opacity: .4; }
.pstep__bar { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); font: 600 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pstep__bar b { color: var(--orange); font-weight: 600; margin-right: 6px; }
.pstep__status { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pstep__art { padding: 18px 0 6px; }
.pstep__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.pstep__title { margin: 14px 0 12px; font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--f-display); letter-spacing: -.03em; }
.pstep__title small { display: block; margin-top: 6px; font: 400 13px var(--f-body); letter-spacing: 0; color: var(--ink-3); }
.pstep__text { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pstep__more { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 0; border-top: 1px solid var(--line-2); font: 600 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; align-self: start; }
.pstep__more i { font-style: normal; font-size: 18px; line-height: 1; color: var(--orange); transition: transform .35s var(--ease); }
.pstep__more[aria-expanded="true"] i { transform: rotate(45deg); }
.pstep__details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.pstep.is-open .pstep__details { grid-template-rows: 1fr; }
.pstep__details > div { overflow: hidden; }
.pstep__details ul { list-style: none; margin: 0; padding: 4px 0 0; }
.pstep__details li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.pstep__tools { margin: 10px 0 0; font: 600 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* dessin isométrique : plan d'architecte bleu ciel sur Oxford */
.iso-top { fill: var(--night-deep-1); stroke: rgb(var(--sky-rgb) / .55); stroke-width: 1; }
.iso-side { fill: var(--night-deep-2); stroke: rgb(var(--sky-rgb) / .4); stroke-width: 1; }
.iso-side--2 { fill: var(--night-deep-3); }
.iso-grid { fill: none; stroke: rgb(var(--sky-rgb) / .12); stroke-width: 1; }
.guide { fill: none; stroke: rgb(var(--sky-rgb) / .7); stroke-width: 1; }
.guide--k { stroke: var(--orange); stroke-width: 1.4; }
.ref__base { fill: var(--night-deep-3); stroke: rgb(var(--sky-rgb) / .35); stroke-width: 1; }
.ref__top { fill: var(--night-ink); stroke: rgb(var(--oxford-rgb) / .3); stroke-width: 1; }
.ref__top--hl { fill: var(--sky); }
.ref__ln { fill: none; stroke: rgb(var(--oxford-rgb) / .45); stroke-width: 1; }
.shadow { fill: var(--black); opacity: .28; }
.frag__k { fill: rgb(var(--sky-rgb) / .08); stroke: var(--sky); stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; }
.link { stroke: var(--orange); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; opacity: .8; }
.node { fill: var(--orange); }
.k-trace { fill: none; stroke: var(--night-ink); stroke-width: 1.4; }
.k-layer { fill: rgb(var(--night-deep-1-rgb) / .85); stroke: rgb(var(--sky-rgb) / .65); stroke-width: 1; }
.k-layer--top { fill: var(--night-ink); stroke: var(--night-ink); }
.k-solid { fill: var(--night-deep-2); stroke: rgb(var(--sky-rgb) / .35); stroke-width: 1; }
.k-solid--top { fill: var(--night-ink); stroke: none; }
.cube__top { fill: var(--gold-3); } .cube__a { fill: var(--orange); } .cube__b { fill: var(--gold-4); }
.rays line { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.dim { fill: none; stroke: var(--orange); stroke-width: 1.2; }
.test { fill: none; stroke: rgb(var(--sky-rgb) / .5); stroke-width: 1; transition: fill .25s, stroke .25s; }
.test.is-ok { fill: var(--orange); stroke: var(--orange); }

/* =========================================================
   PROJET - une étude par bloc, la grande image se pose au défilement
   ========================================================= */
.works { position: relative; overflow: hidden; background: var(--bg); padding: clamp(90px, 11vw, 170px) 0 clamp(90px, 11vw, 160px); }
.works__inner { position: relative; z-index: 1; }
.works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(40px, 5vw, 72px); }
.works__head .eyebrow { flex-basis: 100%; }
.works__title { margin: 0; font: 700 clamp(48px, 8vw, 128px)/.92 var(--f-display); letter-spacing: -.05em; color: var(--ink); }
.works__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 4px;
  height: 46px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font: 600 14px var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  transition: background .25s, color .25s, border-color .25s;
}
.filter sup { font-size: 11px; color: var(--orange); transform: translateY(-4px); }
.filter:hover { border-color: var(--orange); color: var(--ink); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: var(--oxford); }
.filter.is-active sup { color: var(--oxford); }

/* Une étude par bloc : en-tête puis grande image (inspiré de sreenurj.com) */
.projets { display: flex; flex-direction: column; margin-inline: calc(50% - 50vw); }
/* chaque étude occupe un écran ; le conteneur intérieur pivote quand il arrive */
.proj { position: relative; height: 100svh; }
.proj__inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: clamp(84px, 11vh, 110px) max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))) clamp(24px, 4vh, 44px);
  background: var(--bg); will-change: transform;
  box-shadow: 0 -40px 80px -30px rgb(var(--shade-5-rgb) / .55);
}
.proj:first-child .proj__inner { box-shadow: none; }
.proj__inner .proj__media { flex: 1; min-height: 0; aspect-ratio: auto; }
.projets:not(.is-open):not(.is-filtered) .proj.is-extra { display: none; }
.proj { cursor: pointer; }
.proj.is-hidden { display: none; }
.proj__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(20px, 2.2vw, 32px); }
.proj__id { display: flex; gap: 16px; align-items: flex-start; }
.proj__logo { flex: none; width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; overflow: hidden; background: var(--cloud); border: 1px solid var(--line); }
.proj__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.proj__logo--letter { background: var(--orange); color: var(--oxford); font: 700 24px var(--f-display); }
.proj__title { margin: 0; font: 600 clamp(22px, 2vw, 30px)/1.2 var(--f-display); letter-spacing: -.025em; }
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .55s var(--ease-out); }
.roll > span + span { position: absolute; inset: 0; transform: translateY(100%); color: var(--orange); }
.proj:hover .roll > span:first-child { transform: translateY(-100%); }
.proj:hover .roll > span + span { transform: none; }
.proj__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font: 500 14px var(--f-body); color: var(--ink-2); }
.proj__chip { padding: 5px 12px; border-radius: var(--r-pill); background: rgb(var(--sky-rgb) / .12); color: var(--ink); }
.proj__desc { margin: 0; justify-self: end; max-width: 44ch; font: 400 17px/1.6 var(--f-body); color: var(--ink-2); }
.proj__desc .w, .about__text .w { display: inline-block; }
.proj__media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 8.5; background: var(--surface); }
.proj__media img, .proj__media video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.proj__media.is-light img { object-fit: contain; background: var(--cloud); padding: 9% 22%; }
.proj__go {
  position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--oxford);
  font: 600 13px var(--f-body); letter-spacing: .04em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .5s var(--ease-out);
}
.proj__go i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); }
.proj:hover .proj__go { opacity: 1; transform: none; }
.proj-more { display: flex; justify-content: center; margin-top: clamp(60px, 7vw, 100px); }
.proj-more .pill { height: 52px; padding: 0 24px; font-size: 13px; }


/* =========================================================
   PAUSE - mini-jeu « Le Point » + brief express
   ========================================================= */
.play { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.play__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px var(--gutter); margin-bottom: clamp(36px, 5vw, 64px); }
.play__head .eyebrow { grid-column: 1 / -1; }
.play__head .h2 { grid-column: 1 / 8; }
.play__head p { grid-column: 8 / -1; align-self: end; margin: 0; color: var(--ink-2); max-width: 44ch; }
.play__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: stretch; }
.play__grid .game { grid-column: 1 / 8; }
.play__grid .brief { grid-column: 8 / -1; }

.game {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(70% 60% at 50% 30%, rgb(var(--azure-rgb) / .16), transparent 70%), var(--bg-2);
  min-height: 420px;
}
.game__canvas { display: block; width: 100%; height: 100%; min-height: 420px; aspect-ratio: 4 / 3; touch-action: manipulation; cursor: pointer; outline: none; }
.game__canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--orange); }
.game__hud { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; gap: 20px; align-items: center; pointer-events: none; font: 500 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.game__hud b { margin-left: 6px; font: 600 18px var(--f-display); color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.game__lives { margin-left: auto; display: flex; gap: 6px; }
.game__lives i { width: 12px; height: 12px; background: var(--orange); transition: opacity .3s, transform .3s; }
.game__lives i.is-off { opacity: .15; transform: scale(.7); }
.game__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background: rgb(var(--shade-6-rgb) / .72); backdrop-filter: blur(4px);
  transition: opacity .35s, visibility .35s;
}
.game__overlay.is-hidden { opacity: 0; visibility: hidden; }
.game__title { margin: 0; font: 700 clamp(34px, 4vw, 56px)/1 var(--f-display); letter-spacing: -.04em; }
.game__msg { margin: 0; max-width: 34ch; color: var(--ink-2); }
.game__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

.brief {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 3vw, 40px); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.brief h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 34px)/1.05 var(--f-display); letter-spacing: -.03em; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span, .brief__chips legend { font: 600 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--ink);
  font: 400 15px/1.5 var(--f-body); resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid { border-color: var(--error); }
.brief__chips { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brief__chips legend { margin-bottom: 8px; padding: 0; }
.brief__chips label { cursor: pointer; }
.brief__chips input { position: absolute; opacity: 0; pointer-events: none; }
.brief__chips span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); font: 500 13px var(--f-body); color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.brief__chips input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--oxford); }
.brief__chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.brief__score { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: rgb(var(--orange-rgb) / .12); color: var(--ink); font-size: 14px; }
.brief__score b { color: var(--orange); }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; }
.brief__foot .pill { border: 0; cursor: pointer; }
.brief__status { margin: 0; font-size: 13px; color: var(--ink-2); flex: 1; min-width: 200px; }
.brief__status[data-tone="ok"] { color: var(--sky); }
.brief__status[data-tone="error"] { color: var(--error-soft); }
/* J6 : erreurs accessibles, champ piège, note de confidentialité */
.field span small { font: inherit; text-transform: none; letter-spacing: 0; opacity: .8; }
.field__err:empty { display: none; }
.field__err { font: 500 13px/1.4 var(--f-body); color: var(--error-soft); }
.brief__erreurs { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--error-soft); color: var(--ink); font-size: 14px; }
.brief__erreurs:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.brief__erreurs p { margin: 0; font-weight: 600; }
.brief__erreurs ul { margin: 6px 0 0; padding-left: 18px; }
.brief__erreurs a { color: inherit; text-decoration: underline; }
.brief__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.brief__note { margin: 0; font-size: 13px; color: var(--ink-2); }
.brief__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.brief__note a:hover { color: var(--orange); }
.brief .pill:disabled { opacity: .6; cursor: wait; }

/* =========================================================
   CONTACT
   ========================================================= */
.ghost-k { display: block; width: min(62vw, 900px); height: auto; overflow: visible; fill: rgb(var(--orange-rgb) / .05); stroke: rgb(var(--orange-rgb) / .45); stroke-width: 1.5px; }
.ghost-k path { vector-effect: non-scaling-stroke; }
.works__ghost { position: absolute; z-index: 0; right: -6vw; bottom: -4vw; pointer-events: none; }
.footer__ghost { position: absolute; z-index: 0; right: -4vw; bottom: -3vw; pointer-events: none; }
.footer__main { z-index: 1; }

.footer { position: relative; overflow: hidden; background: var(--bg); }
.footer__main { position: relative; padding-top: clamp(70px, 9vw, 130px); padding-bottom: 28px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1.3fr auto; gap: clamp(24px, 4vw, 56px); align-items: start; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); min-width: 0; }
.footer__col a { width: max-content; max-width: 100%; position: relative; color: var(--ink); overflow-wrap: anywhere; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__col a:hover { color: var(--orange); }
.footer__col p { margin: 6px 0 0; font-size: 14px; max-width: 30ch; color: var(--ink-3); }
.footer__label { font: 600 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.footer__status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer__status i { width: 8px; height: 8px; background: var(--azure); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.footer__top { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.footer__top svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.footer__top text { font: 600 10.5px var(--f-body); letter-spacing: .3em; text-transform: uppercase; fill: var(--ink-2); }
.footer__top span {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--orange); color: var(--oxford); font-size: 22px; font-weight: 700;
  transition: transform .5s var(--ease-out), background .3s;
}
.footer__top:hover span { transform: rotate(-90deg) scale(1.08); background: var(--ink); }

/* Wordmark christian.k géant : chaque lettre réagit au survol, le point orange tombe (clin d'œil à « Le Point ») */
.footer__wm { display: block; width: 100%; height: auto; overflow: visible; fill: var(--ink); }
.footer__wm .wm-letter { transform-box: fill-box; transition: transform .5s var(--ease-out), fill .3s; }
.footer__wm .wm-letter:hover { transform: translateY(-12%); fill: var(--orange); }
.footer__wm .wm-dot { fill: var(--orange); transform-box: fill-box; }

.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 13px var(--f-body); color: var(--ink-3); }

/* =========================================================
   PAGE PROJET - s'ouvre par-dessus le site, étapes dans l'ordre
   ========================================================= */
.pv {
  position: fixed; inset: 0; z-index: 170;
  overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(60% 40% at 80% 0%, rgb(var(--orange-rgb) / .10), transparent 70%),
    radial-gradient(50% 40% at 0% 10%, rgb(var(--azure-rgb) / .12), transparent 70%),
    var(--bg);
  transform: translateY(100%);
  transition: transform .7s cubic-bezier(.77, 0, .18, 1);
}
.pv.is-open { transform: none; }
.pv-open .nav { opacity: 0; pointer-events: none; }
.pv__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--margin);
  background: linear-gradient(180deg, rgb(var(--oxford-rgb) / .94), rgb(var(--oxford-rgb) / 0));
}
.pv__close { padding: 0 18px; }
.pv__close:hover { border-color: var(--orange); color: var(--orange); }
.pv__count { font: 600 14px var(--f-display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pv__count b { color: var(--orange); font-weight: 600; }
.pv__nav { display: flex; gap: 8px; }
.pv__arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink); font-size: 16px;
  transition: background .25s, color .25s, border-color .25s;
}
.pv__arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--oxford); }

.pv__hero { padding-top: clamp(40px, 8vh, 90px); padding-bottom: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 22px; }
.pv__title { margin: 0; font: 700 clamp(48px, 9vw, 150px)/.95 var(--f-display); letter-spacing: -.05em; }
.pv__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; padding-top: 24px; border-top: 1px solid var(--line-2); }
.pv__lead { margin: 0; font: 500 clamp(18px, 1.6vw, 24px)/1.5 var(--f-body); max-width: 40ch; }
.pv__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.pv__meta dt { font: 600 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.pv__meta dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.pv__note { margin: 0; font-size: 12px; color: var(--ink-3); }

.pv__steps { display: flex; flex-direction: column; gap: clamp(70px, 10vw, 140px); padding-bottom: clamp(70px, 10vw, 140px); }
.pv__step { opacity: 0; transform: translateY(50px); transition: opacity .9s, transform 1s var(--ease-out); }
.pv__step.is-in { opacity: 1; transform: none; }
.pv__stephead { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: baseline; margin-bottom: 28px; }
.pv__num { font: 700 clamp(28px, 3vw, 44px)/1 var(--f-display); color: var(--orange); letter-spacing: -.04em; }
.pv__stephead h3 { margin: 0; font: 600 clamp(26px, 3vw, 46px)/1.05 var(--f-display); letter-spacing: -.035em; }
.pv__stephead p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.pv__grid[data-cols="1"] { --cols: 1; } .pv__grid[data-cols="3"] { --cols: 3; }
.pv__grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.pv__media { margin: 0; display: flex; flex-direction: column; gap: 10px; cursor: zoom-in; }
.pv__media > img, .pv__media > video {
  display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line);
}
.pv__media > video { cursor: auto; background: var(--white); }
/* une colonne : l'image garde ses proportions, centrée */
.pv__grid[data-cols="1"] .pv__media:not(.is-light) > img { width: auto; max-width: 100%; align-self: center; }
.pv__grid[data-cols="1"] .pv__media:not(.is-light) figcaption { align-self: center; }
/* plusieurs colonnes : vignettes de même hauteur */
.pv__grid[data-cols="2"] .pv__media > img, .pv__grid[data-cols="3"] .pv__media > img { aspect-ratio: 4 / 3; object-fit: cover; }
.pv__media.is-light > img { object-fit: contain !important; background: var(--cloud); padding: clamp(16px, 4%, 48px); max-height: 62vh; }
.pv__media figcaption { font: 500 13px var(--f-body); color: var(--ink-3); }

.pv__next {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%;
  padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line-2); text-align: left;
  opacity: 0; transform: translateY(40px); transition: opacity .9s, transform 1s var(--ease-out);
}
.pv__next.is-in { opacity: 1; transform: none; }
.pv__next strong { font: 700 clamp(40px, 7vw, 120px)/1 var(--f-display); letter-spacing: -.05em; transition: color .3s; }
.pv__next strong i { font-style: normal; display: inline-block; transition: transform .5s var(--ease-out); }
.pv__next:hover strong { color: var(--orange); }
.pv__next:hover strong i { transform: translateX(16px); }
.pv__nextcat { color: var(--ink-3); font-size: 14px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 180; background: rgb(var(--shade-4-rgb) / .94); display: grid; place-items: center; padding: 70px var(--margin) var(--margin); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__content { max-width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }
.lightbox__content img, .lightbox__content video { max-width: 100%; max-height: calc(100svh - 110px); object-fit: contain; border: 5px solid var(--orange); border-radius: var(--r-sm); background: var(--white); }
.lightbox.has-info { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(24px, 3vw, 48px); align-items: center; }
.lightbox__info { display: flex; flex-direction: column; gap: 14px; max-height: calc(100svh - 110px); overflow: auto; }
.lightbox__info h3 { margin: 0; font: 600 clamp(28px, 3vw, 44px)/1.05 var(--f-display); letter-spacing: -.03em; }
.lightbox__info p { margin: 0; color: var(--ink-2); }
.lightbox__info .lightbox__client { color: var(--ink); font-weight: 500; }
.lightbox__info small { color: var(--ink-3); font-size: 12px; }
.lightbox__close { position: absolute; top: 20px; right: var(--margin); font: 600 12px var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 12px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); }
.lightbox__close:hover { background: var(--orange); color: var(--oxford); border-color: var(--orange); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .pgrid { --pw: 46vw; }
  .method__stage { grid-template-columns: 1fr 1fr; }
  .method__titles { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__cta { display: none; }
  .hero { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-top: 100px; padding-bottom: 80px; }
  .hero__brand { width: 84vw; }
  .hero__sign { margin-top: -14px; gap: 8px 12px; font-size: 11px; }
  .hero__sign span:first-child { flex-basis: 100%; text-align: center; }
  .hero__sign i:first-of-type { display: none; }
  .hero__scroll { display: none; }

  .disc__row { grid-template-columns: 1fr 44px; gap: 6px 14px; }
  .disc__n { grid-column: 1 / -1; }
  .disc__case { grid-column: 1; text-align: left; grid-row: 3; }
  .disc__arrow { grid-column: 2; grid-row: 2 / 4; }

  .filter { flex: none; }
  .lightbox.has-info { grid-template-columns: 1fr; align-content: start; overflow-y: auto; }
  .lightbox.has-info .lightbox__content img, .lightbox.has-info .lightbox__content video { max-height: 50svh; }
  .lightbox__info { max-height: none; }
  .pv__intro { grid-template-columns: 1fr; }
  .pv__stephead { grid-template-columns: 1fr; gap: 10px; }
  .pv__grid { grid-template-columns: 1fr; }
  .pv__count { display: none; }
  .proj__head { grid-template-columns: 1fr; }
  .proj__desc { justify-self: start; font-size: 15px; }
  .proj__media { border-radius: var(--r-md); }
  .proj__inner { padding-top: 88px; }
  .proj__go { opacity: 1; transform: none; height: 40px; right: 12px; bottom: 12px; font-size: 11px; }
  .proj__logo { width: 46px; height: 46px; border-radius: 12px; }
  .works__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .works__filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: static; }
  .card--about { max-width: 300px; }
  .play__head .h2, .play__head p { grid-column: 1 / -1; }
  .process__title, .process__intro { grid-column: 1 / -1; }
  .pgrid { --pw: 80vw; column-gap: 20px; }
  .play__grid { grid-template-columns: 1fr; }
  .play__grid .game, .play__grid .brief { grid-column: 1 / -1; }
  .game, .game__canvas { min-height: 0; }
  .game__canvas { aspect-ratio: 4 / 5; }
  .brief__row { grid-template-columns: 1fr; }



  .method__pin { height: auto; padding: 100px 0 60px; grid-template-rows: auto; gap: 40px; }
  .method__bgnum, .method__foot { display: none; }
  .method__stage { grid-template-columns: 1fr; }
  .method__titles { display: flex; }
  .method__deck { display: none; }
  .method__texts { min-height: 0; display: flex; flex-direction: column; gap: 40px; }
  .mtext { position: relative; opacity: 1; transform: none; }
  .mtext .w { color: var(--ink); }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__top { justify-self: end; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   PROCESSUS - « Origin Objects » (obsidianassembly.com)
   Le titre s'ouvre, les cartes poussent entre les deux mots,
   puis se rangent en pile ; la carte de devant tombe à chaque étape.
   ========================================================= */
.process { padding: 0; border-top: 0; overflow: hidden; }
.oo { --ch: min(62vh, 600px); --cw: calc(var(--ch) * .74); position: relative; height: 100svh; overflow: hidden; }
.oo__eyebrow { position: absolute; z-index: 6; left: var(--margin); top: 96px; }
.oo__title { position: absolute; z-index: 5; left: 0; right: 0; top: 52%; margin: 0; transform: translateY(-50%); pointer-events: none;
  font: 300 clamp(34px, 5vw, 92px)/1 var(--f-display); letter-spacing: -.055em; white-space: nowrap; }
.oo__w { position: absolute; top: 0; margin-top: -.5em; will-change: transform; }
.oo__w--l { right: 50%; margin-right: .14em; }
.oo__w--r { left: 50%; margin-left: .14em; }
.oo__orbit { position: absolute; z-index: 1; left: -4%; top: 22%; width: 108%; height: 62%; overflow: visible; pointer-events: none; }
.oo__orbit ellipse { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.oo__deck { position: absolute; inset: 0; z-index: 3; }
.ocard { position: absolute; left: 50%; top: 53%; width: var(--cw); height: var(--ch); display: flex; flex-direction: column; overflow: hidden;
  background: var(--night-deep-1); border: 1px solid rgb(var(--sky-rgb) / .22); box-shadow: 0 40px 90px -30px rgb(var(--shade-2-rgb) / .85); will-change: transform; }
.ocard__bar { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 600 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ocard__bar b { color: var(--orange); font-weight: 600; margin-right: 6px; }
.ocard__bar .js-status { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ocard__art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8% 5%; background: radial-gradient(70% 60% at 50% 48%, rgb(var(--azure-rgb) / .2), transparent 72%); }
.ocard__art svg { width: 100%; height: auto; overflow: visible; }
.oo__label { position: absolute; z-index: 6; left: calc(50% - var(--cw) / 2 - 9vw); top: 50%; margin: 0; pointer-events: none;
  font: 300 clamp(22px, 2.5vw, 40px)/1.05 var(--f-display); letter-spacing: -.04em; color: var(--ink); text-shadow: 0 2px 24px rgb(var(--shade-3-rgb) / .7); }
.oo__label small { display: block; margin-top: 8px; font: italic 400 15px var(--f-body); letter-spacing: 0; color: var(--orange); }
.oo__count { position: absolute; z-index: 6; left: calc(50% + var(--cw) / 2 + 3vw); top: 52%; margin: 0; font: 300 clamp(22px, 2.2vw, 34px) var(--f-display); color: var(--ink-3); }
.oo__count b { color: var(--ink); font-weight: 300; }
.oo__side { position: absolute; z-index: 6; margin: 0; font: 500 13px/1.45 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.oo__side--tl { left: var(--margin); top: 22%; }
.oo__side--r { right: var(--margin); top: 42%; text-align: right; color: var(--ink-2); }
.oo__text { position: absolute; z-index: 6; left: var(--margin); bottom: 12%; max-width: 30ch; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.oo__box { position: absolute; z-index: 6; right: var(--margin); bottom: 8%; width: min(300px, 26vw); padding: 16px 18px; background: rgb(var(--night-ink-rgb) / .06); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.oo__boxlabel { font: 600 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.oo__box ul { list-style: none; margin: 10px 0 0; padding: 0; }
.oo__box li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.oo__tools { margin: 10px 0 0; font: 600 10px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.oo.is-static { height: auto; padding: 150px 0 80px; }
.oo.is-static .oo__title, .oo.is-static .oo__orbit { display: none; }
.oo.is-static .oo__deck { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.oo.is-static .ocard { position: relative; left: auto; top: auto; --ch: 420px; }
.oo.is-static .oo__label, .oo.is-static .oo__count, .oo.is-static .oo__side, .oo.is-static .oo__text, .oo.is-static .oo__box { position: static; margin: 20px var(--margin) 0; }

/* =========================================================
   PROJET - « Explore Places » (obsidianassembly.com)
   Collage, fenêtre qui s'ouvre en plein écran, visionneuse, arche.
   ========================================================= */
.works { padding: 0; overflow: hidden; }
.ep { position: relative; height: 100svh; overflow: hidden; }
.ep__head { position: absolute; z-index: 1; left: 0; right: 0; top: 12vh; text-align: center; pointer-events: none; }
.ep__head .eyebrow { display: block; margin-bottom: 18px; }
.ep__title { margin: 0; font: 300 clamp(56px, 10vw, 170px)/.9 var(--f-display); letter-spacing: -.06em; }
.ep__row { display: block; }
.ep__row + .ep__row { color: var(--ink-3); }
.ep__stairs { display: inline-block; margin: 16px 0 0 18vw; text-align: left; font: italic 400 clamp(15px, 1.25vw, 19px)/1.2 var(--f-body); color: var(--orange); }
.ep__stairs span { display: block; }
.ep__stairs span:nth-child(2) { padding-left: 2.2em; }
.ep__stairs span:nth-child(3) { padding-left: 1.1em; }
.ep__collage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ep__tile { position: absolute; margin: 0; overflow: hidden; background: var(--surface); will-change: transform; }
.ep__tile img { width: 100%; height: 100%; object-fit: cover; }
.ep__tile.is-light, .ep__slide.is-light { background: var(--cloud); }
.ep__tile.is-light img { object-fit: contain; padding: 14%; }
.ep__viewer { position: absolute; inset: 0; z-index: 3; will-change: clip-path; }
.ep__slides { position: absolute; inset: 0; cursor: pointer; }
.ep__slides::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgb(var(--shade-1-rgb) / .7), rgb(var(--shade-1-rgb) / 0) 45%), linear-gradient(90deg, rgb(var(--shade-1-rgb) / .62), rgb(var(--shade-1-rgb) / 0) 40%, rgb(var(--shade-1-rgb) / 0) 70%, rgb(var(--shade-1-rgb) / .5)); }
.ep__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; }
.ep__slide.is-on { visibility: visible; }
.ep__slide img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ep__slide.is-light img { object-fit: contain; padding: 14vh 20vw; }
.ep__ui { --arch: 0; position: absolute; inset: 0; z-index: 5; pointer-events: none; color: var(--white); }
.ep__ui > * { pointer-events: auto; }
.ep__name { position: absolute; left: 7vw; top: 50%; margin: 0; max-width: 34vw; transform: translate(calc(var(--arch) * 9vw), -50%);
  font: 300 clamp(28px, 3.6vw, 60px)/1.02 var(--f-display); letter-spacing: -.045em; text-shadow: 0 2px 30px rgb(var(--shade-1-rgb) / .5); }
.ep__name small { display: block; margin-top: 12px; font: 600 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.ep__count { position: absolute; right: 7vw; top: 50%; margin: 0; transform: translate(calc(var(--arch) * -9vw), -50%); font: 300 clamp(22px, 2.4vw, 38px) var(--f-display); color: rgb(var(--white-rgb) / .6); }
.ep__count b { color: var(--white); font-weight: 300; }
.ep__nav { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); display: flex; gap: 10px; }
.ep__arrow { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--white);
  background: rgb(var(--shade-1-rgb) / .55); border: 1px solid rgb(var(--white-rgb) / .25); backdrop-filter: blur(8px); transition: background .25s, color .25s, border-color .25s; }
.ep__arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--oxford); }
.ep__go { position: absolute; right: var(--margin); bottom: 7vh; opacity: calc(1 - var(--arch)); }
.ep:not(.is-live) .ep__ui > * { pointer-events: none; }
.ep.is-static { height: auto; min-height: 100svh; }
.ep.is-static .ep__collage { display: none; }

@media (max-width: 768px) {
  .oo { --ch: min(54vh, 112vw); }
  .oo__eyebrow { top: 84px; }
  .oo__side, .oo__text, .oo__box { display: none; }
  .oo__label { left: var(--margin); top: auto; bottom: 6%; }
  .oo__count { left: auto; right: var(--margin); top: auto; bottom: 6%; }
  .ep__head { top: 13vh; }
  .ep__stairs { margin-left: 30vw; }
  .ep__name { left: var(--margin); top: auto; bottom: 27vh; max-width: 70vw; transform: none; font-size: 28px; }
  .ep__count { right: var(--margin); top: auto; bottom: 27vh; transform: none; font-size: 20px; }
  .ep__nav { left: var(--margin); bottom: 9vh; transform: none; }
  .ep__arrow { width: 50px; height: 50px; }
  .ep__go { bottom: 9vh; }
  .ep__slide.is-light img { padding: 18vh 10vw; }
}

/* =========================================================
   v33 - Processus épuré, Projets flottants, Contact, signature
   ========================================================= */
.oo__orbit, .ocard__bar, .oo__box { display: none; }
/* le nom de l'étape reste à gauche de la carte, sans jamais la toucher */
.oo__label { left: auto; right: calc(50% + var(--cw) / 2 + 4vw); max-width: calc(50% - var(--cw) / 2 - 4vw - var(--margin)); text-align: right; }
.oo__count { left: calc(50% + var(--cw) / 2 + 4vw); }

/* collage : chaque image flotte dans son cadre */
.ep__tile { overflow: visible; background: none; pointer-events: auto; cursor: pointer; }
.ep__float { position: absolute; inset: 0; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -28px rgb(var(--shade-2-rgb) / .8); will-change: transform; transition: box-shadow .5s var(--ease-out); }
.ep__tile.is-light .ep__float { background: var(--cloud); }
.ep__tile img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; padding: 0; transition: opacity .5s var(--ease-out), filter .5s var(--ease-out); will-change: transform; }
.ep__tile.is-light img { object-fit: contain; padding: 18%; }
.ep__tile figcaption { position: absolute; left: 0; top: calc(100% + 10px); white-space: nowrap; font: 600 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.ep__tile figcaption b { color: var(--orange); font-weight: 600; margin-right: 8px; }
.ep__tile:hover figcaption { opacity: 1; transform: none; }
.ep__tile:hover .ep__float { box-shadow: 0 0 0 1px var(--orange), 0 40px 80px -30px rgb(var(--shade-2-rgb) / .9); }
.ep__collage:has(.ep__tile:hover) .ep__tile:not(:hover) img { opacity: .35; filter: grayscale(1); }
.ep__slides { will-change: transform; }
.ep.is-open .ep__tile { pointer-events: none; }

/* contact : texte à gauche, brief à droite, sur le bleu */
.contact { background: var(--bg); color: var(--ink); }
.contact .play__grid { align-items: start; }
.contact .play__head { grid-column: 1 / 6; display: block; margin: 0; }
.contact .play__head .h2 { margin: 18px 0 22px; font-weight: 300; }
.contact .play__head p { margin: 0; max-width: 34ch; }
.contact .brief { grid-column: 7 / -1; }

/* signature christian.k géante */
.footer__word { display: block; margin-top: clamp(50px, 7vw, 100px); }
.footer__wm { display: block; width: 100%; height: auto; overflow: visible; fill: var(--ink); }
.footer__wm .wm-letter path { transform-box: fill-box; transition: transform .5s var(--ease-out), fill .3s; }
.footer__wm .wm-letter:hover path { transform: translateY(-12%); fill: var(--orange); }
.footer__wm .wm-dot { fill: var(--orange); }

@media (max-width: 767px) {
  .oo__label { left: var(--margin); right: auto; max-width: 70vw; text-align: left; }
  .oo__count { left: auto; }
  .ep__tile figcaption { display: none; }
  .contact .play__head, .contact .brief { grid-column: 1 / -1; }
}

/* =========================================================
   v36 - Pied de page blanc, simple, tout aligné à gauche sur le logo de la nav
   ========================================================= */
.saut { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 12px 18px; border-radius: var(--r-pill); background: var(--white); color: var(--oxford); font: 500 15px var(--f-body); text-decoration: none; }
.saut:focus { top: 16px; outline: 2px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* =========================================================
   v37 - Une idée par écran · l'orange = l'action · accessible par défaut
   ========================================================= */
/* Repères : plus d'orange décoratif. Ciel sur le bleu, Oxford sur le blanc. */
.eyebrow { color: var(--sky); font-weight: 600; }
.theme-light .eyebrow { color: var(--oxford); }
.theme-light { --ink-3: rgb(var(--oxford-rgb) / .7); }
/* À propos : la fin de la phrase reste en Oxford, soulignée d'orange (16 : 1 au lieu de 2,3 : 1) */
.about__title .w.is-hl { color: var(--oxford); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .07em; text-underline-offset: .14em; }

/* Titres : une seule graisse Unbounded (400) */
.oo__title, .ep__title, .contact .play__head .h2 { font-weight: 400; }

/* Processus : la carte, un nom, une phrase */
.oo { --ch: min(50vh, 480px); }
.ocard { top: 45%; }
.ocard__art { padding: 10%; }
.gr-scribble { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 100; }
.gr-line { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.gr-end { fill: var(--white); }
.oo__side, .oo__text { display: none; }
.oo__label { left: 50%; right: auto; top: auto; bottom: 8vh; max-width: 90vw; transform: translateX(-50%); text-align: center; white-space: nowrap;
  font: 400 clamp(24px, 2.4vw, 36px)/1.05 var(--f-display); text-shadow: none; }
.oo__label small { margin-top: 12px; font: 400 17px/1.4 var(--f-body); color: var(--sky); }
.oo__count { left: auto; right: var(--margin); top: 96px; font: 400 20px var(--f-display); color: var(--ink-2); }
.oo__count b { color: var(--ink); font-weight: 400; }

/* Projets : petits textes plus lisibles, sans orange décoratif */
.ep__stairs { font-style: normal; color: var(--ink-2); }
.ep__name small { margin-top: 14px; font: 500 14px var(--f-body); letter-spacing: .02em; text-transform: none; color: var(--sky); }
.ep__tile figcaption { font: 500 13px var(--f-body); letter-spacing: .02em; text-transform: none; }
.ep__tile figcaption b { color: var(--sky); }

/* Formulaire : étiquettes lisibles (13 px, minuscules) */
.field span, .brief__chips legend { font: 500 13px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.brief > .eyebrow { font-size: 14px; }

/* Petits textes : 12-13 px minimum */
.hero__scroll { font-size: 12px; }
.pv__meta dt { font-size: 13px; letter-spacing: .04em; color: var(--sky); }

@media (max-width: 767px) {
  .oo { --ch: min(48vh, 420px); }
  .oo__label { left: 50%; right: auto; bottom: 7vh; text-align: center; max-width: 90vw; font-size: 24px; }
  .oo__count { left: auto; right: var(--margin); top: 84px; bottom: auto; font-size: 17px; }
  .hero__sign { font-size: 12px; }
}
.oo.is-static .oo__label, .oo.is-static .oo__count { position: static; transform: none; text-align: center; margin: 20px auto 0; }
/* Contact : même accent qu'À propos, texte clair souligné d'orange */
.contact .h2 em { color: inherit; font-style: normal; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .07em; text-underline-offset: .14em; }
.oo__title { top: 45%; }

/* =========================================================
   v41 - Processus : quatre cartes encadrées (sans numéros)
   ========================================================= */
.proc { padding: clamp(100px, 14vh, 160px) 0; }
.proc__head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 7vh, 80px); }
.proc__title { margin: 16px 0 14px; font: 400 clamp(32px, 4.4vw, 64px)/1.05 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.proc__sub { margin: 0; font-size: 17px; color: var(--ink-2); }
.proc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.pcard { --c: var(--line-2); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  min-height: clamp(340px, 46vh, 440px); padding: clamp(64px, 10vh, 104px) clamp(20px, 2.2vw, 36px) 40px; background: rgb(var(--night-ink-rgb) / .035);
  transition: background .5s var(--ease-out); }
.pcard__c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--c); transition: border-color .4s, transform .5s var(--ease-out); }
.pcard__c--tl { left: -10px; top: -10px; border-left-width: 1.5px; border-top-width: 1.5px; }
.pcard__c--tr { right: -10px; top: -10px; border-right-width: 1.5px; border-top-width: 1.5px; }
.pcard__c--bl { left: -10px; bottom: -10px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.pcard__c--br { right: -10px; bottom: -10px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.pcard__icon { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.pcard__title { margin: 34px 0 14px; font: 400 clamp(22px, 1.9vw, 30px)/1.1 var(--f-display); letter-spacing: -.02em; color: var(--ink); transition: color .4s; }
.pcard__text { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); transition: color .4s; }
/* carte active : l'orange marque l'étape en cours, puis le résultat */
.pcard.is-on { --c: var(--orange); background: rgb(var(--orange-rgb) / .07); }
.pcard.is-on .pcard__c--tl { transform: translate(-4px, -4px); }
.pcard.is-on .pcard__c--tr { transform: translate(4px, -4px); }
.pcard.is-on .pcard__c--bl { transform: translate(-4px, 4px); }
.pcard.is-on .pcard__c--br { transform: translate(4px, 4px); }
.pcard.is-on .pcard__icon { stroke: var(--orange); }
@keyframes pdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pcard.is-on .pcard__title { color: var(--orange); }
.pcard.is-on .pcard__text { color: var(--ink); }
@media (max-width: 1023px) { .proc__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 599px) {
  .proc__grid { grid-template-columns: 1fr; gap: 40px; padding: 0 10px; }
  .pcard { min-height: 0; padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) { .pcard.is-on .pcard__icon > * { animation: none; } }

/* =========================================================
   v42 - Site tout blanc · icônes animées · Projets en cartes · ancien footer
   ========================================================= */
.site-light { color-scheme: light; }
body::after { opacity: .035; }
.pill--light { background: var(--oxford); color: var(--white); }
.pill--light:hover { background: var(--orange); color: var(--oxford); }
/* le préchargement reste bleu : un écran de marque avant la page blanche */
.loader { --bg: var(--oxford); --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: var(--night-ink-3); --line-2: rgb(var(--sky-rgb) / .3); background: var(--oxford); color: var(--ink); }
/* hero sur blanc */
.hero { background: radial-gradient(55% 55% at 50% 42%, rgb(var(--azure-rgb) / .09), transparent 70%), var(--white); }
.hero__word { color: rgb(var(--oxford-rgb) / .06); -webkit-text-stroke: 1.5px rgb(var(--oxford-rgb) / .7); text-shadow: none; }
.hero__tagline .line--accent { color: var(--orange-ink); }
/* À propos : plus de soulignement */
.about__title .w.is-hl { text-decoration: none; }

/* Processus sur blanc */
.pcard { background: rgb(var(--oxford-rgb) / .035); }
.pcard.is-on { background: rgb(var(--orange-rgb) / .08); }
.pcard.is-on .pcard__title { color: var(--gold-5); } /* J6 : orange un peu plus foncé (contraste 4,5:1 sur la carte active) */
.pcard__icon { width: 42px; height: 42px; overflow: visible; }
.pcard.is-on .pcard__icon { stroke: var(--orange-ink); animation: preveal .9s var(--ease-out) both; }
@keyframes preveal { from { filter: blur(6px); opacity: .2; transform: scale(.7) rotate(-8deg); } to { filter: blur(0); opacity: 1; transform: none; } }
.pcard__icon * { transform-box: fill-box; transform-origin: 50% 50%; }
/* Préparation : une feuille sort du dossier et y retourne */
.pcard__icon .i-sheet { animation: isheet 2.6s ease-in-out infinite; }
@keyframes isheet { 0%, 100% { transform: translateY(2.2px); opacity: .35; } 50% { transform: translateY(-1.2px); opacity: 1; } }
/* Incubation : la lune se balance, deux étoiles scintillent */
.pcard__icon .i-moon { animation: imoon 4.5s ease-in-out infinite; }
@keyframes imoon { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
.pcard__icon .i-star { animation: itwinkle 2.4s ease-in-out infinite; }
.pcard__icon .i-star--b { animation-delay: -1.2s; }
@keyframes itwinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 45%, 55% { transform: scale(1) rotate(45deg); opacity: 1; } }
/* Illumination : les rayons s'allument tour à tour, l'ampoule respire */
.pcard__icon .i-rays path { animation: iray 2s ease-in-out infinite; }
.pcard__icon .i-rays path:nth-child(2) { animation-delay: .2s; } .pcard__icon .i-rays path:nth-child(3) { animation-delay: .4s; }
.pcard__icon .i-rays path:nth-child(4) { animation-delay: .6s; } .pcard__icon .i-rays path:nth-child(5) { animation-delay: .8s; }
@keyframes iray { 0%, 100% { opacity: .1; transform: scale(.4); } 40%, 60% { opacity: 1; transform: scale(1); } }
.pcard__icon .i-bulb { animation: ibulb 2s ease-in-out infinite; }
@keyframes ibulb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* Vérification : le cercle se trace, la coche suit, une étincelle brille, puis on recommence */
.pcard__icon .i-ring, .pcard__icon .i-check { stroke-dasharray: 1; }
.pcard__icon .i-ring { animation: iring 4.2s var(--ease-out) infinite; }
.pcard__icon .i-check { animation: icheck 4.2s var(--ease-out) infinite; }
.pcard__icon .i-spark { fill: var(--orange); stroke: none; animation: ispark 4.2s ease-in-out infinite; }
@keyframes iring { 0% { stroke-dashoffset: 1; opacity: 1; } 30%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes icheck { 0%, 28% { stroke-dashoffset: 1; opacity: 1; } 48%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ispark { 0%, 48% { transform: scale(0) rotate(0); } 58% { transform: scale(1.25) rotate(90deg); } 70%, 88% { transform: scale(1) rotate(90deg); } 100% { transform: scale(0) rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .pcard__icon *, .pcard.is-on .pcard__icon { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; } }

/* Projets : deux fenêtres par rangée, celle qu'on survole s'élargit */
.pj { padding: clamp(100px, 14vh, 160px) 0; background: var(--bg); }
.pj__head { text-align: center; max-width: 820px; margin: 0 auto clamp(44px, 6vh, 72px); }
.pj__title { margin: 16px 0 14px; font: 400 clamp(40px, 6vw, 96px)/1 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.pj__sub { margin: 0; font-size: 17px; color: var(--ink-2); }
.pj__rows { display: grid; gap: clamp(14px, 1.4vw, 20px); }
.pj__row { display: flex; gap: clamp(14px, 1.4vw, 20px); height: clamp(440px, 64vh, 600px); }
.pjc { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); cursor: pointer; isolation: isolate; transition: flex-grow .6s cubic-bezier(.65, 0, .35, 1); }
.pj__row:has(.pjc:hover) .pjc:hover, .pjc:focus-within { flex-grow: 2; }
.pjc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pjc.is-light img { object-fit: contain; padding: 7% 20% 48%; background: var(--cloud); }
.pjc:hover img { transform: scale(1.04); }
.pjc::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(var(--shade-3-rgb) / 0) 34%, rgb(var(--shade-3-rgb) / .9)); pointer-events: none; }
.pjc__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(22px, 2.4vw, 36px); color: var(--white); }
.pjc__title { margin: 0 0 8px; font: 400 clamp(26px, 2.6vw, 42px)/1.05 var(--f-display); letter-spacing: -.03em; color: var(--white); }
.pjc__meta { margin: 0 0 12px; font: 500 14px var(--f-body); color: rgb(var(--white-rgb) / .78); }
.pjc__text { margin: 0; max-width: 54ch; font-size: 15px; line-height: 1.55; color: rgb(var(--white-rgb) / .88); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pjc__btn { margin-top: 18px; background: var(--white); color: var(--oxford); }
.pjc__btn:hover { background: var(--orange); }
@media (max-width: 767px) {
  .pj__row { flex-direction: column; height: auto; gap: 24px; }
  .pj__rows { gap: 24px; } /* J6 : plus d'air entre les cartes sur téléphone */
  .pjc { flex: none; height: min(500px, 128vw); }
  .pjc.is-light img { padding: 8% 22% 64%; }
  .pjc__text { -webkit-line-clamp: 3; }
}

/* ancien pied de page, sur blanc */
.footer { background: var(--bg); }
.footer__label { color: var(--orange-ink); }
.footer__wm { fill: var(--oxford); }
.pv__bar { background: linear-gradient(180deg, rgb(var(--white-rgb) / .96) 55%, rgb(var(--white-rgb) / 0)); }
.pv { background: radial-gradient(60% 40% at 80% 0%, rgb(var(--orange-rgb) / .07), transparent 70%), var(--white); }

/* =========================================================
   v43 - Rythme de marque : Oxford, papier, blanc, orange · hero vivant · preuves
   ========================================================= */
/* sections en bleu Oxford (hero, projets, footer) */
.theme-dark {
  --bg: var(--oxford); --bg-2: var(--night-bg-2); --surface: var(--night-surface);
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: var(--night-ink-3);
  --line: rgb(var(--sky-rgb) / .14); --line-2: rgb(var(--sky-rgb) / .3); --faint: rgb(var(--night-ink-rgb) / .14);
  background: var(--bg); color: var(--ink);
}
.theme-dark .eyebrow { color: var(--sky); }
.theme-dark .pill--light { background: var(--night-ink); color: var(--oxford); }
.theme-dark .pill--light:hover { background: var(--orange); }
/* À propos sur papier */
.theme-paper { --bg: var(--paper); --bg-2: var(--paper-2); --surface: var(--paper-3); background: var(--bg); }
/* Contact en orange : l'action principale prend la couleur de l'action */
.theme-orange {
  --bg: var(--orange); --ink: var(--oxford); --ink-2: rgb(var(--oxford-rgb) / .82); --ink-3: rgb(var(--oxford-rgb) / .75);
  --line: rgb(var(--oxford-rgb) / .18); --line-2: rgb(var(--oxford-rgb) / .32);
  background: var(--bg); color: var(--ink);
}
.theme-orange .eyebrow { color: var(--oxford); }
.contact.theme-orange .h2 { font-size: clamp(40px, 6vw, 92px); line-height: 1; }
.contact.theme-orange .h2 em { text-decoration-color: var(--oxford); }
.theme-orange .brief { --bg: var(--cloud); --ink: var(--oxford); background: var(--white); border-color: transparent; box-shadow: 0 40px 80px -40px rgb(var(--oxford-rgb) / .45); }
.theme-orange .brief .pill--light { background: var(--oxford); color: var(--white); }
.theme-orange .brief .pill--light:hover { background: var(--orange); color: var(--oxford); }
.theme-orange .brief__status[data-tone="ok"] { color: var(--success); }
/* nav : bleu sur les sections claires, blanche sur le bleu, sans voile sur l'orange */
.nav-orange .nav::before { opacity: 0; }
/* hero de nouveau sur Oxford */
.hero.theme-dark { background: radial-gradient(55% 55% at 50% 42%, rgb(var(--azure-rgb) / .2), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero.theme-dark .hero__word { color: rgb(var(--night-ink-rgb) / .22); -webkit-text-stroke: 1.5px rgb(var(--night-ink-rgb) / .85); text-shadow: 0 0 40px rgb(var(--sky-rgb) / .35); }
.hero.theme-dark .hero__tagline .line--accent { color: var(--orange); }
/* hero vivant : contours et repères dans la loupe */
.hero__brand .hb-x { fill: none; stroke: var(--orange); stroke-width: .45; }
.hero__brand .hb-guides { fill: none; stroke: var(--sky); stroke-width: .3; }
.hero__brand .hb-guides .dash { stroke-dasharray: 2 2; }
.hero__brand .hb-guides .anchor { fill: var(--oxford); stroke: var(--orange); stroke-width: .4; }
.hero__brand .hb-guides text { fill: var(--sky); stroke: none; font: 500 4px var(--f-body); }
.hero__brand .hb-ring { fill: none; stroke: var(--sky); stroke-width: .45; stroke-dasharray: 1.5 1.5; pointer-events: none; }
.hero { cursor: crosshair; }
/* bande orange */
.band { position: relative; z-index: 2; overflow: hidden; background: var(--orange); color: var(--oxford); padding: clamp(16px, 2vw, 26px) 0; }
.band__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); width: max-content; animation: bandmove 36s linear infinite;
  font: 400 clamp(24px, 3.4vw, 52px)/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.band__track svg { height: .62em; width: auto; fill: var(--oxford); flex: none; }
@keyframes bandmove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }
/* chiffres d'À propos */
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(36px, 4vw, 56px) 0 0; border-top: 1px solid var(--line-2); }
.about__stats div { padding: 22px 20px 0 0; }
.about__stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.about__stats dd { margin: 0; }
.about__stats b { display: block; font: 400 clamp(48px, 6vw, 92px)/1 var(--f-display); letter-spacing: -.05em; color: var(--oxford); }
.about__stats b::after { content: "."; color: var(--orange); }
.about__stats span { display: block; margin-top: 10px; max-width: 22ch; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 767px) {
  .about__stats { grid-template-columns: 1fr; }
  .about__stats div, .about__stats div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
  .about__stats span { margin: 0; }
}
/* projets et footer sur Oxford */
.pj.theme-dark .pj__title { color: var(--ink); }
.footer.theme-dark .footer__label { color: var(--orange); }
.footer.theme-dark .footer__wm { fill: var(--ink); }
body:not(.nav-white):not(.menu-open) .nav .pill--light { background: var(--night-ink); color: var(--oxford); }
body:not(.nav-white):not(.menu-open) .nav .pill--light:hover { background: var(--orange); }
body:not(.nav-white):not(.menu-open) .nav .pill--dark { background: var(--night-surface); color: var(--night-ink); border-color: rgb(var(--sky-rgb) / .3); }
/* curseur visible sur l orange */
body:has(.theme-orange:hover, .band:hover) .cursor { background: var(--oxford); }
body:has(.theme-orange:hover, .band:hover) .cursor__label { color: var(--white); }
.nav-white .nav::before { background: linear-gradient(180deg, var(--nav-veil, rgb(var(--white-rgb) / .96)) 55%, rgb(var(--white-rgb) / 0)); }

/* =========================================================
   v44 - K qui tombent · projets sur papier froissé · contact blanc · titres du flou
   ========================================================= */
/* hero : la pluie de K, derrière le logo et le texte */
.hero__drops { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__drop { position: absolute; left: 0; top: 0; will-change: transform; }
.hero__drop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero__drop.is-ink path { fill: var(--night-ink); }
.hero__drop.is-sky path { fill: var(--sky); }
.hero__drop.is-orange path { fill: var(--orange); }
.hero__drop.is-line path { fill: none; stroke: var(--night-ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hero__brandwrap, .hero__tagline { z-index: 2; }
.hero__sign { z-index: 3; }
/* le curseur orange n'apparaît pas dans le hero (la loupe suffit) */
body:has(.hero:hover) .cursor { opacity: 0 !important; }
.hero .hb-x { display: none; }

/* projets : fond de papier froissé, très atténué, pour laisser la vedette aux projets */
.pj.theme-dark { position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgb(var(--oxford-rgb) / .80), rgb(var(--oxford-rgb) / .88)), url("../projets/papier-froisse.webp") center / cover no-repeat, var(--oxford); }

/* contact : fond blanc, carte du brief en bleu, bouton clair (l'inverse d'avant) */
.contact .brief.theme-dark { --bg: rgb(var(--night-ink-rgb) / .07); background: var(--oxford); border-color: transparent; box-shadow: 0 40px 80px -40px rgb(var(--oxford-rgb) / .55); }
.contact .brief.theme-dark .field input, .contact .brief.theme-dark .field textarea { color: var(--night-ink); }
.contact .brief.theme-dark ::placeholder { color: rgb(var(--night-ink-rgb) / .55); }
.contact .brief.theme-dark .pill--light { background: var(--white); color: var(--oxford); }
.contact .brief.theme-dark .pill--light:hover { background: var(--orange); }
/* « Parlons de votre projet. » : une seule typo, sans soulignement */
.contact .h2 em { font-family: inherit; font-weight: inherit; font-style: normal; letter-spacing: inherit; color: inherit; text-decoration: none; }

/* titres révélés du flou */
.js-reveal-blur .w { display: inline-block; will-change: filter, opacity, transform; }

/* =========================================================
   v45 - Bouton du son · projets en deux rangées de trois
   ========================================================= */
.hero__sound { position: absolute; z-index: 5; left: var(--margin); bottom: 26px; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 10px; border-radius: var(--r-pill); border: 1px solid rgb(var(--sky-rgb) / .3); background: rgb(var(--oxford-rgb) / .55);
  color: var(--night-ink); font: 500 13px var(--f-body); backdrop-filter: blur(6px); transition: border-color .3s, background .3s; }
.hero__sound:hover { border-color: var(--orange); }
.hero__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero__sound .s-body { fill: currentColor; stroke: none; }
.hero__sound .s-wave { opacity: 0; }
.hero__sound.is-on .s-off { opacity: 0; }
.hero__sound.is-on .s-wave { opacity: 1; animation: swave 1.4s ease-in-out infinite; }
.hero__sound.is-on .s-wave--2 { animation-delay: .2s; }
.hero__sound.is-on { border-color: var(--orange); }
@keyframes swave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* J6 : hauteur fixe seulement sur les écrans larges. Sur téléphone, les cartes s'empilent
   et la rangée doit prendre leur hauteur (sinon elles débordent sur la suite de la page). */
@media (min-width: 768px) { .pj__row { height: clamp(420px, 58vh, 540px); } }
.pj__row:has(.pjc:hover) .pjc:hover, .pjc:focus-within { flex-grow: 1.8; }
.pjc__title { font-size: clamp(22px, 2vw, 34px); }
@media (max-width: 1023px) and (min-width: 768px) { .pjc__text { -webkit-line-clamp: 2; } }
@media (prefers-reduced-motion: reduce) { .hero__sound { display: none; } }

/* =========================================================
   v46 - Sans loupe ni curseur · le fond glisse · plus de K
   ========================================================= */
.cursor, .preview, .hero__sound { display: none !important; }
.hero { cursor: auto; }
.hero__brand .hb-guides, .hero__brand .hb-ring { display: none; }
/* le texte reste lisible quand les K s'empilent derrière */
.hero__tagline, .hero__sign { text-shadow: 0 2px 22px rgb(var(--oxford-rgb) / .95), 0 0 6px rgb(var(--oxford-rgb) / .8); }
/* le fond est porté par la page : les sections deviennent transparentes */
.site-glide main > section, .site-glide .footer { background: transparent !important; }
.site-glide .hero.theme-dark { background: radial-gradient(55% 55% at 50% 42%, rgb(var(--azure-rgb) / .2), transparent 70%) !important; }
.site-glide .pj.theme-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../projets/papier-froisse.webp") center / cover no-repeat; opacity: .16; mix-blend-mode: luminosity; }

/* =========================================================
   v47 - Écran « Entrer » · sections séparées · sans « Défiler »
   ========================================================= */
.hero__scroll { display: none !important; }
.enter { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; color: var(--night-ink);
  background: radial-gradient(55% 55% at 50% 45%, rgb(var(--azure-rgb) / .22), transparent 70%), var(--oxford); }
.enter__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.enter__k { width: 64px; height: auto; animation: enterfloat 3.2s ease-in-out infinite; }
@keyframes enterfloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.enter__name { margin: 22px 0 34px; font: 400 clamp(24px, 3vw, 36px)/1 var(--f-display); letter-spacing: -.03em; }
.enter__btn { display: inline-flex; align-items: center; gap: 14px; height: 60px; padding: 0 10px 0 30px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--white); color: var(--oxford); font: 400 20px var(--f-display); letter-spacing: -.02em; transition: background .3s, transform .3s var(--ease-out); }
.enter__btn i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: var(--oxford); font-style: normal; font-size: 16px; transition: transform .4s var(--ease-out); }
.enter__btn:hover { background: var(--orange); transform: scale(1.03); }
.enter__btn:hover i { background: var(--oxford); color: var(--orange); transform: rotate(45deg); }
.enter__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.enter__note { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; font: 500 13px var(--f-body); color: var(--sky); }
.enter__note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.enter__note svg path:first-child { fill: currentColor; stroke: none; }
.enter__note .w { animation: swave 1.4s ease-in-out infinite; }
.enter__foot { position: absolute; bottom: 24px; left: 0; right: 0; margin: 0; text-align: center; font: 500 12px var(--f-body); color: var(--night-ink-2); }
@media (prefers-reduced-motion: reduce) { .enter__k, .enter__note .w { animation: none; } }

/* Texte d'étape mis en forme depuis le CMS (intertitres, listes, liens) */
.pv__stephead .pv__texte { color: var(--ink-2); max-width: 46ch; }
.pv__texte > * { margin: 0; }
.pv__texte > * + * { margin-top: .7em; }
.pv__texte h4 { font: 600 17px/1.3 var(--f-body); color: var(--ink); }
.pv__texte ul { padding-left: 1.2em; }
.pv__texte a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pv__texte a:hover { color: var(--orange-ink); }

/* Bouton de langue FR / EN dans la navigation (J5) */
.nav__lang { height: 44px; padding: 0 16px; font: 600 12px/1 var(--f-body); letter-spacing: .06em; }
/* J6 : fond plein comme le bouton Menu, pour rester lisible sur les sections blanches (contraste) */
.nav .nav__lang { color: var(--night-ink); background: var(--night-surface); border-color: rgb(var(--sky-rgb) / .35); }
.nav .nav__lang:hover { color: var(--orange); border-color: var(--orange); }
@media (max-width: 767px) { .nav__lang { height: 40px; padding: 0 12px; } }

/* J6 (WCAG 2.2.2) : animations en boucle arrêtées après quelques secondes */
.footer.is-repos .footer__top svg, .enter.is-repos .enter__k, .enter.is-repos .enter__note .w { animation-play-state: paused; }
.footer.is-repos .footer__status i { animation: none; }
/* icônes du processus : seulement sur l'étape active, 1 ou 2 tours (environ 5 s), puis l'icône reste entière */
.pcard:not(.is-on) .pcard__icon * { animation: none; }
.pcard.is-on .pcard__icon .i-sheet, .pcard.is-on .pcard__icon .i-star, .pcard.is-on .pcard__icon .i-rays path, .pcard.is-on .pcard__icon .i-bulb { animation-iteration-count: 2; }
.pcard.is-on .pcard__icon .i-moon, .pcard.is-on .pcard__icon .i-ring, .pcard.is-on .pcard__icon .i-check, .pcard.is-on .pcard__icon .i-spark { animation-iteration-count: 1; }
