/* ==========================================================================
   SuiviBaby — feuille de style partagée (site vitrine + pages légales)
   Aucune ressource tierce : polices système, pas de CDN.
   ========================================================================== */

:root {
  --brand: #0a7ea4;
  --brand-ink: #076a8a;        /* texte de lien : ≥ 4.5:1 sur fond clair */
  --brand-soft: #e6f3f8;
  --coral: #e8785a;
  --coral-soft: #fdf0eb;
  --teal: #3f8a8a;
  --teal-soft: #ebf5f5;
  --violet: #7c6ba4;
  --violet-soft: #f1eef7;
  --gold: #d99a4a;
  --gold-soft: #fcf4e8;

  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --line: #e7e3dc;
  --text: #1c2230;
  --text-2: #4a5263;
  --text-3: #5f6776;          /* ≥ 4.5:1 sur --bg */

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 34, 48, .06), 0 2px 8px rgba(28, 34, 48, .04);
  --shadow: 0 10px 30px -12px rgba(28, 34, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(28, 34, 48, .28);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --header-h: 68px;
}

:root[data-theme="dark"] {
  --brand: #38b2d6;
  --brand-ink: #6cc9e6;
  --brand-soft: #0f2c38;
  --coral-soft: #3a2420;
  --teal: #6cc0bf;
  --teal-soft: #17302f;
  --violet-soft: #26213a;
  --gold-soft: #35291a;

  --bg: #0e131c;
  --surface: #161d29;
  --surface-2: #1d2533;
  --line: #2a3344;
  --text: #eef1f6;
  --text-2: #c2c9d6;
  --text-3: #9aa3b3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h, 68px) + 16px); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
/* Pas de border-radius forcé : le contour suit l'arrondi propre à chaque élément. */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink);
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 14px; }
.section-head p { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); }

/* ---------- Buttons & store badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--brand-ink); color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
:root[data-theme="dark"] .btn--primary { background: var(--brand); color: #04212b; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 12px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #11161f; color: #fff; text-decoration: none;
  border: 1px solid #11161f;
  transition: transform .2s, box-shadow .2s;
}
:root[data-theme="dark"] .store { background: #fff; color: #11161f; border-color: #fff; }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .85; line-height: 1.1; }
.store strong { display: block; font-size: 17px; line-height: 1.2; font-weight: 650; }
.store.is-suggested { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: var(--text); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { color: var(--brand); font-weight: 800; }
.nav { margin-left: auto; }
.nav ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 550; font-size: 15px; text-decoration: none;
}
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.header--simple .header__inner { justify-content: space-between; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 12px; font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -15%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-2); max-width: 560px; margin-bottom: 32px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; font-weight: 550; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.pill-tag span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero .stores, .hero__chips { justify-content: center; }
}

/* ---------- Phone mockup + live demo ---------- */
.phone {
  position: relative; width: min(340px, 86vw); margin-inline: auto;
  aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a3140, #0d1118);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: #f7f6f3; color: #1c2230; display: flex; flex-direction: column;
}
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0d1118; z-index: 3; }
.hero__visual { position: relative; }
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 600;
}
.float-card small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.float-card .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.float-card--a { top: 2%; left: -6%; animation: bob 6s ease-in-out infinite; }
.float-card--b { bottom: 22%; right: -6%; animation: bob 7s ease-in-out -2s infinite; }
/* Le bouton « Mettre la démo en pause » fige aussi les cartes flottantes (WCAG 2.2.2). */
.is-paused .float-card { animation-play-state: paused; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .float-card { display: none; } }

