/* Symptonia design system
   Palette, typographie, composants et mise en page.
   Aucune dépendance externe : tout est servi depuis le domaine. */

:root {
  --ink: #0a1c19;
  --ink-2: #334743;
  --muted: #6b807b;
  --line: #e3e9e7;
  --line-soft: #eef3f1;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --bg-deep: #06211c;

  --brand: #0f8a72;
  --brand-dark: #0a5e4e;
  --brand-tint: #e7f4f1;
  --brand-glow: rgba(15, 138, 114, 0.16);

  --urgent: #c0392b;
  --urgent-tint: #fdeceb;
  --warn: #b7791f;
  --warn-tint: #fdf4e3;
  --calm: #0f8a72;
  --calm-tint: #e7f4f1;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(10, 28, 25, 0.05), 0 2px 8px rgba(10, 28, 25, 0.04);
  --shadow: 0 2px 4px rgba(10, 28, 25, 0.04), 0 12px 32px rgba(10, 28, 25, 0.08);
  --shadow-l: 0 4px 8px rgba(10, 28, 25, 0.04), 0 24px 64px rgba(10, 28, 25, 0.12);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --wrap-narrow: 760px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Eyebrow, badges ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
}
.badge-brand { background: var(--brand-tint); border-color: transparent; color: var(--brand-dark); }
.badge-warn { background: var(--warn-tint); border-color: transparent; color: var(--warn); }

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: var(--radius-s);
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }

/* Un bouton dans la navigation garde ses propres couleurs :
   .nav a est plus specifique que .btn-primary, il faut donc le neutraliser ici. */
.nav a.btn-primary,
.nav a.btn-primary:hover { color: #fff; background: var(--brand-dark); }
.nav a.btn-primary:hover { background: #084c40; }
.nav a.btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 94, 78, 0.3), 0 8px 22px var(--brand-glow);
}
.btn-primary:hover { background: #084c40; color: #fff; box-shadow: 0 2px 4px rgba(10, 94, 78, 0.3), 0 14px 34px var(--brand-glow); }

.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: #cfdad7; }

.btn-lg { padding: 15px 30px; font-size: 1.03rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 420px at 78% -10%, var(--brand-tint), transparent 62%),
    radial-gradient(700px 340px at 8% 8%, #f0f6f4, transparent 60%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; max-width: 34em; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------- Demo card ---------- */

.demo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.demo-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }

.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.bubble-bot { background: var(--bg-alt); border: 1px solid var(--line-soft); border-bottom-left-radius: 5px; }
.bubble-me { background: var(--brand-dark); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }

.verdict {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg);
}
.verdict-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.verdict-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--warn-tint);
  color: var(--warn);
}
.verdict ul { margin: 0; padding-left: 18px; font-size: 0.87rem; color: var(--ink-2); }
.verdict li { margin-bottom: 5px; }

.meter { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.meter-row { display: grid; grid-template-columns: 1fr 66px; gap: 10px; align-items: center; font-size: 0.85rem; }
.meter-track { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--brand); border-radius: 999px; }
.meter-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.8rem; }

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card-hover:hover { border-color: #cfdad7; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--ink-2); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ---------- Stats ---------- */

.stat { padding: 22px 0; }
.stat-num {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 620px; }
thead th {
  text-align: left;
  padding: 15px 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody th {
  text-align: left;
  padding: 15px 18px;
  font-weight: 650;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
tbody tr:last-child th { border-bottom: 0; }
.col-us { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
thead .col-us { background: #d8ece7; color: var(--brand-dark); }

/* ---------- Prose ---------- */

.prose { max-width: var(--wrap-narrow); }
.prose h2 { margin-top: 2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--brand); }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 650; margin-top: 1em; }
.prose dd { margin: 0.2em 0 0; color: var(--ink-2); }
.prose table { min-width: 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand);
  color: var(--ink-2);
  font-size: 1.05rem;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-soft);
}

.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { max-width: 44em; }

.breadcrumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 7px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.86rem;
  color: var(--muted);
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Callouts ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-s);
  background: var(--bg-alt);
  padding: 18px 20px;
  margin: 1.8em 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--ink); }
