/* ==========================================================================
   Aeris — feuille de styles unique (aucune dépendance, aucune police externe)
   Mobile-first. Mode sombre par défaut (identité de l'app), mode clair via
   prefers-color-scheme. Tous les tokens sont des variables CSS (voir
   /design-system.html pour la documentation visuelle).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  /* Couleurs de marque (identité de l'app) */
  --brand-bg-top: #2A1B5E;
  --brand-bg-bottom: #0A0F2E;
  --brand-pink: #FF6FD8;
  --brand-indigo: #6C63FF;

  /* Tuiles dégradées (icônes de fonctions) */
  --tile-green-a: #42E695;  --tile-green-b: #3BB2B8;
  --tile-orange-a: #FFB75E; --tile-orange-b: #ED8F03;
  --tile-blue-a: #56CCF2;   --tile-blue-b: #2F80ED;
  --tile-rose-a: #EE9CA7;   --tile-rose-b: #C33764;
  --tile-violet-a: #B993FF; --tile-violet-b: #6C63FF;
  --tile-teal-a: #5EEAD4;   --tile-teal-b: #0E9F9A;

  /* Surfaces & texte (sombre) */
  --bg: #0A0F2E;
  --bg-grad: linear-gradient(165deg, #2A1B5E 0%, #1A1448 38%, #0A0F2E 78%);
  --surface: rgba(255, 255, 255, .07);          /* carte « verre » */
  --surface-strong: rgba(255, 255, 255, .11);
  --surface-line: rgba(255, 255, 255, .14);     /* liseré */
  --header-bg: rgba(14, 12, 46, .82);
  --text: #FFFFFF;
  --text-2: #D2CFEC;       /* texte secondaire */
  --text-3: #B5B1D9;       /* texte tertiaire / légendes */
  --accent: #FF6FD8;       /* accent (texte et liens sur fond sombre) */
  --accent-ink: #1A1040;   /* texte sur fond accent */
  --link: #FFA8E8;
  --link-hover: #FFFFFF;
  --indigo: #6C63FF;
  --focus: #FFD166;
  --ok: #6EE7A8;
  --warn: #FFC66B;
  --shadow: 0 10px 40px rgba(5, 4, 25, .45);
  --btn-grad: linear-gradient(135deg, #FF8BE0 0%, #FF6FD8 100%);
  --pro-grad: linear-gradient(135deg, #FFB75E 0%, #FF6FD8 100%);
  --pro-ink: #2A1200;
  --todo-bg: rgba(255, 209, 102, .18);
  --todo-ink: #FFE29A;

  /* Typographie : pile système, aucune police externe */
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.625rem, 1.2rem + 2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.3rem + 3.4vw, 3.5rem);
  --lh-tight: 1.15;
  --lh-base: 1.6;

  /* Espacement (échelle de 4 px) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6rem;

  /* Formes */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --gutter: 16px;
  --maxw: 1120px;
  --maxw-prose: 760px;
  --tap: 44px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F6F4FF;
    --bg-grad: linear-gradient(165deg, #ECE6FF 0%, #F6F4FF 45%, #FFFFFF 100%);
    --surface: rgba(255, 255, 255, .78);
    --surface-strong: rgba(255, 255, 255, .95);
    --surface-line: rgba(42, 27, 94, .16);
    --header-bg: rgba(246, 244, 255, .88);
    --text: #1B1545;
    --text-2: #433E6B;
    --text-3: #57527F;
    --accent: #A0187E;
    --link: #4338CA;
    --link-hover: #1B1545;
    --indigo: #4F46E5;
    --focus: #5B21B6;
    --ok: #0B6B41;
    --warn: #8A5300;
    --shadow: 0 10px 40px rgba(42, 27, 94, .14);
    --todo-bg: #FFF1C2;
    --todo-ink: #5C3B00;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F4FF;
  --bg-grad: linear-gradient(165deg, #ECE6FF 0%, #F6F4FF 45%, #FFFFFF 100%);
  --surface: rgba(255, 255, 255, .78);
  --surface-strong: rgba(255, 255, 255, .95);
  --surface-line: rgba(42, 27, 94, .16);
  --header-bg: rgba(246, 244, 255, .88);
  --text: #1B1545; --text-2: #433E6B; --text-3: #57527F;
  --accent: #A0187E; --link: #4338CA; --link-hover: #1B1545;
  --indigo: #4F46E5; --focus: #5B21B6; --ok: #0B6B41; --warn: #8A5300;
  --shadow: 0 10px 40px rgba(42, 27, 94, .14);
  --todo-bg: #FFF1C2; --todo-ink: #5C3B00;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg-grad) no-repeat, var(--bg);
  background-size: 100% 100vh, auto;
  overflow-x: hidden;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: var(--lh-tight); margin: 0 0 var(--sp-3); letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-xl); font-weight: 750; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
li { margin-bottom: var(--sp-2); }
a { overflow-wrap: anywhere; color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 700; }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--surface); border: 1px solid var(--surface-line); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--surface-line); margin: var(--sp-6) 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--btn-grad); color: var(--accent-ink); font-weight: 700;
  padding: .75rem 1.1rem; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--prose { max-width: var(--maxw-prose); }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section__head { max-width: 640px; margin-bottom: var(--sp-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); }
