/*
 * Page de vente de Ciblup (ciblup.com/). Direction run 2 (.ultimate/direction.md, passes 1 et 2).
 * Charger après tokens.css (couleurs, typos, rayons, durées) et avant motion.css (entrées, barres, fondus).
 * Ce fichier ne redéclare aucune valeur de tokens.css : il n'ajoute que les mesures propres à la page de vente
 * (largeur de page, tailles d'affichage), regroupées ci-dessous.
 * Blanc et encre ; spectre irisé en touches (Charlie, liseré et barre de Ciblup, trait Ciblup ↔ Claude, carte prix).
 * Jour seulement. Aucun style en ligne (CSP style-src 'self').
 */
:root {
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(96px, 12vw, 160px);
  --body-size: 17px;
  --nav-h: 68px;
  --h1-size: clamp(48px, 9vw, 108px);
  --h2-size: clamp(34px, 5vw, 60px);
  --lead-size: clamp(18px, 2vw, 21px);
  --tile: 88px;
  --versus-min: 760px;   /* tableau des fonctions : en dessous, il défile dans son cadre */
  --versus-first: 22%;
  --versus-first-sm: 132px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--sp-3)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sel); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); border-radius: var(--r-control); }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 50;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-control);
  background: var(--act); color: var(--onact); text-decoration: none; font-weight: var(--w-strong);
}
.skip:focus { top: var(--sp-3); }

/* ── Boutons (l'appui et l'attente viennent de motion.css) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--hit); padding: 0 var(--sp-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: var(--w-strong) var(--text-lg)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn-ink { background: var(--act); color: var(--onact); }
.btn-ink:hover { background: var(--act-hover); }
.btn-sm { padding: 0 var(--sp-4); font-size: var(--text-md); }
.btn-lg { min-height: 56px; padding: 0 var(--sp-6); font-size: var(--body-size); }
.btn-block { width: 100%; }
.btn-ico { width: var(--sp-5); height: var(--sp-5); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / 0.97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: var(--sp-6);
}
.brand img { width: 112px; height: auto; }
.nav nav { flex: 1; }
.nav-links { display: flex; justify-content: center; gap: var(--sp-1); }
.nav-links a, .nav-login {
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--sp-3);
  border-radius: var(--r-pill); text-decoration: none; font-size: var(--text-md); color: var(--ink-2);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-login:hover { background: var(--mist); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  max-width: 920px; margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg);
  font-size: var(--text-md); color: var(--ink-2);
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--iri); }
h1 {
  margin-top: var(--sp-6);
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--h1-size);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead { margin-top: var(--sp-6); max-width: 34ch; font-size: var(--lead-size); line-height: var(--lh-body); color: var(--mute); text-wrap: pretty; }
.hero .lead { max-width: 44ch; margin-left: auto; margin-right: auto; }

.download { margin-top: var(--sp-8); display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.os-switch {
  display: inline-flex; padding: var(--sp-1); gap: var(--sp-1);
  border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line);
}
.os {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--hit); padding: 0 var(--sp-4);
  border: 0; border-radius: var(--r-pill); background: transparent;
  font: var(--w-strong) var(--text-md)/1 var(--font); color: var(--ink-2); cursor: pointer;
}
.os.is-on { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.os[aria-disabled="true"] { color: var(--mute); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line-strong); background: transparent; }
.os[aria-disabled="true"] .os-ico { opacity: 0.6; }
.os-ico { width: var(--icon); height: var(--icon); fill: currentColor; }
.soon {
  padding: 3px var(--sp-2); border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--line);
  font-size: var(--text-xs); font-weight: var(--w-strong); color: var(--mute);
}
.download-meta { font-size: var(--text-md); color: var(--mute); }

/* ── Scène : l'app, et Charlie qui regarde par-dessus ─────── */
.stage { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stage-frame { position: relative; margin-top: clamp(110px, 15vw, 190px); }
.peek {
  position: absolute; z-index: 0;
  width: clamp(150px, 22vw, 260px); height: auto;
  right: 9%;
  bottom: calc(100% - clamp(10px, 1.6vw, 19px));
  overflow: visible;
}
.head-halo { fill: var(--rose); opacity: 0.55; }
.head-rim { fill: none; stroke: var(--paper); stroke-width: 10; }
.eye-ball { fill: var(--ink); }
.pupil { fill: var(--paper); }
.eye { transform-box: fill-box; transform-origin: center; animation: m-blink 7s infinite; }
.eye + .eye { animation-delay: 40ms; }

.window {
  position: relative; z-index: 1;
  border-radius: var(--r-card);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-card);
  overflow: hidden;
}
.shot { display: block; }
.shot[hidden] { display: none; }
.shot:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
/* Films de l'app (16:9, fond clair comme leurs images) : pas de cadre de navigateur, seulement la carte de .window. */
.window-vid { background: var(--mist); }
.vid { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mist); }
/* Sous chaque film : ce qu'il montre, puis Pause / Lecture (WCAG 2.2.2). */
.vid-bar { margin-top: var(--sp-4); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.vid-cap { color: var(--mute); text-wrap: pretty; }
.vid-btn {
  flex: none; display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--hit); padding: 0 var(--sp-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg);
  font: var(--w-strong) var(--text-md)/1 var(--font); color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.vid-btn:hover { background: var(--mist); }
.vid-ico { width: var(--sp-4); height: var(--sp-4); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vid-ico-play { fill: currentColor; stroke-width: 1.6; }
.vid-btn .vid-ico-play,
.vid-btn.is-paused .vid-ico-pause { display: none; }
.vid-btn.is-paused .vid-ico-play { display: inline; }
.stage-note { margin-top: 14px; text-align: center; font-size: var(--text-sm); color: var(--mute); }

/* ── Titres de section ───────────────────────────────────── */
h2 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--h2-size);
  line-height: 1.02;
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}
h3 { font-size: 19px; font-weight: var(--w-strong); letter-spacing: -0.01em; line-height: var(--lh-tight); }

