:root {
  --ink: #10141c; --muted: #5a6473; --bg: #ffffff; --soft: #f4f6fa; --line: #e4e8ef;
  --primary: #2447d8; --accent: #12876a; --radius: 18px; --wide: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef1f6; --muted: #9aa4b4; --bg: #0c0f15; --soft: #141924; --line: #222a37;
          --primary: #7d9bff; --accent: #4ec59d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
header.site { position: sticky; top: 0; z-index: 10; display: flex; gap: 20px; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
header nav { display: flex; gap: 18px; flex-wrap: wrap; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header nav a:hover { color: var(--ink); }
main { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }
section { padding: clamp(48px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h1 { font-size: clamp(40px, 8vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 12px 0 18px; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 24px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent); margin: 0; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 62ch; }
.hero { padding-top: clamp(40px, 7vw, 80px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.button { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; transition: transform .15s ease, opacity .15s ease; }
.button:hover { opacity: .92; } .button:active { transform: scale(.98); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.fineprint { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid article { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid article p { color: var(--muted); margin: 0; }
.feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.feature.invert { background: var(--soft); border-radius: 26px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); grid-template-columns: 1fr; }
.khalot-visual { display: grid; place-items: center; aspect-ratio: 1.6; border-radius: 26px;
  background: linear-gradient(135deg, #16223b, #24407d); color: #f0c46a; font-size: 34px; letter-spacing: 18px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }
footer { max-width: var(--wide); margin: 0 auto; padding: 40px clamp(16px, 5vw, 48px) 60px; color: var(--muted); }
footer p { margin: 6px 0; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  /* La navigation ne disparaît plus sur téléphone : elle défile horizontalement.
     La moitié des visiteurs arrivent d'un lien partagé, sur un iPhone. */
  header.site { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 8px; }
  header nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { white-space: nowrap; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Le manifeste : du texte long, une colonne étroite. */
.manifeste section p { max-width: 68ch; }
.manifeste section h2 { margin-bottom: 16px; }
.manifeste section + section { border-top: 0; }
header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Liste de diffusion */
#newsletter { margin-top: 24px; }
#newsletter .champs { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
#newsletter label { display: block; font-size: 14px; color: var(--muted); }
#newsletter input[type="email"], #newsletter select {
  width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
#newsletter input[type="email"]:focus-visible, #newsletter select:focus-visible,
#newsletter button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#newsletter .case { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; max-width: 70ch; }
#newsletter .case input { margin-top: 3px; }
#newsletter button { border: 0; font: inherit; cursor: pointer; }
#newsletter button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 760px) { #newsletter .champs { grid-template-columns: 1fr; } }

/* Le « pourquoi », juste sous le titre : bloc sombre, gros caractères. */
.pourquoi { background: linear-gradient(135deg, #16223b, #24407d); color: #fff;
  border-radius: 26px; padding: clamp(28px, 5vw, 56px); border: 0; margin: 8px 0 12px; }
.pourquoi .eyebrow { color: #7fe3c4; }
.pourquoi blockquote { margin: 16px 0 24px; padding: 0 0 0 20px; border-left: 3px solid #7fe3c4; }
.pourquoi blockquote p { margin: 0; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.3;
  letter-spacing: -.02em; font-weight: 600; }
.pourquoi > p { max-width: 66ch; color: rgba(255, 255, 255, .82); }
.button.clair { background: #fff; color: #16223b; }

/* Aperçu : capture d'écran à gauche, extrait réel à droite. */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; margin: 24px 0; }
.demo .ecran { margin: 0; }
.demo .ecran img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line);
  background: #000; box-shadow: 0 18px 40px rgba(16, 20, 28, .18); }
.extrait { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.extrait h3 { font-size: 22px; margin: 4px 0 4px; letter-spacing: -.01em; }
.extrait h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin: 22px 0 8px; }
.extrait p, .extrait li { color: var(--ink); }
.extrait ul, .extrait ol { margin: 0; padding-left: 20px; }
.extrait li { margin-bottom: 8px; }
.etiquette { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin: 0; }
.demo:has(.ecran + .ecran) { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .demo .ecran { max-width: 300px; } }

/* Vitrine des captures, sur l'accueil */
.vitrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.vitrine figure { margin: 0; }
.vitrine img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line);
  background: #000; box-shadow: 0 14px 30px rgba(16, 20, 28, .16); }
.vitrine figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.vitrine figcaption strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 900px) {
  .vitrine { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 520px) { .vitrine { grid-template-columns: 1fr; max-width: 320px; } }

/* Fiches de méthode publiées */
.fiche section h3 { font-size: 19px; margin: 26px 0 6px; letter-spacing: -.01em; }
.fiche section p { max-width: 68ch; }
ul.essentiel, ul.pieges { max-width: 68ch; padding-left: 0; list-style: none; }
ul.essentiel li, ul.pieges li { position: relative; padding-left: 28px; margin-bottom: 12px; }
ul.essentiel li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
ul.pieges li::before { content: "×"; position: absolute; left: 2px; color: #c2410c; font-weight: 700; font-size: 19px; line-height: 1.3; }