.lead { font-size: var(--fs-md); color: var(--text-2); }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }

/* Marqueurs « à compléter » (visibles volontairement tant que non renseignés) */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: .05em .4em; border-radius: 6px; font-weight: 600; border: 1px dashed currentColor; }

/* ---------- 3. Composants : boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--tap); padding: .7rem 1.35rem; border-radius: var(--r-pill);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary { background: var(--btn-grad); color: var(--accent-ink); box-shadow: 0 6px 22px rgba(255, 111, 216, .35); }
.btn--primary:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 111, 216, .5); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--surface-line); }
.btn--ghost:hover { background: var(--surface-strong); color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; background: var(--surface); color: var(--text-2); border: 1px dashed var(--surface-line); box-shadow: none; transform: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Boutons de store */
.store-grid { display: grid; gap: var(--sp-3); }
.store-btn { display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; padding: .6rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--surface-line); color: var(--text); text-decoration: none; }
.store-btn svg { width: 30px; height: 30px; flex: none; }
.store-btn small { display: block; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.2; }
.store-btn strong { display: block; font-size: var(--fs-md); line-height: 1.2; }
a.store-btn:hover { background: var(--surface-strong); color: var(--text); transform: translateY(-1px); }
.store-btn[aria-disabled="true"] { cursor: not-allowed; border-style: dashed; }
.store-btn { transition: transform .15s ease, background-color .2s ease; }

/* ---------- 4. En-tête & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--surface-line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; min-height: var(--tap); }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; width: 36px; height: 36px; }
.nav-toggle { min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--r-pill); border: 1px solid var(--surface-line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: 0 .9rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { display: none; padding-bottom: var(--sp-4); }
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.site-nav li { margin: 0; }
.site-nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: var(--surface); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); box-shadow: inset 3px 0 0 var(--accent); }
.site-nav__tools { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-3); flex-wrap: wrap; }
.site-nav .btn { min-height: var(--tap); padding: .5rem 1.25rem; justify-content: center; }
.site-nav .btn--primary, .site-nav .btn--primary:hover { color: var(--accent-ink); background: var(--btn-grad); }
.lang-switch { display: inline-flex; border: 1px solid var(--surface-line); border-radius: var(--r-pill); overflow: hidden; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 .8rem; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.lang-switch a { color: var(--text-2); }
.lang-switch a:hover { background: var(--surface); color: var(--text); }
.lang-switch [aria-current="true"] { background: var(--surface-strong); color: var(--text); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: flex; align-items: center; gap: var(--sp-3); padding: 0; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { padding: 0 .8rem; font-size: var(--fs-sm); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); background: transparent; border-radius: 0; }
  .site-nav__tools { margin: 0; }
}

/* ---------- 5. Fil d'Ariane ---------- */
.breadcrumb { padding-block: var(--sp-4) 0; font-size: var(--fs-sm); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; color: var(--text-3); }
.breadcrumb li + li::before { content: "›"; color: var(--text-3); }
.breadcrumb a { color: var(--link); display: inline-flex; align-items: center; min-height: 28px; }

