/* BenchForAll — refonte du 22/11/2026 (direction « sobre, le produit en vedette ») : blanc, encre,
   un seul orange réservé aux accents. Boutons noirs, titres en casse normale. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-variable.de2f1fe81758.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400.79936b18df9f.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-600.5a2ce7798732.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f6; --ink: #0c0c0d; --ink-2: #3d3d42; --muted: #5d5d66;
  --line: #ececf0; --line-strong: #d4d4da;
  --signal: #ff5a1f;
  --brand: #0c0c0d; --brand-hover: #2e2e33; --brand-strong: #b93a0b; --brand-soft: #ffe6db; --on-brand: #ffffff;
  --copper: #b93a0b; --copper-soft: #ffe6db;
  --ok: #1d7a46; --warn: #9a5b00; --danger: #b3261e; --focus: #ff5a1f;
  --night: #0c0c0d; --night-2: #1a1a1c; --on-night: #ffffff; --night-muted: #b9b9c2;
  --r-sm: 6px; --r-md: 8px; --r-lg: 14px; --r-xl: 20px; --r-pill: 8px;
  --shadow-1: 0 1px 0 rgba(20, 20, 20, 0.05);
  --shadow-2: 0 14px 30px -16px rgba(20, 20, 20, 0.28), 0 2px 4px rgba(20, 20, 20, 0.06);
  --shadow-3: 0 30px 60px -28px rgba(20, 20, 20, 0.45);
  --display: "Archivo", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --text: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure: 66ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --surface: #1a1a1a; --surface-2: #232323; --ink: #f4f2ee; --ink-2: #d2d0cb; --muted: #a3a6ac;
    --line: #2c2c2c; --line-strong: #3d3d3d;
    --brand: #f4f4f6; --brand-hover: #ffffff; --brand-strong: #ff8a5c; --brand-soft: #2a1a12; --on-brand: #0c0c0d;
    --copper: #ff8a5c; --copper-soft: #2a1a12; --ok: #5cc48a; --warn: #e2a85a; --danger: #f08a80; --focus: #ff8a5c;
    --night: #0a0a0a; --night-2: #171717;
    --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.6); --shadow-3: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; font-stretch: 100%; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.55em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--surface); padding: 0.6rem 1rem; border-radius: var(--r-sm); }
.wrap { width: min(76rem, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 34rem) { .wrap { width: calc(100% - 2rem); } }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted, .helptext { color: var(--muted); }
.helptext, small.helptext { display: block; font-size: 0.92rem; margin-top: 0.3rem; }

/* Boutons */
.button, button[type="submit"]:not(.link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.65rem 1.25rem;
  border: 1.5px solid var(--brand); border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand);
  font: 600 0.98rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.button:hover, button[type="submit"]:not(.link):hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.button:active, button[type="submit"]:active { transform: translateY(1px); }
/* « button[type=submit].secondary » : sans lui, la règle des boutons d'envoi (plus spécifique)
   gardait les boutons secondaires en orange plein (constat du 15/11/2026, Mon compte). */
