/* =====================================================================
   OBSIDIAN WALL — hero.css (v3, WebGL)
   Le mur est rendu dans le canvas ; cette feuille habille le fond, la
   couche typographique (nav, titre, cartel, focus) et la sortie au scroll.
   `--p` (0→1) est la progression amortie du scroll, écrite par hero.js.
   ===================================================================== */

:root {
  --ob-0: #050507;
  --ob-1: #070809;
  --bone: #e9e4dc;
  --bone-soft: rgba(233, 228, 220, .62);
  --bone-faint: rgba(233, 228, 220, .34);
  --cold: #b9c6d6;
  --gutter: clamp(1.25rem, 3.4vw, 3.25rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; background: var(--ob-0); } /* obsidienne dès le premier pixel, avant toute feuille de section */
body {
  margin: 0;
  background: var(--ob-1);
  color: var(--bone);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "opsz" 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(185, 198, 214, .35); }
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }

/* ---------------------------------------------------------------------
   Structure : 240svh, enfant sticky. Scroll natif.
   ------------------------------------------------------------------- */
.hero { position: relative; height: 270vh; height: 270svh; background: var(--ob-1); } /* course de sortie plus longue : le zoom dans l'écran se voit (retour d'Axel) */
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }

/* Fond obsidienne : nappes asymétriques, marbrures basse fréquence, grain */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 60% at 18% 12%, rgba(255,246,232,.045) 0%, rgba(255,246,232,0) 62%),
    radial-gradient(45% 50% at 88% 84%, rgba(120,150,200,.06) 0%, rgba(120,150,200,0) 60%),
    linear-gradient(168deg, #0c0d11 0%, var(--ob-1) 42%, #060708 100%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: -8%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.0032' numOctaves='3' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8 0 0 0 0 .84 0 0 0 0 .9 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  background-size: 900px 900px; opacity: .26; mix-blend-mode: soft-light;
  animation: halo 16s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 260px 260px; opacity: .07; mix-blend-mode: overlay;
  animation: grain 1.1s steps(8) infinite;
}
@keyframes grain { 0% { background-position: 0 0; } 25% { background-position: -90px 40px; } 50% { background-position: 60px -70px; } 75% { background-position: -30px -110px; } 100% { background-position: 110px 20px; } }
@keyframes halo { from { opacity: .2; transform: translate3d(-1.5%, -1%, 0); } to { opacity: .32; transform: translate3d(1.5%, 1.2%, 0); } }

.hero__canvas { touch-action: pan-y;
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; display: block;
  touch-action: pan-y;
  cursor: default;
}
/* repli sans WebGL / sans modules : l'image du mur au repos (boucle enregistrée, par langue) prend la place du canvas */
.hero__poster { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: #050507 center / cover no-repeat; transition: opacity .6s var(--ease-out); }
[data-webgl="unavailable"] .hero__poster { opacity: 1; background-image: url("media/wall-still.webp"); }
html[lang="en"] [data-webgl="unavailable"] .hero__poster { background-image: url("media/wall-still.en.webp"); }
html[lang="da"] [data-webgl="unavailable"] .hero__poster { background-image: url("media/wall-still.da.webp"); }
[data-webgl="unavailable"] .hero__canvas { display: none; }
[data-webgl="unavailable"] .hero__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,7,.55), rgba(5,5,7,.15) 30%, rgba(5,5,7,.25) 70%, rgba(5,5,7,.7)); }
.hero__canvas[data-hover="true"] { cursor: pointer; }
/* Curseur du mur : anneau fin, action à côté sur un écran, point en dérive ; le curseur natif reste sur les liens */
.hero[data-cursor="on"] .hero__canvas { cursor: none; }
.hero__cursor { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; width: 0; height: 0; opacity: 1; transition: opacity .3s; }
.hero__cursor::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1px solid rgba(233,228,220,.8); border-radius: 50%; background: rgba(233,228,220,0); transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), border-color .3s, background .3s; }
.hero__cursor-label { position: absolute; left: 26px; top: 0; transform: translateY(-50%); white-space: nowrap; font-size: .56rem; letter-spacing: .18em; color: var(--bone); opacity: 0; transition: opacity .25s, transform .4s var(--ease-out); }
.hero__cursor[data-state="open"]::before, .hero__cursor[data-state="close"]::before { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-color: rgba(233,228,220,.9); background: rgba(233,228,220,.08); }
.hero__cursor[data-state="open"] .hero__cursor-label, .hero__cursor[data-state="close"] .hero__cursor-label { opacity: 1; left: 32px; }
.hero__cursor[data-state="drift"]::before { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--bone); border-color: transparent; }
.hero__cursor[data-state="off"] { opacity: 0; }

