/* AppBeta — feuille de style du site (vitrine + pages légales).
 *
 * Une seule feuille pour tout /appbeta/ : la vitrine (index.html) et les pages
 * longues à venir (privacy/, terms/, delete-account/). Les blocs « génériques »
 * (barre du haut, commutateur de langue, pied de page, .doc/.toc/.callout)
 * ne dépendent d'aucune section de la vitrine.
 *
 * Pas de police distante : Roboto est la police système d'Android (le public
 * visé) ; ailleurs, la police système du navigateur. Aucune adresse IP de
 * visiteur ne part donc chez un tiers pour afficher le texte.
 */

:root {
  --blue: #3165B8;
  --blue-dark: #244B8C;
  --blue-soft: #DCE7F8;
  --blue-wash: #F3F7FD;
  --ink: #0F172A;
  --text: #1F2937;
  --muted: #4B5563;
  --line: #D6DEEA;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FC;
  --card: #FFFFFF;
  --top-bg: rgba(255, 255, 255, .9);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(36, 75, 140, .08);
  --shadow-lg: 0 30px 60px -18px rgba(36, 75, 140, .35), 0 12px 24px -12px rgba(15, 23, 42, .25);
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --green: #15803D;
  --green-soft: #DCFCE7;
  --bezel: #141821;
  --focus: #3165B8;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #6B9AE6;
    --blue-dark: #A9C4F2;
    --blue-soft: #1C2D4D;
    --blue-wash: #111A2B;
    --ink: #F1F5F9;
    --text: #E2E8F0;
    --muted: #A7B3C6;
    --line: #2A3650;
    --bg: #0B111C;
    --bg-alt: #0F1726;
    --card: #131C2D;
    --top-bg: rgba(11, 17, 28, .9);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    --amber: #FBBF24;
    --amber-soft: #3A2A0C;
    --green: #4ADE80;
    --green-soft: #0F2E1B;
    --bezel: #000000;
    --focus: #A9C4F2;
    color-scheme: dark;
  }
}

