/* Dripr · page de pré-lancement, thèmes sombre et clair
   Polices auto-hébergées (Geist, Geist Mono). Aucune ressource externe. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/geist-mono-500-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/geist-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Thèmes ---------- */
:root, [data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-raise: #111114;
  --panel: #15151a;
  --panel-2: #1c1c22;
  --panel-3: #25252c;
  --line: #27272e;
  --line-2: #393941;
  --line-hover: #4a4a54;
  --text: #f4f4f6;
  --text-2: #b0aeb8;
  --text-3: #8d8b95;
  --accent: #9b3fd9;          /* violet du logo : boutons, cellule d'achat, sélection (blanc dessus : 5,2:1) */
  --accent-hover: #8a31c6;
  --accent-ink: #ffffff;      /* texte posé sur l'accent (5,1:1) */
  --accent-text: #c88cf2;     /* violet du logo éclairci, lisible sur noir (8:1) */
  --accent-soft: rgba(155, 63, 217, 0.16);
  --accent-line: rgba(200, 140, 242, 0.45);
  --sell: #f4f4f6;
  --sell-ink: #0a0a0c;
  --error-line: #ff9b7a;
  --error-text: #ffb59a;
  --no-soft: rgba(255, 155, 122, 0.18);
  --no-ink: #3a0d00;            /* texte sur le rouge clair (9:1) */
  --todo-bg: rgba(255, 214, 102, 0.16);
  --todo-text: #ffd666;
  --header-bg: rgba(10, 10, 12, 0.72);
  --shadow-app: 0 40px 80px -48px rgba(0, 0, 0, 0.9);
  --shadow-float: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  --glow: rgba(155, 63, 217, 0.22);
  --dot: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f7f7f9;
  --bg-raise: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f3fc;
  --panel-3: #efedf3;
  --line: #e4e3ea;
  --line-2: #d3d1db;
  --line-hover: #b9b6c4;
  --text: #121216;
  --text-2: #4c4a55;          /* 8,3:1 sur blanc */
  --text-3: #6a6874;          /* 5,4:1 sur blanc */
  --accent: #9b3fd9;
  --accent-hover: #8a31c6;
  --accent-ink: #ffffff;
  --accent-text: #7a22b8;     /* violet du logo assombri, 7:1 sur blanc */
  --accent-soft: rgba(155, 63, 217, 0.09);
  --accent-line: rgba(122, 34, 184, 0.35);
  --sell: #121216;
  --sell-ink: #ffffff;
  --error-line: #d1432a;
  --error-text: #b4321b;
  --no-soft: rgba(209, 67, 42, 0.12);
  --no-ink: #ffffff;            /* blanc sur #d1432a (4,8:1) */
  --todo-bg: rgba(255, 196, 0, 0.28);
  --todo-text: #6b4a00;
  --header-bg: rgba(247, 247, 249, 0.78);
  --shadow-app: 0 40px 80px -50px rgba(40, 20, 80, 0.35), 0 2px 6px -2px rgba(40, 20, 80, 0.06);
  --shadow-float: 0 24px 40px -28px rgba(40, 20, 80, 0.3);
  --glow: rgba(155, 63, 217, 0.14);
  --dot: rgba(18, 18, 22, 0.13);
  color-scheme: light;
}

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 152px);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
  scrollbar-color: var(--line-2) var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
/* Fond : trame de points discrète, comme une page de carnet, estompée sur les bords */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

