/*
  Landing page Sleipnir — feuille autonome (aucune dépendance au bundle SPA).
  Les couleurs reprennent les tokens "Nordic Frost" de src/styles/globals.css ;
  le mode sombre suit prefers-color-scheme (pas de toggle sur la landing).
*/

:root {
  /* Glacier / Nordic / Aurora (palette de marque) */
  --glacier-900: #0a2e4d;
  --glacier-800: #0f4c81;
  --glacier-600: #1976d2;
  --glacier-500: #2196f3;
  --glacier-400: #42a5f5;
  --glacier-100: #e3f2fd;
  --glacier-50: #f0f7ff;
  --nordic-500: #00bfa5;
  --nordic-700: #00796b;
  --aurora-500: #ff6b35;

  /* Tokens sémantiques (mêmes valeurs que l'app, thème clair) */
  --bg-base: #ffffff;
  --bg-elevated: #f7fafc;
  --bg-overlay: #ffffff;
  --text-primary: #1a1f2e;
  --text-secondary: #718096;
  --text-muted: #a0aec0;
  --border-default: #cbd5e0;
  --border-light: #e2e8f0;
  --shadow-md: 0 4px 12px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 76, 129, 0.12);

  --action: var(--glacier-800);
  --action-hover: var(--glacier-900);
  --hero-halo: var(--glacier-50);

  /* Encres des extraits d'interface (une teinte d'accent par vignette + neutres) */
  --viz-line: #1976d2;   /* courbes (bleu glacier) */
  --viz-accent: #00897b; /* progression / couvert (teal) */
  --viz-pop: #e65100;    /* point saillant (orange aurora) */
  --viz-track: var(--border-light);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #0a0f1b;
    --bg-elevated: #1a1f2e;
    --bg-overlay: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --border-default: #4a5568;
    --border-light: #2d3748;
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08);

    /* Action éclaircie pour le contraste sur fond sombre (cf. globals.css) */
    --action: var(--glacier-500);
    --action-hover: var(--glacier-400);
    --hero-halo: #101a2c;

    /* Encres des vignettes éclaircies pour le fond sombre */
    --viz-line: #64b5f6;
    --viz-accent: #1de9b6;
    --viz-pop: #ff8a65;
  }
}

* {
  box-sizing: border-box;
}

/*
  L'attribut `hidden` ne pose qu'un `display: none` de feuille utilisateur : la
  moindre règle d'auteur fixant `display` le bat en silence. C'est le cas ici —
  `.btn` est `display: inline-block` — donc sans cette ligne, les variantes
  `[data-when-beta]` masquées par landing.js resteraient affichées, et la page
  proposerait à la fois « Rejoindre la bêta » et « Liste d'attente ».
*/
[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family:
    'Outfit',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Roboto',
    'Ubuntu',
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg-base) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand span {
  color: var(--nordic-500);
}

.header-anchors {
  display: flex;
  gap: 1.5rem;
}

.header-anchors a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-anchors a:hover {
  color: var(--text-primary);
}

/* Les ancres n'ont de sens qu'avec la place pour les afficher */
@media (max-width: 56rem) {
  .header-anchors {
    display: none;
  }
}

.header-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--action);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--action-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-overlay);
  color: var(--action);
  border-color: var(--action);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 80% -10%, var(--hero-halo) 0%, transparent 70%),
    var(--bg-base);
  /* Resserré pour que l'aperçu produit affleure au-dessus du pli sur laptop */
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.badge-beta {
  display: inline-block;
  background: var(--nordic-500);
  color: #06302a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 1.25rem auto 1rem;
  max-width: 46rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .persona {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: -1rem auto 2rem;
}

.cta-hints {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Aperçu produit du hero : deux extraits d'interface dans une fenêtre d'app */
.hero-visual {
  max-width: 52rem;
  margin: 2.25rem auto 0;
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-overlay);
  text-align: initial;
}

.hero-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 56rem) {
  .hero-panels {
    grid-template-columns: 1fr;
  }
}