/* ── Trois gestes : la frise sous la capture sert d'onglets ─ */
.frise {
  --p: 0;
  position: relative; isolation: isolate;
  margin-top: var(--sp-8);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8);
  text-align: center;
}
/* Rail : du centre du premier rond au centre du dernier ; la partie irisée avance jusqu'au geste choisi. */
.frise::before,
.frise::after {
  content: ""; position: absolute; z-index: -1; top: 19px; height: 2px; border-radius: var(--r-pill);
  left: calc((100% - 2 * var(--sp-8)) / 6); right: calc((100% - 2 * var(--sp-8)) / 6);
}
.frise::before { background: var(--line-2); }
.frise::after {
  background: var(--iri);
  transform: scaleX(var(--p)); transform-origin: left center;
  transition: transform var(--dur-3) var(--ease-out);
}
/* Chaque geste est un onglet : toute la colonne se clique. */
.geste {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; text-align: center;
}
.geste::after { content: ""; position: absolute; inset: calc(-1 * var(--sp-3)); border-radius: var(--r-card); }
.geste:focus-visible { outline: none; }
.geste:focus-visible::after { outline: var(--ring-w) solid var(--focus); }
.geste-n {
  position: relative; margin: 0 auto;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--text-xl);
  font-variant-numeric: tabular-nums; color: var(--ink-2);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.geste-t {
  display: block; margin-top: var(--sp-4);
  font-size: 19px; font-weight: var(--w-strong); letter-spacing: -0.01em; line-height: var(--lh-tight); color: var(--mute);
  transition: color var(--dur-2) var(--ease-out);
}
.geste-p { display: block; margin: var(--sp-2) auto 0; color: var(--mute); max-width: 32ch; hyphens: manual; }
.nw { white-space: nowrap; }
.geste:hover .geste-n { border-color: var(--line-strong); }
.geste:hover .geste-t { color: var(--ink-2); }
.geste.is-on .geste-n,
.geste.is-done .geste-n { background: var(--act); border-color: var(--act); color: var(--onact); }
.geste.is-on .geste-n { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--peri); }
.geste.is-on .geste-t { color: var(--ink); }
.stage .stage-note { margin-top: var(--sp-8); }

