/* =========================================================
   Monelio — feuille de style v2 « confort de lecture »

   Trois principes, dans cet ordre :

   1. Le blanc pur n'est plus le fond de page. Il est réservé aux cartes.
      Le champ visuel est un crème chaud, qui renvoie nettement moins de
      lumière — c'est ce qui fatigue le moins les yeux sur une page longue.
   2. Le texte courant vise AAA (7:1), pas seulement AA (4.5:1). L'ancienne
      version passait AA partout, et restait pourtant pénible à lire.
   3. Les sections alternent de vrais aplats — crème, bleu, sable, encre —
      pour donner du rythme et éviter le mur clair continu.

   Tout composant s'exprime en variables sémantiques (--surface, --ink…),
   jamais en couleurs brutes. C'est ce qui permet au thème sombre et aux
   bandes foncées de fonctionner par simple redéfinition locale des jetons.
   ========================================================= */

/* Polices auto-hébergées (aucun appel à fonts.googleapis.com / gstatic) */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fredoka-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fredoka-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fredoka-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/poppins-800.woff2') format('woff2');
}

/* =========================================================
   1. Jetons — thème clair (crème)
   ========================================================= */

:root {
  color-scheme: light;

  /* --- Surfaces --- */
  --surface: #F3EDE1;         /* fond de page : crème chaud, ~15 % moins lumineux que le blanc */
  --surface-blue: #E3EDFB;    /* aplat bleu */
  --surface-warm: #F6E2C1;    /* aplat sable */
  --surface-ink: #16203A;     /* aplat encre */
  --card: #FFFCF6;            /* cartes : blanc à peine réchauffé */
  --card-2: #FFFFFF;          /* cartes posées sur un aplat coloré */

  /* Jetons propres à l'aplat sable, qui doit rester lisible dans les deux thèmes */
  --warm-ink: #1E1608;
  --warm-ink-soft: #38301F;   /* 10.4:1 sur le sable clair */
  --warm-card: #FFFFFF;
  --warm-chip-bg: rgba(255, 255, 255, 0.78);
  --warm-chip-text: #713B0A;  /* 7.1:1 sur le sable */

  /* --- Texte --- */
  --ink: #131B2C;             /* titres et texte fort — 15.7:1 sur crème */
  --ink-soft: #37425A;        /* texte courant — 8.9:1 sur crème, AAA */
  --ink-muted: #4A566E;       /* mentions discrètes — 6.7:1, réservé au non-essentiel */

  /* --- Accent bleu --- */
  --accent: #17509F;          /* fond de bouton */
  --accent-on: #FFFFFF;       /* texte posé sur l'accent — 7.7:1 */
  --accent-hover: #12408A;
  --accent-text: #12468C;     /* bleu de texte — 7.1:1 y compris sur la pastille bleue */
  --accent-wash: #D5E4FA;     /* pastille bleue */

  /* --- Accents chauds --- */
  --gold: #F2C94C;            /* décoratif : jamais porteur de texte fin */
  --gold-text: #7A5300;       /* doré lisible — 7.3:1 sur crème */
  --brown-text: #7E3F17;      /* marron lisible — 7.6:1 sur crème */
  --green-text: #12613D;      /* validation */

  /* --- Traits --- */
  --border: #D6C9B2;          /* décoratif */
  --border-strong: #6C6250;   /* fonctionnel, >= 3:1 sur crème */
  --focus: #0E2E63;           /* anneau de focus */
  --focus-offset: var(--surface);

  /* --- Pastilles (eyebrow, icônes) --- */
  --chip-bg: var(--accent-wash);
  --chip-text: var(--accent-text);

  /* --- Formes --- */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 38px;
  --shadow-soft: 0 18px 40px -22px rgba(19, 27, 44, 0.5);
  --shadow-card: 0 12px 28px -16px rgba(19, 27, 44, 0.35);
  --font-display: 'Fredoka', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* =========================================================
   2. Thème sombre

   Appliqué soit par préférence système, soit par choix explicite via
   l'attribut data-theme posé sur <html>. Le choix explicite gagne
   toujours : c'est la règle attendue par quelqu'un qui actionne le
   sélecteur alors que son système dit l'inverse.
   ========================================================= */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --surface: #131A28;
    --surface-blue: #1A2740;
    --surface-warm: #2A2114;
    --warm-ink: #F8F1E4;
    --warm-ink-soft: #DCCFB6;
    --warm-card: #34291A;    /* une carte bleutée sur un aplat brun jurait */
    --warm-chip-bg: rgba(255, 255, 255, 0.12);
    --warm-chip-text: #F3C98A;
    --surface-ink: #0C1220;
    --card: #1E2739;
    --card-2: #26314A;

    --ink: #F1F5FB;           /* 15.4:1 sur la surface */
    --ink-soft: #C4CFE0;      /* 10.3:1 — AAA */
    --ink-muted: #A3B0C4;     /* 7.3:1 */

    --accent: #7FB0F5;        /* bouton clair : sur fond sombre, un bleu moyen
                                 à texte blanc plafonne à 4:1 */
    --accent-on: #0B1220;     /* 8.4:1 sur l'accent */
    --accent-hover: #A2C7FF;
    --accent-text: #9EC1FF;   /* 7.1:1 y compris sur la pastille */
    --accent-wash: #21324F;

    --gold: #F2C94C;
    --gold-text: #F0C356;     /* 10.6:1 sur la surface */
    --brown-text: #E9A272;
    --green-text: #63D39B;

    --border: #313D54;
    --border-strong: #8B99AF;
    --focus: #BFD4FF;
    --shadow-soft: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
    --shadow-card: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --surface: #131A28;
  --surface-blue: #1A2740;
  --surface-warm: #2A2114;
  --warm-ink: #F8F1E4;
  --warm-ink-soft: #DCCFB6;
  --warm-card: #34291A;
  --warm-chip-bg: rgba(255, 255, 255, 0.12);
  --warm-chip-text: #F3C98A;
  --surface-ink: #0C1220;
  --card: #1E2739;
  --card-2: #26314A;

  --ink: #F1F5FB;
  --ink-soft: #C4CFE0;
  --ink-muted: #A3B0C4;

  --accent: #7FB0F5;
  --accent-on: #0B1220;
  --accent-hover: #A2C7FF;
  --accent-text: #9EC1FF;
  --accent-wash: #21324F;

  --gold: #F2C94C;
  --gold-text: #F0C356;
  --brown-text: #E9A272;
  --green-text: #63D39B;

  --border: #313D54;
  --border-strong: #8B99AF;
  --focus: #BFD4FF;
  --shadow-soft: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-card: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
}