.hero .login-hint a {
  color: var(--action);
  font-weight: 600;
}

/* ---------- Sections ---------- */

section {
  padding: 4rem 0;
}

section.alt {
  background: var(--bg-elevated);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
}

/* ---------- Features (blocs alternés texte / visuel) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

.feature:nth-child(even) .feature-visual {
  order: -1;
}

/* Variante pleine largeur (Exploration, le différenciateur n°1) :
   texte centré au-dessus, grande carte en dessous. */
.feature-full {
  display: block;
}

.feature-full .feature-text {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.feature .kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nordic-700);
}

@media (prefers-color-scheme: dark) {
  .feature .kicker {
    color: var(--nordic-500);
  }
}

.feature h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}

.feature p {
  color: var(--text-secondary);
  margin: 0;
}

/* Mention discrète des fonctionnalités qui rejoindront l'offre premium après la
   bêta (transparence tarifaire — même promesse que la grille de la section #beta). */
.feature .premium-note {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.875rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-full .premium-note {
  justify-content: center;
}

.premium-note .premium-pill {
  flex: none;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/*
  Extraits d'interface : vignettes stylisées (HTML/SVG) évoquant l'écran réel
  de chaque feature — pas des captures figées, elles suivent le thème.
  Décoratives (aria-hidden) : la figcaption porte le sens.
*/
.feature-visual {
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-overlay);
  margin: 0;
}

.mock-chrome {
  display: flex;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border-light);
}

.mock-chrome i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--border-default);
}

.viz-body {
  min-height: 13rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.feature-visual figcaption {
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

/* -- Vignette 1 : plan de course (semaines de séances) -- */

.viz-plan-week {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.viz-plan-week .week-label {
  width: 2.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.viz-plan-week .sessions {
  display: flex;
  gap: 0.375rem;
  flex: 1;
}

.viz-session {
  height: 0.875rem;
  border-radius: 4px;
  background: var(--viz-line);
  opacity: 0.85;
}

.viz-session.easy { opacity: 0.35; }
.viz-session.rest { background: var(--viz-track); opacity: 1; }

.viz-race-chip {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--viz-pop);
  border: 1.5px solid var(--viz-pop);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* -- Vignette 2 : courbe de puissance + col -- */

.viz-chart {
  width: 100%;
  height: auto;
  display: block;
}

.viz-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.viz-chip .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--viz-accent);
}

/* -- Vignette natation : volumes par nage -- */

.viz-swim-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.viz-swim-label {
  width: 4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.viz-swim-track {
  flex: 1;
}

.viz-swim-track i {
  display: block;
  height: 0.875rem;
  border-radius: 4px;
  background: var(--viz-line);
  opacity: 0.85;
}

/* -- Vignette 3 : anneau de forme -- */

.viz-ring-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.viz-ring {
  width: 7.5rem;
  height: 7.5rem;
  flex-shrink: 0;
}

.viz-ring .track {
  fill: none;
  stroke: var(--viz-track);
  stroke-width: 10;
}

.viz-ring .value {
  fill: none;
  stroke: var(--viz-accent);
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.viz-ring text {
  fill: var(--text-primary);
  font-size: 26px;
  font-weight: 800;
}

.viz-ring-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Prend la place restante à côté de l'anneau sans jamais déborder (petits écrans) */
  flex: 1;
  min-width: 0;
}

.viz-meta-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--viz-track);
  width: 100%;
  max-width: 9rem;
  overflow: hidden;
}

.viz-meta-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--viz-line);
  opacity: 0.7;
}

.viz-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* -- Vignette 4 : carte de complétion (couvert / à faire) -- */

