/* ===========================================================
   EduSpeed — page d'accueil calquée sur parkeur.app (2026-10-09)
   Fond pointillé, héros dans une grande boîte arrondie
   avec la maquette de l'appli, matières en ruban, méthode à onglets, chiffres en grand,
   panneaux colorés, étapes en « parcours », boutons en pilule.
   La charte ne bouge pas : Forêt & Or, Fraunces + Hanken Grotesk, même logo.
   Chargée APRÈS les styles de la page : elle ne fait que les surcharger.
   =========================================================== */

:root {
  --tint-forest: #dcece3;
  --tint-gold:   #fbeac0;
  --tint-clay:   #f6e0d5;
  --tint-lagoon: #d9ecf2;
  --soft:        #f1ead9;
  --grad-badge:  linear-gradient(90deg, #f6d987 0%, #f3e7c4 45%, #cfe8da 100%);
}

/* — Fond : papier crème semé d'un fin pointillé — */
body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(24,34,27,.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
html[data-theme="sombre"] body { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); }

/* — En-tête : posé sur le fond, sans filet — */
header.top { background: rgba(246,239,224,.82); border-bottom: 0; }
header.top .nav { height: 76px; }

/* — Boutons : pilules — */
.btn { border-radius: 999px; padding: 16px 30px; font-weight: 700; letter-spacing: -.005em; }
.btn-primary {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-d) 100%);
  box-shadow: 0 10px 24px rgba(12,74,55,.22);
}
.btn-primary:hover { background: var(--forest-d); box-shadow: 0 14px 30px rgba(12,74,55,.3); }
.btn-ghost { border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--forest); }

/* — Badge en dégradé doux (or → vert), comme le « Révision IA » de Parkeur — */
.badge-grad { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; background: var(--grad-badge); color: var(--forest-d);
  font-weight: 700; font-size: .92rem; }
.eyebrow, .pill-eyebrow, .gift-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--grad-badge); color: var(--forest-d);
  font-weight: 700; font-size: .92rem; letter-spacing: 0; text-transform: none; box-shadow: none; border: 0;
}
.eyebrow::before { content: "✦"; font-size: .8em; }
.pill-eyebrow .dot { display: none; }

/* — Sections : beaucoup d'air, titres centrés et serrés — */
section.block, section.block[style*="padding-top"] { padding: 120px 0 0 !important; }
section.block > .wrap { text-align: center; }
section.block > .wrap > .sub { margin-left: auto; margin-right: auto; }
h2.title {
  font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 600; line-height: 1.05;
  letter-spacing: -.035em; margin-top: 18px; max-width: 860px; margin-left: auto; margin-right: auto;
}
.sub { font-size: 1.12rem; line-height: 1.55; }
section.block .grid, section.block details, section.block .app-band,
section.block .edu-band, section.block #tm-liste, section.block .eps-band { text-align: left; }

/* — Héros : une grande boîte arrondie, dégradé doux, la maquette coupée en bas — */
.hero { overflow: visible; }
.hero-boite {
  position: relative; margin: 8px 20px 0; border-radius: 40px; overflow: hidden;
  padding: 110px 20px 0; text-align: center;
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(226,163,19,.42), transparent 72%),
    radial-gradient(55% 60% at 100% 100%, rgba(28,111,136,.26), transparent 72%),
    linear-gradient(180deg, rgba(255,253,247,.9) 0%, rgba(255,253,247,.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(227,214,186,.7);
}
.hero-text { max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-weight: 600; color: var(--ink-soft); font-size: 1rem; }
.hero h1 {
  font-size: clamp(2.5rem, 8.2vw, 5.4rem); line-height: .98; letter-spacing: -.04em;
  font-weight: 800; margin-top: 26px; color: var(--ink);
}
.hero p.lead { margin: 30px auto 0; font-size: 1.2rem; max-width: 640px; color: var(--ink); }
.cta-row { justify-content: center; margin-top: 40px; }
.apk-lien { margin-top: 18px; }
.hero-art { position: relative; max-width: 1060px; margin: 64px auto 0; display: block; }

.maquette { background: #f4f1ea; border-radius: 28px 28px 0 0; padding: 0 18px;
  box-shadow: 0 -2px 0 rgba(255,255,255,.8) inset, 0 30px 70px -20px rgba(24,34,27,.35);
  text-align: left; font-size: 14px; color: var(--ink); height: 470px; overflow: hidden;
  outline: 10px solid rgba(255,253,247,.65); }
.mq-barre { display: flex; justify-content: space-between; align-items: center; padding: 20px 14px; }
.mq-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif);
  font-weight: 900; font-size: 1.15rem; color: var(--forest); }
