/* Panerly — système de design partagé (site public + espace abonné). Voir docs/DESIGN.md. */
/* Polices auto-hébergées (SIL OFL) : aucune requête vers Google, meilleur LCP. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  /* Direction « argent et contrat signé » : vert billet (repris du logo) + or pour les gains. */
  --ink: #06100b;
  --panel: #0c1812;
  --panel-2: #122219;
  --line: rgba(220, 255, 235, 0.08);
  --line-strong: rgba(220, 255, 235, 0.15);
  --paper: #eef5f0;
  --mist: #93a59a;
  --lime: #22d17a;
  --lime-text: #3ddc84;
  --on-lime: #03130a;
  --lime-soft: rgba(34, 209, 122, 0.12);
  --gold: #e9bc4f;
  --gold-soft: rgba(233, 188, 79, 0.12);
  --brand-grad: linear-gradient(135deg, #a8e63c 0%, #22d17a 45%, #10b5a0 100%);
  --danger: #ff6b5b;
  --warn: #ffb547;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --logo-filter: none;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #f5f8f4;
  --panel: #ffffff;
  --panel-2: #edf3ee;
  --line: rgba(6, 30, 18, 0.1);
  --line-strong: rgba(6, 30, 18, 0.18);
  --paper: #0b1a12;
  --mist: #56675d;
  --lime: #1fc274;
  --lime-text: #0a7a43;
  --on-lime: #03130a;
  --lime-soft: rgba(16, 160, 90, 0.1);
  --gold: #a87508;
  --gold-soft: rgba(196, 140, 20, 0.12);
  --danger: #c4372a;
  --warn: #9a5b00;
  --shadow: 0 1px 2px rgba(6, 30, 18, 0.05), 0 24px 60px -30px rgba(6, 30, 18, 0.25);
  --logo-filter: none;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 16px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mist); }
.accent { color: var(--lime-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Boutons et champs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: transparent; color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s; white-space: nowrap;
}
.btn:hover { border-color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn-primary { background: var(--brand-grad, var(--lime)); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--mist); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--paper); font-size: 16px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.input::placeholder { color: var(--mist); opacity: 0.8; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mist); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); flex: none; }
.form-error { color: var(--danger); font-size: 14px; min-height: 1em; }
.form-ok { color: var(--lime-text); font-size: 14px; }

/* Puces et badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--mist); white-space: nowrap;
}
.chip-lime { color: var(--lime-text); border-color: color-mix(in srgb, var(--lime-text) 40%, transparent); background: var(--lime-soft); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-text); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; pointer-events: none; }
.site-header .wrap {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; height: 64px; max-width: 1120px; padding: 0 10px 0 24px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.55);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img.wordmark { height: 30px; width: auto; filter: var(--logo-filter); }
/* Logo blanc en sombre, logo prévu pour fond blanc en clair. */
.brand img.logo-light { display: none; }
:root[data-theme="light"] .brand img.logo-light { display: block; }
:root[data-theme="light"] .brand img.logo-dark { display: none; }
.brand img.logo-dark { filter: none; }
.brand img.symbol { height: 28px; width: 28px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mist); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--paper); background: var(--lime-soft); }
.site-header .nav .btn { border-radius: 999px; }
.theme-toggle { width: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; display: grid; place-items: center; color: var(--mist); }
.theme-toggle:hover { color: var(--paper); border-color: var(--line); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .site-header .wrap { height: 58px; padding: 0 8px 0 18px; }
  .brand img.wordmark { height: 26px; }
  .nav { display: none; position: absolute; top: 80px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 12px 16px 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 24px; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; }
  .nav .btn { margin-top: 12px; }
  .menu-btn { display: grid; margin-left: auto; }
  .site-header .theme-toggle.desktop { display: none; }
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); }
.section-head p { color: var(--mist); font-size: 18px; }
.divider { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Hero */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 14%, transparent), transparent 70%); opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(40px, 5.8vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--lime-text); }
.hero-sub { margin-top: 20px; font-size: 19px; color: var(--mist); max-width: 34ch; }
.hero-form { margin-top: 32px; display: flex; gap: 8px; max-width: 600px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--panel); }
.hero-form .input { border: 0; background: transparent; min-height: 52px; box-shadow: none; }
.hero-form .btn { flex: none; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--mist); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--lime-text); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { font-size: 17px; }
}
@media (max-width: 520px) {
  .hero-form { flex-direction: column; padding: 0; border: 0; background: none; }
  .hero-form .input { border: 1px solid var(--line-strong); background: var(--panel); }
  .hero-form .btn { width: 100%; }
}