.viz-map path.done {
  fill: none;
  stroke: var(--viz-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.viz-map path.todo {
  fill: none;
  stroke: var(--border-default);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 7;
}

.viz-map .peak {
  fill: var(--viz-pop);
  stroke: var(--bg-overlay);
  stroke-width: 1.5;
}

.viz-map .peak-todo {
  fill: none;
  stroke: var(--border-default);
  stroke-width: 2;
}

.viz-map .percent {
  fill: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
}

.viz-map .percent-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

/* -- Vignette 5 : fil d'amis (cartes + réactions) -- */

.viz-feed-card {
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-base);
}

.viz-feed-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.viz-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--viz-line);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.viz-avatar.alt { background: var(--viz-accent); }

.viz-feed-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.viz-feed-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.viz-reactions {
  display: flex;
  gap: 0.375rem;
}

.viz-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: var(--bg-elevated);
}

/* -- Vignette 6 : export des données -- */

.viz-export-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-base);
}

.viz-export-row .file-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.viz-export-row .check {
  color: var(--viz-accent);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- Comment ça marche ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--action);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.step p {
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Appareils ---------- */

.devices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.device-card {
  background: var(--bg-overlay);
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.device-card.soon {
  opacity: 0.65;
}

.device-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.device-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.device-status.available {
  background: color-mix(in srgb, var(--nordic-500) 18%, transparent);
  color: var(--nordic-700);
}

@media (prefers-color-scheme: dark) {
  .device-status.available {
    color: var(--nordic-500);
  }
}

.device-status.soon-badge {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.device-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Formulaire waitlist ---------- */

.waitlist-box {
  max-width: 36rem;
  margin: 0 auto;
  background: var(--bg-overlay);
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.waitlist-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.waitlist-box .waitlist-sub {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.waitlist-form .field-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.waitlist-form label.email-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.375rem;
}

.waitlist-form input[type='email'] {
  flex: 1 1 14rem;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-default);
  border-radius: 0.625rem;
  background: var(--bg-base);
  color: var(--text-primary);
}

.waitlist-form input[type='email']:focus {
  outline: 2px solid var(--action);
  outline-offset: 1px;
  border-color: var(--action);
}

.device-choices {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.device-choices label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  cursor: pointer;
}

.device-choices input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--action);
}

.rgpd-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.875rem 0 0;
}

.form-message {
  margin: 0.875rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-message.success {
  color: #10b981;
}

.form-message.error {
  color: #ef4444;
}

/* ---------- Bêta & tarifs ---------- */

.beta-card {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.beta-card .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Décompte des places : le texte servi est neutre, landing.js y écrit le
   chiffre réel. Traité comme une mention saillante, pas comme un paragraphe. */
.beta-seats {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--action);
}

.pricing-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: left;
}

.pricing-note p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

.pricing-note p:last-child {
  margin-bottom: 0;
}

.pricing-note strong {
  color: var(--text-primary);
}

.pricing-note .founder-note strong {
  color: var(--action);
}

/* Grille indicative gratuit / premium */

.pricing-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-table th,
.pricing-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.pricing-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom-color: var(--border-default);
}

.pricing-table th[scope='row'] {
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
}

.pricing-table thead th:not(:first-child),
.pricing-table td {
  text-align: center;
  width: 5.5rem;
  white-space: nowrap;
}

.pricing-table td.yes {
  color: var(--viz-accent);
  font-weight: 700;
}

.pricing-table td.no {
  color: var(--text-muted);
}

.mobile-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-waitlist h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--bg-overlay);
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.25rem;
  list-style-position: inside;
}

.faq-list summary:hover {
  color: var(--action);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border-light);
}

.faq-list details p {
  margin: 0;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
}

/* ---------- Pages légales ---------- */

.legal-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-page h1 {
  letter-spacing: -0.02em;
}

.legal-page h2 {
  margin-top: 2.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature:nth-child(even) .feature-visual {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .devices {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 24rem) {
  .devices {
    grid-template-columns: 1fr;
  }

  /* Trop étroit pour deux boutons d'en-tête : le hero, juste dessous,
     porte déjà « Se connecter ». */
  .header-nav .btn-secondary {
    display: none;
  }
}
