/*
Theme Name:   SlotMetrics
Theme URI:    https://slotmetrics.fr
Author:       SlotMetrics
Description:  Thème bloc du site SlotMetrics — chronométrage et direction de course pour circuits de slot DaVic. Charte « SlotMetrics » : orange DSR, Barlow Condensed, Barlow, JetBrains Mono.
Version:      1.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  slotmetrics
*/

/* ================================================================ jetons */
:root {
  --surface: #f5f4f0;
  --surface-raised: #ffffff;
  --line: #dcdad4;
  --ink: #15171b;
  --ink-muted: #585e68;
  --brand: #ff7300;
  --brand-ink: #b04d00;
  --on-brand: #111316;
  --accent: #1f4fd1;
  --best-lap: #7a2fd6;
  --personal-best: #167a3a;

  --d-surface: #111316;
  --d-raised: #1b1e23;
  --d-line: #2e333a;
  --d-ink: #f1f0eb;
  --d-muted: #a2a8b1;
  --d-best: #b78cff;
  --d-pb: #4cc97a;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ================================================================ base et neutralisation de Gutenberg */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
figure, figure.wp-block-image { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1; margin: 0; letter-spacing: -.005em; }
a { color: var(--brand-ink); }
code { font: 500 .9em var(--font-mono); background: none; padding: 0; font-variant-numeric: tabular-nums; }
mark { background: #ffe2c7; color: var(--ink); padding: 0 .2em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 600 12px/16px var(--font-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-muted); }

/* ================================================================ boutons (core/button) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button.btn-brand, .wp-block-button.btn-ghost, .wp-block-button.btn-dark { display: inline-block; background: none; border: 0; padding: 0; border-radius: 0; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius-md); font: 600 17px/1 var(--font-sans); text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; white-space: nowrap; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.btn-brand .wp-block-button__link { background: var(--brand); color: var(--on-brand); }
.wp-block-button.btn-brand .wp-block-button__link:hover { background: #ff8420; }
.wp-block-button.btn-ghost .wp-block-button__link { background: transparent; border-color: var(--ink); color: var(--ink); }
.wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--ink); color: var(--surface); }
.wp-block-button.btn-arrow .wp-block-button__link::after { content: "→"; font: 500 16px/1 var(--font-mono); }

/* ================================================================ en-tête (partie « header ») */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar .top { top: 32px; }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.top .logo img { height: 32px; width: auto; }
.top .logo a { display: block; }
.nav-principale { margin-left: auto; }
.nav-principale .wp-block-navigation__container { gap: 28px; }
.nav-principale .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; font: 600 15px var(--font-sans); }
.nav-principale .wp-block-navigation-item__content:hover { color: var(--brand-ink); }
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--surface) !important; color: var(--ink) !important; padding: 24px var(--gutter); }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__container { gap: 0; }
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__container { align-items: flex-start; width: 100%; }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item__content { font: 700 32px/1.4 var(--font-display); }
.nav-principale .wp-block-navigation__responsive-container-open { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px; }
.top-cta .wp-block-button__link { padding: 11px 16px; font-size: 15px; }