/* ── Ce que fait Ciblup : cinq onglets, un film à la fois ─── */
.tour { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; text-align: center; }
/* Les onglets défilent en largeur sur téléphone ; la page, elle, ne défile jamais de côté. */
.tour-tabs { margin-top: var(--sp-8); display: flex; justify-content: center; max-width: 100%; }
.tour-list {
  position: relative; display: inline-flex; gap: var(--sp-1); padding: var(--sp-1); max-width: 100%;
  border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.tour-list::-webkit-scrollbar { display: none; }
.tour-tab {
  flex: none; scroll-snap-align: center;
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--sp-4);
  border: 0; border-radius: var(--r-pill); background: transparent;
  font: var(--w-strong) var(--text-md)/1 var(--font); color: var(--ink-2); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tour-tab:hover { color: var(--ink); }
.tour-tab:focus-visible { outline-offset: calc(-1 * var(--ring-w)); border-radius: var(--r-pill); }
.tour-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.tour-stage { position: relative; margin-top: var(--sp-8); text-align: left; }
.tour-panel[hidden] { display: none; }
/* Changement d'onglet : fondu seul, 200 ms, sans glissement ni zoom. */
.tour-panel:not([hidden]) { animation: l-vid-in var(--dur) var(--ease-out) both; }
@keyframes l-vid-in { from { opacity: 0; } }
.tour-panel .vid-cap { margin-top: var(--sp-4); min-height: var(--hit); display: flex; align-items: center; padding-right: calc(var(--hit) * 3); }
.vid-bar-tour { position: absolute; right: 0; bottom: 0; margin: 0; }

/* ── Ciblup face aux autres : fonctions en lignes, outils en colonnes ──
 * Colonne Ciblup : fond Brume et liseré irisé en haut (même spectre que la carte prix et le ticket).
 * Sur téléphone, le tableau défile dans son cadre ; la colonne des fonctions reste figée à gauche. */
.versus-cta { margin-top: var(--sp-12); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; }
.versus { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.versus h2 { text-align: center; }
.versus-frame {
  position: relative; /* garde les libellés .sr-only des cellules dans le cadre (sinon la page s'élargit) */
  margin-top: var(--sp-12);
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.versus-frame:focus-visible { outline-offset: var(--sp-1); border-radius: var(--r-card); }
.versus-table {
  width: 100%; min-width: var(--versus-min); table-layout: fixed;
  border-collapse: separate; border-spacing: 0;
  font-size: var(--text-lg); line-height: var(--lh-tight);
}
.versus-table th, .versus-table td {
  padding: var(--sp-4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.versus-table thead th:first-child { width: var(--versus-first); }
.versus-table thead th {
  vertical-align: bottom; padding-top: var(--sp-5);
  font-size: var(--text-md); font-weight: var(--w-medium); color: var(--mute);
}
.versus-table tbody th { font-weight: var(--w-strong); color: var(--ink); }
.versus-table td { color: var(--ink-2); }
.versus-table td.is-no { color: var(--mute); }

/* Colonne Ciblup */
.versus-table .is-us { background: var(--mist); color: var(--ink); }
.versus-table thead th.is-us {
  position: relative; border-radius: var(--r-card) var(--r-card) 0 0;
  font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--text-xl);
  letter-spacing: -0.01em; color: var(--ink);
}
.versus-table thead th.is-us::before {
  content: ""; position: absolute; top: 0; left: var(--sp-3); right: var(--sp-3); height: 3px;
  border-radius: 0 0 var(--r-pill) var(--r-pill); background: var(--iri);
}
.versus-table tbody:not(.versus-soon) tr:last-child .is-us,
.versus-soon tr:last-child .is-us { border-radius: 0 0 var(--r-card) var(--r-card); border-bottom-color: transparent; }
.versus-soon tr:nth-child(2) .is-us { border-radius: var(--r-card) var(--r-card) 0 0; }
.yes { display: inline-flex; align-items: flex-start; gap: var(--sp-2); font-weight: var(--w-strong); }
.tick {
  width: var(--sp-5); height: var(--sp-5); flex: none; margin-top: -1px; padding: 3px;
  border-radius: 50%; background: var(--act); color: var(--onact);
}

/* Groupe « À venir dans Ciblup » */
.versus-group th {
  padding-top: var(--sp-10); padding-bottom: var(--sp-3);
  font-size: var(--text-md); font-weight: var(--w-strong); color: var(--ink-2);
}
.versus-group th span { position: sticky; left: var(--sp-4); }
.versus-soon th[scope="row"] { font-weight: var(--w-regular); color: var(--ink-2); }
.versus-soon .soon { display: inline-block; }

.versus-note { margin-top: var(--sp-5); font-size: var(--text-sm); color: var(--mute); max-width: 72ch; }
.versus-src { margin-top: var(--sp-2); font-size: var(--text-sm); color: var(--mute); }
.versus-src summary {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--hit);
  cursor: pointer; list-style: none; font-weight: var(--w-strong); color: var(--ink-2);
}
.versus-src summary::-webkit-details-marker { display: none; }
.versus-src summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--dur-2) var(--ease-out);
}
.versus-src[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.versus-src ul { display: grid; gap: var(--sp-1); padding-bottom: var(--sp-2); }
.versus-src a { color: var(--ink-2); display: inline-block; padding: var(--sp-1) 0; }
.versus-src a:hover { color: var(--ink); }

/* ── Fonctionne avec Claude : deux tuiles reliées ─────────── */
.claude { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pair { display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-8); }
.tile {
  width: var(--tile); height: var(--tile); flex: none;
  display: grid; place-items: center;
  border-radius: 22px; background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.tile img { width: 48px; height: 48px; }
.tile-charlie { width: 56px; height: 56px; overflow: visible; }
.pair-link { display: block; width: clamp(56px, 10vw, 112px); height: 2px; margin: 0 var(--sp-2); }
.pair-line { height: 2px; border-radius: var(--r-pill); background: var(--iri); }
.claude .lead { max-width: 40ch; }
.facts {
  margin-top: var(--sp-12); width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8);
  text-align: left;
}
.facts li { padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--mute); }
.facts b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: var(--w-strong); }
.note { margin-top: var(--sp-10); font-size: var(--text-md); color: var(--mute); }

