/* Polices hébergées sur le serveur : aucune requête vers Google, aucune IP visiteur transmise (RGPD) */
@font-face{font-family:"Fraunces";src:url("fonts/fraunces.woff2") format("woff2-variations");font-weight:100 900;font-style:normal;font-display:swap;}
@font-face{font-family:"Fraunces";src:url("fonts/fraunces-italic.woff2") format("woff2-variations");font-weight:100 900;font-style:italic;font-display:swap;}
@font-face{font-family:"Public Sans";src:url("fonts/public-sans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Public Sans";src:url("fonts/public-sans-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"Public Sans";src:url("fonts/public-sans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"JetBrains Mono";src:url("fonts/jetbrains-mono-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"JetBrains Mono";src:url("fonts/jetbrains-mono-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
/* Le fichier variable de Fraunces active par défaut les axes SOFT et WONK (empattements fantaisie).
   Google Fonts les livrait à zéro : on les remet à zéro pour retrouver le dessin d'origine. */
body { font-variation-settings: "SOFT" 0, "WONK" 0; font-optical-sizing: auto; }

/* ============================================================
   Blason — feuille de style
   Palette : ardoise verte (awning) + moutarde, ground gris-vert
   ============================================================ */
/* Palette V9 « Blason » : les trois émaux héraldiques — azur, or, gueules — sur blanc chaud */
:root {
  --bg: #FFFDF8;
  --bg-2: #EDF1FD;
  --bg-3: #FFF4E4;
  --surface: #FFFFFF;
  --ink: #131A33;
  --ink-2: #3B4568;
  --muted: #78829F;
  --line: #DDE3F5;
  --accent: #16266F;
  --accent-bright: #1F3496;
  --accent-ink: #FFFDF8;
  --accent-soft: #E3E9FE;
  --gold: #FFC53D;
  --gold-soft: #FFF1C9;
  --danger: #E4503A;
  --danger-soft: #FFE3DC;
  --ok: #16266F;
  --shadow: 0 14px 34px -14px rgba(19,26,51,.26);
  --radius: 10px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1426; --bg-2: #171E36; --bg-3: #2B2318; --surface: #1B2340;
    --ink: #EDF0FA; --ink-2: #C3CAE4; --muted: #8B95B8; --line: #2E3757;
    --accent: #8FA8FF; --accent-bright: #5C7CF5; --accent-ink: #0F1426; --accent-soft: #1E2A55;
    --gold: #FFD166; --gold-soft: #3D3117;
    --danger: #FF8A75; --danger-soft: #46251F; --ok: #8FA8FF;
    --shadow: 0 14px 34px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0F1426; --bg-2: #171E36; --bg-3: #2B2318; --surface: #1B2340;
  --ink: #EDF0FA; --ink-2: #C3CAE4; --muted: #8B95B8; --line: #2E3757;
  --accent: #8FA8FF; --accent-bright: #5C7CF5; --accent-ink: #0F1426; --accent-soft: #1E2A55;
  --gold: #FFD166; --gold-soft: #3D3117;
  --danger: #FF8A75; --danger-soft: #46251F; --ok: #8FA8FF;
  --shadow: 0 14px 34px -14px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: .75rem; display: inline-flex; align-items: baseline; gap: .5rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.placeholder { background: var(--gold-soft); color: var(--ink); padding: 0 .3em; border-radius: 3px; font-family: var(--font-mono); font-size: .9em; }
.notice { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: .8rem 1rem; border-radius: 0 6px 6px 0; margin: 1.2rem 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--bg-2); }
.section-warm { background: var(--bg-3); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.center { text-align: center; }
.center h2, .center p { margin-inline: auto; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; letter-spacing: .17em; text-indent: .17em; text-transform: uppercase; }
.brand-tag { font-size: .62rem; letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: .3rem; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.only-xs { display: none; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .55rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem; gap: .9rem; }
  .nav.open { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  /* En-tete etroit : le signe et le nom retrecissent, la baseline disparait */
  .site-header .wrap { height: 66px; }
  .nav { top: 66px; }
  .brand { gap: .55rem; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.02rem; letter-spacing: .13em; text-indent: .13em; }
  .brand-tag { display: none; }
  .hide-xs { display: none; }
  .only-xs { display: inline; }
  .nav-cta .btn { padding: .6rem .9rem; font-size: .9rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .12s ease, background .15s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-bright); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(22,38,111,.5); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-bright) 88%, black); }
.btn-gold { background: var(--gold); color: #131A33; box-shadow: 0 6px 18px -8px rgba(255,197,61,.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 52ch; }
.hero .row { margin-top: 1.5rem; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.hero em { font-style: italic; color: var(--accent); }

/* ---------- Audit card (the "ardoise") ---------- */
.ardoise { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.4rem; position: relative; }
.ardoise-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .8rem; margin-bottom: 1rem; }
.ardoise-head .name { font-family: var(--font-display); font-size: 1.15rem; }
.score { display: flex; align-items: baseline; gap: .3rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.score b { font-size: 2.2rem; font-weight: 600; color: var(--danger); line-height: 1; }
.score.good b { color: var(--ok); }
.score span { color: var(--muted); font-size: .85rem; }
.engine-list { display: flex; flex-direction: column; gap: .6rem; }
.engine { display: grid; grid-template-columns: 110px 1fr auto; gap: .8rem; align-items: center; font-size: .92rem; }
.engine .label { font-weight: 600; color: var(--ink-2); }
.engine .quote { color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .engine { grid-template-columns: 1fr auto; } .engine .quote { display: none; } }
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.pill-bad { background: var(--danger-soft); color: var(--danger); }
.pill-mid { background: var(--gold-soft); color: #8A5A00; }
:root[data-theme="dark"] .pill-mid { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-mid { color: var(--gold); } }
.pill-ok { background: var(--accent-soft); color: var(--accent); }
.ardoise-foot { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ardoise .tag { position: absolute; top: -12px; right: 18px; background: var(--gold); color: #14201C; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }

/* ---------- Cards / features ---------- */
.feature { padding: 1.5rem; border-top: 2px solid var(--line); }
.feature:hover { border-top-color: var(--accent-bright); }
.feature h3 { font-size: 1.15rem; margin-top: .6rem; }
.feature .icon { width: 36px; height: 36px; color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.step { position: relative; padding-top: .5rem; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .6rem; font-style: italic; }
.step h3 { font-size: 1.1rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 1.5rem; background: var(--accent-bright); color: var(--accent-ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.plan .price { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.plan li { padding-left: 1.5rem; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .8rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- Forms ---------- */
form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], select, textarea {
  font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .25rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-2 { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; max-width: 520px; margin-inline: auto; }
.form-card h1 { font-size: 1.9rem; }
.alert { padding: .8rem 1rem; border-radius: 8px; font-size: .92rem; }
.alert-ok { background: var(--accent-soft); color: var(--accent); }
.alert-err { background: var(--danger-soft); color: var(--danger); }
.alert[hidden] { display: none; }

/* ---------- Dashboard (espace client) ---------- */
.dash-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.dash-side nav { display: flex; flex-direction: column; gap: .3rem; margin-top: 1rem; }
.dash-side nav a { padding: .5rem .7rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.dash-side nav a.active, .dash-side nav a:hover { background: var(--bg-2); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.kpi .v { font-family: var(--font-mono); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- Testimonial / quote ---------- */
.quote-block { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.4; max-width: 40ch; }
.quote-block cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .8rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: #131A33; border-radius: 16px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: inherit; margin: 0; max-width: 24ch; }
.cta-band .btn-gold { flex-shrink: 0; background: #131A33; color: #FFFDF8; box-shadow: none; }
.cta-band .btn-gold:hover { background: #1B3D55; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 3rem; font-size: .9rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: min(640px, calc(100% - 2rem)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 1rem 1.2rem; z-index: 60; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.cookie p { margin: 0; flex: 1; min-width: 240px; }
.cookie[hidden] { display: none; }

/* ---------- Page transitions ---------- */
.page { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.page-head p { max-width: 60ch; color: var(--ink-2); font-size: 1.1rem; }

/* ============================================================
   Motion & widgets (V5)
   ============================================================ */
/* --- Hero background grid --- */
.hero-grid-bg { position: relative; overflow: hidden; }
.hero-grid-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 55% at 85% 20%, var(--accent-soft), transparent 70%), radial-gradient(ellipse 35% 45% at 5% 95%, var(--bg-3), transparent 70%); z-index: 0; }
.hero-grid-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; opacity: .4; mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid-bg > .wrap { position: relative; z-index: 2; }

/* --- Report mockup (browser window) --- */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; animation: floatin .7s cubic-bezier(.2,.8,.2,1) both; }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-bar .dot:nth-child(1) { background: #FF6B57; } .mock-bar .dot:nth-child(2) { background: #FFC53D; } .mock-bar .dot:nth-child(3) { background: #1F3496; }
.mock-url { margin-left: .6rem; font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .6rem; flex: 1; text-align: center; }
.mock-body { padding: 1.1rem 1.2rem 1.2rem; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .25rem .6rem; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .45; } }
@keyframes floatin { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.kpis-4 { grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.kpis-4 .kpi { padding: .7rem .8rem; }
.kpis-4 .kpi .v { font-size: 1.45rem; }
.kpis-4 .kpi .v small { font-size: .75rem; }
.kpis-4 .kpi .l { font-size: .68rem; letter-spacing: .05em; }
@media (max-width: 480px) { .kpis-4 { grid-template-columns: 1fr 1fr; } }

/* --- Horizontal bars (score par moteur, part de voix) --- */
.chart-h, .sov { margin: .4rem 0 1rem; }
.chart-title, .sov-title { margin-bottom: .45rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hbar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: .6rem; margin-bottom: .45rem; font-size: .85rem; }
.hbar-l { color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-t { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--danger); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.hbar-t i.ok { background: var(--accent-bright); }
.hbar-t i.neutral { background: var(--muted); }
.hbar.you .hbar-l { color: var(--accent); font-weight: 700; }
.hbar.you .hbar-t i { background: var(--accent-bright); }
.hbar-v { text-align: right; color: var(--muted); font-size: .8rem; }
.hbar-t i.go { width: var(--w); }

/* --- Widgets (3 étapes) --- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; transition: transform .2s ease, box-shadow .2s ease; }
.widget:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.widget-head { display: flex; align-items: center; gap: .7rem; }
.widget-head h3 { margin: 0; font-size: 1.1rem; }
.widget .num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--accent-bright); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.widget > a { margin-top: auto; }

/* Chat */
.chat { background: var(--bg-2); border-radius: 12px; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; min-height: 190px; }
.msg { max-width: 92%; padding: .5rem .75rem; border-radius: 12px; font-size: .84rem; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--accent-bright); color: var(--accent-ink); border-bottom-right-radius: 4px; min-height: 2.1em; }
.msg.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.verdict { align-self: flex-start; padding: 0; background: none; }
.chat.play .msg.me span::after { content: "|"; animation: caret .8s steps(1) infinite; }
.chat.play .msg.me.done span::after { content: ""; }
@keyframes caret { 50% { opacity: 0; } }
.msg.typing, .msg.answer, .msg.verdict { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.chat.play .msg.typing.show, .chat.play .msg.answer.show, .chat.play .msg.verdict.show { opacity: 1; transform: none; }
.chat.play .msg.typing.hide { display: none; }
.dots { display: inline-flex; gap: 4px; padding: .2rem 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
/* état au repos (sans JS ou sans animation) : tout visible */
.chat:not(.play) .msg.typing { display: none; }
.chat:not(.play) .msg.answer, .chat:not(.play) .msg.verdict { opacity: 1; transform: none; }
.chat:not(.play) .msg.me span::before { content: attr(data-text); }

/* Todo */
.todo { background: var(--bg-2); border-radius: 12px; padding: .9rem; }
.todo-head { display: flex; justify-content: space-between; margin-bottom: .5rem; font-weight: 600; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: .7rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.progress i.go { width: var(--w); }
.todo ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.todo li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; }
.todo li .mono { margin-left: auto; font-size: .75rem; white-space: nowrap; }

/* --- Marquee --- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: .7rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 28s linear infinite; align-items: center; font-size: .85rem; color: var(--muted); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 500; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.stagger > *, .reveal .stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 90ms + .1s); }
.reveal.in.stagger > *, .reveal.in .stagger > * { opacity: 1; transform: none; }
.mock .stagger > * { opacity: 0; transform: translateX(-8px); animation: slidein .5s ease both; animation-delay: calc(.5s + var(--i, 0) * 160ms); }
@keyframes slidein { to { opacity: 1; transform: none; } }

/* --- Vertical bar chart (espace client) --- */
.vchart { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; align-items: end; height: 140px; padding-top: 1.2rem; }
.vbar { display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.vbar i { display: block; width: 100%; max-width: 44px; height: 0; background: var(--accent-bright); border-radius: 4px 4px 0 0; transition: height 1.1s cubic-bezier(.2,.8,.2,1); position: relative; }
.vbar i.go { height: var(--w); }
.vbar i::after { content: attr(data-v); position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .75rem; color: var(--ink-2); }
.vbar i.past { background: var(--muted); opacity: .55; }
.vbar .vl { font-size: .72rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.stagger > *, .reveal .stagger > *, .mock .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hbar-t i, .progress i, .vbar i { transition: none !important; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   Comment ça marche (V6) : timeline, onglets, jauge, critères
   ============================================================ */
.page-head.hero-grid-bg { padding-bottom: 2rem; }
/* --- Timeline --- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 24px; top: 24px; height: 2px; width: 0; background: var(--accent-bright); transition: width 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal.in .timeline::after, .timeline.in::after { width: calc(100% - 48px); }
.timeline li { position: relative; padding-top: 0; }
.timeline li::before { counter-increment: tl; content: counter(tl); position: absolute; top: -6px; left: 36px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: .8rem; color: var(--accent-ink); background: var(--accent); }
.tl-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent-bright); color: var(--accent); display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: .8rem; }
.tl-icon svg { width: 24px; height: 24px; }
.timeline h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 1.4rem; padding-left: 0; }
  .timeline::before, .timeline::after { left: 24px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline::after { height: 0; width: 2px; transition: height 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
  .reveal.in .timeline::after, .timeline.in::after { height: 100%; width: 2px; }
  .timeline li { display: grid; grid-template-columns: 50px 1fr; column-gap: 1rem; align-items: start; }
  .timeline li .tl-icon { grid-row: 1 / 3; margin: 0; }
  .timeline li::before { left: 36px; top: -6px; }
}

/* --- Onglets du rapport --- */
.tabs { display: flex; gap: .2rem; padding: .5rem .7rem 0; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.tab { font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: .45rem .6rem; cursor: pointer; white-space: nowrap; border-radius: 6px 6px 0 0; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.panels { position: relative; min-height: 250px; }
.panel { display: none; animation: fadein .35s ease; }
.panel.active { display: block; }
.tab-progress { height: 3px; background: var(--bg-2); }
.tab-progress i { display: block; height: 100%; width: 0; background: var(--accent-bright); }
.tab-progress i.run { animation: tabprog 4.2s linear forwards; }
@keyframes tabprog { from { width: 0; } to { width: 100%; } }

/* --- Jauge --- */
.gauge-wrap { position: relative; width: 190px; margin: 0 auto .6rem; }
.gauge { width: 100%; height: auto; display: block; }
.gauge-bg { fill: none; stroke: var(--bg-2); stroke-width: 12; stroke-linecap: round; }
.gauge-fg { fill: none; stroke: var(--danger); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.gauge-fg.ok { stroke: var(--accent-bright); } .gauge-fg.mid { stroke: var(--gold); }
.gauge-val { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gauge-val b { font-size: 2rem; font-weight: 600; color: var(--danger); line-height: 1; }
.gauge-val span { font-size: .8rem; margin-left: .2rem; }

/* --- Critères --- */
.crit-group { margin-bottom: 1.6rem; }
.crit-label { margin-bottom: .8rem; }
.crit { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.1rem 1rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.crit:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.crit svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.crit h4 { margin: 0 0 .25rem; font-size: 1rem; }
.crit p { margin: 0; font-size: .86rem; color: var(--ink-2); }

/* --- Échelle de lecture --- */
.scale-bar { position: relative; display: grid; grid-template-columns: 40fr 30fr 30fr; height: 34px; border-radius: 999px; overflow: visible; margin: 1.4rem 0 1.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.scale-bar .z { display: grid; place-items: center; color: #14201C; }
.scale-bar .z.bad { background: var(--danger-soft); color: var(--danger); border-radius: 999px 0 0 999px; }
.scale-bar .z.mid { background: var(--gold-soft); color: #8A5A00; }
.scale-bar .z.ok { background: var(--accent-soft); color: var(--accent); border-radius: 0 999px 999px 0; }
.scale-bar .marker { position: absolute; top: -10px; left: 0; width: 2px; height: 54px; background: var(--ink); transition: left 1.4s cubic-bezier(.2,.8,.2,1); }
.scale-bar .marker.go { left: var(--w); }
.scale-bar .marker b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .85rem; background: var(--ink); color: var(--bg); padding: .1rem .45rem; border-radius: 5px; }
.scale-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.scale-legend li { display: flex; gap: .6rem; align-items: baseline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scale-bar .z.mid { color: var(--gold); } }
:root[data-theme="dark"] .scale-bar .z.mid { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .timeline::after, .gauge-fg, .scale-bar .marker { transition: none !important; } .tab-progress i.run { animation: none !important; } }

/* ============================================================
   V10 — Le parcours en trois temps
   (diagnostic → mise en visibilité → suivi)
   ============================================================ */

/* --- Rail à trois stations --- */
.parcours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; padding-top: 30px; }
.parcours::before { content: ""; position: absolute; top: 30px; left: 16.6%; right: 16.6%; height: 2px; background: var(--line); }
.parcours::after { content: ""; position: absolute; top: 30px; left: 16.6%; height: 2px; width: 0; background: var(--accent-bright); transition: width 1.6s cubic-bezier(.2,.8,.2,1) .25s; }
.reveal.in .parcours::after, .parcours.in::after { width: 66.8%; }
.parc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2.6rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.parc.on { border-color: var(--accent); box-shadow: var(--shadow); }
.parc .pc-num { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; border: 5px solid var(--bg); z-index: 2; }
.parc h3 { margin: 0; font-size: 1.15rem; text-align: center; }
.parc .pc-meta { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.parc p { margin: .3rem 0 0; font-size: .89rem; color: var(--ink-2); text-align: center; }
.parc .pc-foot { margin-top: auto; padding-top: .9rem; font-size: .78rem; color: var(--muted); text-align: center; font-family: var(--font-mono); }
@media (max-width: 800px) {
  .parcours { grid-template-columns: 1fr; gap: 2.6rem; padding-top: 34px; }
  .parcours::before, .parcours::after { display: none; }
}

/* --- En-tête de phase --- */
.phase-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: .9rem; margin-bottom: 2rem; }
.phase-head .pn { font-family: var(--font-display); font-style: italic; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--accent); line-height: .9; }
.phase-head h2 { margin: 0; flex: 1 1 14ch; }
.phase-head .phase-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* --- Checklist groupée (ce que nous faisons) --- */
.faire { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; }
@media (min-width: 900px) { .faire { grid-template-columns: repeat(3, 1fr); } }
.faire-groupe { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.2rem 1.1rem; transition: border-color .2s ease, transform .2s ease; }
.faire-groupe:hover { border-color: var(--accent); transform: translateY(-3px); }
.faire-groupe h4 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: .98rem; }
.faire-groupe h4 svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faire-groupe ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.faire-groupe li { position: relative; padding-left: 1.4rem; font-size: .87rem; color: var(--ink-2); line-height: 1.45; }
.faire-groupe li::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 6px; border-left: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); transform: rotate(-45deg); }

/* --- Qui fait quoi --- */
.qfq { display: grid; grid-template-columns: 1fr 1.55fr; gap: 1.5rem; align-items: start; }
@media (max-width: 760px) { .qfq { grid-template-columns: 1fr; } }
.qfq-col { border-radius: 14px; padding: 1.5rem; }
.qfq-vous { background: var(--gold-soft); border: 1px solid var(--gold); }
.qfq-nous { background: var(--accent-soft); border: 1px solid var(--accent); }
.qfq-col h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.qfq-n { font-family: var(--font-mono); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.qfq-vous .qfq-n { color: #8A5A00; }
.qfq-col .qfq-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.qfq-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.qfq-col li { position: relative; padding-left: 1.5rem; font-size: .89rem; line-height: 1.45; }
.qfq-col li::before { content: ""; position: absolute; left: 0; top: .45em; width: 11px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .65; }
.qfq-col ul.qfq-cols-2 { display: block; columns: 2; column-gap: 1.4rem; }
.qfq-cols-2 li { break-inside: avoid; margin-bottom: .55rem; }
@media (max-width: 560px) { .qfq-col ul.qfq-cols-2 { columns: 1; } }
:root[data-theme="dark"] .qfq-vous .qfq-n { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qfq-vous .qfq-n { color: var(--gold); } }

/* --- Calendrier (douze semaines) --- */
.cal { display: grid; grid-template-columns: 160px repeat(13, minmax(32px, 1fr)); gap: .45rem .22rem; align-items: center; min-width: 720px; }
.cal-h { grid-row: 1; font-size: .66rem; color: var(--muted); text-align: center; font-family: var(--font-mono); letter-spacing: -.02em; }
.cal-l { grid-column: 1; grid-row: var(--r); font-size: .84rem; color: var(--ink-2); font-weight: 600; padding-right: .6rem; }
.cal-b { grid-column: var(--c); grid-row: var(--r); height: 28px; border-radius: 7px; display: flex; align-items: center; padding: 0 .55rem; font-size: .71rem; font-weight: 600; white-space: nowrap; overflow: hidden; color: var(--accent-ink); background: var(--accent); }
.cal-b.b2 { background: var(--gold); color: #131A33; }
.cal-b.b3 { background: var(--accent-soft); color: var(--accent); border: 1px dashed var(--accent); }
.cal-b.b0 { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.cal-sep { grid-column: 2 / -1; height: 1px; background: var(--line); margin: .2rem 0; }

/* --- Alertes du suivi --- */
.alertes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.alertes li { display: flex; gap: .6rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: .6rem .8rem; font-size: .87rem; line-height: 1.45; }
.alertes li .mono { color: var(--muted); font-size: .74rem; white-space: nowrap; margin-left: auto; padding-left: .5rem; }

/* --- Bloc « une seule chose vous est demandée » --- */
.demande { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 1.5rem; }
.demande h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.demande p { margin: 0 0 .6rem; font-size: .92rem; }
.demande p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .parcours::after { transition: none !important; } }
