/* ISOTROPE 2027 — prototype « montage ».
   Graphite, blanc chaud, or fonctionnel. Archivo variable (titres), Geist (texte), Geist Mono (métadonnées).
   Deux cultures en une interface : le timecode du monteur, les repères du graphiste. */
:root {
  --bg: #0d0e0f;
  --bg-2: #151618;
  --bg-3: #1c1d20;
  --ink: #ece8e1;
  --ink-2: #c9c5bd;
  --mute: #9b988f;
  --dim: #7d7a74;
  --line: rgba(236, 232, 225, .12);
  --line-2: rgba(236, 232, 225, .22);
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, .14);
  --hh: 86px;
  --ph: 64px;
  --gut: clamp(16px, 3vw, 44px);
  --display: 'Archivo', 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --cut: cubic-bezier(.7, 0, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-style: normal; color: var(--mute); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
kbd { font: 500 10px/1 var(--mono); border: 1px solid var(--line-2); border-radius: 3px; padding: 3px 5px; margin: 0 1px; color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ═════════ Chrome persistant ═════════ */
.chrome {
  position: fixed; inset: 0 0 auto 0; height: var(--hh); z-index: 20;
  display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 var(--gut);
  border-bottom: 1px solid var(--line); background: rgba(13, 14, 15, .86); backdrop-filter: blur(12px); view-transition-name: chrome;
}
.brand { display: flex; align-items: center; gap: 18px; justify-self: start; }
.brand-txt { display: flex; flex-direction: column; gap: 6px; line-height: 1; padding-left: 18px; border-left: 1px solid var(--line-2); }
.brand-txt b { display: block; font: 600 16px var(--display); letter-spacing: .34em; font-variation-settings: 'wdth' 112; text-transform: uppercase; color: var(--ink); }
.brand-txt i { font-style: normal; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.brand-sym { width: 60px; height: 60px; flex: none; fill: var(--ink); transition: fill .3s, transform .8s var(--out); }
.brand:hover .brand-sym { fill: var(--gold); transform: rotate(-60deg); }
.ctrls { justify-self: end; display: flex; align-items: center; gap: 6px; color: var(--mute); }
.tc { color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .06em; font-size: 12px; margin-right: 12px; }
.ctrls button { height: 30px; min-width: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); color: var(--mute); transition: color .2s, border-color .2s; }
.ctrls button:hover { color: var(--ink); border-color: var(--line-2); }
.ctrls button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq u { width: 2px; height: 3px; background: currentColor; }
[aria-pressed="true"] .eq u { animation: eq .9s ease-in-out infinite alternate; }
[aria-pressed="true"] .eq u:nth-child(2) { animation-delay: -.3s; } [aria-pressed="true"] .eq u:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { to { height: 10px; } }

/* ═════════ Moniteur persistant (reel d'ouverture) ═════════ */
#monitor { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity .5s var(--out), filter .5s var(--out); pointer-events: none; view-transition-name: monitor; background-color: #000; }
/* Fondu entre 1-2 images (jamais le carton-titre) pendant que la vraie vidéo charge, sans jamais d'écran noir. */
.hf { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; filter: saturate(.55) brightness(.62); transition: opacity 1.1s var(--out), filter 1.1s var(--out); }
.hf.is-on { opacity: 1; animation: hf-punch 1.1s var(--out); }
@keyframes hf-punch { from { filter: saturate(.15) brightness(1.3) contrast(1.4); transform: scale(1.045); } to { filter: saturate(.55) brightness(.62); transform: scale(1); } }
#monitor iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%) scale(1.32); border: 0; opacity: 0; transition: opacity .5s; z-index: 1; }
#monitor iframe.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hf.is-on { animation: none; } .hf { transition: opacity .4s; } }
#monitor::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(13, 14, 15, .84) 38%, rgba(13, 14, 15, .25) 75%, rgba(13, 14, 15, .55) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%, transparent 75%, var(--bg) 100%); }
html[data-group="ouverture"] #monitor { opacity: .36; }
html[data-group="films"] #monitor, html[data-group="studio"] #monitor, html[data-group="avec"] #monitor,
html[data-group="atelier"] #monitor, html[data-group="contact"] #monitor { opacity: .08; filter: blur(16px) saturate(.4); }

/* ═════════ Plan ═════════ */
#plan { position: fixed; inset: var(--hh) 0 var(--ph) 0; z-index: 2; overflow: auto; overscroll-behavior: contain; view-transition-name: plan; scrollbar-width: thin; scrollbar-color: var(--dim) transparent; }
#plan > section { min-height: 100%; padding: clamp(20px, 4vh, 44px) var(--gut); }
/* Traits de coupe aux quatre coins */
.marks { position: fixed; inset: calc(var(--hh) + 9px) 9px calc(var(--ph) + 9px); z-index: 3; pointer-events: none; view-transition-name: marks; }
.marks i { position: absolute; width: 14px; height: 14px; }
.marks i::before, .marks i::after { content: ''; position: absolute; background: var(--dim); }
.marks i::before { width: 14px; height: 1px; } .marks i::after { width: 1px; height: 14px; }
.marks i:nth-child(1) { top: 0; left: 0; } .marks i:nth-child(2) { top: 0; right: 0; } .marks i:nth-child(3) { bottom: 0; left: 0; } .marks i:nth-child(4) { bottom: 0; right: 0; }
.marks i:nth-child(2)::before, .marks i:nth-child(2)::after, .marks i:nth-child(4)::before, .marks i:nth-child(4)::after { right: 0; }
.marks i:nth-child(3)::before, .marks i:nth-child(3)::after, .marks i:nth-child(4)::before, .marks i:nth-child(4)::after { bottom: 0; }

/* ═════════ Piste (navigation timeline) ═════════ */
.piste {
  position: fixed; inset: auto 0 0 0; height: var(--ph); z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 0 var(--gut); border-top: 1px solid var(--line); background: var(--bg); view-transition-name: piste;
}
.step { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; color: var(--mute); border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
a.step:hover { color: var(--bg); background: var(--gold); border-color: var(--gold); }
span.step { border-color: transparent; }
.track { position: relative; flex: 1; display: flex; gap: 2px; height: 34px; }
.clip {
  position: relative; min-width: 0; display: flex; align-items: center; padding: 0 9px; overflow: hidden;
  background: var(--bg-2); color: var(--mute); border-top: 2px solid var(--bg-3);
  font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--out), box-shadow .25s var(--out);
}
.clip span { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; }
.clip.g-projet { justify-content: center; padding: 0; background: #111214; font-size: 9px; color: var(--dim); }
.clip.grp-start::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-2); z-index: 2; }
.clip-wave { position: absolute; inset: 5px 7px; width: calc(100% - 14px); height: calc(100% - 10px); opacity: .22; pointer-events: none; transition: opacity .25s; }
.clip-wave rect { fill: var(--dim); }
.clip:hover .clip-wave { opacity: .5; }
.clip:hover .clip-wave rect, .clip.is-on .clip-wave rect { fill: var(--gold); }
.clip.is-on .clip-wave { opacity: .6; }
.clip:hover { background: var(--bg-3); color: var(--ink); border-top-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); z-index: 3; }
.clip.is-on { color: var(--ink); background: var(--bg-3); border-top-color: var(--gold); }
.clip.g-projet.is-on { color: var(--gold); }
.playhead { position: absolute; top: -12px; bottom: -6px; left: calc(var(--x) * 100%); width: 1px; background: var(--gold); transition: left .7s var(--cut); pointer-events: none; z-index: 2; }
.playhead::before { content: ''; position: absolute; top: 0; left: -5px; border: 5px solid transparent; border-top: 6px solid var(--gold); }
/* Curseur de survol : timecode en direct, comme un scrub de poste de montage */
.scrub { position: absolute; top: -22px; width: 1px; height: calc(100% + 22px); background: var(--line-2); pointer-events: none; z-index: 4; transform: translateX(-50%); }
.scrub[hidden] { display: none; }
.scrub b { position: absolute; top: 0; left: 50%; transform: translate(-50%, -100%); white-space: nowrap; font-size: 9px; color: var(--mute); background: var(--bg); padding: 2px 5px; border: 1px solid var(--line-2); }
/* Aperçu au survol d'un clip de film */
.peek { position: absolute; bottom: calc(100% + 14px); width: 220px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 6px; pointer-events: none; z-index: 5; transform: translateX(-50%); transition: opacity .2s, transform .2s var(--out); }
.peek[hidden] { display: none; }
.peek:not([hidden]) { animation: peek-in .25s var(--out) backwards; }
@keyframes peek-in { from { opacity: 0; transform: translateX(-50%) translateY(6px); } }
.peek img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.peek b { display: block; margin-top: 7px; font: 600 12px var(--display); text-transform: uppercase; letter-spacing: .03em; font-variation-settings: 'wdth' 85; }
.peek i { display: block; font: 400 11px var(--sans); color: var(--mute); font-style: normal; }

/* ═════════ Boutons ═════════ */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px; border: 1px solid var(--ink); font-size: 13px; letter-spacing: .04em; transition: background .25s, color .25s, border-color .25s; }
.btn span { transition: transform .35s var(--out); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:hover span { transform: translateX(4px); }
.btn.ghost { border-color: var(--line-2); color: var(--mute); }
.btn.ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ═════════ 01 Ouverture ═════════ */
.p-open { display: grid; align-content: center; gap: 22px; position: relative; padding-bottom: 80px !important; }
.open-mark { position: absolute; right: calc(var(--gut) - 3vw); top: 50%; width: min(40vw, 64vh); aspect-ratio: 1; translate: 0 -54%; pointer-events: none; }
.sym-draw, .sym-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.sym-draw path { fill: rgba(236, 232, 225, .05); stroke: var(--gold); stroke-width: 2; }
.fx-on .sym-draw { display: none; }
.open-title { position: relative; z-index: 1; display: flex; font-family: var(--display); font-weight: normal; font-size: clamp(64px, 16.5vw, 300px); line-height: .8; letter-spacing: -.015em; margin-left: -.04em; cursor: default; }
.open-title span { position: relative; display: inline-block; font-variation-settings: 'wdth' var(--w, 100), 'wght' var(--g, 240); transition: font-variation-settings .6s var(--out); }
/* Glitch : décalage de tranches + séparation, comme une image qui saute dans la timeline */
.open-title span::before, .open-title span::after { content: attr(data-ch); position: absolute; inset: 0; opacity: 0; pointer-events: none; font-variation-settings: inherit; }
.open-title span::before { color: var(--gold); clip-path: inset(var(--a, 20%) 0 var(--b, 60%) 0); transform: translateX(var(--dx, 6px)); }
.open-title span::after { color: #f3dfae; mix-blend-mode: screen; clip-path: inset(var(--b, 55%) 0 var(--a, 25%) 0); transform: translateX(calc(var(--dx, 6px) * -1)); }
.open-title span.g { color: transparent; }
.open-title span.g::before, .open-title span.g::after { opacity: .95; }
.open-title span.g { text-shadow: calc(var(--dx, 6px) * .4) 0 var(--ink); }
.is-fresh .open-title span { animation: rise .9s var(--out) calc(.5s + var(--k) * 55ms) backwards, fvs-in 2s var(--cut) calc(.5s + var(--k) * 55ms) backwards; }
@keyframes fvs-in { from { font-variation-settings: 'wdth' 62, 'wght' 850; } }
.open-line { position: relative; z-index: 1; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.2; max-width: 24ch; letter-spacing: -.01em; }
.open-line-main { display: inline-block; max-width: none; }
@media (min-width: 480px) { .open-line-main { white-space: nowrap; } }
.open-sub { position: relative; z-index: 1; color: var(--mute); max-width: 46ch; }
.open-cta { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.is-fresh .open-line, .is-fresh .open-sub, .is-fresh .open-cta { animation: rise .9s var(--out) 1.3s backwards; }
.ticker { position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; display: flex; align-items: center; gap: 22px; height: 44px; }
.ticker > .mono { color: var(--dim); flex: none; }
.tk { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tk-track { display: flex; align-items: center; width: max-content; animation: tk 70s linear infinite; }
.tk-track img { height: 30px; width: auto; margin-right: 72px; opacity: .45; transition: opacity .4s; }
.ticker:hover .tk-track { animation-play-state: paused; }
.ticker:hover img { opacity: .9; }
@keyframes tk { to { transform: translateX(-50%); } }

/* ═════════ 02 Films / chutier ═════════ */
.p-films { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.bin-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.bin-head h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 4vw, 60px); font-variation-settings: 'wdth' 68, 'wght' 640; line-height: .9; display: flex; align-items: baseline; gap: 16px; }
.bin-head h1 .mono { color: var(--mute); font-variation-settings: normal; }
.bin-note { color: var(--mute); font-size: 13px; max-width: 64ch; margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 7px 11px; border: 1px solid var(--line); color: var(--mute); font: inherit; letter-spacing: inherit; transition: all .2s; }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.is-on { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.bin { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; min-height: 0; }
.bin li { min-height: 0; }
.bin li:first-child { grid-column: span 2; grid-row: span 2; }
.card { display: flex; flex-direction: column; gap: 8px; height: 100%; transition: opacity .4s, filter .4s; }
.card .thumb { position: relative; flex: 1; min-height: 70px; overflow: hidden; background: #000; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out), filter .6s; filter: saturate(.8) brightness(.82); }
.card:hover img { transform: scale(1.05); filter: none; }
.card .thumb::after { content: ''; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s; }
.card:hover .thumb::after { border-color: var(--gold); }
.tcin, .kind { position: absolute; top: 8px; background: rgba(13, 14, 15, .75); padding: 4px 6px; font-size: 9.5px; }
.tcin { left: 8px; color: var(--gold); }
.kind { right: 8px; color: var(--ink); }
.meta { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; }
.meta b { font-family: var(--display); text-transform: uppercase; font-size: 14px; letter-spacing: .02em; font-variation-settings: 'wdth' 82, 'wght' 600; transition: font-variation-settings .5s var(--out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bin li:first-child .meta b { font-size: 20px; }
.card:hover .meta b { font-variation-settings: 'wdth' 108, 'wght' 520; }
.meta i { font-style: normal; color: var(--mute); font-size: 12px; grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 3px; align-self: center; }
.dots u { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--dim); }
.dots u.on { background: var(--gold); border-color: var(--gold); }
.card.is-out { opacity: .15; filter: grayscale(1); pointer-events: none; }
.card.cta { justify-content: center; align-items: flex-start; gap: 6px; padding: 16px; border: 1px dashed var(--line-2); transition: border-color .3s, background .3s; }
.card.cta .mono { color: var(--dim); }
.card.cta b { font: 600 22px var(--display); text-transform: uppercase; font-variation-settings: 'wdth' 75; }
.card.cta i { font-style: normal; color: var(--gold); }
.card.cta:hover { border-color: var(--gold); background: var(--gold-soft); }
.is-fresh .bin li { animation: rise .7s var(--out) backwards; animation-delay: calc(var(--k, 11) * 45ms + 60ms); }

/* ═════════ 03 Projet ═════════ */
.p-proj { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 420px); grid-template-rows: 1fr auto; gap: 16px clamp(20px, 3vw, 48px); }
.media { position: relative; align-self: center; aspect-ratio: 16/9; width: 100%; max-height: calc(100vh - var(--hh) - var(--ph) - 110px); background: #000; overflow: hidden; }
.media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s .3s; }
.media .frame { position: absolute; inset: 0; background: #000; }
.media .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity .6s; }
.media .frame iframe.is-ready { opacity: 1; }
.media.is-live .poster { opacity: 0; }
.play { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: rgba(13, 14, 15, .8); backdrop-filter: blur(6px); border: 1px solid var(--line-2); transition: border-color .2s, opacity .3s, background .2s; }
.play b { color: var(--gold); }
.play:hover { border-color: var(--gold); background: rgba(13, 14, 15, .95); }
.media.is-playing .play { opacity: 0; pointer-events: none; }
.fiche { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px; align-self: center; }
.kick { color: var(--gold); }
.fiche h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 3.8vw, 60px); line-height: .9; letter-spacing: .005em; font-variation-settings: 'wdth' 70, 'wght' 640; transition: font-variation-settings .8s var(--out); }
.fiche:hover h1 { font-variation-settings: 'wdth' 84, 'wght' 560; }
.fiche h1 span { display: block; margin-top: 10px; font: 400 .4em var(--sans); text-transform: none; color: var(--mute); font-variation-settings: normal; letter-spacing: 0; }
.pitch { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.fiche dl { border-top: 1px solid var(--line); }
.fiche dl div { display: grid; grid-template-columns: 10ch 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fiche dt { color: var(--mute); font-size: 9.5px; }
.fiche dd { font-size: 14px; }
.prevnext { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--mute); }
.prevnext a { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 0; transition: color .2s; }
.prevnext a:hover { color: var(--gold); }
.is-fresh .fiche > * { animation: rise .8s var(--out) backwards; }
.is-fresh .fiche > :nth-child(2) { animation-delay: .05s } .is-fresh .fiche > :nth-child(3) { animation-delay: .1s }
.is-fresh .fiche > :nth-child(4) { animation-delay: .15s }
/* Rampe de faders : chaque direction est un canal de console, allumé s'il sert sur ce projet. */
/* Cadran des directions : le symbole du studio, et une graduation par direction (allumée si active). */
.dial-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.dial { position: relative; display: inline-block; width: 132px; height: 132px; cursor: default; }
.dial-mark { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56%; height: 56%; transition: opacity .4s; }
.dial-mark path { fill: var(--ink); opacity: .92; }
.dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ring { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; transition: stroke .4s; pointer-events: none; }
.dial:hover .dial-ring { stroke: var(--dim); animation: dial-spin 18s linear infinite; }
@keyframes dial-spin { to { transform: rotate(360deg); } }
/* Terme au survol d'un point du cadran : texte flottant sans bulle, pas de carton (initDials() dans app.js). */
.dial-tip {
  position: absolute; z-index: 6; pointer-events: none; font: 600 11px var(--mono); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 6px rgba(0, 0, 0, .85); white-space: nowrap;
  translate: -50% -100%; opacity: 0; transition: opacity .2s;
}
.dial-tip:not([hidden]) { opacity: 1; }
.dial-tip.is-on { color: var(--gold); }
.tick { transition: transform .3s var(--out), opacity .3s; transform-origin: 0 0; cursor: pointer; }
.tick line { stroke: var(--dim); stroke-width: 1.2; transition: stroke .2s; }
.tick circle:not(.hit) { fill: var(--dim); transition: fill .2s; }
.tick circle.hit { pointer-events: fill; }
.tick text { fill: var(--dim); font: 500 9.5px var(--mono); letter-spacing: .06em; transition: font-size .2s; }
.tick:hover line { stroke: var(--ink-2); }
.tick:hover circle:not(.hit) { fill: var(--ink-2); }
.tick:hover { transform: scale(1.18); }
/* Le cadran répond comme un seul système : viser un point éteint les autres. */
.dial-ticks:hover .tick:not(:hover) { opacity: .3; }
.tick.on line { stroke: var(--gold); stroke-width: 1.6; }
.tick.on circle:not(.hit) { fill: var(--gold); filter: drop-shadow(0 0 3px rgba(201, 164, 92, .85)); animation: tick-pulse 2.6s ease-in-out infinite; }
.tick.on text { fill: var(--gold); font-weight: 600; }
.tick.on:hover line, .tick.on:hover circle:not(.hit) { stroke: var(--gold); fill: var(--gold); }
.tick.on:hover text { font-size: 10px; }
@keyframes tick-pulse { 0%, 100% { filter: drop-shadow(0 0 3px rgba(201, 164, 92, .85)); } 50% { filter: drop-shadow(0 0 6px rgba(201, 164, 92, 1)); } }
.is-fresh .tick.on line { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw .55s var(--cut) backwards; animation-delay: calc(.3s + var(--i) * 80ms); }
.is-fresh .tick.on text, .is-fresh .tick.on circle:not(.hit) { animation: rise .5s var(--out) backwards; animation-delay: calc(.45s + var(--i) * 80ms); }
@keyframes tick-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.st-rose { display: flex; flex-direction: column; } /* grille des directions sous le texte */
.st-rose .dial { width: 168px; height: 168px; }
.st-rose .dial-mark path { fill: var(--gold); opacity: .16; }
.st-rose .tick text { font-size: 10px; }
@media (prefers-reduced-motion: reduce) { .tick.on circle:not(.hit) { animation: none; } .dial:hover .dial-ring { animation: none; } }
@keyframes fade-up { from { transform: scaleY(0); transform-origin: bottom; } }

/* ═════════ 04 Studio ═════════ */
.p-studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.def { color: var(--mute); text-transform: none; letter-spacing: .02em; font-size: 12px; margin-bottom: 22px; }
.def b { color: var(--gold); font-weight: 500; }
.p-studio h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 5vw, 86px); line-height: .9; cursor: default; }
/* Titre : trois lignes fixes (nowrap) → la hauteur ne bouge jamais ; l'animation est locale, lettre par lettre (initStudioTitle dans app.js). */
.p-studio h1 span { display: block; white-space: nowrap; }
.p-studio h1 i { display: inline-block; font-style: normal; white-space: pre; }
.w-c { font-variation-settings: 'wdth' 62, 'wght' 780; }
.w-x { font-variation-settings: 'wdth' 125, 'wght' 170; color: var(--mute); }
.st-lead { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--ink-2); border-left: 1px solid var(--gold); padding-left: 16px; }
.st-rose { margin-top: 24px; }
.axes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.axes li { padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.axes .mono { color: var(--gold); }
.axes h2 { font-family: var(--display); text-transform: uppercase; font-size: 17px; letter-spacing: .02em; font-variation-settings: 'wdth' 88, 'wght' 620; }
.axes p { color: #bdb9b1; font-size: 14px; }
.method { margin-top: 32px; display: flex; gap: 2px; }
.method span { flex: 1; padding: 12px; background: var(--bg-2); border-top: 1px solid var(--gold); color: var(--ink); font-size: 10px; }
.is-fresh .axes li { animation: rise .8s var(--out) backwards; }
.is-fresh .axes li:nth-child(2) { animation-delay: .08s } .is-fresh .axes li:nth-child(3) { animation-delay: .16s } .is-fresh .axes li:nth-child(4) { animation-delay: .24s }

/* ═════════ 05 Avec ═════════ */
.p-avec { display: flex; flex-direction: column; gap: 22px; height: 100%; }
.av-head, .at-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; }
.av-head h1, .at-head h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 5vw, 76px); font-variation-settings: 'wdth' 68, 'wght' 640; line-height: .9; }
.av-head p, .at-head p { color: var(--mute); max-width: 60ch; }
.at-head strong { color: var(--ink); font-weight: 500; }
.plate { list-style: none; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.plate li { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 90px; overflow: hidden; }
.plate a, .plate .cell { position: absolute; inset: 0; display: grid; place-items: center; transition: background .35s; }
.plate img { max-height: 46%; max-width: 70%; width: auto; object-fit: contain; opacity: .78; transform: translate(var(--mx, 0), var(--my, 0)); transition: opacity .3s, transform .5s var(--out); }
.plate .n { position: absolute; left: 12px; top: 10px; color: var(--dim); font-size: 9px; }
.plate b { position: absolute; left: 12px; right: 12px; bottom: 10px; font-weight: 400; font-size: 9.5px; color: var(--mute); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.plate a b { color: var(--gold); }
.plate li:hover a, .plate li:hover .cell { background: var(--bg-2); }
.plate li:hover img { opacity: 1; }
.plate li:hover b { opacity: 1; transform: none; }
.plate a::after { content: ''; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s; }
.plate a:hover::after { border-color: var(--gold); }
.is-fresh .plate li { animation: rise .6s var(--out) backwards; animation-delay: calc(var(--k) * 35ms); }

/* ═════════ 06 Atelier ═════════ */
.p-atelier { display: flex; flex-direction: column; gap: 20px; }
.at-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 24vw, 360px); gap: 12px; align-items: start; }
.caps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cap { padding: 12px 14px 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s; }
.cap:hover { border-color: var(--line-2); }
.cap canvas { width: 100%; height: clamp(46px, 8vh, 84px); background: #0a0b0c; display: block; margin-bottom: 10px; }
.cap h2 { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .02em; font-variation-settings: 'wdth' 85, 'wght' 620; display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.cap h2 .mono { color: var(--gold); font-size: 9.5px; }
.cap ul { list-style: none; display: grid; }
.cap li { font-size: 12.5px; color: var(--ink-2); padding: 3px 0 3px 14px; position: relative; line-height: 1.35; }
.cap li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--gold); }
.is-fresh .cap { animation: rise .7s var(--out) backwards; animation-delay: calc(var(--k) * 60ms); }
.watch { border: 1px solid var(--line); padding: 14px 16px; background: rgba(21, 22, 24, .6); }
.watch h2 { color: var(--gold); margin-bottom: 8px; }
.watch h2 span { color: var(--dim); }
.watch ol { list-style: none; }
.watch li { display: grid; grid-template-columns: 7ch 1fr auto; column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.watch li > .mono { color: var(--dim); font-size: 9.5px; }
.watch b { font-weight: 500; font-size: 13px; }
.watch i { font-style: normal; font-size: 9px; padding: 2px 5px; border: 1px solid var(--line-2); color: var(--mute); }
.watch li p { grid-column: 2 / -1; color: var(--mute); font-size: 12px; line-height: 1.4; }
.watch .st-adopte i { color: var(--gold); border-color: var(--gold); }
.watch .st-en-test i { border-style: dashed; color: var(--ink); }
.watch .st-ecarte b { text-decoration: line-through; text-decoration-color: var(--gold); color: var(--mute); }
.watch-foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }

/* ═════════ 07 Contact ═════════ */
.p-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); align-items: center; gap: clamp(28px, 5vw, 80px); }
.ct-left { display: grid; gap: 28px; }
.p-contact .q { font-size: clamp(26px, 3.4vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.mail { font-family: var(--display); font-size: clamp(26px, 3.8vw, 64px); font-variation-settings: 'wdth' 78, 'wght' 480; letter-spacing: -.01em; line-height: 1; display: inline-flex; gap: .3em; width: fit-content; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; transition: color .3s, border-color .3s, font-variation-settings .6s var(--out); }
.mail:hover { color: var(--gold); border-color: var(--gold); font-variation-settings: 'wdth' 90, 'wght' 460; }
.promise { list-style: none; display: flex; gap: 24px; color: var(--mute); flex-wrap: wrap; }
.promise li::before { content: '— '; color: var(--gold); }
.elsewhere { display: flex; gap: 28px; color: var(--dim); }
.elsewhere a:hover { color: var(--ink); }
.brief { display: grid; gap: 15px; padding: 22px; border: 1px solid var(--line); background: rgba(21, 22, 24, .78); position: relative; }
.brief::before, .brief::after { content: ''; position: absolute; width: 10px; height: 10px; border: solid var(--gold); }
.brief::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; } .brief::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.brief-t { color: var(--gold); } .brief-t span { color: var(--dim); }
.types { border: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.types legend { color: var(--mute); margin-bottom: 8px; font-size: 10px; }
label.chip { padding: 0; border: 0; cursor: pointer; }
label.chip input { position: absolute; opacity: 0; pointer-events: none; }
label.chip span { display: block; padding: 7px 10px; border: 1px solid var(--line); color: var(--mute); font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: all .2s; }
label.chip:hover span { color: var(--ink); border-color: var(--line-2); }
label.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg); }
label.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 4px; }
.field > span { color: var(--mute); font-size: 9.5px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font: 400 15px/1.4 var(--sans); padding: 5px 0 7px; outline: none; transition: border-color .2s; resize: vertical; border-radius: 0; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.brief .is-bad input, .brief .is-bad textarea { border-bottom-color: #d4775c; }
.send { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.consent { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mute); max-width: 30ch; }
.consent input { accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.2em; color: var(--mute); }
.status.ok { color: var(--gold); } .status.err { color: #d4775c; }

/* ═════════ Transitions de montage (View Transitions) ═════════ */
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--cut); }
::view-transition-old(chrome), ::view-transition-new(chrome), ::view-transition-old(piste), ::view-transition-new(piste),
::view-transition-old(monitor), ::view-transition-new(monitor), ::view-transition-old(marks), ::view-transition-new(marks),
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
html:active-view-transition-type(cut)::view-transition-old(plan) { animation: none; opacity: 0; }
html:active-view-transition-type(cut)::view-transition-new(plan) { animation: cut-in .32s var(--out); }
@keyframes cut-in { from { transform: translateX(var(--dir, 1.5%)); } }
html:active-view-transition-type(fade)::view-transition-old(plan) { animation: to-black .32s ease-in forwards; }
html:active-view-transition-type(fade)::view-transition-new(plan) { animation: from-black .42s ease-out .3s both; }
@keyframes to-black { to { opacity: 0; } }
@keyframes from-black { from { opacity: 0; } }
html:active-view-transition-type(wipe)::view-transition-old(plan) { animation: none; }
html:active-view-transition-type(wipe)::view-transition-new(plan) { animation: wipe .75s var(--cut); }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
::view-transition-group(raccord) { animation-duration: .75s; animation-timing-function: var(--cut); z-index: 5; }
::view-transition-old(raccord), ::view-transition-new(raccord) { height: 100%; object-fit: cover; }
html:active-view-transition-type(raccord)::view-transition-old(plan) { animation: to-black .25s ease-in forwards; }
html:active-view-transition-type(raccord)::view-transition-new(plan) { animation: from-black .35s ease-out .45s both; }

/* ───── Six coupes de plus, tirées au sort par pickType() quand aucune n'est imposée par le contexte ───── */
@keyframes iris-close { to { clip-path: circle(0% at 50% 50%); } }
@keyframes iris-open { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
html:active-view-transition-type(iris)::view-transition-old(plan) { animation: iris-close .4s var(--cut) forwards; }
html:active-view-transition-type(iris)::view-transition-new(plan) { animation: iris-open .5s var(--cut) .32s both; }

@keyframes punch-out { to { transform: scale(1.08); opacity: 0; } }
@keyframes punch-in { from { transform: scale(1.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
html:active-view-transition-type(punch)::view-transition-old(plan) { animation: punch-out .22s ease-in forwards; }
html:active-view-transition-type(punch)::view-transition-new(plan) { animation: punch-in .32s var(--out); }

@keyframes shutter-close { to { clip-path: inset(0 50% 0 50%); } }
@keyframes shutter-open { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
html:active-view-transition-type(shutter)::view-transition-old(plan) { animation: shutter-close .3s var(--cut) forwards; }
html:active-view-transition-type(shutter)::view-transition-new(plan) { animation: shutter-open .4s var(--cut) .26s both; }

@keyframes scan-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0% 0); } }
html:active-view-transition-type(scan)::view-transition-old(plan) { animation: to-black .2s ease-in forwards; }
html:active-view-transition-type(scan)::view-transition-new(plan) { animation: scan-reveal .55s var(--cut) .15s both; }

@keyframes glitch-out {
  0% { transform: none; filter: none; clip-path: none; }
  25% { transform: translateX(-1.4%); filter: drop-shadow(6px 0 rgba(201, 164, 92, .7)) drop-shadow(-6px 0 rgba(127, 180, 200, .6)); }
  50% { transform: translateX(1.2%); clip-path: inset(10% 0 55% 0); }
  75% { transform: translateX(-.8%); clip-path: inset(58% 0 4% 0); opacity: .7; }
  100% { opacity: 0; transform: translateX(2%); }
}
@keyframes glitch-in {
  0% { opacity: 0; transform: translateX(-2%); clip-path: inset(0 0 100% 0); }
  35% { clip-path: inset(0 0 0 0); opacity: 1; transform: translateX(1.5%); filter: drop-shadow(-5px 0 rgba(201, 164, 92, .6)) drop-shadow(5px 0 rgba(127, 180, 200, .5)); }
  65% { transform: translateX(-.6%); }
  100% { opacity: 1; transform: none; filter: none; }
}
html:active-view-transition-type(glitch)::view-transition-old(plan) { animation: glitch-out .28s steps(4) forwards; }
html:active-view-transition-type(glitch)::view-transition-new(plan) { animation: glitch-in .34s steps(4) .2s both; }

@keyframes stack-in { from { transform: translateY(6%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stack-old-dim { to { filter: brightness(.55) saturate(.6); transform: scale(.985); } }
html:active-view-transition-type(stack)::view-transition-old(plan) { animation: stack-old-dim .5s var(--cut) forwards; }
html:active-view-transition-type(stack)::view-transition-new(plan) { animation: stack-in .4s var(--cut); }

/* ═════════ Breakdown (touche B) ═════════ */
html.bd #plan::before { content: ''; position: fixed; inset: var(--hh) var(--gut) var(--ph); z-index: 30; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(201, 164, 92, .045) 0 calc((100% - 11 * 14px) / 12), transparent 0 calc((100% - 11 * 14px) / 12 + 14px)); }
html.bd [data-bd] { outline: 1px dashed rgba(201, 164, 92, .55); outline-offset: -1px; }
html.bd #plan [data-bd] { position: relative; }
html.bd #monitor { opacity: .35 !important; }
html.bd [data-bd]::after { content: attr(data-bd); position: absolute; left: 0; top: 0; z-index: 31; pointer-events: none; font: 500 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bg); background: var(--gold); padding: 3px 5px; }
html.bd .chrome::after, html.bd .piste::after { top: auto; bottom: 100%; }
.bd-panel { position: fixed; right: var(--gut); bottom: calc(var(--ph) + 14px); z-index: 40; width: 270px; padding: 14px; background: rgba(10, 11, 12, .94); border: 1px solid var(--gold); font: 400 10.5px/1.75 var(--mono); letter-spacing: .04em; color: var(--mute); }
.bd-panel b { color: var(--ink); font-weight: 500; float: right; }
.bd-panel h3 { color: var(--gold); font: 500 10px var(--mono); letter-spacing: .14em; margin-bottom: 6px; }
.bd-panel canvas { width: 100%; height: 34px; margin-top: 8px; display: block; }

/* ═════════ Responsive ═════════ */
@media (max-width: 1180px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .bin { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: minmax(150px, 22vh); }
  .p-films { height: auto; }
}
@media (max-width: 900px) {
  :root { --hh: 60px; --ph: 54px; }
  body { font-size: 14.5px; }
  #bdk, .marks { display: none; }
  .chrome { grid-template-columns: auto 1fr; gap: 12px; }
  .brand { gap: 10px; }
  .brand-sym { width: 34px; height: 34px; }
  .brand-txt { padding-left: 10px; }
  .brand-txt i { display: none; }
  .tc { margin-right: 6px; font-size: 11px; }
  .step { width: 30px; height: 30px; }
  .track { height: 24px; }
  .clip { padding: 0 5px; font-size: 8.5px; }
  .clip span { display: none; }
  .peek { display: none !important; }
  .open-mark { width: 78vw; top: 30%; right: -14vw; opacity: .55; }
  .open-title { font-size: 19vw; }
  .ticker { bottom: 10px; } .tk-track img { height: 22px; margin-right: 44px; }
  .bin { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bin li:first-child { grid-column: span 2; grid-row: auto; }
  .card .thumb { aspect-ratio: 16/9; flex: none; }
  .p-proj { grid-template-columns: 1fr; grid-template-rows: auto; }
  .media { max-height: none; }
      .p-studio { grid-template-columns: 1fr; }
  .axes { grid-template-columns: 1fr; }
  .st-rose { display: none; }
  .method { flex-direction: column; }
  .av-head, .at-head { grid-template-columns: 1fr; gap: 8px; }
  .plate { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .plate li { aspect-ratio: 4/3; min-height: 0; }
  .p-avec { height: auto; }
  .at-body { grid-template-columns: 1fr; }
  .p-contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bin { grid-template-columns: 1fr; }
  .bin li:first-child { grid-column: auto; }
  .caps { grid-template-columns: 1fr; }
  .plate { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
  .ctrls button span { display: none; }
  .brand-txt { display: none; }
  .prevnext { font-size: 9.5px; }
}
@media (hover: none) { kbd { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .15s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .15s !important; }
}

/* ═════════ Bobines : plusieurs films par projet ═════════ */
.stage { display: grid; gap: 12px; align-self: center; min-width: 0; }
.p-proj.has-reels .media { max-height: calc(100vh - var(--hh) - var(--ph) - 250px); }
.media { justify-self: center; }
.now { position: absolute; top: 14px; left: 16px; z-index: 3; padding: 5px 8px; background: rgba(13, 14, 15, .78); color: var(--mute); font-size: 10px; transition: opacity .4s; }
.now-t { color: var(--ink); }
.media.is-playing .now { opacity: 0; }
.media.flash::before { content: ''; position: absolute; inset: 0; z-index: 6; background: #000; pointer-events: none; animation: flash .28s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.reels-h { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 8px; }
.reels-h span { color: var(--dim); }
.reels-h .keys { margin-left: auto; }
.reels { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--dim) transparent; scroll-snap-type: x proximity; }
.reels li { flex: 0 0 clamp(128px, 11vw, 168px); scroll-snap-align: start; }
.reel { display: grid; gap: 5px; width: 100%; text-align: left; color: var(--mute); }
.reel .rt { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; outline: 1px solid var(--line); outline-offset: -1px; transition: outline-color .25s; }
.reel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.7); transition: filter .4s, transform .8s var(--out); }
.reel .rt i { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 9px; color: var(--gold); background: rgba(13, 14, 15, .75); padding: 2px 4px; }
.reel b { font: 600 11.5px var(--display); text-transform: uppercase; letter-spacing: .02em; font-variation-settings: 'wdth' 85; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel > .mono { font-size: 9px; color: var(--dim); }
.reel:hover img { filter: none; transform: scale(1.04); }
.reel:hover .rt { outline-color: var(--line-2); }
.reel.is-on .rt { outline: 2px solid var(--gold); outline-offset: -2px; }
.reel.is-on img { filter: none; }
.reel.is-on b { color: var(--ink); }
.reel.is-site .rt i { color: var(--ink); }
.count { position: absolute; left: 8px; bottom: 8px; background: rgba(13, 14, 15, .75); padding: 4px 6px; font-size: 9.5px; color: var(--ink); }
@media (max-width: 900px) {
  .p-proj.has-reels .media { max-height: none; }
  .reels li { flex-basis: 42vw; }
  .reels-h .keys { display: none; }
}

/* Lecteur : toujours 16:9, borné par la hauteur disponible ; la bande de bobines ne doit jamais élargir la colonne. */
.stage { grid-template-columns: minmax(0, 1fr); }
.reels-wrap { min-width: 0; }
.media { max-height: none; width: min(100%, calc((100vh - var(--hh) - var(--ph) - 170px) * 16 / 9)); }
.p-proj.has-reels .media { max-height: none; width: min(100%, calc((100vh - var(--hh) - var(--ph) - 335px) * 16 / 9)); }
@media (max-width: 900px) { .media, .p-proj.has-reels .media { width: 100%; } }

/* Avec : 16 logos → planche 4 × 4 */
@media (min-width: 901px) { .plate { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); } }

/* Le logo en particules peut déborder à droite sur petit écran : on le coupe proprement. */
.p-open { overflow: hidden; }

/* Le calque du lecteur reste transparent : l'affiche est visible jusqu'à la première image (l'iframe, elle, reste invisible jusque-là). */
.media .frame { background: transparent; }

/* ═════════ Avec v2 : 18 logos, lien officiel, couleur + glitch au survol ═════════ */
@media (min-width: 901px) { .plate { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); } }
.plate .lg { position: relative; display: grid; place-items: center; width: 70%; height: 46%; transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .5s var(--out); }
.plate .lg img { position: absolute; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform: none; }
.plate .lg .w { opacity: .78; transition: opacity .35s; }
.plate .lg .c { opacity: 0; transition: opacity .35s; }
.plate li:hover .lg .w { opacity: 0; }
.plate li:hover .lg .c { opacity: 1; animation: lg-glitch .5s steps(1) 1; }
.plate li.is-light:hover .cell { background: var(--ink); }
.plate li.is-light:hover .n, .plate li.is-light:hover b { color: var(--bg); }
.plate li:hover .cell { background: var(--bg-3); }
.plate .cell::after { content: ''; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s; pointer-events: none; }
.plate li:hover .cell::after { border-color: var(--gold); }
.plate b { color: var(--mute); }
.plate a.cell b { color: var(--ink); }
.plate a.film { position: absolute; inset: auto 10px 10px auto; z-index: 3; display: block; font-size: 9px; color: var(--gold); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; background: rgba(13, 14, 15, .85); padding: 4px 6px; }
.plate a.film:hover { background: var(--gold); color: var(--bg); }
.plate li:hover a.film { opacity: 1; transform: none; }
.plate li:hover b { opacity: 1; transform: none; }
.plate li:has(a.film):hover b { right: 120px; }
/* Glitch d'apparition de la couleur : tranches décalées + séparation or / bleu, comme un plan qui saute. */
@keyframes lg-glitch {
  0% { clip-path: inset(10% 0 62% 0); transform: translateX(-7px); filter: drop-shadow(4px 0 rgba(201, 164, 92, .85)) drop-shadow(-4px 0 rgba(127, 180, 200, .7)); }
  12% { clip-path: inset(58% 0 8% 0); transform: translateX(6px); }
  24% { clip-path: inset(30% 0 40% 0); transform: translateX(-3px); filter: drop-shadow(-3px 0 rgba(201, 164, 92, .85)) drop-shadow(3px 0 rgba(127, 180, 200, .7)); }
  36% { clip-path: inset(0 0 75% 0); transform: translateX(4px); }
  48% { clip-path: inset(0 0 0 0); transform: translateX(-2px); filter: drop-shadow(2px 0 rgba(201, 164, 92, .6)); }
  60%, 100% { clip-path: inset(0 0 0 0); transform: none; filter: none; }
}
.also { margin-top: -8px; color: var(--dim); }
@media (max-width: 900px) { .plate a.film { opacity: 1; transform: none; } .plate .lg .w { opacity: .9; } }
@media (hover: none) { .plate .lg .c { opacity: 1; } .plate .lg .w { opacity: 0; } }
@media (hover: none) { .plate li.is-light .lg .c { opacity: 0; } .plate li.is-light .lg .w { opacity: .9; } }

/* Chutier : 10 projets + la case contact sur deux colonnes = grille pleine */
@media (min-width: 1181px) { .bin li.cta-cell { grid-column: span 2; } }

/* ═════════ Démo typo de l'ouverture : flicker, jump, flash (le glitch-slice existe déjà sur .g) ═════════ */
.open-title span.flicker { animation: fl .22s steps(1); }
@keyframes fl { 0%, 100% { opacity: 1; } 18% { opacity: .1; } 36% { opacity: 1; } 54% { opacity: .25; } 72% { opacity: 1; } }
.open-title span.jump { animation: jp .42s var(--cut); }
@keyframes jp { 0% { transform: none; } 30% { transform: translateY(-.08em) scale(1.015); } 55% { transform: translateY(.03em); } 100% { transform: none; } }
.open-title span.flash { animation: fs .52s ease-out; }
@keyframes fs { 0% { color: var(--ink); text-shadow: none; } 25% { color: var(--gold); text-shadow: 0 0 18px rgba(201, 164, 92, .6); } 100% { color: var(--ink); text-shadow: none; } }

.open-credit { position: absolute; right: var(--gut); bottom: clamp(92px, 14vh, 132px); z-index: 2; display: grid; justify-items: end; gap: 4px; text-align: right; text-shadow: 0 2px 18px rgba(0, 0, 0, .75); color: var(--ink); transition: opacity .3s; }
.oc-k { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.oc-s { font: 700 clamp(26px, 3.4vw, 52px)/.95 var(--display); font-variation-settings: 'wdth' 70, 'wght' 680; text-transform: uppercase; letter-spacing: .005em; transition: color .3s; }
.oc-m { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.oc-go { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--out), opacity .3s, color .3s; }
.open-credit:hover .oc-s, .open-credit:focus-visible .oc-s { color: var(--gold); }
.open-credit:hover .oc-go, .open-credit:focus-visible .oc-go { max-height: 20px; opacity: 1; color: var(--ink); }
.open-credit.is-new { animation: rise .7s var(--out) backwards; }
@media (max-width: 900px) { .open-credit { right: var(--gut); bottom: 96px; } .oc-s { font-size: clamp(22px, 6.4vw, 34px); } .oc-m { font-size: 11px; } .oc-go { max-height: 20px; opacity: 1; } }

/* ═════════ Projets : grille de toutes les bobines, effet magnétique au survol ═════════ */
.p-grid { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 20px); height: 100%; }
.rv-head { max-width: 64ch; }
.rv-head h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 3.8vw, 54px); font-variation-settings: 'wdth' 68, 'wght' 640; line-height: .9; margin-bottom: 9px; }
.rv-head p { color: var(--mute); font-size: 13.5px; }

.pg-grid {
  list-style: none; flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px;
}
.pg-tile {
  position: relative; flex: 1 1 auto; transition: flex-grow .45s var(--out);
}
.pg-tile:hover { flex-grow: 7; z-index: 5; }
/* La grille pousse et respire comme un seul système : la tuile visée prend la place, les autres se tassent et se réduisent. */
.pg-grid:hover .pg-tile:not(:hover) { flex-grow: .3; }
.pg-tile a {
  position: relative; display: block; width: 100%; height: 100%; background: #000; overflow: hidden;
  transition: transform .45s var(--out);
}
.pg-tile:hover a { transform: scale(1.04); }
.pg-grid:hover .pg-tile:not(:hover) a { transform: scale(.9); }
.pg-media { position: absolute; inset: 0; overflow: hidden; }
.pg-media img, .pg-media iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: none;
  filter: saturate(.6) brightness(.5); transition: filter .45s;
}
.pg-tile:hover .pg-media img { filter: saturate(1) brightness(.9); }
.pg-grid:hover .pg-tile:not(:hover) .pg-media img { filter: saturate(.2) brightness(.26); }
.pg-media iframe { opacity: 0; pointer-events: none; }
.pg-tile.is-live .pg-media iframe { opacity: 1; }
.pg-tile.is-live .pg-media img { opacity: 0; }
.pg-bottom { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; display: block; text-shadow: 0 1px 4px rgba(0, 0, 0, .85); opacity: 0; transition: opacity .3s; }
.pg-tile:hover .pg-bottom { opacity: 1; }
.pg-bottom b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 12px; letter-spacing: .01em; font-variation-settings: 'wdth' 85, 'wght' 560; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-bottom i { display: none; }
.pg-cta a { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); background: var(--bg-2); }
.pg-cta .pg-bottom { position: static; text-align: center; opacity: 1; }
.pg-cta .pg-bottom i { display: block; font-size: 10px; color: var(--mute); font-style: normal; margin-top: 2px; }
.pg-cta:hover a { border-color: var(--gold); background: var(--gold-soft); transform: none; }

.is-fresh .pg-tile { animation: rise .55s var(--out) backwards; animation-delay: calc(var(--n) * 14ms); }

@media (max-width: 900px) {
  /* Tactile : pas de molette à désambiguïser, le défilement vertical normal reprend la main ; titres toujours visibles (pas de survol fiable au doigt). */
  .pg-grid { overflow-y: auto; }
  .pg-tile { flex-basis: 44% !important; height: 130px !important; }
  .pg-tile:hover, .pg-grid:hover .pg-tile:not(:hover) { flex-grow: 1; }
  .pg-tile:hover a, .pg-grid:hover .pg-tile:not(:hover) a { transform: none; }
  .pg-bottom { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .pg-tile a { transition: none; } }

/* ═════════ Studio : le symbole en filigrane, interactif, et des axes qui réagissent au survol ═════════ */
.p-studio { position: relative; overflow: hidden; }
.st-left, .st-right { position: relative; z-index: 1; }
.st-mark { position: absolute; z-index: 0; right: -6vw; top: 50%; translate: 0 -50%; width: min(32vw, 52vh); aspect-ratio: 1; opacity: .55; pointer-events: auto; }
.st-mark .sym-draw path { stroke-width: 1.4; }
.axes li { position: relative; padding: 16px 16px 16px 20px; margin: 0 -16px; border-radius: 1px; transition: background .3s, transform .3s var(--out); }
.axes li::before { content: ''; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--out); }
.axes li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line-2); }
.axes li:hover { background: var(--bg-2); transform: translateX(3px); }
.axes li:hover::before { transform: scaleY(1); }
.axes li:hover h2 { color: var(--gold); }
.axes li:hover .mono { color: var(--ink); }
.axes h2 { transition: color .25s; }
@media (max-width: 900px) { .st-mark { display: none; } }
@media (prefers-reduced-motion: reduce) { .st-mark { display: none; } }

