/* style.css — Studio Bangō
   Composé en Oswald (titres), Switzer (texte) et IBM Plex Mono (repères). */

/* ---------- Polices, hébergées sur place : aucun appel tiers ---------- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/oswald-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('assets/fonts/oswald-var-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('assets/fonts/switzer-var.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/plexmono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/plexmono-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/plexmono-400-sym.woff2') format('woff2');
  unicode-range: U+23B8-23BD, U+2500-259F; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/plexmono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('assets/fonts/notojp-sub.woff2') format('woff2');
  unicode-range: U+3046, U+3053-3054, U+306f-3070, U+3093-3094, U+3099, U+4e00, U+4e09, U+4e8c, U+4e94, U+516d, U+53f7, U+56db, U+756a; }

/* ---------- Jetons ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;

  --color-accent: #ffe000;              /* le jaune BANGŌ, exact */
  --color-ink: oklch(0.16 0.004 95);    /* encre, constante dans les deux sessions */
  --color-paper: oklch(0.966 0.005 95);
  --color-black: #000;                  /* fond du logo BANGŌ# */

  --radius-sm: 2px;
  --radius-md: 4px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --content-wide: 1360px;
  --header-h: 4rem;
  --sec-pad: clamp(var(--space-16), 9vw, var(--space-32));
}

/* Session de jour */
:root, [data-theme='light'] {
  color-scheme: light;
  --color-bg: var(--color-paper);
  --color-surface: oklch(0.985 0.004 95);
  --color-text: var(--color-ink);
  --color-text-muted: oklch(0.42 0.006 95);
  --color-text-faint: oklch(0.52 0.006 95);
  --color-border: oklch(0.80 0.006 95);
  --color-divider: oklch(0.88 0.006 95);
  --color-focus: var(--color-ink);
  --color-mark: oklch(0.16 0.004 95 / 0.55);
  --color-tile-text: var(--color-accent);
}

/* Session de nuit */
[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: oklch(0.145 0.003 95);
  --color-surface: oklch(0.185 0.003 95);
  --color-text: oklch(0.95 0.004 95);
  --color-text-muted: oklch(0.74 0.005 95);
  --color-text-faint: oklch(0.62 0.005 95);
  --color-border: oklch(0.34 0.004 95);
  --color-divider: oklch(0.25 0.004 95);
  --color-focus: var(--color-accent);
  --color-mark: oklch(0.95 0.004 95 / 0.5);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Socle ---------- */
body { font-feature-settings: 'kern', 'liga', 'calt'; overflow-x: clip; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content-wide)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; font-feature-settings: 'zero', 'tnum'; }
.jp { font-family: var(--font-jp); font-weight: 300; letter-spacing: 0; text-transform: none; }
ul[role='list'] > li, ol[role='list'] > li { max-width: none; }
.muted { color: var(--color-text-muted); }
.faint { color: var(--color-text-faint); }

.skip { position: absolute; left: var(--space-4); top: var(--space-4); z-index: 100; padding: var(--space-3) var(--space-4);
  background: var(--color-accent); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; transform: translateY(-300%); }
.skip:focus { transform: none; }

.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: var(--color-text-faint); padding-inline: 0.12em; margin-inline: -0.12em; }
.link:hover { background: var(--color-accent); color: var(--color-ink); text-decoration-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  background: var(--color-text); color: var(--color-bg); border: 1px solid var(--color-text); border-radius: var(--radius-sm); }
.btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: transparent; border-color: var(--color-text); color: var(--color-text); }
.btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }

kbd { display: inline-grid; place-items: center; min-width: 1.75em; padding: 0.1em 0.45em; font-family: var(--font-mono); font-size: var(--text-xs);
  border: 1px solid var(--color-border); border-bottom-width: 2px; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); }

/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive); view-transition-name: head; }
.head.is-stuck { border-bottom-color: var(--color-divider); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-text); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.brand__tile { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; background: var(--color-black); color: var(--color-accent);
  font-size: 0.95em; line-height: 1; border-radius: var(--radius-sm); }