/* ---------------------------------------------------------------------
   Couche typographique. Ne bouge pas : c'est l'ancre pendant que
   l'espace se déplace derrière elle. Laisse passer les clics vers le mur.
   ------------------------------------------------------------------- */
.hero__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__ui a, .hero__ui button { pointer-events: auto; }

.hero__scrim { position: absolute; left: 0; right: 0; }
.hero__scrim--top { top: 0; height: 22vh; background: linear-gradient(to bottom, rgba(7,8,9,.72), rgba(7,8,9,0)); }
.hero__scrim--bottom { bottom: 0; height: 52vh; background: linear-gradient(to top, rgba(7,8,9,.94) 0%, rgba(7,8,9,.55) 40%, rgba(7,8,9,0) 100%); }

/* Nav : logo / méta / index mono */
.hero__nav {
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 2rem;
  padding: calc(var(--gutter) * .6) var(--gutter);
  opacity: clamp(0, 1 - var(--p) * 3, 1);
}
.hero__logo { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; color: var(--bone); text-decoration: none; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; justify-self: start; }
.hero__logo-mark { width: 1.35rem; height: 1.35rem; color: var(--bone); filter: drop-shadow(0 0 10px rgba(255,255,255,.28)); }
.hero__logo-word { display: inline-flex; align-items: baseline; font-size: .98rem; letter-spacing: 0; text-transform: none; }
.hero__logo-word b { font-weight: 800; font-variation-settings: "wdth" 80, "opsz" 96; text-transform: uppercase; letter-spacing: .03em; }
.hero__logo-word i { font: italic 1.08em/1 var(--font-serif); margin-left: .22em; color: rgba(233,228,220,.92); }
.hero__meta { margin: 0 0 0 .4rem; font-size: .64rem; color: var(--bone-faint); }
.hero__links { display: flex; gap: 1.6rem; justify-self: end; font-size: .68rem; }
.hero__links a { position: relative; color: var(--bone-soft); text-decoration: none; padding: .3rem 0; transition: color .25s; }
.hero__links a sup { font-size: .72em; margin-right: .45em; color: var(--bone-faint); vertical-align: .5em; }
.hero__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.hero__links a:hover { color: var(--bone); }
.hero__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__lang { display: inline-flex; gap: .6rem; justify-self: end; margin-left: 1.4rem; padding-left: 1.2rem; border-left: 1px solid rgba(233,228,220,.18); font-size: .62rem; letter-spacing: .16em; }
.hero__lang a { color: var(--bone-faint); text-decoration: none; padding: .3rem 0; transition: color .25s; }
.hero__lang a:hover { color: var(--bone-soft); }
.hero__lang a[aria-current] { color: var(--bone); }

/* Titre : bas gauche, grotesque condensée + serif italique décalée */
.hero__content {
  position: absolute; left: var(--gutter); bottom: calc(var(--gutter) * 1.1);
  max-width: 60vw;
  display: flex; flex-direction: column; align-items: flex-start;
  opacity: clamp(0, 1 - var(--p) * 3.6, 1);
  transform: translateY(calc(var(--p) * -12vh));
  transition: opacity .4s var(--ease-out);
}
.hero__eyebrow { margin: 0 0 1.2rem; font-size: .64rem; color: var(--bone-soft); }
.hero__hint-mobile { display: none; margin: 1.3rem 0 0; font-size: .56rem; letter-spacing: .16em; color: var(--bone-faint); }
.hero__continue { display: none; }
.hero__title { margin: 0; color: var(--bone); }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; transform: translateY(110%); opacity: 0; transition: transform 1.3s var(--ease-out), opacity .9s var(--ease-out); }
.hero__line--sans { font-size: clamp(3.8rem, 10.5vw, 11rem); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; line-height: .84; letter-spacing: -.02em; text-transform: uppercase; padding: .03em 0 .02em; }
.hero__line--serif { font: italic clamp(2.8rem, 7.6vw, 7.8rem)/.95 var(--font-serif); letter-spacing: -.01em; margin-top: -.05em; padding: .04em 0 .08em .1em; color: rgba(233,228,220,.94); }
.hero__line--serif > span { margin-left: clamp(.5rem, 5.5vw, 5rem); }
.hero__tagline { margin: 1rem 0 0; font-size: clamp(.95rem, 1.2vw, 1.1rem); color: var(--bone-soft); max-width: 32rem; opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease-out) .5s, transform .9s var(--ease-out) .5s; }
.hero__eyebrow { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease-out) .35s, transform .8s var(--ease-out) .35s; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.7rem; opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease-out) .65s, transform .9s var(--ease-out) .65s; }
.hero[data-ready="true"] .hero__line > span { transform: none; opacity: 1; }
.hero[data-ready="true"] .hero__line--serif > span { transition-delay: .12s; }
.hero[data-ready="true"] .hero__eyebrow, .hero[data-ready="true"] .hero__tagline, .hero[data-ready="true"] .hero__ctas { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.45rem; border-radius: 999px; border: 0;
  font: 500 .9rem/1 var(--font-display); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-out), background .3s, box-shadow .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--bone); color: #0a0a0d; box-shadow: 0 10px 40px -12px rgba(233,228,220,.45); }