/* ================================================================
   Base
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word; /* un mot long (es, en) passe à la ligne au lieu de pousser la page */
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 900; }
h3 { font-size: 1.12rem; font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.kicker {
  margin: 0 0 8px; color: var(--blue); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 64ch; margin: 14px 0 0; }
.fine { color: var(--muted); font-size: .85rem; margin: 18px 0 0; }

/* Pastille générique (rôle, état, étiquette) */
.badge {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; line-height: 1.5;
}
.badge-dark { background: #3165B8; color: #fff; }

/* ================================================================
   Barre du haut + commutateur de langue (toutes les pages)
   ================================================================ */

.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--top-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; flex: none;
  margin-right: auto; /* pousse navigation, bouton et langues à droite, avec ou sans menu */
}
.brand img { border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.top-nav { display: none; gap: 4px; min-width: 0; }
.top-nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.top-nav a:hover { color: var(--blue); background: var(--blue-wash); }
@media (min-width: 860px) { .top-nav { display: flex; } }
/* Entre 860 et 1060 px, la barre complète (liens + Télécharger + langues) est
   juste : on resserre les liens, surtout en espagnol. */
@media (min-width: 860px) and (max-width: 1059px) {
  .top-nav { gap: 0; }
  .top-nav a { padding: 8px 9px; font-size: .9rem; }
}

/* Bouton « Télécharger » de la barre : n'existe qu'à l'état prêt (JS). */
.top-dl {
  display: none; align-items: center; gap: 8px; margin-left: 8px; flex: none;
  background: #3165B8; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px;
}
.top-dl svg { width: 18px; height: 18px; }
.top-dl:hover { background: #244B8C; }
@media (min-width: 860px) { .top-dl { display: inline-flex; } }

.langs {
  display: inline-flex; padding: 3px; gap: 2px; flex: none;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
}
.langs button {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  min-width: 40px; min-height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
}
.langs button:hover { color: var(--blue); }
.langs button[aria-pressed="true"] { background: #3165B8; color: #fff; }

/* Un bloc par langue (pages longues) : site.js masque les autres. */
[data-lang-only] { display: block; }

/* ---------- Menu du téléphone (vitrine) ----------
   Sous 860 px, la barre ne garde que le logo et le bouton menu ; les liens,
   les langues et le téléchargement passent dans le panneau. Sans JavaScript
   (pas de classe .js), le bouton n'apparaît pas et les langues restent. */
.menu-btn, .icon-btn {
  appearance: none; -webkit-appearance: none; flex: none;
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
  cursor: pointer;
}
.menu-btn svg, .icon-btn svg { width: 22px; height: 22px; }
.menu-btn:hover, .icon-btn:hover { color: var(--blue); border-color: var(--blue); }
.menu-btn { display: none; }
@media (max-width: 859px) {
  .js .has-menu .menu-btn { display: inline-grid; }
  .js .has-menu .top-in > .langs { display: none; }
}

.menu { position: fixed; inset: 0; z-index: 60; }
.menu-backdrop, .modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .5);
  animation: fade .2s ease;
}
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 12px 16px 24px; animation: slide-in .22s ease;
}
.menu-panel:focus { outline: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.menu-title { margin: 0; font-weight: 900; font-size: 1.1rem; color: var(--ink); }
.menu-nav { display: grid; gap: 2px; }
.menu-nav a {
  display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
}
.menu-nav a:hover { background: var(--blue-wash); color: var(--blue); }
.menu-block { border-top: 1px solid var(--line); padding-top: 16px; }
.menu-label { margin: 0 0 8px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.langs-wide { display: flex; flex-wrap: wrap; width: 100%; border-radius: 14px; }
/* Largeur selon le mot (flex-basis auto) et jamais de coupure dans le mot :
   à 320 px, trois tiers égaux laissaient 59 px à « Français », qui se
   cassait en « Françai / s ». Si un jour les trois ne tiennent plus, c'est
   un bouton entier qui passe à la ligne (flex-wrap), pas une lettre. */
.langs-wide button { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 8px; white-space: nowrap; border-radius: 11px; font-size: .9rem; letter-spacing: 0; }
.dl-compact { max-width: none; }
.dl-compact .dl-btn { min-height: 56px; font-size: 1rem; padding: 10px 16px; }
.dl-compact .dl-wait { box-shadow: none; padding: 12px 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .menu-backdrop, .modal-backdrop, .menu-panel, .modal-card { animation: none; }
}
/* Panneau ouvert : la page derrière ne défile plus. */
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- Fenêtre « Installe AppBeta » (Android) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
}
@media (min-width: 560px) { .modal { align-items: center; padding: 24px; } }
.modal-backdrop { animation: fade .2s ease; }
.modal-card {
  position: relative; width: 100%; max-width: 400px; max-height: calc(100% - 8px); overflow-y: auto;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-lg); padding: 28px 20px 16px; text-align: center;
  animation: rise .25s ease;
}
.modal-card:focus { outline: none; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-color: transparent; background: transparent; color: var(--muted); }
.modal-icon { margin: 0 auto 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.modal-card h2 { font-size: 1.5rem; }
.modal-meta { margin: 6px 0 0; color: var(--blue-dark); font-weight: 700; font-size: .88rem; }
.modal-meta:empty { display: none; }
.modal-body { margin: 10px 0 18px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.modal-card .dl-btn { min-height: 56px; text-align: center; }
.modal-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .95rem; padding: 4px 6px; }
.modal-later {
  appearance: none; -webkit-appearance: none; display: block; width: 100%; margin-top: 8px;
  min-height: 46px; border: 0; border-radius: 14px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.modal-later:hover { background: var(--bg-alt); color: var(--ink); }

/* ================================================================
   Vitrine — héros
   ================================================================ */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 50% 110%, var(--blue-soft), transparent 70%),
    linear-gradient(180deg, var(--blue-wash), var(--bg) 60%);
  padding: 32px 0 0;
  overflow-x: clip; /* le téléphone déborde vers le bas, sur le bandeau bleu */
  z-index: 2;
}
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { order: 1; width: 100%; max-width: 780px; min-width: 0; }
.hero-cta { order: 2; margin-top: 22px; display: flex; flex-direction: column; align-items: center; width: 100%; }
.stage { order: 3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  background: var(--card); color: var(--blue-dark); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700; line-height: 1.35;
  box-shadow: var(--shadow); max-width: 100%;
}
.eyebrow > span:last-child { min-width: 0; text-wrap: balance; }
@media (max-width: 399px) { .eyebrow { font-size: .74rem; padding: 6px 12px; gap: 7px; } }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.hero h1 {
  font-size: clamp(2.1rem, 8.4vw, 4.1rem); font-weight: 900; letter-spacing: -.03em;
  line-height: 1.04; text-wrap: balance;
}
.hero-tag {
  margin: 16px auto 0; color: var(--blue); font-weight: 900;
  font-size: clamp(1.18rem, 3.4vw, 1.55rem); line-height: 1.25; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-sub {
  margin: 10px auto 0; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem);
  max-width: 52ch; text-wrap: pretty;
}
.hero-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.hero-note a { font-weight: 700; }
.ios-note { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }

/* Bouton de téléchargement et état « en préparation » */
.dl { width: 100%; max-width: 380px; }
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 12px 22px;
  background: #3165B8; color: #fff; text-decoration: none; border-radius: 18px;
  box-shadow: 0 14px 30px -10px rgba(49, 101, 184, .65);
  font-weight: 700; font-size: 1.08rem; text-align: left; line-height: 1.25;
  transition: transform .15s ease, background .15s ease;
}
.dl-btn:hover { background: #244B8C; transform: translateY(-1px); }
.dl-btn small { display: block; font-weight: 400; font-size: .8rem; opacity: .92; margin-top: 2px; }
.dl-ic { width: 26px; height: 26px; flex: none; }
.dl-wait {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 18px; box-shadow: var(--shadow);
}
.dl-wait strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.dl-wait small { display: block; color: var(--muted); font-size: .86rem; margin-top: 3px; line-height: 1.45; }
.spark {
  flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}
@media (prefers-reduced-motion: reduce) { .spark { animation: none; } .dl-btn { transition: none; } }

/* La scène : le téléphone au centre */
.stage {
  position: relative; width: 100%; max-width: 780px;
  margin-top: 30px; display: flex; justify-content: center;
}
.halo {
  position: absolute; left: 50%; top: 8%; width: 520px; max-width: 100%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49, 101, 184, .24), transparent);
  pointer-events: none;
}

