/* =====================================================================
   AUBORA — feuille de style unique du site.

   Monde : un ciel bleu en dégradé (bleu roi vers bleu ciel) porte le haut et le bas
   de la page ; dessus, des surfaces blanches arrondies avec une ombre douce bleutée.
   Texte encre bleu-nuit, boutons en pilule. Les maquettes de l'application sont en
   HTML (aucune image) et restent nettes à toutes les tailles.

   Pour ajuster : modifie le bloc :root (couleurs, polices, arrondis, espacements).
   ===================================================================== */

/* Polices hébergées sur le site (licence SIL OFL 1.1, voir assets/fonts/OFL-*.txt).
   Pas d'appel à Google Fonts : rien n'est transmis à un tiers au chargement. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2-variations"), url("fonts/instrument-sans.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;
}

:root {
  /* Ciel */
  --royal: #1d4fe8;           /* bleu roi : boutons, liens, onglet actif */
  --royal-deep: #1238b8;      /* survol, texte bleu sur blanc */
  --royal-night: #0c1f6e;     /* panneau « Gmail protégé » */
  --sky: #9cc8ff;             /* bleu ciel, coin clair du dégradé */
  --sky-pale: #eaf2ff;        /* fonds bleutés très clairs */
  --sky-mist: #d5e5ff;
  --sky-gradient:
    radial-gradient(60% 55% at 100% 0%, rgba(156, 200, 255, 0.9) 0%, rgba(156, 200, 255, 0) 70%),
    radial-gradient(90% 70% at 0% 100%, rgba(18, 56, 184, 0.9) 0%, rgba(18, 56, 184, 0) 60%),
    linear-gradient(135deg, #1a46d9 0%, #2b62f0 45%, #4f8bff 100%);
  /* Cartes en dégradé qui portent du texte : sans le coin bleu ciel, le blanc reste lisible partout (≥ 4.5:1) */
  --card-gradient: radial-gradient(90% 80% at 100% 0%, rgba(79, 139, 255, 0.45), transparent 60%), linear-gradient(150deg, #1238b8 0%, #1d4fe8 60%, #2556ec 100%);

  /* Encre et surfaces */
  --ink: #0b1530;
  --text: #17203d;
  --text-muted: #48506b;
  --text-faint: #5f6782;       /* 5.3:1 sur blanc */
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --line: rgba(11, 21, 48, 0.09);
  --line-strong: rgba(11, 21, 48, 0.16);
  --on-sky: #ffffff;
  --on-sky-soft: rgba(255, 255, 255, 0.9);

  /* Signaux de l'application */
  --ok: #0a6e4b;
  --ok-bg: #e2f6ed;
  --hi: #924606;
  --hi-bg: #fff0e0;
  --stop: #b42036;
  --stop-bg: #fde8eb;

  /* Profondeur */
  --shadow-sm: 0 1px 2px rgba(12, 31, 110, 0.06), 0 4px 14px rgba(12, 31, 110, 0.06);
  --shadow-md: 0 2px 6px rgba(12, 31, 110, 0.06), 0 18px 40px rgba(12, 31, 110, 0.1);
  --shadow-lg: 0 4px 10px rgba(12, 31, 110, 0.08), 0 40px 90px rgba(12, 31, 110, 0.22);
  /* Verre liquide (même recette que l'application) : reflets de bord blancs + fond déformé par #liquid-glass */
  --liquid-rim:
    0 0 8px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09), inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6), inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12), inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
  /* Sur fond blanc (barre de navigation) : la variante claire, reflets sombres très légers */
  --liquid-rim-light:
    0 0 6px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3px rgba(11, 21, 48, 0.12), inset -3px -3px 0.5px -3px rgba(11, 21, 48, 0.1),
    inset 1px 1px 1px -0.5px rgba(11, 21, 48, 0.12), inset -1px -1px 1px -0.5px rgba(11, 21, 48, 0.12),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.15);

  /* Typographie */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Formes et rythme */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --pill: 999px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(64px, 8vw, 112px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--royal-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
b, strong { font-weight: 650; color: var(--ink); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
::selection { background: #c7dbff; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(29, 79, 232, 0.5); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #b8c8ea var(--bg-soft); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--pill); background: var(--ink); color: #fff; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; }
.hide-sm { display: inline; }

/* Icônes dessinées : un seul trait, arrondi */
.assurance svg, .aw-nav svg, .sources svg, .pain svg, .tab-ico svg, .ico, .guards svg, .need-ico svg, .float svg,
.btn-arrow, .ref-welcome-close svg {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- Boutons */
.btn {
  --mx: 50%; --my: 50%;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--pill); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: 0.95rem; }
.btn-large { min-height: 56px; padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-arrow { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary, .btn-light {
  color: #fff;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.22), transparent 60%), var(--royal);
  box-shadow: 0 1px 2px rgba(12, 31, 110, 0.2), 0 8px 20px rgba(29, 79, 232, 0.28);
}
.btn-primary:hover, .btn-light:hover { background-color: var(--royal-deep); box-shadow: 0 2px 4px rgba(12, 31, 110, 0.2), 0 12px 28px rgba(29, 79, 232, 0.36); }
.btn-ink {
  color: #fff;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 60%), var(--ink);
  box-shadow: 0 2px 4px rgba(11, 21, 48, 0.2), 0 14px 30px rgba(11, 21, 48, 0.28);
}
.btn-white { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(12, 31, 110, 0.1), 0 10px 24px rgba(12, 31, 110, 0.14); }
.btn-white:hover { background: var(--sky-pale); }
.btn-outline, .btn-glass { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.btn-outline:hover, .btn-glass:hover { border-color: var(--royal); color: var(--royal-deep); }
.btn-liquid {
  color: #fff;
  background: rgba(11, 21, 48, 0.14);   /* voile sous le verre : texte blanc lisible (≥ 4.5:1) */
  box-shadow: var(--liquid-rim);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: url("#liquid-glass") saturate(1.4);   /* ignorée là où le filtre SVG n'existe pas : le flou reste */
  transition: transform 300ms var(--ease), background-color var(--dur) var(--ease);
}
.btn-liquid:hover { transform: scale(1.05); background: rgba(11, 21, 48, 0.2); }
.btn-liquid:active { transform: scale(0.98); }
.glass-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .btn-liquid:hover { transform: none; } }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.7; transform: none; white-space: normal; }

/* ---------------------------------------------------------------- En-tête : pilule flottante */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; pointer-events: none; }
.header-row {
  pointer-events: auto;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 24px);
  margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 10px 10px 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 0;
  border-radius: var(--pill);
  box-shadow: var(--liquid-rim-light), var(--shadow-md);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap { padding: 0; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
.brand-logo { height: 26px; width: auto; fill: currentColor; }
.main-nav { display: flex; gap: 4px; margin: 0 auto; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--pill);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav a:hover { background: var(--sky-pale); color: var(--royal-deep); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { gap: 0; }
/* Pages simples : pas de boutons d'action, la navigation se cale à droite */
.header-row > .btn { margin-left: auto; }

/* ---------------------------------------------------------------- Bandeau d'invitation (parrainage) */
.ref-welcome { padding: 14px var(--gutter) 0; }
.ref-welcome-row {
  display: flex; align-items: center; gap: 16px;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 24px); margin: 0 auto;
  padding: 14px 14px 14px 22px;
  background: var(--sky-pale); border: 1px solid var(--sky-mist); border-radius: var(--radius-lg);
}
.ref-welcome-row p { flex: 1; color: var(--text); font-size: 0.97rem; }
.ref-welcome-close {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: var(--pill); background: transparent; color: var(--text-muted); cursor: pointer;
}
.ref-welcome-close svg { width: 18px; height: 18px; }
.ref-welcome-close:hover { background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------- Haut de page */
.hero { position: relative; margin-top: -78px; }   /* le ciel passe sous la pilule de navigation */
.hero-sky {
  --overlap: clamp(120px, 16vw, 230px);   /* part de la fenêtre posée sous le ciel, sur le blanc */
  position: relative;
  padding: calc(78px + clamp(64px, 9vw, 112px)) 0 0;
  isolation: isolate;
}
.hero-sky::after {
  content: ""; position: absolute; inset: 0 0 var(--overlap) 0; z-index: -2;
  background: var(--sky-gradient);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.hero-sky::before {   /* lignes d'horizon très légères : la profondeur du ciel */
  content: ""; position: absolute; inset: 0 0 var(--overlap) 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(255, 255, 255, 0.06), transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-copy { text-align: center; display: grid; justify-items: center; }
.assurance {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px; margin-bottom: 28px;
  border-radius: var(--pill);
  background: rgba(11, 21, 48, 0.2);
  box-shadow: var(--liquid-rim);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: url("#liquid-glass") saturate(1.4);
  color: var(--on-sky); font-size: 0.92rem; font-weight: 500;
}
.assurance-icons { display: inline-flex; }
.assurance-icons svg {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: #fff; color: var(--royal); box-shadow: 0 0 0 2px rgba(29, 79, 232, 0.35);
}
.assurance-icons svg + svg { margin-left: -8px; }
.hero h1 {
  max-width: 15ch;
  color: var(--on-sky);
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.hero .lead {
  max-width: 60ch; margin-top: 26px;
  color: var(--on-sky-soft); font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* Fenêtre de l'application */
.showcase { margin-top: clamp(56px, 7vw, 84px); position: relative; }
.app-window {
  display: grid; grid-template-columns: 216px 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.86rem;
  animation: rise 900ms var(--ease) 120ms both;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0.001; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app-window { animation: none; } }
.showcase figcaption {
  position: absolute; right: calc(var(--gutter) + 16px); bottom: 12px;
  padding: 4px 10px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92); color: var(--text-faint); font-size: 0.78rem;
}
.aw-side { padding: 18px 14px; border-right: 1px solid var(--line); background: var(--bg-soft); }
.aw-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.aw-brand svg { width: 20px; height: 20px; fill: var(--royal); }
.aw-nav { display: grid; gap: 2px; }
.aw-nav li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 500; }
.aw-nav svg { width: 18px; height: 18px; flex: none; }
.aw-nav li.on { background: #fff; color: var(--royal-deep); box-shadow: var(--shadow-sm); }
.aw-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--royal); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 20px; }
.aw-main { padding: 20px 24px 28px; min-width: 0; background: #fff; }
.aw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.aw-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.aw-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 0.8rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.aw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.kpi-label { color: var(--text-muted); font-weight: 500; }
.kpi-num { margin-top: 6px; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.kpi-sub { margin-top: 6px; color: var(--text-faint); font-size: 0.78rem; }
.kpi-hi { background: var(--sky-pale); border-color: var(--sky-mist); }
.kpi-hi .kpi-num { color: var(--royal-deep); }
.aw-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 12px; margin-top: 12px; }
.aw-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.aw-card-title { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.aw-chart { grid-row: span 1; }
.bars { width: 100%; height: auto; }
.bars-w1 rect { fill: #a9c6ff; }
.bars-w2 rect { fill: var(--royal); }
.bars-axis { stroke: var(--line-strong); stroke-width: 1; }
.bars-lab { fill: var(--text-faint); font-size: 10px; text-anchor: middle; font-family: var(--font-body); }
.aw-reply { background: linear-gradient(180deg, var(--sky-pale), #fff 70%); border-color: var(--sky-mist); }
.reply-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--royal); color: #fff; font-weight: 700; }
.reply-who { font-weight: 600; color: var(--ink); }
.reply-role { color: var(--text-faint); font-size: 0.8rem; }
.reply-msg { margin: 14px 0; padding: 12px 14px; border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md); background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 0.92rem; }
.reply-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-queue { grid-column: 1 / -1; }
.aw-queue ul { display: grid; }
.aw-queue li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.aw-queue li:first-child { border-top: 0; padding-top: 0; }
.q-time { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.q-who { color: var(--ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-who em { font-style: normal; color: var(--text-faint); font-weight: 400; margin-left: 6px; }

.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-muted); font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.tag-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.tag-hi { background: var(--hi-bg); border-color: transparent; color: var(--hi); }
.tag-stop { background: var(--stop-bg); border-color: transparent; color: var(--stop); }

/* Bandeau des sources, sur le bas du ciel */
.sources { padding: clamp(40px, 5vw, 56px) 0 0; text-align: center; }
.sources-title { color: var(--text-muted); font-weight: 600; font-size: 0.97rem; margin-bottom: 18px; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- Bandeaux défilants */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: drift 46s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 var(--gutter); }
  .marquee .marquee-track [data-clone] { display: none; }
  .marquee-cards .marquee-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--wrap); margin: 0 auto; }
  .marquee-cards .pain { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1080px) { .marquee-cards .marquee-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .marquee-cards .marquee-track { grid-template-columns: 1fr; } }
.sources .marquee-track li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 0.97rem; white-space: nowrap;
}
.sources .marquee-track svg { width: 20px; height: 20px; color: var(--royal); }

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--section-space) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; }
.section-head p { margin-top: 18px; color: var(--text-muted); font-size: 1.1rem; max-width: 62ch; margin-left: auto; margin-right: auto; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left p { margin-left: 0; }

/* Problèmes */
.problems { padding-bottom: calc(var(--section-space) * 0.7); }
.marquee-cards + .marquee-cards { margin-top: 14px; }
.pain {
  display: flex; align-items: center; gap: 16px;
  min-height: 112px; padding: 22px 30px 22px 22px;
  border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); font-weight: 600; font-size: 1.08rem; white-space: nowrap;
}
.pain svg { width: 46px; height: 46px; padding: 11px; flex: none; border-radius: 14px; background: var(--sky-pale); color: var(--royal); }

/* Solution : démonstration par onglets */
.solution { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 22%, var(--bg-soft) 100%); }
.tabs { display: flex; justify-content: center; gap: clamp(12px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 44px); }
.tabs [role="tab"] {
  display: grid; justify-items: center; gap: 10px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-muted); font: inherit; font-weight: 600;
}
.tab-ico {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tab-ico svg { width: 26px; height: 26px; }
.tabs [role="tab"]:hover .tab-ico { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tabs [aria-selected="true"] { color: var(--royal-deep); }
.tabs [aria-selected="true"] .tab-ico { background: var(--royal); border-color: var(--royal); color: #fff; box-shadow: 0 10px 24px rgba(29, 79, 232, 0.32); }
.tabs [role="tab"]:focus-visible { outline: none; }
.tabs [role="tab"]:focus-visible .tab-ico { outline: 3px solid rgba(29, 79, 232, 0.5); outline-offset: 3px; }
.stage { position: relative; }
.panel {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3.4vw, 48px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.panel + .panel { margin-top: 14px; }   /* sans JavaScript : les 4 étapes l'une sous l'autre */
.js-tabs .panel + .panel { margin-top: 0; }
.panel.is-entering { animation: panel-in 520ms var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .panel.is-entering { animation: none; } }
.panel:focus-visible { outline-offset: 6px; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.panel-copy p { margin-top: 16px; color: var(--text-muted); }
.stage-note { margin-top: 14px; text-align: center; color: var(--text-faint); font-size: 0.85rem; }

.screen { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; font-size: 0.86rem; box-shadow: var(--shadow-md); }
.screen-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.screen-bar p:first-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.screen-meta { color: var(--text-faint); font-size: 0.8rem; }
.mini-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini-table th { text-align: left; padding: 10px 14px; color: var(--text-faint); font-weight: 600; font-size: 0.76rem; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.mini-table td:nth-child(3) { white-space: normal; color: var(--text-muted); }
.mini-table th { padding-left: 12px; padding-right: 12px; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td:first-child { font-weight: 600; color: var(--ink); }
.score { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.score i { display: block; width: 32px; height: 6px; border-radius: var(--pill); background: linear-gradient(90deg, var(--royal) var(--s), var(--sky-mist) var(--s)); }
.s92 { --s: 92%; } .s88 { --s: 88%; } .s81 { --s: 81%; } .s74 { --s: 74%; } .s69 { --s: 69%; }
.mail { padding: 16px 18px 18px; }
.mail-field { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mail-field span { width: 44px; flex: none; color: var(--text-faint); }
.mail-body { display: grid; gap: 10px; padding: 14px 0; color: var(--text); line-height: 1.55; }
.mail-body mark { background: #fff2c7; color: var(--ink); padding: 0 3px; border-radius: 4px; }
.mail-facts { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 0.8rem; }
.mail-actions { display: flex; gap: 8px; margin-top: 14px; }
.fake-btn { padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-weight: 600; color: var(--ink); }
.fake-primary { background: var(--royal); border-color: var(--royal); color: #fff; }
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.week-col { display: grid; align-content: start; gap: 6px; min-height: 230px; padding: 12px 8px; border-right: 1px solid var(--line); }
.week-col:last-child { border-right: 0; }
.week-day { text-align: center; color: var(--text-faint); font-weight: 600; font-size: 0.78rem; margin-bottom: 4px; }
.slot { display: block; padding: 8px; border-radius: 10px; background: var(--sky-pale); color: var(--royal-deep); font-size: 0.74rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.slot-relance { background: var(--hi-bg); color: var(--hi); }
.week-off { background: repeating-linear-gradient(135deg, var(--bg-soft) 0 8px, #fff 8px 16px); }
.off-note { text-align: center; color: var(--text-faint); font-size: 0.74rem; }
.replies { display: grid; padding: 6px 18px; }
.replies li { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.replies .tag { grid-row: span 2; justify-self: start; }
.r-who { font-weight: 600; color: var(--ink); }
.r-msg { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prep { margin: 12px 18px 18px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--royal); color: rgba(255, 255, 255, 0.9); }
.prep-title { color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }

/* Après la réponse */
.after { padding-top: calc(var(--section-space) * 0.75); }
.after-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.after-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.035em; }
.after-head p { margin-top: 18px; color: var(--text-muted); font-size: 1.1rem; max-width: 40ch; }
.after-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.after-list li:first-child { border-top: 0; padding-top: 0; }
.ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--sky-pale); color: var(--royal); }
.after-list h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.after-list p { margin-top: 6px; color: var(--text-muted); }

/* Gmail protégé : panneau nuit */
.guard-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(79, 139, 255, 0.35), transparent 70%),
    var(--royal-night);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}
.guard-intro h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.035em; }
.guard-intro > p { margin-top: 18px; font-size: 1.08rem; max-width: 44ch; }
.ramp { margin-top: 36px; padding: 22px 22px 16px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.ramp svg { width: 100%; height: auto; overflow: visible; }
.ramp .axis { stroke: rgba(255, 255, 255, 0.25); }
.ramp .bar { fill: rgba(255, 255, 255, 0.85); }
.ramp .b1 { fill: rgba(156, 200, 255, 0.55); }
.ramp .b2 { fill: rgba(156, 200, 255, 0.8); }
.ramp .b3 { fill: #fff; }
.ramp .val { fill: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 700; text-anchor: middle; }
.ramp .lab { fill: rgba(255, 255, 255, 0.72); font-size: 11px; text-anchor: middle; font-family: var(--font-body); }
.ramp figcaption { margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; }
.guards { display: grid; gap: 0; align-content: start; }
.guards li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.guards li:first-child { border-top: 0; padding-top: 4px; }
.guards svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #cfe2ff; }
.guards h3 { color: #fff; font-size: 1.08rem; letter-spacing: -0.015em; font-family: var(--font-body); font-weight: 650; }
.guards p { margin-top: 4px; font-size: 0.97rem; }

/* Ce qu'il te faut */
.needs { padding-top: 0; }
.needs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.needs-grid li { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.need-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--sky-gradient); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 24px rgba(29, 79, 232, 0.26); }
.need-ico svg { width: 32px; height: 32px; }
.needs-grid h3 { font-size: 1.3rem; }
.needs-grid p { margin-top: 8px; color: var(--text-muted); }

/* ---------------------------------------------------------------- Tarifs */
.section-pricing { background: var(--bg-soft); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(0px, 1.2vw, 16px); }
.launch-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 900px; margin: 0 auto 28px; padding: 20px 24px;
  border-radius: var(--radius-lg); background: var(--card-gradient); color: #fff; box-shadow: var(--shadow-md);
}
.launch-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.launch-sub { color: var(--on-sky-soft); }
.countdown { display: flex; gap: 8px; }
.countdown span { min-width: 64px; padding: 8px 10px; border-radius: var(--radius-md); background: rgba(11, 21, 48, 0.22); text-align: center; font-size: 0.85rem; color: var(--on-sky-soft); }
.countdown b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.ref-note { max-width: 720px; margin: 0 auto 28px; padding: 18px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--sky-mist); display: grid; gap: 10px; }
.ref-note label { font-weight: 600; color: var(--ink); }
.ref-note input { margin-top: 6px; }
.ref-note small { display: block; margin-top: 6px; color: var(--text-muted); }
.period-switch {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 5px;
  border-radius: var(--pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.period-switch button {
  padding: 10px 20px; border: 0; border-radius: var(--pill); background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text-muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.period-switch [aria-checked="true"] { background: var(--royal); color: #fff; }
.save { margin-left: 6px; font-weight: 500; font-size: 0.85rem; opacity: 0.85; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius-xl);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 1.5rem; }
.plan-for { margin-top: 8px; color: var(--text-muted); min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.per { color: var(--text-muted); font-weight: 500; }
.price-note { margin: 8px 0 22px; color: var(--text-faint); font-size: 0.9rem; min-height: 2.8em; }
.price-note s { color: var(--text-faint); }
.quota { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 0.97rem; }
.quota li { position: relative; padding-left: 28px; }
.quota li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%231d4fe8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.quota li.off { color: var(--text-faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.quota li.off::before { background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%235f6782' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-featured { background: var(--card-gradient); border-color: transparent; color: var(--on-sky-soft); box-shadow: 0 30px 70px rgba(29, 79, 232, 0.34); transform: translateY(-10px); }
.plan-featured h3, .plan-featured .amount, .plan-featured b { color: #fff; }
.plan-featured .plan-for, .plan-featured .per, .plan-featured .price-note, .plan-featured .price-note s { color: var(--on-sky-soft); }
.plan-featured .price-note a { color: #fff; }
.plan-featured .quota { border-top-color: rgba(255, 255, 255, 0.24); }
.plan-featured .quota li::before { background-color: rgba(255, 255, 255, 0.95); }
.badge { position: absolute; top: 28px; right: 24px; padding: 5px 12px; border-radius: var(--pill); background: #fff; color: var(--royal-deep); font-weight: 700; font-size: 0.8rem; }
.pricing-notes { max-width: 820px; margin: 36px auto 0; display: grid; gap: 10px; color: var(--text-muted); font-size: 0.95rem; text-align: center; }

/* ---------------------------------------------------------------- Parrainage */
.ref-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ref-card, .glass { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.ref-card { padding: 30px; display: grid; align-content: start; gap: 8px; }
.ref-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; color: var(--text-muted); letter-spacing: 0; }
.ref-card p { color: var(--text-muted); }
.ref-card .big { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.ref-card .or { font-size: max(0.45em, 0.95rem); font-weight: 600; color: var(--text-faint); vertical-align: middle; }
.nw { white-space: nowrap; }
.ref-group { background: var(--card-gradient); border-color: transparent; }
.ref-group h3, .ref-group p { color: var(--on-sky-soft); }
.ref-group .big, .ref-group b { color: #fff; }
.tiers { margin-top: 16px; padding: 26px 30px; border-radius: var(--radius-xl); background: var(--bg-soft); }
.tiers h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; color: var(--text-muted); letter-spacing: 0; margin-bottom: 14px; }
.tiers ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiers li { display: flex; align-items: center; gap: 14px; }
.tier-n { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--royal-deep); font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.ref-fine { margin-top: 20px; color: var(--text-faint); font-size: 0.9rem; max-width: 90ch; }

/* ---------------------------------------------------------------- Questions */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 20px 20px 26px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
.faq-plus { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--royal); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: #fff; }
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus { transform: rotate(45deg); background: var(--ink); }
.faq summary:hover .faq-plus { background: var(--royal-deep); }
.answer { padding: 0 26px 22px; display: grid; gap: 12px; color: var(--text-muted); max-width: 72ch; }

/* ---------------------------------------------------------------- Appel final et essai */
.final { padding-bottom: clamp(48px, 6vw, 80px); }
.final-sky {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--sky-gradient);
  text-align: center;
}
.final-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.04em; }
.final .lead { margin-top: 18px; color: var(--on-sky-soft); font-size: 1.12rem; }
.float {
  position: absolute; z-index: 0; display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: var(--liquid-rim);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: url("#liquid-glass") saturate(1.4);
  animation: bob 7s ease-in-out infinite;
}
.float svg { width: 30px; height: 30px; }
.f1 { left: 8%; top: 16%; }
.f2 { right: 9%; top: 14%; animation-delay: -2s; }
.f3 { left: 6%; bottom: 22%; animation-delay: -4s; }
.f4 { right: 7%; bottom: 26%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }
.trial { margin-top: 36px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-lg); text-align: left; }
.trial h3 { font-size: 1.5rem; }
.trial-done p, .trial-soon p { margin-top: 8px; color: var(--text-muted); }
.trial-soon .btn, .trial-done > .btn { margin-top: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field > span { font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--text-faint); }
input[type="email"], input[type="text"], input:not([type]), textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: #fff; color: var(--text); font: inherit; font-size: 1rem;  /* 16 px : pas de zoom sur iPhone */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input::placeholder { color: #7a8099; }
input:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(29, 79, 232, 0.16); }
input[aria-invalid="true"] { border-color: var(--stop); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--royal); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--stop); outline-offset: 2px; }
.form-msg { min-height: 1.6em; margin-top: 12px; font-size: 0.97rem; color: var(--stop) !important; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-ok { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--sky-pale); color: var(--ink); }
.form-ok:empty { display: none; }
.fineprint { margin-top: 14px; color: var(--text-faint); font-size: 0.88rem; }
.fineprint a { color: var(--text-muted); }
.key-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 10px 10px 16px; border-radius: var(--radius-md); border: 1px dashed var(--royal); background: var(--sky-pale); }
.key-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.98rem; color: var(--ink); }
.key-row .btn { flex: none; }
.copy-msg { min-height: 1.4em; margin-top: 8px; font-size: 0.9rem; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; padding-top: 32px; border-top: 1px solid var(--line); }
.footer-tag { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; max-width: 640px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--royal-deep); text-decoration: underline; }
.copyright { grid-column: 1 / -1; color: var(--text-faint); font-size: 0.88rem; }

/* ---------------------------------------------------------------- Pages simples (merci, groupe, résilier, 404…) */
.page { position: relative; isolation: isolate; overflow: hidden; margin-top: -78px; padding: calc(78px + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 120px); min-height: 70vh; }
.sky {
  position: absolute; inset: 0 0 auto; height: min(560px, 100%); z-index: -1;
  background: var(--sky-gradient);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.sky-sun { display: none; }
.page-inner > * { max-width: 760px; }
.page h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.02; }
.page-inner > .lead { margin-top: 18px; color: var(--on-sky-soft); font-size: 1.12rem; }
.page-inner > .lead a { color: #fff; }
.page-inner > .glass, .page-inner > .next-steps, .page-inner > .trial, .page-inner > .legal-card, .page-inner > .group-status, .page-inner > .amb-cards { position: relative; }
.next-steps { margin-top: 40px; display: grid; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px; border-radius: var(--radius-lg); }
.next-steps h2 { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.next-steps p { color: var(--text-muted); }
.next-steps .btn { margin-top: 16px; }
.step-n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--royal); color: #fff; font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; }
.page .cta-row { justify-content: flex-start; margin-top: 28px; }
.page .cta-row .btn-light { background: var(--ink); box-shadow: 0 2px 4px rgba(11, 21, 48, 0.2), 0 14px 30px rgba(11, 21, 48, 0.28); }
.page .fineprint { margin-top: 24px; }
.legal-card { width: 100%; max-width: 560px; margin-top: 28px; }
.legal-card .field { margin-bottom: 16px; }
.page .trial { margin-top: 32px; }
.group-status { margin-top: 32px; padding: 26px; display: grid; gap: 12px; }
.group-count { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--ink); letter-spacing: -0.03em; font-weight: 700; }
.group-count b { font-variant-numeric: tabular-nums; }
.group-live { display: grid; gap: 12px; }
.group-meter { height: 10px; border-radius: var(--pill); background: var(--sky-pale); overflow: hidden; }
.group-meter span { display: block; height: 100%; width: 0; background: var(--royal); transition: width 0.4s var(--ease); }
.group-join-title, .amb-h2 { margin: 48px 0 16px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
#group-join .period-switch { margin: 0 0 20px; }
.page-inner > .plans-mini, #group-join > * { max-width: 900px; }
.plans-mini .plan { padding: 24px 20px; }
.plans-mini .plan-featured { transform: none; }
.amb-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px !important; }
.amb-card { padding: 22px; }
.amb-card h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; color: var(--text-muted); letter-spacing: 0; }
.amb-card .big { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 750; color: var(--ink); letter-spacing: -0.04em; margin: 6px 0; }
.amb-card p:last-child { color: var(--text-muted); }
.amb-rules { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; color: var(--text); }
.amb-cta { margin-top: 36px; }

/* Pages légales : <main class="legal"> contient uniquement <article id="legal-content"> */
.legal { padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(72px, 10vw, 120px); }
#legal-content { max-width: var(--wrap); margin: 0 auto; color: var(--text-muted); line-height: 1.7; }
#legal-content > * { max-width: 760px; }
#legal-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 28px; letter-spacing: -0.035em; }
#legal-content h2 { font-size: 1.4rem; margin: 2em 0 0.6em; }
#legal-content h3 { font-size: 1.12rem; margin: 1.6em 0 0.5em; }
#legal-content p, #legal-content ul, #legal-content ol { margin: 0 0 1em; }
#legal-content ul { list-style: disc; padding-left: 1.3em; }
#legal-content ol { list-style: decimal; padding-left: 1.3em; }
#legal-content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.95rem; }
#legal-content th, #legal-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Ancres : le titre ne passe pas sous l'en-tête flottant */
section[id], [id="contenu"] { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 10px; }
  .app-window { grid-template-columns: 1fr; }
  .aw-side { display: none; }
  .panel { grid-template-columns: 1fr; }
  .after-grid, .guard-panel { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .plan-featured { order: -1; transform: none; }
  .plan-for, .price-note { min-height: 0; }
  .ref-board { grid-template-columns: 1fr 1fr; }
  .ref-group { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .aw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-grid { grid-template-columns: 1fr; }
  .aw-reply { grid-row: auto; }
  .needs-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tiers ol { grid-template-columns: 1fr; }
  .float { width: 52px; height: 52px; }
  .float svg { width: 22px; height: 22px; }
  .f1, .f3 { left: 4%; } .f2, .f4 { right: 4%; }
  .f3, .f4 { display: none; }
}

@media (max-width: 640px) {
  :root {  /* écran étroit : le coin clair couvrirait le texte, il reste une lueur */
    --sky-gradient:
      radial-gradient(70% 22% at 100% 0%, rgba(156, 200, 255, 0.7) 0%, rgba(156, 200, 255, 0) 70%),
      radial-gradient(90% 70% at 0% 100%, rgba(18, 56, 184, 0.9) 0%, rgba(18, 56, 184, 0) 60%),
      linear-gradient(160deg, #1a46d9 0%, #2a60ee 60%, #3a72f6 100%);
  }
  body { font-size: 1rem; }
  .site-header { padding-top: 10px; }
  .header-row { padding: 8px 8px 8px 18px; gap: 10px; }
  .brand-logo { height: 22px; }
  .header-download { display: none; }
  .hide-sm { display: none; }
  .hero { margin-top: -70px; }
  .hero-sky { padding-top: calc(70px + 48px); }
  .page { margin-top: -70px; padding-top: calc(70px + 44px); }
  .assurance { padding: 6px 12px 6px 6px; font-size: 0.82rem; text-align: left; line-height: 1.35; gap: 10px; }
  .assurance { padding: 8px 14px; text-align: center; }
  .assurance-icons { display: none; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); letter-spacing: -0.035em; }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }
  .showcase { padding-left: 12px; padding-right: 12px; }
  .aw-main { padding: 16px 14px 22px; }
  .aw-queue li { grid-template-columns: 42px 1fr auto; }
  .q-who em { display: none; }
  .showcase figcaption { position: static; display: block; margin: 12px 0 0; border-radius: 0; text-align: center; background: none; padding: 0; }
  .pain { min-height: 88px; padding: 16px 22px 16px 16px; font-size: 1rem; }
  .pain svg { width: 40px; height: 40px; padding: 9px; }
  .tabs { gap: 6px; justify-content: space-between; }
  .tab-ico { width: 54px; height: 54px; }
  .tabs [role="tab"] { flex: 1; font-size: 0.86rem; }
  .panel { padding: 22px 16px; gap: 20px; }
  .mini-table th:nth-child(3), .mini-table td:nth-child(3) { display: none; }
  .mini-table th, .mini-table td { padding: 10px 8px; }
  .score i { width: 26px; }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .week-col { min-height: 0; border-bottom: 1px solid var(--line); }
  .week-col:nth-child(3n) { border-right: 0; }
  .replies li { grid-template-columns: 1fr; }
  .replies .tag { grid-row: auto; }
  .ref-board { grid-template-columns: 1fr; }
  .ref-card { padding: 24px; }
  .tiers { padding: 22px; }
  .period-switch { width: 100%; }
  .period-switch button { flex: 1; padding: 9px 10px; line-height: 1.25; }
  .period-switch .save { display: block; margin-left: 0; font-size: 0.78rem; }
  .launch-banner { padding: 18px; }
  .countdown { width: 100%; }
  .countdown span { flex: 1; min-width: 0; }
  .plan { padding: 26px 22px; }
  .badge { top: 24px; right: 20px; }
  .faq summary { padding: 16px 14px 16px 18px; font-size: 1rem; }
  .faq-plus { width: 34px; height: 34px; }
  .answer { padding: 0 18px 18px; }
  .final-sky { padding: 48px 16px 20px; }
  .float { display: none; }
  .trial { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .next-steps li { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .key-row { flex-direction: column; align-items: stretch; }
  .amb-cards { grid-template-columns: 1fr; }
  .ref-welcome-row { flex-wrap: wrap; padding: 14px; }
  .ref-welcome-row p { flex-basis: calc(100% - 52px); }
}
@media (prefers-reduced-motion: reduce) { .group-meter span { transition: none; } }