/* ── Vos données : liste à coches ─────────────────────────── */
.data { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.data h2 { max-width: 14ch; }
.checks { margin-top: var(--sp-12); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-12); }
.checks li { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-6) 0; border-top: 1px solid var(--line); }
.check {
  width: 28px; height: 28px; flex: none; margin-top: -2px; padding: 5px;
  border-radius: 50%; background: var(--act); color: var(--onact);
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.checks p { margin-top: 6px; color: var(--mute); max-width: 44ch; }
/* La coche se dessine quand sa ligne apparaît (motion.js) ; sans JS, elle est déjà là. */
.m-js .checks:not(.is-in) .check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.m-js .checks.is-in .check path {
  stroke-dasharray: 1;
  animation: m-draw var(--dur-3) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * var(--stagger) + var(--dur-2));
}

/* ── Prix : tableau (Ciblup en premier) + carte ───────────── */
.pricing { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.price-row {
  margin-top: var(--sp-12); width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(32px, 5vw, 64px); align-items: center; text-align: left;
}
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.compare-table caption { text-align: left; font-weight: var(--w-strong); color: var(--ink-2); padding-bottom: 14px; }
.compare-table th, .compare-table td { padding: var(--sp-4) var(--sp-3); text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.compare-table thead th { white-space: nowrap; vertical-align: bottom; }
.compare-table thead th {
  font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--mute);
  padding-top: 0; padding-bottom: var(--sp-3); border-bottom: 0;
}
.compare-table tbody th { font-weight: var(--w-strong); color: var(--ink-2); white-space: nowrap; }
.compare-table tbody th span { display: block; font-weight: var(--w-regular); font-size: var(--text-sm); color: var(--mute); }
.compare-table td { color: var(--mute); white-space: nowrap; }
.compare-table td.na { color: var(--mute); }
.compare-table .year { width: 42%; }
.compare-table .year strong { font-weight: var(--w-strong); color: var(--ink-2); }
.compare-table .year small { margin-left: var(--sp-2); font-size: var(--text-xs); color: var(--mute); }
/* Piste pleine largeur + barre : la longueur se lit comme une part de l'outil le plus cher (lemlist = piste entière). */
.track { display: block; height: 8px; margin-top: var(--sp-2); border-radius: var(--r-pill); background: var(--mist); overflow: hidden; }
.bar { height: 100%; border-radius: var(--r-pill); background: var(--line-strong); }

/* Rangée Ciblup : fond Brume, prix en grand, barre irisée. */
.compare-table tr.is-us > * { background: var(--mist); border-bottom-color: transparent; }
.compare-table tr.is-us > :first-child { position: relative; border-radius: var(--r-card) 0 0 var(--r-card); padding-left: var(--sp-5); }
.compare-table tr.is-us > :last-child { border-radius: 0 var(--r-card) var(--r-card) 0; }
.compare-table tr.is-us th { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--text-xl); color: var(--ink); letter-spacing: -0.01em; }
.compare-table tr.is-us td { color: var(--ink-2); }
.compare-table tr.is-us .year strong {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: 40px; line-height: 1; letter-spacing: var(--tracking-title); color: var(--ink);
}
.compare-table tr.is-us .track { background: var(--bg); }
.compare-table tr.is-us .bar { background: var(--iri); min-width: var(--sp-3); }
.compare-table tbody tr:not(.is-us) th { padding-left: var(--sp-5); }
.compare-table thead th:first-child { padding-left: var(--sp-5); }