/* Changement de thème : transition douce des couleurs (retirée après coup par le script) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, fill 0.35s ease !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

[hidden] { display: none !important; }
/* Textes bilingues : les deux langues occupent la même case, seule l'active est visible */
.i18n-s { display: inline-grid; }
.i18n-s > span { grid-area: 1 / 1; }
html[lang="fr"] .i18n-s > [data-l="en"], html[lang="en"] .i18n-s > [data-l="fr"] { visibility: hidden; }
/* Pastilles : texte centré dans la place réservée aux deux langues */
.choice .i18n-s, .nav .i18n-s { justify-items: center; text-align: center; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Passages à compléter avant publication */
mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 0.25em; border-radius: 4px; font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em;
  color: var(--accent-text);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
}
.site-header.is-scrolled, .site-header.is-menu { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 24px; height: 24px; display: block; }
.brand__logo { display: block; width: auto; height: 26px; }
[data-theme="dark"] .brand__logo--light, [data-theme="light"] .brand__logo--dark { display: none; }
.brand--quiet .brand__logo { height: 22px; opacity: 0.7; }
.brand__name { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.03em; }
.brand--quiet .brand__mark { opacity: 0.6; }
.nav { display: flex; gap: 22px; margin-right: 12px; font-size: 0.9375rem; color: var(--text-2); }
.login-link { margin-right: 4px; padding: 6px 10px; white-space: nowrap; border-radius: 8px; font-size: 0.9375rem; color: var(--text-2); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
.login-link:hover { color: var(--text); background: var(--panel-2); }
.login-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.nav a { position: relative; text-decoration: none; padding: 6px 0; white-space: nowrap; transition: color 0.2s ease; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent-text); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a.is-current { color: var(--text); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none; /* cible tactile de 44 px */
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--line-hover); color: var(--text); background: var(--panel-2); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }

/* Icône du thème : soleil en sombre (pour passer au clair), lune en clair */
.theme-btn, .menu__theme { position: relative; }
.theme-btn svg { grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.3s ease; }
[data-theme="dark"] .theme-btn__moon, [data-theme="light"] .theme-btn__sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }

.menu-btn { display: none; }
.menu-btn__bars { position: relative; width: 18px; height: 12px; }
.menu-btn__bars i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn__bars i:first-child { top: 2px; }
.menu-btn__bars i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { top: 5px; transform: rotate(-45deg); }

