/* Formation Boom-360
   Direction : direct, vrai, un peu frondeur. Monde : le téléphone tenu à la main dans une cuisine
   ou un atelier. Surfaces calmes en neutres chauds ; la richesse est dans les vraies captures TikTok.
   Grille de 4 px, deux graisses (400, 500), un seul accent. */
:root {
  /* Neutres chauds, tirés de la charte boom360.mu */
  --bg: #F5F3F1;
  --card: #FBFAF9;
  --raised: #ECE7E2;
  --text: #1B1715;
  --text-2: #5A5049;
  --muted: #736A62;
  --line: rgba(27, 23, 21, 0.10);
  --accent: #7A6652;          /* taupe de la marque, assombri pour rester lisible en texte */
  --danger: #A8321F;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 32px;
  --side: 264px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
a:hover { text-decoration-color: var(--text); }
h1, h2, h3, h4 { font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 8px; }
strong, b { font-weight: 500; color: var(--text); }
/* L'emphase passe par la couleur, jamais par l'italique */
em { font-style: normal; color: var(--accent); }
code { font-family: var(--mono); font-size: 14px; background: var(--raised); padding: 2px 6px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.label { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent); margin-bottom: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--text);
  font: 500 15px/20px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--text); color: var(--bg);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: #38302B; border-color: #38302B; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--raised); border-color: var(--line); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand small { font-size: 14px; font-weight: 400; color: var(--muted); }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a, .nav__login { font-size: 14px; line-height: 20px; text-decoration: none; color: var(--text-2); }
.nav__links a:hover, .nav__login:hover { color: var(--text); }
.nav__menu { display: none; position: relative; margin-left: auto; }
.nav__menu summary { list-style: none; cursor: pointer; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu div { position: absolute; right: 0; top: 44px; width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(27, 23, 21, 0.06); }
.nav__menu div a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.nav__menu div a:hover { background: var(--raised); }

/* ---------- Page de vente ---------- */
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.hero { padding-block: 64px 96px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 60px; letter-spacing: -0.03em; }
.hero .lead { font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 36rem; margin: 24px 0 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Le moment de la page : de vraies captures TikTok, avec leur compteur de vues */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 20px; background: var(--raised); box-shadow: 0 8px 24px rgba(27, 23, 21, 0.06); }
.shots figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 400 13px/20px var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; }
.shots figcaption::before { content: ""; width: 0; height: 0; border-left: 8px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; flex: 0 0 auto; }
.hero .shots { max-width: 416px; justify-self: end; width: 100%; }
.hero .shots figure:nth-child(2) { margin-top: 48px; }
.case .shots { max-width: 360px; justify-self: end; width: 100%; }

.block { padding-block: 96px; border-top: 1px solid var(--line); }
.block h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 44px; letter-spacing: -0.02em; max-width: 20ch; }
.block .sub { max-width: 36rem; margin: 16px 0 0; font-size: 18px; line-height: 28px; color: var(--text-2); }
.head { margin-bottom: 48px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--text-2); }
.proof li { margin: 0; }
.source { font-size: 13px; line-height: 20px; color: var(--muted); margin: 24px 0 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pair h3 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; color: var(--text-2); font-size: 15px; line-height: 24px; }
.quote { font-family: var(--display); font-size: 28px; line-height: 36px; letter-spacing: -0.01em; margin: 24px 0 0; max-width: 18ch; color: var(--text); }

/* Lignes séparées par un filet */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: 40px minmax(0, 4fr) minmax(0, 7fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; align-items: baseline; }
.rows.nonum > li { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.rows .n { font: 400 13px/24px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.rows h3 { font-size: 16px; line-height: 24px; }
.rows p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 24px; }
.rows .tag { display: block; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--muted); }