[data-theme='dark'] .brand__tile { background: var(--color-accent); color: var(--color-ink); }
.nav { display: none; align-items: center; gap: var(--space-8); }
.nav__list { display: flex; gap: var(--space-8); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-text); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition-interactive); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
[data-theme='light'] .nav a::after { background: var(--color-ink); }
.head__tools { display: flex; align-items: center; gap: var(--space-5); padding-left: var(--space-8); border-left: 1px solid var(--color-divider); }
.score { min-width: 2.2em; text-align: right; color: var(--color-text-faint); }
.session { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-text-muted); }
.session:hover { color: var(--color-text); }
.session__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--space-2); margin-right: calc(-1 * var(--space-2)); font-size: var(--text-sm); font-weight: 600; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }

/* Menu mobile */
.menu { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 0; background: var(--color-bg); color: var(--color-text); }
.menu::backdrop { background: var(--color-bg); }
.menu[open] { animation: menu-in 260ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; } }
.menu__in { display: flex; flex-direction: column; height: 100%; padding: 0 var(--gutter) var(--space-8); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu__list { margin-top: var(--space-10); display: grid; }
.menu__list a { display: flex; align-items: baseline; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--color-divider);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); text-transform: uppercase; text-decoration: none; color: var(--color-text); line-height: 1.15; }
.menu__list a .mono { color: var(--color-text-faint); min-width: 2.2em; }
.menu__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }

/* ---------- Héros : la carte ---------- */
.hero { padding-block: var(--space-8) var(--space-12); }
.sheet { position: relative; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-h) - var(--space-8) - var(--space-12)); }
.sheet__run { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); color: var(--color-text-muted); }
.sheet__run > :nth-child(2) { display: none; }
@media (min-width: 720px) { .sheet__run > :nth-child(2) { display: block; } }

/* Repères de coupe */
.cm { position: absolute; width: 0; height: 0; --l: clamp(8px, 1.3vw, 18px); --g: 5px; pointer-events: none; }
.cm::before, .cm::after { content: ''; position: absolute; background: var(--color-mark); }
.cm::before { width: var(--l); height: 1px; }
.cm::after { width: 1px; height: var(--l); }
.cm--tl { top: 0; left: 0; } .cm--tl::before { right: var(--g); top: 0; } .cm--tl::after { bottom: var(--g); left: 0; }
.cm--tr { top: 0; right: 0; } .cm--tr::before { left: var(--g); top: 0; } .cm--tr::after { bottom: var(--g); right: 0; }
.cm--bl { bottom: 0; left: 0; } .cm--bl::before { right: var(--g); bottom: 0; } .cm--bl::after { top: var(--g); left: 0; }
.cm--br { bottom: 0; right: 0; } .cm--br::before { left: var(--g); bottom: 0; } .cm--br::after { top: var(--g); right: 0; }
.hero .cm { --g: 6px; }

.hero__body { margin-block: auto; padding-block: var(--space-10); }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: min(var(--text-hero), 7rem); line-height: 1.12; letter-spacing: -0.012em; text-transform: uppercase; text-wrap: initial; }
.hero h1 .eyebrow { display: block; margin-bottom: var(--space-6); font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); line-height: 1.5; letter-spacing: 0.04em; color: var(--color-text-muted); }
.hero h1 .l { display: block; }
@media (max-width: 719px) { .hero h1 { line-height: 1.14; } .hero h1 .l { display: inline; } }
.hl { background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 46% / 100% 0.94em; color: var(--color-ink); padding-inline: 0.08em; margin-inline: -0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l { animation: line-in 700ms var(--ease-out) both; }
  .hero h1 .l:nth-of-type(2) { animation-delay: 60ms; }
  .hero h1 .l:nth-of-type(3) { animation-delay: 120ms; }
  .hl { animation: hl-in 600ms 420ms var(--ease-out) both; }
}
@keyframes line-in { from { clip-path: inset(0 0 100% 0); opacity: 0.2; } to { clip-path: inset(-10% -2% -10% -2%); opacity: 1; } }
@keyframes hl-in { from { background-size: 0 0.94em; color: inherit; } }