/* ---------- 6. Hero ---------- */
.hero { padding-block: var(--sp-6) var(--sp-7); }
.hero__grid { display: grid; gap: var(--sp-7); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .grad, .grad-text { background: linear-gradient(100deg, var(--brand-pink), #A98BFF 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero h1 .grad, :root[data-theme="light"] .grad-text { background: linear-gradient(100deg, #A0187E, #4F46E5); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero h1 .grad, :root:not([data-theme="dark"]) .grad-text { background: linear-gradient(100deg, #A0187E, #4F46E5); -webkit-background-clip: text; background-clip: text; }
}
.hero__lead { font-size: var(--fs-md); color: var(--text-2); max-width: 36em; margin-bottom: var(--sp-5); }
.hero__facts { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); color: var(--text-2); font-size: var(--fs-sm); }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.hero__facts svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero__visual { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero__glow { position: absolute; inset: 8% 5% auto; height: 70%; background: radial-gradient(closest-side, rgba(255, 111, 216, .35), transparent 70%); filter: blur(30px); z-index: 0; pointer-events: none; }

/* Maquette téléphone */
.phone { position: relative; z-index: 1; margin: 0; width: min(62vw, 250px); background: #0d0a2c; border: 7px solid #17143f; border-radius: 34px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .12); overflow: hidden; }
.phone img { display: block; width: 100%; height: auto; }
.phone--back { position: absolute; left: 50%; top: 0; transform: translateX(-98%) rotate(-5deg); width: min(46vw, 210px); opacity: .95; }
.phone--front { transform: translateX(32%) rotate(3deg); margin-top: 28px; }
@media (max-width: 420px) { .phone--front { transform: translateX(24%) rotate(3deg); } .phone--back { transform: translateX(-90%) rotate(-5deg); } }
.phone-caption { text-align: center; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-3); }
.phone-fig { margin: 0; text-align: center; }
.phone-fig .phone { margin-inline: auto; }

@media (min-width: 880px) {
  .hero { padding-block: var(--sp-8); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .phone { width: 260px; }
  .phone--back { width: 220px; }
  .hero__visual { min-height: 520px; }
}

/* ---------- 7. Grilles & cartes ---------- */
.grid { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-5); position: relative; transition: transform .2s ease, background-color .2s ease; }
.card:hover { background: var(--surface-strong); transform: translateY(-2px); }
.card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.card p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.card--flat:hover { transform: none; background: var(--surface); }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--sp-3); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); flex: none; }
.tile svg { width: 26px; height: 26px; }
.tile--green { background: linear-gradient(135deg, var(--tile-green-a), var(--tile-green-b)); }
.tile--orange { background: linear-gradient(135deg, var(--tile-orange-a), var(--tile-orange-b)); }
.tile--blue { background: linear-gradient(135deg, var(--tile-blue-a), var(--tile-blue-b)); }
.tile--rose { background: linear-gradient(135deg, var(--tile-rose-a), var(--tile-rose-b)); }
.tile--violet { background: linear-gradient(135deg, var(--tile-violet-a), var(--tile-violet-b)); }
.tile--teal { background: linear-gradient(135deg, var(--tile-teal-a), var(--tile-teal-b)); }
.tile--pink { background: linear-gradient(135deg, #FF9AE6, #FF6FD8 55%, #6C63FF); }

.badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: .15em .55em; border-radius: var(--r-pill); background: var(--pro-grad); color: var(--pro-ink); line-height: 1.4; vertical-align: middle; }
.badge--soon { background: var(--surface-strong); color: var(--text-2); border: 1px solid var(--surface-line); }
.badge--ok { background: rgba(110, 231, 168, .16); color: var(--ok); border: 1px solid currentColor; }

/* Étapes */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--sp-4); }
.steps li { counter-increment: step; margin: 0; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-5); position: relative; padding-top: calc(var(--sp-5) + 18px); }
.steps li::before { content: counter(step); position: absolute; top: -16px; left: var(--sp-5); width: 36px; height: 36px; border-radius: 50%; background: var(--btn-grad); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(255, 111, 216, .4); }
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); margin-top: var(--sp-5); } }

