/* ------------------------------------------------------------------
   Crayon Futé — feuille de style unique du site statique.
   Design aligné sur l'app (phase 24, build 37+) : ciel de l'univers
   Océan, tuiles matière pleines à rebord, pictos argile en sticker,
   bouton jaune « Continuer », Fredoka 700 pour les titres.
   Espace parent : fond crème, contrôles bleus (#378ADD).
   Couleurs : app/lib/core/theme/app_colors.dart + app_theme_data.dart.
   Contrastes vérifiés AA (texte ≥ 4,5:1, gros texte et boutons ≥ 3:1).
   ------------------------------------------------------------------ */

/* Polices hébergées sur ce site (OFL) : aucune requête vers Google Fonts.
   Fichiers « latin » variables, graisses 300-700. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/fredoka-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/quicksand-latin.woff2) format('woff2');
}


:root {
  --cream: #fff8f0;
  --cream-2: #fff2e6;
  --surface: #ffffff;
  --sky-1: #eaf4ff;       /* Océan, haut du dégradé */
  --sky-2: #cfe6fb;       /* Océan, bas du dégradé */
  --bubble: rgba(160, 200, 235, 0.35);
  --ink: #2d2438;         /* 13,8:1 sur crème */
  --ink-soft: #55495f;    /* 8,0:1 sur crème, 7,0:1 sur ciel */
  --border: #ede5f3;
  --yellow: #ffcc02;      /* bouton « Continuer » ; encre dessus = 11:1 */
  --yellow-ledge: #d9a800;
  --blue: #378add;        /* contrôles de l'espace parent */
  --blue-ink: #1f5fa6;    /* liens, 6,6:1 sur crème */
  --blue-ledge: #2466ad;
  --orange-ink: #c2410c;

  /* Tuiles matière (remplissage de l'app) + rebord assombri */
  --fr: #df4a49;  --fr-l: #b23230;
  --ma: #3584d6;  --ma-l: #1f5fa6;
  --sc: #189b47;  --sc-l: #107236;
  --hg: #d0730a;  --hg-l: #97550b;
  --emc: #cf5180; --emc-l: #a83358;
  --an: #0e8a9c;  --an-l: #0a6e7d;

  --radius: 28px;
  --radius-sm: 20px;
  --ledge: 0 6px 0 rgba(45, 36, 56, 0.07);
  --shadow: 0 6px 0 rgba(45, 36, 56, 0.06), 0 14px 30px rgba(45, 36, 56, 0.08);
  --shadow-lg: 0 8px 0 rgba(45, 36, 56, 0.07), 0 22px 44px rgba(45, 36, 56, 0.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .font-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }

a { color: var(--blue-ink); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 780px; }

section { padding: 56px 0; }

.section-title { text-align: center; margin-bottom: 10px; }
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ---------- En-tête ---------- */

.topbar {
  background: rgba(255, 248, 240, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(45, 36, 56, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 3px 0 rgba(45, 36, 56, 0.1); }

.topnav { display: flex; gap: 6px; }
.topnav a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.topnav a:hover { background: var(--cream-2); color: var(--ink); }

/* ---------- Boutons (argile à rebord, comme « Continuer ») ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 22px;
  border: 0;
  box-shadow: 0 6px 0 var(--yellow-ledge), 0 14px 26px rgba(217, 168, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--yellow-ledge), 0 18px 30px rgba(217, 168, 0, 0.3); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-ledge), 0 6px 12px rgba(217, 168, 0, 0.2); }
.btn svg { flex: none; }
.btn-sm {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--yellow-ledge);
}
.btn-sm:hover { box-shadow: 0 6px 0 var(--yellow-ledge); }
.btn-sm:active { box-shadow: 0 1px 0 var(--yellow-ledge); transform: translateY(3px); }

.btn-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Pastille (chip de l'app) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
  box-shadow: 0 3px 0 rgba(45, 36, 56, 0.06);
}
.eyebrow img { width: 28px; height: 28px; }

/* ---------- Héros : ciel de l'univers Océan ---------- */

.sky {
  position: relative;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
  overflow: hidden;
  isolation: isolate;
}
.sky::before {
  /* bulles, comme sur l'accueil de l'app */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 22%, var(--bubble) 0 34px, transparent 35px),
    radial-gradient(circle at 44% 12%, var(--bubble) 0 22px, transparent 23px),
    radial-gradient(circle at 36% 62%, var(--bubble) 0 14px, transparent 15px),
    radial-gradient(circle at 92% 30%, var(--bubble) 0 28px, transparent 29px),
    radial-gradient(circle at 70% 8%, var(--bubble) 0 12px, transparent 13px);
}
.seabed {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: max(900px, 100%);
  max-width: none;
  z-index: -1;
  pointer-events: none;
  /* les algues hautes s'effacent : le texte reste sur le ciel uni */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}

.hero { padding: 36px 0 120px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.hero h1 { font-size: 2.35rem; }
.hero .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 31em;
}

.hero-visual {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 470;
}
.hero-visual .dev-ipad {
  position: absolute;
  left: 0;
  top: 0;
  width: 76%;
  filter: drop-shadow(0 22px 30px rgba(31, 95, 166, 0.22));
}
.hero-visual .dev-iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  filter: drop-shadow(0 18px 24px rgba(31, 95, 166, 0.25));
}

/* ---------- Cartes argile ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.grid-3 { grid-template-columns: 1fr; }

.picto { width: 72px; height: 72px; margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; font-weight: 700; font-size: 1.25rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Chiffres ---------- */

.stats-band { margin-top: -64px; position: relative; z-index: 2; padding-top: 0; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.stat img { width: 54px; height: 54px; flex: none; }
.stat .num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.stat .lbl { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Tuiles matière ---------- */

.subjects {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.subject {
  --c: var(--fr);
  --l: var(--fr-l);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 60%);
  background-color: var(--c);
  border-radius: 26px;
  box-shadow: 0 7px 0 var(--l), 0 16px 28px rgba(45, 36, 56, 0.14);
  aspect-ratio: 1 / 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  transition: transform 0.15s ease;
}
.subject:hover { transform: translateY(-4px) rotate(-1deg); }
.subject img { width: 44%; max-width: 110px; aspect-ratio: 1; }
.subject span {
  background: #fff;
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.subject.ma { --c: var(--ma); --l: var(--ma-l); }
.subject.sc { --c: var(--sc); --l: var(--sc-l); }
.subject.hg { --c: var(--hg); --l: var(--hg-l); }
.subject.emc { --c: var(--emc); --l: var(--emc-l); }
.subject.an { --c: var(--an); --l: var(--an-l); }

/* ---------- Étapes ---------- */

.steps .card { position: relative; padding-top: 30px; }
.step-num {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--yellow-ledge);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Rangs : l'app grandit avec l'enfant ---------- */

.ranks-section { background: var(--cream-2); }
.ranks {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: rank;
}
.rank {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px 8px 18px;
  text-align: center;
}
.rank img { width: 74%; max-width: 96px; margin: 0 auto 6px; aspect-ratio: 1; }
.rank .lvl {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.rank strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
}
.rank small { display: block; color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-top: 4px; }
.ranks-note { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 28px auto 0; }

/* ---------- Motivation / Gribouille ---------- */

.boss {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: linear-gradient(160deg, #f1eeff 0%, #e2d8f0 100%);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.boss-duo { display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.boss-duo img { width: 46%; max-width: 190px; }
.boss-duo img + img { width: 40%; }
.boss h3 { font-size: 1.5rem; font-weight: 700; }
.boss p { color: var(--ink-soft); }
.rewards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.reward {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  box-shadow: 0 3px 0 rgba(45, 36, 56, 0.07);
}
.reward img { width: 34px; height: 34px; }

/* ---------- Suivi parent (charte parent : crème + bleu) ---------- */

.parent-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.parent-grid .shot { width: 100%; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 22px 30px rgba(45, 36, 56, 0.16)); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 3px 0 var(--blue-ledge);
}
.muted { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Galerie d'écrans ---------- */

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: end;
}
.screen-card { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.screen-card img {
  height: 440px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(31, 95, 166, 0.2));
}
.screen-card figcaption {
  margin-top: 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------- Univers ---------- */

.themes { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.theme {
  --t1: #eaf4ff;
  --t2: #cfe6fb;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.theme img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150%;
  max-width: none;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}
.theme:hover img { transform: translateX(-50%) scale(1.05); }
.theme span {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 rgba(45, 36, 56, 0.08);
}
.theme.ocean { --t1: #eaf4ff; --t2: #cfe6fb; }
.theme.space { --t1: #f1eeff; --t2: #e2d8f0; }
.theme.garden { --t1: #eff7e5; --t2: #daefdb; }
.theme.dino { --t1: #fff7dc; --t2: #ffebcc; }
.theme.castle { --t1: #f1e1f4; --t2: #e2d8f0; }
.theme.unicorn { --t1: #fbdfe9; --t2: #f6a9c3; }

/* ---------- Prix ---------- */

.plans { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: stretch; }
.plan { position: relative; text-align: center; padding: 30px 26px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 2px; }
.plan.feature {
  box-shadow: 0 0 0 3px var(--yellow), 0 9px 0 var(--yellow-ledge), 0 22px 44px rgba(217, 168, 0, 0.2);
}
.plan .badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--yellow-ledge);
}
.plan .price {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
  margin: 8px 0 2px;
}
.plan .per { color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.plan ul { text-align: left; list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--sc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.legal-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 30px;
}

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

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--cream-2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; background: var(--yellow); }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Bandeau final ---------- */

.final { text-align: center; padding: 64px 0 clamp(180px, 22vw, 320px); }
.final .final-mascot { width: 170px; margin: 0 auto 8px; filter: drop-shadow(0 10px 14px rgba(31, 95, 166, 0.25)); }
.final h2 { font-size: 2.2rem; }
.final p { color: var(--ink-soft); }

/* ---------- Pages de texte ---------- */

.doc { padding: 40px 0 24px; }
.doc h1 { font-size: 2.1rem; }
.doc h2 { margin-top: 34px; font-size: 1.4rem; }
.doc h3 { margin-top: 22px; font-size: 1.1rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}
.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--cream-2); font-family: 'Fredoka', sans-serif; font-weight: 600; }
.doc .updated { color: var(--ink-soft); font-size: 0.95rem; }
.callout {
  background: var(--surface);
  border-left: 6px solid var(--blue);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}

/* ---------- Pied de page ---------- */

footer {
  background: var(--ink);
  color: #e8e2f0;
  padding: 40px 0;
  font-size: 0.95rem;
}
footer a { color: #ffe27a; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}
footer .copy { color: #c4bcd0; }

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

@media (max-width: 480px) {
  .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { flex-direction: column; text-align: center; gap: 6px; }
}

@media (min-width: 700px) {
  body { font-size: 18px; }
  h1 { font-size: 2.8rem; }
  .hero h1 { font-size: 3.1rem; }
  h2 { font-size: 2.3rem; }
  section { padding: 76px 0; }
  .hero { padding: 56px 0 clamp(170px, 16vw, 240px); }
  .stats-band { margin-top: -96px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .subject { aspect-ratio: 1 / 0.72; }
  .subject span { font-size: 1.2rem; }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .boss { grid-template-columns: 0.8fr 1.2fr; padding: 40px 48px; }
  .parent-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .final h2 { font-size: 2.8rem; }
}

@media (max-width: 900px) {
  .screens-grid {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    margin: 0 -20px;
    padding: 6px 20px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .screens-grid::-webkit-scrollbar { display: none; }
  .screen-card { flex: 0 0 auto; scroll-snap-align: center; }
  .screen-card img { height: 380px; }
  .screen-card figcaption { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .subject, .theme img { transition: none; }
  .btn:hover, .btn:active, .subject:hover, .theme:hover img { transform: none; }
  .theme:hover img { transform: translateX(-50%); }
}

/* En-tête d'étape : chiffre et titre alignés */
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step-head h3 { margin: 0; }

/* ---------- Contact ---------- */
.contact-lead { max-width: 540px; }
.contact-card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin: 22px 0;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink); }
.form-field input, .form-field textarea {
  font: inherit; padding: 13px 15px; border: 2px solid var(--border); border-radius: 16px;
  background: #fffcf8; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a7f95; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(55, 138, 221, .18);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

.contact-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 18px; }
@media (max-width: 640px) { .contact-alt { grid-template-columns: 1fr; } }
.alt-card {
  background: var(--cream-2); border-radius: 20px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px; line-height: 1.45;
}
.alt-card .alt-icon { margin-bottom: 2px; }
.contact-legal { font-size: .88rem; color: var(--ink-soft); max-width: 620px; }

/* Accessibilité & navigation par ancres */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
section[id], h2[id] { scroll-margin-top: 84px; }

/* Menu mobile (CSS pur, sans JS) */
.mobnav { display: none; position: relative; }
.mobnav summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  padding: 8px; border-radius: 14px; color: var(--ink); }
.mobnav summary::-webkit-details-marker { display: none; }
.mobnav[open] summary { background: var(--cream-2); }
.mobnav-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
  background: var(--surface); border-radius: 22px; padding: 10px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; min-width: 200px; }
.mobnav-panel a { padding: 12px 16px; border-radius: 14px; font-family: 'Fredoka', sans-serif; font-weight: 600;
  color: var(--ink); text-decoration: none; }
.mobnav-panel a:hover, .mobnav-panel a:active { background: var(--cream-2); }
@media (max-width: 640px) {
  .topnav { display: none; }
  .mobnav { display: block; }
  .topbar .wrap { gap: 10px; }
  .topbar .brand { font-size: 1.1rem; }
}

/* ---------- Tarifs, offre du 25/09/2026 ---------- */

.family-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto 34px;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.family-strip img { flex: 0 0 auto; }
.family-strip p { margin: 0; color: var(--ink-soft); }
.family-strip strong { color: var(--ink); }
.plan .saving {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.plan.free li::before { background-color: var(--ma); }
@media (min-width: 700px) {
  .plans.plans-3 { grid-template-columns: repeat(2, minmax(0, 380px)); }
}
@media (min-width: 1040px) {
  .plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 340px)); }
}