/* Carte signature : marque qualifiée */
.match-card { position: relative; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.match-card .tag { position: absolute; top: -12px; right: 18px; background: var(--ink); }
.match-top { display: flex; align-items: center; gap: 14px; }
.logo-tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 700 18px var(--font-display); background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.match-name { font: 650 19px var(--font-display); }
.match-meta { font-size: 13px; color: var(--mist); }
.ring { --v: 0; width: 64px; height: 64px; margin-left: auto; flex: none; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line-strong); }
.ring .bar { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: calc(176 - 176 * var(--v) / 100); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.ring b { font: 700 18px var(--font-text); font-variant-numeric: tabular-nums; }
.match-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.match-facts div { background: var(--panel); padding: 10px 12px; }
.match-facts dt { font-size: 11px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.06em; }
.match-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.match-why { font-size: 14px; color: var(--mist); }
.match-why b { color: var(--paper); font-weight: 600; }
.proposal { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--ink); border: 1px dashed var(--line-strong); font-size: 14px; min-height: 124px; }
.proposal .label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.proposal .typed::after { content: "▍"; color: var(--lime-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Bande de sources */
.sources { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: center; color: var(--mist); font-size: 14px; }
.sources b { color: var(--paper); font-weight: 600; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 13px var(--font-text); color: var(--lime-text); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 22px; }
.step p { color: var(--mist); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Aperçu produit */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; display: grid; gap: 14px; align-content: start; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--mist); font-size: 15px; }
.mini { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--ink); font-size: 13px; display: grid; gap: 8px; }
.mini-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-col { display: grid; gap: 6px; align-content: start; }
.mini-col > span { font-size: 11px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.05em; }
.mini-item { padding: 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 12px; }
.mini-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr; } }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; padding: 28px; display: grid; gap: 20px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: none; }
.who b { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.who span, .who a { font-size: 13px; color: var(--mist); text-decoration: none; }
.who a:hover { color: var(--lime-text); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* Tarifs */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); gap: 4px; }
.billing-toggle button { min-height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: none; color: var(--mist); font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.billing-toggle .save { font-size: 12px; color: var(--lime-text); }
.billing-toggle button[aria-pressed="true"] .save { color: #3f6600; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; align-items: stretch; }
.plan { padding: 28px; display: grid; gap: 20px; grid-template-rows: auto auto 1fr auto; position: relative; }
.plan.featured { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), var(--shadow); }
.plan.featured .chip { position: absolute; top: -13px; left: 28px; background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--mist); font-size: 14px; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font: 700 44px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--mist); font-size: 14px; }
.price-note { font-size: 13px; color: var(--mist); min-height: 20px; }
.saving { display: inline-flex; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--lime-text); background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--lime-text) 35%, transparent); font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; align-content: start; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2322d17a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .plan.featured { order: -1; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mist); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--mist); max-width: 70ch; }

/* CTA final */
.cta-final { text-align: center; padding: 72px 24px; border-radius: 24px; border: 1px solid var(--line-strong); background: radial-gradient(120% 120% at 50% 0%, var(--lime-soft), transparent 60%), var(--panel); display: grid; gap: 18px; justify-items: center; }
.cta-final h2 { font-size: clamp(30px, 5vw, 48px); max-width: 18ch; }