/* =========================================================
   3. Bandes de section

   Une bande redéfinit localement les jetons : tous les composants
   qu'elle contient s'adaptent sans qu'aucun d'eux ait à connaître
   la couleur de son fond.
   ========================================================= */

.band-cream { background: var(--surface); }

.band-blue {
  background: var(--surface-blue);
  --card: var(--card-2);
  --chip-bg: var(--card-2);
}

.band-warm {
  background: var(--surface-warm);
  --card: var(--warm-card);
  --chip-bg: var(--warm-chip-bg);
  --chip-text: var(--warm-chip-text);
  --ink: var(--warm-ink);
  --ink-soft: var(--warm-ink-soft);
  --ink-muted: var(--warm-ink-soft);
  color: var(--warm-ink);
}

/* Aplat encre : inversion complète, dans les deux thèmes. */
.band-ink {
  background: var(--surface-ink);
  --card: #223052;
  --ink: #F4F7FC;
  --ink-soft: #CBD6E6;        /* 11.9:1 sur l'encre */
  --ink-muted: #A9B7CC;       /* 8.1:1 */
  --accent-text: #9CC0FF;     /* 8.4:1 */
  --gold-text: #F7D46B;       /* 11.4:1 */
  --brown-text: #F0B78A;
  --chip-bg: rgba(255, 255, 255, 0.14);
  --chip-text: #F7D46B;
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.55);
  --focus: #FFE08A;
  color: var(--ink);
}