/* Bandeau/Callout */
.callout { border: 1px solid var(--surface-line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-block: var(--sp-5); }
.callout > :last-child { margin-bottom: 0; }
.callout--info { border-left-color: var(--indigo); }
.callout--warn { border-left-color: var(--warn); }
.callout strong:first-child { color: var(--text); }

/* Bloc confidentialité (liste de faits) */
.facts { display: grid; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-md); }
.facts svg { width: 24px; height: 24px; flex: none; color: var(--ok); margin-top: 2px; }
.facts p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.facts strong { color: var(--text); display: block; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }

/* Bandeau CTA final */
.cta-band { background: linear-gradient(135deg, rgba(255, 111, 216, .22), rgba(108, 99, 255, .28)); border: 1px solid var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); text-align: center; }
.cta-band h2 { margin-bottom: var(--sp-3); }
.cta-band p { color: var(--text-2); max-width: 36em; margin-inline: auto; }
.cta-band .store-grid { max-width: 760px; margin: var(--sp-5) auto 0; }
@media (min-width: 720px) { .store-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 8. Tarifs ---------- */
.plans { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .plans--2 { grid-template-columns: repeat(2, 1fr); } .plans--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .plans--4 { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-5); }
.plan--hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan__name { font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--sp-2); }
.plan__price { font-size: 2.25rem; font-weight: 800; line-height: 1.1; margin-bottom: var(--sp-1); }
.plan__price small { font-size: var(--fs-base); font-weight: 600; color: var(--text-2); }
.plan__note { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--sp-4); color: var(--text-2); font-size: var(--fs-sm); }
.plan li { display: flex; gap: .55rem; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--surface-line); border-radius: var(--r-md); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.compare caption { text-align: left; padding: var(--sp-3) var(--sp-4); color: var(--text-3); font-size: var(--fs-sm); }
.compare th, .compare td { padding: .75rem var(--sp-3); text-align: center; border-top: 1px solid var(--surface-line); vertical-align: middle; }
.compare thead th { background: var(--surface-strong); font-weight: 700; }
.compare th[scope="row"] { text-align: left; font-weight: 600; color: var(--text); min-width: 9rem; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--text-3); }
.compare svg { width: 20px; height: 20px; vertical-align: middle; }
.compare tbody tr:hover { background: var(--surface); }
.compare .group th { text-align: left; background: transparent; color: var(--accent); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding-top: var(--sp-4); }

/* ---------- 9. Accordéons (FAQ) ---------- */
.acc { display: grid; gap: var(--sp-2); }
.acc-item { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-md); overflow: hidden; }
.acc-item h3 { margin: 0; font-size: var(--fs-base); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: var(--sp-3) var(--sp-4); background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.acc-btn:hover { background: var(--surface); }
.acc-btn:focus-visible { outline-offset: -3px; }
.acc-btn::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.acc-btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.acc-panel { padding: 0 var(--sp-4) var(--sp-4); color: var(--text-2); }
.acc-panel[hidden] { display: none; }
.acc-panel > :last-child { margin-bottom: 0; }
.acc-actions { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.help-section { margin-bottom: var(--sp-6); }
.help-section[hidden], .acc-item[hidden] { display: none; }

/* Recherche */
.search { position: relative; max-width: 640px; }
.search input { width: 100%; min-height: 52px; padding: .8rem 1rem .8rem 3rem; border-radius: var(--r-pill); border: 1px solid var(--surface-line); background: var(--surface-strong); color: var(--text); font: inherit; }
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-3); pointer-events: none; }
.search-status { color: var(--text-3); font-size: var(--fs-sm); margin: var(--sp-3) 0 0; min-height: 1.6em; }
.empty { text-align: center; border: 1px dashed var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); color: var(--text-2); }
.empty[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--surface-line); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.chip:hover { background: var(--surface-strong); color: var(--text); }