.compare figcaption { margin-top: var(--sp-4); font-size: var(--text-xs); line-height: var(--lh-body); color: var(--mute); max-width: 60ch; }
.price-card {
  width: 100%; max-width: 420px; justify-self: end; padding: 36px var(--sp-8) var(--sp-6);
  border-radius: var(--r-xl); text-align: left;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--iri) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-card);
}
.price-name { font-weight: var(--w-strong); color: var(--ink-2); }
.price { margin-top: var(--sp-2); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-n { font-family: var(--font-display); font-weight: var(--w-display); font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-u { color: var(--mute); }
.price-list { margin: var(--sp-6) 0 var(--sp-8); display: grid; gap: var(--sp-3); }
.price-list li { position: relative; padding-left: 28px; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: var(--sp-1); width: 18px; height: 18px; border-radius: 50%;
  background: var(--act);
}
.price-list li::after {
  content: ""; position: absolute; left: 5px; top: var(--sp-2); width: var(--sp-2); height: 5px;
  border-left: 2px solid var(--onact); border-bottom: 2px solid var(--onact); transform: rotate(-45deg);
}
.price-foot { margin-top: var(--sp-4); text-align: center; font-size: var(--text-md); color: var(--mute); }
.price-foot a { color: var(--ink); font-weight: var(--w-strong); display: inline-block; padding: var(--sp-3) var(--sp-1); margin: calc(-1 * var(--sp-3)) 0; }

/* ── Questions : ouverture animée ────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.faq h2 { text-align: center; }
.faq-list { margin-top: var(--sp-10); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
/* Hauteur animée là où le navigateur sait passer à « auto » ; ailleurs, ouverture nette et fondu du texte. */
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size var(--dur-2) var(--ease-out), content-visibility var(--dur-2) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  font-size: var(--text-xl); font-weight: var(--w-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-2) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 var(--sp-8) 22px 0; color: var(--mute); }
.faq details[open] p { animation: m-swap-in var(--dur-2) var(--ease-out) both; }
.faq-more { margin-top: 28px; text-align: center; color: var(--mute); }
.faq-more a { color: var(--ink); font-weight: var(--w-strong); display: inline-block; padding: var(--sp-3) 2px; margin: calc(-1 * var(--sp-3)) 0; }

/* ── Guides (liste de liens, mêmes filets que la FAQ) ─────── */
.home-guides-list { margin-top: var(--sp-10); border-top: 1px solid var(--line); }
.home-guides-list li { border-bottom: 1px solid var(--line); }
.home-guides-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-4) 0;
  font-size: var(--text-xl); font-weight: var(--w-strong); color: var(--ink); text-decoration: none;
}
.home-guides-list a::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease-out);
}
.home-guides-list a:hover { color: var(--ink-2); }
.home-guides-list a:hover::after { transform: translateX(3px) rotate(-45deg); }

/* ── Fin de page ─────────────────────────────────────────── */
.closing {
  position: relative; overflow: hidden;
  margin-top: calc(var(--section-gap) * 0.5);
  padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(150px, 20vw, 230px);
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--mist) 100%);
  display: flex; flex-direction: column; align-items: center;
}
.closing .lead { margin-bottom: var(--sp-8); }
.peek-end {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  right: auto; width: clamp(180px, 26vw, 300px);
}

.foot { border-top: 1px solid var(--line); background: var(--mist); }
.foot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-6); flex-wrap: wrap;
}
.foot-logo { width: 96px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-1); }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 10px; font-size: var(--text-md); color: var(--mute); }
.foot-links a:hover { color: var(--ink); }

/* ── Arrivée du haut de page (une fois, au chargement) ───── */
.hero > * { animation: m-card-in var(--dur-3) var(--ease-out) both; }
.hero > :nth-child(2) { animation-delay: var(--stagger); }
.hero > :nth-child(3) { animation-delay: calc(2 * var(--stagger)); }
.hero > :nth-child(4) { animation-delay: calc(3 * var(--stagger)); }
.peek-head { transition: transform 260ms var(--ease); }
.stage-frame .peek { animation: l-peek 900ms 300ms var(--ease-out) both; }
@keyframes l-peek { from { transform: translateY(40%); } }