/* Certaines vidéos Vimeo laissent passer un filet blanc à l'intérieur du cadre : on le masque avec un liseré noir par-dessus. */
.media .frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px #000;
}

/* ═════════ Petits signes « broadcast » : REC, LIVE, viseur au clic ═════════ */
.rec { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d4553f; margin-right: 7px; vertical-align: 1px; animation: rec-blink 1.7s steps(1) infinite; box-shadow: 0 0 5px rgba(212, 85, 63, .7); }
@keyframes rec-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; opacity: .8; } }

/* Viseur de mise au point : un clic n'importe où sur un plan déclenche un bref repère caméra, comme une mise au point tactile. */
.focus-ring { position: fixed; z-index: 90; width: 54px; height: 54px; translate: -50% -50%; pointer-events: none; opacity: 0; }
.focus-ring i { position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--gold); }
.focus-ring i:nth-child(1) { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.focus-ring i:nth-child(2) { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.focus-ring i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.focus-ring i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.focus-ring.go { animation: focus-pop .55s var(--cut) forwards; }
@keyframes focus-pop { 0% { opacity: 1; scale: 1.5; } 30% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .92; } }
@media (hover: none), (prefers-reduced-motion: reduce) { .focus-ring { display: none; } }

/* Mini-lecteur de l'accueil : basculer le reel en fond, pertinent seulement sur ce plan. */
.reel-nav button { height: 30px; width: 26px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--mute); font-size: 15px; transition: color .2s, border-color .2s; }
.reel-nav button:hover { color: var(--ink); border-color: var(--line-2); }
.reel-nav button:first-child { border-right: 0; }


