/* ============ Les Admissibles — charte graphique ============
   Modifie les couleurs ici : tout le site suit ces variables. */
:root {
  --green-900: #163222;
  --green-800: #1f4030;      /* couleur principale (boutons, titres) */
  --green-700: #2a5240;
  --green-600: #3c6b55;
  --green-100: #e3ece5;      /* fonds de sections */
  --green-50: #f1f5f1;       /* fond de page */
  --ink: #18261d;
  --muted: #4d5c52;
  --line: #d6e0d8;
  --white: #ffffff;
  --danger: #b4372f;
  --warn: #a8701a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(22, 50, 34, .22);
  --font-title: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); line-height: 1.6; font-size: 16px;
  background-color: var(--green-50);
  background-image: radial-gradient(rgba(31, 64, 48, .07) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--green-800); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--green-800); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1280px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 48px; }
.section { padding: 56px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--green-800); }
.logo-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--green-800); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 25px; height: 25px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.logo-text small { font-family: var(--font-body); font-size: .5rem; letter-spacing: .22em; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ---------- En-tête ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 500; padding: 7px 11px; border-radius: 7px; transition: background .15s; }
.nav a:hover { background: var(--green-50); }
.nav a.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.nav form { margin: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--green-800); touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative; z-index: 2; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .9rem var(--font-title); letter-spacing: -.01em;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-900); box-shadow: 0 8px 20px -10px rgba(22, 50, 34, .6); }
.btn-light { background: var(--white); color: var(--green-800); }
.btn-light:hover { background: var(--green-50); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-800); }
.btn-ghost:hover { background: var(--green-100); }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.nav .btn { padding: 8px 14px; font-size: .82rem; color: var(--white); }
.link-arrow { font-weight: 600; font-size: .9rem; color: var(--green-800); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--green-600); }

