/* Méthode 3 Briques — feuille de style */
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/Bricolage-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ground: #F7F5F0;
  --paper: #FFFFFF;
  --sand: #EDE8DF;
  --line: #DED9CF;
  --ink: #1B1E23;
  --ink-2: #262A31;
  --muted: #4A4F57;
  --orange: #E8590C;
  --orange-ink: #C2410C;
  --rust: #9A3412;
  --apricot: #FDBA74;
  --green: #1F7A4D;
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1160px;
  --radius-l: 28px;
  --radius-m: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: #7C2D12; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 14px; z-index: 100; }

/* Placeholders à remplacer avant la mise en ligne */
mark.todo { background: #FFE58F; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn-buy { background: var(--orange-ink); color: #fff; }
.btn-buy:hover { background: var(--rust); color: #fff; }
.btn-buy:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,245,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--orange); display: inline-block; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--rust); }
@media (max-width: 640px) { .site-nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Démo brouillon → résultat (le moment fort de la page) */
.demo { display: flex; flex-direction: column; gap: 14px; }
.demo-tag { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.demo-tag.is-draft { background: var(--sand); color: var(--muted); }
.demo-tag.is-good { background: var(--green); color: #fff; }
.bubble { background: #E9E5DD; color: #3A3F47; font-family: var(--mono); font-size: 1rem; line-height: 1.5; padding: 20px 22px; border-radius: 24px 24px 8px 24px; min-height: 5.6em; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--orange); vertical-align: -.18em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-arrow { align-self: center; color: var(--orange); }
.result { background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 40px rgba(27,30,35,.10); }
.result-text { font-size: .98rem; white-space: pre-line; }
.demo-caption { font-size: .9rem; color: var(--muted); text-align: center; }
.js .demo .result, .js .demo .demo-arrow { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .demo.is-done .result, .js .demo.is-done .demo-arrow { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .js .demo .result, .js .demo .demo-arrow { opacity: 1; transform: none; transition: none; }
}

/* Bandeau série */
.series { background: var(--ink); color: var(--ground); }
.series .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.series p { font-size: 1.05rem; }
.series a { color: var(--apricot); font-weight: 600; }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.on-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.on-ink { background: var(--ink); color: var(--ground); }
.on-ink .lede { color: #C9CCD2; }

/* Situations : liste éditoriale, pas de cartes */
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.pains li { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.pains q { font-family: var(--display); font-weight: 800; font-size: 1.22rem; line-height: 1.25; quotes: "« " " »"; grid-column: 1 / 2; }
.pains span { color: var(--muted); grid-column: 1 / 2; }
.pains b { grid-column: 2 / 3; grid-row: 1 / 3; align-self: start; font-size: .85rem; font-weight: 700; color: var(--rust); background: #FFEDD5; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 820px) { .pains { grid-template-columns: 1fr; } }

/* Programme */
.modules { display: flex; flex-direction: column; gap: 12px; }
.module { background: var(--ink-2); border-radius: var(--radius-m); }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 22px 26px; }
.module summary::-webkit-details-marker { display: none; }
.module-num { font-family: var(--mono); font-size: .9rem; color: var(--apricot); }
.module-title { display: flex; flex-direction: column; gap: 4px; }
.module-h { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--ground); }
.module-title span { color: #C9CCD2; font-size: .98rem; }
.module-count { font-size: .9rem; color: #C9CCD2; display: inline-flex; align-items: center; gap: 10px; }
.module-count svg { transition: transform .2s ease; }
.module[open] .module-count svg { transform: rotate(45deg); }
.module ol { margin: 0; padding: 0 26px 24px calc(96px + 46px); display: grid; gap: 8px; color: var(--ground); }
.module ol li::marker { color: var(--apricot); font-family: var(--mono); font-size: .9rem; }
.module.is-first { outline: 2px solid var(--orange); }
@media (max-width: 680px) {
  .module summary { grid-template-columns: 1fr auto; }
  .module-num { grid-column: 1 / -1; }
  .module ol { padding-left: 48px; }
}

/* Aperçu du guide */
.preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.preview figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.preview img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(27,30,35,.10); background: var(--paper); }
.preview figcaption { font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .preview { grid-template-columns: 1fr; max-width: 420px; } }

/* Offre */
.offer { max-width: 720px; margin: 0 auto; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 26px; box-shadow: 0 24px 60px rgba(27,30,35,.12); }
.offer-head { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 4rem); line-height: 1; }
.offer-sub { color: var(--muted); font-size: .98rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks svg { margin-top: 4px; }
.offer .btn-buy { width: 100%; min-height: 60px; font-size: 1.15rem; }
.offer-fine { text-align: center; font-size: .9rem; color: var(--muted); }

/* Pour qui */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.fit h3 { margin-bottom: 18px; font-size: 1.7rem; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* Formateur */
.author { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; }
.author-photo { aspect-ratio: 5 / 6; border-radius: var(--radius-l); background: #E9E5DD; border: 2px dashed #B8B2A7; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; text-align: center; padding: 12px; }
.author-text { display: flex; flex-direction: column; gap: 12px; max-width: 40em; }
@media (max-width: 640px) { .author { grid-template-columns: 1fr; } .author-photo { max-width: 200px; } }

/* FAQ */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--ground); border-radius: var(--radius-m); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--rust); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Appel final */
.closing { text-align: center; }
.closing .wrap { max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.closing h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

/* Pied de page */
.site-footer { background: var(--ink); color: #A9AEB6; border-top: 1px solid #33373F; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #D4D7DC; }

/* Pages légales et pages simples */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 12px; }
.doc .updated { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc p, .doc li { color: #2E3238; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc .note { background: var(--sand); border-radius: var(--radius-m); padding: 18px 22px; margin-top: 24px; }
@media (max-width: 420px) { .brand { font-size: 1.05rem; } .site-header .wrap { flex-wrap: nowrap; } .btn-small { padding: 0 14px; } }
