/* ───────────────────────────────────────────────────────────
   Blank — feuille de style
   ─────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/hanken-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Thèmes ─────────────────────────────────────────────────── */
:root {
  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: #ff4f00;
  --accent-ink: #ffffff;
  --danger: #ff5a4f;
  --ease: cubic-bezier(.2, .9, .25, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090a;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #222226;
  --raise: #26262b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f1f0ec;
  --text-2: #a3a29d;
  --text-3: #6c6b67;
  --hover: rgba(255, 255, 255, .045);
  --accent-soft: rgba(255, 79, 0, .14);
  --accent-line: rgba(255, 79, 0, .45);
  --stage: radial-gradient(1200px 520px at 50% -180px, rgba(255, 255, 255, .055), transparent 70%);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 50px 100px -40px rgba(0, 0, 0, .9), 0 18px 36px -18px rgba(0, 0, 0, .6);
  --card-a: #1f1f23;
  --card-b: #141417;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #f2f1ed;
  --surface-3: #e7e6e1;
  --raise: #ffffff;
  --line: rgba(20, 20, 16, .085);
  --line-2: rgba(20, 20, 16, .15);
  --text: #111110;
  --text-2: #5d5c57;
  --text-3: #8f8e88;
  --hover: rgba(20, 20, 16, .04);
  --accent: #f04a00;
  --accent-soft: rgba(240, 74, 0, .09);
  --accent-line: rgba(240, 74, 0, .4);
  --stage: radial-gradient(1200px 520px at 50% -180px, rgba(255, 255, 255, .9), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(20, 20, 16, .06);
  --shadow: 0 1px 2px rgba(20, 20, 16, .04), 0 20px 40px -24px rgba(20, 20, 16, .18);
  --shadow-lg: 0 1px 2px rgba(20, 20, 16, .05), 0 40px 80px -36px rgba(20, 20, 16, .28), 0 14px 28px -18px rgba(20, 20, 16, .12);
  --card-a: #ffffff;
  --card-b: #f6f5f1;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--stage), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.dim { color: var(--text-3); }
.num, .odo, .stats dd, .deck-n b, .ref { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; display: block; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 99; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

/* Bascule de thème : révélation circulaire */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.vt-lang::view-transition-old(root) { animation: vt-out .16s var(--ease-io) both; }
html.vt-lang::view-transition-new(root) { animation: vt-in .24s .06s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.03em;
}
.logo svg { color: var(--text); transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-90deg); }
.logo-dot { fill: var(--accent); }

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 18px; border: 0; border-radius: var(--r);
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .6s var(--ease), background .4s;
}
.btn:hover { box-shadow: 0 0 0 4px var(--line); }
.btn:active { transform: scale(.985); }
.btn-ic { display: grid; place-items: center; transition: transform .7s var(--ease); }
.btn:hover .btn-ic { transform: translateX(4px); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 52px; font-size: 15.5px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-2); }

.ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; min-width: 34px; padding: 0 9px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2);
  font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s;
}
.ctl:hover, .ctl[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.ctl .ic { width: 17px; height: 17px; }
.ctl-code { letter-spacing: .02em; }
.ctl [d^="m6 9"] { transition: transform .25s var(--ease); }
.ctl[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.ctl svg:last-child { transition: transform .25s var(--ease); }
.ctl-theme { position: relative; width: 34px; padding: 0; }
.tw { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .55s var(--ease), opacity .3s; }
[data-theme="dark"] .tw-moon, [data-theme="light"] .tw-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.ctl-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 18px; text-align: center;
}

/* Sélecteur de langue */
.langsel { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--raise); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg);
  transform-origin: top right;
}
.pop.open { animation: pop-in .2s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.pop li {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 9px;
  font-size: 14px; color: var(--text-2); cursor: pointer; outline: none;
}
.pop li:hover, .pop li:focus { background: var(--hover); color: var(--text); }
.pop-code { width: 22px; font-size: 11.5px; font-weight: 650; color: var(--text-3); letter-spacing: .03em; }
.pop-name { flex: 1; }
.pop li .ic { width: 16px; height: 16px; color: var(--accent); opacity: 0; transform: scale(.6); transition: .2s var(--ease); }
.pop li[aria-selected="true"] { color: var(--text); font-weight: 550; }
.pop li[aria-selected="true"] .ic { opacity: 1; transform: none; }

/* ── En-tête ────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .3s;
}
.hdr.scrolled, .hdr-app { box-shadow: 0 1px 0 var(--line); }
.hdr-in {
  display: flex; align-items: center; gap: 28px;
  max-width: 1240px; height: 64px; margin: 0 auto; padding: 0 clamp(16px, 3.4vw, 40px);
}
.hdr-app .hdr-in { max-width: none; height: 58px; }
.hdr-nav { display: flex; gap: 4px; margin-right: auto; }
.hdr-nav a {
  padding: 7px 11px; border-radius: 9px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s;
}
.hdr-nav a:hover { color: var(--text); background: var(--hover); }
.hdr-ctl { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-ctl .btn { margin-left: 8px; }
.hdr-ref { font-size: 14px; letter-spacing: -.01em; }
.hdr-ref b { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ── Typo ───────────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 550; color: var(--text-2); letter-spacing: -.005em;
}
.kicker i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 4.7vw, 66px); line-height: 1; font-weight: 650; letter-spacing: -.048em;
}
.h1 .ln { display: block; }
.h1 .ln > span { display: block; text-wrap: balance; }
.h1 .ln-2 { color: var(--text-3); }
.h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.08; font-weight: 650; letter-spacing: -.038em; max-width: 17ch; text-wrap: balance; }
.h3 { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.lead { max-width: 46ch; margin-top: 26px; font-size: 17.5px; line-height: 1.55; color: var(--text-2); letter-spacing: -.005em; }

@media (prefers-reduced-motion: no-preference) {
  .lead { animation: fade-up .9s .45s var(--ease) both; }
  .stats { animation: fade-up .9s .55s var(--ease) both; }
  .cfg { animation: cfg-in 1.1s .1s var(--ease) both; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes cfg-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(40px, 6vw, 88px); align-items: start;
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vh, 88px) clamp(16px, 3.4vw, 40px) 0;
}
.hero-copy { position: sticky; top: 132px; padding-top: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 48px 0 0; }
.stats > div { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; min-width: 64px; }
.stats dt { margin-top: 8px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.stats dd { margin: 0; font-size: 40px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }

/* ── Configurateur ─────────────────────────────────────────── */
.cfg {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.cfg-head {
  display: flex; justify-content: space-between; align-items: center;
  height: 50px; padding: 0 20px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
}
.ref { font-size: 12.5px; color: var(--text-3); font-weight: 550; letter-spacing: .02em; }
.ref-mask { letter-spacing: .12em; }

/* Pile de comptes en 3D */
.deck {
  position: relative; height: 212px; overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  perspective: 900px;
}
.deck::before { /* sol en perspective */
  content: ''; position: absolute; left: -50%; right: -50%; bottom: -40%; height: 120%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotateX(72deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  opacity: .9;
}
.deck-stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -14deg));
  transition: transform .9s var(--ease);
}
.acct {
  position: absolute; left: 50%; top: 50%;
  width: 236px; height: 132px; margin: -60px 0 0 -118px;
  padding: 14px 16px; border-radius: 15px;
  background: linear-gradient(155deg, var(--card-a), var(--card-b));
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -16px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) rotateZ(var(--rz, 0));
  opacity: var(--o, 1);
  transition: transform .7s var(--ease), opacity .45s var(--ease), filter .5s;
  backface-visibility: hidden;
  will-change: transform;
}
[data-theme="light"] .acct { box-shadow: 0 0 0 1px var(--line-2), 0 18px 34px -18px rgba(20, 20, 16, .3); }
.acct.enter { --y: -70px !important; --o: 0 !important; }
.acct.leave { --y: 40px !important; --o: 0 !important; }
.acct-top { display: flex; align-items: center; gap: 10px; }
.acct-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2);
}
.acct-id { min-width: 0; flex: 1; }
.acct-id b { display: block; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.acct-id span { display: block; font-size: 11.5px; color: var(--text-3); }
.acct-cc {
  height: 22px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 22px; color: var(--text-2);
  transition: transform .45s var(--ease);
}
.acct-cc.flip { transform: rotateX(90deg); }
.acct-bot { display: flex; align-items: center; gap: 6px; }
.sk { height: 6px; border-radius: 3px; background: var(--line-2); }
.sk-1 { width: 38%; } .sk-2 { width: 18%; } .sk-3 { width: 10%; margin-left: auto; background: var(--accent-line); }
.stars { display: flex; gap: 3px; color: var(--text-3); }
.stars svg { width: 12px; height: 12px; }
.acct-rev { font-size: 11.5px; color: var(--text-3); margin-left: 8px; }
.acct-new { font-size: 11px; font-weight: 600; color: var(--accent); }
.acct:first-child { box-shadow: 0 0 0 1px var(--line-2), 0 1px 0 rgba(255, 255, 255, .06) inset, 0 26px 40px -18px rgba(0, 0, 0, .55); }

.deck-n {
  position: absolute; right: 18px; bottom: 12px;
  display: flex; align-items: baseline; gap: 2px;
  font-weight: 650; letter-spacing: -.03em;
}
.deck-n > span { font-size: 16px; color: var(--text-3); }
.deck-n b { font-size: 30px; }

/* Lignes du formulaire */
.rows { padding: 0 20px; }
.row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:last-of-type { border-bottom: 0; }
.lbl {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px;
  font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -.005em;
}
.lbl em { font-style: normal; font-weight: 450; color: var(--text-3); }
#country-name { transition: opacity .2s; }

.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 12px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid; place-items: center; height: 34px; padding: 0 10px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-3); white-space: nowrap;
  transition: color .25s;
}
.seg label:hover span { color: var(--text-2); }
.seg input:checked + span { color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg-ind {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px;
  background: var(--raise);
  box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(0, 0, 0, .35);
  transition: transform .42s var(--ease), width .42s var(--ease);
}
[data-theme="light"] .seg-ind { box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(20, 20, 16, .18); }

.qty-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.range-wrap { position: relative; padding-top: 11px; }
.range {
  --p: 0%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 18px; margin: 0;
  background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--text) var(--p), var(--line-2) var(--p));
}
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--text); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
}
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent-line); }
.ticks { position: relative; height: 22px; margin: 6px 9px 0; }
.tick {
  position: absolute; left: var(--x); top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 0; border: 0; background: none; color: var(--text-3);
  font-size: 11px; font-weight: 600; line-height: 1.25; white-space: nowrap;
  transition: color .25s;
}
.tick i { width: 1px; height: 5px; margin-bottom: 3px; background: var(--line-2); transition: background .25s; }
.tick:hover { color: var(--text); }
.tick.on { color: var(--text-2); }
.tick.on i { background: var(--text-2); }