/* =========================================================
   4. Base
   ========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto est indispensable : les attributs width/height du balisage
   réservent la place avant chargement (pas de saut de mise en page), mais sans
   cette règle la hauteur intrinsèque l'emporte et l'image est étirée. */
img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

button { font: inherit; }

/* ===== Focus visible, partout, sur tous les fonds ===== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Lien d'évitement ===== */

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  background: var(--surface-ink);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* =========================================================
   5. Titraille
   ========================================================= */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chip-text);
  background: var(--chip-bg);
  padding: 7px 17px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.eyebrow.center { display: block; width: max-content; margin-left: auto; margin-right: auto; }

/* Conservés pour compatibilité avec l'ancien balisage : les bandes
   pilotent désormais la couleur, ces modificateurs ne font plus rien. */
.eyebrow.on-dark, .eyebrow.on-beige { color: var(--chip-text); background: var(--chip-bg); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}

.section-title.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.section-sub {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0;
}

.section-sub.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

section { padding: 92px 0; position: relative; }

/* ===== Ruban de marque ===== */

.brand-ribbon {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 34%, var(--gold) 62%, #C2703A 84%, var(--surface-warm) 100%);
}

/* =========================================================
   6. Boutons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: var(--shadow-soft);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }

.btn-appstore {
  background: var(--surface-ink);
  color: #FFFFFF;
  text-align: left;
  padding: 12px 24px;
}

.btn-appstore:hover { transform: translateY(-2px); background: #0A1120; }

.band-ink .btn-appstore { background: var(--card); }

.btn-appstore .apple-logo { width: 26px; height: 26px; flex-shrink: 0; }

.btn-appstore span { display: flex; flex-direction: column; line-height: 1.15; font-size: 17px; }

.btn-appstore small { font-size: 12px; font-weight: 400; }

/* =========================================================
   7. Logo
   ========================================================= */

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* =========================================================
   8. En-tête
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}


.main-nav {
  display: flex;
  gap: 26px;
}

.main-nav a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 4px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* --- Sélecteur de thème --- */

.theme-toggle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { background: var(--chip-bg); border-color: var(--accent-text); }

.theme-toggle svg { width: 22px; height: 22px; }

/* L'icône affichée dépend du thème réellement appliqué. */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme='light']) .theme-toggle .icon-sun { display: block; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: none;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   9. Hero
   ========================================================= */

.hero {
  padding-top: 60px;
  padding-bottom: 60px;
  background:
    radial-gradient(52% 58% at 88% 8%, rgba(242, 201, 76, 0.30), transparent 64%),
    radial-gradient(52% 55% at 0% 30%, rgba(27, 90, 184, 0.14), transparent 62%),
    var(--surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(37px, 5vw, 57px);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero-sub {
  font-size: 18.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 490px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-microcopy {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Illustration ===== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 470px;
}

.hero-blob {
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: linear-gradient(150deg, var(--accent) 0%, #4C93F2 58%, var(--gold) 145%);
  box-shadow: var(--shadow-soft);
  animation: blobMove 10s ease-in-out infinite;
}

@keyframes blobMove {
  0%, 100% { border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%; transform: rotate(0deg); }
  50% { border-radius: 58% 42% 46% 54% / 52% 56% 44% 48%; transform: rotate(4deg); }
}

.hero-ring {
  position: absolute;
  width: 325px;
  height: 325px;
  border: 3px dashed rgba(126, 63, 23, 0.4);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

:root[data-theme='dark'] .hero-ring { border-color: rgba(240, 195, 86, 0.35); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero-ring { border-color: rgba(240, 195, 86, 0.35); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-mascot-large {
  position: relative;
  z-index: 2;
  width: 300px;
  filter: drop-shadow(0 22px 26px rgba(19, 27, 44, 0.3));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-acorn {
  position: absolute;
  z-index: 3;
  width: 46px;
  filter: drop-shadow(0 8px 10px rgba(19, 27, 44, 0.22));
}

.hero-acorn--1 { top: 6%; left: 8%; animation: float 4.5s ease-in-out infinite; }
.hero-acorn--2 { bottom: 10%; right: 4%; width: 36px; animation: float 5.5s ease-in-out infinite 0.6s; }
.hero-acorn--3 { top: 14%; right: 16%; width: 28px; animation: float 4s ease-in-out infinite 1.1s; }

.hero-soon-badge {
  position: absolute;
  bottom: 5%;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.hero-soon-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-text);
  flex-shrink: 0;
}

/* =========================================================
   10. Bandeau de confiance (aplat encre)
   ========================================================= */

.trust-strip { padding: 30px 0; }

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 44px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}

.trust-icon { font-size: 19px; }

/* =========================================================
   11. Cartes de fonctionnalités
   ========================================================= */

.feature-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(19, 27, 44, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-icon--blue { background: var(--accent-wash); }
.feature-icon--yellow { background: #FBECC4; }
.feature-icon--brown { background: #F2E1CA; }

:root[data-theme='dark'] .feature-icon--yellow { background: #3A3018; }
:root[data-theme='dark'] .feature-icon--brown { background: #33281C; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .feature-icon--yellow { background: #3A3018; }
  :root:not([data-theme='light']) .feature-icon--brown { background: #33281C; }
}

.band-ink .feature-icon--blue { background: rgba(156, 192, 255, 0.18); }
.band-ink .feature-icon--yellow { background: rgba(247, 212, 107, 0.18); }
.band-ink .feature-icon--brown { background: rgba(240, 183, 138, 0.18); }

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ink);
}

.feature-card p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   12. Aperçu
   ========================================================= */

.showcase-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.showcase-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-list li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 32px;
  position: relative;
}

.showcase-list .li-icon {
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 16px;
}

.showcase-list strong { color: var(--ink); }

.showcase-visual { display: flex; justify-content: center; }

.showcase-mascot-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 30px 10px;
  box-shadow: var(--shadow-card);
}

.showcase-mascot { width: 235px; }

/* =========================================================
   13. Étapes
   ========================================================= */

.steps-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step {
  text-align: center;
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: #2A1D00;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px -10px rgba(122, 83, 0, 0.7);
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--ink);
}

.step p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   14. Sécurité
   ========================================================= */

.security-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 48px;
}

.security-visual { display: flex; justify-content: center; }

.security-mascot-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 26px 6px;
}

.security-mascot { width: 225px; }

.security-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.security-list li {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.security-list .li-icon { flex-shrink: 0; }

/* =========================================================
   15. Appel à l'action
   ========================================================= */

.cta { text-align: center; }

.cta-inner {
  max-width: 640px;
  position: relative;
}

.cta-mascot {
  width: 150px;
  margin: 0 auto 10px;
}

.cta-actions {
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-secondary-link {
  display: inline-block;
  padding: 8px 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge-row { margin-top: 30px; display: flex; justify-content: center; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-ink);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
}

.band-ink .badge-soon { background: var(--card); color: var(--ink); }

.badge-soon .apple-logo { width: 17px; height: 17px; }

/* =========================================================
   16. FAQ
   ========================================================= */

.faq-list {
  margin-top: 46px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  padding: 21px 24px;
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-on);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.faq-answer a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   17. Pied de page
   ========================================================= */

.site-footer {
  background: var(--surface-ink);
  color: #D7DFEC;
  padding-top: 62px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }

.footer-brand .brand-logo { height: 44px; margin-top: 6px; }

.footer-tagline {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F7D46B;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col { display: flex; flex-direction: column; gap: 4px; }

.footer-col h2 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  font-size: 15.5px;
  color: #D7DFEC;              /* 11.6:1 sur l'encre */
  padding: 7px 0;              /* porte la cible à 30 px de haut */
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible { color: #F7D46B; }

.site-footer :focus-visible { outline-color: #FFE08A; }

.footer-bottom {
  padding: 22px 24px;
  text-align: center;
  font-size: 14px;
  color: #C2CCDD;              /* 9.6:1 sur l'encre */
}

/* =========================================================
   18. Retour en haut
   ========================================================= */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  border: 2px solid var(--accent-on);
  font-size: 19px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}

.back-to-top[hidden] { display: none; }

.back-to-top.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   19. Pages de contenu (légal, tutoriel, accessibilité)
   ========================================================= */

.legal-hero {
  padding-top: 54px;
  padding-bottom: 44px;
  text-align: center;
  background:
    radial-gradient(56% 60% at 88% 4%, rgba(242, 201, 76, 0.26), transparent 62%),
    var(--surface-blue);
}

.legal-hero .container { max-width: 780px; }

/* Les pages de contenu étaient les plus austères du site : une mascotte les
   raccroche à la marque sans rien coûter à la lisibilité (décorative, donc
   masquée aux lecteurs d'écran). */
.legal-hero-mascot {
  width: 124px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 14px 18px rgba(19, 27, 44, 0.22));
}

.legal-updated {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.legal-hero .section-sub + .legal-updated { margin-top: 18px; }

.legal-content { padding: 56px 0 92px; }

.legal-content .container { max-width: 780px; }

.legal-article {
  margin-bottom: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px 24px;
  box-shadow: var(--shadow-card);
}

.legal-article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  color: var(--ink);
  margin: 0 0 14px;
}

.legal-article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  color: var(--ink);
  margin: 22px 0 8px;
}

.legal-article p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal-article p:last-child { margin-bottom: 0; }

.legal-article ul { margin: 0 0 14px; padding-left: 4px; }

.legal-article li {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.legal-article li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-text);
}

.legal-article a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article strong { color: var(--ink); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 10px 2px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   20. Contraste renforcé et couleurs forcées
   ========================================================= */

@media (prefers-contrast: more) {
  :root {
    --ink: #000000;
    --ink-soft: #1A2233;
    --ink-muted: #1A2233;
    --border: #6C6250;
    --accent-text: #0B3E85;
  }
  .feature-card, .step, .faq-item, .legal-article, .showcase-mascot-wrap, .security-mascot-wrap {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .feature-card, .step, .faq-item, .legal-article { border: 1px solid CanvasText; }
  .theme-toggle, .nav-toggle { border: 1px solid ButtonText; }
  .step-number, .feature-icon, .faq-icon { forced-color-adjust: none; }
}

/* =========================================================
   21. Adaptatif
   ========================================================= */

@media (max-width: 1000px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 15px; }
}

@media (max-width: 960px) {
  .hero-inner,
  .showcase-inner,
  .security-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy { text-align: center; order: 2; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: 1; min-height: 430px; }

  .showcase-copy { text-align: center; }
  .showcase-list { text-align: left; }
  .showcase-visual { order: -1; }

  .security-visual { order: -1; }
  .security-copy { text-align: center; }
  .security-list { align-items: center; text-align: left; display: inline-flex; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 22px; }

  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  section { padding: 64px 0; }

  .main-nav { display: none; }

  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 24px 26px;
    gap: 4px;
    box-shadow: 0 20px 30px -20px rgba(19,27,44,0.4);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open a { padding: 13px 4px; border-bottom: none; }

  .header-cta { display: none; }

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

  .hero-blob { width: 290px; height: 290px; }
  .hero-ring { width: 235px; height: 235px; }
  .hero-mascot-large { width: 215px; }
  /* Le badge reste hors flux : en faire un frère de la mascotte dans le
     conteneur flex la décentrait vers la gauche. */
  .hero-soon-badge { bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }

  .legal-article { padding: 24px 22px 20px; }

  .footer-links { grid-template-columns: 1fr; }
  .footer-inner { gap: 34px; }
}

@media (max-width: 380px) {
  .trust-inner { gap: 14px 24px; }
  .btn { padding: 14px 20px; font-size: 16px; }
  /* À 320 px l'anneau décoratif dépassait de 2 px et gonflait la largeur du document. */
  .hero-blob { width: 250px; height: 250px; }
  .hero-ring { width: 205px; height: 205px; }
  .hero-mascot-large { width: 185px; }
}