.mq-logo b { color: var(--gold-d); font-style: italic; font-weight: 600; }
.mq-droite { display: flex; gap: 18px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.mq-corps { display: grid; grid-template-columns: 200px 1fr; gap: 14px; }
.mq-menu { background: var(--card); border-radius: 18px; padding: 16px 12px; display: flex;
  flex-direction: column; gap: 4px; min-height: 420px; }
.mq-menu span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  color: var(--ink-soft); font-weight: 600; font-size: .86rem; }
.mq-menu span.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.mq-menu span.bas { margin-top: auto; }
.mq-menu i { width: 17px; height: 17px; display: inline-grid; }
.mq-menu i .svg-ico { width: 100%; height: 100%; }
.mq-main { background: var(--card); border-radius: 18px 18px 0 0; padding: 26px 30px; }
.mq-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mq-tete b { font-size: 1.1rem; font-weight: 600; }
.mq-btn { background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: .78rem; font-weight: 700; }
.mq-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mq-carte { position: relative; border-radius: 14px; padding: 14px 14px 16px; min-height: 108px;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--c-ink); background: var(--c-bg); }
.mq-carte b { font-size: .98rem; color: var(--ink); margin-top: 22px; }
.mq-carte small { font-size: .74rem; color: var(--c-ink); }
.mq-ic { position: absolute; top: 14px; left: 14px; width: 28px; height: 28px; border-radius: 9px;
  background: rgba(255,255,255,.55); display: grid; place-items: center; color: var(--c-ink); }
.mq-ic .svg-ico { width: 16px; height: 16px; }
.mq-pc { position: absolute; top: 14px; right: 12px; font-size: .64rem; font-weight: 700;
  background: rgba(255,255,255,.75); color: var(--ink); border-radius: 999px; padding: 2px 8px; }