.stepper {
  display: grid; grid-template-columns: 34px 54px 34px; height: 40px;
  border-radius: 11px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.stepper button {
  border: 0; background: none; color: var(--text-2); font-size: 18px; line-height: 1;
  border-radius: 10px; transition: color .15s, background .15s; touch-action: manipulation; user-select: none;
}
.stepper button:hover { color: var(--text); background: var(--hover); }
.stepper input {
  width: 100%; min-width: 0; border: 0; background: none; text-align: center;
  font-size: 15.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper:focus-within { box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 3px var(--accent-soft); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: block; }
.fld .lbl { margin-bottom: 8px; }
.inp {
  display: block; width: 100%; height: 40px; padding: 0 12px;
  border: 0; border-radius: 11px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; transition: box-shadow .2s, background .2s;
}
.inp::placeholder { color: var(--text-3); }
.inp:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.inp:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 3px var(--accent-soft); }

/* Bouton d'envoi : états */
.cfg-foot { padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; }
.cfg .btn-block { width: calc(100% - 40px); margin: 18px 20px 0; }
.btn-txt { transition: transform .7s var(--ease), opacity .5s var(--ease); }
.btn-txts { position: relative; display: grid; }
.btn-txts > * { grid-area: 1 / 1; text-align: center; }
.btn-txt[data-state="busy"], .btn-txt[data-state="done"] { opacity: 0; transform: translateY(14px); }
.cfg.busy .btn-txt[data-state="idle"], .cfg.done .btn-txt[data-state="idle"] { opacity: 0; transform: translateY(-14px); }
.cfg.busy .btn-txt[data-state="busy"], .cfg.done .btn-txt[data-state="done"] { opacity: 1; transform: none; }
.btn-ic { transition: transform .7s var(--ease), opacity .5s var(--ease); }
.cfg.busy .btn-ic, .cfg.done .btn-ic { opacity: 0; }
.btn-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .45; transform: scaleX(0); transform-origin: left; }
.cfg.busy .btn-bar { animation: bar 2s var(--ease-io) infinite; }
.cfg.done .btn-bar { transform: none; transition: transform .4s var(--ease); }
@keyframes bar { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.cfg.busy .btn, .cfg.done .btn { pointer-events: none; }

.err {
  max-height: 0; overflow: hidden; margin: 0 20px;
  font-size: 13.5px; font-weight: 500; color: var(--danger);
  transition: max-height .3s var(--ease), margin .3s var(--ease);
}
.err.show { max-height: 60px; margin-top: 12px; }
.fine { margin: 14px 20px 20px; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ── Sections ──────────────────────────────────────────────── */
.sec { max-width: 1240px; margin: 0 auto; padding: clamp(96px, 14vh, 152px) clamp(16px, 3.4vw, 40px) 0; }
.sec-head .h2 { margin-top: 16px; }
.sec-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sec-split .sec-head { position: sticky; top: 112px; }

.rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Étapes */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 56px 0 0; padding: 0; list-style: none;
}
.steps li { position: relative; z-index: 1; padding-right: 40px; }
.step-dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13px; font-weight: 650; color: var(--text-3);
  transition: box-shadow .5s var(--ease), color .5s, background .5s;
}
.steps.seen li:nth-child(1) .step-dot { transition-delay: .1s; }
.steps.seen li:nth-child(2) .step-dot { transition-delay: .55s; }
.steps.seen li:nth-child(3) .step-dot { transition-delay: 1s; }
.steps.seen .step-dot { box-shadow: inset 0 0 0 1px var(--text-2); color: var(--text); }
.steps.seen li:nth-child(3) .step-dot { background: var(--accent); box-shadow: none; color: var(--accent-ink); }
.steps-line {
  position: absolute; z-index: 0; left: 16px; top: 16px; height: 1px; width: calc(66.666% - 0px);
  background: var(--line-2); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s .15s var(--ease-io);
}
.steps.seen .steps-line { transform: none; }
.steps h3 { margin-top: 26px; font-size: 18.5px; font-weight: 650; letter-spacing: -.025em; }
.steps p { margin-top: 8px; max-width: 34ch; color: var(--text-2); }