/* Bouton collant mobile */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; padding-bottom: env(safe-area-inset-bottom); }
.sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }
@media (max-width: 720px) { .sticky-cta.show { display: block; } }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 600 13px var(--font-text); color: var(--mist); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-grid a { text-decoration: none; color: var(--paper); font-size: 15px; display: inline-block; padding: 6px 0; }
.footer-grid a:hover { color: var(--lime-text); }
.footer-tagline { color: var(--mist); margin-top: 14px; max-width: 32ch; font-size: 15px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mist); font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Pages de texte (légal) */
.prose { max-width: 760px; padding: 56px 0 24px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.prose .updated { color: var(--mist); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--paper) 86%, var(--mist)); margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose a { color: var(--lime-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--mist); font-weight: 600; font-size: 13px; }

/* Pages simples centrées (auth, message) */
.center-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px; display: grid; gap: 20px; }
.auth-card h1 { font-size: 30px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mist); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--panel-2); gap: 4px; }
.tabs button { min-height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 600; cursor: pointer; color: var(--mist); }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* Analyse */
.analyse-shell { max-width: 880px; margin: 0 auto; padding: 48px 20px 80px; }
.analyse-form { padding: 28px; display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .analyse-form { padding: 20px; } }
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; }
.result-head .ring { width: 104px; height: 104px; margin: 0; }
.result-head .ring b { font-size: 30px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.kpi { background: var(--panel); padding: 18px; display: grid; gap: 4px; }
.kpi span { font-size: 12px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi strong { font: 700 26px var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } .result-head { grid-template-columns: 1fr; justify-items: start; } }
.blurred-list { display: grid; gap: 8px; position: relative; }
.blur-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.blur-row .name { filter: blur(6px); user-select: none; font-weight: 700; letter-spacing: 0.1em; }
.blur-row .fit { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lime-text); }
.gate { padding: 24px; display: grid; gap: 14px; border-color: var(--lime); }
.loader { display: grid; gap: 14px; padding: 32px; text-align: center; justify-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--panel-2), color-mix(in srgb, var(--panel-2) 60%, var(--line-strong)), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); font-size: 14px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.notice.err { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Ajustements téléphone */
@media (max-width: 520px) {
  .match-card { padding: 18px; }
  .match-top { gap: 12px; }
  .logo-tile { width: 40px; height: 40px; font-size: 16px; }
  .ring { width: 56px; height: 56px; }
  .match-facts dd { font-size: 13px; }
  .match-facts div { padding: 8px 10px; }
  .match-name .muted { display: block; }
  .sources { gap: 6px 16px; font-size: 13px; justify-content: flex-start; }
  .sources > span:first-child { width: 100%; }
}

/* Or : gains, montants signés, commissions */
.gold { color: var(--gold); }
.chip-gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft); }
.hero h1 em { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero h1 em { background: linear-gradient(135deg, #0a7a43, #0c8f7e); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 520px) {
  .cta-final { padding: 48px 16px; }
  .cta-final h2 { font-size: 26px; overflow-wrap: anywhere; }
  .cta-final .btn { white-space: normal; text-align: center; }
}
.hero-form select.input { min-width: 0; flex: 1 1 auto; padding-right: 8px; }

/* Haut de page : une promesse, une action, rien d'autre (écran entier) */
.hero-focus { min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); display: grid; place-items: center; padding: 24px 0 64px; }
.hero-focus::before { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; max-width: 160vw; opacity: 0.8; }
.hero-center { position: relative; display: grid; justify-items: center; text-align: center; gap: 32px; }
.hero-focus h1 { font-size: clamp(44px, 8.4vw, 104px); line-height: 0.98; max-width: 12ch; letter-spacing: -0.045em; }
.hero-focus h1 em { display: inline-block; }
.hero-cta { margin: 0; width: 100%; max-width: 560px; }
.hero-micro { color: var(--mist); font-size: 14px; margin-top: -12px; }
.scroll-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--mist); text-decoration: none; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .example-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) {
  .hero-focus { min-height: calc(100svh - 72px); padding-bottom: 80px; }
  .hero-center { gap: 28px; }
  .hero-focus h1 { font-size: 46px; }
}
.hero-focus { position: relative; }