.btn--primary:hover { box-shadow: 0 16px 50px -12px rgba(233,228,220,.6); }
.btn--primary svg { transition: transform .35s var(--ease-out); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--text { padding: .6rem 0; background: none; color: rgba(233,228,220,.8); font-size: .68rem; border-bottom: 1px solid rgba(233,228,220,.25); border-radius: 0; }
.btn--text:hover { color: var(--bone); border-color: var(--bone); transform: none; }

/* Cartel de survol : bas droite, le contenu se remplace comme une étiquette */
.hero__caption {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) * 1.25);
  width: min(340px, 30vw); display: grid;
  opacity: clamp(0, 1 - var(--p) * 4, 1);
  transition: opacity .4s var(--ease-out);
}
.hero__caption-layer { grid-area: 1 / 1; display: grid; gap: 6px; text-align: right; justify-items: end; align-self: end; }
.hero__caption-layer--in { animation: caption-in .62s var(--ease-out) .08s both; }
.hero__caption-layer--out { animation: caption-out .22s ease-out both; pointer-events: none; }
@keyframes caption-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes caption-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }
.hero__kind { display: block; font-size: .64rem; letter-spacing: .18em; color: var(--bone-faint); }
.hero__kind[data-kind="client"] { color: var(--cold); }
.hero__kind[data-kind="concept"], .hero__kind[data-kind="experiment"] { color: var(--bone-soft); }
.hero__kind i { font-style: normal; opacity: .6; }
.hero__caption-title { font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-weight: 600; font-variation-settings: "wdth" 88, "opsz" 32; letter-spacing: -.01em; line-height: 1.05; }
.hero__caption-sub { font-size: .66rem; letter-spacing: .04em; text-transform: none; color: var(--bone-soft); }
.hero__caption-cta { margin-top: 6px; font-size: .64rem; letter-spacing: .16em; color: var(--bone); }