/* Inclus */
.inc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.inc li {
  display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 550; letter-spacing: -.02em;
}
.inc-ic {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
}
.inc-ic .ic { width: 15px; height: 15px; stroke-width: 2; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; padding: 22px 0; border: 0; background: none; text-align: left;
  font-size: 17px; font-weight: 550; letter-spacing: -.015em;
}
.qa-x { position: relative; width: 14px; height: 14px; flex: none; }
.qa-x::before, .qa-x::after {
  content: ''; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 1px;
  background: var(--text-2); transition: transform .4s var(--ease), background .3s;
}
.qa-x::after { transform: rotate(90deg); }
.qa-q[aria-expanded="true"] .qa-x::after { transform: rotate(0); }
.qa-q[aria-expanded="true"] .qa-x::before, .qa-q[aria-expanded="true"] .qa-x::after { background: var(--accent); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding-bottom: 22px; max-width: 62ch; color: var(--text-2); }
.qa-q[aria-expanded="true"] + .qa-a { grid-template-rows: 1fr; }

/* Pied de page */
.ftr { margin-top: clamp(96px, 14vh, 152px); border-top: 1px solid var(--line); }
.ftr-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 3.4vw, 40px) 40px;
  font-size: 13px; color: var(--text-3);
}
.ftr-in .logo { color: var(--text); font-size: 15px; }
.ftr-in p:first-of-type { flex: 1; }