/* ── Largeurs ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .price-row { grid-template-columns: minmax(0, 1fr); }
  .price-card { justify-self: center; }
  .nav-links { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts li { padding: var(--sp-5) 0; }
}
@media (max-width: 760px) {
  /* Tableau des fonctions : la colonne des fonctions reste figée pendant le défilement. */
  .versus-table { font-size: var(--text-md); }
  .versus-table th, .versus-table td { padding: var(--sp-3); }
  .versus-table thead th:first-child { width: var(--versus-first-sm); }
  .versus-table tbody th[scope="row"],
  .versus-table thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--bg);
    box-shadow: inset -1px 0 0 var(--line);
  }
  .versus-group th span { left: var(--sp-3); }
}
@media (max-width: 760px) {
  /* Frise verticale : rail à gauche, du premier rond au dernier. */
  .frise { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); padding-left: 56px; }
  .frise::before, .frise::after {
    top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto;
  }
  .frise::after { transform: scaleY(var(--p)); transform-origin: center top; }
  .frise, .geste { text-align: left; }
  .geste-n { position: absolute; left: -56px; top: 0; margin: 0; }
  .geste-p { margin-left: 0; }
  .geste-t { margin-top: var(--sp-2); }
  .geste::after { left: calc(-56px - var(--sp-2)); }
  .tour-tabs { justify-content: flex-start; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .peek { right: 6%; }
}
@media (max-width: 560px) {
  .compare-table th, .compare-table td { padding: var(--sp-3) var(--sp-2); font-size: var(--text-md); }
  .compare-table thead th { font-size: var(--text-xs); }
  .compare-table tbody th, .compare-table thead th:first-child { padding-left: var(--sp-3); }
  /* Même retrait à gauche pour l'en-tête, la rangée Ciblup et les autres outils. */
  .compare-table thead th:first-child,
  .compare-table tbody tr:not(.is-us) th,
  .compare-table tr.is-us > :first-child { padding-left: var(--sp-4); }
  .compare-table tr.is-us .year strong { font-size: 30px; }
  .compare-table .year small { display: block; margin: var(--sp-1) 0 0; }
}
@media (max-width: 560px) {
  /* Le bouton passe sous la phrase : la phrase garde toute la largeur. */
  .vid-bar { flex-direction: column; align-items: flex-start; }
  .tour-panel .vid-cap { padding-right: 0; min-height: 0; }
  .vid-bar-tour { position: static; margin-top: var(--sp-3); }
}
@media (max-width: 420px) {
  .nav-login { display: none; }
  .os { padding: 0 var(--sp-3); }
  .download-meta { max-width: 30ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .m-js .checks .check path { stroke-dashoffset: 0; }
}

/* ── Invitation (?ref=CODE) : bandeau sous le titre, bord irisé 1 px, texte sur blanc ── */
.invite {
  margin-top: var(--sp-5);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--iri) border-box;
  font-size: var(--text-lg); font-weight: var(--w-strong); color: var(--ink);
  text-wrap: balance;
}
.invite[hidden] { display: none; }
.invite-ico { width: var(--sp-5); height: var(--sp-5); flex: none; color: var(--ink-2); }
.hero > .invite + .lead { margin-top: var(--sp-5); }
@media (max-width: 479px) {
  .invite { font-size: var(--text-md); border-radius: var(--r-card); text-align: left; }
}

/* ── Pop up d'accueil du filleul (?ref=CODE) : <dialog> natif, carte r-xl comme le compte ──
 * Voile encre 15 % + flou 5 px (comme l'app Mac) ; Charlie dépasse du haut ; prix dans un ticket à bord irisé.
 * Mouvement : la carte monte et apparaît (m-card-in de motion.css) ; des confettis irisés partent du centre de la carte
 * (canvas .gift-confetti posé par landing.js, 2,5 s puis retiré) ; le spectre tourne autour du ticket en continu (7 s le tour).
 * Calques dans le <dialog> (top layer, donc au-dessus du ::backdrop flou) : canvas en z-index -1, puis le fond de la carte
 * (.gift::after, z-index -1, peint après le canvas), puis le contenu. Les confettis passent derrière la carte et restent nets.
 * Tout est coupé sous prefers-reduced-motion (règle globale plus haut, ::backdrop ci-dessous ; landing.js ne lance rien). */
@property --gift-turn {
  syntax: "<angle>";
  inherits: false;
  initial-value: 120deg;
}
html:has(.gift[open]) { overflow: hidden; }
.gift {
  --gift-price: 48px;
  position: fixed; overflow: visible;
  width: min(var(--card-w), calc(100% - 2 * var(--sp-4)));
  max-width: none; max-height: none;
  margin: auto; padding: var(--sp-10) var(--sp-8) var(--sp-6);
  border: 0; border-radius: var(--r-xl);
  background: transparent; color: var(--ink);
  text-align: center;
}
/* Fond de la carte : en pseudo-élément pour passer au-dessus du canvas des confettis (même z-index, peint après). */
.gift::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid var(--line); border-radius: inherit;
  background: var(--bg); box-shadow: var(--shadow-card);
  pointer-events: none;
}
/* Canvas plein écran : landing.js le cale sur le coin de la fenêtre (la carte est transformée pendant son entrée). */
.gift-confetti {
  position: absolute; top: 0; left: 0; z-index: -1;
  display: block; pointer-events: none;
}
.gift[open] { animation: m-card-in var(--dur-3) var(--ease-out) both; }
.gift::backdrop {
  background: rgb(20 20 22 / 0.15); /* --ink à 15 % (::backdrop n'hérite pas partout des jetons) */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: l-gift-veil var(--dur-3, 400ms) var(--ease-out, ease-out) both;
}
@keyframes l-gift-veil { from { opacity: 0; } }

.gift-peek {
  position: absolute; right: var(--sp-12); bottom: 100%;
  width: calc(var(--charlie-w) * 1.25); height: auto; margin-bottom: -1px;
  overflow: visible; pointer-events: none;
  clip-path: inset(-60% -60% 0 -60%);
}
.gift[open] .gift-peek .peek-head { animation: m-charlie-in var(--dur-3) var(--ease-out) var(--dur-2) both; }

.gift-x {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  display: grid; place-items: center;
  width: var(--hit); height: var(--hit); padding: 0;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--mute);
  cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.gift-x:hover { background: var(--hover); color: var(--ink); }
.gift-x svg { width: var(--sp-5); height: var(--sp-5); }

.gift-title {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: var(--text-title); line-height: var(--lh-tight); letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

.gift-ticket {
  position: relative; margin: var(--sp-6) 0 var(--sp-4);
  display: grid; justify-items: center; gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-card); background: var(--bg);
  font-variant-numeric: tabular-nums;
}
.gift-ticket::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--ring-w);
  background: conic-gradient(from var(--gift-turn), var(--mint), var(--peri), var(--rose), var(--peach), var(--mint));
  -webkit-mask: linear-gradient(var(--ink) 0 0) content-box, linear-gradient(var(--ink) 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(var(--ink) 0 0) content-box exclude, linear-gradient(var(--ink) 0 0);
  pointer-events: none;
}
.gift[open] .gift-ticket::before { animation: l-gift-spin calc(var(--dur-3) * 17.5) linear infinite; }
@keyframes l-gift-spin {
  from { --gift-turn: 120deg; }
  to { --gift-turn: 480deg; }
}
.gift-now {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: var(--gift-price); line-height: 1; letter-spacing: var(--tracking-title);
}
.gift-was { font-size: var(--text-lg); color: var(--mute); }
.gift-term { font-size: var(--text-md); color: var(--mute); }

.gift-note { margin-bottom: var(--sp-6); color: var(--ink-2); text-wrap: balance; }
.gift-skip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--hit); margin-top: var(--sp-2); padding: 0 var(--sp-3);
  border: 0; background: transparent; color: var(--mute); cursor: pointer;
  font: var(--w-regular) var(--text-md)/1 var(--font);
  text-decoration: underline; text-underline-offset: 3px;
}
.gift-skip:hover { color: var(--ink); }
/* Le focus posé à l'ouverture se voit, même sans clavier : l'anneau dit où agit Entrée. */
.gift .btn-ink:focus { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }
.invite:focus { outline: none; }
.invite:focus-visible { outline: var(--ring-w) solid var(--focus); outline-offset: var(--ring-offset); }

@media (max-width: 479px) {
  .gift { padding: var(--sp-10) var(--sp-6) var(--sp-5); }
  .gift-peek { right: var(--sp-10); }
}
@media (prefers-reduced-motion: reduce) {
  .gift::backdrop { animation: none; }
}