.button.secondary, button.secondary, button[type="submit"].secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover, button.secondary:hover, button[type="submit"].secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink); }
/* Action rare ou lourde de conséquences : lien discret plutôt que bouton (confirmation gardée). */
button.link { background: none; border: 0; padding: 0; margin: 0; min-height: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.danger { color: var(--danger); font-size: 0.93rem; }
button.link:hover { color: var(--ink); }
button.link.danger:hover { color: var(--danger); text-decoration-thickness: 2px; }
.button.lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1.06rem; }
.button.small, button.small { min-height: 38px; padding: 0.4rem 0.95rem; font-size: 0.93rem; }
.button[aria-disabled="true"], button:disabled { opacity: 0.5; cursor: not-allowed; }
form button[type="submit"] { margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.actions form button[type="submit"] { margin-top: 0; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.brand b { font-weight: inherit; color: inherit; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a:not(.button) { color: var(--ink-2); text-decoration: none; padding: 0.55rem 0.8rem; border-radius: var(--r-pill); font-weight: 500; font-size: 0.96rem; }
.nav a:not(.button):hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav form { margin: 0; }
.nav form button[type="submit"] { margin: 0; }
.nav .sep { width: 1px; height: 1.5rem; background: var(--line); margin: 0 0.5rem; }
/* Sélecteur de langue (lot 548) : FR | NL, langue active marquée. */
.lang-switch { display: inline-flex; gap: 0.1rem; }
.nav .lang-switch a:not(.button), .menu-panel .lang-switch a:not(.button) { padding: 0.4rem 0.55rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--ink); }
.footer-note { font-size: 0.82rem; margin: 0.75rem 0 0; }
.menu { display: none; }
@media (max-width: 62rem) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font-weight: 700; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 0.6rem); width: min(20rem, calc(100vw - 2rem)); flex-direction: column; gap: 0.15rem; padding: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
  .menu-panel a:not(.button) { color: var(--ink); text-decoration: none; padding: 0.75rem 0.9rem; border-radius: var(--r-sm); font-weight: 700; }
  .menu-panel a:not(.button):hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); }
  .menu-panel .button, .menu-panel button { width: 100%; margin-top: 0.4rem; }
  .menu-panel form { margin: 0; }
}

/* Sections */
main { display: block; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.night { background: var(--night); color: var(--on-night); }
.section.night h2, .section.night h3 { color: #fff; }
.section.night .muted, .section.night p { color: var(--night-muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-2); font-size: 1.12rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.55rem; font: 600 0.9rem/1.2 var(--text); color: var(--brand-strong); margin-bottom: 0.7rem; }
.kicker::before { display: none; }
.section.night .kicker { color: var(--signal); }

/* Haut de page */
.hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; }
@media (max-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 34rem; }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--ink-2); font-size: 0.97rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 1.1rem; height: 1.1rem; color: var(--brand-strong); flex: none; }