/* Panneau « Mes tickets » */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); }
.sheet[hidden] { display: none; }
.sheet-card {
  position: absolute; right: clamp(16px, 3.4vw, 40px); top: 72px; width: min(360px, calc(100% - 32px));
  background: var(--raise); border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg);
  animation: pop-in .22s var(--ease) both; transform-origin: top right;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.sheet ul { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.sheet a { display: flex; justify-content: space-between; align-items: center; padding: 11px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.sheet a:hover { background: var(--hover); }
.sheet a b { font-weight: 650; font-variant-numeric: tabular-nums; }
.sheet a span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.sheet .empty { padding: 16px 10px; color: var(--text-3); font-size: 14px; }

/* ── Cartes génériques ─────────────────────────────────────── */
.card { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
}
.card-head .dim { font-weight: 550; font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* ── Pages centrées (connexion, 404) ───────────────────────── */
body.page-center { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px; }
.corner { position: fixed; top: 14px; right: 16px; display: flex; gap: 4px; }
.login, .nf { width: min(400px, 100%); padding: 28px; }
.login-form, .nf { display: grid; gap: 14px; }
.login-form .logo, .nf .logo { margin-bottom: 14px; }
.login-form p { font-size: 14px; }
.login-form .err { margin: 0; }
.nf .h2 { font-size: 28px; }
.nf .btn { justify-self: start; margin-top: 8px; }

/* ── Ticket (client) ───────────────────────────────────────── */
body.page-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.tk {
  flex: 1; min-height: 0; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px;
  padding: 16px clamp(12px, 3vw, 40px) 20px;
}
.tk-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; padding: 1px; margin: -1px; }
.chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

.msgs {
  flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 8px;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.msgs .empty { margin: auto; font-size: 14px; }
.day { align-self: center; margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.msg { display: flex; flex-direction: column; max-width: min(74%, 560px); margin-top: 14px; }
.msg.grouped { margin-top: 3px; }
.msg .meta { margin: 0 4px 5px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.msg .meta b { font-weight: 650; color: var(--text-2); margin-right: 6px; }
.bubble {
  padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 15px; line-height: 1.5;
}
.bubble a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.msg.them { align-self: flex-start; }
.msg.them .bubble { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.msg.them:not(.grouped) .bubble { border-top-left-radius: 6px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--text); color: var(--bg); }
.msg.me:not(.grouped) .bubble { border-top-right-radius: 6px; }
.msg.pending .bubble { opacity: .5; }
.msg.in { animation: msg-in .45s var(--ease) both; }
.msg.me.in { transform-origin: bottom right; }
.msg.them.in { transform-origin: bottom left; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.sys {
  align-self: center; display: flex; align-items: baseline; gap: 10px; max-width: 86%;
  margin: 16px 0 4px; padding: 7px 14px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; color: var(--text-2); text-align: center;
}
.sys time { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sys.status { color: var(--text); font-weight: 550; }
.sys.status::before { content: ''; align-self: center; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
.sys.in { animation: fade-up .45s var(--ease) both; }

.composer {
  display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 12px; padding: 7px 7px 7px 14px;
  border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .2s;
}
.composer:focus-within { box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 3px var(--accent-soft); }
.composer[hidden] { display: none; }
.composer textarea {
  flex: 1; min-height: 36px; max-height: 180px; padding: 7px 0; border: 0; background: none; resize: none;
  font-size: 15px; line-height: 1.45;
}
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: var(--text-3); }
.send {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px;
  background: var(--text); color: var(--bg); transition: transform .15s var(--ease), opacity .2s;
}
.send .ic { transform: rotate(-90deg); }
.send:active { transform: scale(.94); }
.send:disabled, .composer.busy .send { opacity: .35; cursor: default; }
.closed { margin: 8px 12px 14px; padding: 12px; border-radius: 12px; text-align: center; font-size: 14px; color: var(--text-2); background: var(--surface-2); }

.track { position: relative; list-style: none; margin: 0; padding: 12px 18px 14px; }
.track li { position: relative; display: flex; align-items: center; gap: 14px; height: 36px; font-size: 14px; color: var(--text-3); transition: color .4s; }
.track li i {
  position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background .4s, box-shadow .4s;
}
.track li:not(:last-child)::after {
  content: ''; position: absolute; left: 5px; top: 24px; height: 24px; width: 1.5px; background: var(--line-2);
}
.track li.done { color: var(--text-2); }
.track li.done i { background: var(--text-2); box-shadow: none; }
.track li.done::after { background: var(--text-2); }
.track li.now { color: var(--text); font-weight: 600; }
.track li.now i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.kv { margin: 0; padding: 4px 18px 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.kv .kv-total { border-bottom: 0; padding-top: 14px; align-items: baseline; }
.kv .kv-total dt { color: var(--text); font-weight: 600; }
.kv .kv-total dd { font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.keep { padding: 16px 18px 18px; }
.keep p { margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.keep b { color: var(--text); font-weight: 600; }
.keep .btn { height: 40px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  padding: 10px 16px; border-radius: 11px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── Admin ─────────────────────────────────────────────────── */
.desk { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; gap: 12px; padding: 12px; }
.pane-list, .pane-info { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.filters button {
  height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  font-size: 12.5px; font-weight: 550; color: var(--text-3); transition: background .15s, color .15s;
}
.filters button:hover { color: var(--text); }
.filters button.on { background: var(--surface-3); color: var(--text); }
.tlist { flex: 1; list-style: none; margin: 0; padding: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tempty { padding: 24px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.titem { position: relative; padding: 12px 12px 11px 14px; border-radius: 11px; cursor: pointer; transition: background .15s; }
.titem + .titem { margin-top: 2px; }
.titem:hover { background: var(--hover); }
.titem.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.titem.on::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--accent); }
.trow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trow b { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.trow.sub { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.trow.sub .num { font-variant-numeric: tabular-nums; }
.trow .preview { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-3); }
.titem.unread .preview { color: var(--text); font-weight: 500; }
.badge {
  position: absolute; right: 12px; bottom: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.titem.unread .ago { visibility: hidden; }
.ago { flex: none; white-space: nowrap; }
.tag { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 22px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.tag.s-ouvert { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent); }
.tag.s-paiement { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-2); }
.tag.s-ferme { color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }

.chat-title { display: flex; align-items: center; gap: 6px; }
.back { display: none; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-2); }
.quick { display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.quick button {
  flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-2); transition: color .15s, box-shadow .15s;
}
.quick button:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.info { padding: 0 0 16px; overflow-y: auto; }
.info > .dim { padding: 18px; }
.info .kv { padding-top: 4px; }
.status-set { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 18px 16px; }
.status-set .lbl { grid-column: 1 / -1; margin: 6px 0 4px; }
.sbtn {
  height: 34px; border: 0; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 550; color: var(--text-2); transition: all .18s;
}
.sbtn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.sbtn.on { background: var(--text); color: var(--bg); box-shadow: none; }
.info .btn { width: calc(100% - 36px); margin: 0 18px; height: 38px; font-size: 13.5px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .desk { grid-template-columns: 300px minmax(0, 1fr); }
  .pane-info { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { position: static; }
  .cfg { max-width: 560px; width: 100%; }
  .sec-split { grid-template-columns: 1fr; }
  .sec-split .sec-head { position: static; }
  .hdr-nav { display: none; }
  .tk { grid-template-columns: 1fr; overflow-y: auto; }
  body.page-app:not(.admin) { overflow: auto; height: auto; }
  .tk .chat { height: 74vh; height: 74dvh; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li { padding: 0 0 0 52px; }
  .step-dot { position: absolute; left: 0; top: -4px; }
  .steps h3 { margin-top: 0; }
  .steps-line { left: 16px; top: 16px; width: 1px; height: calc(100% - 64px); transform: scaleY(0); transform-origin: top; }
  .steps.seen .steps-line { transform: none; }
  .desk { grid-template-columns: 1fr; }
  .desk .chat { display: none; }
  .desk.has-ticket .pane-list { display: none; }
  .desk.has-ticket .chat { display: flex; }
  .back { display: grid; }
  .ctl-tickets .ctl-label { display: none; }
}
@media (max-width: 520px) {
  .hdr-ctl .btn { display: none; }
  .stats { gap: 16px 40px; }
  .stats dd { font-size: 34px; }
  .rows { padding: 0 16px; }
  .err { margin-inline: 16px; }
  .cfg .btn-block { width: calc(100% - 32px); margin: 16px 16px 0; }
  .fine { margin-inline: 16px; }
  .row-2 { grid-template-columns: 1fr; }
  .qty-line { grid-template-columns: 1fr; gap: 6px; }
  .stepper { justify-self: start; order: -1; }
  .msg { max-width: 88%; }
  .deck { height: 188px; }
  .acct { transform: translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) rotateZ(var(--rz, 0)) scale(.9); }
  .hdr-ref .dim { display: none; }
}


/* ───────────────────────────────────────────────────────────
   Animations
   ─────────────────────────────────────────────────────────── */

/* Progression de lecture sous l'en-tête */
.hdr { position: sticky; }
.hdr-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.5px;
  background: var(--accent); transform: scaleX(var(--sp, 0)); transform-origin: left;
  pointer-events: none;
}

/* Titres : chaque mot monte derrière un masque */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 42ms + var(--wd, 0ms)); }
body.ready .h1 .w > span, .rv.seen .w > span { transform: none; }
.h1 .ln-2 { --wd: 160ms; }
.h1 .ln:first-child { --wd: 40ms; }

/* Petit carré des intitulés */
.kicker i { transform: scale(0) rotate(-90deg); transition: transform .7s var(--ease) .15s; }
body.ready .k-in i, .rv.seen .kicker i { transform: none; }
.kicker span { display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity .6s var(--ease) .25s, transform .6s var(--ease) .25s; }
body.ready .k-in span, .rv.seen .kicker span { opacity: 1; transform: none; }

/* Liseré lumineux qui suit le curseur */
.cfg-glow {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.cfg:hover .cfg-glow { opacity: .8; }

/* Pile : flottement lent + reflet sur la carte du dessus */
@keyframes float { 50% { translate: 0 -5px; } }
.deck-stage { animation: float 7s ease-in-out infinite; }
.acct { overflow: hidden; }
.acct:first-child::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 7s 2s var(--ease-io) infinite;
}
[data-theme="light"] .acct:first-child::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .8) 50%, transparent 65%); }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.acct-rate { display: flex; align-items: center; }
.cfg.done .acct { --y: -150px !important; --o: 0 !important; transition-duration: 1.2s, .8s; }
.cfg.done .acct:nth-child(2) { transition-delay: .05s; }
.cfg.done .acct:nth-child(3) { transition-delay: .1s; }
.cfg.done .acct:nth-child(4) { transition-delay: .15s; }
.cfg.done .acct:nth-child(5) { transition-delay: .2s; }

/* Compteur à rouleaux */
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-s { display: flex; flex-direction: column; transition: transform .75s var(--ease); }
.odo-s span, .odo-c { display: block; height: 1em; line-height: 1; }
.odo-c { white-space: pre; }

/* Changements de valeur */
.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(5px); } }
#country-name { display: inline-block; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.seg label:active span { transform: scale(.97); }
.seg span { transition: color .25s, transform .15s var(--ease); }

/* Bouton principal */
.btn-ic-l { opacity: .9; }
.btn-main:hover .btn-ic-l { transform: rotate(-8deg); }
.btn-main:active { transform: scale(.99); transition-duration: .2s; }
.cfg.done .btn-bar { transition: transform .9s var(--ease); }

/* Inclus : les coches se dessinent */
.inc-ic { transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s; transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.inc-ic path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 380ms); }
.inc li.seen .inc-ic { transform: none; opacity: 1; }
.inc li.seen .inc-ic path { stroke-dashoffset: 0; }

/* Étapes : apparaissent une à une, au rythme de la ligne */
.steps.rv { opacity: 1; transform: none; }
.steps li > :not(.step-dot) { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 450ms + 250ms); }
.steps.seen li > * { opacity: 1; transform: none; }

/* FAQ : la réponse glisse en place */
.qa-a p { opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.qa-q[aria-expanded="true"] + .qa-a p { opacity: 1; transform: none; transition-delay: .08s; }
.qa-q span { transition: transform .35s var(--ease); }
.qa-q:hover span { transform: translateX(3px); }

/* Appel final */
.outro {
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px; border-radius: 24px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.outro .h2 { max-width: 20ch; }

/* Ticket : l'étape en cours émet une onde à chaque changement */
.track li.now i { animation: ring 1.4s var(--ease) 1; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 100% { box-shadow: 0 0 0 4px var(--accent-soft); } }

@media (prefers-reduced-motion: reduce) {
  .w > span, .kicker i, .kicker span, .inc-ic, .steps li > *, .qa-a p { transform: none !important; opacity: 1 !important; transition: none !important; }
  .inc-ic path { stroke-dashoffset: 0 !important; }
  .deck-stage, .acct::after { animation: none !important; }
}
.cfg.done .btn-txt[data-state="busy"] { transform: translateY(-14px); }
.kv > div:last-child { border-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tk > .chat, .tk-side > .card { animation: fade-up .8s var(--ease) both; }
  .tk-side > .card:nth-child(1) { animation-delay: .08s; }
  .tk-side > .card:nth-child(2) { animation-delay: .16s; }
  .tk-side > .card:nth-child(3) { animation-delay: .24s; }
}


/* ── Pied de page : liens légaux ── */
.ftr-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 32px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ftr-links a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.ftr-links a:hover { color: var(--text); }
.ftr-legal { grid-column: 1 / -1; order: 3; }
.ftr-in > .dim { justify-self: end; }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr; } .ftr-in > .dim { justify-self: start; } }

/* ── Pages légales ── */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); max-width: 1040px; margin: 0 auto; padding: 64px clamp(16px, 3.4vw, 40px) 0; }
.legal-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.legal-nav a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.legal-nav a:hover { background: var(--hover); color: var(--text); }
.legal-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.legal-doc { max-width: 68ch; }
.legal-meta { margin: 12px 0 40px; font-size: 13.5px; }
.legal-sec { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 10px; }
.legal-sec p, .legal-sec li { color: var(--text-2); font-size: 15.5px; }
.legal-sec p + p { margin-top: 10px; }
.legal-sec ul { margin: 0; padding-left: 20px; }
.legal-sec li + li { margin-top: 4px; }
.legal-doc > .btn { margin-top: 32px; }
@media (prefers-reduced-motion: no-preference) {
  .legal-doc > * { animation: fade-up .7s var(--ease) both; }
  .legal-sec { animation-delay: calc(var(--i, 0) * 50ms + 80ms) !important; }
}
@media (max-width: 760px) { .legal { grid-template-columns: 1fr; padding-top: 32px; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } }

/* ── Admin : vérifications et suppression ── */
.setup { margin: 12px 12px 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); font-size: 14px; }
.setup summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.setup-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.setup ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.setup li + li { margin-top: 4px; }
.info .btn-danger { margin-top: 8px; color: var(--danger); }
.info .btn-danger:hover { background: rgba(255, 90, 79, .08); }


/* ───────────────────────────────────────────────────────────
   Fond animé : petites billes qui dérivent
   ─────────────────────────────────────────────────────────── */
[data-theme="dark"]  { --dot: 241, 240, 236; --dot-a: .3; }
[data-theme="light"] { --dot: 17, 17, 16;    --dot-a: .22; }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg canvas { display: block; width: 100%; height: 100%; }

body { background: var(--bg); }
.hdr { background: color-mix(in srgb, var(--bg) 72%, transparent); }

