/* Design system Wooosh « Pose longue » : mêmes couleurs que l'application (src/UI/Theme.cs).
   Interface neutre, un seul vert (racing) réservé aux boutons et au Motion Blur. */

/* Polices hébergées avec le site (aucune requête vers Google), licence SIL OFL : fonts/OFL.txt */
@font-face { font-family: "Anybody"; src: url("fonts/Anybody-112-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Anybody"; src: url("fonts/Anybody-112-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #131416;
  --bg-glow: #25282c;
  --surface: #1b1c1f;
  --surface-raised: #25272b;
  --line: rgba(255, 255, 255, .08);
  --ink: #eceef0;
  --ink-muted: #a4a7ac;
  --ink-faint: #5e6167;
  --racing: #17734a;
  --on-racing: #f1f4ee;
  --racing-text: #5cc895;
  --invert: #eceef0;
  --on-invert: #16181a;

  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --display: "Anybody", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --ui: "Hanken Grotesk", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ebebe9;
    --bg-glow: #f8f8f6;
    --surface: #f8f8f7;
    --surface-raised: #ffffff;
    --line: rgba(22, 24, 26, .1);
    --ink: #16181a;
    --ink-muted: #575a5e;
    --ink-faint: #9b9ea1;
    --racing: #0f5d3b;
    --on-racing: #f3f3f0;
    --racing-text: #0f5d3b;
    --invert: #1d1f22;
    --on-invert: #f3f3f1;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip; /* le carrousel déborde sur les côtés : pas de barre de défilement horizontale */
  background: radial-gradient(70% 50% at 6% -8%, var(--bg-glow), var(--bg) 70%) no-repeat, var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, .big {
  font-family: var(--display);
  font-stretch: 112.5%;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 40px; }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }

main, .nav, .footer {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Barre du haut : pilule qui reste en haut quand on descend ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .24s, border-color .24s, box-shadow .24s;
}

/* Dès qu'on a un peu défilé, la pilule prend un fond de verre dépoli */
.scrolled .nav {
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
}

/* Fine ligne verte tout en haut : avancement de la lecture */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: var(--racing-text);
  transform: scaleX(0);
  transform-origin: left;
}

section[id] { scroll-margin-top: 96px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 112.5%;
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover { color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--racing);
  color: var(--on-racing);
  font-weight: 600;
  text-decoration: none;
  transition: transform .12s, filter .12s;
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }

.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-disabled {
  background: var(--surface-raised);
  color: var(--ink-muted);
  cursor: default;
}

.btn-disabled:hover { filter: none; }

/* ---------- Héros ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  color: var(--racing-text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 20px;
}

.lead {
  color: var(--ink-muted);
  font-size: 19px;
  max-width: 34em;
  margin: 24px 0 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Démonstration interactive du Motion Blur (demo.js dessine la boule et son flou) */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.demo-track {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  background: var(--racing);
  overflow: hidden;
  touch-action: none;
}

.demo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.demo-canvas.grabbing { cursor: grabbing; }

.demo-hint {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-size: 13px;
  color: color-mix(in srgb, var(--on-racing) 70%, transparent);
  pointer-events: none;
  transition: opacity .4s;
}

.demo-hint.hidden { opacity: 0; }

.demo-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Interrupteur comme dans l'application */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.switch-ui {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  transition: background .24s;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), background .24s;
}

.switch input:checked + .switch-ui { background: var(--racing); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: var(--on-racing); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Curseur d'intensité : partie remplie en vert (--fill réglé par demo.js) */
.demo-slider { display: flex; align-items: center; gap: 12px; flex: 1; color: var(--ink-muted); }

.demo-slider input {
  --fill: 60%;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(to right, var(--racing-text) var(--fill), var(--surface-raised) var(--fill));
  cursor: pointer;
}

.demo-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--surface);
}

.demo-slider input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--surface);
}

.demo-slider input:disabled { opacity: .4; cursor: default; }
.demo-value { min-width: 3.2em; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Carrousel des écrans de l'application ---------- */
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.gallery-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-tab {
  flex: none;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: 500 15px var(--ui);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .24s, color .24s;
}

.gallery-tab:hover { color: var(--ink); }
.gallery-tab[aria-current="true"] { background: var(--surface-raised); color: var(--ink); }

.gallery-arrows { display: flex; gap: 8px; flex: none; }

.arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.arrow:disabled { opacity: .35; cursor: default; }

/* Carrousel piloté par le défilement : la section est haute, son contenu reste collé à l'écran
   pendant qu'on descend, et site.js fait avancer la piste de gauche à droite. */
.gallery { position: relative; height: 340vh; }

.gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
}

.gallery-viewport {
  overflow-x: clip;
  margin: 0 calc(50% - 50vw);
}

.gallery-track {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  will-change: transform;
}

.slide {
  flex: 0 0 min(64vw, 900px);
  margin: 0;
  will-change: transform, opacity; /* chaque écran a son propre calque : le déplacer ne redessine rien */
}