/* ================================================================ sections */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; margin-top: 12px; }
.sec-head > p:not(.kicker):not(.launch) { margin-top: 18px; font-size: 19px; color: var(--ink-muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.kicker::before { content: ""; width: 22px; height: 8px; background: var(--brand); border-radius: 2px; flex: none; }

/* ---------------------------------------------------------------- héros */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
/* bandes décalées « grille de départ » : couches décoratives en pseudo-éléments */
.hero::before, .hero::after, .hero-grid::before, .hero-grid::after { content: ""; position: absolute; right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); pointer-events: none; }
.hero::before { top: 9%; height: 15%; width: 50%; background: var(--brand); }
.hero::after { top: 27%; height: 46%; width: 44%; background: var(--ink); }
.hero-grid::before { top: 76%; height: 12%; width: 38%; background: var(--accent); }
.hero-grid::after { top: 76%; height: 12%; width: 6%; right: calc(38% + 16px); background: var(--best-lap); border-radius: var(--radius-sm); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-txt, .screen { position: relative; z-index: 2; }
.hero-title { font-size: clamp(50px, 6vw, 88px); font-weight: 700; line-height: .9; letter-spacing: -.01em; margin-top: 18px; }
.hero-title em { font-style: normal; color: var(--brand-ink); }
.hero .lead { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--ink-muted); max-width: 32em; }
.beta-note { margin-top: 18px; max-width: 32em; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--surface-raised); font-size: 16px; color: var(--ink); }
.beta-note strong { color: var(--brand-ink); }
.ctas { margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.fact-n { font: 700 28px/1 var(--font-display); }
.fact-l { font-size: 14px; color: var(--ink-muted); }

/* écran de chronométrage */
.screen { background: var(--d-surface); color: var(--d-ink); border-radius: var(--radius-lg); padding: 14px; border: 1px solid #23272d; }
/* damier « drapeau d'arrivée » au bout de la bande sombre, contre le bord droit de la page */
.screen::after { content: ""; position: absolute; z-index: -1; top: 22%; height: 50%; width: 160px; left: max(calc(100% + 16px), calc(100% + var(--gutter) + max(0px, (100vw - var(--wrap)) / 2) - 160px)); background: repeating-conic-gradient(var(--surface) 0 25%, transparent 0 50%) 0 0 / 32px 32px; opacity: .55; pointer-events: none; }
.screen-bar { display: flex; align-items: center; gap: 0; padding: 0 4px 12px 58px; position: relative; font: 500 12px var(--font-mono); color: var(--d-muted); }
.screen-bar::before { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #2e333a; box-shadow: 16px 0 #2e333a, 32px 0 #2e333a; }
.tower { background: var(--d-raised); border-radius: 10px; overflow: hidden; border-top: 3px solid var(--d-pb); }
.t-head { display: flex; justify-content: space-between; align-items: end; padding: 14px 16px 10px; border-bottom: 1px solid var(--d-line); }
.t-lbl { font: 600 11px/1 var(--font-sans); letter-spacing: .14em; color: var(--d-muted); text-transform: uppercase; }
.t-sess { font: 600 22px/1.1 var(--font-display); margin-top: 6px; }
.t-clock { font: 500 34px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.t-meta { display: flex; justify-content: space-between; padding: 8px 16px; font: 600 11px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); border-bottom: 1px solid var(--d-line); }
.t-st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--d-pb); margin-right: 8px; vertical-align: 1px; }
.trow, .thead { display: grid; grid-template-columns: 22px 34px minmax(0,1fr) 42px 64px 64px 64px; gap: 0 10px; align-items: center; padding: 0 14px; }
.thead { padding-top: 10px; padding-bottom: 4px; font: 600 10px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: #6b727d; }
.thead .pos { visibility: hidden; }
.thead .c { text-align: right; }
.thead .name { padding-left: 13px; }
.trow { height: 42px; border-bottom: 1px solid var(--d-line); font-size: 15px; transition: background .6s; }
.trow:last-child { border-bottom: 0; }
.trow .pos { text-align: right; color: var(--d-muted); font-weight: 600; }
.trow .tile { text-align: center; color: var(--d-muted); font: 600 11px var(--font-mono); border: 1px solid var(--d-line); border-radius: var(--radius-sm); padding: 2px 0; }
.trow .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--tc, #9aa3ad); padding-left: 10px; line-height: 1.3; }
.trow .c { text-align: right; font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trow .gap { color: var(--d-muted); }
.trow .mt { color: var(--d-best); } .trow .pb { color: var(--d-pb); }
.trow.flash { background: rgba(255,255,255,.06); }
.lane-1 { --tc: #e5484d; } .lane-2 { --tc: #3b82f6; } .lane-3 { --tc: #22a35a; }
.lane-4 { --tc: #e7b416; } .lane-5 { --tc: #ff7300; } .lane-6 { --tc: #9aa3ad; }
.float { position: absolute; z-index: 3; left: -40px; bottom: -34px; width: 270px; background: var(--d-raised); color: var(--d-ink); border: 1px solid var(--d-line); border-left: 3px solid var(--best-lap); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 12px 16px; }
.f-hd { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.f-k { color: var(--d-best); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.f-t { font: 500 34px/1.1 var(--font-mono); color: var(--d-best); margin-top: 4px; }
.f-r { font-size: 12px; color: var(--d-muted); }

/* ---------------------------------------------------------------- photos */
.wp-block-image.photo-band { height: clamp(260px, 42vw, 560px); overflow: hidden; background: var(--d-surface); }
.wp-block-image.photo-band img, .gallery .wp-block-image img, .wp-block-image.split-photo img, .wp-block-image.live-photo img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.photo-band img { object-position: center 55%; }

/* ---------------------------------------------------------------- pour qui */
.who { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.who-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.who-card { padding: 40px 32px 44px; border-left: 1px solid var(--line); }
.who-card:first-child { border-left: 0; padding-left: 0; }
.who-card h3 { font-size: 30px; font-weight: 700; margin: 14px 0 10px; }
.who-card:first-child h3 { font-size: 40px; }
.who-card p:not(.label) { color: var(--ink-muted); font-size: 16px; }
.who-card .label { color: var(--brand-ink); }

/* ---------------------------------------------------------------- étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 24px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step .n { font: 500 15px var(--font-mono); color: var(--brand-ink); }
.step h3 { font-size: 28px; font-weight: 700; margin: 10px 0; }
.step p:not(.n) { font-size: 16px; color: var(--ink-muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.wp-block-image.split-photo { position: relative; aspect-ratio: 3 / 4; max-height: 640px; border-radius: var(--radius-lg); overflow: hidden; background: var(--d-surface); }
.wp-block-image.split-photo::after { content: ""; position: absolute; left: 0; bottom: 24px; width: 38%; height: 14px; background: var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.split-txt h3 { font-size: clamp(34px, 4vw, 48px); font-weight: 700; margin: 12px 0 16px; }
.split-txt > p:not(.label) { color: var(--ink-muted); font-size: 18px; }
.split-txt .label { color: var(--brand-ink); }
.legend { margin-top: 28px; }
.legend-row { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.legend-row p:last-child { font-size: 15px; color: var(--ink-muted); }
.lg-t { font: 500 24px var(--font-mono); }
.mt-l { color: var(--best-lap); } .pb-l { color: var(--personal-best); }

/* ---------------------------------------------------------------- direction de course (sombre) */
.dark { background: var(--d-surface); color: var(--d-ink); }
.dark .sec-head > p:not(.kicker) { color: var(--d-muted); }
.dark .kicker { color: var(--brand); }
.dsr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.dsr-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--d-line); }
.dsr-item:last-child { border-bottom: 1px solid var(--d-line); }
.dsr-item .ix { font: 500 14px var(--font-mono); color: var(--brand); padding-top: 4px; }
.dsr-item h3 { font-size: 26px; font-weight: 600; }
.dsr-item .dsr-body p { color: var(--d-muted); font-size: 16px; margin-top: 6px; }
.panel { background: var(--d-raised); border: 1px solid var(--d-line); border-radius: var(--radius-lg); padding: 20px; }
.ttl { font: 600 11px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 14px; display: flex; justify-content: space-between; }
.relay { border-left: 3px solid var(--tc); padding: 12px 0 12px 14px; border-bottom: 1px solid var(--d-line); }
.relay:last-child { border-bottom: 0; }
.relay-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.relay-team { font-weight: 600; font-size: 17px; }
.relay-in { margin-left: auto; font-size: 13px; color: var(--d-muted); }
.relay-in code { color: var(--d-ink); font-size: 14px; }
.tag { font: 600 10px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; border-radius: var(--radius-sm); align-self: center; }
.tag.urgent { background: var(--brand); color: var(--on-brand); }
.tag.soon { border: 1px solid var(--brand); color: var(--brand); }
.crew { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.cm { position: relative; min-width: 92px; font-size: 13px; color: var(--d-muted); padding-bottom: 10px; }
.cm.cur { color: var(--d-ink); }
.cm.cur::before { content: "●"; position: absolute; left: 70px; top: 0; font-size: 10px; color: var(--tc); }
.cm code { font-size: 12px; }
.cm::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 2px; background: linear-gradient(90deg, var(--tc) var(--pct), #2e333a var(--pct)); }
.pct-62 { --pct: 62%; } .pct-64 { --pct: 64%; } .pct-70 { --pct: 70%; } .pct-76 { --pct: 76%; } .pct-80 { --pct: 80%; } .pct-92 { --pct: 92%; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.log-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--d-line); font-size: 13px; }
.log-row:first-child { border-top: 0; }
.log-row .lt { font: 500 12px var(--font-mono); color: var(--d-muted); }
.ct-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--d-line); font-size: 13px; }
.ct-row:first-child { border-top: 0; }
.ct-row .ok { color: var(--d-pb); font-weight: 600; }
.ct-row .ko { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- galerie */
.gallery { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; height: clamp(240px, 32vw, 460px); gap: 4px; background: var(--d-surface); }
.gallery .wp-block-image { overflow: hidden; height: 100%; }
.gallery .g2 img { object-position: center 70%; }

/* ---------------------------------------------------------------- live */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.live .txt h3 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.live .txt p { color: var(--ink-muted); font-size: 16px; }
.live .txt + .txt { margin-top: 32px; }
.live .txt p.url { display: inline-block; margin-top: 12px; font: 500 14px var(--font-mono); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; color: var(--ink); }
.phone { position: relative; width: 300px; max-width: 100%; margin: 0 auto; background: var(--d-surface); border-radius: 40px; padding: 14px; border: 1px solid #23272d; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 80px; height: 22px; background: #000; border-radius: 12px; transform: translateX(-50%); z-index: 2; }
.scr { background: var(--d-surface); border-radius: 28px; overflow: hidden; padding: 52px 8px 16px; color: var(--d-ink); }
.tower-live { border-top-color: var(--brand); }
.tower-live .trow, .tower-live .thead { grid-template-columns: 14px minmax(0,1fr) 40px 50px; padding: 0 8px; gap: 0 8px; }
.tower-live .trow { height: 40px; font-size: 13px; }
.tower-live .trow .c { font-size: 12px; }
.tower-live .t-head { padding: 12px 10px 8px; }
.tower-live .t-sess { font-size: 18px; }
.tower-live .t-clock { font-size: 22px; }
.stats { margin-top: 14px; background: var(--d-raised); border-radius: 10px; padding: 12px; font-size: 12px; color: var(--d-muted); }
.stats-t { color: var(--d-ink); font: 600 15px var(--font-sans); margin-bottom: 4px; }
.stats code { color: var(--d-best); font-size: 13px; }
.wp-block-image.live-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--d-surface); }
.wp-block-image.live-photo img { object-position: 30% center; }

/* ---------------------------------------------------------------- déjà en service */
.sec-running { padding-top: 0; }
.running { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.run-card { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 28px; transition: border-color .15s, transform .15s; }
.run-card.is-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.run-st { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.run-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31,79,209,.15); }
.run-st-prive { color: var(--ink-muted); }
.run-st-prive::before { background: var(--ink-muted); box-shadow: 0 0 0 4px rgba(88,94,104,.15); }
.run-url { margin-top: 18px; font: 500 15px var(--font-mono); color: var(--ink); }
.run-url a { color: var(--brand-ink); text-decoration: none; }
.run-url a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.run-card.is-link .run-url a::before { content: "↗ "; }
.run-card h3 { font-size: 28px; font-weight: 700; margin: 8px 0 8px; }
.run-card p:last-child { color: var(--ink-muted); font-size: 15px; }
.live .txt p.url a { color: var(--ink); text-decoration: none; }
.live .txt p.url a:hover { color: var(--brand-ink); }

/* ---------------------------------------------------------------- fiabilité */
.sec-trust { padding-top: 0; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); overflow: hidden; }
.trust-item { padding: 32px 28px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-n { display: inline; font: 700 54px/1 var(--font-display); }
.trust-u { display: inline; margin-left: 6px; font: 700 27px/1 var(--font-display); color: var(--brand-ink); }
.trust-item h3 { font-size: 22px; font-weight: 600; margin: 14px 0 8px; }
.trust-item p:last-child { color: var(--ink-muted); font-size: 15px; }

/* ---------------------------------------------------------------- tarifs */
.pricing-band { background: var(--brand); color: var(--on-brand); }
.pricing-band .kicker { color: var(--on-brand); }
.pricing-band .kicker::before { background: var(--on-brand); }
.pricing-band .sec-head > p:not(.kicker):not(.launch) { color: var(--on-brand); }
.launch { display: inline-block; margin-top: 22px; background: var(--on-brand); color: var(--d-ink); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; }
.launch code { color: var(--brand); }
.plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: stretch; }
.plan { background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-lg); padding: 30px 28px 28px; display: flex; flex-direction: column; }
.plan.main { background: var(--on-brand); color: var(--d-ink); transform: translateY(-16px); }
.plan.main .label { color: var(--brand); }
.plan h3 { font-size: 36px; font-weight: 700; margin: 10px 0 6px; }
.plan .for { font-size: 15px; color: var(--ink-muted); min-height: 46px; }
.plan.main .for { color: var(--d-muted); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; }
.price .now { font: 700 64px/1 var(--font-display); }
.price .per, .plan .was { font-size: 15px; color: var(--ink-muted); }
.plan.main .price .per, .plan.main .was { color: var(--d-muted); }
.plan .was s { font-family: var(--font-mono); }
.plan-list { list-style: none; margin: 22px 0 26px; padding: 0; font-size: 15px; flex: 1; }
.plan-list li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.plan.main .plan-list li { border-top-color: var(--d-line); }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg); }
.plan.main .plan-list li::before { border-color: var(--brand); }
.plan-cta, .plan-cta .wp-block-button, .plan-cta .wp-block-button__link { width: 100%; justify-content: center; }
.plan.main .btn-ghost .wp-block-button__link { border-color: var(--d-ink); color: var(--d-ink); }
.trial-note { margin-top: 36px; font-size: 15px; font-weight: 600; }

/* ---------------------------------------------------------------- FAQ (core/details) */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); }
.faq-list .wp-block-details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-list .wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 600 24px/1.15 var(--font-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 500 22px/1 var(--font-mono); color: var(--brand-ink); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .wp-block-details p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; max-width: 40em; }