/* Indice de défilement */
.hero__cue {
  position: absolute; left: 50%; bottom: calc(var(--gutter) * .9); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: .6rem; letter-spacing: .24em; color: var(--bone-faint);
  opacity: clamp(0, 1 - var(--p) * 6, 1);
}
.hero__cue-line { position: relative; width: 1px; height: 34px; overflow: hidden; }
.hero__cue-line i { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(233,228,220,0), rgba(233,228,220,.55)); animation: cue 2.6s var(--ease-out) infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Focus : la pièce vient au centre, le cartel en bas à gauche */
.hero__focus { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); }
.hero__focus[data-open="true"] { opacity: 1; transition-delay: .25s; }
.hero__close {
  position: absolute; top: calc(var(--gutter) * .6 + 48px); right: var(--gutter);
  appearance: none; background: none; border: 0; padding: 10px 0;
  font-size: .66rem; letter-spacing: .18em; color: var(--bone); cursor: pointer;
}
.hero__close kbd { font: inherit; margin-left: 10px; padding: 3px 7px; border: 1px solid rgba(233,228,220,.3); border-radius: 3px; color: var(--bone-soft); }
.hero__focus-body { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) * 1.1); display: grid; gap: 10px; justify-items: start; max-width: min(24vw, 22rem); }
.hero__focus[data-open="true"] .hero__focus-body { animation: caption-in .8s var(--ease-out) .45s both; }
.hero__focus-body h2 { margin: 2px 0 0; font-size: clamp(1.7rem, 2.6vw, 2.8rem); line-height: 1; font-weight: 700; font-variation-settings: "wdth" 80, "opsz" 96; letter-spacing: -.02em; text-transform: uppercase; }
.hero__focus-body p { margin: 0; font-size: .7rem; letter-spacing: .05em; text-transform: none; color: var(--bone-soft); }
.hero__focus-body .btn { margin-top: .5rem; }
.hero__focus-note { font-size: .62rem; color: var(--bone-faint); max-width: 34ch; line-height: 1.5; }
.hero__focus-body .hero__focus-next { margin-top: 0; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.hero__focus-next span[data-focus-next-count] { opacity: .55; }
.hero[data-focused="true"] .hero__content, .hero[data-focused="true"] .hero__cue, .hero[data-focused="true"] .hero__caption { opacity: 0; }
.hero[data-focused="true"] .hero__nav { opacity: .45; transition: opacity .6s var(--ease-out); }

/* Voile de sortie vers la section suivante */
.hero__veil { position: absolute; inset: 0; background: var(--ob-1); opacity: clamp(0, (var(--p) - .84) * 7, 1); }

/* ---------------------------------------------------------------------
   Mobile : titre recadré, cartel masqué, nav compacte
   ------------------------------------------------------------------- */
@media (max-width: 767px), (pointer: coarse) and (max-height: 520px) {
  .hero { height: 220svh; }
  .hero__nav { grid-template-columns: 1fr auto auto; gap: .9rem; }
  .hero__logo { grid-row: 1; grid-column: 1; }
  .hero__lang { grid-row: 1; grid-column: 2; margin: 0; padding: 0; border: 0; gap: .7rem; font-size: .6rem; }
  .hero__menu-btn { grid-row: 1; grid-column: 3; margin-left: .2rem; }
  .hero__meta { display: none; }
  .hero__content { max-width: none; right: var(--gutter); bottom: 4.2rem; }
  .hero__line--sans { font-size: clamp(3.4rem, 17vw, 5.2rem); }
  .hero__line--serif { font-size: clamp(2.3rem, 12vw, 3.6rem); }
  .hero__line--serif > span { margin-left: 1.2rem; }
  .hero__tagline { font-size: .95rem; }
  .hero__ctas { gap: 1.1rem; margin-top: 1.4rem; }
  .btn--primary { padding: .85rem 1.2rem; }
  .hero__caption, .hero__cue { display: none; }
  .hero__hint-mobile { display: block; opacity: 0; transition: opacity .8s var(--ease-out) .9s; }
  .hero[data-ready="true"] .hero__hint-mobile { opacity: 1; }
  /* mobile : le mur d'abord — pas d'accroche, pas de boutons ; le titre, une indication, et « Continuer » pour quitter le mur */
  .hero__eyebrow, .hero__tagline, .hero__ctas { display: none; }
  .hero__canvas { touch-action: none; }
  .hero__content { bottom: 3.2rem; }
  .hero__line--sans { font-size: clamp(3.6rem, 18vw, 5.6rem); }
  .hero__continue { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .7rem 1.1rem; border: 1px solid rgba(233,228,220,.28); border-radius: 999px; background: rgba(5,5,7,.35); color: var(--bone); font-size: .58rem; letter-spacing: .16em; opacity: 0; transition: opacity .8s var(--ease-out) 1.2s; }
  .hero[data-ready="true"] .hero__continue { opacity: 1; }
  .hero__continue span { animation: hint-bob 2.2s ease-in-out infinite; will-change: transform; } /* composée : aucun recalcul de style par image */
  /* fond du mur : halo et grain figés sur téléphone — une animation tenue par le fil principal impose un recalcul de style et une
     repeinture plein écran à chaque image (le grain : 8 fois par seconde à la définition ×3), pour un effet imperceptible à 7 % */
  .hero__bg::before, .hero__bg::after { animation: none; }
  @keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
  .hero__focus-body { max-width: none; right: var(--gutter); bottom: 2.4rem; }
  .hero__close { top: calc(var(--gutter) * .6 + 44px); }
  .hero__scrim--bottom { height: 58vh; }
}

/* Tablette et écrans étroits : la ligne de méta ne tient plus entre le logo et les liens */
@media (max-width: 1023px) { .hero__meta { display: none; } }
/* Téléphone en paysage : peu de hauteur — titre réduit, bloc resserré, indications masquées */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__line--sans { font-size: clamp(2.2rem, 11vh, 4.2rem); }
  .hero__line--serif { font-size: clamp(1.7rem, 8.5vh, 3.2rem); }
  .hero__line--serif > span { margin-left: 1.2rem; }
  .hero__eyebrow { margin-bottom: .5rem; }
  .hero__tagline { margin-top: .4rem; font-size: .85rem; }
  .hero__ctas { margin-top: .7rem; gap: 1rem; }
  .btn--primary { padding: .65rem 1rem; }
  .hero__content { bottom: 1.4rem; }
  .hero__caption, .hero__cue, .hero__hint-mobile { display: none; }
  .hero__eyebrow, .hero__tagline, .hero__ctas { display: none; }
  .hero__continue { margin-top: .5rem; padding: .5rem .9rem; }
  .hero__focus-body { bottom: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg::before, .hero__bg::after { animation: none; }
  .hero__cursor { display: none; }
  .hero__cue-line i { animation: none; transform: none; }
  .hero__caption-layer--in, .hero__caption-layer--out, .hero__focus[data-open="true"] .hero__focus-body { animation-duration: .01s; animation-delay: 0s; }
  .hero__line > span, .hero__eyebrow, .hero__tagline, .hero__ctas, .btn, .btn--primary svg { transition-duration: .01s; transition-delay: 0s; }
}

/* Démo uniquement */
.demo-next { min-height: 100vh; display: grid; place-items: center; background: var(--ob-1); color: var(--bone-faint); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Logo fixé (demande d'Axel) : reste en haut à gauche pendant tout le défilement, ramène en haut au clic ---------- */
.brand-fixed { position: fixed; left: var(--gutter); top: calc(var(--gutter) * .6); z-index: 55; display: inline-flex; align-items: center; gap: .65rem; color: var(--bone); text-decoration: none; white-space: nowrap; filter: drop-shadow(0 1px 10px rgba(0,0,0,.6)); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.brand-fixed.is-on { opacity: 1; transform: none; pointer-events: auto; }
/* zone sûre : en descendant, le coin fixé s'efface (les titres passent dessous sans collision) ; il revient dès qu'on remonte, ou au repos */
html.is-away .brand-fixed.is-on, html.is-away .menu-fixed.is-on { opacity: 0; transform: translateY(-10px); pointer-events: none; }
/* dès que le coin fixé prend le relais, le logo et le bouton menu de l'en-tête s'effacent (jamais deux logos, quel que soit l'état du mur) */
.hero__logo, .hero__menu-btn { transition: opacity .3s var(--ease-out); }
html.is-brand-fixed .hero__logo, html.is-brand-fixed .hero__menu-btn { opacity: 0; pointer-events: none; }
.brand-fixed .hero__logo-mark { filter: none; }
.brand-fixed:focus-visible { outline: 1px solid var(--bone); outline-offset: 6px; }
/* focus-visible — clavier : tout lien ou bouton de l'accueil */
.hero a:focus-visible, .hero button:focus-visible, .founder a:focus-visible, .atelier a:focus-visible, .atelier button:focus-visible, .tarifs a:focus-visible, .tarifs button:focus-visible, .bureau a:focus-visible, .bureau button:focus-visible, .colophon a:focus-visible, .colophon button:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
/* écran du bureau ouvert : « Retour au bureau » occupe ce coin, le logo s'efface le temps de la consultation */
body:has(.bureau[data-open]) .brand-fixed { opacity: 0; pointer-events: none; }
@media (max-width: 767px), (pointer: coarse) and (max-height: 520px) {
  .brand-fixed { top: calc(var(--gutter) * .75 - .35rem); left: calc(var(--gutter) - .55rem); padding: .35rem .75rem .35rem .55rem; border-radius: 999px; background: rgba(5,5,7,.62); filter: none; }
  .hero__lang a { padding: .9rem .5rem; margin: -.6rem -.2rem; }
  .hero__hint-mobile { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .brand-fixed { transition: none; } }

/* ---------- Menu (demande d'Axel) : trois barres à droite des langues, un panneau vers les grandes parties du site ---------- */
.hero__menu-btn, .menu-fixed { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--bone); display: grid; place-content: center; gap: 5px; }
.hero__menu-btn { width: 2.2rem; height: 2.2rem; margin-left: .7rem; }
.hero__menu-btn span, .menu-fixed span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.hero__menu-btn:hover span:nth-child(2), .menu-fixed:hover span:nth-child(2) { width: 14px; transform: translateX(4px); }
.hero__menu-btn:focus-visible, .menu-fixed:focus-visible, .menu__close:focus-visible, .menu__list a:focus-visible { outline: 1px solid var(--bone); outline-offset: 6px; }
/* le même bouton, fixé en haut à droite dès que l'en-tête du mur a défilé (brand.js) */
.menu-fixed { position: fixed; right: var(--gutter); top: calc(var(--gutter) * .6 - .4rem); z-index: 55; width: 2.8rem; height: 2.8rem; border-radius: 999px; border: 1px solid rgba(233,228,220,.16); background: rgba(5,5,7,.72); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s; }
.menu-fixed span { width: 18px; }
.menu-fixed.is-on { opacity: 1; transform: none; pointer-events: auto; }
.menu-fixed:hover { border-color: rgba(233,228,220,.4); }
body:has(.bureau[data-open]) .menu-fixed { opacity: 0; pointer-events: none; }
.menu { position: fixed; inset: 0; z-index: 70; }
.menu[hidden] { display: none; }
.menu__backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.62); opacity: 0; transition: opacity .22s ease-out; }
.menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(36rem, 100%); display: grid; grid-template-rows: auto 1fr auto; gap: 1.5rem; padding: calc(var(--gutter) * .6) var(--gutter) var(--gutter); background: var(--ob-0); border-left: 1px solid rgba(233,228,220,.1); box-shadow: -40px 0 80px rgba(0,0,0,.45); transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow: auto; }
.menu.is-open .menu__backdrop { opacity: 1; }
.menu.is-open .menu__panel { transform: none; }
.menu__bar { display: flex; align-items: center; justify-content: space-between; min-height: 2.2rem; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-faint); }
.menu__close { appearance: none; border: 1px solid rgba(233,228,220,.18); border-radius: 999px; background: none; color: var(--bone); padding: .55rem .95rem; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: border-color .3s; }
.menu__close:hover { border-color: rgba(233,228,220,.5); }
.menu__close kbd { font: inherit; opacity: .55; margin-left: .4em; }
.menu__list { list-style: none; margin: 0; padding: 0; align-self: center; }
.menu__list li { border-bottom: 1px solid rgba(233,228,220,.1); opacity: 0; transform: translateY(10px); transition: opacity .22s ease-out, transform .28s cubic-bezier(.2,.8,.2,1); }
.menu__list li:first-child { border-top: 1px solid rgba(233,228,220,.1); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: .05s; } .menu.is-open .menu__list li:nth-child(2) { transition-delay: .09s; } .menu.is-open .menu__list li:nth-child(3) { transition-delay: .13s; } .menu.is-open .menu__list li:nth-child(4) { transition-delay: .17s; }
.menu__list a { display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; row-gap: .3rem; padding: 1.15rem 0; color: var(--bone); text-decoration: none; }
.menu__list sup { font-size: .6rem; color: var(--bone-faint); vertical-align: 0; }
.menu__list b { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-variation-settings: "wdth" 80, "opsz" 96; transition: transform .45s var(--ease-out), color .3s; }
.menu__list small { grid-column: 2; font-size: .8rem; color: var(--bone-faint); transition: color .3s; }
.menu__list a:hover b { transform: translateX(8px); }
.menu__list a:hover small { color: var(--bone-soft); }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.menu__foot a { color: var(--bone-soft); text-decoration: none; transition: color .3s; }
.menu__foot a:hover, .menu__langs a[aria-current] { color: var(--bone); }
.menu__langs { display: inline-flex; gap: .9rem; }
.menu__foot .menu__studio + .menu__studio { margin-left: 1.2rem; }
.menu__langs a { color: var(--bone-faint); }
html.is-menu { overflow: hidden; }
@media (max-width: 767px), (pointer: coarse) and (max-height: 520px) {
  .menu__panel { width: 100%; border-left: 0; padding: calc(var(--gutter) * .75) var(--gutter) var(--gutter); }
  .menu__list b { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .menu__list a { padding: 1rem 0; }
  .menu-fixed { top: calc(var(--gutter) * .75 - .5rem); }
}
@media (pointer: coarse) and (max-height: 520px) and (orientation: landscape) { .menu__list a { padding: .55rem 0; } .menu__list b { font-size: 1.5rem; } .menu__panel { gap: .8rem; } }
@media (prefers-reduced-motion: reduce) { .menu__backdrop, .menu__panel, .menu__list li, .menu__list b, .menu-fixed { transition: none; } }
/* cartel fermé : intouchable — son bouton invisible interceptait les touchers sur « Continuer » (téléphone) */
.hero:not([data-focused="true"]) .hero__focus, .hero:not([data-focused="true"]) .hero__focus * { pointer-events: none; }