.hero__foot { display: grid; gap: var(--space-8); padding-block: var(--space-6); border-top: 1px solid var(--color-divider); }
.hero__lede { font-size: var(--text-lg); line-height: 1.45; max-width: 44ch; }
@media (min-width: 900px) { .hero__foot { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--space-16); } }

/* Définition */
.def { display: grid; gap: var(--space-2); max-width: 38ch; }
.def__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.def__word { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1; }
.def__jp { font-family: var(--font-jp); font-weight: 300; font-size: var(--text-xl); line-height: 1; }
.def__jp rt { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em; color: var(--color-text-faint); }
  .def__head .mono { text-transform: none; }
.def p { font-size: var(--text-sm); color: var(--color-text-muted); }
.def p b { font-weight: 600; color: var(--color-text); }

/* Barre de contrôle */
.proof { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); color: var(--color-text-faint); }
.bar { display: flex; }
.bar i { width: 0.875rem; height: 0.875rem; background: var(--color-text); }
.bar i:nth-child(2) { opacity: 0.7; } .bar i:nth-child(3) { opacity: 0.45; } .bar i:nth-child(4) { opacity: 0.2; }
.bar i:nth-child(5) { background: var(--color-accent); }
.bar i:nth-child(6) { background: transparent; box-shadow: inset 0 0 0 1px var(--color-border); }
.reg { position: relative; width: 0.875rem; height: 0.875rem; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.reg::before, .reg::after { content: ''; position: absolute; background: currentColor; }
.reg::before { left: -4px; right: -4px; top: 50%; height: 1px; margin-top: -0.5px; }
.reg::after { top: -4px; bottom: -4px; left: 50%; width: 1px; margin-left: -0.5px; }
.proof__r { display: flex; align-items: center; gap: var(--space-4); }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-pad); border-top: 1px solid var(--color-divider); }
.sec__grid { display: grid; gap: var(--space-8); }
.sec__label { display: flex; align-items: baseline; gap: var(--space-3); color: var(--color-text-muted); }
.sec__label .jp { font-size: 1rem; color: var(--color-text); }
@media (min-width: 900px) {
  .sec__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); }
  .sec__label { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--space-8)); align-self: start; }
  .sec__main { grid-column: 4 / -1; }
}
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.14; letter-spacing: -0.005em; text-transform: uppercase; max-width: 18ch; }
.h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 52ch; }
.sec__main > * + * { margin-top: var(--space-8); }
.prose > * + * { margin-top: var(--space-4); }
.prose p { max-width: 62ch; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rv { from { opacity: 0; } }

/* Repères (faits) */
.facts { display: grid; border-top: 1px solid var(--color-text); }
.facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-5); border-bottom: 1px solid var(--color-divider); }
.facts dt { color: var(--color-text-muted); }
.facts dd { font-size: var(--text-base); max-width: 48ch; }
@media (min-width: 720px) { .facts > div { grid-template-columns: 14rem 1fr; gap: var(--space-8); align-items: baseline; } }

/* Expertises : la feuille de match */
.xp { border-top: 1px solid var(--color-text); }
.xp__row { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-5); row-gap: var(--space-2); align-items: baseline;
  padding: var(--space-6) var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; }