.terms-note { font-size: 13px; line-height: 1.5; margin: 0; text-align: center; }
.terms-note a { color: var(--paper); }

/* Analyse : questionnaire une question par écran (même esprit que l'accueil) */
.quiz-shell { max-width: 760px; margin: 0 auto; padding: 8px 20px 80px; }
.quiz-top { display: flex; align-items: center; gap: 14px; height: 44px; margin-bottom: 8px; }
.quiz-back { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--paper); font-size: 18px; cursor: pointer; flex: none; }
.quiz-progress { flex: 1; height: 4px; border-radius: 99px; background: var(--line-strong); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--brand-grad); border-radius: 99px; transition: width .35s ease; }
.quiz { min-height: calc(100svh - 190px); display: grid; align-content: center; gap: 12px; }
.quiz-step { display: grid; gap: 32px; justify-items: center; text-align: center; animation: quizIn .35s ease both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz-step { animation: none; } }
.quiz-title { font-size: clamp(36px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; }
.quiz-options { display: grid; gap: 10px; width: 100%; max-width: 440px; }
.quiz-options.grid { max-width: 640px; grid-template-columns: repeat(2, 1fr); }
.quiz-option { min-height: 56px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--paper); font: 600 16px var(--font-text); cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.quiz-option:hover { border-color: var(--lime); }
.quiz-option:active { transform: scale(.98); }
.quiz-option.on { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.quiz-fields { display: grid; gap: 12px; width: 100%; max-width: 440px; }
.quiz-input { min-height: 58px; font-size: 17px; text-align: center; border-radius: 16px; }
.quiz .form-error { text-align: center; }
.quiz-loading { min-height: calc(100svh - 160px); display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; }
.spinner.big { width: 72px; height: 72px; border-width: 4px; }
.quiz-loading-text { font: 600 clamp(22px, 3.4vw, 30px)/1.2 var(--font-display); letter-spacing: -0.02em; }
@media (max-width: 560px) { .quiz-options.grid { grid-template-columns: 1fr; } .quiz-title { font-size: 38px; } .quiz-step { gap: 26px; } }

/* Analyse : résultat */
.res-hero { min-height: calc(100svh - 170px); display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 8px 0 32px; }
.score-ring { --v: 0; position: relative; width: min(280px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.score-ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 209, 122, .16), transparent 70%); }
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 12; }
.score-ring .track { stroke: var(--line-strong); }
.score-ring .bar { stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: calc(var(--c) - var(--c) * var(--v) / 100); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.score-num { display: grid; justify-items: center; line-height: 1; }
.score-num b { font: 700 clamp(72px, 14vw, 104px)/1 var(--font-display); letter-spacing: -0.05em; }
.score-num span { color: var(--mist); font-size: 15px; margin-top: 6px; }
.res-name { color: var(--mist); font-size: 15px; }
.res-verdict { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.05; letter-spacing: -0.035em; max-width: 16ch; }
.res-block { display: grid; gap: 18px; padding: 48px 0; border-top: 1px solid var(--line); }
.res-h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; }
.res-money { justify-items: center; text-align: center; gap: 10px; }
.res-money strong { font: 700 clamp(44px, 9vw, 84px)/1 var(--font-display); letter-spacing: -0.045em; color: var(--gold); }
.crits { display: grid; gap: 14px; }
.crit { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 52px; align-items: center; gap: 14px; font-size: 15px; }
.crit b { text-align: right; font-size: 14px; }
.crit-bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.crit-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--brand-grad); }
.crit-bar i.low { background: var(--warn); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.pros-cons p { font-size: 15px; padding-left: 26px; position: relative; }
.pros-cons p::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pros-cons .pro::before { content: "+"; color: var(--lime-text); }
.pros-cons .con { color: var(--mist); }
.pros-cons .con::before { content: "→"; color: var(--warn); }
.sponsors { display: grid; gap: 10px; }
.sponsor { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel); }
.sp-main { display: grid; gap: 2px; min-width: 0; }
.sp-main b { font-size: 17px; }
.sp-main span { color: var(--mist); font-size: 13px; }
.sp-main p { font-size: 14px; margin-top: 6px; color: var(--mist); }
.sp-side { display: grid; justify-items: end; align-content: start; gap: 4px; flex: none; font-size: 14px; font-weight: 600; }
.sp-fit { color: var(--lime-text); font-size: 18px; font-weight: 700; }
.res-unlock { justify-items: center; text-align: center; gap: 16px; }
.blurs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; }
.blurs span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); filter: blur(5px); user-select: none; font-weight: 700; letter-spacing: .12em; }
.res-cta-title { font-size: clamp(28px, 4.6vw, 44px); letter-spacing: -0.035em; }
.mail-form { display: grid; gap: 10px; width: 100%; max-width: 440px; text-align: left; }
@media (max-width: 640px) {
  .crit { grid-template-columns: 1fr 44px; }
  .crit .crit-bar { grid-column: 1 / -1; grid-row: 2; }
  .pros-cons { grid-template-columns: 1fr; }
  .sponsor { flex-direction: column; gap: 8px; }
  .sp-side { justify-items: start; grid-auto-flow: column; gap: 14px; align-items: baseline; }
  .res-block { padding: 40px 0; }
}
.mail-form .copy { display: flex; gap: 8px; }
.lang-switch { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--mist); }
.lang-switch:hover { color: var(--paper); border-color: var(--lime); }