/* ---------------------------------------------------------------- bêta-test et formulaire */
.beta { position: relative; background: var(--ink); color: var(--d-ink); overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; }
.beta::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 30%; background: repeating-conic-gradient(var(--d-ink) 0 25%, transparent 0 50%) 0 0 / 40px 40px; opacity: .06; pointer-events: none; }
.beta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.beta .kicker { color: var(--brand); }
.beta h2 { font-size: clamp(46px, 6vw, 80px); font-weight: 700; line-height: .92; margin-top: 14px; }
.beta h2 em { font-style: normal; color: var(--brand); }
.beta-txt > p:not(.kicker) { color: var(--d-muted); margin-top: 20px; font-size: 18px; max-width: 30em; }
.beta-list { list-style: none; margin: 28px 0 0; padding: 0; }
.beta-list li { padding: 12px 0 12px 30px; border-top: 1px solid var(--d-line); position: relative; }
.beta-list li:last-child { border-bottom: 1px solid var(--d-line); }
.beta-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; background: var(--brand); border-radius: 2px; }
.beta-form { background: var(--d-raised); border: 1px solid var(--d-line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.sm-beta { display: grid; gap: 16px; }
.sm-beta label { display: block; font: 600 13px var(--font-sans); letter-spacing: .04em; color: var(--d-ink); margin-bottom: 6px; }
.sm-beta label span[aria-hidden] { color: var(--brand); }
.sm-opt { font-weight: 400; color: var(--d-muted); margin-left: 4px; }
.sm-beta input[type=email], .sm-beta input[type=text], .sm-beta select { display: block; width: 100%; height: 48px; padding: 0 14px; background: var(--d-surface); color: var(--d-ink); border: 1px solid var(--d-line); border-radius: var(--radius-sm); font: 400 16px var(--font-sans); }
.sm-beta input::placeholder { color: #6b727d; }
.sm-beta input:focus, .sm-beta select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.sm-duo { display: grid; grid-template-columns: 1fr 150px; gap: 16px; }
.sm-case { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.sm-case input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.sm-case label { font: 400 15px/1.45 var(--font-sans); letter-spacing: 0; color: var(--d-muted); margin: 0; }
.sm-case a { color: var(--brand); }
.sm-pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-bouton { width: 100%; height: 54px; border: 0; border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); font: 600 18px var(--font-sans); cursor: pointer; transition: background .15s; }
.sm-bouton::after { content: " →"; font-family: var(--font-mono); }
.sm-bouton:hover { background: #ff8420; }
.sm-bouton:focus-visible { outline: 2px solid var(--d-ink); outline-offset: 2px; }
.sm-erreur { padding: 12px 14px; border-left: 3px solid var(--brand); background: rgba(255,115,0,.12); color: var(--d-ink); font-size: 15px; }
.sm-merci { padding: 8px 0; }
.sm-merci-t { font: 700 32px/1.1 var(--font-display); color: var(--d-ink); margin-bottom: 8px; }
.sm-merci p:not(.sm-merci-t) { color: var(--d-muted); }

/* ================================================================ pied de page */
.site-footer { background: var(--d-surface); color: var(--d-muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer .logo img { height: 30px; width: auto; }
.foot-sig { margin-top: 14px; font: 600 20px var(--font-display); color: var(--d-ink); }
.foot-h { margin-bottom: 10px; font: 600 12px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink); }
.site-footer a { color: var(--d-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.foot-col p:not(.foot-h) { padding: 3px 0; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--d-line); padding-top: 20px; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; }

/* ================================================================ pages simples (mentions, confidentialité) */
.page-simple { padding: clamp(48px, 7vw, 96px) 0; }
.page-simple .wp-block-post-title { font-size: clamp(44px, 6vw, 72px); font-weight: 700; margin-bottom: 32px; }
.page-simple .entry-content, .page-simple .wp-block-post-content { max-width: 760px; }
.page-simple .wp-block-post-content h2 { font-size: 30px; font-weight: 700; margin: 40px 0 12px; }
.page-simple .wp-block-post-content p { margin-bottom: 14px; color: var(--ink-muted); }

/* ================================================================ responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before, .hero::after, .hero-grid::before, .hero-grid::after, .screen::after { display: none; }
  .screen { margin-top: 40px; }
  .screen::before { content: ""; position: absolute; z-index: -1; top: -36px; left: 40px; right: calc(-1 * var(--gutter)); height: 22px; background: var(--brand); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .dsr, .split, .faq, .beta-grid { grid-template-columns: 1fr; }
  .wp-block-image.split-photo { aspect-ratio: 4 / 3; }
  .live { grid-template-columns: 1fr 1fr; }
  .phone-wrap { grid-column: 1 / -1; grid-row: 1; }
  .wp-block-image.live-photo { aspect-ratio: 16 / 10; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan.main { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .wp-block-buttons.top-cta { display: none; }
  .who-grid, .running { grid-template-columns: 1fr; }
  .who-card, .who-card:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .who-card:first-child { border-top: 0; }
  .trust { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .live, .mini, .sm-duo { grid-template-columns: 1fr; }
  .trow, .thead { grid-template-columns: 18px 30px minmax(0,1fr) 30px 58px; gap: 0 7px; padding: 0 10px; }
  .trow .gap, .thead .gap, .trow .last, .thead .last { display: none; }
  .tower-live .trow, .tower-live .thead { grid-template-columns: 14px minmax(0,1fr) 40px 50px; }
  .t-clock { font-size: 26px; }
  .screen { padding: 8px; }
  .float { left: 12px; right: 12px; width: auto; bottom: -48px; }
  .hero { padding-bottom: 96px; }
  .gallery { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery .wp-block-image { aspect-ratio: 1; }
  .gallery .g1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