.xp__num { display: inline-flex; align-items: baseline; gap: var(--space-2); color: var(--color-text-muted); min-width: 3.6em; }
.xp__num .jp { font-size: 0.9375rem; }
.xp__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.14; text-transform: uppercase; }
.xp__desc { grid-column: 2; font-size: var(--text-base); color: var(--color-text-muted); max-width: 46ch; }
.xp__go { grid-column: 2; color: var(--color-text-muted); }
.xp__row:hover { background: var(--color-accent); color: var(--color-ink); border-bottom-color: var(--color-accent); }
.xp__row:hover :is(.xp__num, .xp__desc, .xp__go) { color: var(--color-ink); }
.xp__row :is(.xp__num, .xp__desc, .xp__go) { transition: color var(--transition-interactive); }
@media (min-width: 1100px) {
  .xp__row { grid-template-columns: 4.5rem minmax(0, 1.7fr) minmax(0, 1fr) auto; column-gap: var(--space-8); padding-block: var(--space-8); }
  .xp__desc, .xp__go { grid-column: auto; }
}

/* Écosystème : la bande noire */
.eco { background: var(--color-black); color: oklch(0.95 0.004 95); border-top: 0; --color-text: oklch(0.95 0.004 95); --color-text-muted: oklch(0.76 0.005 95);
  --color-text-faint: oklch(0.62 0.005 95); --color-divider: oklch(0.26 0.004 95); --color-border: oklch(0.4 0.004 95); --color-focus: var(--color-accent); --color-bg: var(--color-black); --color-surface: oklch(0.16 0.003 95); }
.eco .link:hover { color: var(--color-ink); }
.eco__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.eco__logo { width: 100%; max-width: 13rem; }
.eco__logo img { width: 100%; }
@media (min-width: 900px) { .eco__grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); } .eco__logo { justify-self: center; max-width: 24rem; } }
@media (max-width: 520px) { .tree mark { display: block; width: max-content; margin-left: 4ch; } }
.tree { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.9; color: var(--color-text-muted); white-space: pre; overflow-x: auto; max-width: 100%; }
.tree b { font-weight: 500; color: var(--color-text); }
.tree mark { background: var(--color-accent); color: var(--color-ink); padding-inline: 0.4em; }

.eco .sec__label { position: static; }
.eco .sec__main { grid-column: auto; }
.sec--flush { border-top: 0; }
.cta__grid > * + *, .person > * + * { margin-top: 0; }
.duo__link { margin-top: var(--space-4); }
.prose > .contact__gap { margin-top: var(--space-10); }

/* Listes numérotées */
.nlist { counter-reset: n; border-top: 1px solid var(--color-text); }
.nlist li { counter-increment: n; display: grid; grid-template-columns: 3.6em 1fr; column-gap: var(--space-5); align-items: baseline; padding-block: var(--space-5); border-bottom: 1px solid var(--color-divider); max-width: none; }
.nlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-text-muted); }
.nlist b { display: block; font-weight: 600; font-size: var(--text-lg); line-height: 1.3; }
.nlist span { display: block; margin-top: var(--space-1); color: var(--color-text-muted); max-width: 52ch; }

/* Interlocuteur */
.person { display: grid; gap: var(--space-6); }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.04; text-transform: uppercase; }

/* Appel final */
.cta .h2 { font-size: var(--text-3xl); max-width: 14ch; line-height: 1; }
.cta__grid { display: grid; gap: var(--space-8); align-items: end; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }

/* ---------- Pages intérieures ---------- */
.phead { padding-block: var(--space-8) var(--sec-pad); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--color-text-faint); padding-block: var(--space-4) var(--space-8); }
.crumbs a { color: var(--color-text-muted); text-decoration: none; padding-block: var(--space-3); margin-block: calc(-1 * var(--space-3)); }
.crumbs a:hover { color: var(--color-text); }
.crumbs li { max-width: none; }
.crumbs li + li::before { content: '/'; margin-right: var(--space-2); }
.phead__sheet { position: relative; padding-block: var(--space-12) var(--space-10); display: grid; gap: var(--space-8); }
.phead h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 1.12; letter-spacing: -0.008em; text-transform: uppercase; max-width: 16ch; }
.phead__meta { max-width: none; display: flex; justify-content: space-between; gap: var(--space-4); color: var(--color-text-muted); }
@media (min-width: 900px) { .phead__sheet { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); } .phead__meta { grid-column: 1 / -1; } .phead h1 { grid-column: 1 / span 8; } .phead .lede { grid-column: 1 / span 7; } }