.demo { display: flex; flex-direction: column; height: 100%; padding: 46px 14px 14px; font-size: 13px; }
.demo__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.demo__baby { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.demo__avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #fcd5c4, #f4a88e); display: grid; place-items: center; font-size: 15px; }
.demo__date { font-size: 12px; color: #5f6776; font-weight: 600; }
.demo__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.demo__stat { background: #fff; border-radius: 12px; padding: 8px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.demo__stat b { display: block; font-family: var(--font-display); font-size: 17px; }
.demo__stat span { font-size: 10px; color: #5f6776; font-weight: 600; }
.demo__label { font-size: 11px; font-weight: 700; color: #5f6776; text-transform: uppercase; letter-spacing: .06em; margin: 2px 2px 8px; }
.demo__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.demo__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  animation: slideIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
.demo__item i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 15px; flex: none; }
.demo__item b { display: block; font-size: 13px; }
.demo__item span { font-size: 11px; color: #5f6776; }
.demo__item time { margin-left: auto; font-size: 11px; font-weight: 700; color: #5f6776; }
.demo__item.is-new { box-shadow: 0 0 0 2px #0a7ea4; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.demo__voice {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  background: #1c2230; color: #fff; border-radius: 18px; padding: 10px 12px; min-height: 52px;
}
.demo__mic { width: 32px; height: 32px; border-radius: 50%; background: #0a7ea4; display: grid; place-items: center; flex: none; position: relative; }
.demo__mic svg { width: 16px; height: 16px; }
.demo__mic.is-listening::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #38b2d6; animation: ping 1.2s ease-out infinite; }
@keyframes ping { to { transform: scale(1.5); opacity: 0; } }
.demo__transcript { font-size: 12.5px; line-height: 1.35; min-height: 1.35em; }
.demo__transcript.is-typing::after { content: "▍"; opacity: .6; animation: blink 1s steps(1) infinite; }
.demo__transcript.is-confirm { color: #ffd38a; font-weight: 600; }
.demo__transcript.is-done { color: #7fe0b0; font-weight: 600; }
.demo__item i svg { width: 17px; height: 17px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Event types explorer ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.types { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.type {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px;
  transition: opacity .3s, transform .3s, filter .3s;
}
.type i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 18px; flex: none; }
/* Types non retenus : texte en --text-3 (≥ 4.5:1) au lieu d'une opacité qui ferait chuter le contraste ;
   seule la pastille décorative (aria-hidden) est estompée. */
.type.is-dim { color: var(--text-3); border-style: dashed; transform: scale(.97); }
.type.is-dim i { opacity: .35; filter: grayscale(1); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature--reverse .feature__visual { order: -1; }
.feature__copy h3 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0 16px; }
.feature__copy > p { color: var(--text-2); font-size: 17px; margin-bottom: 22px; }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--teal); }
.checks b { color: var(--text); font-weight: 650; }
.feature__visual { position: relative; display: grid; place-items: center; padding: 24px 0; }
.feature__visual::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 40px;
  background: var(--tint, var(--brand-soft)); z-index: 0;
}
.feature__visual > * { position: relative; z-index: 1; }
.feature__visual .phone { width: min(300px, 78vw); }
.tint-coral { --tint: var(--coral-soft); }
.tint-teal { --tint: var(--teal-soft); }
.tint-violet { --tint: var(--violet-soft); }
.tint-gold { --tint: var(--gold-soft); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--gold-soft); color: #7a4f12;
}
:root[data-theme="dark"] .badge { color: #f3c98a; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__visual { order: 0; }
}

/* mini UI blocks inside mock screens (toujours en clair, comme l'app) */
.mini { padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; font-size: 12.5px; }
.mini h4 { font-family: var(--font-display); font-size: 17px; margin: 0 2px 2px; }
.mini__card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mini__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini__muted { color: #5f6776; font-size: 11.5px; }
.chart { width: 100%; height: auto; }
.chart .band { fill: #0a7ea4; opacity: .1; }
.chart .p50 { fill: none; stroke: #0a7ea4; stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .55; }
.chart .line { fill: none; stroke: #e8785a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; }
.chart .pt { fill: #fff; stroke: #e8785a; stroke-width: 2.5; }
.is-visible .chart .line { animation: draw 1.8s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(#7c6ba4, #a99bd0); transform-origin: bottom; }
.is-visible .bars span { animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.bars span:nth-child(2) { animation-delay: .06s; } .bars span:nth-child(3) { animation-delay: .12s; }
.bars span:nth-child(4) { animation-delay: .18s; } .bars span:nth-child(5) { animation-delay: .24s; }
.bars span:nth-child(6) { animation-delay: .3s; }  .bars span:nth-child(7) { animation-delay: .36s; }
@keyframes grow { from { transform: scaleY(0); } }
.days { display: flex; justify-content: space-between; font-size: 10px; color: #5f6776; font-weight: 600; margin-top: 6px; }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.tip { background: linear-gradient(135deg, #fff7ed, #fdf0eb); border-radius: 14px; padding: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-grid span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 26px; }

/* ---------- Bento (secondary features) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
:root[data-theme="dark"] .steps li::before { background: var(--brand); color: #04212b; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust__item { padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.trust__item svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: 14px; }
.trust__item h3 { font-size: 17px; margin-bottom: 6px; }
.trust__item p { font-size: 14.5px; color: var(--text-2); }
.trust-note { margin-top: 24px; text-align: center; color: var(--text-3); font-size: 14px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.billing-wrap { text-align: center; }
.billing { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 auto 32px; }
.billing button { min-height: 44px; padding: 6px 18px; border: 0; border-radius: 10px; background: transparent; font-weight: 650; cursor: pointer; color: var(--text-2); }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.billing em { font-style: normal; color: #2b6b6b; font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; max-width: 820px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.plan--hl { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan--hl .badge { position: absolute; top: -13px; left: 28px; background: var(--brand-ink); color: #fff; }
:root[data-theme="dark"] .plan--hl .badge { background: var(--brand); color: #04212b; }
.plan h3 { font-size: 20px; }
.plan__price { margin: 14px 0 4px; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.plan__price small { font-size: 15px; font-weight: 600; color: var(--text-3); font-family: var(--font); }
.plan__sub { color: var(--text-3); font-size: 13.5px; min-height: 1.6em; margin-bottom: 18px; }
.plan .checks { gap: 10px; font-size: 15px; }
.pricing-note { margin-top: 22px; text-align: center; color: var(--text-3); font-size: 13.5px; max-width: 720px; margin-inline: auto; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 650; font-size: 16.5px; min-height: 44px; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 22px 20px; color: var(--text-2); }
.faq__body p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(135deg, #064f68, #076a8a 55%, #2f7f8e); color: #fff;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.cta-band p { color: #e3f3f8; font-size: 17px; }
.cta-band .store, :root[data-theme="dark"] .cta-band .store { background: #fff; color: #11161f; border-color: #fff; }
.cta-band .stores { justify-content: flex-end; }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .stores { justify-content: center; } }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(64px, 9vw, 112px); padding: 56px 0 32px; background: #0d121a; color: #c1c8d4; font-size: 14.5px; }
.footer a { color: #e2e7ef; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h2 { font-family: var(--font); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #a7b0bf; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #222b38; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #a7b0bf; font-size: 13px; }
.footer__disclaimer { max-width: 380px; color: #a7b0bf; font-size: 13.5px; margin-top: 10px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (activé par JS uniquement) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Un élément atteint au clavier avant son apparition reste visible (WCAG 2.4.11). */
.js .reveal:focus-within { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Legal / document pages ---------- */
.doc { padding: clamp(40px, 6vw, 72px) 0 0; }
.doc__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.doc__toc-title { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; }
.doc__toc ol { padding-left: 28px; display: grid; gap: 8px; color: var(--text-3); }
.doc__toc a { color: var(--text-2); text-decoration: none; }
.doc__toc a:hover, .doc__toc a[aria-current] { color: var(--brand-ink); text-decoration: underline; }
.doc__body { max-width: 780px; }
.doc__body > header { margin-bottom: 32px; }
.doc__body h1 { font-size: clamp(32px, 4.5vw, 46px); margin: 10px 0 12px; }
.doc__meta { color: var(--text-3); font-size: 14px; }
.doc__summary { background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.doc__summary h2 { font-size: 18px; margin-bottom: 10px; }
.doc__summary ul { padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.doc__body section { padding-top: 8px; margin-bottom: 36px; }
.doc__body section > h2 { font-size: 24px; margin-bottom: 14px; }
.doc__body h3 { font-size: 17px; margin: 20px 0 8px; font-family: var(--font); }
.doc__body p, .doc__body li { color: var(--text-2); }
.doc__body p + p { margin-top: 12px; }
.doc__body ul, .doc__body ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc__body table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 600px; }
.doc__body th, .doc__body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc__body th { background: var(--surface-2); font-weight: 650; color: var(--text); }
.doc__body tr:last-child td { border-bottom: 0; }
.callout { border-left: 4px solid var(--coral); background: var(--coral-soft); padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 16px 0; }
.callout p { color: var(--text); }
.todo { background: #fff3bf; color: #5c4400; padding: 1px 6px; border-radius: 6px; font-weight: 650; }
@media (max-width: 920px) { .doc__layout { grid-template-columns: 1fr; gap: 24px; } .doc__toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; } }

/* simple centered card pages (404, reset, delete) */
.card-page { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 48px 0; }
.card { width: min(100% - 40px, 600px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); }
.card__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); margin-bottom: 18px; }
.card h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.card p { color: var(--text-2); }
.card p + p { margin-top: 12px; }
.card .btn { margin-top: 22px; }
.method { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 16px; }
.method h2 { font-size: 17px; margin-bottom: 8px; font-family: var(--font); }
.method ol, .method ul { padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; }
.alert { border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 15px; }
.alert--error, .card .alert--error { background: #fdecec; color: #8f1d1d; border: 1px solid #f5b5b5; }
.alert--info, .card .alert--info { background: var(--brand-soft); color: var(--text); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 18px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .store:hover, .tile:hover { transform: none; }
}
:root[data-theme="dark"] .billing em { color: var(--teal); }

/* ---------- Contraste forcé (Windows) : les fonds disparaissent, on marque l'état pressé par une bordure ---------- */
@media (forced-colors: active) {
  .tab[aria-pressed="true"], .billing button[aria-pressed="true"] { border: 3px solid Highlight; }
  .billing button { border: 1px solid transparent; }
}

/* Deux écrans côte à côte (accueil + timeline) */
.phone-duo { position: relative; transform: translateX(-24%); }
.feature__visual .phone-duo .phone--back {
  position: absolute; width: min(250px, 64vw); right: -64%; bottom: -4%; z-index: -1;
}
@media (max-width: 1200px) {
  .phone-duo { transform: none; }
  .feature__visual .phone-duo .phone--back { display: none; }
  .float-card--b { right: 0; }
}

/* ---------- Utilitaires (remplacent les attributs style="…" : CSP sans 'unsafe-inline') ---------- */
.bg-brand { background: var(--brand-soft); }
.bg-coral { background: var(--coral-soft); }
.bg-teal { background: var(--teal-soft); }
.bg-violet { background: var(--violet-soft); }
.bg-gold { background: var(--gold-soft); }
/* Pastille des types d'événements, couleur par catégorie */
.type[data-cat="food"] i { background: var(--coral-soft); }
.type[data-cat="sleep"] i { background: var(--violet-soft); }
.type[data-cat="hygiene"] i { background: var(--teal-soft); }
.type[data-cat="health"] i { background: var(--gold-soft); }
.demo-toggle-wrap { text-align: center; margin-top: 14px; }
.feature__note { margin-top: 18px; }
.footer__legal--flush { margin-top: 0; border-top: 0; padding-top: 0; }
.wrap--narrow { max-width: 820px; }
.card--center { text-align: center; }
.card--center .card__icon { margin-inline: auto; }
.card .card__note { margin-top: 16px; font-size: 14px; }

/* ---------- Page d'invitation (parrainage) ---------- */
.invite-code__value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--text); margin: 4px 0 8px; }
.invite-stores { margin-top: 24px; }