/* ═════════ Affinage v5 (audit 2026-10-19) ═════════ */
/* Directions du projet : pastilles lisibles en toutes lettres (remplacent la rose de 3 lettres). */
.fiche .spec { align-items: start; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 9px; border: 1px solid rgba(201, 164, 92, .5); color: var(--gold); background: var(--gold-soft); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
/* Studio : cadran des six directions, grand et nommé. */
.st-rose { flex-direction: column; align-items: center; gap: 6px; }
.rose-t { color: var(--mute); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; align-self: flex-start; }
/* Les six directions : grille 3 × 2, numérotée, chaque direction décrite en une ligne */
.st-rose { align-items: stretch; margin-top: clamp(14px, 3vh, 26px); }
.dirs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(14px, 2vw, 28px); }
.dirs li { position: relative; display: grid; gap: 3px; padding: 10px 0 12px; border-top: 1px solid var(--line-2); transition: border-color .25s; cursor: default; }
.dirs li::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--gold); transition: width .45s var(--out); }
.dirs li:hover::before { width: 100%; }
.dirs .mono { color: var(--gold); font-size: 10px; }
.dirs b { font: 600 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; font-variation-settings: 'wdth' 80, 'wght' 640; transition: color .25s, letter-spacing .35s var(--out); }
.dirs i { font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--mute); transition: color .25s; }
.dirs li:hover b { color: var(--gold); letter-spacing: .06em; } .dirs li:hover i { color: var(--ink-2); }
@media (max-width: 900px) { .st-rose { display: block; } }
@media (max-height: 960px) and (min-width: 901px) { #plan > .p-studio { padding-block: 14px; } .dirs li { padding: 6px 0 7px; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; } .dirs i { grid-column: 1 / -1; font-size: 12px; } .st-rose { margin-top: 12px; } .st-lead { font-size: 15px !important; line-height: 1.42 !important; margin-top: 14px !important; } .p-studio h1 { font-size: clamp(30px, 4.1vw, 60px); } .axes p { font-size: 13px; line-height: 1.4; } .axes { gap: 12px 26px; } .axes li { padding-top: 10px; gap: 6px; } .axes h2 { font-size: 15.5px; } .method { margin-top: 10px; } .def { margin-bottom: 14px; } }
.dial-wrap.is-full .dial { width: min(320px, 30vw); height: calc(min(320px, 30vw) * 190 / 280); }
.dial-wrap.is-full .dial-mark { width: 24%; height: auto; aspect-ratio: 1; }
.dial-wrap.is-full .dial-mark path { fill: var(--gold); opacity: .22; }
.dial-wrap.is-full .tick text { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.st-rose .dial { width: auto; height: auto; }
.st-rose .dial.dial { width: min(320px, 30vw); }
/* Lien d'évitement et titre masqué visuellement (accessibilité). */
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: #0d0e0f; font: 600 12px var(--mono); transition: top .2s; }
.skip:focus { top: 12px; outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 404 */
.p-404 { display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 640px; min-height: 100%; }
.p-404 h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 84px); line-height: .92; font-variation-settings: 'wdth' 70, 'wght' 640; }
.p-404 p { color: var(--ink-2); }
/* Indice de défilement des bobines (bord dégradé) quand la bande déborde. */
.reels-wrap { position: relative; }
.reels-wrap::after { content: ''; position: absolute; right: 0; top: 30px; bottom: 6px; width: 28px; background: linear-gradient(90deg, transparent, var(--bg, #0d0e0f)); pointer-events: none; }

/* Studio : bouton « autre besoin » détaché du bloc des directions */
.st-cta { margin-top: clamp(16px, 3vh, 28px); }
.st-cta .btn { padding: 10px 16px; font-size: 13px; }
@media (max-height: 960px) and (min-width: 901px) { .st-cta { margin-top: 14px; } .st-cta .btn { padding: 8px 14px; font-size: 12.5px; } }


/* ═════════ Paragraphes (Studio + fiches projet) : plus grands, mieux composés ═════════ */
body { font-optical-sizing: auto; }
.pitch, .st-lead, .axes p, .fiche dd { text-wrap: pretty; hanging-punctuation: first; font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; }
.pitch { font-size: clamp(15.5px, 2.05vh, 19.5px); line-height: 1.58; letter-spacing: -.004em; color: #d6d2ca; max-width: 52ch; }
.fiche dd { font-size: clamp(14.5px, 1.85vh, 16.5px); line-height: 1.4; }
.fiche dt { font-size: 10.5px; }
.p-proj { grid-template-columns: minmax(0, 1fr) clamp(340px, 33vw, 500px); }
.st-lead { font-size: clamp(15px, 2.05vh, 21px) !important; line-height: 1.55 !important; letter-spacing: -.004em; max-width: 50ch !important; }
.axes p { font-size: clamp(13px, 1.68vh, 17px) !important; line-height: 1.55 !important; color: #cdc9c1 !important; letter-spacing: -.002em; }
@media (max-height: 960px) and (min-width: 901px) { .axes p { line-height: 1.46 !important; } .st-lead { line-height: 1.46 !important; } }
@media (max-width: 900px) { .pitch { font-size: 17px; line-height: 1.6; } .st-lead { font-size: 17px !important; } .axes p { font-size: 15.5px !important; } .fiche dd { font-size: 15.5px; } }

/* Accueil : texte d'accroche plus grand et mieux composé (même traitement que les pages Studio et projets) */
.open-line { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.2; max-width: 26ch; text-wrap: balance; }
.open-sub { font-size: clamp(15.5px, 2.05vh, 19px); line-height: 1.58; letter-spacing: -.004em; color: #b9b5ad; max-width: 50ch; text-wrap: pretty; }
@media (max-height: 800px) and (min-width: 901px) { .p-open { gap: 16px; } .open-sub { font-size: 15.5px; line-height: 1.5; } }
@media (max-width: 900px) { .open-sub { font-size: 16.5px; line-height: 1.55; } }


/* Transition vers Contact : l'ancien plan s'éteint doucement, le formulaire se révèle en cercle depuis le point de clic, avec un voile d'or qui se dissipe */
html:active-view-transition-type(contact)::view-transition-old(plan) { animation: ct-out .6s cubic-bezier(.65, 0, .35, 1) both; }
html:active-view-transition-type(contact)::view-transition-new(plan) { animation: ct-in 1.05s cubic-bezier(.16, 1, .3, 1) .12s both; }
@keyframes ct-out { to { opacity: 0; transform: scale(.985); filter: blur(6px) brightness(.55); } }
@keyframes ct-in {
  from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 70%)); filter: sepia(.55) saturate(1.7) brightness(1.7); }
  60% { filter: sepia(.18) saturate(1.2) brightness(1.15); }
  to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 70%)); filter: none; }
}
@media (prefers-reduced-motion: reduce) { html:active-view-transition-type(contact)::view-transition-old(plan), html:active-view-transition-type(contact)::view-transition-new(plan) { animation-duration: .01ms; } }

/* Studio : tient dans la fenêtre sur écrans de hauteur courante (après retrait de la frise) */
@media (max-height: 960px) and (min-width: 901px) { .axes p { font-size: clamp(12.6px, 1.6vh, 17px) !important; line-height: 1.44 !important; } .st-lead { font-size: clamp(14.5px, 1.95vh, 21px) !important; } .axes { gap: 10px 24px; } .p-studio h1 { font-size: clamp(30px, 4vw, 62px); } }
@media (max-height: 800px) and (min-width: 901px) { .p-studio h1 { font-size: clamp(28px, 3.7vw, 54px); } .def { margin-bottom: 8px; } .st-cta { margin-top: 10px; } .dirs li { padding: 5px 0 6px; } .axes li { padding-top: 8px; gap: 5px; } }


/* ═════════ Nouvelles coupes (tirées au sort par pickType) ═════════ */
/* slide : le plan glisse dans le sens de la navigation, l'ancien recule en s'assombrissant */
@keyframes sl-out { to { transform: translateX(calc(var(--sdir, 1) * -9%)); opacity: 0; filter: brightness(.5); } }
@keyframes sl-in { from { transform: translateX(calc(var(--sdir, 1) * 14%)); opacity: 0; } }
html:active-view-transition-type(slide)::view-transition-old(plan) { animation: sl-out .5s cubic-bezier(.65, 0, .35, 1) both; }
html:active-view-transition-type(slide)::view-transition-new(plan) { animation: sl-in .75s cubic-bezier(.16, 1, .3, 1) .12s both; }
/* diag : volet diagonal qui révèle le nouveau plan */
@keyframes dg-in { from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); } to { clip-path: polygon(0 0, 140% 0, 110% 100%, -30% 100%); } }
html:active-view-transition-type(diag)::view-transition-old(plan) { animation: to-black .55s ease-in both; }
html:active-view-transition-type(diag)::view-transition-new(plan) { animation: dg-in .8s cubic-bezier(.77, 0, .18, 1) .1s both; }
/* sweep : un reflet de lumière dorée balaie l'écran et fond l'ancien plan dans le nouveau */
@keyframes sw-out { 60% { opacity: .35; filter: brightness(1.6) sepia(.5); } to { opacity: 0; filter: brightness(2.2) sepia(.7); } }
@keyframes sw-in { from { opacity: 0; filter: brightness(1.8) sepia(.6); clip-path: inset(0 100% 0 0); } to { opacity: 1; filter: none; clip-path: inset(0 0 0 0); } }
html:active-view-transition-type(sweep)::view-transition-old(plan) { animation: sw-out .55s ease-in both; }
html:active-view-transition-type(sweep)::view-transition-new(plan) { animation: sw-in .85s cubic-bezier(.16, 1, .3, 1) .08s both; }
/* zoom : traversée — l'ancien plan nous passe devant, le nouveau arrive du fond */
@keyframes zm-out { to { transform: scale(1.18); opacity: 0; filter: blur(8px); } }
@keyframes zm-in { from { transform: scale(.9); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
html:active-view-transition-type(zoom)::view-transition-old(plan) { animation: zm-out .5s cubic-bezier(.5, 0, .75, 0) both; }
html:active-view-transition-type(zoom)::view-transition-new(plan) { animation: zm-in .8s cubic-bezier(.16, 1, .3, 1) .15s both; }
/* blinds : persiennes — lames verticales qui s'ouvrent en cascade */
@property --bl { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes bl-in { from { --bl: 0%; } to { --bl: 100%; } }
html:active-view-transition-type(blinds)::view-transition-old(plan) { animation: to-black .45s ease-in both; }
html:active-view-transition-type(blinds)::view-transition-new(plan) {
  animation: bl-in .9s cubic-bezier(.65, 0, .35, 1) .1s both;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0, #000 calc(var(--bl) * .0625), transparent calc(var(--bl) * .0625), transparent 6.25%);
  mask-image: repeating-linear-gradient(90deg, #000 0, #000 calc(var(--bl) * .0625), transparent calc(var(--bl) * .0625), transparent 6.25%);
}

/* La vidéo de fond rejoue derrière Studio, Avec et Contact : visible, adoucie pour garder le texte lisible */
html[data-group="studio"] #monitor, html[data-group="avec"] #monitor, html[data-group="contact"] #monitor { opacity: .27; filter: saturate(.8) blur(2px); }


/* ═════ Lecteur du reel de fond — le symbole ISOTROPE est le bouton et la jauge ═════
   Une rangée basse : [symbole] titre · reel — précédent / suivant ; filet de position sur le bord bas. */
.bgp { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; height: 38px; width: clamp(270px, 25vw, 360px); margin-right: 14px; padding: 0 0 5px 14px; border-left: 1px solid rgba(214, 190, 140, .26); }
.ctrls .bgp-play { width: 30px; height: 30px; min-width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; display: grid; place-items: center; color: #d9cbab; position: relative; }
.ctrls .bgp-play:hover { background: transparent; border: 0; }
.bgp-play svg { width: 30px; height: 30px; overflow: visible; }
.bgp-play .sy-base { fill: none; stroke: rgba(214, 190, 140, .32); stroke-width: 26; stroke-linejoin: round; }
.bgp-play .sy-prog { fill: none; stroke: #f0e3c2; stroke-width: 34; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k, 0)); filter: drop-shadow(0 0 22px rgba(240, 204, 128, .5)); transition: stroke-dashoffset .35s linear; }
.bgp-play .sy-glyph { fill: #f0e3c2; } .bgp-play:hover .sy-glyph { fill: #fff; }
#bgPlay[aria-pressed="true"] .g-play, #bgPlay[aria-pressed="false"] .g-pause { display: none; }
#bgPlay[aria-pressed="false"] .sy-prog { opacity: .55; }
.bgp-play:hover .sy-base { stroke: rgba(240, 227, 194, .6); }
.bgp-info { min-width: 0; display: block; color: var(--ink); }
.bgp-t { display: grid; gap: 3px; min-width: 0; line-height: 1; }
.bgp-t b { font: 500 10.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #ece4d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.bgp-t em { font-style: normal; font-size: 8px; letter-spacing: .24em; color: #a89972; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgp-info:hover .bgp-t b { color: #fff; }
.bgp-nav { display: inline-flex; }
.ctrls .bgp-nav button { width: 20px; height: 26px; min-width: 20px; min-height: 26px; padding: 0; border: 0; border-radius: 0; display: grid; place-items: center; color: #a89972; background: transparent; transition: color .2s; }
.ctrls .bgp-nav button:hover { color: #fff; border: 0; background: transparent; }
.bgp-nav svg { width: 10px; height: 10px; }
.bgp .tc { position: absolute; right: 0; bottom: 14px; margin: 0; font-size: 8px; letter-spacing: .14em; color: #8f8466; display: none; }
/* filet de position : zone de prise de 16 px, repères tous les 10 %, curseur en trait vertical */
.bgp-scrub { position: absolute; left: 14px; right: 0; bottom: -4px; height: 16px; cursor: pointer; touch-action: none; --k: 0; z-index: 2; }
.bgp-scrub::before { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: rgba(214, 190, 140, .3); }
.bgp-scrub::after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 5px; pointer-events: none; opacity: .5; background: repeating-linear-gradient(90deg, rgba(214, 190, 140, .5) 0 1px, transparent 1px 10%); }
.bgp-fill { position: absolute; left: 0; bottom: 7px; height: 1px; width: 100%; background: #f0e3c2; transform-origin: 0 50%; transform: scaleX(var(--k)); pointer-events: none; }
.bgp-head { position: absolute; bottom: 3px; left: calc(var(--k) * 100%); width: 1px; height: 9px; background: #fff; pointer-events: none; transition: height .15s; }
.bgp-scrub:hover .bgp-head { height: 13px; bottom: 1px; }
.bgp-tip { position: absolute; bottom: 16px; transform: translateX(-50%); font-size: 8.5px; letter-spacing: .1em; color: #ece4d0; background: rgba(10, 11, 12, .92); padding: 3px 6px; border: 1px solid rgba(214, 190, 140, .35); pointer-events: none; white-space: nowrap; }
.bgp-scrub:focus-visible { outline: 1px solid rgba(214, 190, 140, .7); outline-offset: 2px; }
@media (max-width: 1250px) { .bgp-t em { display: none; } .bgp { width: clamp(220px, 23vw, 290px); } }
@media (max-width: 900px) { .bgp { display: none; } }

/* Mention « En fond » persistante sur Studio, Avec et Contact (l'accueil a la sienne) */
.bg-credit { display: none; }
html[data-group="studio"] .bg-credit:not([hidden]), html[data-group="avec"] .bg-credit:not([hidden]), html[data-group="contact"] .bg-credit:not([hidden]) {
  display: flex; align-items: baseline; gap: 10px; position: fixed; z-index: 4; right: var(--gut); bottom: calc(var(--ph) + 12px); top: auto; transform: none; padding: 7px 12px; background: rgba(10, 11, 12, .6); backdrop-filter: blur(6px); border: 1px solid rgba(214, 190, 140, .28); border-radius: 0; text-align: left; }
.bg-credit .oc-k { font-size: 9.5px; } .bg-credit .oc-s { font-size: 15px; letter-spacing: .02em; } .bg-credit .oc-m { font-size: 10px; } .bg-credit .oc-go { display: none; }
@media (max-width: 900px) { html[data-group="studio"] .bg-credit:not([hidden]), html[data-group="avec"] .bg-credit:not([hidden]), html[data-group="contact"] .bg-credit:not([hidden]) { left: var(--gut); right: auto; bottom: calc(var(--ph) + 8px); flex-wrap: wrap; } }
html[data-group="contact"] .bg-credit:not([hidden]) { left: var(--gut); right: auto; } /* le formulaire occupe la droite : la mention passe en bas à gauche */

/* Bouton lecture du reel : la règle générique des boutons « pressés » (fond doré) ne doit pas s'appliquer */
.ctrls button.bgp-play[aria-pressed] { background: transparent; color: #e4d8bd; border: 1px solid rgba(214, 190, 140, .55); }
.ctrls button.bgp-play[aria-pressed]:hover { background: #e4d8bd; color: #0d0e0f; border-color: #e4d8bd; }

/* Bouton son : pictogramme au trait, carré de 1 px, même langage que le lecteur (esprit Dune) */
.ctrls button.snd { width: 28px; height: 28px; min-width: 28px; padding: 0; border-radius: 0; display: grid; place-items: center; background: transparent; color: #a89972; border: 1px solid rgba(214, 190, 140, .4); transition: color .25s, background .25s, border-color .25s; }
.ctrls button.snd:hover { background: #e4d8bd; color: #0d0e0f; border-color: #e4d8bd; }
.ctrls button.snd[aria-pressed="true"] { background: transparent; color: #ece4d0; border-color: rgba(236, 228, 208, .8); }
.ctrls button.snd[aria-pressed="true"]:hover { background: #e4d8bd; color: #0d0e0f; }
.snd svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.snd .s-body { fill: currentColor; stroke: none; }
.snd[aria-pressed="false"] .s-wave { display: none; } .snd[aria-pressed="true"] .s-mute { display: none; }
.snd[aria-pressed="true"] .s-wave.a { animation: snd-pulse 1.6s ease-in-out infinite; } .snd[aria-pressed="true"] .s-wave.b { animation: snd-pulse 1.6s ease-in-out .25s infinite; }
@keyframes snd-pulse { 50% { opacity: .35; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .snd .s-wave { animation: none !important; } }
@media (hover: hover) and (pointer: fine) { .ctrls button.snd { min-height: 28px; min-width: 28px; height: 28px; width: 28px; } }

/* Bouton lecture/pause : carré fin, pictogramme net (le symbole en jauge est abandonné ; la progression reste sur le filet du bas) */
.ctrls .bgp-play { width: 30px; height: 30px; min-width: 30px; min-height: 30px; border: 1px solid rgba(214, 190, 140, .6); background: transparent; color: #ece4d0; transition: background .2s, color .2s, border-color .2s; }
.ctrls .bgp-play:hover { background: #ece4d0; color: #0d0e0f; border-color: #ece4d0; }
.bgp-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; overflow: visible; }
#bgPlay[aria-pressed="true"] .g-play, #bgPlay[aria-pressed="false"] .g-pause { display: none; }

/* Studio : contenu centré en hauteur, quelle que soit la taille de la fenêtre (colonnes alignées sur l'axe central, marges égales haut et bas) */
#plan > .p-studio { min-height: 100%; align-content: center; align-items: center; padding-block: clamp(14px, 3vh, 44px) !important; }
.p-studio .st-left, .p-studio .st-right { align-self: center; }
@media (min-height: 1000px) and (min-width: 901px) { .p-studio .st-lead { font-size: clamp(17px, 1.5vw, 24px) !important; } .axes p { font-size: clamp(14px, 1.2vw, 19px) !important; line-height: 1.6 !important; } .p-studio h1 { font-size: clamp(40px, 5vw, 96px); } }


/* ═════ Indicateur « En cours » façon magnétoscope : pastille rouge qui pulse, légende à bruit de bande (tracking) ═════ */
.rec { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 0; flex: none;
  background: radial-gradient(circle at 35% 30%, #ff8a73, #e23b25 55%, #a61f10); box-shadow: 0 0 0 1px rgba(255, 120, 100, .35), 0 0 10px 2px rgba(226, 59, 37, .65); animation: rec-pulse 1.6s ease-in-out infinite; }
.rec::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(226, 59, 37, .6); animation: rec-ring 1.6s ease-out infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.86); } }
@keyframes rec-ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
/* légende : léger tremblé de bande magnétique toutes les ~6 s (décalage RVB et saut horizontal bref) */
.oc-k, .bgp-t em { position: relative; }
@keyframes vhs-track { 0%, 93%, 100% { transform: none; text-shadow: none; } 94% { transform: translateX(-2px); text-shadow: 2px 0 rgba(255, 60, 40, .7), -2px 0 rgba(60, 220, 255, .55); } 95.5% { transform: translateX(3px); text-shadow: -2px 0 rgba(255, 60, 40, .7), 2px 0 rgba(60, 220, 255, .55); clip-path: inset(40% 0 0 0); } 97% { transform: translateX(-1px); clip-path: none; text-shadow: 1px 0 rgba(255, 60, 40, .5); } }
/* en pause : la pastille reste fixe et sombre, comme un magnétoscope en arrêt sur image */
html[data-bg="off"] .rec { animation: none; background: #6b2a22; box-shadow: none; } html[data-bg="off"] .rec::after { display: none; }
html[data-bg="off"] .oc-k, html[data-bg="off"] .bgp-t em { animation: none; }
/* dans le lecteur du haut : pastille devant la légende */
.bgp-t em::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #e23b25; box-shadow: 0 0 8px 1px rgba(226, 59, 37, .7); animation: rec-pulse 1.6s ease-in-out infinite; vertical-align: 0; }
html[data-bg="off"] .bgp-t em::before { animation: none; background: #6b2a22; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .rec, .rec::after, .oc-k, .bgp-t em, .bgp-t em::before { animation: none !important; } }