/* Accueil : exemple épuré (3 sponsors notés) */
.example-focus { min-height: 100svh; display: grid; place-items: center; padding: 64px 0; }
.example-center { display: grid; justify-items: center; text-align: center; gap: 18px; }
.example-center h2 { font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 18px; }
.match-stack { position: relative; width: min(560px, 100%); display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow); text-align: left; }
.match-stack .tag { position: absolute; top: -12px; right: 18px; background: var(--ink); }
.match-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); }
.match-id { display: grid; min-width: 0; flex: 1; }
.match-id b { font: 650 17px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-id span { font-size: 13px; color: var(--mist); }
.match-budget { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.match-row .ring { width: 54px; height: 54px; margin: 0; }
.match-row .ring b { font-size: 16px; }
@media (max-width: 560px) {
  /* Mobile : le budget passe sous le nom (le nom n'est plus coupé). */
  .match-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tile id ring" "tile budget ring"; column-gap: 12px; row-gap: 2px; padding: 10px 12px; }
  .match-row .match-logo { grid-area: tile; } .match-id { grid-area: id; } .match-budget { grid-area: budget; font-size: 14px; } .match-row .ring { grid-area: ring; width: 48px; height: 48px; }
  .match-id span { display: none; } .match-id b { font-size: 16px; }
}
.match-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--panel); border: 1px solid var(--line); }

/* Accueil : aperçu du vrai tableau de bord */
.showcase-center { display: grid; justify-items: center; text-align: center; gap: 18px; }
.showcase-center h2 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; }
.showcase-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); margin-top: 6px; }
.showcase-tabs button { border: 0; background: none; color: var(--mist); font: 600 14px var(--font-text); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.showcase-tabs button[aria-selected="true"] { background: var(--lime); color: var(--on-lime); }
.shot { margin: 8px 0 0; width: min(860px, 100%); border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #06100b; box-shadow: 0 40px 120px -40px rgba(34, 209, 122, 0.35), var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #0c1812; border-bottom: 1px solid rgba(220, 255, 235, 0.08); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(220, 255, 235, 0.18); }
.shot-bar span { margin-left: 10px; font-size: 12px; color: #93a59a; }
.shot img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .showcase-tabs button { padding: 8px 12px; font-size: 13px; }
  /* Mobile : capture du tableau de bord sur téléphone, dans un cadre de téléphone. */
  .shot { width: min(250px, 70vw); border-radius: 28px; border: 6px solid #1a2a21; }
  .shot-bar { display: none; }
}