/* Menu mobile déroulant */
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu.is-open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path 0.5s var(--ease), visibility 0s; }
.menu__inner { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.menu__inner > a {
  display: flex; align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
}
.menu__inner > * { opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.4s var(--ease); }
.menu.is-open .menu__inner > * { opacity: 1; transform: none; transition-delay: calc(0.06s + var(--i, 0) * 0.045s); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; }
.menu__foot .btn { flex: 1 1 auto; }
.menu__theme {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: var(--text-2); font-size: 0.9375rem; cursor: pointer;
}
.menu__theme svg { width: 18px; height: 18px; }
[data-theme="dark"] .menu__theme .theme-btn__moon, [data-theme="light"] .menu__theme .theme-btn__sun { display: none; }
[data-theme="dark"] .menu__theme .theme-btn__sun, [data-theme="light"] .menu__theme .theme-btn__moon { opacity: 1; transform: none; }

@media (max-width: 1080px) { /* menu replié avant que l'en-tête déborde */
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (min-width: 1081px) { .menu { display: none; } }
@media (max-width: 560px) {
  .site-header__inner > .site-header__cta, .site-header__inner > .theme-btn, .site-header__inner > .lang-btn, .site-header__inner > .login-link { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 14px -8px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, transform 0.15s var(--ease), box-shadow 0.2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { background: var(--accent-hover); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Bouton en forme d'étiquette, comme le logo : pointe légèrement arrondie à droite, trou près de la pointe */
.btn {
  --tip: 16px;                 /* longueur de la pointe */
  --hole: 4px;                 /* rayon du trou */
  --hole-x: 17px;              /* distance du trou au bout de la pointe */
  padding-left: 20px;
  padding-right: calc(var(--hole-x) + var(--hole) + 12px);
  border-radius: var(--radius) 0 0 var(--radius);
  /* épaules de la pointe arrondies (points intermédiaires), pointe arrondie */
  clip-path: polygon(0 0, calc(100% - var(--tip) - 5px) 0,
    calc(100% - var(--tip) - 2.4px) 0.6px, calc(100% - var(--tip) - 0.6px) 2px, calc(100% - var(--tip) + 1.4px) 4.6px,
    calc(100% - var(--tip) * 0.2) calc(50% - 5px), calc(100% - var(--tip) * 0.07) calc(50% - 2.6px), 100% 50%,
    calc(100% - var(--tip) * 0.07) calc(50% + 2.6px), calc(100% - var(--tip) * 0.2) calc(50% + 5px),
    calc(100% - var(--tip) + 1.4px) calc(100% - 4.6px), calc(100% - var(--tip) - 0.6px) calc(100% - 2px), calc(100% - var(--tip) - 2.4px) calc(100% - 0.6px),
    calc(100% - var(--tip) - 5px) 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at calc(100% - var(--hole-x)) 50%, transparent var(--hole), #000 calc(var(--hole) + 0.5px));
  mask: radial-gradient(circle at calc(100% - var(--hole-x)) 50%, transparent var(--hole), #000 calc(var(--hole) + 0.5px));
  box-shadow: none;
  transform-origin: calc(100% - var(--hole-x)) 50%;   /* l'étiquette pivote autour de son trou */
  transition: background-color 0.2s ease, transform 0.35s var(--ease);
}
.btn:hover { transform: rotate(2.5deg); }
.btn:active { transform: rotate(1deg) scale(0.98); }
/* la forme découpe le contour habituel : anneau intérieur au focus clavier */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ink), inset 0 0 0 4px var(--accent-hover); }
.btn--sm { --tip: 12px; --hole: 3px; --hole-x: 13px; min-height: 44px; padding-left: 14px; padding-right: calc(var(--hole-x) + var(--hole) + 9px); font-size: 0.875rem; border-radius: 8px 0 0 8px; }
.btn--lg { --tip: 19px; --hole: 4.5px; --hole-x: 20px; min-height: 54px; padding-left: 26px; padding-right: calc(var(--hole-x) + var(--hole) + 16px); font-size: 1rem; }

/* ---------- Haut de page ---------- */
.hero { position: relative; padding-top: clamp(48px, 6.5vw, 84px); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.hero__title {
  font-size: clamp(2.5rem, 1.1rem + 3.9vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 13em;
  text-wrap: balance;
}
/* Mobile : une ligne par phrase, taille ajustée à la phrase la plus longue (FR),
   pour que FR et EN occupent la même hauteur (aucun vide en anglais) */
@media (max-width: 899px) {
  .hero__title { font-size: min(clamp(2.5rem, 1.1rem + 3.9vw, 4rem), calc((100vw - 32px) / 11.3)); max-width: none; }
  .hero__title-line { display: block; white-space: nowrap; }
}
@media (min-width: 900px) {
  .hero__title { max-width: none; }
  .hero__title-line { display: block; white-space: nowrap; }
}
.hero__title-mute { color: var(--accent-text); } /* la promesse ressort en violet */
.hero__sub {
  margin-top: clamp(20px, 2.6vw, 28px);
  max-width: 48ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Formulaire d'inscription ---------- */
.signup {
  margin-top: clamp(28px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 300px) auto;
  align-items: end;
  gap: 8px 10px;
  max-width: 560px;
  text-align: left;
}
.signup__field { display: flex; flex-direction: column; gap: 6px; }
.signup__label { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.signup__input {
  height: 48px; width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel);
  font-size: 1rem;
  caret-color: var(--accent-text);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.signup__input::placeholder { color: var(--text-3); }
.signup__input:hover { border-color: var(--line-hover); }
.signup__input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-color: var(--accent-text); background: var(--panel-2); }
.signup__input[aria-invalid="true"] { border-color: var(--error-line); }
.signup__msg { grid-column: 1 / -1; font-size: 0.875rem; color: var(--error-text); }
.signup__msg:empty { display: none; }
.signup__legal { grid-column: 1 / -1; margin-top: 4px; font-size: 0.75rem; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.signup__free { grid-column: 1 / -1; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.signup--center .signup__free, .signup--full .signup__free { text-align: center; }
.signup.is-done .signup__free { display: none; }
.signup__legal a { color: var(--text-2); }
.signup__done {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft);
  font-weight: 600;
}
.signup__done::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("assets/logo-mark.svg") center / contain no-repeat;
  transform-origin: 32% 30%;            /* l'étiquette pend par son trou */
}
/* l'étiquette tombe, se balance puis s'immobilise */
.motion .signup__done:not([hidden])::before { animation: tag-hang 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
@keyframes tag-hang {
  0%   { opacity: 0; transform: translateY(-14px) rotate(-55deg); }
  25%  { opacity: 1; transform: translateY(0) rotate(28deg); }
  45%  { transform: rotate(-16deg); }
  62%  { transform: rotate(9deg); }
  78%  { transform: rotate(-4deg); }
  90%  { transform: rotate(1.5deg); }
  100% { opacity: 1; transform: none; }
}
.motion .signup__done:not([hidden]) { animation: pop-in 0.6s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.signup.is-done .signup__field, .signup.is-done > .btn, .signup.is-done .signup__msg { display: none; }
.signup--center { margin-left: auto; margin-right: auto; }
/* Liste d'attente : e-mail obligatoire puis questions facultatives, sur une colonne */
.signup--full { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 620px; gap: 18px; }
.signup--full > .btn { justify-self: center; }
.q__intro { font-size: 0.875rem; color: var(--text-2); }
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text); }
.q__opt { margin-left: 4px; font-weight: 500; font-size: 0.75rem; color: var(--text-3); }
.q__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel); color: var(--text-2); font-size: 0.875rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.choice:hover > span { border-color: var(--line-hover); color: var(--text); }
.choice input:checked + span { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.signup.is-done .q, .signup.is-done .q__intro { display: none; }
/* Ligne « Lequel ? » : se déplie quand « Autre » est coché */
.q__other { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.4s var(--ease), opacity 0.3s ease, margin-top 0.4s var(--ease); }
.q__other-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.q:has(input[data-has-other]:checked) .q__other { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
@media (max-width: 560px) {
  .signup { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 420px; }
  .signup .btn { width: 100%; }
}

/* Frise des mois */
.months { margin-top: 16px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.months li {
  display: grid; place-items: center;
  height: 30px; border-radius: 6px;
  background: var(--panel-3); color: var(--text-3);
  font-size: 0.75rem; font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.months li.is-buy { background: var(--accent); color: var(--accent-ink); }
.months li.is-sell { background: var(--sell); color: var(--sell-ink); }
.months__key { margin-top: 10px; display: flex; gap: 16px; font-size: 0.8125rem; color: var(--text-2); }
.key { display: inline-flex; align-items: center; gap: 7px; }
.key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.key--buy::before { background: var(--accent); }
.key--sell::before { background: var(--sell); }

/* ---------- Titres ---------- */
.h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }

/* ---------- Le problème ---------- */
.problem { padding-top: var(--section); }
.problem .h2 { max-width: 14em; }
.problem__grid { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 820px) { .problem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.case {
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-raise);
}
.case p { margin-top: 10px; color: var(--text-2); max-width: 46ch; }
.case__show {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  min-height: 132px; margin-bottom: 24px; padding: 20px;
  border-radius: 12px; background: var(--panel-2);
}
.case__note { font-size: 0.8125rem; color: var(--text-3); }
.case__show { position: relative; overflow: hidden; }

/* « Toujours en vente… » : apparaît après la dernière baisse, puis se brise */
.broken {
  align-self: center;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--error-text);
  white-space: nowrap;
}
.broken__l { display: inline-block; white-space: pre; will-change: transform; }
/* apparition lettre par lettre, de gauche à droite */
.motion .broken__l { transition: opacity 0.18s ease, transform 0.3s var(--ease); }
.motion .broken.is-armed .broken__l:not(.is-on) { opacity: 0; transform: translateY(4px); }
.broken.is-crack { animation: crack 0.36s linear; }
@keyframes crack {
  0%, 100% { transform: none; }
  20% { transform: translate(-2px, 0) rotate(-1deg); }
  40% { transform: translate(2px, 1px) rotate(1deg); }
  60% { transform: translate(-1px, 0) rotate(-0.5deg); }
  80% { transform: translate(1px, 0); }
}

/* La marge qui fond : le prix baisse, deux fois */
.drop { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.drop__step { position: relative; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; color: var(--text-3); }
.drop__step:not(.drop__step--now)::after {
  content: ""; position: absolute; left: -5px; right: -5px; top: 50%; height: 3px; margin-top: -1.5px;
  border-radius: 2px; background: var(--error-line); transform-origin: left center;
  transform: rotate(-8deg);                       /* un coup de stylo en biais */
}
.drop__step--now { font-size: 2.25rem; color: var(--error-text); }

/* Trop tard : un signal parcourt les jours, violet jusqu'au pic, rouge jusqu'à la mise en vente */
.late {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4px;
  grid-template-rows: auto auto auto auto; align-items: center;
}
.late__month { grid-column: 1 / -1; grid-row: 1; margin-bottom: 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); }
.days { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: subgrid; }
@supports not (grid-template-columns: subgrid) { .days { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4px; } }
.days li {
  display: grid; place-items: center;
  height: 34px; border-radius: 8px;
  background: var(--panel-3); color: var(--text-3);
  font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.5s ease, transform 0.35s var(--ease);
}
.days li.is-peak { background: var(--accent); color: var(--accent-ink); }
.days li.is-sale { background: var(--error-line); color: var(--no-ink); }
/* l'impulsion du signal : la case clignote puis revient à la normale (sauf le pic et la mise en vente) */
.days li.is-pulse { transform: translateY(-3px) scale(1.08); }
.days li.is-pulse.is-v, .days li.is-pulse.is-peak, .motion .late .days li.is-lit.is-pulse.is-v, .motion .late .days li.is-lit.is-pulse.is-peak { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 14px -8px rgba(0, 0, 0, 0.55); }
.days li.is-pulse.is-r, .days li.is-pulse.is-sale, .motion .late .days li.is-lit.is-pulse.is-r, .motion .late .days li.is-lit.is-pulse.is-sale { background: var(--error-line); color: var(--no-ink); box-shadow: 0 0 0 4px var(--no-soft), 0 6px 14px -8px rgba(0, 0, 0, 0.55); }

.late__flag {
  position: relative; justify-self: center; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 7px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.late__flag svg { width: 13px; height: 13px; flex: none; }
.late__flag::after { content: ""; position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: inherit; }
.late__flag--peak { grid-row: 2; margin-bottom: 9px; background: var(--accent); color: var(--accent-ink); }
.late__flag--peak::after { bottom: -4px; }
.late__flag--sale { grid-row: 4; justify-self: end; margin-top: 9px; background: var(--error-line); color: var(--no-ink); }
.late__flag--sale::after { top: -4px; left: auto; right: 10px; margin-left: 0; }

.problem__end {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 34ch;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.35; letter-spacing: -0.02em; font-weight: 600;
  text-wrap: balance;
}

/* ---------- La solution ---------- */
.how { padding-top: var(--section); }
.how .h2 { max-width: 15em; margin-bottom: clamp(32px, 5vw, 56px); }
/* Cartes qui s'empilent : chaque étape reste accrochée en haut,
   la suivante glisse par-dessus et la précédente recule légèrement. */
.steps { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); padding-bottom: clamp(40px, 14vh, 160px); /* la pile reste un instant avant de partir */ }
.step {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--n, 0) * 14px);
}
.step__card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  min-height: clamp(360px, 52vh, 460px);
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line-2); border-radius: 22px;
  background:
    radial-gradient(90% 120% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--bg-raise);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.55), var(--shadow-float);
  transform-origin: 50% 0;
  transform: scale(var(--stack-scale, 1));
  filter: brightness(var(--stack-dim, 1));
  will-change: transform;
}
[data-theme="light"] .step__card { box-shadow: 0 -14px 34px -24px rgba(40, 20, 80, 0.28), var(--shadow-float); }
@media (min-width: 860px) {
  .step__card { grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: stretch; }
}
.step__rail {
  align-self: start; justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap;
}
@media (min-width: 860px) { .step__card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; row-gap: 20px; } .step__rail { grid-column: 1; } .step__text { grid-column: 1; } .step__show { grid-column: 2; grid-row: 1 / span 2; } }
.step__text { display: flex; flex-direction: column; justify-content: center; }
.step__text .h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.step__text p { margin-top: 12px; max-width: 34ch; color: var(--text-2); }
.step__show {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel);
  font-size: 0.875rem; color: var(--text-2);
}
.chips li svg { width: 14px; height: 14px; }
.chips li.is-on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }

.mini-list { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 460px; }
.mini-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-float);
}
.mini-list__thumb { display: grid; place-items: center; background: var(--panel-3); color: var(--text); width: 40px; height: 40px; border-radius: 9px; }
.mini-list__thumb svg { width: 30px; height: 30px; }
.mini-list b { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.mini-list i { display: block; font-style: normal; font-size: 0.8125rem; color: var(--text-2); }

.months--big { margin-top: 0; width: 100%; max-width: 460px; }
/* Courbe de la demande (exemple fictif) au-dessus de la frise : creux en juillet, pic en novembre */
.curve__label { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.curve__label span { font-weight: 500; color: var(--text-3); }
.curve-wrap { position: relative; width: 100%; max-width: 460px; height: clamp(90px, 12vw, 130px); margin-bottom: 10px; }
.curve { display: block; width: 100%; height: 100%; overflow: visible; }
.curve__line { stroke: var(--accent-text); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.curve__pins { position: absolute; inset: 0; pointer-events: none; }
/* Repères : chronomètre = moment d'achat, flèche montante = pic de demande */
.curve__pin { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2.5px solid var(--panel-2); }
.curve__pin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.curve__pin--buy { background: var(--accent); color: #fff; }
.curve__pin--peak { background: var(--sell); color: var(--bg); }
/* l'achat « bat » comme un signal : c'est maintenant */
.curve__pin--buy::after { content: ""; position: absolute; inset: -2.5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.motion [data-curve-host]:not(.is-armed) .curve__pin--buy::after { animation: ping 1.8s ease-out 0.6s infinite; }
.motion [data-curve-host]:not(.is-armed) .curve__pin--buy svg .hand { transform-origin: 12px 13.5px; animation: tick 3.6s steps(12) 0.6s infinite; }
@keyframes tick { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .curve__pin--buy::after, .curve__pin--buy svg .hand { animation: none !important; } }
/* animation : la courbe se trace une fois juillet trouvé */
.motion [data-curve-host].is-armed .curve__line { stroke-dashoffset: 1; }
.motion [data-curve-host].is-armed .curve__area { opacity: 0; }
.motion [data-curve-host].is-armed .curve__pin { transform: scale(0); }
.motion .curve__line { transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1); }
.motion .curve__area { transition: opacity 0.8s ease 0.5s; }
.motion .curve__pin { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.motion .curve__pin--peak { transition-delay: 1.1s; }
.months--big li { height: 40px; font-size: 0.8125rem; }

/* ---------- Construit en public ---------- */
.public { padding-top: clamp(56px, 8vw, 96px); }
.public__inner {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
}
.public__title { margin-bottom: 4px; }
.public__inner p { color: var(--text-2); }
.public__inner a { color: var(--text); }
.public__tag {
  flex: none; width: 32px; height: 32px; margin-top: 2px;
  transform-origin: 32% 30%;          /* pivote autour du trou de l'étiquette */
  transform: rotate(var(--swing, 0deg));
}

/* ---------- Prix ---------- */
.pricing { padding-top: var(--section); }
.price-card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--accent-line); border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg-raise);
  overflow: hidden;
}
@media (min-width: 860px) {
  .price-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: 56px; }
  .price-card__buy { grid-column: 2; }
}
.price-card__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.price-card__secure { max-width: 34ch; font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.price-card__title { max-width: 12em; }
.price-card__amount { color: var(--accent-text); }
.price-card__hook { margin-top: 14px; color: var(--text-2); font-size: 1.125rem; }
.price-card__list { display: flex; flex-direction: column; gap: 14px; }
.price-card__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); }
.tick svg { width: 15px; height: 15px; }
/* Trois formules dans la carte de prix */
@media (min-width: 860px) { .price-card--plans { grid-template-columns: minmax(0, 1fr); align-items: stretch; } }
.price-card--plans .price-card__title { max-width: 18em; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line); }
.plan--pro { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--bg) 70%); }
.plan__badge { position: absolute; top: 22px; right: 22px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; }
.plan__name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.plan__price { color: var(--text-2); }
.plan__price b { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.plan__list { flex: 1; gap: 12px; font-size: 0.9375rem; }
.plan__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.plan__link { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.plan__link:hover { text-decoration-color: var(--accent-text); }
.plan__year { color: var(--text-2); font-size: 0.875rem; text-underline-offset: 3px; }
.plan__year:hover { color: var(--text); }
.plan__secure { max-width: none; }

/* ---------- Questions ---------- */
.faq { padding-top: var(--section); }
.faq__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 860px) { .faq__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  cursor: pointer; list-style: none;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--accent-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--text-3);
  transition: transform 0.4s var(--ease), color 0.2s ease;
}
.faq summary:hover::after { color: var(--accent-text); }
.faq details.is-open summary::after, .faq details[open]:not(.is-closing) summary::after { transform: rotate(135deg); color: var(--accent-text); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 0 20px; max-width: 56ch; color: var(--text-2); }
.motion .faq__a p { transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.motion .faq details.is-closing .faq__a p, .motion .faq details.is-opening .faq__a p { opacity: 0; transform: translateY(-6px); }

/* ---------- Dernier appel ---------- */
.close { padding: var(--section) 0; }
.close__inner {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-raise);
}
.close__inner::before {
  content: ""; position: absolute; z-index: 0; left: 50%; bottom: -60%;
  width: 120%; height: 120%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.close__inner > * { position: relative; }
.close .h2 { max-width: 14em; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 0.875rem; color: var(--text-3); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer__inner p:last-child { margin-left: auto; }
@media (max-width: 720px) { .site-footer__inner p:last-child { margin-left: 0; } }

/* ========== Mouvement (uniquement si le script l'a confirmé) ========== */

/* Apparition au scroll */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
@media print { .motion [data-reveal] { opacity: 1; transform: none; transition: none; } } /* à l'impression, tout le contenu est visible */

/* Liste du prix : cascade */
.motion .price-card__list li { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.7s var(--ease); transition-delay: calc(0.25s + var(--i, 0) * 80ms); }
.motion .is-in .price-card__list li { opacity: 1; transform: none; }

/* Étape 1 : un curseur clique sur les catégories */
.cursor { display: none; }
.motion .cursor {
  display: block; position: absolute; left: 0; top: 0; z-index: 2;
  width: 26px; height: 26px; color: var(--text);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  opacity: 0; pointer-events: none;
}
.chips li { position: relative; transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease); }
.chips li svg { transition: transform 0.35s var(--ease), opacity 0.2s ease; }
.motion [data-anim="pick"].is-armed li[data-target]:not(.is-on) svg { display: none; }
.chips li.is-press { transform: scale(0.93); }
.chips li.is-ripple::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 2px solid var(--accent-text); animation: ripple 0.6s var(--ease) forwards;
}
@keyframes ripple { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }

/* Étape 2 : les pièces arrivent par le bas, une à une */
.motion [data-anim="list"] li { opacity: 0; transform: translateY(48px); transition: opacity 0.5s ease, transform 0.8s var(--ease); transition-delay: calc(0.35s + var(--i, 0) * 0.5s); }
.motion .is-in [data-anim="list"] li { opacity: 1; transform: none; }

/* Étape 3 : les mois se refusent jusqu'au bon */
[data-anim="scan"] li { position: relative; }
.months li.is-no { background: var(--error-line); color: var(--no-ink); animation: refuse 0.32s ease; }
.months li.is-tried { background: var(--no-soft); color: var(--error-text); }
.months li.is-found { animation: found 0.6s var(--ease); }
@keyframes refuse { 0%, 100% { transform: none; } 25% { transform: translateY(-4px); } 60% { transform: translateY(3px); } 85% { transform: translateY(-1px); } } /* secousse verticale */
@keyframes found { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.motion [data-anim="scan"].is-armed ~ .months__key { opacity: 0; }
.months__key { transition: opacity 0.5s ease; }

/* Le prix baisse, deux fois */
/* Chaque prix arrive, reste un instant, puis un trait le barre de gauche à droite.
   Le prix barré s'éteint ; vient le suivant, jusqu'au 18 €. */
.motion .drop__step { opacity: 0; transform: translateY(-8px); color: var(--text); transition: none; } /* remise à zéro instantanée hors écran */
.motion .drop__step::after { transform: rotate(-8deg) scaleX(0); transition: none; }
.motion .is-in .drop__step { opacity: 1; transform: none; color: var(--text-3); transition: opacity 0.35s ease var(--in), transform 0.5s var(--ease) var(--in), color 0.25s ease calc(var(--cut, 0s) + 0.15s); }
.motion .is-in .drop__step::after { transform: rotate(-8deg) scaleX(1); transition: transform 0.14s cubic-bezier(0.8, 0, 1, 1) var(--cut, 0s); }
/* le chiffre encaisse le coup : secousse sèche à l'instant où il est barré */
.motion .is-in .drop__step:not(.drop__step--now) { animation: struck 0.3s ease-out calc(var(--cut, 0s) + 0.1s); }
@keyframes struck {
  0% { transform: none; }
  20% { transform: translate(3px, 1px) rotate(2deg); }
  45% { transform: translate(-3px, 0) rotate(-2deg); }
  70% { transform: translate(1px, 0); }
  100% { transform: none; }
}
.motion .drop__step--now { transform: translateY(-8px) scale(0.6); color: var(--error-text); }
.motion .is-in .drop__step--now { color: var(--error-text); transition: opacity 0.3s ease var(--in), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--in); }