/* ---------- 10. Formulaires ---------- */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 700; margin-bottom: var(--sp-2); }
.field input, .field select, .field textarea { width: 100%; min-height: var(--tap); padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--surface-line); background: var(--surface-strong); color: var(--text); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { color: var(--text-3); font-size: var(--fs-sm); margin-top: var(--sp-1); }
.field select option { color: #111; }
.field--invalid input, .field--invalid textarea { border-color: var(--warn); }
.form-status { margin-top: var(--sp-3); min-height: 1.6em; }

/* ---------- 11. Pages de texte (légal) ---------- */
.page-head { padding-block: var(--sp-5) var(--sp-5); }
.page-head h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.page-head p.lead { max-width: 40em; margin: 0; }
.page-meta { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-3); }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); padding-top: var(--sp-3); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border: 1px solid var(--surface-line); vertical-align: top; color: var(--text-2); }
.prose th { background: var(--surface-strong); color: var(--text); }
.prose .table-wrap table { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); }
.toc h2 { font-size: var(--fs-md); margin: 0 0 var(--sp-2); padding: 0; }
.toc ol { margin: 0; columns: 1; padding-left: 1.2em; }
.toc a { display: inline-flex; align-items: center; min-height: 32px; }
@media (min-width: 760px) { .toc ol { columns: 2; column-gap: var(--sp-6); } }

/* ---------- 12. Presse, journal des versions ---------- */
.swatches { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swatch { border: 1px solid var(--surface-line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 72px; }
.swatch__meta { padding: var(--sp-3); font-size: var(--fs-sm); }
.swatch__meta strong { display: block; }
.swatch__meta code { font-size: .8rem; }
.dl-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
.dl { display: flex; gap: var(--sp-3); align-items: center; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-md); padding: var(--sp-3); text-decoration: none; color: var(--text); min-height: 72px; }
.dl:hover { background: var(--surface-strong); color: var(--text); }
.dl img { border-radius: 10px; width: 56px; height: 56px; object-fit: cover; flex: none; background: #0A0F2E; }
.dl span { display: block; font-size: var(--fs-sm); color: var(--text-3); }
.dl strong { display: block; }
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-md); border: 1px solid var(--surface-line); width: 100%; height: auto; display: block; }
.gallery figcaption { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-2); }
.release { border-left: 2px solid var(--surface-line); padding-left: var(--sp-5); position: relative; margin-left: var(--sp-2); }
.release::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 111, 216, .2); }
.release h2 { font-size: var(--fs-lg); display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.release time, .release .date { color: var(--text-3); font-size: var(--fs-sm); font-weight: 500; }
.platform-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.platform { scroll-margin-top: 90px; margin-bottom: var(--sp-8); }
.platform__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.platform__head h2 { margin: 0; }
.platform__head svg { width: 34px; height: 34px; color: var(--accent); }
.limit { margin-top: var(--sp-5); }

/* Cartes de téléchargement */
.dl-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.dl-card .reqs { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.dl-card .reqs li { margin-bottom: var(--sp-1); }

/* ---------- 13. Pied de page ---------- */
.site-footer { margin-top: var(--sp-8); border-top: 1px solid var(--surface-line); background: rgba(0, 0, 0, .12); padding-block: var(--sp-7) var(--sp-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { color: var(--text-3); max-width: 28em; }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--surface-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); color: var(--text-3); }

/* ---------- 14. 404 ---------- */
.notfound { text-align: center; padding-block: var(--sp-8); }
.notfound .big { font-size: clamp(5rem, 20vw, 9rem); font-weight: 900; line-height: 1; margin-bottom: var(--sp-3); }

/* ---------- 15. Design system (page de documentation) ---------- */
.ds-demo { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-5); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-3); }
.ds-space { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.ds-space i { display: block; height: 14px; background: var(--btn-grad); border-radius: 4px; }
.ds-type > * { margin-bottom: var(--sp-3); }

/* ---------- 16. Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s ease both; }
  .hero__visual .phone--front { animation: float 7s ease-in-out infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 17. Impression ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .cta-band, .nav-toggle { display: none; }
  a { color: #000; }
  .card, .prose p, .prose li { color: #000; }
}

/* Contraste renforcé à la demande */
@media (prefers-contrast: more) {
  :root { --text-2: #FFFFFF; --text-3: #E6E4F7; --surface-line: rgba(255, 255, 255, .4); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --text-2: #1B1545; --text-3: #2F2A57; --surface-line: rgba(42, 27, 94, .5); }
}

.footer-company { margin-top: var(--sp-3); font-size: .875rem; color: var(--text-3); max-width: 34em; }
.footer-company a { color: inherit; text-decoration: underline; }