/* Une fenêtre en 3D : --rx / --ry sont réglés par site.js quand on la fait glisser */
.win {
  --rx: 4deg;
  --ry: -6deg;
  position: relative;
  border-radius: 14px;
  transform: perspective(1600px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  will-change: transform;
  cursor: grab;
  touch-action: pan-x pan-y;
  outline: none;
}

.win.dragging { transition: none; cursor: grabbing; }
.win:focus-visible { box-shadow: 0 0 0 3px var(--ink); }

.win picture { position: relative; display: block; } /* au-dessus de la tranche, même quand la fenêtre est estompée */
.win img { border-radius: 14px; user-select: none; -webkit-user-drag: none; }

/* Épaisseur de la fenêtre : une tranche derrière l'écran */
.win::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--surface-raised);
  transform: translateZ(-14px);
}

/* Reflet de lumière qui bouge avec l'angle */
.win-glare {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(calc(110deg + var(--ry) * 2), rgba(255, 255, 255, .08), transparent 45%);
}


.slide figcaption {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity .4s;
}

.slide.is-active figcaption { opacity: 1; }
.slide figcaption strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

.gallery-hint { text-align: center; color: var(--ink-faint); font-size: 13px; margin: 8px 0 0; }

@media (hover: none) { .gallery-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .win { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card p { color: var(--ink-muted); margin: 0; }

.card-hero {
  grid-row: span 2;
  background: var(--racing);
  border-color: transparent;
  color: var(--on-racing);
  display: flex;
  flex-direction: column;
}

.card-hero p { color: color-mix(in srgb, var(--on-racing) 78%, transparent); }
.card-hero p + p { margin-top: 12px; }

.card-kicker {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px !important;
}

.card-hero .big {
  color: var(--on-racing);
  font-size: 88px;
  margin-top: auto;
  padding-top: 40px;
}

.big span { font-size: .4em; }

.card-note { font-size: 13px; }

kbd {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

/* Étapes */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps li {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.steps p { color: var(--ink-muted); margin: 0; }

.step-num {
  display: block;
  font-family: var(--display);
  font-stretch: 112.5%;
  font-weight: 300;
  font-size: 48px;
  color: var(--ink-faint);
  line-height: 1;
  margin-bottom: 16px;
}

.aside {
  margin: 40px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-muted);
}

/* Configuration */
.specs dl { margin: 0; }

.specs dl div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.specs dt { color: var(--ink-muted); }
.specs dd { margin: 0; font-weight: 500; }

/* Questions */
.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-muted); margin: 12px 0 0; max-width: 46em; }

/* Appel final */
.cta {
  margin-top: 120px;
  padding: 72px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta img { margin-bottom: 24px; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--ink-muted); margin: 0 0 32px; }

/* Pied de page */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 48px 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.section-lead { color: var(--ink-muted); margin: -24px 0 40px; font-size: 19px; }

/* ---------- Bouton de langue ---------- */
.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.nav-links + .lang { margin-left: 0; }

.lang button {
  border: 0;
  background: none;
  color: var(--ink-faint);
  font: 600 13px var(--ui);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--ink); }

/* Pages légales : un bloc par langue */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none; }

/* ---------- Comparaison avant / après ---------- */
.compare {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  user-select: none;
}

.compare img { width: 100%; height: 100%; object-fit: cover; }

/* L'image « avant » est par-dessus, coupée à droite de la poignée */
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--on-racing);
  pointer-events: none;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--racing);
  border: 2px solid var(--on-racing);
}

.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
}

.compare-handle span::before { left: 6px;  border-right-color: var(--on-racing); }
.compare-handle span::after  { right: 6px; border-left-color: var(--on-racing); }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:has(.compare-range:focus-visible) .compare-handle span { outline: 3px solid var(--ink); outline-offset: 2px; }

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 14, 16, .7);
  color: #eceef0;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.tag-before { left: 16px; }
.tag-after { right: 16px; }

.compare-note { color: var(--ink-faint); font-size: 14px; margin: 16px 0 0; }
.compare-note a { color: var(--ink-muted); }

/* ---------- Tarifs ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.plan-best { border-color: var(--racing-text); }

.price {
  font-family: var(--display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
}

.price span { font-family: var(--ui); font-size: 17px; color: var(--ink-muted); letter-spacing: 0; }

.plan-note { color: var(--ink-muted); margin: 8px 0 24px; }

.plan ul {
  list-style: none;
  padding: 24px 0 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.plan li { padding-left: 26px; position: relative; }

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--racing-text);
  border-bottom: 2px solid var(--racing-text);
  transform: rotate(-45deg);
}

.plan .btn { margin-top: auto; }
.btn-soon { cursor: default; opacity: .7; }
.btn-soon:hover { filter: none; }

.badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--racing);
  color: var(--on-racing);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Pages légales ---------- */
.legal {
  max-width: 760px;
  padding: 72px 0 40px;
}

.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal h2 { font-family: var(--ui); font-stretch: normal; font-weight: 600; font-size: 20px; letter-spacing: 0; margin: 40px 0 12px; }
.legal p { color: var(--ink-muted); margin: 0 0 12px; }
.legal a { color: var(--ink); }
.legal-date { font-size: 14px; color: var(--ink-faint) !important; margin-top: 16px !important; }
.legal-summary { margin-top: 32px !important; padding: 20px 24px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink) !important; }
.legal code { font-size: 14px; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Paiement de démonstration (checkout.js) ---------- */
.checkout {
  width: min(480px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}

.checkout::backdrop { background: rgba(8, 9, 10, .6); backdrop-filter: blur(6px); }
.checkout h2 { font-size: 32px; margin: 0 0 20px; }

.checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.demo-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-muted); }

.field input {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 16px var(--ui);
}

.field input:focus { outline: 2px solid var(--racing-text); outline-offset: 1px; }
.field-error { color: #ff6b6b; font-size: 14px; margin: 8px 0 0; }
.checkout-note { color: var(--ink-faint); font-size: 13px; margin: 16px 0 24px; }
.checkout-pay { width: 100%; }

.checkout-wait { text-align: center; padding: 40px 0; color: var(--ink-muted); }

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--surface-raised);
  border-top-color: var(--racing-text);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.checkout-sent, .key-exp { color: var(--ink-muted); font-size: 14px; }

.key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--racing-text);
}

.key-value { font: 600 16px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }

.next-steps { color: var(--ink-muted); padding-left: 20px; margin: 16px 0 24px; display: grid; gap: 6px; }
.checkout-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Page « Mon abonnement » (account.js) ---------- */
.account-lead { margin: 16px 0 32px; }

.account-form { display: flex; gap: 12px; align-items: end; }
.account-form .field { flex: 1; }
.account-key { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; letter-spacing: .04em; text-transform: uppercase; }

.sub-card {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.sub-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.sub-days { margin-top: 4px !important; color: var(--ink) !important; }

.sub-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.sub-badge.is-live { background: var(--racing); color: var(--on-racing); }

.sub-bar { height: 8px; margin-top: 24px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.sub-bar span { display: block; height: 100%; border-radius: 4px; background: var(--racing-text); }
.sub-dates { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--ink-faint); }
.sub-key { margin-top: 20px !important; font: 500 14px ui-monospace, "Cascadia Mono", Consolas, monospace; }
.sub-actions { margin-top: 20px; }

.orders h2 { font-size: 22px !important; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.order-empty { color: var(--ink-faint); }

.order {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 14px 18px;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 14px var(--ui);
  cursor: pointer;
}

.order:hover { background: var(--surface-raised); }
.order span { color: var(--ink-muted); }
.order code { grid-column: 1 / -1; color: var(--ink-faint); font-size: 13px; }
.account-demo { margin-top: 40px !important; font-size: 14px; }

@media (max-width: 640px) {
  .account-form { flex-direction: column; align-items: stretch; }
  .checkout { padding: 24px; }
  .key-box { flex-direction: column; align-items: stretch; }
}

/* ---------- Curseur (seulement avec une souris, voir site.js) ---------- */
.custom-cursor, .custom-cursor * { cursor: none !important; }

.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
}

.cursor-dot {
  position: fixed;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 101;
  opacity: 0;
  will-change: transform;
  transition: opacity .2s;
}

.cursor-on .cursor-dot { opacity: 1; }

.cursor-ring {
  will-change: transform;
  position: fixed;
  left: -18px;
  top: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: opacity .2s, width .24s, height .24s, left .24s, top .24s, background .24s, border-color .24s;
}

.cursor-on .cursor-ring { opacity: 1; }

.cursor-ring.hover {
  left: -28px;
  top: -28px;
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--racing-text) 18%, transparent);
  border-color: transparent;
}

.cursor-ring.down { width: 28px; height: 28px; left: -14px; top: -14px; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-hero { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav { gap: 8px; padding-left: 14px; }
  .brand span { display: none; }
  .lang { margin-left: auto; }
  .pricing { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 16px; }
  .gallery-arrows { display: none; }
  .gallery { height: 300vh; }
  .gallery-track { gap: 16px; padding: 24px 0; }
  .slide { flex-basis: 82vw; }
  .demo-controls { flex-wrap: wrap; gap: 16px; }
  .demo-track { height: 160px; }
  .slide figcaption { margin-top: 16px; font-size: 14px; }
  .compare-tag { top: 10px; font-size: 12px; }
  .tag-before { left: 10px; }
  .tag-after { right: 10px; }
  .bento, .steps { grid-template-columns: 1fr; }
  .card-hero { grid-column: auto; }
  .card-hero .big { font-size: 64px; }
  .specs dl div { grid-template-columns: 1fr; gap: 4px; }
  .section { padding-top: 80px; }
  .demo { padding: 20px; }
}