.callout-urgent { border-left-color: var(--urgent); background: var(--urgent-tint); border-color: #f6d5d2; }
.callout-warn { border-left-color: var(--warn); background: var(--warn-tint); border-color: #f3e4c6; }

/* ---------- Author box ---------- */

.author-hero {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: start;
}
@media (max-width: 720px) { .author-hero { grid-template-columns: 1fr; gap: 22px; } }

.author-photo {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.author-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

.author-box {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-alt);
  margin-top: 3em;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.author-box p { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0.6em; }
.author-box .name { font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.author-box .role { font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--bg);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 620;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-answer { padding: 0 22px 20px; font-size: 0.95rem; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--bg-deep);
  color: #dcebe7;
  border-radius: var(--radius-l);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  background-image: radial-gradient(700px 300px at 50% -30%, rgba(15, 138, 114, 0.42), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #a9c4bd; max-width: 46em; margin-inline: auto; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cta-band .btn-primary { background: var(--brand); }
.cta-band .btn-primary:hover { background: #12a386; }

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-deep);
  color: #9fb8b2;
  padding-block: 64px 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px 28px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

.footer-brand p { max-width: 30em; color: #7e9a94; font-size: 0.87rem; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand:hover { color: #fff; }

.footer h4 {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: #9fb8b2; text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: #6d8781;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.83rem;
  color: #a9c4bd;
}
.footer-note strong { color: #fff; }

.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb8b2;
}
.social-row a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.social-row svg { width: 17px; height: 17px; }

/* ---------- Sitemap page ---------- */

.sitemap-col h2 { font-size: 1.1rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sitemap-col a { font-weight: 600; text-decoration: none; }
.sitemap-col a:hover { text-decoration: underline; }
.sitemap-col span { display: block; font-size: 0.86rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-3 { margin-bottom: 32px; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================ Démonstrateur */

.demo-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

#demo-app { min-height: 420px; }

/* Choix du scénario */

.demo-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.demo-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 780px) { .demo-cards { grid-template-columns: 1fr; } }

.demo-card {
  display: block;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  /* La carte est un lien : neutraliser le style de lien sur tout son contenu,
     seul le libelle .demo-go doit se lire comme une action. */
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.demo-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.demo-card h3 { margin: 12px 0 4px; font-size: 1.12rem; color: var(--ink); }
.demo-card:hover h3 { color: var(--brand-dark); }
.demo-card p { margin: 0 0 10px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.demo-card .demo-profil { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.demo-go { font-size: 0.9rem; font-weight: 650; color: var(--brand-dark); }
.demo-go::after { content: " →"; }

.badge-urgent { background: var(--urgent-tint); color: var(--urgent); border-color: transparent; }
.badge-calm { background: var(--calm-tint); color: var(--calm); border-color: transparent; }

/* Scène */

.demo-stage { display: flex; flex-direction: column; gap: 18px; }

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.demo-head-title { font-weight: 700; font-size: 1.15rem; margin: 0 0 2px; letter-spacing: -0.02em; }
.demo-head .demo-profil { font-size: 0.86rem; color: var(--muted); margin: 0; }
.demo-head .demo-kicker { margin-bottom: 6px; }

.demo-quit {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.demo-quit:hover { background: var(--bg-alt); border-color: #cfdad7; }

.demo-phrase { align-self: flex-start; max-width: 46em; font-size: 1rem; }

.demo-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

/* Question */

.demo-ask {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}
.demo-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.demo-tag-urgent { color: var(--urgent); background: var(--urgent-tint); }

.demo-question {
  font-size: 1.16rem;
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.demo-answers { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-answers-end { margin-top: 24px; }

.demo-why { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.demo-why summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
  list-style: none;
}
.demo-why summary::-webkit-details-marker { display: none; }
.demo-why summary::before { content: "＋ "; }
.demo-why[open] summary::before { content: "－ "; }
.demo-why-body { font-size: 0.9rem; color: var(--ink-2); padding-top: 10px; }
.demo-why-body p { margin: 0; }

/* Panneau des probabilités */

.demo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-alt);
}
.demo-panel-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.demo-panel .meter-row { grid-template-columns: 1fr 48px; }
.demo-panel .meter-fill { transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.meter-fill-crit { background: var(--urgent); }
.demo-crit {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--urgent);
  background: var(--urgent-tint);
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.demo-panel-foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Journal du raisonnement */

.demo-log {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
}
.demo-log-item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.demo-log-item:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-log-item:first-of-type { padding-top: 0; }
.demo-log-q { margin: 0 0 5px; font-size: 0.92rem; color: var(--ink-2); }
.demo-log-a { font-weight: 700; color: var(--ink); }
.demo-log-a::before { content: "→ "; color: var(--muted); font-weight: 400; }
.demo-log-e { margin: 0; font-size: 0.84rem; color: var(--muted); }
.demo-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-delta.up { color: var(--brand-dark); }
.demo-delta.down { color: var(--urgent); }

/* Résultat */

.demo-result { display: flex; flex-direction: column; gap: 18px; }
.demo-result > p { margin: 0; }
.demo-result-title { font-size: 1.5rem; margin: 0; }

.demo-verdict {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--brand-tint);
}
.demo-verdict h3 { margin: 10px 0 8px; font-size: 1.5rem; }
.demo-verdict p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.demo-verdict-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
}
.demo-verdict-urgent { border-left-color: var(--urgent); background: var(--urgent-tint); border-color: #f6d5d2; }
.demo-verdict-urgent .demo-verdict-pill { background: var(--urgent); }
.demo-verdict-warn { border-left-color: var(--warn); background: var(--warn-tint); border-color: #f3e4c6; }
.demo-verdict-warn .demo-verdict-pill { background: var(--warn); }
.demo-verdict-calm { border-left-color: var(--calm); background: var(--calm-tint); }

.demo-result .callout { margin: 0; }
.demo-result .callout ul { margin: 8px 0 0; padding-left: 20px; }
.demo-result .callout li { margin-bottom: 4px; }
.demo-result-links { font-size: 0.9rem; color: var(--muted); }

/* Bandeau d'avertissement permanent */

.demo-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #f3e4c6;
  border-left: 3px solid var(--warn);
  background: var(--warn-tint);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.demo-warning svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--warn); margin-top: 2px; }
.demo-warning strong { color: var(--ink); }
.demo-warning p { margin: 0; }

/* Bandeau d'appel à l'action, présent sur toutes les pages */

.try-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(600px 240px at 88% -30%, var(--brand-tint), transparent 68%),
    var(--bg-alt);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  margin-top: 3em;
}
@media (max-width: 780px) { .try-band { grid-template-columns: 1fr; } }
.try-band h2, .try-band h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.try-band p { margin: 0; color: var(--ink-2); font-size: 0.96rem; max-width: 46em; }
.try-band .btn { white-space: nowrap; }