/* ---------- Accueil ---------- */
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 44ch; }
.hero-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.year-picker { background: var(--green-800); color: var(--white); border-radius: var(--radius); padding: 28px 26px 22px; box-shadow: var(--shadow); }
.year-picker h2 { color: var(--white); font-size: 1.15rem; margin-bottom: 16px; }
.year-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.year-option { border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 10px; padding: 12px 6px 10px; text-align: center; cursor: pointer; color: var(--white); background: transparent; transition: background .15s, border-color .15s; font-family: inherit; }
.year-option strong { display: block; font: 800 1.7rem/1.1 var(--font-title); letter-spacing: -.03em; }
.year-option span { font-size: .68rem; font-weight: 500; }
.year-option:hover { border-color: rgba(255, 255, 255, .6); }
.year-option[aria-pressed="true"] { background: var(--green-50); color: var(--green-800); border-color: var(--green-50); }
.year-picker .btn { margin-top: 16px; width: 100%; }
.year-picker .fine { text-align: center; font-size: .72rem; margin: 14px 0 0; opacity: .9; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 4px; }
.feature { border-top: 1.5px solid var(--green-800); padding-top: 16px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

.demo-band { background: var(--green-100); border-radius: var(--radius); padding: 48px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sheet { background: var(--white); border-radius: 12px; padding: 20px 18px; box-shadow: var(--shadow); max-width: 300px; margin-left: auto; }
.sheet .chap { font-size: .62rem; letter-spacing: .15em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.sheet h4 { font-size: 1.1rem; margin: 2px 0 12px; }
.sheet .def { background: var(--green-100); border-radius: 7px; padding: 10px 11px; font-size: .7rem; font-weight: 600; }
.sheet .def i { display: block; height: 4px; border-radius: 4px; background: #cad8cd; margin-top: 8px; }
.sheet .def i + i { width: 70%; margin-top: 5px; }
.sheet .formula { background: var(--green-50); text-align: center; font-family: ui-monospace, monospace; font-size: .8rem; padding: 8px; border-radius: 7px; margin: 10px 0; letter-spacing: .1em; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .68rem; border-radius: 6px; overflow: hidden; }
.sheet th { background: var(--green-800); color: var(--white); text-align: left; padding: 6px 9px; }
.sheet td { padding: 6px 9px; border-bottom: 1px solid var(--green-100); }
.sheet tr:nth-child(odd) td { background: var(--green-50); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: "0" counter(s); font: 800 .85rem var(--font-title); color: var(--green-600); display: block; margin-bottom: 8px; }
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 26px; }
.stats-row strong { font: 800 1.6rem var(--font-title); color: var(--green-800); display: block; letter-spacing: -.03em; }
.stats-row span { font-size: .8rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid, .demo-band { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  .demo-band { padding: 32px 22px; }
  .sheet { margin: 0 auto; }
}

/* ---------- Grilles génériques ---------- */
.page-head { padding: 52px 0 18px; }
.page-head p { color: var(--muted); max-width: 60ch; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.tabs { display: inline-flex; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 4px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 7px 15px; border-radius: 8px; font-weight: 600; font-size: .86rem; color: var(--muted); }
.tabs a.active { background: var(--green-800); color: var(--white); }

/* ---------- Packs ---------- */
.pack-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.pack-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pack-card.featured { border: 2px solid var(--green-800); }
.pack-card .ribbon { position: absolute; top: -12px; left: 22px; background: var(--green-800); color: var(--white); font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--green-100); color: var(--green-800); letter-spacing: .03em; }
.badge-dark { background: var(--green-800); color: var(--white); }
.badge-warn { background: #f7ead3; color: var(--warn); }
.badge-danger { background: #f6dfdd; color: var(--danger); }
.price { font: 800 2rem var(--font-title); color: var(--green-800); letter-spacing: -.03em; margin: 10px 0 2px; }
.price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.check-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 7px; font-size: .9rem; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231f4030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.pack-card .btn { margin-top: auto; }
.pack-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.buy-box { position: sticky; top: 100px; }
@media (max-width: 860px) { .pack-layout { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* ---------- Matières & chapitres ---------- */
.subject-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.subject-card:hover { border-color: var(--green-600); transform: translateY(-2px); }
.subject-card h3 { margin: 10px 0 4px; }
.progress { height: 6px; background: var(--green-100); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; background: var(--green-700); border-radius: 6px; }
.chapter { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.chapter-head { display: flex; gap: 14px; align-items: center; padding: 18px 22px; }
.chapter-num { font: 800 .75rem var(--font-title); background: var(--green-800); color: var(--white); border-radius: 8px; padding: 6px 9px; flex: none; }
.chapter-head h3 { margin: 0; font-size: 1.05rem; }
.res-list { border-top: 1px solid var(--line); }
.res-item { display: flex; align-items: center; gap: 14px; padding: 13px 22px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--green-100); }
.res-item:last-child { border-bottom: 0; }
a.res-item:hover { background: var(--green-50); }
.res-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--green-100); color: var(--green-800); font-size: .65rem; font-weight: 800; font-family: var(--font-title); }
.res-icon.qcm { background: var(--green-800); color: var(--white); }
.res-item .grow { flex: 1; min-width: 0; }
.res-item .title { font-weight: 600; font-size: .92rem; }
.res-item .meta { font-size: .76rem; color: var(--muted); }
.res-item.locked { opacity: .65; }
.seen { color: var(--green-600); font-size: .75rem; font-weight: 600; }

/* ---------- Lecteur ---------- */
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0; }
.doc-viewer { background: #e6ece7; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.doc-tools { display: flex; align-items: center; gap: 8px; justify-content: center; padding-bottom: 12px; position: sticky; top: 78px; z-index: 5; background: #e6ece7; }
.doc-pages { overflow-x: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 300px; }
.doc-page { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); overflow: hidden; flex: none; max-width: none; }
.doc-page canvas { display: block; }
.doc-html { width: min(820px, 100%); padding: 48px 56px; line-height: 1.6; }
.doc-html table { border-collapse: collapse; width: 100%; } .doc-html td, .doc-html th { border: 1px solid var(--line); padding: 6px 8px; }
.doc-pages img, .doc-pages video { max-width: 100%; display: block; }
.doc-pages > img, .doc-pages > video { border-radius: 8px; }
.doc-mark { position: absolute; inset: -50%; pointer-events: none; color: rgba(31, 64, 48, .13); font: 700 18px/80px var(--font-body); transform: rotate(-28deg); word-spacing: 40px; overflow: hidden; white-space: normal; z-index: 2; }
.doc-viewer { position: relative; }
/* Lecteur PDF (style lecteur de navigateur, gris foncé comme Edge) */
.doc-viewer.is-pdf { padding: 0; overflow: hidden; background: #525659; border-color: #3b3e40; }
.pdf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: #323639; color: #f1f1f1; }
.pdf-group { display: flex; align-items: center; gap: 6px; }
.pdf-btn { background: transparent; border: 0; color: #f1f1f1; width: 32px; height: 32px; border-radius: 6px; font-size: 1.15rem; cursor: pointer; line-height: 1; }
.pdf-btn:hover { background: rgba(255, 255, 255, .12); }
.pdf-page { width: 54px !important; padding: 4px 6px !important; text-align: center; background: #1f2224 !important; color: #fff !important; border: 1px solid #5a5e61 !important; border-radius: 5px !important; font-size: .85rem !important; }
.pdf-count { font-size: .85rem; color: #d0d0d0; }
.pdf-zoom { width: auto !important; padding: 4px 8px !important; background: #1f2224 !important; color: #fff !important; border: 1px solid #5a5e61 !important; border-radius: 5px !important; font-size: .85rem !important; }
.pdf-shell { position: relative; height: calc(100vh - 220px); min-height: 520px; }
.doc-viewer:fullscreen .pdf-shell { height: calc(100vh - 50px); }
.pdf-container { position: absolute; inset: 0; overflow: auto; }
.pdf-container .pdfViewer .page { margin: 12px auto; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); position: relative; }
.pdf-loading { position: absolute; top: 40%; left: 0; right: 0; color: #e0e0e0 !important; }
.pdf-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 5; overflow: hidden; }
.pdf-mark span { transform: rotate(-30deg); color: rgba(31, 64, 48, .16); font-family: var(--font-title); font-weight: 800; white-space: nowrap; letter-spacing: .02em; }
.doc-viewer, .doc-viewer * { -webkit-user-select: none; user-select: none; }
@media (max-width: 560px) { .pdf-toolbar { justify-content: center; } .pdf-shell { height: calc(100vh - 170px); } }
.doc-shield { display: none; position: absolute; inset: 0; z-index: 20; background: #000; border-radius: var(--radius); color: #fff; text-align: center; }
.doc-shield > div { position: sticky; top: 30vh; padding: 40px 20px; }
.doc-shield p { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.doc-viewer.shielded .doc-shield { display: block; }
.doc-viewer.shielded .doc-pages, .doc-viewer.shielded .doc-tools { visibility: hidden; }
.study-time { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px; font-size: .92rem; color: var(--green-800); }
.row-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--green-100); }
.kv-site { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: .9rem; margin: 0; }
.kv-site dt { color: var(--muted); } .kv-site dd { margin: 0; font-weight: 500; }
.copy-line { display: flex; gap: 8px; max-width: 460px; } .copy-line input { font-size: .82rem; padding: 7px 10px; } .copy-line .btn { white-space: nowrap; flex: none; }
/* Matières : les 3 formats de chaque chapitre */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.format { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.format strong { display: block; font-family: var(--font-title); color: var(--green-800); }
.format span:not(.res-icon) { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }

/* Vidéo de présentation (YouTube chargé seulement au clic : rapide et sans cookie avant consentement) */
.presentation { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.presentation.compact { grid-template-columns: 1fr; padding: 0; border: 0; background: none; }
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0f1d15 center / cover no-repeat; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.yt-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.yt-lite .yt-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s; }
.yt-lite:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt-lite .yt-label { position: absolute; z-index: 2; left: 14px; bottom: 12px; color: #fff; font: 700 .85rem var(--font-title); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
@media (max-width: 760px) { .presentation { grid-template-columns: 1fr; } }

/* Cours particuliers : parcours de réservation */
.how { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 10px; flex-wrap: wrap; counter-reset: h; }
.how li { counter-increment: h; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 40px; padding: 8px 16px 8px 8px; font-size: .88rem; }
.how li::before { content: counter(h); width: 28px; height: 28px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font: 800 .85rem var(--font-title); }
.how li span { color: var(--muted); }
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.booking-summary { position: sticky; top: 100px; }
.step-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-head h2 { font-size: 1.25rem; margin: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font: 800 .95rem var(--font-title); flex: none; }
.step-block.is-locked .step-body { display: none; }
.step-block.is-locked .step-num { background: var(--line); color: var(--muted); }
.step-block.is-locked h2 { color: var(--muted); }
.step-block:not(.is-locked) .step-hint { display: none; }
.step-hint { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 30px; padding: 6px 14px; font: 600 .84rem var(--font-body); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--green-600); }
.chip.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.small-chips { margin: 0 0 8px; } .small-chips .chip { padding: 4px 11px; font-size: .78rem; }
.tutor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tutor-card.is-full { opacity: .6; }
.next-slot { color: var(--green-700); }
.week-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-height: 120px; background: var(--green-50); }
.day.empty { opacity: .55; }
.day.today { border-color: var(--green-600); }
.day-head { text-align: center; line-height: 1.15; margin-bottom: 4px; }
.day-head span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day-head strong { font: 800 1.15rem var(--font-title); color: var(--green-800); }
.time { border: 1.5px solid var(--line); background: var(--white); border-radius: 8px; padding: 7px 4px; font: 700 .84rem var(--font-body); color: var(--green-800); cursor: pointer; }
.time:hover { border-color: var(--green-600); }
.time.selected { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.none { text-align: center; color: var(--muted); font-size: .8rem; }
.link-btn { background: none; border: 0; color: var(--green-800); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--green-100); font-size: .9rem; }
.sum-row span { color: var(--muted); } .sum-row strong { text-align: right; }
.cash-note { background: var(--green-100); border-radius: 10px; padding: 12px; font-size: .86rem; margin: 14px 0 6px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: .88rem; padding: 8px 0; }
.lesson-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } .booking-summary { position: static; order: -1; } }
@media (max-width: 700px) {
  .tutor-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(7, minmax(78px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}

/* Cours particuliers */
.tutor-card { display: flex; gap: 16px; align-items: flex-start; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; width: 100%; }
.tutor-card:hover { border-color: var(--green-600); }
.tutor-card.selected { border-color: var(--green-800); box-shadow: 0 0 0 3px rgba(31, 64, 48, .12); }
.tutor-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; background: var(--green-100); }
.tutor-initials { display: grid; place-items: center; font: 800 1.4rem var(--font-title); color: var(--green-800); }
.tutor-body { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.tutor-body strong { font: 700 1.05rem var(--font-title); color: var(--green-800); }
.slot-list { display: grid; gap: 12px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.slot-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.slot-pill { position: relative; cursor: pointer; }
.slot-pill input { position: absolute; opacity: 0; pointer-events: none; }
.slot-pill span { display: inline-block; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: .84rem; font-weight: 600; background: var(--white); }
.slot-pill:hover span { border-color: var(--green-600); }
.slot-pill input:checked + span { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.slot-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(42, 82, 64, .25); }
.video-box { background: #000; border-radius: var(--radius); overflow: hidden; }
.video-box video { width: 100%; display: block; max-height: 70vh; }
.doc-pages:has(> img, > video) { position: relative; overflow: hidden; }
@media (max-width: 560px) { .doc-viewer { padding: 6px; } .doc-html { padding: 24px 18px; } }
@media print { .doc-viewer, .doc-viewer * { display: none !important; } main::after { content: "L'impression des documents est désactivée."; display: block; padding: 40px; } }
.viewer-frame { width: 100%; height: calc(100vh - 210px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.crumbs { font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- QCM ---------- */
.qcm-q { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.qcm-q h3 { font-size: 1rem; margin-bottom: 12px; display: flex; gap: 10px; }
.qcm-q h3 span { color: var(--green-600); }
.qcm-opt { display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: .92rem; transition: border-color .12s, background .12s; }
.qcm-opt:hover { border-color: var(--green-600); }
.qcm-opt input { margin-top: 4px; accent-color: var(--green-800); }
.qcm-opt.right { border-color: #3c8a5c; background: #e6f3ea; }
.qcm-opt.wrong { border-color: var(--danger); background: #fbecea; }
.qcm-expl { font-size: .86rem; background: var(--green-50); border-left: 3px solid var(--green-700); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 10px; display: none; }
.qcm-result { background: var(--green-800); color: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 20px; display: none; }
.qcm-result strong { font: 800 2.6rem var(--font-title); display: block; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(42, 82, 64, .14); }
textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.checkbox input { margin-top: 4px; accent-color: var(--green-800); }
.code-input { display: flex; gap: 8px; }
.code-input input { text-transform: uppercase; letter-spacing: .08em; }
.code-status { font-size: .78rem; margin-top: 5px; min-height: 1em; }
.code-status.ok { color: #2f7a4f; } .code-status.ko { color: var(--danger); }

/* ---------- Alertes ---------- */
.flash-wrap { margin-top: 18px; }
.alert { padding: 13px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 10px; border: 1px solid; }
.alert-success { background: #e8f4ec; border-color: #b9dcc5; color: #1e5a38; }
.alert-error { background: #fbecea; border-color: #f0c5c0; color: #8d2a23; }
.alert-info { background: var(--white); border-color: var(--line); color: var(--ink); }

/* ---------- Tableaux ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--green-100); }
.table-wrap { overflow-x: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 30px 0; margin-top: 64px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: .82rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { font-size: .76rem; color: var(--muted); margin-top: 8px; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.mb-3 { margin-bottom: 28px; }

/* Assistant FAQ : bulle ronde en bas à droite */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: var(--font-body); }
.assistant-bubble { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--green-800); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px -6px rgba(22, 50, 34, .55); transition: transform .15s, background .15s; margin-left: auto; }
.assistant-bubble:hover { transform: scale(1.06); background: var(--green-900); }
.assistant-bubble .ic-close, .assistant.open .assistant-bubble .ic-open { display: none; }
.assistant.open .assistant-bubble .ic-close { display: block; }
.assistant-panel { position: absolute; right: 0; bottom: 74px; width: 440px; height: min(680px, calc(100vh - 110px)); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(22, 50, 34, .45); display: flex; flex-direction: column; overflow: hidden; }
.assistant-panel[hidden] { display: none; }
.assistant-panel header { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--green-800); color: #fff; }
.assistant-panel header strong { display: block; font: 700 .95rem var(--font-title); }
.assistant-panel header span:not(.assistant-avatar) { font-size: .74rem; opacity: .8; }
.assistant-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green-800); display: grid; place-items: center; font: 800 1rem var(--font-title); flex: none; }
.assistant-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--green-50); min-height: 160px; font-size: .95rem; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.msg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--green-800); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-link { display: inline-block; margin-top: 6px; font-weight: 700; }
.assistant-suggest { padding: 8px 12px; border-top: 1px solid var(--line); text-align: center; }
.assistant-team { background: none; border: 0; padding: 4px 8px; font: 600 .8rem var(--font-body); color: var(--green-800); text-decoration: underline; cursor: pointer; }
.assistant-input { display: flex; gap: 6px; padding: 10px 12px 12px; }
.assistant-input input { flex: 1; padding: 9px 12px !important; font-size: .88rem !important; border-radius: 20px !important; }
.assistant-input button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--green-800); color: #fff; cursor: pointer; flex: none; }
.team-form { display: grid; gap: 6px; margin-top: 8px; }
.team-form input, .team-form textarea { padding: 7px 9px !important; font-size: .84rem !important; min-height: 0; }
.team-form textarea { min-height: 70px; }
@media (max-width: 480px) { .assistant { right: 12px; bottom: 12px; } .assistant-panel { width: calc(100vw - 24px); bottom: 70px; } }

/* Série de jours consécutifs */
.streak { display: inline-flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; font-size: .95rem; color: var(--ink); }
.streak strong { font-family: var(--font-title); color: var(--green-800); font-size: 1.05rem; }
.streak .small { color: var(--muted); }
.streak-flame { font-size: 1.9rem; line-height: 1; filter: grayscale(1); opacity: .5; }
.streak.on .streak-flame { filter: none; opacity: 1; }
.streak.at-risk { border-color: #e9b949; }
.streak-best { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Bandeau cookies (Google Analytics / Ads) */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 950; max-width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px -16px rgba(22, 50, 34, .45); padding: 16px 18px; font-size: .86rem; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner div { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-banner .btn { min-width: 110px; }
@media (max-width: 560px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 14px; font-size: .8rem; } .cookie-banner p { margin-bottom: 8px; } .cookie-banner .btn { min-width: 0; flex: 1; padding: 9px; } }

/* ================= Page d'accueil (achat en 3 clics) ================= */
.lp-hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 107, 85, .18), transparent 65%); pointer-events: none; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 520px; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); max-width: 13ch; }
.lp-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.lp-trust { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 9px; }
.lp-trust li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.lp-trust li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.lp-hero-foot { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.lp-hero-foot .hero-links { margin: 0; }
.lp-proof { display: flex; align-items: baseline; gap: 8px; }
.lp-proof strong { font: 800 2rem var(--font-title); color: var(--green-800); letter-spacing: -.03em; }
.lp-proof span { color: var(--muted); font-size: .9rem; }

.picker { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px -30px rgba(22, 50, 34, .45); transition: box-shadow .3s, transform .3s; }
.picker.pulse { box-shadow: 0 0 0 6px rgba(42, 82, 64, .18), 0 30px 70px -30px rgba(22, 50, 34, .45); transform: translateY(-2px); }
.picker-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.picker-head > strong { font: 800 1.15rem var(--font-title); color: var(--green-800); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--green-50); padding: 5px; border-radius: 14px; margin-bottom: 14px; }
.seg-btn { border: 0; background: transparent; border-radius: 10px; padding: 10px 6px; cursor: pointer; color: var(--ink); transition: background .15s, color .15s, box-shadow .15s; font-family: inherit; }
.seg-btn strong { display: block; font: 800 1.35rem/1.1 var(--font-title); }
.seg-btn span { font-size: .7rem; color: var(--muted); }
.seg-btn:hover { background: rgba(255, 255, 255, .7); }
.seg-btn[aria-selected="true"] { background: var(--green-800); color: #fff; box-shadow: 0 6px 16px -8px rgba(22, 50, 34, .7); }
.seg-btn[aria-selected="true"] span { color: rgba(255, 255, 255, .8); }
.picker-list { display: grid; gap: 10px; min-height: 120px; }
.pk { display: flex; justify-content: space-between; gap: 14px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, transform .15s, box-shadow .15s; animation: pk-in .35s ease both; }
.pk:hover { border-color: var(--green-600); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(22, 50, 34, .5); }
.pk h3 { font-size: 1.02rem; margin: 0 0 2px; }
.pk p { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.pk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pk-tags span { font-size: .7rem; font-weight: 600; background: var(--green-50); border-radius: 20px; padding: 2px 8px; color: var(--green-700); }
.pk-buy { text-align: right; flex: none; display: grid; gap: 6px; justify-items: end; }
.pk-price { font: 800 1.35rem var(--font-title); color: var(--green-800); letter-spacing: -.02em; }
.pk-empty { text-align: center; color: var(--muted); padding: 26px 10px; margin: 0; }
.picker-foot { font-size: .78rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
@keyframes pk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lp-section { padding: 36px 0; }
.lp-head { margin-bottom: 22px; }
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lp-feature h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.lp-feature p { margin: 0; color: var(--muted); font-size: .88rem; }
.lp-ico { font-size: 1.6rem; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lp-step > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-800); color: #fff; font: 800 1.1rem var(--font-title); margin-bottom: 12px; }
.lp-step h3 { margin-bottom: 6px; }
.lp-step p { margin: 0; color: var(--muted); font-size: .9rem; }
.lp-faq { display: grid; gap: 10px; max-width: 820px; }
.lp-faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.lp-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--green-700); line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { color: var(--muted); margin: 0 0 14px; }
.lp-final { text-align: center; background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; border-radius: 22px; padding: 52px 24px; }
.lp-final h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.lp-final p { opacity: .9; margin-bottom: 22px; }

.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: block; position: fixed; left: 50%; width: min(320px, calc(100% - 32px)); bottom: 16px; z-index: 880; text-align: center; background: var(--green-800); color: #fff; font: 700 .95rem var(--font-title); padding: 15px; border-radius: 14px; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(22, 50, 34, .6); transform: translate(-50%, 140%); transition: transform .25s; }
  .mobile-cta.show { transform: translate(-50%, 0); }
}

/* Fenêtre de paiement */
.checkout { border: 0; border-radius: 20px; padding: 0; width: min(460px, calc(100vw - 24px)); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); }
.checkout::backdrop { background: rgba(15, 29, 21, .55); backdrop-filter: blur(3px); }
.checkout[open] { animation: co-in .22s ease both; }
@keyframes co-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.checkout-form { padding: 22px 24px 24px; }
.co-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.co-close { background: var(--green-50); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: .95rem; }
.co-pack { background: var(--green-50); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.co-pack h3 { margin: 8px 0 2px; font-size: 1.2rem; }
.co-pack .check-list { margin: 10px 0 0; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; margin: 4px 0 14px; }
.co-total strong { font: 800 1.5rem var(--font-title); color: var(--green-800); }
.co-pay { padding: 14px; font-size: 1rem; }

/* Apparition au défilement */
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Téléphone et tablette : titre, puis « Trouve ton pack » avec « Voir les packs » visible dès le premier écran, puis le reste */
  .lp-hero-grid { gap: 0; }
  .lp-hero-text { display: contents; }
  .lp-hero-text .eyebrow { order: 1; margin-bottom: 8px; }
  .lp-hero-text h1 { order: 2; max-width: none; }
  .lp-hero-grid .picker { order: 3; margin: 6px 0 26px; }
  .lp-hero-text .lead, .lp-trust, .lp-hero-foot { order: 4; }
  .lp-hero { padding-top: 20px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lp-hero { padding-top: 16px; }
  .lp-hero h1 { font-size: 1.9rem; margin-bottom: 14px; }
  .picker { padding: 16px; }
  .picker-head { margin-bottom: 10px; }
  .seg-btn span { display: none; }
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .pk { flex-direction: column; align-items: stretch; }
  .pk-buy { display: flex; justify-content: space-between; align-items: center; }
}

/* Icônes au trait (remplacent les emojis) */
.lp-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-size: 0; }
.streak-flame { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--muted); filter: none !important; opacity: 1 !important; font-size: 0; }
.streak.on .streak-flame { background: #fdf0e3; color: #d9822b; }
.picker-foot svg, .checkout svg[width="13"] { vertical-align: -2px; margin-right: 2px; }
.lesson-actions svg { vertical-align: -3px; margin-right: 4px; }

/* Après paiement : choix du mot de passe */
.paid-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; margin: 0 auto 12px; }
.locked-field { padding: 11px 13px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--green-50); font-weight: 600; color: var(--green-800); overflow-wrap: anywhere; }

/* Mon espace : série de jours consécutifs centrée */
.dash-head { text-align: center; }
.dash-head .streak { display: flex; width: fit-content; max-width: 100%; margin: 18px auto 0; text-align: left; }

/* ================= Site stable : aucun défilement de côté, pas de zoom involontaire ================= */
/* Le débordement est coupé sur le contenu (pas sur html/body, ce qui bloquerait le défilement vertical) */
html { overscroll-behavior-x: none; }
main, .site-footer { max-width: 100%; overflow-x: clip; }
.site-header { max-width: 100%; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
img, video, canvas, iframe, table { max-width: 100%; }
.table-wrap { max-width: 100%; }
/* iPhone : un champ en dessous de 16 px déclenche un zoom automatique au clic → on reste à 16 px sur mobile */
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; }
  .assistant { display: none !important; }
}
/* Écrans tactiles (téléphones, tablettes) : pas d'assistant */
@media (hover: none) and (pointer: coarse) { .assistant { display: none !important; } }
/* Menu mobile : se replie proprement */
@media (max-width: 860px) { .nav { transition: opacity .15s ease; } }

/* ===== Accueil : année puis « Voir les packs » ===== */
.picker-head > span { font-size: .8rem; color: var(--muted); }
.picker-show { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.picker-show svg { transition: transform .2s; }
.picker-show.open { background: var(--white); color: var(--green-800); border-color: var(--line); }
.picker-show.open svg { transform: rotate(180deg); }
.picker-list:not([hidden]) { margin-top: 14px; }

/* ===== Qui sommes-nous ===== */
.about-head { text-align: center; padding: 64px 0 28px; max-width: 760px; }
.about-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.about-head .lead { color: var(--muted); font-size: 1.12rem; margin: 0 auto; max-width: 60ch; }
.about-video { max-width: 1040px; }
.about-video .yt-lite, .video-placeholder { border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(22, 50, 34, .55); }
.about-video .yt-lite .yt-play, .video-placeholder .yt-play { width: 84px; height: 84px; }
.video-placeholder { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green-800), var(--green-600)); display: grid; place-content: center; justify-items: center; gap: 16px; color: rgba(255, 255, 255, .85); font: 600 .95rem var(--font-title); }
.video-placeholder .yt-play { border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.about-video-cap { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; }
.about-video-cap strong { color: var(--green-800); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 64px 0 0; }
.about-stats > div { padding: 28px 20px; text-align: center; }
.about-stats > div + div { border-left: 1px solid var(--line); }
.about-stats strong { display: block; font: 800 clamp(1.7rem, 3vw, 2.3rem) var(--font-title); color: var(--green-800); letter-spacing: -.03em; }
.about-stats span { color: var(--muted); font-size: .9rem; }
.about-story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 72px 0 0; }
.about-story h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.about-story-text p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 16px; }
@media (max-width: 860px) {
  .about-head { padding-top: 40px; }
  .about-stats { margin-top: 36px; }
  .about-stats > div { padding: 18px 6px; }
  .about-stats strong { font-size: 1.15rem; white-space: nowrap; }
  .about-stats span { font-size: .74rem; display: block; line-height: 1.35; }
  .about-story { grid-template-columns: 1fr; gap: 16px; padding-top: 48px; }
  }

/* ===== Pages légales ===== */
.legal-page .prose { max-width: none; padding: 36px 44px; }
@media (max-width: 600px) { .legal-page .prose { padding: 22px 18px; } }
.legal-page h2 { font-size: 1.15rem; margin-top: 30px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .updated { color: var(--muted); font-size: .88rem; }

.nav-user { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user svg { flex: none; }
.picker-list[hidden] { display: none; }

/* ===== Mon espace ===== */
.dash .card { padding: 30px 36px; }
@media (max-width: 600px) { .dash .card { padding: 22px 18px; } }
.dash-title { font-size: 1.2rem; margin: 0 0 14px; }
.dash-sub { font-size: .95rem; margin: 26px 0 6px; }
.dash-head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-head-row .dash-title { margin: 0; }
.dash-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.qcm-note { font: 800 1.15rem var(--font-title); color: var(--green-800); text-align: right; flex: none; }
.qcm-note small { display: block; font: 600 .72rem var(--font-body); color: var(--muted); }
.qcm-note.good { color: #2f7a4f; }
.qcm-note.low { color: var(--danger); }

/* Qui sommes-nous : chronologie verticale, cartes alternées autour d'une ligne centrale */
.about-timeline-wrap { padding: 80px 0 40px; }
.tl-head { text-align: center; margin-bottom: 36px; }
.tl-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--line); }
.timeline li { position: relative; width: 50%; padding: 0 44px 34px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 34px 44px; }
.timeline li::before { content: ""; position: absolute; top: 22px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--green-800); box-sizing: border-box; z-index: 1; }
.timeline li:nth-child(even)::before { right: auto; left: -9px; }
.timeline li.now::before { background: var(--green-800); box-shadow: 0 0 0 6px rgba(31, 64, 48, .15); }
.tl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.timeline li.now .tl-card { background: var(--green-800); border-color: var(--green-800); }
.timeline li.now .tl-card h3, .timeline li.now .tl-card p, .timeline li.now .tl-date { color: #fff; }
.tl-date { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.timeline h3 { font-size: 1.08rem; margin: 6px 0 6px; }
.timeline p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }
@media (max-width: 860px) {
  .about-timeline-wrap { padding-top: 56px; }
  .timeline::before { left: 8px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 22px 34px; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; top: 20px; }
}
@media (max-width: 380px) {
  .picker-head > span { display: none; }
  .lp-hero h1 { font-size: 1.7rem; }
  .picker-foot { font-size: .72rem; }
}
.picker-head > strong { white-space: nowrap; }

/* ===== Affichage téléphone : rien ne doit sortir du cadre ===== */
img, video, iframe, canvas, svg { max-width: 100%; }
.grid > *, .booking > *, .booking-main, .step-block, .step-body, .card, .dash > * { min-width: 0; }
.kv-site dd, .row-line > span, .table td, .card p, .tutor-body { overflow-wrap: anywhere; }
.week { scrollbar-width: thin; }
@media (max-width: 960px) {
  .booking-summary { order: 0; }
}
@media (max-width: 600px) {
  .kv-site { grid-template-columns: 1fr; gap: 0; }
  .kv-site dt { font-size: .78rem; margin-top: 10px; }
  .kv-site dt:first-child { margin-top: 0; }
  .how { display: none; }
  .tutor-card { padding: 14px; gap: 12px; }
  .tutor-photo { width: 56px; height: 56px; }
  /* Agenda : sur téléphone, liste des jours qui ont des créneaux, du haut vers le bas */
  .week { grid-template-columns: 1fr; overflow: visible; gap: 8px; }
  .day { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; padding: 10px 12px; gap: 8px; }
  .day.empty { display: none; }
  .day-head { display: flex; align-items: baseline; gap: 6px; width: 100%; text-align: left; margin: 0; }
  .day-head span { font-size: .78rem; }
  .time { padding: 8px 14px; }
  .week-nav strong { font-size: .84rem; text-align: center; white-space: nowrap; }
  .week-nav { gap: 6px; }
  .week-nav button { font-size: .8rem; padding-left: 6px; padding-right: 6px; }
  .week-nav .btn, .week-nav button { flex: none; }
  .step-block { padding-left: 16px; padding-right: 16px; }
  .dash-head .streak { flex-wrap: wrap; justify-content: center; text-align: center; padding: 14px; gap: 10px; }
  .dash-head .streak > span:nth-child(2) { flex: 1 1 160px; text-align: left; }
  .streak-best { flex-basis: 100%; margin: 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .row-line { flex-wrap: wrap; }
  .lesson-actions .btn { padding-left: 8px; padding-right: 8px; }
  .table td { white-space: normal; }
}
@media (max-width: 600px) {
  .pack-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .pack-stats .card { padding: 14px 6px; }
  .pack-stats .price { font-size: 1.5rem; }
  .pack-stats .small { font-size: .72rem; display: block; line-height: 1.3; }
}
@media (max-width: 560px) {
  /* Barre du lecteur PDF sur une seule ligne */
  .pdf-toolbar { flex-wrap: nowrap; justify-content: space-between; gap: 4px; padding: 6px 8px; }
  .pdf-group { gap: 2px; }
  .pdf-zoom { display: none; }
  .pdf-btn { width: 30px; height: 30px; }
  .pdf-page { width: 40px !important; }
}
.order-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.order-actions svg { vertical-align: -3px; margin-right: 4px; }

/* Frise animée : la ligne verte se remplit au défilement, chaque étape glisse depuis son côté */
.timeline::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; margin-left: -1px; height: calc((100% - 12px) * var(--tl-p, 1)); background: var(--green-800); border-radius: 2px; }
.timeline li::before { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .15s, background .3s; }
.timeline.tl-anim li .tl-card { opacity: 0; transform: translateX(-48px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .75, .2, 1); }
.timeline.tl-anim li:nth-child(even) .tl-card { transform: translateX(48px); }
.timeline.tl-anim li::before { transform: scale(0); }
.timeline.tl-anim li.in .tl-card { opacity: 1; transform: none; }
.timeline.tl-anim li.in::before { transform: scale(1); }
@media (max-width: 860px) {
  .timeline::after { left: 8px; }
  .timeline.tl-anim li .tl-card, .timeline.tl-anim li:nth-child(even) .tl-card { transform: translateY(28px); }
}

/* ===== QCM : choix du mode, chrono, notes ===== */
.qcm-start { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.qcm-mode { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qcm-mode.featured { border: 1.5px solid var(--green-800); }
.qcm-mode h3 { font-size: 1.1rem; margin: 4px 0 0; }
.qcm-mode p { color: var(--muted); font-size: .9rem; margin: 0 0 10px; flex: 1; }
.qcm-time { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; }
.qcm-time label { font-size: .85rem; font-weight: 600; }
.qcm-time select { width: auto; flex: 1; min-width: 140px; }
.qcm-error { color: var(--danger); margin: 6px 0 0; }
.qcm-history { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; font-size: .88rem; }
.qcm-note-sm { font: 800 1rem var(--font-title); color: var(--green-800); }
.qcm-timer { position: sticky; top: 86px; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--green-800); color: #fff; border-radius: 14px; padding: 12px 18px; margin-bottom: 16px; box-shadow: 0 12px 30px -14px rgba(22, 50, 34, .6); }
.qcm-timer span { font-size: .85rem; opacity: .85; }
.qcm-timer strong { font: 800 1.5rem var(--font-title); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.qcm-timer-bar { flex: 1 1 120px; height: 6px; background: rgba(255, 255, 255, .2); border-radius: 6px; overflow: hidden; }
.qcm-timer-bar i { display: block; height: 100%; background: #fff; transition: width .5s linear; }
.qcm-timer.urgent { background: var(--danger); }
.qcm-timer[hidden], .qcm-start[hidden], #qcm-form[hidden] { display: none; }
@media (max-width: 640px) { .qcm-start { grid-template-columns: 1fr; } .qcm-timer { top: 84px; } }

/* ===== Présentation vivante : apparition en cascade au défilement ===== */
.cascade > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .75s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.cascade.in > * { opacity: 1; transform: none; }
.dash > .card.cascade { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .75s cubic-bezier(.2, .75, .2, 1); }
.dash > .card.cascade > * { opacity: 1; transform: none; transition: none; }
.dash > .card.cascade.in { opacity: 1; transform: none; }
/* Étapes « Comment ça marche » : le numéro arrive avec un petit rebond */
.lp-steps.cascade .lp-step > span { transform: scale(.3) rotate(-20deg); transition: transform .55s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 110ms + .3s); }
.lp-steps.cascade.in .lp-step > span { transform: none; }
/* Fiche d'exemple : glisse et se pose légèrement inclinée */
.demo-band.cascade .sheet { transform: translateY(40px) rotate(6deg); transition: opacity .6s ease .2s, transform .9s cubic-bezier(.2, .75, .2, 1) .2s, box-shadow .3s; }
.demo-band.cascade.in .sheet { transform: rotate(-2deg); }
.demo-band.cascade.in .sheet:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 50px -20px rgba(22, 50, 34, .45); }
/* Icônes des avantages : légère montée au survol */
.lp-feature { transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-feature:hover { transform: translateY(-4px); border-color: var(--green-600); box-shadow: 0 16px 34px -20px rgba(22, 50, 34, .45); }
.about-stats > div { transition: background .2s; }

/* ===== Mon compte : intitulé à gauche, contenu à droite, sections séparées par un filet ===== */
.acct-sec { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.acct-sec:first-of-type { border-top-color: var(--green-800); border-top-width: 2px; }
.acct-label h3 { font-size: .95rem; margin: 0 0 2px; }
.acct-label p { margin: 0; font-size: .82rem; color: var(--muted); }
.acct-body { min-width: 0; }
.acct-name { font: 700 1.15rem var(--font-title); color: var(--green-800); margin: 0 0 2px; }
.acct-line { margin: 0; font-size: .93rem; overflow-wrap: anywhere; }
.acct-meta { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.acct-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.acct-item:first-child { padding-top: 0; }
.acct-item:last-child { border-bottom: 0; padding-bottom: 0; }
.acct-item.is-off { color: var(--muted); }
.acct-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.acct-right { font-size: .85rem; color: var(--muted); white-space: nowrap; }
a.acct-right { color: var(--green-800); font-weight: 600; }
@media (max-width: 700px) { .acct-sec { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; } }
.nav-toggle svg { pointer-events: none; display: block; }

/* ===== Parcours d'achat ===== */
.pack-card-title { font-size: 1.2rem; margin-bottom: 4px; }
.pack-actions { margin-top: auto; display: grid; gap: 8px; }
.pack-card .pack-actions .btn { margin-top: 0; }
.trust-row { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: .88rem; color: var(--muted); }
.trust-row li, .co-reassure li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before, .co-reassure li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231f4030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.co-reassure { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; font-size: .82rem; color: var(--muted); }
.co-who { background: var(--green-50); border-radius: 8px; padding: 9px 12px; margin: 0 0 12px; }
.code-field { margin-bottom: 14px; }
.code-toggle { font-size: .86rem; font-weight: 600; }
.code-body { margin-top: 8px; }
.co-pay { font-size: 1rem; padding-top: 14px; padding-bottom: 14px; }
.btn-ghost.btn-block { border-color: var(--line); }

/* Page d'un pack : achat à droite sur ordinateur, juste sous le titre sur téléphone */
.pack-layout { grid-template-areas: "head buy" "body buy"; grid-template-rows: min-content 1fr; row-gap: 4px; }
.pack-head { grid-area: head; }
.pack-body { grid-area: body; min-width: 0; }
.buy-box { grid-area: buy; }
@media (max-width: 860px) {
  .pack-layout { grid-template-areas: "head" "buy" "body"; grid-template-rows: none; gap: 20px; }
}
.buy-bar { display: none; }
@media (max-width: 860px) {
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 880; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 16px; box-shadow: 0 16px 40px -14px rgba(22, 50, 34, .45); transform: translateY(150%); transition: transform .25s; }
  .buy-bar.show { transform: none; }
  .buy-bar strong { display: block; font: 800 1.15rem var(--font-title); color: var(--green-800); }
  .buy-bar small { display: block; font-size: .75rem; color: var(--muted); max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buy-bar .btn { padding: 12px 22px; }
}

/* ===== Accessibilité ===== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #3c8a5c; outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .seg-btn:focus-visible, .qcm-opt:focus-within { outline: 3px solid #3c8a5c; outline-offset: 2px; }
.nav a.nav-shop:not(.active) { color: var(--green-800); font-weight: 600; }
.tabs a, .nav a { min-height: 40px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 600px) {
  /* Onglets d années sur une seule ligne, qu on fait glisser du doigt */
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; flex: none; }
}
.seg-links .seg-btn { text-decoration: none; text-align: center; display: block; background: var(--white); border: 1.5px solid var(--line); }
.seg-links .seg-btn:hover, .seg-links .seg-btn:focus-visible { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.seg-links .seg-btn:hover span, .seg-links .seg-btn:focus-visible span { color: rgba(255, 255, 255, .8); }
.seg-links { margin-bottom: 4px; }
/* Boutique : titre + filtre d'année sur une ligne */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.shop-head p { margin-bottom: 0; }
.year-filter { display: flex; align-items: center; gap: 10px; }
.year-filter label { font-weight: 600; font-size: .9rem; margin: 0; }
.year-filter select { width: auto; min-width: 210px; padding: 10px 12px; font-size: .95rem; }
@media (max-width: 600px) { .year-filter { width: 100%; } .year-filter select { flex: 1; min-width: 0; } }

/* Contact : formulaire seul, centré */
.contact-wrap { max-width: 720px; }
/* Boutique : questions fréquentes en accordéon */
.shop-faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; align-items: start; margin-top: 72px; padding-top: 48px; border-top: 2px solid var(--green-800); }
.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0 0 10px; }
.faq-intro p { color: var(--muted); margin: 0 0 18px; }
/* Questions et réponses toujours visibles, séparées par un simple filet */
.faq-list { margin: 0; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item dt { font: 700 1.05rem var(--font-title); color: var(--green-800); display: flex; gap: 14px; align-items: baseline; }
.faq-item dt span { font: 700 .78rem var(--font-body); color: var(--green-600); letter-spacing: .08em; flex: none; }
.faq-item dd { margin: 8px 0 0 34px; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .shop-faq { grid-template-columns: 1fr; gap: 24px; margin-top: 52px; padding-top: 32px; } .faq-intro { position: static; } .faq-item dd { margin-left: 0; } }
/* Accueil : boutons d'année bien visibles, en vert */
.seg-links .seg-btn { background: var(--green-800); border-color: var(--green-800); color: #fff; box-shadow: 0 8px 18px -10px rgba(22, 50, 34, .7); transition: transform .15s, background .15s, box-shadow .15s; }
.seg-links .seg-btn span { color: rgba(255, 255, 255, .8); }
.seg-links .seg-btn:hover, .seg-links .seg-btn:focus-visible { background: var(--green-900); transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(22, 50, 34, .8); }
.seg-links { background: none; padding: 0; gap: 10px; }
.empty-pack { text-align: center; padding: 48px 24px; }
.empty-pack h2 { font-size: 1.35rem; margin-bottom: 8px; }
.empty-pack p { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }

/* ===== Largeur de page « standard » sur ordinateur : contenu plus large, marges réduites ===== */
.container { width: min(1440px, 100% - 48px); }
@media (min-width: 1700px) { .container { width: min(1560px, 100% - 96px); } }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }
.page-head p { max-width: 80ch; }
.prose { max-width: 90ch; }
.lp-hero h1 { max-width: 16ch; }
.lp-hero .lead { max-width: 60ch; }
.lp-hero-grid { grid-template-columns: 1fr 560px; }
.about-head { max-width: 900px; }
.about-head .lead { max-width: 70ch; }
.about-video { max-width: 1180px; }
.contact-wrap { max-width: 860px; }
@media (max-width: 1000px) { .lp-hero-grid { grid-template-columns: 1fr; } }

/* QCM : choix du niveau avant de commencer */
.qcm-levels { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qcm-levels legend { font: 700 1rem var(--font-title); color: var(--green-800); margin-bottom: 10px; padding: 0; }
.qcm-level { position: relative; cursor: pointer; }
.qcm-level input { position: absolute; opacity: 0; pointer-events: none; }
.qcm-level span { display: block; text-align: center; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s, background .15s; }
.qcm-level strong { display: block; font: 700 1rem var(--font-title); color: var(--green-800); }
.qcm-level small { font-size: .78rem; color: var(--muted); }
.qcm-level:hover span { border-color: var(--green-600); }
.qcm-level input:checked + span { background: var(--green-800); border-color: var(--green-800); }
.qcm-level input:checked + span strong, .qcm-level input:checked + span small { color: #fff; }
.qcm-level input:focus-visible + span { outline: 3px solid #3c8a5c; outline-offset: 2px; }
.qcm-level.is-empty { cursor: not-allowed; opacity: .5; }
.qcm-step { grid-column: 1 / -1; margin: 8px 0 -4px; font: 700 1rem var(--font-title); color: var(--green-800); }
.qcm-q[hidden] { display: none; }
@media (max-width: 640px) { .qcm-levels { gap: 6px; } .qcm-level span { padding: 12px 4px; } }

/* Matières : vidéo de présentation du pack (facultative) */
.pack-videos { display: grid; gap: 10px; margin-bottom: 24px; }
.pack-video { display: flex; align-items: center; gap: 14px; background: var(--green-800); color: #fff; border-radius: var(--radius); padding: 16px 20px; text-decoration: none; transition: background .15s, transform .15s; }
.pack-video:hover { background: var(--green-900); transform: translateY(-1px); }
.pack-video strong { display: block; font: 700 1rem var(--font-title); }
.pack-video small { display: block; font-size: .82rem; opacity: .8; }
.pv-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--green-800); flex: none; }
.qcm-check { margin-top: 4px; }
.qcm-expl.ok { border-left-color: #3c8a5c; }

/* Assistant : bulle plus haute et qui attire l'attention (anneau qui pulse + petite invitation) */
.assistant { bottom: 40px; right: 28px; }
.assistant-bubble { position: relative; width: 64px; height: 64px; }
.assistant:not(.seen):not(.open) .assistant-bubble::before, .assistant:not(.seen):not(.open) .assistant-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green-700); animation: bubble-ring 2.4s ease-out infinite; pointer-events: none; }
.assistant:not(.seen):not(.open) .assistant-bubble::after { animation-delay: 1.2s; }
.assistant:not(.seen):not(.open) .assistant-bubble { animation: bubble-nudge 6s ease-in-out 2s infinite; }
@keyframes bubble-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
@keyframes bubble-nudge { 0%, 88%, 100% { transform: none; } 91% { transform: translateY(-6px) rotate(-8deg); } 94% { transform: translateY(0) rotate(6deg); } 97% { transform: rotate(-3deg); } }
.assistant-teaser { position: absolute; right: 0; bottom: 78px; width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; box-shadow: 0 16px 40px -14px rgba(22, 50, 34, .45); padding: 14px 34px 14px 16px; animation: teaser-in .45s cubic-bezier(.2, .8, .2, 1.2); }
.assistant-teaser[hidden] { display: none; }
.teaser-open { background: none; border: 0; padding: 0; text-align: left; font: .9rem/1.45 var(--font-body); color: var(--ink); cursor: pointer; }
.teaser-open strong { display: block; color: var(--green-800); font-family: var(--font-title); font-size: .98rem; }
.teaser-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 1.1rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
@keyframes teaser-in { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
.assistant-panel { bottom: 82px; height: min(680px, calc(100vh - 140px)); }

/* Assistant : historique, « Voir plus » et fenêtre isolée de la page */
.assistant-log, .assistant-panel { overscroll-behavior: contain; }
.assistant-panel header { position: relative; }
.assistant-clear { margin-left: auto; background: rgba(255, 255, 255, .14); border: 0; color: #fff; font: 600 .74rem var(--font-body); padding: 5px 10px; border-radius: 20px; cursor: pointer; }
.assistant-clear:hover { background: rgba(255, 255, 255, .25); }
.msg.is-long:not(.is-open) { max-height: 9.5em; overflow: hidden; position: relative; padding-bottom: 30px; }
.msg.is-long:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: linear-gradient(transparent, var(--white) 70%); border-radius: 0 0 12px 12px; pointer-events: none; }
.msg-more { position: absolute; left: 12px; bottom: 6px; z-index: 1; background: none; border: 0; padding: 0; font: 700 .8rem var(--font-body); color: var(--green-800); text-decoration: underline; cursor: pointer; }
.msg.is-long { position: relative; }
.msg.is-long.is-open { padding-bottom: 30px; }
.cgv-check { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.cgv-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-800); }
.cgv-check a { color: var(--green-800); font-weight: 600; }