.phone {
  position: relative; margin: 0; background: var(--bezel);
  border-radius: 40px; padding: 10px; box-shadow: var(--shadow-lg);
}
/* aspect-ratio explicite : sans lui, height:auto annule la hauteur donnée en
   attribut et Chrome signale chaque capture différée (loading="lazy"). */
.phone .shot { width: 100%; height: auto; aspect-ratio: 540 / 1170; border-radius: 31px; background: #fff; }
.phone-hero { width: min(70vw, 290px); margin-bottom: -90px; }
@media (min-width: 720px) { .phone-hero { width: 310px; margin-bottom: -120px; } }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 6px; font-size: .78rem; font-weight: 700;
  box-shadow: var(--shadow); white-space: nowrap;
}
.chip-ic {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 900;
}
.chip-ic-blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip-ic-amber { background: var(--amber-soft); color: var(--amber); width: auto; padding: 0 7px; border-radius: 999px; }
@media (max-width: 719px) { .chip { display: none; } }
@media (min-width: 720px) {
  .chip { font-size: .86rem; padding: 8px 16px 8px 8px; }
  .chip-ic { width: 28px; height: 28px; }
  .chip-a { left: 4%; top: 16%; }
  .chip-b { right: 2%; top: 38%; }
  .chip-c { left: 8%; top: 62%; }
}

/* ================================================================
   Vitrine — le mur des 12 testeurs (bandeau bleu + frise J1…J14)
   ================================================================ */