.mq-carte[data-m="maths"]    { --c-bg: linear-gradient(140deg, #cbc7f3, #e8e7fb); --c-ink: #312a96; }
.mq-carte[data-m="physique"] { --c-bg: linear-gradient(140deg, #c9cef0, #e7e9f7); --c-ink: #2c3b80; }
.mq-carte[data-m="eco"]      { --c-bg: linear-gradient(140deg, #b5dec9, #e4f3ec); --c-ink: #0a5c3e; }
.mq-carte[data-m="his"]      { --c-bg: linear-gradient(140deg, #ebc4b0, #f7e7df); --c-ink: #9a3f1f; }
.mq-carte[data-m="svt"]      { --c-bg: linear-gradient(140deg, #b3e0da, #e2f3f1); --c-ink: #0b6960; }
.mq-carte[data-m="philo"]    { --c-bg: linear-gradient(140deg, #eebdd0, #f7e3ea); --c-ink: #7a2240; }
.float { z-index: 2; }
.f-mm { right: -64px; top: 12%; }
.seal { left: -52px; top: 46%; bottom: auto; width: 104px; height: 104px; }

@media (max-width: 760px) {
  .hero-boite { margin: 6px 12px 0; border-radius: 28px; padding: 56px 16px 0; }
  .hero p.lead { font-size: 1.08rem; margin-top: 22px; }
  .cta-row { margin-top: 30px; }
  .hero-art { margin-top: 44px; }
  .maquette { height: 330px; padding: 0 10px; border-radius: 20px 20px 0 0; outline-width: 6px; }
  .mq-barre { padding: 14px 6px; }
  .mq-droite { display: none; }
  .mq-corps { grid-template-columns: 1fr; }
  .mq-menu { display: none; }
  .mq-main { padding: 16px 14px; }
  .mq-grille { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .mq-carte { min-height: 92px; padding: 12px; }
  .f-mm { right: -4px; top: -18px; }
  .seal { left: -8px; top: -52px; width: 78px; height: 78px; }
}

/* — Matières : titre seul, ruban de pilules qui défile, bords fondus — */
.bloc-matieres h2.title { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.defile { margin-top: 36px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.defile-piste { display: flex; gap: 12px; width: max-content; padding: 4px 0;
  animation: defiler 55s linear infinite; }
@keyframes defiler { to { transform: translateX(-50%); } }
.defile:hover .defile-piste { animation-play-state: paused; }
.tag { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  padding: 13px 22px; font-size: 1.05rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.tag [data-ico] { color: var(--forest); }
.tag:hover { transform: none; box-shadow: inset 0 0 0 1.5px var(--gold); }

/* — Fiches gratuites — */
.freebie { background: transparent; }
.freebie .wrap { padding-top: 120px; padding-bottom: 0; }
.freebie-head { flex-direction: column; align-items: center; text-align: center; }
.freebie-head .sub { margin-left: auto; margin-right: auto; }
.free-row { border: 0; border-left: 0; background: var(--card); border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(227,214,186,.7); }
.free-row:hover { box-shadow: 0 16px 32px -12px rgba(24,34,27,.18), inset 0 0 0 1px var(--m-line, var(--line-2)); }

/* — Bandeau EPS — */
.eps-band { border-radius: 32px !important; }
.eps-band + * { margin-top: 0; }

/* — Méthode : grande boîte beige, onglets, panneau avec un exemple — */
.methode { background: rgba(241,234,217,.92); border-radius: 40px; padding: 64px 40px 40px; }
.methode .badge-grad { margin-bottom: 4px; }
.methode .sub { margin-left: auto; margin-right: auto; }
.onglets { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; text-align: left; }
.onglets button { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer;
  padding: 22px 24px 26px; border-radius: 26px 26px 0 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.onglets button b { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.onglets button span { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.onglets button[aria-selected="true"] { background: var(--paper-2); }
.onglets button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.methode .rev-band { margin-top: 0; text-align: left; border-radius: 0 0 30px 30px;
  background: var(--paper-2); color: var(--ink); box-shadow: none; padding: 52px 48px; }
.methode .onglet-panneau[hidden] { display: none; }
#op-cartes, #op-rappel { border-radius: 30px; }
#op-quiz { border-radius: 0 30px 30px 30px; }
#op-rappel { border-radius: 30px 0 30px 30px; }
.methode .rev-band h3 { color: var(--ink); font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -.03em; line-height: 1.08; }
.methode .rev-band p { color: var(--ink-soft); font-size: 1.08rem; }
.methode .rev-go { background: linear-gradient(135deg, var(--forest), var(--forest-d)); color: #fdf6e3;
  border-radius: 999px; padding: 16px 28px; margin-top: 30px; }
.rev-demo { transform: rotate(-1.5deg); border-radius: 22px; box-shadow: 0 24px 50px -10px rgba(24,34,27,.28); }
.carte-verso { border-radius: 14px; background: var(--forest); color: #fdf6e3; padding: 16px; line-height: 1.45; }
.carte-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.carte-notes span { text-align: center; font-size: .8rem; font-weight: 700; padding: 9px 4px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink-soft); }
.carte-notes span.on { background: var(--gold); color: var(--forest-d); }
.rappel-demo ol { margin-top: 14px; }
.rappel-demo li { justify-content: flex-start; }
.rappel-demo li b { width: 28px; }
.rappel-demo li b .svg-ico { width: 15px; height: 15px; }
.rappel-demo li em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--ink-soft); }
.rappel-demo li.ok em { color: var(--gold); }
.rappel-demo li.ok::after { content: none; }
@media (max-width: 760px) {
  .methode { padding: 44px 14px 14px; border-radius: 28px; }
  .onglets { grid-template-columns: 1fr; gap: 6px; margin-top: 34px; }
  .onglets button { border-radius: 18px; padding: 14px 16px; }
  .onglets button span { display: none; }
  .methode .rev-band, #op-quiz, #op-cartes, #op-rappel { border-radius: 22px; margin-top: 10px; padding: 28px 18px; }
}

/* — Chiffres : titre à gauche, quatre grands nombres — */
section.block.bloc-chiffres > .wrap { text-align: left; }
.bloc-chiffres h2.title { margin-left: 0; max-width: 820px; font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.chiffres { display: grid; grid-template-columns: 1fr; gap: 44px 60px; margin-top: 64px; }
@media (min-width: 760px) { .chiffres { grid-template-columns: 1fr 1fr; } }
.chiffres p:first-child { display: flex; align-items: baseline; gap: 10px; }
.chiffres b { font-family: var(--serif); font-weight: 800; font-size: clamp(3.2rem, 8vw, 4.6rem);
  line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.chiffres span { font-size: 1.4rem; font-weight: 700; }
.chiffres > div:nth-child(1) span { color: var(--forest); }
.chiffres > div:nth-child(2) span { color: var(--gold-d); }
.chiffres > div:nth-child(3) span { color: var(--lagoon); }
.chiffres > div:nth-child(4) span { color: var(--clay); }
.chiffres p + p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 14px; max-width: 460px; }
.chiffres-note { margin-top: 48px; color: var(--ink-soft); font-size: .95rem; }

/* — L'application : texte à gauche, captures dans un bloc teinté à droite — */
.app-band { background: transparent; border: 0; box-shadow: none; padding: 0 !important; margin-top: 56px; gap: 48px; }
.app-band h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -.035em; line-height: 1.05; }
.app-band p { font-size: 1.1rem; }
.app-shots { background: var(--tint-forest); border-radius: 36px; padding: 40px 20px 0; overflow: hidden;
  align-items: flex-start; }
.app-shots img { border: 0; border-radius: 22px 22px 0 0; height: 320px; box-shadow: 0 20px 40px -10px rgba(24,34,27,.3); }
.app-shots img:last-child { transform: translateY(28px); }

/* — Pourquoi : trois grands panneaux colorés empilés — */
.panneaux { display: grid; gap: 22px; margin-top: 64px; text-align: left; }
.panneaux .card { display: grid; grid-template-columns: 1fr; gap: 0; border: 0; box-shadow: none;
  border-radius: 40px; padding: 56px 48px; min-height: 280px; align-content: center; }
.panneaux .card:nth-child(1) { background: var(--tint-forest); }
.panneaux .card:nth-child(2) { background: var(--tint-gold); }
.panneaux .card:nth-child(3) { background: var(--tint-lagoon); }
.panneaux .card .ic { width: 88px; height: 88px; border-radius: 24px; background: #fffdf7; color: var(--forest);
  box-shadow: 0 10px 24px -8px rgba(24,34,27,.18); }
.panneaux .card .ic .svg-ico { width: 40px; height: 40px; }
.panneaux .card h3 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.08; margin-top: 32px; max-width: 560px; }
.panneaux .card p { font-size: 1.1rem; color: var(--ink-soft); margin-top: 14px; max-width: 560px; }
@media (min-width: 900px) {
  .panneaux .card { grid-template-columns: 1fr 200px; column-gap: 60px; }
  .panneaux .card .ic { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end;
    width: 180px; height: 180px; border-radius: 44px; }
  .panneaux .card .ic .svg-ico { width: 84px; height: 84px; stroke-width: 1.3; }
  .panneaux .card h3 { margin-top: 0; grid-column: 1; }
  .panneaux .card p { grid-column: 1; }
}
@media (max-width: 760px) { .panneaux .card { padding: 36px 26px; border-radius: 28px; min-height: 0; } }

/* — Étapes : disposition « parcours » — */
.parcours { display: grid; gap: 40px; text-align: left; }
.parcours-texte h2.title { margin-left: 0; margin-top: 0; }
.parcours-texte .sub { margin-left: 0; }
.parcours-texte .btn { margin-top: 32px; }
.parcours .steps { display: grid; gap: 22px; margin: 0; }
.parcours .step { display: flex; flex-direction: row; align-items: center; gap: 26px; margin: 0;
  padding: 30px 32px; border: 0; border-radius: 28px; background: var(--soft); box-shadow: none; }
.parcours .step .n { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.2rem; line-height: 1; background: var(--gold); color: var(--forest-d);
  box-shadow: 0 0 0 10px #fffdf7; }
.parcours .step:nth-child(2) .n { background: var(--tint-lagoon); color: var(--lagoon); }
.parcours .step:nth-child(3) .n { background: var(--tint-forest); color: var(--forest); }
.parcours .step h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.parcours .step p { font-size: 1.05rem; color: var(--ink-soft); margin-top: 4px; }
@media (min-width: 900px) {
  .parcours { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
  .parcours-texte { position: sticky; top: 110px; }
}
@media (max-width: 760px) {
  .parcours .step { padding: 22px 20px; gap: 18px; }
  .parcours .step .n { width: 58px; height: 58px; font-size: 1.6rem; box-shadow: 0 0 0 6px #fffdf7; }
}

/* — Grands panneaux — */
.edu-band { border-radius: 40px; border: 0; box-shadow: none; }
.rev-band { border-radius: 36px; border: 0; }

/* — Prix : panneau vert clair en dégradé, comme le bloc tarifs de Parkeur — */
.price-band { border-radius: 40px; border: 0; text-align: center; color: var(--ink);
  background: linear-gradient(120deg, #e4f1ea 0%, #bfe1cd 100%) !important; box-shadow: none; padding: 72px 24px; }
.price-band .kicker { color: var(--forest); }
.price-band .big { color: var(--ink); letter-spacing: -.04em; }
.price-band .big small { color: var(--ink-soft); letter-spacing: 0; }
.price-band .btn-primary { background: linear-gradient(135deg, var(--forest), var(--forest-d)); color: #fdf6e3; }
.price-band p { color: var(--ink-soft) !important; }

/* — Questions fréquentes — */
details { border: 0 !important; border-radius: 22px !important; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); max-width: 860px; margin-left: auto !important; margin-right: auto !important; }

/* — Cartes restantes (témoignages) — */
.card { border: 0; border-radius: 28px; box-shadow: none; }

/* — Pied de page — */
footer.bottom { margin-top: 140px; }
footer.bottom .btn, footer.bottom button { border-radius: 999px; }

@media (max-width: 640px) {
  section.block, section.block[style*="padding-top"] { padding-top: 84px !important; }
  .freebie .wrap { padding-top: 84px; }
}

/* — Mouvement réduit : rien ne défile, le ruban passe à la ligne — */
@media (prefers-reduced-motion: reduce) {
  .defile-piste { animation: none; }
  .defile { -webkit-mask-image: none; mask-image: none; }
  .defile-piste { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 20px; }
  .defile-piste [aria-hidden="true"] { display: none; }
  .rev-demo { transform: none; }
}