.relay { display: grid; gap: var(--space-2); padding: var(--space-8) var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-block: 1px solid var(--color-text); color: var(--color-text); text-decoration: none; }
.relay b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.14; text-transform: uppercase; }
.relay .mono { color: var(--color-text-muted); transition: color var(--transition-interactive); }
.relay:hover { background: var(--color-accent); color: var(--color-ink); border-color: var(--color-accent); }
.relay:hover .mono { color: var(--color-ink); }

.duo { display: grid; gap: var(--space-10); }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--space-12); } }
.duo > div { padding-top: var(--space-5); border-top: 1px solid var(--color-text); }
.duo .h3 { margin-block: var(--space-3) var(--space-3); }


/* Contact */
.contact { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.form { display: grid; gap: var(--space-5); }
.form label { display: grid; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; }
.form :is(input, select, textarea) { width: 100%; min-height: 3rem; padding: var(--space-3) var(--space-4); font-size: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.form textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.form :is(input, select, textarea):hover { border-color: var(--color-text-faint); }
.form :is(input, select, textarea):focus-visible { outline-offset: 0; border-color: var(--color-text); }
.form__note { font-size: var(--text-sm); color: var(--color-text-muted); }
.mail { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.15; text-decoration: none; color: var(--color-text); overflow-wrap: anywhere;
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 100% / 100% 2px; transition: background-size var(--transition-interactive), color var(--transition-interactive); }
.mail:hover { background-size: 100% 100%; color: var(--color-ink); }

/* ---------- Pied ---------- */
.foot { border-top: 1px solid var(--color-text); padding-block: var(--space-12) var(--space-8); }
.foot__mark { container-type: inline-size; }
.foot__mark p { max-width: none; font-family: var(--font-display); font-weight: 700; font-size: 14.6cqi; line-height: 0.9; letter-spacing: 0.005em; text-transform: uppercase; white-space: nowrap; }
.sign { font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--color-text); background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 50% 55% / 100% 78%; border-radius: 0; padding-inline: 0.04em; }
[data-theme='light'] .sign { color: var(--color-ink); }
[data-theme='dark'] .sign { background: none; color: var(--color-accent); }
.sign.jp { font-family: var(--font-jp); font-weight: 500; font-size: 0.82em; }
.foot__cols { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 720px) { .foot__cols { grid-template-columns: repeat(4, 1fr); } }
.foot__cols h2 { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.foot__cols a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-text); text-decoration: none; font-size: var(--text-sm); }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot__cols li { max-width: none; }
.foot__cols p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 30ch; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-5); border-top: 1px solid var(--color-divider); color: var(--color-text-faint); }
.foot__base .keys { display: none; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-text-faint); }
.foot__base .keys:hover { color: var(--color-text); }
@media (hover: hover) and (pointer: fine) { .foot__base .keys { display: inline-flex; } }

/* ---------- Couches discrètes ---------- */
.keysdlg { width: min(100% - 2 * var(--gutter), 30rem); margin: auto; padding: var(--space-8); border: 1px solid var(--color-text); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); }
.keysdlg::backdrop { background: oklch(0.16 0.004 95 / 0.45); }
.keysdlg[open] { animation: dlg-in 280ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } }
.keysdlg h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); text-transform: uppercase; }
.keysdlg dl { margin-top: var(--space-5); border-top: 1px solid var(--color-divider); }
.keysdlg dl > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--color-divider); font-size: var(--text-sm); }
.keysdlg dt { display: flex; gap: var(--space-1); }
.keysdlg p { margin-top: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.keysdlg form { margin-top: var(--space-6); }

.gridlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; }
.gridlay.is-on { display: block; }
.gridlay__cols { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--space-4); height: 100%; }
.gridlay__cols i { background: oklch(0.9 0.19 102 / 0.22); border-inline: 1px solid oklch(0.75 0.17 100 / 0.5); }
.gridlay__cols i:nth-child(n + 5) { display: none; }
@media (min-width: 900px) { .gridlay__cols { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); } .gridlay__cols i:nth-child(n + 5) { display: block; } }
.gridlay__tag { position: absolute; left: var(--gutter); bottom: var(--space-4); padding: var(--space-1) var(--space-2); background: var(--color-ink); color: var(--color-accent); }