.rule {
  position: relative; z-index: 1; background: #244B8C; color: #E6EEFB;
  padding: 126px 0 56px;
}
@media (min-width: 720px) { .rule { padding: 168px 0 72px; } }
.rule h2 { color: #fff; }
.rule .lead { color: #D3E0F6; }
.rule .fine { color: #B9CCEC; }
.rule :focus-visible { outline-color: #fff; }

.frieze {
  margin-top: 26px; border-radius: 22px; padding: 18px 16px 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
@media (min-width: 720px) { .frieze { padding: 22px 24px 20px; } }
.frieze-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
  margin-bottom: 14px;
}
.frieze-label { margin: 0; color: #fff; font-weight: 700; font-size: .98rem; }
.frieze-flag {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  background: #DCFCE7; color: #14532D; font-weight: 700; font-size: .85rem;
  padding: 5px 12px 5px 9px; border-radius: 999px;
}
.frieze-flag svg { width: 16px; height: 16px; flex: none; }
.days {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
}
@media (min-width: 900px) { .days { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; } }
/* Tablette : 7 colonnes sans cases géantes. */
@media (min-width: 560px) and (max-width: 899px) { .days li { aspect-ratio: auto; height: 54px; width: 100%; justify-self: stretch; } }
.days li {
  display: grid; place-items: center; aspect-ratio: 1 / 1; min-width: 0;
  border-radius: 10px; font-weight: 700; font-size: clamp(.72rem, 3vw, .92rem); color: #fff;
  background: #3F72C4; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}
.days li:nth-child(-n+3) { background: #6A97DE; }
.days li:nth-child(n+4):nth-child(-n+7) { background: #5586D3; }
.days li:nth-child(n+8):nth-child(-n+10) { background: #4A7CCC; }
.days li.last { background: #16A34A; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 0 3px rgba(134, 239, 172, .45); }

.rule-pair { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 760px) { .rule-pair { grid-template-columns: 1fr 1fr; } }
.rule-box {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  border-radius: 18px; padding: 14px 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
.rule-box h3 { color: #fff; font-size: 1rem; }
.rule-box p { margin: 3px 0 0; color: #D3E0F6; font-size: .92rem; line-height: 1.5; }
.was {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: #fff; color: #244B8C; font-weight: 900; font-size: 1.05rem;
  padding: 6px 10px; border-radius: 12px;
}
.was s { color: #B45309; font-weight: 700; }
.break-dots { display: grid; grid-template-columns: repeat(4, 12px); gap: 4px; }
.break-dots span { width: 12px; height: 12px; border-radius: 4px; background: #6A97DE; }
.break-dots .gap { background: transparent; border: 2px dashed #FBBF24; }
.break-dots .re { background: rgba(255, 255, 255, .22); }
.rule-punch { margin: 22px 0 0; color: #fff; font-weight: 700; font-size: 1.06rem; max-width: 62ch; }

/* ================================================================
   Vitrine — visite guidée
   ================================================================ */

.tour { padding: 52px 0 48px; }
@media (min-width: 720px) { .tour { padding: 84px 0 72px; } }
.tour .lead { margin-top: 10px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.stops { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 44px; }
.stop { display: grid; gap: 22px; justify-items: center; }
.stop .phone-sm { width: min(50vw, 188px); order: 2; border-radius: 32px; padding: 8px; }
.stop .phone-sm .shot { border-radius: 25px; }
.stop-text { order: 1; width: 100%; max-width: 520px; }
/* Écran 1 : gros plan sur le haut de l'accueil (déjà vu en entier dans le héros) */
.stop .zoom {
  order: 2; margin: 0; width: min(100%, 300px); aspect-ratio: 540 / 520; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg);
  position: relative;
}
.stop .zoom .shot { width: 100%; height: auto; aspect-ratio: 540 / 1170; }
.stop .zoom::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
.stop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: #3165B8; color: #fff; font-weight: 900; font-size: 1.1rem; flex: none;
}
.stop-text h3 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 900; }
.stop-text p { color: var(--muted); margin: 10px 0 0; font-size: 1.02rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li {
  position: relative; padding: 10px 14px 10px 42px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; color: var(--text); line-height: 1.45;
}
.ticks li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); border-radius: 50%; background: var(--blue-soft);
  box-shadow: inset 0 0 0 5px var(--blue);
}
/* Téléphone : deux points par étape, le troisième reste pour les grands écrans. */
@media (max-width: 719px) { .ticks li:nth-child(n+3) { display: none; } }
@media (min-width: 880px) {
  .stops { gap: 36px; }
  .stop { position: relative; isolation: isolate; padding: 36px 0; }
  .stop::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 44%;
    border-radius: 36px; background: var(--blue-wash); border: 1px solid var(--line);
  }
  .stop:nth-child(even)::before { left: auto; right: 0; }
  .stop { grid-template-columns: 1fr 1fr; align-items: center; justify-items: stretch; gap: 56px; }
  .stop .phone-sm { order: 1; width: 290px; justify-self: center; border-radius: 40px; padding: 10px; }
  .stop .phone-sm .shot { border-radius: 31px; }
  .stop .zoom { order: 1; width: 380px; aspect-ratio: 540 / 640; justify-self: center; }
  .stop-text { order: 2; }
  .stop:nth-child(even) .phone-sm { order: 2; }
  .stop:nth-child(even) .stop-text { order: 1; justify-self: end; }
}

.also {
  margin-top: 48px; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px;
}
@media (min-width: 880px) {
  .also { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 24px 28px; }
  .also .pills { margin: 0; }
}
.pills { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .92rem; font-weight: 500; color: var(--text);
}
@media (max-width: 719px) {
  .also { padding: 18px 16px; }
  .pills { gap: 6px; margin-top: 12px; }
  .pills li { padding: 5px 11px; font-size: .86rem; }
}

/* ================================================================
   Vitrine — tests sérieux
   ================================================================ */

.trust { padding: 52px 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.trust-grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.feat-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 14px;
}
.feat-ic svg { width: 24px; height: 24px; }
.feat p { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }
/* Téléphone : icône à gauche, texte à droite — deux fois moins haut. */
@media (max-width: 639px) {
  .trust-grid { gap: 10px; }
  .feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .feat-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; margin: 0; }
  .feat-ic svg { width: 22px; height: 22px; }
  .feat h3 { align-self: center; font-size: 1.04rem; }
  .feat p { margin-top: 4px; font-size: .93rem; line-height: 1.5; }
}

/* ================================================================
   Vitrine — installer
   ================================================================ */

.install { padding: 52px 0; }
@media (min-width: 720px) { .trust, .install { padding: 64px 0; } }
.install-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 26px 18px 22px; box-shadow: var(--shadow); overflow: hidden;
}
.install-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: #3165B8;
}
@media (min-width: 720px) { .install-card { padding: 36px; } }
.install-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 560px) { .install-head { flex-direction: row; gap: 18px; } }
.install-head img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: #fff; flex: none; }
.install-head p { margin: 8px 0 0; color: var(--muted); }
.install-steps { list-style: none; counter-reset: i; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
@media (min-width: 880px) { .install-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.install-steps li {
  counter-increment: i; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 16px 16px 58px; position: relative;
}
.install-steps li::before {
  content: counter(i); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 10px; background: #3165B8; color: #fff;
  font-weight: 900; font-size: .9rem;
}
.install-steps b { display: block; color: var(--ink); line-height: 1.35; padding-top: 4px; }
.install-steps span { display: block; color: var(--muted); font-size: .93rem; margin-top: 4px; }
@media (max-width: 719px) {
  .install-steps { gap: 10px; }
  .install-steps li { padding: 14px 14px 14px 54px; }
  .install-steps li::before { left: 14px; top: 14px; }
  .install-steps span { line-height: 1.5; }
}
/* Bas de carte : le bouton (ou l'attente) ancré à gauche, les précisions à côté. */
.install-foot {
  display: grid; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .install-foot { grid-template-columns: minmax(0, 400px) 1fr; gap: 32px; align-items: center; }
}
.install-foot .dl { max-width: none; }
/* Parrainage (?ref=CODE, site.js) : le code de l'ami, en ambre comme tout
   gain en pièces dans l'app. Masqué tant qu'aucun code n'est connu. */
.ref-card {
  margin-top: 18px; padding: 16px; border-radius: 16px;
  background: var(--amber-soft); border: 1px solid var(--line);
}
.ref-card[hidden] { display: none; }
.ref-lead { margin: 0; color: var(--ink); font-weight: 700; }
.ref-code { font-size: 1.15rem; letter-spacing: .12em; color: var(--amber); overflow-wrap: anywhere; }
.ref-body { margin: 6px 0 12px; color: var(--text); font-size: .93rem; }
.ref-copy {
  font: inherit; font-weight: 700; color: #fff; background: #3165B8; border: 0;
  border-radius: 12px; padding: 10px 16px; cursor: pointer; min-height: 44px;
}
.ref-copy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.install-foot .fine { margin: 0; }
.release-date { display: block; margin-bottom: 6px; color: var(--text); font-weight: 500; }
.sha { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.sha summary { cursor: pointer; font-weight: 700; color: var(--blue); width: max-content; max-width: 100%; }
.sha code {
  display: block; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--bg-alt);
  border: 1px solid var(--line); color: var(--text); font-size: .76rem; overflow-wrap: anywhere;
}

/* ================================================================
   FAQ (classe .qa : réutilisable dans les pages longues)
   ================================================================ */

.faq { padding: 0 0 72px; }
.faq-in { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; } }
.faq-list { display: grid; gap: 10px; }
.qa {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.qa summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 700; color: var(--ink); border-radius: 16px; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.qa p + p { padding-top: 0; margin-top: -6px; }

/* ================================================================
   Pied de page (toutes les pages)
   ================================================================ */

.foot { background: #10203D; color: #C9D6EC; padding: 40px 0 32px; font-size: .92rem; }
.foot :focus-visible { outline-color: #fff; }
.foot-top { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1fr auto; align-items: center; } }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 10px; background: #fff; }
.foot-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.foot-brand span { display: block; color: #B4C4DF; font-size: .86rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links a {
  color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 8px 14px; font-weight: 500;
}
.foot-links a:hover { background: rgba(255, 255, 255, .1); }
.foot-links a[aria-current="page"] { background: #fff; color: #10203D; }
.contact { margin: 24px 0 0; overflow-wrap: anywhere; }
.contact a { color: #fff; font-weight: 700; }
.disclaim { margin: 10px 0 0; color: #B4C4DF; font-size: .84rem; }
.copy { margin: 18px 0 0; color: #93A6C6; font-size: .8rem; }

/* ================================================================
   Pages longues (confidentialité, conditions, suppression de compte)
   Structure attendue :
     <main class="doc"><div class="wrap doc-in">
       <header class="doc-head"> .doc-back, .kicker, h1, .doc-meta, .lead </header>
       <nav class="toc"> <p class="toc-title"> <ol><li><a href="#s1">…</a></li></ol> </nav>
       <article class="prose"> <section class="doc-section" id="s1"> h2, p, ul, .callout </section> </article>
     </div></main>
   ================================================================ */

.doc { padding: 36px 0 72px; }
@media (min-width: 720px) { .doc { padding: 56px 0 88px; } }
.doc-in { max-width: 1040px; }
@media (min-width: 980px) {
  .doc-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
  .doc-head { grid-column: 1 / -1; }
}
.doc-head { margin-bottom: 26px; }
.doc-head h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; }
.doc-meta { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.doc-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  color: var(--blue); font-weight: 700; text-decoration: none; font-size: .92rem;
}
.doc-back:hover { text-decoration: underline; }

.toc {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; margin-bottom: 28px;
}
@media (min-width: 980px) { .toc { position: sticky; top: 84px; margin-bottom: 0; } }
.toc-title { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.toc ol { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 6px; }
.toc li { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.prose { min-width: 0; max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.doc-section { padding-top: 8px; margin-top: 30px; scroll-margin-top: 80px; }
.doc-section:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 3.6vw, 1.6rem); font-weight: 900; }
.prose h3 { font-size: 1.08rem; margin-top: 22px; }
.prose p, .prose ul, .prose ol { margin: 12px 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }
.section-no {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px;
  border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark);
  font-size: .95rem; font-weight: 900; vertical-align: .15em;
}
.callout {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--blue-wash); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  color: var(--text);
}
.callout-warn { border-left-color: var(--amber); background: var(--amber-soft); }
.callout > :first-child { margin-top: 0; }
.steps-list { list-style: none; counter-reset: st; padding: 0 !important; display: grid; gap: 10px; }
.steps-list li { counter-increment: st; position: relative; padding-left: 42px; margin: 0 !important; }
.steps-list li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 9px; background: #3165B8; color: #fff;
  font-weight: 900; font-size: .85rem;
}
.path {
  display: inline; padding: 2px 8px; border-radius: 8px; background: var(--blue-soft);
  color: var(--blue-dark); font-weight: 700; white-space: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.path-line { line-height: 2; }
.callout h3 { margin: 0; font-size: 1rem; }
.callout h3 + p { margin-top: 6px; }

/* Suppression de compte : ce qui est effacé / ce qui reste, côte à côte */
.split { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.split-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); min-width: 0;
}
.split-card h3 { margin: 0; font-size: 1.02rem; }
.prose .split-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.prose .split-card li { position: relative; margin: 0; padding-left: 28px; line-height: 1.45; }
.split-card li::before {
  position: absolute; left: 0; top: .05em; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 900; line-height: 1;
}
.split-wipe { border-top: 4px solid var(--amber); }
.split-wipe li::before { content: "\2212"; background: var(--amber-soft); color: var(--amber); }
.split-keep { border-top: 4px solid var(--blue); }
.split-keep li::before { content: "\2022"; background: var(--blue-soft); color: var(--blue-dark); font-size: 1rem; }
.prose .split-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }

/* « Voir aussi » en bas des pages longues */
.prose .see-also {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
}
.see-also span { color: var(--muted); font-weight: 700; font-size: .9rem; margin-right: 4px; }
.see-also a {
  text-decoration: none; font-weight: 700; font-size: .92rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--card);
}
.see-also a:hover { background: var(--blue-wash); }

/* ================================================================
   Filet de sécurité : rien ne doit faire défiler la page de côté.
   Les causes sont corrigées plus haut ; ceci ne fait que couper un
   éventuel débordement futur. « clip » (et non « hidden ») ne crée pas
   de zone de défilement : la barre du haut reste collante.
   ================================================================ */
html { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }
