:root {
  --paper: #F1F3F2;
  --surface: #FFFFFF;
  --ink: #101C26;
  --muted: #46555F;
  --line: #CFD6D4;
  --blue: #234B7A;
  --blue-ink: #FFFFFF;
  --signal: #F5C242;
  --star: #C48E00;
  --ok: #1B7F52;
  --focus: #234B7A;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1822;
    --surface: #15232F;
    --ink: #E9EFF3;
    --muted: #A6B4BE;
    --line: #2A3B48;
    --blue: #8DBBEE;
    --blue-ink: #0E1822;
    --star: #F5C242;
    --ok: #5ED39A;
    --focus: #8DBBEE;
  }
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: var(--blue); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* En-tête */
.site-head { border-bottom: 1px solid var(--line); }
.site-head__row { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { display: block; }

/* Boutons */
.btn { display: inline-block; padding: 0.85rem 1.3rem; border-radius: 10px; background: var(--blue); color: var(--blue-ink); font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { cursor: default; filter: none; opacity: 0.85; }
.btn--quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--small { padding: 0.55rem 0.95rem; }

/* Accueil */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.05fr 0.95fr; align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

h1 { font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 1rem; max-width: 22ch; }
.lede { font-size: 1.2rem; max-width: 46ch; color: var(--muted); margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.75rem; }
.fineprint { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Démo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.demo__tag { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.9rem; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.stars { color: var(--star); letter-spacing: 0.12em; font-size: 1.1rem; }
.review__meta { font-size: 0.9rem; color: var(--muted); margin: 0.15rem 0 0.4rem; }
.review p { margin: 0; }
.reply { animation: reveal 0.6s 0.5s both; }
.reply__label { font-weight: 700; font-size: 0.95rem; margin: 0; }
.reply__text { margin: 0.4rem 0 1rem; padding: 0.75rem 0.9rem; border-left: 3px solid var(--signal); background: rgba(245, 194, 66, 0.15); border-radius: 0 8px 8px 0; }
.reply[data-state="done"] .reply__text { border-left-color: var(--ok); }
.demo__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.demo__status { min-height: 1.6rem; margin: 0.8rem 0 0; font-weight: 700; color: var(--ok); font-size: 0.95rem; }

@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reply { animation: none; } }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1.5rem; font-weight: 800; max-width: 28ch; }

.cols3 { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cols3 { grid-template-columns: 1fr; gap: 1.5rem; } }
.cols3 h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.cols3 p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 62ch; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.9rem; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; }
.steps strong { display: block; }
.steps span { color: var(--muted); }

.plans { display: grid; gap: 1.25rem; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; background: var(--surface); }
.plan--main { border: 2px solid var(--blue); }
.plan h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 1.1rem; margin: 1rem 0 0; color: var(--muted); }
.notice { margin: 1.25rem 0 0; max-width: 62ch; font-weight: 600; }

details { border-top: 1px solid var(--line); padding: 1rem 0; max-width: 72ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

.form { display: grid; gap: 1rem; max-width: 520px; }
.form label { display: grid; gap: 0.35rem; font-weight: 700; }
.form input, .form select { font: inherit; font-weight: 400; padding: 0.75rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.form .consent { font-size: 0.92rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.site-foot { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-foot p { margin: 0; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0.6rem 0 0; }

/* Pages de texte */
.prose { max-width: 68ch; padding: 2.5rem 0 4rem; }
.prose h1 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); max-width: none; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; max-width: none; }
.prose p, .prose li { color: var(--ink); }
.todo { background: rgba(245, 194, 66, 0.45); padding: 0 0.25em; border-radius: 3px; font-weight: 700; }