.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-block: 48px; border-top: 1px solid var(--line); align-items: start; }
.case h3 { font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
.case .meta { font-size: 14px; line-height: 20px; color: var(--muted); margin: 8px 0 20px; }
.case p { color: var(--text-2); max-width: 36rem; }
.case .takeaway { color: var(--text); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.figs div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.figs b { display: block; font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.figs span { display: block; font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 4px; }

.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 48px; }
.price { font-family: var(--display); font-size: 72px; line-height: 72px; letter-spacing: -0.03em; margin: 0; font-variant-numeric: tabular-nums; }
.price-note { font-size: 15px; line-height: 24px; color: var(--text-2); margin: 12px 0 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 16px/26px var(--mono); color: var(--muted); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 8px 0 0; color: var(--text-2); max-width: 36rem; font-size: 15px; line-height: 24px; }

.foot { border-top: 1px solid var(--line); padding-block: 32px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }

/* ---------- Espace cours ---------- */
.course { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--card); border-right: 1px solid var(--line); padding: 16px 12px 48px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 8px 16px; font-size: 15px; }
.sidebar .brand img { width: 28px; height: 28px; }
.progress { margin: 0 8px 8px; }
.progress .bar { height: 4px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); width: 0; }
.progress small { display: block; margin-top: 8px; font: 400 12px/16px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar h4 { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); margin: 24px 8px 8px; }
.sidebar a.mod { display: grid; grid-template-columns: 24px minmax(0, 1fr) 8px; gap: 8px; align-items: center; min-height: 36px; padding: 6px 8px; margin-bottom: 2px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 20px; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.sidebar a.mod .i { font: 400 12px/20px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar a.mod:hover { background: var(--raised); color: var(--text); }
.sidebar a.mod.current { background: var(--raised); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.sidebar a.mod .dot { width: 8px; height: 8px; border-radius: 50%; }
.sidebar a.mod.done .dot { background: var(--accent); }
.sidebar .mod.locked { display: grid; grid-template-columns: 24px minmax(0, 1fr) 12px; gap: 8px; align-items: center; min-height: 36px; padding: 6px 8px; margin-bottom: 2px; font-size: 14px; line-height: 20px; color: var(--muted); opacity: .6; cursor: not-allowed; }
.sidebar .mod.locked .i { font: 400 12px/20px var(--mono); }
/* Cadenas dessiné en CSS : un corps et une anse */
.lock { position: relative; width: 10px; height: 8px; margin-top: 5px; border-radius: 2px; background: var(--muted); }
.lock::before { content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; border: 1.5px solid var(--muted); border-bottom: 0; border-radius: 3px 3px 0 0; box-sizing: border-box; }
.topbar { display: none; }
.buybar { display: none; }

.lesson { padding: 48px 48px 96px; max-width: 840px; width: 100%; min-width: 0; overflow-wrap: break-word; }
.lesson > header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lesson .phase { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.lesson h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.02em; }
.lesson > header .meta { display: flex; gap: 4px 16px; flex-wrap: wrap; font: 400 13px/20px var(--mono); color: var(--muted); margin-top: 12px; }
.lesson .intro { font-size: 18px; line-height: 28px; color: var(--text); max-width: 36rem; }
.lesson h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; margin: 48px 0 12px; }
.lesson h3 { font-size: 17px; line-height: 24px; margin: 32px 0 8px; }
.lesson p, .lesson li { max-width: 42rem; }
.lesson > p, .lesson > ul, .lesson > ol { color: var(--text-2); }

.goals { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.goals h3 { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent); }
.goals ul { margin: 0; color: var(--text-2); }
.goals li:last-child { margin-bottom: 0; }

/* Encadrés : une seule forme, le libellé dit le rôle */
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 24px 0; color: var(--text-2); }
.note > :last-child { margin-bottom: 0; }
.note b.t { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.note.human { background: var(--raised); border-color: transparent; color: var(--text); }
.note.human b.t { color: var(--text); }
.note.warn b.t { color: var(--danger); }
.note.case-real .big { display: block; font-size: 28px; line-height: 32px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.tablewrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.steps > li { counter-increment: s; position: relative; padding: 16px 0 16px 48px; margin: 0; border-bottom: 1px solid var(--line); max-width: none; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 400 13px/26px var(--mono); color: var(--muted); }
.steps > li > strong:first-child { display: block; }

.check { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.check li { margin: 0; border-bottom: 1px solid var(--line); max-width: none; }
.check li:last-child { border-bottom: 0; }
.check label { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; align-items: flex-start; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; border: 1px solid var(--muted); border-radius: 6px; background: var(--bg); cursor: pointer; position: relative; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:checked + span { color: var(--muted); }

.hooks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 24px; }
.hook { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.hook h4 { font-size: 16px; line-height: 24px; }
.hook p.why { color: var(--muted); margin: 0 0 8px; font-size: 14px; line-height: 20px; }
.hook ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.hook li { padding: 6px 0; margin: 0; display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: baseline; border-top: 1px solid var(--line); }
.lg { font: 400 11px/20px var(--mono); color: var(--muted); }

.script { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 16px 0 24px; font-size: 15px; line-height: 24px; overflow-x: auto; }
.script .t { font: 400 13px/24px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.script .d { color: var(--muted); }
.script p { margin: 0 0 12px; max-width: none; }
.script p:last-child { margin: 0; }
pre.prompt { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; white-space: pre-wrap; font: 400 13px/22px var(--mono); color: var(--text-2); margin: 12px 0; overflow-x: auto; }

.phone-wrap { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.phone-wrap > :last-child { flex: 1 1 280px; }
.phone { width: 216px; height: 384px; background: var(--raised); border-radius: 20px; position: relative; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--line); }
.phone div { position: absolute; display: grid; place-items: center; text-align: center; font: 400 11px/16px var(--mono); color: var(--bg); padding: 4px; }
.phone .top { inset: 0 0 auto 0; height: 13%; background: rgba(27, 23, 21, .78); }
.phone .bot { inset: auto 0 0 0; height: 22%; background: rgba(27, 23, 21, .78); }
.phone .right { right: 0; top: 13%; bottom: 22%; width: 14%; background: rgba(27, 23, 21, .5); writing-mode: vertical-rl; }
.phone .safe { left: 6%; right: 17%; top: 15%; bottom: 24%; border: 1px dashed var(--accent); color: var(--text); border-radius: 8px; }

.lesson .shots { margin: 24px 0; }
.lesson .shots.two { max-width: 400px; }
.lesson .shots.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lesson .shots img { border-radius: 16px; }
.lesson .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 8px; }

.tool { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 24px 0; }
.tool h3 { margin: 0 0 8px; font-size: 20px; line-height: 28px; }
.tool > p { color: var(--text-2); font-size: 15px; line-height: 24px; }
.tool label { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-2); display: block; margin-bottom: 4px; }
.tool input[type=text] { width: 100%; height: 40px; font: 400 15px/20px var(--sans); color: var(--text); padding: 0 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; margin-bottom: 16px; transition: border-color 160ms var(--ease); }
.tool input[type=text]:hover { border-color: var(--muted); }
.tool input[type=text]::placeholder { color: var(--muted); }
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gen-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.gen-list li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 500; max-width: none; }
.gen-list li small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; line-height: 20px; margin-top: 4px; }
.gen-list li small i { font-style: normal; color: var(--muted); }
.score-row { display: grid; grid-template-columns: 1fr 160px 24px; gap: 16px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 15px; }
.score-row label { margin: 0; font-size: 15px; font-weight: 400; color: var(--text); }
.score-row input { width: 100%; accent-color: var(--text); }
.score-row b { font: 400 13px/20px var(--mono); text-align: right; }
.score-total { font-size: 36px; line-height: 44px; font-weight: 500; letter-spacing: -0.02em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.verdict { color: var(--text-2); font-size: 15px; line-height: 24px; }

.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-nav .btn { white-space: normal; height: auto; min-height: 36px; padding-block: 8px; text-align: left; }
.done-btn.is-done { background: var(--accent); border-color: var(--accent); }
.done-btn:disabled { cursor: default; opacity: 1; }
.done-btn:disabled:active { transform: none; }
.btn.is-locked { background: var(--raised); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.is-locked:hover { background: var(--raised); border-color: var(--line); }
a.link-locked { color: var(--muted); cursor: not-allowed; text-decoration-style: dotted; }
.unlock-hint { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); text-align: right; min-height: 20px; }
.price-old { font: 400 20px/28px var(--sans); color: var(--muted); text-decoration: line-through; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.hero .promo { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.hero .promo s { color: var(--muted); }

/* ---------- Accès ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--pad); }
.gate form { width: min(400px, 100%); }
.gate h1 { font-size: 28px; line-height: 36px; letter-spacing: -0.01em; margin: 32px 0 8px; }
.gate p { color: var(--text-2); font-size: 15px; line-height: 24px; }
.gate label { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-2); display: block; margin: 24px 0 4px; }
.gate input { width: 100%; height: 44px; font: 400 16px/20px var(--sans); color: var(--text); padding: 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; }
.gate .err { color: var(--danger); min-height: 20px; font-size: 14px; line-height: 20px; margin: 8px 0 12px; }
.gate .btn { width: 100%; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav__links, .nav__login { display: none; }
  .nav__menu { display: block; }
  .nav__in { gap: 12px; }
  .brand small { display: none; }
  .hero { padding-block: 32px 64px; }
  .hero .lead { font-size: 17px; line-height: 26px; margin-top: 16px; }
  .hero .cta-row { margin-top: 24px; }
  .hero__in, .split, .case, .offer, .pair, .hooks, .tool .row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hooks { gap: 12px; }
  .tool .row { gap: 0; }
  .hero h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
  .hero .shots figure:nth-child(2) { margin-top: 32px; }
  .hero .shots, .case .shots { justify-self: start; max-width: 360px; }
  .block { padding-block: 64px; }
  .block h2 { font-size: 32px; line-height: 36px; }
  .head { margin-bottom: 32px; }
  .rows > li { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; }
  .rows.nonum > li { grid-template-columns: minmax(0, 1fr); }
  .rows > li p { grid-column: -2 / -1; }
  .offer { padding: 24px; }
  .price { font-size: 56px; line-height: 56px; }
  .course { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(304px, 88vw); transform: translateX(-100%); transition: transform 300ms var(--ease); z-index: 60; }
  body.menu-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(27, 23, 21, .4); }
  /* Téléphone : barre du haut collante, le programme s'ouvre en tiroir */
  .course { display: block; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 40; height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .topbar__pos { font: 400 13px/20px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
  .sidebar { top: 0; padding-top: 20px; }
  .sidebar a.mod, .sidebar .mod.locked { min-height: 44px; font-size: 15px; }
  /* Zones tactiles de 44 px au moins, champs à 16 px pour éviter le zoom d'iOS */
  .btn { height: 48px; font-size: 16px; }
  .btn.small { height: 44px; font-size: 15px; }
  .tool input[type=text], .gate input { height: 48px; font-size: 16px; }
  .hero .cta-row .btn, .offer .cta-row .btn, .tool form .btn { width: 100%; }
  .nav .btn[data-buy] { display: none; }
  details.faq { padding: 0; }
  details.faq summary { padding: 16px 0; }
  details.faq p { margin: 0 0 16px; }
  .score-row { min-height: 48px; }
  /* Achat toujours à portée de pouce */
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
  .buybar s, .promo s { white-space: nowrap; }
  .buybar p { margin: 0; font-size: 13px; line-height: 16px; color: var(--muted); }
  .buybar p strong { display: block; font-size: 17px; line-height: 24px; font-variant-numeric: tabular-nums; }
  .buybar .btn { flex: 0 0 auto; }
  body.has-buybar { padding-bottom: 80px; }
  /* Tableaux empilés en fiches : plus de défilement horizontal */
  .tablewrap { overflow: visible; }
  table.stack { min-width: 0; display: block; font-size: 15px; line-height: 22px; }
  table.stack tbody { display: block; }
  table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack tr:first-child { display: none; }
  table.stack.kv tr:first-child { display: block; }
  table.stack th { display: block; padding: 0; border: 0; white-space: normal; font-size: 14px; color: var(--accent); }
  table.stack td { display: block; padding: 2px 0; border: 0; text-align: left; }
  table.stack td:first-child { color: var(--text); font-weight: 500; padding-bottom: 4px; }
  table.stack td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  table.stack td[data-label]::before { content: attr(data-label); font-size: 13px; line-height: 22px; color: var(--muted); font-weight: 400; }
  table.stack td:empty { display: none; }
  /* Fin de leçon : l'action principale d'abord */
  .lesson-nav { flex-direction: column; margin-top: 48px; }
  .lesson-nav .done-btn { order: 1; }
  .lesson-nav .next-btn { order: 2; }
  .lesson-nav .prev-btn { order: 3; }
  .lesson-nav > span { display: none; }
  .lesson-nav .btn { justify-content: center; text-align: center; min-height: 48px; }
  .unlock-hint { text-align: left; }
  .lesson { padding: 32px 20px 96px; }
  .lesson h1 { font-size: 28px; line-height: 36px; }
  .lesson .shots.four, .lesson .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-row { grid-template-columns: 1fr 112px 24px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0ms !important; }
}
@media print {
  .sidebar, .menu-btn, .lesson-nav, .tool { display: none !important; }
  .course { display: block; }
}