/* Signal des jours : états de départ (le script les allume un à un) */
.motion .late.is-armed .days li { background: var(--panel-3); color: var(--text-3); }
.motion .late.is-armed .late__flag { opacity: 0; transform: translateY(6px) scale(0.9); }
.motion .late.is-armed .late__flag--sale { transform: translateY(-6px) scale(0.9); }
.motion .late .days li.is-lit.is-peak { background: var(--accent); color: var(--accent-ink); }
.motion .late .days li.is-lit.is-sale { background: var(--error-line); color: var(--no-ink); }
.motion .late .late__flag.is-up { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Page de remerciement (merci.html) ---------- */
.merci { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.merci__card { align-items: center; gap: 0; max-width: 760px; margin: 0 auto; }
.merci__title { margin-top: 10px; max-width: 16em; }
.merci__sub { margin-top: 14px; max-width: 46ch; color: var(--text-2); font-size: 1.0625rem; text-wrap: pretty; }
.merci__list { margin: 32px 0 36px; max-width: 520px; text-align: left; }
.merci__list b { font-weight: 650; }
.merci__list li > span:last-child { color: var(--text-2); font-weight: 450; }
.merci__list li b { color: var(--text); }
.motion .merci__list li { opacity: 1; transform: none; } /* visible tout de suite, sans attendre le défilement */
.merci__contact { margin-top: 28px; font-size: 0.9375rem; color: var(--text-2); }
.merci__contact a { color: inherit; }
.merci__back { margin-top: 24px; text-align: center; font-size: 0.9375rem; }
.merci__back a { color: var(--text-2); }
.merci__back a:hover { color: var(--text); }
/* pas de menu sur cette page : langue et thème restent visibles sur mobile */
@media (max-width: 560px) {
  .site-header__inner > .merci__lang, .site-header__inner > .merci__theme { display: inline-grid; }
}

/* ---------- Page conseil (article) ---------- */
.article { max-width: calc(44rem + var(--gutter) * 2); padding-top: clamp(40px, 7vw, 80px); padding-bottom: var(--section); }
.article__fil { font-size: 0.875rem; color: var(--text-3); margin-bottom: 20px; }
.article__fil a { color: var(--text-2); }
.article__fil a:hover { color: var(--text); }
.article__titre { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.article__chapo { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--text-2); }
.article__h2 { margin-top: clamp(48px, 7vw, 72px); margin-bottom: 8px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.article__h3 { margin-top: 32px; margin-bottom: 6px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.article p, .article__liste { line-height: 1.65; color: var(--text-2); }
.article p + p { margin-top: 14px; }
.article b { color: var(--text); font-weight: 600; }
.article__liste { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 10px; }
.article__liste li::marker { color: var(--accent-text); }
.article__note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-3) !important; }
.article__cta { margin-top: 48px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--panel); }
.article__cta .article__h3 { margin-top: 0; }
.article__cta .btn { margin-top: 20px; }
.article__cta-prix { margin-top: 12px; font-size: 0.875rem; color: var(--text-3) !important; }