/* Fenêtre d'application reconstituée */
.stage { position: relative; padding: 0 0 11rem 0; }
.app-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; font-size: 0.86rem; }
.app-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-bar .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-strong); }
.app-bar .url { flex: 1; margin-left: 0.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.25rem 0.75rem; color: var(--muted); font-size: 0.78rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-body { display: grid; grid-template-columns: 9.5rem 1fr; min-height: 19rem; }
.app-tabs { display: flex; gap: 0.1rem; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; font-size: 0.72rem; }
.app-tabs span { padding: 0.35rem 0.45rem; border-radius: var(--r-md); color: var(--ink-2); font-weight: 600; }
.app-tabs span.on { background: var(--ink); color: var(--surface); }
.app-mock > .app-main { min-height: 17rem; }
.app-mock > .app-main .app-kpis { grid-template-columns: repeat(3, 1fr); }
.app-row .what b { color: var(--ink); font-weight: 600; }
.chip.pill { border-radius: 999px; padding: 0.2rem 0.6rem; font: 600 0.72rem/1.25 var(--text); letter-spacing: 0; text-transform: none; }
.chip.parts { background: #fdf0d5; color: #7a4a00; }
@media (prefers-color-scheme: dark) { .chip.parts { background: #33260c; color: #e2a85a; } }
.ticket-kicker { margin: 0 0 0.35rem; font: 600 0.66rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); }
.ticket-note { margin: 0.7rem 0; padding: 0.55rem 0.65rem; background: var(--surface-2); border-radius: var(--r-md); color: var(--ink); }
.ticket-line { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; font-size: 0.7rem; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 0.32rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 0.3rem; }
.progress li.done::before { background: var(--ink); border-color: var(--ink); }
.progress li.now { color: var(--ink); font-weight: 700; }
.progress li.now::before { background: var(--signal); border-color: var(--signal); }
@media (max-width: 34rem) { .app-tabs span:nth-child(n+5) { display: none; } .app-mock > .app-main .app-kpis { grid-template-columns: repeat(2, 1fr); } }
.app-side { border-right: 1px solid var(--line); padding: 0.9rem 0.6rem; display: grid; align-content: start; gap: 0.2rem; }
.app-side span { padding: 0.45rem 0.6rem; border-radius: 7px; color: var(--muted); font-weight: 700; }
.app-side span.on { background: var(--ink); color: var(--surface); }
.app-main { padding: 0.9rem 1rem; display: grid; align-content: start; gap: 0.75rem; }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.app-kpis div { background: var(--surface-2); border-radius: 9px; padding: 0.5rem 0.6rem; }
.app-kpis b { display: block; font: 900 1.25rem/1.1 var(--display); font-stretch: 112%; }
.app-kpis small { color: var(--muted); font-size: 0.72rem; }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 10px; }
.app-row .ref { font-family: var(--mono); font-weight: 600; font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-row .what { color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 34rem) { .app-body { grid-template-columns: 1fr; } .app-side { display: none; } .app-kpis { grid-template-columns: repeat(2, 1fr); } .app-row { grid-template-columns: 1fr auto; } .app-row .what { display: none; } }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.5rem; border-radius: 3px; font: 600 0.7rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.chip::before { display: none; }
.chip.new { background: #e7eefc; color: #2a52b0; }
.chip.diag { background: #f2eafc; color: #6a3fb0; }
.chip.wait { background: var(--signal); color: #141414; }
.chip.work { background: var(--ink); color: var(--surface); }
.chip.done { background: #e3f4ea; color: var(--ok); }
@media (prefers-color-scheme: dark) { .chip.new { background: #1b2742; color: #8fb0f5; } .chip.diag { background: #2a1f3d; color: #c3a3f0; } .chip.done { background: #13301f; color: var(--ok); } }

/* Fiche d'intervention flottante */
.ticket { position: absolute; right: -0.5rem; bottom: 0; width: min(17.5rem, 70%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 1rem 1.1rem 1.1rem; font-size: 0.86rem; }
@media (max-width: 62rem) { .ticket { right: 0; } }
@media (max-width: 34rem) { .stage { padding-bottom: 0; } .ticket { position: static; width: 100%; margin-top: 1rem; } }
.ticket-ref { font: 600 0.92rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.ticket-device { margin: 0.15rem 0 0.75rem; color: var(--muted); }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.track li { position: relative; padding: 0.18rem 0 0.18rem 1.5rem; color: var(--muted); }
.track li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55rem; width: 0.62rem; height: 0.62rem; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.track li::after { content: ""; position: absolute; left: 0.5rem; top: 1.2rem; bottom: -0.55rem; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--ink); border-color: var(--ink); }
.track li.now { color: var(--ink); font-weight: 700; }
.track li.now::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px var(--brand-soft); }

/* Blocs fonctionnels */
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-1); }
.card h3 { margin-top: 1.1rem; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.vignette { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.85rem; font-size: 0.85rem; display: grid; gap: 0.45rem; }
.vignette .line { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0.55rem; background: var(--surface); border-radius: 7px; }
.vignette .line b { font-variant-numeric: tabular-nums; }
.vignette .total { border-top: 1.5px dashed var(--line-strong); padding-top: 0.45rem; display: flex; justify-content: space-between; font-weight: 700; }
.icon { width: 2.6rem; height: 2.6rem; border-radius: var(--r-md); display: grid; place-items: center; background: var(--ink); color: var(--surface); }
.icon svg { width: 1.35rem; height: 1.35rem; }

/* Parcours (vraie séquence : numérotée) */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 1.35rem; left: 2rem; right: 2rem; height: 2px; background: var(--ink); opacity: 0.2; }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: var(--r-md); background: var(--ink); border: 2px solid var(--ink); color: var(--surface); font: 600 1.05rem/1 var(--mono); margin-bottom: 1rem; }
.steps li:last-child::before { background: var(--signal); border-color: var(--signal); color: #141414; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
@media (max-width: 62rem) { .steps { grid-template-columns: 1fr; gap: 1.4rem; } .steps::before { top: 1rem; bottom: 1rem; left: 1.3rem; right: auto; width: 2px; height: auto; } .steps li { padding-left: 3.8rem; } .steps li::before { position: absolute; left: 0; top: 0; margin: 0; } }

/* Téléphone */
.phone { width: min(18rem, 100%); margin-inline: auto; border-radius: 2.2rem; padding: 0.7rem; background: #141414; box-shadow: var(--shadow-3); }
.phone-screen { border-radius: 1.65rem; background: var(--surface); overflow: hidden; padding: 1rem 0.8rem 1.2rem; display: grid; gap: 0.55rem; font-size: 0.84rem; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.phone-card { border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.7rem; display: grid; gap: 0.25rem; }
.phone-card .ref { font-weight: 700; }
.phone-card .chip { justify-self: start; }
.phone-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.55rem; text-align: center; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.phone-tabs .on { color: var(--brand-strong); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23b93a0b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.9rem no-repeat; }

/* Bande de confiance (sombre) */
.trust-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.trust-item { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); padding: 1.3rem; background: var(--night-2); }
.trust-item h3 { font-size: 1.08rem; margin: 0.9rem 0 0.4rem; }
.trust-item p { font-size: 0.97rem; margin: 0; }
.trust-item .icon { background: var(--signal); color: #141414; }

/* Calculateur de prix */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); overflow: hidden; }
@media (max-width: 52rem) { .calc { grid-template-columns: 1fr; } }
.calc-controls { padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.5rem; align-content: start; }
.calc-result { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface-2); border-left: 1px solid var(--line); display: grid; align-content: center; gap: 0.35rem; }
@media (max-width: 52rem) { .calc-result { border-left: 0; border-top: 1px solid var(--line); } }
.calc label, .calc legend { font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; padding: 0; }
.calc output.seats { font: 600 1.5rem/1 var(--mono); color: var(--ink); }
.calc input[type="range"] { width: 100%; accent-color: var(--signal); height: 2rem; margin: 0.4rem 0 0; }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.82rem; }
.segmented { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.25rem; margin-top: 0.5rem; width: 100%; max-width: 24rem; }
.segmented label { justify-content: center; position: relative; cursor: pointer; border-radius: var(--r-pill); padding: 0.55rem 0.8rem; font-weight: 700; color: var(--ink-2); min-height: 42px; align-items: center; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.badge-save { display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.4rem; border-radius: 3px; background: var(--signal); color: #141414; font: 600 0.72rem/1.2 var(--mono); }
.price-big { font: 600 clamp(2.6rem, 2rem + 2.5vw, 3.8rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-weight: 700; }
.price-first { margin-top: 0.75rem; padding: 0.7rem 0.85rem; background: var(--copper-soft); border-radius: var(--r-md); color: var(--ink); font-size: 0.97rem; }
.price-first b { color: var(--brand-strong); }

/* Tableaux de données */
.price-table, .data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 0.97rem; }
.price-table th, .price-table td, .data-table th, .data-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th, .data-table thead th { background: var(--surface-2); color: var(--ink-2); font: 600 0.74rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.price-table tbody tr:last-child > *, .data-table tbody tr:last-child > * { border-bottom: 0; }
.price-table td.amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbd { color: var(--muted); font-style: italic; font-weight: 400; }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }

/* Formulaires et cartes de compte */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); max-width: 42rem; box-shadow: var(--shadow-1); }
label { display: block; font-weight: 700; margin: 1rem 0 0.35rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 45%, transparent); }
textarea { min-height: 8rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 1.1rem; height: 1.1rem; margin-right: 0.45rem; vertical-align: -0.15rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
legend { font-weight: 700; margin-bottom: 0.35rem; }
.errorlist { list-style: none; padding: 0; margin: 0.35rem 0 0; color: var(--danger); font-size: 0.95rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-shell { display: grid; place-items: start center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.auth-card { width: min(30rem, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.auth-card form button[type="submit"] { width: 100%; }
.auth-card ul:not(.errorlist) { padding-left: 1.1rem; color: var(--muted); font-size: 0.93rem; }
.auth-aside { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted); text-align: center; }

/* Espace abonné, support, console */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.15rem, 2.5vw, 1.6rem); margin: 0 0 1.25rem; box-shadow: var(--shadow-1); }
.panel h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.panel > :last-child { margin-bottom: 0; }
.panels { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.panels .panel { margin: 0; }
.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.5rem 1.25rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.55rem; } }
.links-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; list-style: none; }
.columns { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.plain-list { padding-left: 1.15rem; }
.plain-list li { margin: 0.35rem 0; }
.note { border-left: 3px solid var(--copper); padding: 0.75rem 1rem; background: var(--copper-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; max-width: var(--measure); color: var(--ink); }
.draft-banner { background: var(--copper-soft); border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent); border-radius: var(--r-md); padding: 0.8rem 1rem; max-width: var(--measure); }
.messages { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; }
.messages li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--signal); padding: 0.8rem 1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-1); }
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.6rem; padding: 0 1.1rem; max-width: 52rem; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); color: var(--brand-strong); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 1rem; }
.cta-band { background: var(--night); color: #fff; border-top: 6px solid var(--signal); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0; max-width: 24ch; }
.cta-band p { color: var(--night-muted); margin: 0.6rem 0 0; }
.cta-band .button { background: var(--signal); color: #141414; border-color: var(--signal); }
.cta-band .button:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #141414; }
@media (prefers-color-scheme: dark) { .cta-band { background: var(--night-2); } }

/* Console opérateur */
.op-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.35rem; margin-bottom: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.op-nav a { color: var(--ink-2); text-decoration: none; padding: 0.5rem 1rem; border-radius: var(--r-pill); font-weight: 700; }
.op-nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin-bottom: 2rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-1); }
.kpi a { color: inherit; text-decoration: none; }
.kpi span { display: block; color: var(--muted); font-size: 0.93rem; }
.kpi strong { display: block; font: 900 2rem/1.15 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.sla { font-weight: 700; white-space: nowrap; }
.sla-breached, .sla.sla-breached { color: var(--danger); }
.sla-at_risk { color: var(--warn); }
.sla-paused, .sla-met { color: var(--muted); }
.sla-ok { color: var(--ok); }
.internal-note { background: var(--copper-soft); border-style: dashed; }
.problem { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.problem:last-child { border-bottom: 0; }
.problem p { margin: 0; }
.problem form button[type="submit"] { margin: 0; }
.thread { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.9rem 1.1rem; }
.msg.staff { border-left: 4px solid var(--signal); }
.msg-meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.35rem; }
.msg-body { white-space: pre-wrap; margin: 0; }
.event { color: var(--muted); font-size: 0.9rem; padding-left: 1rem; border-left: 2px solid var(--line); }

/* Code QR de la double authentification : noir sur blanc, zone calme, lisible en mode sombre. */
img[src^="data:image/svg+xml"] { background: #fff; padding: 16px; border-radius: var(--r-md); width: 240px; max-width: 100%; height: auto; margin: 0.5rem 0 1rem; }

/* Pied de page */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 5vw, 4rem) 2rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: var(--ink); font-size: 0.98rem; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); border-radius: 6px; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.95rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.88rem; }