.toast { position: fixed; left: 50%; bottom: var(--space-8); z-index: 95; translate: -50% 0; width: max-content; max-width: calc(100% - 2 * var(--gutter)); padding: var(--space-3) var(--space-5);
  background: var(--color-ink); color: oklch(0.95 0.004 95); border: 1px solid var(--color-accent); border-radius: var(--radius-sm); font-size: var(--text-sm);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in); }
.toast.is-on { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }

.inter { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; align-content: center; gap: var(--space-4); background: var(--color-accent); color: var(--color-ink);
  opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-in), visibility 0s 320ms; text-align: center; }
.inter.is-on { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-out); }
.inter .jp { font-size: clamp(6rem, 26vw, 20rem); line-height: 1; font-weight: 300; }
.inter p { max-width: none; }

/* 404 */
.out { min-height: calc(100dvh - var(--header-h)); display: grid; align-content: center; gap: var(--space-6); padding-block: var(--space-16); }
.out h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-hero); line-height: 0.95; text-transform: uppercase; }
.out__line { height: 2px; background: var(--color-text); position: relative; max-width: 28rem; }
.out__line::after { content: ''; position: absolute; left: calc(100% + 1.25rem); top: -0.45rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px var(--color-ink); }

/* ---------- Planches photo ---------- */
.psec { padding-block: 0 var(--sec-pad); }
.psec--band { padding-block: var(--space-4) var(--sec-pad); }
.plate { position: relative; display: grid; gap: var(--space-3); }
.plate__img { position: relative; background: var(--color-divider); }
.plate__img .cm { display: none; --g: 6px; }
.plate img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.plate figcaption { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-6); color: var(--color-text-muted); }
.plate figcaption > :first-child { color: var(--color-text); }
.psec--band .plate img { object-position: 50% 42%; }
@media (min-width: 720px) { .psec--band .plate img { aspect-ratio: 12 / 5; } }
@media (min-width: 900px) {
  .plate--grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); align-items: start; }
  .plate--grid .plate__img { grid-column: 4 / -1; grid-row: 1; }
  .plate--grid .plate__img :is(.cm--tl, .cm--tr) { display: block; }
  .plate--grid figcaption { grid-column: 1 / span 3; grid-row: 1; flex-direction: column; justify-content: flex-start; gap: var(--space-1); }
}
.plates { display: grid; gap: var(--space-8); }
@media (min-width: 720px) { .plates { grid-template-columns: 1fr 1fr; } }

/* ---------- Impression : la carte, pour de vrai ---------- */
@media print {
  :root { --color-bg: #fff; --color-text: #000; --color-text-muted: #333; --color-text-faint: #555; }
  .head, .menu, .keysdlg, .gridlay, .toast, .inter, .foot__base .keys, .skip { display: none !important; }
  .sheet { min-height: 0; }
  .sec { padding-block: 2rem; break-inside: avoid; }
  .eco { background: #fff; color: #000; --color-text: #000; --color-text-muted: #333; }
  .eco__logo { display: none; }
  .plate { break-inside: avoid; } .psec { padding-block: 0 2rem; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* Écrans tactiles : zone d'appui élargie autour des liens de texte, rendu identique. */
@media (pointer: coarse) {
  .link { position: relative; }
  .link::after { content: ""; position: absolute; inset: -0.75em -0.4em; }
}
