/* RÉPONDU — feuille de style unique, sans dépendance externe. Mobile d'abord. */
:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #1f1c18;
  --muted: #625b52;
  --line: #e4ddd2;
  --accent: #a8401c;
  --accent-ink: #ffffff;
  --accent-soft: #f6e7df;
  --ok: #2f6b3f;
  --ok-soft: #e6f0e8;
  --star: #c98a12;
  --radius: 12px;
  --max: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171512;
    --card: #211e1a;
    --ink: #f1ece4;
    --muted: #b3aa9d;
    --line: #36312a;
    --accent: #e0774f;
    --accent-ink: #1b0e08;
    --accent-soft: #3a2419;
    --ok: #8cc79a;
    --ok-soft: #1f2e22;
    --star: #e2ad3f;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.top { border-bottom: 1px solid var(--line); }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.75rem;
}
.brand {
  font-weight: 800; letter-spacing: 0.06em; color: var(--ink);
  text-decoration: none; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.brand img { display: block; }
.brand em { color: var(--accent); font-style: normal; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; margin-left: 1rem; }
.top nav a:hover { color: var(--ink); }
.top nav .hide-sm { display: none; }

/* Titres et sections */
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Bandeau d'accueil */
.hero { padding-top: 3rem; padding-bottom: 2.5rem; }
.hero h1 { max-width: 44rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 700; padding: 0.85rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }

/* Grilles */
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem;
}
.card p:last-child { margin-bottom: 0; }

/* Étapes */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.steps li { position: relative; padding-left: 3.25rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.25rem; top: 1.2rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 0.95rem; display: grid; place-items: center;
}

/* Exemples avant / après */
.example { padding: 0; overflow: hidden; }
.example .review, .example .reply { padding: 1.1rem 1.25rem; }
.example .reply { background: var(--ok-soft); border-top: 1px solid var(--line); }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px;
  margin-bottom: 0.6rem;
}
.tag-before { background: var(--accent-soft); color: var(--accent); }
.tag-after { background: var(--card); color: var(--ok); border: 1px solid var(--line); }
.who { font-weight: 700; margin: 0; }
.stars { color: var(--star); letter-spacing: 0.1em; font-size: 0.95rem; }
.stars .off { color: var(--line); }
.quote { margin: 0.4rem 0 0; }
.owner { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.25rem; }
.rules { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Prix */
.price { font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 0.25rem 0 0.5rem; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.4rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.25rem; margin-bottom: 0.75rem;
}
summary {
  cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 1rem; }

/* Pages légales */
.legal { padding-top: 2.5rem; padding-bottom: 3rem; max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal dl { margin: 0; }
.legal dt { font-weight: 700; margin-top: 0.75rem; }
.legal dd { margin: 0; }
.todo {
  background: #fff3c4; color: #5a4300; padding: 0 0.3em; border-radius: 4px;
  font-weight: 700; outline: 1px dashed #b08a00;
}

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; }

@media (min-width: 40rem) {
  .top nav .hide-sm { display: inline; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 4.5rem; padding-bottom: 3.5rem; }
  section { padding: 4rem 0; }
}
@media (min-width: 60rem) {
  .examples { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