/* Mon compte › Abonnement : une section par sujet, un seul bouton plein. */
.plan-section { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.seats-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.seats-row select { flex: 1 1 14rem; }
.seats-form .seats-row button[type="submit"] { margin-top: 0; }
.pending-change { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.pending-change form button[type="submit"], .interval-change form button[type="submit"], .plan-actions form button[type="submit"] { margin-top: 0; }
.plan-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }


/* ===== Refonte du 22/11/2026 : composants de l'accueil ===== */
.v2-center { text-align: center; }
.v2-center h2, .v2-center .lead { margin-inline: auto; }
.v2-center h2 { max-width: 24ch; }
.v2-center .lead { max-width: 38rem; }
.v2-hero { padding-block: clamp(2.5rem, 5vw, 4rem) 0; text-align: center; }
.v2-hero h1 { max-width: 21ch; margin: 1rem auto 0.9rem; }
.v2-hero .lead { max-width: 37rem; margin-inline: auto; }
.v2-hero .actions { justify-content: center; }
.v2-proof { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.v2-proof::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--signal); }
.v2-frame { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); background: var(--night); border-radius: clamp(1rem, 2vw, 1.5rem); padding: clamp(1rem, 3.5vw, 2.75rem) clamp(0.75rem, 4vw, 3rem) 0; overflow: hidden; }
.v2-frame::before { content: ""; position: absolute; left: 20%; right: 20%; top: -7.5rem; height: 16rem; background: radial-gradient(closest-side, rgba(255, 90, 31, 0.55), transparent); filter: blur(30px); pointer-events: none; }
.v2-tabs { position: relative; display: flex; justify-content: center; gap: 0.35rem; margin-bottom: clamp(0.9rem, 2vw, 1.5rem); overflow-x: auto; scrollbar-width: none; }
.v2-tabs button { flex: none; min-height: 0; margin: 0; padding: 0.5rem 0.9rem; border: 0; border-radius: 999px; background: transparent; color: #a9a9b2; font: 500 0.92rem/1.2 var(--text); cursor: pointer; }
.v2-tabs button:hover { color: #fff; background: transparent; }
.v2-tabs button[aria-selected="true"] { background: #fff; color: #0c0c0d; }
@media (max-width: 40rem) { .v2-tabs { justify-content: flex-start; } }
.v2-frame img { position: relative; width: 100%; height: auto; border-radius: 0.75rem 0.75rem 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.v2-frame img[hidden] { display: none; }
.v2-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); text-align: center; }
.v2-facts li { max-width: none; padding: 1.75rem 1rem; border-right: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.v2-facts li:last-child { border-right: 0; }
.v2-facts b { display: block; color: var(--ink); font: 600 1.15rem/1.3 var(--display); }
@media (max-width: 52rem) { .v2-facts { grid-template-columns: 1fr 1fr; } .v2-facts li { border-bottom: 1px solid var(--line); padding: 1.1rem 0.6rem; } .v2-facts li:nth-child(2n) { border-right: 0; } }
.v2-steps { list-style: none; counter-reset: v2s; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); text-align: left; }
.v2-steps li { counter-increment: v2s; padding: 1.25rem 1.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.v2-steps li::before { content: counter(v2s, decimal-leading-zero); display: block; color: var(--brand-strong); font-weight: 600; font-size: 0.88rem; }
.v2-steps b { display: block; color: var(--ink); font: 600 1.2rem/1.3 var(--display); margin: 0.2rem 0 0.25rem; }
@media (max-width: 62rem) { .v2-steps { grid-template-columns: 1fr; border-top: 0; margin-top: 1.25rem; } .v2-steps li { border-top: 1px solid var(--line); padding: 0.9rem 0; } }
.v2-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.v2-split + .v2-split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.v2-split.flip > :first-child { order: 2; }
.v2-split img { width: 100%; height: auto; border-radius: var(--r-xl); border: 1px solid var(--line); }
.v2-split h2 { margin-bottom: 0.4em; }
.v2-split p:not(.kicker) { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 52rem) { .v2-split { grid-template-columns: 1fr; } .v2-split.flip > :first-child { order: 0; } }
.v2-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.v2-list li { position: relative; padding: 0.8rem 0 0.8rem 1.6rem; border-top: 1px solid var(--line); }
.v2-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand-strong); font-weight: 700; }
.v2-dark { background: var(--night); color: #fff; border-radius: clamp(1.25rem, 2.5vw, 1.75rem); padding: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
.v2-dark h2 { color: #fff; }
.v2-dark p:not(.kicker):not(.name) { color: var(--night-muted); font-size: 1.08rem; }
.v2-dark .kicker { color: #ff8a5c; }
.v2-dark .button { background: #fff; border-color: #fff; color: #0c0c0d; }
.v2-dark .button:hover { background: #e9e9ee; border-color: #e9e9ee; color: #0c0c0d; }
@media (max-width: 52rem) { .v2-dark { grid-template-columns: 1fr; } }
.v2-track { justify-self: center; width: min(24rem, 100%); background: #fff; color: #0c0c0d; border-radius: 1.1rem; padding: 1.4rem; font-size: 0.92rem; }
.v2-track small { color: #5d5d66; }
.v2-track .name { font: 600 1.25rem/1.3 var(--display); margin: 0.1rem 0 0.9rem; color: #0c0c0d; }
/* Carte toujours blanche, même en thème sombre : couleurs fixes (sinon « Pris en charge » devenait
   blanc sur blanc, constat de Ludovic du 22/11/2026). */
.v2-track .progress { color: #5d5d66; }
.v2-track .progress li::before { background: #e3e3e8; border-color: #e3e3e8; }
.v2-track .progress li.done::before { background: #0c0c0d; border-color: #0c0c0d; }
.v2-track .progress li.now { color: #0c0c0d; }
.v2-track .progress li.now::before { background: #ff5a1f; border-color: #ff5a1f; }
.v2-track b { color: #0c0c0d; }
.v2-track .row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-top: 1px solid #ececf0; margin-top: 0.8rem; }
.v2-track .ok { display: inline-block; background: #e7f6ec; color: #17603a; font-weight: 600; font-size: 0.8rem; border-radius: 999px; padding: 0.2rem 0.65rem; }
.v2-grid3 { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); text-align: left; }
.v2-grid3 li { max-width: none; padding: 1.6rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.97rem; }
.v2-grid3 b { display: block; color: var(--ink); font: 600 1.15rem/1.3 var(--display); margin-bottom: 0.25rem; }
@media (max-width: 52rem) { .v2-grid3 { grid-template-columns: 1fr; } .v2-grid3 li { padding: 1.1rem 0; } }
.v2-price { margin-top: 2.25rem; text-align: left; }
.v2-faq { max-width: 49rem; margin: 2rem auto 0; text-align: left; border-bottom: 1px solid var(--line); }
.v2-faq details { border-top: 1px solid var(--line); }
.v2-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font: 600 1.1rem/1.35 var(--display); }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after { content: "+"; color: var(--brand-strong); font-weight: 600; }
.v2-faq details[open] summary::after { content: "−"; }
.v2-faq details p { margin: -0.3rem 0 1.2rem; color: var(--ink-2); }
.v2-faq .all { display: flex; justify-content: space-between; padding: 1.2rem 0; border-top: 1px solid var(--line); font: 600 1.1rem/1.35 var(--display); text-decoration: none; }
.v2-final { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: clamp(1.25rem, 2.5vw, 1.75rem); padding: clamp(2.75rem, 7vw, 4.5rem) 1.5rem; text-align: center; }
.v2-final::before { content: ""; position: absolute; left: 25%; right: 25%; bottom: -9rem; height: 16rem; background: radial-gradient(closest-side, rgba(255, 90, 31, 0.5), transparent); filter: blur(30px); }
.v2-final h2 { position: relative; color: #fff; max-width: 20ch; margin-inline: auto; }
.v2-final p { position: relative; color: var(--night-muted); margin-inline: auto; }
.v2-final .actions { position: relative; justify-content: center; }
.v2-final .button { background: #fff; border-color: #fff; color: #0c0c0d; }
.v2-final .button:hover { background: #e9e9ee; border-color: #e9e9ee; color: #0c0c0d; }
@media (prefers-color-scheme: dark) { .v2-frame, .v2-dark, .v2-final { box-shadow: 0 0 0 1px #2c2c2c; } }

/* ===== Guide d'utilisation (/aide/, 22/11/2026) : écrit pour des débutants ===== */
.g-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 62rem) { .g-layout { grid-template-columns: 1fr; } }
.g-side { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; font-size: 0.93rem; }
@media (max-width: 62rem) { .g-side { position: static; max-height: none; } }
.g-toc summary { cursor: pointer; font-weight: 600; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-md); list-style: none; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc summary::after { content: " ▾"; color: var(--muted); }
@media (min-width: 62rem) { .g-toc summary { display: none; } }
.g-toc ol { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.g-toc li { max-width: none; }
.g-toc a { display: block; padding: 0.32rem 0.6rem; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.g-toc a:hover { background: var(--surface-2); color: var(--ink); }
.g-toc a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--signal); }
.g-part { margin: 1rem 0 0.3rem; padding-left: 0.6rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.g-home { margin: 0.6rem 0 0; }
.g-home a { font-weight: 600; }
.g-main { min-width: 0; max-width: 50rem; }
.g-main > .lead { margin-bottom: 1.5rem; }
.g-crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.g-crumb a { color: var(--muted); }
.g-main h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 2.75rem 0 0.8rem; scroll-margin-top: 5.5rem; }
.g-main h3 { margin: 1.6rem 0 0.5rem; scroll-margin-top: 5.5rem; }
.g-main p, .g-main li { line-height: 1.7; }
.g-main ul:not(.g-steps):not(.links-row), .g-main ol:not(.g-steps) { padding-left: 1.3rem; }
.g-main li + li { margin-top: 0.3rem; }
.g-intro { background: var(--surface-2); border-radius: var(--r-lg); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.g-intro b { display: block; margin-bottom: 0.3rem; }
.g-intro ul { margin: 0; }
.g-toc-local { border-left: 2px solid var(--line); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 2rem; font-size: 0.95rem; }
.g-toc-local p { margin: 0 0 0.3rem; font-weight: 600; }
.g-toc-local ol { margin: 0; }
.g-steps { list-style: none; counter-reset: gs; margin: 1.25rem 0; padding: 0; }
.g-steps > li { counter-increment: gs; position: relative; padding: 0 0 1.6rem 3rem; max-width: none; }
.g-steps > li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.g-steps > li::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.3rem; bottom: 0.3rem; width: 2px; background: var(--line); }
.g-steps > li:last-child::after { display: none; }
.g-steps > li > b:first-child { display: block; font-size: 1.06rem; margin-bottom: 0.2rem; padding-top: 0.2rem; }
.g-fig { margin: 1rem 0 1.25rem; }
.g-fig img { width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.35); background: #fff; }
.g-fig.narrow img { max-width: 22rem; }
.g-fig figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.45rem; }
.ui { display: inline-block; padding: 0.02rem 0.45rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font-weight: 600; font-size: 0.93em; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }
.g-box { border-radius: var(--r-lg); padding: 0.95rem 1.15rem; margin: 1.25rem 0; border: 1px solid var(--line); }
.g-box > :last-child { margin-bottom: 0; }
.g-box b.t { display: block; margin-bottom: 0.25rem; }
.g-box.tip { background: #eef4ff; border-color: #cfdcfb; }
.g-box.warn { background: #fff6e5; border-color: #f2d49a; }
.g-box.why { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { .g-box.tip { background: #172033; border-color: #2a3a5c; } .g-box.warn { background: #2b2111; border-color: #5a4218; } }
.g-glossary dt { font-weight: 700; margin-top: 1.1rem; scroll-margin-top: 5.5rem; }
.g-glossary dd { margin: 0.15rem 0 0; color: var(--ink-2); line-height: 1.65; }
.g-glossary .letter { margin-top: 2rem; font: 600 1.4rem/1 var(--display); color: var(--brand-strong); }
.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.g-pager a { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.9rem 1.1rem; text-decoration: none; font-weight: 600; }
.g-pager a:hover { border-color: var(--ink); }
.g-pager small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.g-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 34rem) { .g-pager { grid-template-columns: 1fr; } .g-pager .next { grid-column: 1; } }
.g-help { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.g-search { max-width: 40rem; margin: 1.5rem 0 2.5rem; }
.g-search label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.g-search input { width: 100%; font-size: 1.05rem; padding: 0.85rem 1rem; }
.g-parts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.g-partcard { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.25rem 1.35rem; }
.g-partcard h2 { font-size: 1.25rem; display: flex; gap: 0.6rem; align-items: center; margin: 0 0 0.6rem; }
.g-partcard h2 span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.9rem; }
.g-partcard ol { list-style: none; margin: 0; padding: 0; }
.g-partcard li { max-width: none; border-top: 1px solid var(--line); }
.g-partcard a { display: block; padding: 0.7rem 0; text-decoration: none; }
.g-partcard a b { display: block; color: var(--ink); }
.g-partcard a span { display: block; font-size: 0.92rem; color: var(--muted); }
.g-partcard a:hover b { text-decoration: underline; text-decoration-color: var(--signal); }
.g-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.g-table th, .g-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table th { background: var(--surface-2); font-weight: 600; }
@media (max-width: 40rem) { .g-table { display: block; overflow-x: auto; font-size: 0.9rem; } .g-table th, .g-table td { padding: 0.5rem; } }
