/* Structure commune. Chaque thème ne fait que redéfinir les variables et quelques détails. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: var(--head-tracking, -0.01em); }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: var(--h1-weight, 700); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: var(--h2-weight, 700); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
[id] { scroll-margin-top: 84px; }
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text, var(--accent)); margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bar-bg, var(--bg)); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; }
.nav { display: flex; gap: 22px; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--btn-radius, 10px); border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong, var(--line)); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* Démo de réponse IA (stylée par thème) */
.demo { border-radius: var(--card-radius, 14px); background: var(--surface); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow, none); }
.demo-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.demo-q { font-weight: 600; margin-bottom: 18px; }
.demo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.demo-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--chip-radius, 10px); background: var(--surface-2); }
.demo-list .tag { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.demo-list .hit .tag { background: var(--ok-bg); color: var(--ok); }
.demo-list .miss { outline: 1.5px dashed var(--bad); outline-offset: -1.5px; background: transparent; }
.demo-list .miss .tag { background: var(--bad-bg); color: var(--bad); }

/* Chiffres */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-item { padding: 26px; border-radius: var(--card-radius, 14px); background: var(--surface); border: 1px solid var(--line); }
.proof-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent-text, var(--accent)); line-height: 1.1; margin-bottom: 8px; }
.source-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }

/* Leviers & étapes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--card-radius, 14px); background: var(--surface); border: 1px solid var(--line); }
.card p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; display: grid; gap: 14px; max-width: 760px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: var(--step-radius, 50%); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--font-head); }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.offer { display: flex; flex-direction: column; padding: 30px; border-radius: var(--card-radius, 14px); background: var(--surface); border: 1px solid var(--line); }
.offer.featured { border: 2px solid var(--accent); box-shadow: var(--shadow, none); }
.offer .badge { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.period { color: var(--muted); font-size: .95rem; margin-left: 6px; }
.offer ul { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 10px; flex: 1; }
.offer li { padding-left: 26px; position: relative; }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text, var(--accent)); font-weight: 700; }
.offer .note { font-size: .85rem; color: var(--muted); }

/* Formulaire d'audit */
.audit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form { padding: 30px; border-radius: var(--card-radius, 14px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow, none); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input { width: 100%; padding: 13px 14px; font: 400 1rem var(--font-body); color: var(--text); background: var(--input-bg, var(--bg)); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--input-radius, 9px); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin: 0; }

/* Résultats */
.results { margin-top: 22px; }
.results[hidden] { display: none; }
.score { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.score-value { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; }
.result-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.result-list li { padding: 14px; border-radius: var(--chip-radius, 10px); background: var(--surface-2); }
.result-list .q { font-weight: 600; }
.result-list .status { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 8px; white-space: nowrap; }
.result-list .yes { background: var(--ok-bg); color: var(--ok); }
.result-list .no { background: var(--bad-bg); color: var(--bad); }
.result-list .who { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.domains { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; padding: 0; list-style: none; }
.domains li { font-size: .82rem; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.loading { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text, var(--accent)); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Pied de page */
.footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* Page d'accueil (choix du secteur) */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub a { text-decoration: none; display: block; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s ease, border-color .15s ease; }
.hub a:hover { transform: translateY(-2px); border-color: var(--accent); }
.hub .arrow { color: var(--accent); font-weight: 700; margin-top: 12px; display: inline-block; }

/* Accessibilité et navigation */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--accent-text, var(--accent)); outline-offset: 2px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; }
.lang-switch:hover { color: var(--text); border-color: var(--line-strong, var(--line)); }
.spacer { height: 48px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


[hidden] { display: none !important; }

/* Accueil : barre de recherche (audit express en 2 temps) */
.hero-home .lead { max-width: 640px; }
.searchbar-form { max-width: 920px; margin-top: 8px; }
.searchbar {
  display: grid; grid-template-columns: 1.3fr 1fr 1.1fr auto; align-items: end; gap: 10px;
  padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong, var(--line)); box-shadow: 0 10px 30px rgba(17, 24, 39, .08);
}
.sb-field { display: grid; gap: 4px; }
.sb-field label { font-size: .78rem; font-weight: 600; color: var(--muted); padding-left: 4px; }
.sb-field input, .sb-field select, .field select {
  width: 100%; height: 48px; padding: 0 12px; font: 400 1rem var(--font-body); color: var(--text);
  background: var(--input-bg, var(--bg)); border: 1px solid var(--line); border-radius: 10px;
}
.sb-field input:focus, .sb-field select:focus { outline: 2px solid var(--accent-text, var(--accent)); outline-offset: 1px; }
.searchbar .btn { height: 48px; padding: 0 26px; }
.sb-more { margin-top: 14px; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.sb-more-title { font-weight: 700; margin: 0; }
.sb-more .btn { justify-self: start; }
.searchbar-form .form-error { margin-top: 10px; }
.searchbar-form .results { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }

/* Accueil : chiffres, étapes, offres à 4 colonnes, fondateur, appel final */
.stats-band { padding: 0 0 clamp(48px, 7vw, 88px); }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 16px; }
.offers-4 { grid-template-columns: repeat(4, 1fr); }
.offers-4 .offer { padding: 26px; }
.price-list { margin: 8px 0 0; display: grid; gap: 12px; }
.price-list div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.price-list dt { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.price-list dd { margin: 0; }
.price-list .price { font-size: 1.7rem; }
.pilot { display: inline-block; margin: -16px 0 28px; padding: 8px 14px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .92rem; }
.center { text-align: center; margin-top: 36px; }
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; max-width: 900px; }
.founder-mark { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 2.2rem var(--font-head); }
.final-cta h2 { margin-bottom: .3em; }
.final-cta .center, .final-cta.center { margin-top: 0; }

@media (max-width: 1000px) { .offers-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .btn { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .searchbar, .offers-4 { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .top-actions .btn { display: none; }
  .hero-grid, .audit { grid-template-columns: 1fr; }
  .proof, .cards, .offers, .hub { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- Champ unique (audit) */
.aud-input { display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong, var(--line)); box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px rgba(17, 24, 39, .08); transition: box-shadow .2s ease, border-color .2s ease; }
.aud-input:focus-within { border-color: var(--accent-text, var(--accent)); box-shadow: 0 0 0 4px rgba(53, 89, 126, .16), 0 12px 32px rgba(17, 24, 39, .08); }
.aud-input input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font: 500 1.08rem var(--font-body); color: var(--text); outline: none; }
.aud-input input::placeholder { color: var(--muted); opacity: .8; }
.aud-input .btn { border-radius: 999px; height: 48px; padding: 0 24px; white-space: nowrap; }
.aud-input-lg { max-width: 720px; }
.aud-input-lg input { height: 58px; font-size: 1.2rem; }
.aud-input-lg .btn { height: 56px; padding: 0 30px; font-size: 1.05rem; }
.audit-cta { max-width: 760px; }
.audit-cta .aud-input { margin-top: 8px; }

/* ---------------------------------------------------------------- Page d'audit */
.audit-page { background: radial-gradient(1200px 500px at 50% -120px, rgba(53, 89, 126, .08), transparent 70%), var(--bg); }
.aud-hero { padding: clamp(56px, 10vw, 120px) 0 40px; text-align: center; transition: padding .4s ease; }
.aud-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.aud-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; }
.aud-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 600px; margin-bottom: 30px; }
.aud-hero .aud-input { width: 100%; }
.aud-hero .form-error { margin-top: 12px; }
.is-running .aud-hero { padding: 28px 0 16px; }
.is-running .aud-hero h1, .is-running .aud-hero .lead, .is-running .aud-hero .kicker { display: none; }

.aud-run { padding: 8px 0 24px; }
.aud-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aud-step { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; transition: border-color .3s ease, opacity .3s ease; }
.aud-step strong { display: block; font-size: .9rem; }
.aud-detail { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; word-break: break-word; }
.aud-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong, var(--line)); }
.aud-dot .ic { width: 15px; height: 15px; opacity: 0; }
.aud-step[data-state="todo"] { opacity: .55; }
.aud-step[data-state="active"] { border-color: var(--accent-text, var(--accent)); }
.aud-step[data-state="active"] .aud-dot { border-color: var(--line); border-top-color: var(--accent-text, var(--accent)); animation: spin .8s linear infinite; }
.aud-step[data-state="done"] .aud-dot { background: var(--ok); border-color: var(--ok); }
.aud-step[data-state="done"] .aud-dot .ic { opacity: 1; stroke: #fff; }
.aud-step[data-state="error"] { border-color: var(--bad); }
.aud-step[data-state="error"] .aud-dot { border-color: var(--bad); background: var(--bad-bg); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }


/* ---------------------------------------------------------------- Rapport d'audit
   Pièce centrale : le bandeau de verdict (encre) avec « la liste de l'IA ». Le reste est sobre, sur papier. */
.aud-report { padding: 8px 0 96px; }
.aud-report .wrap { display: grid; gap: 0; max-width: 1040px; }
.demo-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .88rem; }
.rp-verdict {
  --ink: #1C2B3A; --paper: #F5F3EE; --dim: #AEB8C4; --grade: #E58A7B;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 330px; gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: clamp(26px, 4vw, 44px); border-radius: 22px 22px 0 0; background: var(--ink); color: var(--paper);
}
.rp-verdict.grade-moyen { --grade: #E0A26A; }
.rp-verdict.grade-bon, .rp-verdict.grade-leader { --grade: #9CC29A; }
.v-score { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 4px; }
.v-label { grid-column: 1 / -1; margin: 0 0 6px; color: var(--dim); font-size: .85rem; }
.v-num { font: 600 clamp(5rem, 9vw, 7.4rem)/.9 var(--font-head); color: var(--grade); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.v-max { color: var(--dim); font-size: 1.1rem; }
.v-grade { grid-column: 1 / -1; margin: 12px 0 0; font-weight: 700; color: var(--grade); }
.v-name { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-head); letter-spacing: -.02em; margin: 2px 0 10px; color: var(--paper); }
.v-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: .9rem; margin: 0 0 18px; }
.v-meta span { display: inline-flex; align-items: center; gap: 6px; }
.v-meta .ic { width: 15px; height: 15px; }
.v-text { font-size: 1.15rem; line-height: 1.45; margin: 0 0 10px; }
.v-summary { color: var(--dim); margin: 0; }
.v-list { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px; }
.v-list-title { font-weight: 700; margin: 0 0 12px; }
.v-list-hint { color: var(--dim); font-size: .8rem; margin: 12px 0 0; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .92rem; animation: slot-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.slot-n { font: 600 1.05rem/1 var(--font-head); color: var(--dim); }
.slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-c { color: var(--dim); font-size: .8rem; font-variant-numeric: tabular-nums; }
.slot.you { background: #E3EAE4; color: var(--ink); font-weight: 800; }
.slot.you .slot-n, .slot.you .slot-c { color: var(--ink); }
.slot.missing { background: transparent; border: 1.5px dashed var(--grade); color: var(--grade); font-weight: 700; }
.slot.missing .slot-n, .slot.missing .slot-c { color: var(--grade); }
@keyframes slot-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 56px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; background: var(--surface); }
.kpi { padding: 20px 22px; display: grid; gap: 2px; align-content: start; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi dt { font-weight: 600; font-size: .9rem; order: 2; }
.kpi dd { margin: 0; }
.kpi-v { font: 600 2rem/1.1 var(--font-head); letter-spacing: -.02em; order: 1; font-variant-numeric: tabular-nums; }
.kpi-h { color: var(--muted); font-size: .8rem; order: 3; }

.rp-block { padding: 40px 0; border-top: 1px solid var(--line); }
.rp-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; }
.rp-block-head h2 { font: 600 1.55rem/1.2 var(--font-head); letter-spacing: -.015em; margin: 0; }
.rp-block-head p { color: var(--muted); font-size: .9rem; margin: 0; max-width: 460px; }
.rp-note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* Réponses de l'IA */
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ans { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--bad); overflow: hidden; }
.ans.hit { box-shadow: inset 4px 0 0 var(--ok); }
.ans-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px 16px 22px; border: 0; background: transparent; font: 600 1rem var(--font-body); color: var(--text); text-align: left; cursor: pointer; }
.ans-q:hover { background: var(--surface-2); }
.ans-q::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease; }
.ans-q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.ans-text { flex: 1; }
.chip { flex: none; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.ko { background: var(--bad-bg); color: var(--bad); }
.ans-panel { padding: 0 22px 20px; }
.answer-text { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--bg); white-space: pre-line; font: 400 1.02rem/1.7 var(--font-head); max-width: 72ch; }
.m-rival { background: none; color: inherit; text-decoration: underline 2px; text-decoration-color: var(--bad); text-underline-offset: 3px; }
.m-you { background: linear-gradient(transparent 52%, #E3EAE4 52%); color: inherit; font-weight: 700; }
.ans-src, .domains { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ans-src li, .domains li { font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }

/* Concurrents et sources */
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--line); }
.rp-two .rp-block { border-top: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 36px; align-items: center; gap: 12px; font-size: .9rem; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { --w: 0; height: 100%; width: calc(var(--w) * 1%); border-radius: inherit; background: #A7AFB8; }
.bar.you .bar-name { font-weight: 800; }
.bar.you .bar-fill { background: #35597E; }
.bar-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .82rem; }
.stack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.stack .seg { flex: 0 0 calc(var(--w) * 1%); }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .86rem; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.seg-vous { background: #35597E; }
.seg-annuaires { background: #7FA3CC; }
.seg-comparatifs { background: #9A4A1B; }
.seg-avis { background: #6E8F6B; }
.seg-medias { background: #4A6848; }
.seg-reseaux { background: #A8708A; }
.seg-sites { background: #A7AFB8; }

/* Plan d'action : un ordre de travail */
.todos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo { display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.todo input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ok); cursor: pointer; }
.todo label { cursor: pointer; display: flex; gap: 12px; align-items: baseline; font-size: 1.05rem; }
.todo-n { font: 600 1.3rem/1 var(--font-head); color: var(--muted); }
.todo input:checked + .todo-body strong { text-decoration: line-through; color: var(--muted); }
.todo-why { color: var(--muted); font-size: .92rem; margin: 6px 0 10px; }
.meters { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong, var(--line)); }
.dots i.on { background: var(--text); border-color: var(--text); }
.todo-steps { margin: 10px 0 0; padding-left: 18px; color: var(--text); font-size: .9rem; display: grid; gap: 3px; }
.skeleton { display: grid; gap: 10px; }
.sk-line { height: 70px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Contenu verrouillé : flou + cadenas, révélable dans la démo avec l'œil */
.locked { position: relative; overflow: hidden; border-radius: 14px; }
.rp-plan .locked { margin-top: 10px; }
.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; background: linear-gradient(180deg, rgba(246, 247, 249, .2), rgba(246, 247, 249, .8)); }
.lock-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; margin: 0; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(21, 23, 31, .08); }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 99px; }
.full-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.full-item { padding: 22px; background: var(--surface); min-height: 170px; }
.full-item h3 { margin-bottom: 4px; }
.full-item p { color: var(--muted); font-size: .9rem; margin: 0; }
.fake-lines { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fake-lines li { height: 10px; border-radius: 99px; background: var(--surface-2); }
.fake-lines li:nth-child(2) { width: 80%; }
.fake-lines li:nth-child(3) { width: 60%; }
.bars.mini { margin-top: 14px; }
.reveal .blurred { filter: none; pointer-events: auto; user-select: auto; }
.reveal .lock-overlay { display: none; }
.eye-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1C2B3A; color: #fff; box-shadow: 0 10px 30px rgba(14, 42, 43, .3); }
.eye-toggle .ic { width: 24px; height: 24px; }
.eye-toggle[aria-pressed="true"] { background: #4A6848; color: #ffffff; }

.rp-cta { margin-top: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: #1C2B3A; color: #F5F3EE; text-align: center; }
.rp-cta h2 { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--font-head); margin-bottom: .3em; }
.rp-cta p { color: #AEB8C4; max-width: 560px; margin: 0 auto 22px; }
.rp-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rp-cta .btn { background: #F5F3EE; color: #1C2B3A; }
.rp-cta .btn-ghost { background: transparent; color: #f4f5f8; border-color: rgba(255, 255, 255, .3); }

@media (max-width: 960px) {
  .rp-verdict { grid-template-columns: 1fr; }
  .rp-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rp-two { grid-template-columns: 1fr; gap: 0; }
  .rp-two .rp-block + .rp-block { border-top: 1px solid var(--line); }
  .full-inner { grid-template-columns: 1fr; }
  .aud-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .aud-input { padding-left: 16px; }
  .aud-input .btn { padding: 0 16px; }
  .legend { grid-template-columns: 1fr; }
}

/* Offres : une ligne « pour qui », un prix unique sur les sous-sites */
.offer h3 { margin-bottom: 2px; }
.offer-for { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.offer-price { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.offer-price .price { font-size: 2.1rem; }
.final-field { display: flex; justify-content: center; margin: 10px 0 6px; }
.final-field .aud-input { width: 100%; }
.final-cta .fine a { color: var(--muted); }
.hub { grid-template-columns: repeat(3, 1fr); }
.hero-grid .aud-input { margin: 4px 0 0; }
@media (max-width: 860px) { .hub { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hub { grid-template-columns: 1fr; } }

/* Newsletter (pied de page) */
.footer .wrap { display: block; }
.nl { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 10px 32px; align-items: center; padding: 8px 0 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.nl-text strong { color: var(--text); font-size: 1rem; }
.nl-text p { margin: 4px 0 0; }
.nl-fields { display: flex; gap: 8px; }
.nl-fields input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--input-radius, 10px); border: 1px solid var(--line-strong, var(--line)); background: var(--surface); font: 400 .95rem var(--font-body); color: var(--text); }
.nl-fields .btn { height: 44px; padding: 0 18px; }
.nl .consent { grid-column: 2; font-size: .8rem; }
.nl-msg { grid-column: 2; margin: 0; min-height: 1.2em; font-size: .85rem; }
.nl-msg[data-state="ok"] { color: var(--ok); }
.nl-msg[data-state="error"] { color: var(--bad); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .nl { grid-template-columns: 1fr; } .nl .consent, .nl-msg { grid-column: 1; } }

/* ---------------------------------------------------------------- Espace client et pilotage */
.dash-page { background: var(--bg); }
.dash { padding: 28px 0 80px; display: grid; gap: 0; max-width: 1080px; }
.dash-loading { padding: 80px 0; text-align: center; }
.dash-login { max-width: 560px; margin: 8vh auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.dash-login h1 { font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-head); letter-spacing: -.02em; }
.dash-login .aud-input { width: 100%; margin-top: 14px; }
.dash-msg { margin: 0 0 12px; min-height: 1.2em; font-size: .92rem; color: var(--bad); }
.dash-msg[data-state="ok"] { color: var(--ok); }
.dash-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-top > p { margin: 0 auto 0 0; }
.dash-title { font: 600 1.7rem/1.1 var(--font-head); margin: 0 auto 0 0; }
.dash-nav { display: flex; gap: 14px; font-size: .9rem; }
.dash-nav a { color: var(--muted); text-decoration: none; }
.dash-nav a:hover { color: var(--text); }
.dash select, .dash-form input, .dash-form select { height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong, var(--line)); background: var(--surface); font: 400 .92rem var(--font-body); color: var(--text); }
.dash-band { grid-template-columns: 200px minmax(0, 1fr); }
.dash-band-body .v-name { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.v-delta { grid-column: 1 / -1; margin: 12px 0 0; font-weight: 700; }
.v-delta.up { color: #9CC29A; }
.v-delta.down { color: #E58A7B; }
.dash-chart { margin-top: 18px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid { stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.line-chart .axis { fill: #AEB8C4; font: 500 11px var(--font-body); }
.line-chart .line { fill: none; stroke: #9DB8D6; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .area { fill: rgba(157, 184, 214, .12); }
.line-chart .dot { fill: #1C2B3A; stroke: #9DB8D6; stroke-width: 2; }
.line-chart .dot.last { fill: #9CC29A; }
.dash-kpis { margin-bottom: 32px; }
.dash-card { padding: 32px 0; border-top: 1px solid var(--line); }
.dash-card h3 { font-size: 1rem; margin: 0 0 10px; }
.dash-progress { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; width: calc(var(--w, 0) * 1%); background: var(--ok); border-radius: inherit; }
.dash-todos .todo { grid-template-columns: 1fr; }
.todo-head { display: flex; gap: 12px; align-items: baseline; font-size: 1.05rem; }
.status-fait .todo-head strong { text-decoration: line-through; color: var(--muted); }
.status-en_cours { border-color: #35597E; box-shadow: inset 4px 0 0 #35597E; }
.seg-ctrl { display: inline-flex; margin-top: 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 99px; overflow: hidden; }
.seg-ctrl button { border: 0; background: transparent; padding: 7px 14px; font: 600 .82rem var(--font-body); color: var(--muted); cursor: pointer; }
.seg-ctrl button + button { border-left: 1px solid var(--line); }
.seg-ctrl button[aria-pressed="true"] { background: #1C2B3A; color: #fff; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.dash-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-qs li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--bad); font-size: .92rem; }
.dash-qs li.hit { box-shadow: inset 4px 0 0 var(--ok); }
.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dash-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.dash-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-band { grid-template-columns: 1fr; padding: 28px; border-radius: 22px; margin-bottom: 8px; }
.admin-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0; }
.admin-kpis > div { padding: 4px 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.admin-kpis > div:first-child { border-left: 0; padding-left: 0; }
.admin-kpis dt { color: #AEB8C4; font-size: .82rem; }
.admin-kpis dd { margin: 0; }
.a-v { font: 600 1.9rem/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.a-h { color: #AEB8C4; font-size: .78rem; }
.bar-chart { width: 100%; height: auto; display: block; }
.bar-chart rect { fill: #35597E; }
.dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 22px; }
.rank-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; }
.rank-list li span { display: inline-block; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.rank-list li strong { float: right; font-variant-numeric: tabular-nums; }
.dash-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; align-items: end; margin-bottom: 18px; }
.dash-form .f { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.dash-form .f input, .dash-form .f select { width: 100%; }
.dash-form .btn { height: 40px; padding: 0 18px; justify-self: start; }
.dash-form.inline { grid-template-columns: repeat(6, 1fr) auto; }
@media (max-width: 960px) {
  .dash-band { grid-template-columns: 1fr; }
  .dash-grid, .dash-split { grid-template-columns: 1fr; }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .admin-kpis > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .dash-form, .dash-form.inline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .dash-form, .dash-form.inline { grid-template-columns: 1fr; } }
.dash-acts{display:flex;gap:.5rem;flex-wrap:wrap}
/* Recevoir le rapport par email */
.rp-mail { margin: 28px 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--card-radius, 16px); background: var(--surface); }
.rp-mail h2 { margin: 0 0 6px; font-size: 1.3rem; }
.rp-mail .muted { margin: 0 0 16px; }
.rp-mail-form { width: 100%; }
.rp-consent { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 14px 0 8px; font-size: .9rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.rp-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.rp-mail .dash-msg { margin: 6px 0 0; }

/* En-tête commun : menu Secteurs, démo, espace client, fil d'Ariane */
.nav { align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu[open] summary, .menu summary:hover { color: var(--text); }
.menu ul { position: absolute; top: calc(100% + 8px); left: -12px; z-index: 30; min-width: 270px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(14, 42, 43, .12); }
.menu li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.menu li a:hover, .menu li a[aria-current="page"] { background: var(--surface-2); }
.menu li a[aria-current="page"] { font-weight: 600; }
.account-link, .demo-toggle { font-size: .92rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.account-link:hover, .demo-toggle:hover { color: var(--text); }
.demo-toggle { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ai-toggle { font: 500 .88rem var(--font-body); padding: 6px 12px; border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ai-toggle[aria-pressed="true"] { background: #1C2B3A; border: 1px solid #1C2B3A; color: #fff; }
.demo-toggle[data-on] { background: var(--mint-soft, #E3EAE4); border-color: transparent; color: var(--accent); font-weight: 600; }
.crumbs { display: flex; gap: 8px; align-items: center; padding-top: 18px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.demo-bar { background: var(--accent); color: #fff; font-size: .9rem; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 42px; padding: 8px 0; }
.demo-bar strong { color: #E3EAE4; }
.demo-bar a, .demo-bar button { color: #fff; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.demo-bar .demo-exit { margin-left: auto; }
@media (max-width: 900px) {
  .nav { display: flex; gap: 14px; }
  .nav > a, .account-link, .demo-toggle { display: none; }
  .menu ul { left: auto; right: -80px; }
}
/* Exemple qui tourne sur les pages métier */
.demo { position: relative; }
.demo-q.typing { min-height: 3.2em; }
.demo-q.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-list { min-height: 230px; transition: opacity .25s ease; }
.demo-list.fading { opacity: 0; }
.demo-list.live li { animation: pop-in .3s ease both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } }
.demo-pause { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .7rem; cursor: pointer; display: grid; place-items: center; }
.demo-pause:hover { color: var(--text); border-color: var(--line-strong); }
.q-edit { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; margin: 14px 0; }
.q-edit li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.q-edit textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical; }
.q-on { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .q-edit li { grid-template-columns: 1fr; } }
/* Espace client interactif */
.x-measure { display: grid; gap: 8px; }
.x-measure h2 { margin: 0; font-size: 1.15rem; }
.x-switch { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.x-switch input { width: 40px; height: 22px; accent-color: #35597E; }
.x-meter p { margin: 6px 0; }
.x-ctrl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 6px 0 14px; }
.x-ctrl .f { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.x-ctrl select, .x-ctrl input[type=number] { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
.x-ctrl input[type=number] { width: 90px; }
.x-check { display: flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.x-chart { width: 100%; height: auto; }
.x-chart .grid { stroke: var(--line); }
.x-chart .axis { fill: var(--muted); font-size: 11px; }
.x-chart .goal { stroke: #9A4A1B; stroke-dasharray: 6 4; }
.x-chart .line { fill: none; stroke-width: 2.5; }
.x-chart .band { fill: rgba(53, 89, 126, .10); }
.x-chart .proj { fill: none; stroke: #35597E; stroke-width: 2; stroke-dasharray: 5 5; }
.x-chart .proj.sim { stroke: #1C2B3A; }
.x-chart .s0, .x-legend .sw.s0 { stroke: #35597E; fill: #35597E; background: #35597E; }
.x-chart .s1, .x-legend .sw.s1 { stroke: #4A6848; fill: #4A6848; background: #4A6848; }
.x-chart .s2, .x-legend .sw.s2 { stroke: #9A4A1B; fill: #9A4A1B; background: #9A4A1B; }
.x-chart .s3, .x-legend .sw.s3 { stroke: #8a9396; fill: #8a9396; background: #8a9396; }
.x-chart .pt { stroke: #fff; stroke-width: 2; }
.x-chart .line.s1, .x-chart .line.s2, .x-chart .line.s3 { fill: none; }
.x-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 10px 0; font-size: .88rem; color: var(--muted); }
.x-legend li { display: flex; align-items: center; gap: 6px; }
.x-legend .sw { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.x-legend .sw.proj { background: repeating-linear-gradient(90deg, #35597E 0 4px, transparent 4px 7px); }
.x-legend .mk { width: 10px; height: 10px; display: inline-block; border: 2px solid #1C2B3A; }
.x-legend .mk.auto { border-radius: 50%; }
.x-legend .mk.manual { transform: rotate(45deg); }
.x-proj { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.x-proj p { margin: 0 0 6px; }
.x-sim { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.x-sim legend { font-weight: 700; margin-bottom: 4px; }
.x-sim-out { font-weight: 700; color: #35597E; }
.x-heat caption { text-align: left; font-weight: 600; padding: 12px 0 8px; }
.x-heat th[scope=row] { font-weight: 400; max-width: 360px; }
.x-heat td { text-align: center; font-weight: 600; }
.x-heat td.hit { background: #E3EAE4; color: #0b5e48; }
.x-heat td.miss { color: var(--muted); }
.x-chart path.line { fill: none; }
.x-measure .btn { justify-self: start; }
/* Pilotage : entonnoir, alertes, journal, fiches */
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 220px 1fr 70px 60px; gap: 12px; align-items: center; }
.f-bar { height: 14px; border-radius: 7px; background: #35597E; width: calc(var(--w) * 1%); min-width: 4px; }
.f-v { text-align: right; }
.f-rate { color: var(--muted); font-size: .88rem; }
.alert-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text, #35597E); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.fiche .rp-block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 130px 200px 1fr; gap: 10px; position: relative; font-size: .94rem; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li.ev-audit::before, .timeline li.ev-mesure::before { background: #35597E; }
.timeline li.ev-rapport_demande::before, .timeline li.ev-rdv_clic::before, .timeline li.ev-client_cree::before { background: #9A4A1B; }
.timeline time { color: var(--muted); }
@media (max-width: 760px) { .funnel li, .timeline li { grid-template-columns: 1fr; } }
/* Test gratuit : demande d'email (lien qui lance le test) */
.aud-mail { margin-top: 20px; max-width: 640px; }
.aud-mail[hidden] { display: none; }
.aud-mail-lead { font-weight: 600; margin: 0 0 10px; }
.aud-mail-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.aud-mail-status { margin: 8px 0 0; font-weight: 600; }
.aud-mail-status:empty { display: none; }

/* Formulaire du test en une étape : nom, métier, puis site web et localisation (facultatifs) */
.af { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 12px 32px rgba(28, 43, 58, .08); max-width: 760px; text-align: left; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.af-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af-field[hidden] { display: none; }
.af-field label { font-weight: 600; font-size: .95rem; color: var(--text); }
.af-opt { font-weight: 400; color: var(--muted); }
.af-field input { height: 50px; padding: 0 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 10px; background: #fff; color: var(--text); font: 400 1rem var(--font-body); width: 100%; }
.af-field input::placeholder { color: #6B7480; }
.af-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53, 89, 126, .18); }
.af-more:not([hidden]) { animation: af-in .25s ease-out; }
@keyframes af-in { from { transform: translateY(-6px); } to { transform: none; } }
.af-go { margin-top: 16px; width: 100%; justify-content: center; min-height: 52px; font-size: 1.05rem; }
.af-combo { position: relative; }
.af-suggest { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 6px 0 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong, var(--line)); border-radius: 12px; box-shadow: 0 14px 34px rgba(28, 43, 58, .16); }
.af-suggest[hidden] { display: none; }
.af-suggest li { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; text-align: left; }
.af-suggest li.af-sub { font-weight: 400; padding-left: 26px; color: var(--text); }
.af-suggest li:hover, .af-suggest li[aria-selected="true"] { background: var(--mint-soft, #E3EAE4); }
.af-suggest li.af-free { font-weight: 400; font-style: italic; color: var(--muted); }
.final-field .af, .aud-hero .af { width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .af-grid { grid-template-columns: 1fr; } .af { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .af-more:not([hidden]) { animation: none; } }

/* Sélecteur de langue : drapeau + code, liste minimaliste */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(28, 43, 58, .12); }
.lang li a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; }
.lang li a:hover { background: var(--surface-2); }
.flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
/* Pilotage : onglets qui remplacent la vue */
.dash-tabs { flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.dash-tabs a { padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.dash-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .6); }
.dash-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(28, 43, 58, .12); }
.dash-panel[hidden] { display: none; }
.dash-panel > * + * { margin-top: 24px; }
/* Tableau de bord client vu par l'admin : bandeau + recherche */
.admin-view { background: #1C2B3A; color: #fff; border-radius: 14px; padding: 16px 18px; margin: 0 0 20px; }
.admin-view-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 12px; }
.admin-view-head strong { background: #E3EAE4; color: #1C2B3A; padding: 2px 10px; border-radius: 999px; font-size: .85rem; }
.admin-view-head span { color: #D5DCE4; font-size: .93rem; }
.admin-view input { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #50607A; background: #24364A; color: #fff; font: inherit; }
.admin-view input::placeholder { color: #AEB8C4; }
.admin-view input:focus { outline: 2px solid #9DB8D6; outline-offset: 1px; }
.admin-view-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.admin-view-list a { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 9px; background: #24364A; color: #fff; text-decoration: none; }
.admin-view-list a:hover { background: #2E4560; }
.admin-view-list a[aria-current] { background: #E3EAE4; color: #1C2B3A; }
.admin-view-list a[aria-current] .admin-view-meta { color: #505C69; }
.admin-view-name { font-weight: 600; }
.admin-view-meta { font-size: .82rem; color: #C6D0DB; }
.admin-view-list .muted { color: #C6D0DB; }

/* Accueil : héros en deux colonnes, exemple de réponse de l'IA et repères */
.hero-home .hero-grid { align-items: center; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; font-size: .93rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; }
.hero-facts strong { flex: none; min-width: 86px; font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }

/* Chiffres sourcés */
.facts { padding-top: 24px; }
.facts-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 20px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.fact-value { font: 600 2.6rem/1 var(--font-head); color: var(--accent); }
.fact p { margin: 0; color: var(--text); }
.fact figcaption { margin-top: auto; font-size: .8rem; color: var(--muted); }
.fact figcaption a { color: var(--muted); }
@media (max-width: 860px) { .facts-grid { grid-template-columns: 1fr; } }

/* Cas d'usage par secteur */
.hub-cases .cases { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 10px; }
.hub-cases .cases li { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--mint-soft, #E3EAE4); }
.case-who { font-weight: 600; font-size: .92rem; color: var(--text); }
.case-q { font-size: .9rem; color: var(--muted); font-style: italic; }

/* Trois étapes animées */
.how-anim { height: 92px; margin: 0 0 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; overflow: hidden; font-size: .85rem; }
.ha-chat { min-height: 22px; font-weight: 600; color: var(--text); }
.ha-caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: ha-blink 1s steps(1) infinite; }
.how-live.typed .ha-caret, .how-live.done .ha-caret { display: none; }
.ha-search { margin-top: 12px; color: var(--muted); opacity: 0; transition: opacity .4s; display: flex; align-items: center; gap: 4px; }
.how-live.typed .ha-search, .how-live.done .ha-search { opacity: 1; }
.ha-search i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: ha-dot 1.2s infinite; }
.ha-search i:nth-child(2) { animation-delay: .2s; } .ha-search i:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
.ha-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ha-checks li { position: relative; padding-left: 22px; color: var(--text); }
.ha-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.ha-checks li::after { content: ""; position: absolute; left: 4px; top: 5px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); opacity: 0; }
.how-live.play .ha-checks li::before { background: var(--mint, #4A6848); border-color: var(--mint, #4A6848); transition: background .3s; }
.how-live.play .ha-checks li::after { opacity: 1; }
.how-live.play .ha-checks li:nth-child(1)::before { transition-delay: 1.2s; }
.how-live.play .ha-checks li:nth-child(2)::before { transition-delay: 1.8s; }
.how-live.play .ha-checks li:nth-child(3)::before { transition-delay: 2.4s; }
.how-live.play .ha-checks li::after { transition: opacity .2s 2.6s; }
.how-anim-3 { display: flex; align-items: center; gap: 14px; }
.ha-chart { flex: 1; height: 64px; }
.ha-chart .ha-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 140; }
.ha-chart circle { fill: var(--mint, #4A6848); opacity: 0; }
.how-live.play .ha-line { animation: ha-draw 1.6s 2.8s ease-out forwards; }
.how-live.play .ha-chart circle { animation: ha-show .3s 4.3s forwards; }
.how-live.done .ha-line { animation: none; stroke-dashoffset: 0; }
.how-live.done .ha-chart circle { animation: none; opacity: 1; }
.how-live.done .ha-checks li, .how-live.done .ha-checks li::before, .how-live.done .ha-checks li::after { transition: none; }
.ha-score { font-size: .85rem; color: var(--muted); }
.ha-score b { font: 600 1.8rem var(--font-head); color: var(--text); }
@keyframes ha-blink { 50% { opacity: 0; } }
@keyframes ha-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes ha-draw { to { stroke-dashoffset: 0; } }
@keyframes ha-show { to { opacity: 1; } }

/* Rapport : score par IA et pastilles par question */
.engines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.eng { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.eng-name { font-weight: 700; }
.eng-v { font: 600 1.4rem var(--font-head); color: var(--text); }
.eng.miss .eng-v { color: var(--muted); }
.eng-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.eng-fill { display: block; height: 100%; width: calc(var(--w) * 1%); background: var(--accent); border-radius: 99px; }
@media (max-width: 760px) { .engines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ans-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.ans-chips .chip { font-size: .78rem; white-space: nowrap; }
.ans-eng + .ans-eng { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ans-eng-name { font-weight: 700; font-size: .88rem; margin: 0 0 6px; }

/* ---------- Tableau de bord client : sous-onglets, 4 petits graphiques, questions, Kanban (déc. 2026) */
.dash-tabs .tab-n { margin-left: 6px; font-size: .74rem; padding: 1px 7px; border-radius: 99px; background: var(--line); color: var(--text); }
.btn-xs { padding: 5px 10px; font-size: .8rem; border-radius: 99px; }
.x-smalls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.x-small { margin: 0; padding: 14px 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.x-small figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.x-small-t { font-weight: 600; font-size: .92rem; }
.x-small-v { font: 600 1.35rem/1 var(--font-head); color: #1C2B3A; font-variant-numeric: tabular-nums; }
.x-small .fine { margin: 4px 0 0; }
.x-freq { display: grid; gap: 4px; max-width: 280px; font-weight: 600; }
.x-freq select, .q-bar select, .q-bar input { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--surface); color: var(--text); }
.x-confirm { margin: 8px 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); max-width: 560px; }
.x-confirm p { margin: 0 0 10px; }
.x-confirm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.q-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 12px; }
.q-tools .fine { margin: 0; flex-basis: 100%; }
.q-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 8px 0 10px; }
.q-bar .f { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.q-bar input { min-width: 240px; }
.q-count { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.q-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.q-wrap:focus-visible { outline: 3px solid #35597E; outline-offset: 2px; }
.q-table { border: 0; border-radius: 0; }
.q-table thead th { position: sticky; top: 0; z-index: 2; }
.q-table th[scope=row] { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 400; color: var(--text); min-width: 260px; max-width: 420px; font-size: .88rem; }
.q-table thead th:first-child { left: 0; z-index: 3; }
.q-table td { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 8px 10px; }
.q-table td.hit { background: #E3EAE4; color: #2F4A2E; }
.q-table td.miss { color: #5b6570; }
.q-table td.na { color: #8a9396; font-weight: 400; }
.q-table td.q-rate { color: #1C2B3A; }
.q-editor { display: grid; gap: 10px; margin: 8px 0 18px; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.q-edit-list { margin: 0; padding-left: 26px; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.q-edit-list li { display: flex; gap: 8px; align-items: center; }
.q-edit-list input, .q-add input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--surface); color: var(--text); }
.q-add { display: flex; gap: 8px; }
.q-editor > .btn { justify-self: start; }
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 16px; }
.kb-col { background: var(--surface-2); border-radius: 14px; padding: 12px; min-height: 160px; transition: box-shadow .15s; }
.kb-col.over { box-shadow: inset 0 0 0 2px #35597E; }
.kb-col h3 { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 10px; font-size: .98rem; }
.kb-n { font-size: .8rem; padding: 1px 8px; border-radius: 99px; background: var(--surface); }
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; box-shadow: inset 3px 0 0 #8a9396; cursor: grab; }
.kb-card.impact-fort { box-shadow: inset 3px 0 0 #35597E; }
.kb-card.impact-moyen { box-shadow: inset 3px 0 0 #4A6848; }
.kb-card.dragging { opacity: .5; }
.kb-fait .kb-title { text-decoration: line-through; color: var(--muted); }
.kb-title { margin: 0 0 6px; font-size: .98rem; line-height: 1.35; }
.kb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.kb-tags .chip { background: var(--surface-2); color: var(--text); font-weight: 600; }
.kb-tags .chip.imp-fort { background: #DCE5EE; color: #1C2B3A; }
.kb-why { margin: 0 0 6px; color: var(--muted); font-size: .88rem; }
.kb-more summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: #35597E; padding: 4px 0; }
.kb-sub { margin: 10px 0 4px; font-weight: 700; font-size: .84rem; }
.kb-links { margin: 0; padding-left: 18px; font-size: .88rem; }
.kb-links a { color: #35597E; text-decoration: underline; }
.kb-com-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.kb-com-list li p { margin: 0; }
.kb-com-list li:not(.muted) { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.kb-com-meta { color: var(--muted); font-size: .78rem; }
.kb-com-form { display: grid; gap: 6px; }
.kb-com-form textarea { font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--surface); color: var(--text); resize: vertical; }
.kb-com-form .btn { justify-self: start; }
.kb-move { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
.kb-move .btn:only-child { margin-left: auto; }
.kb-a_faire .kb-move .btn:only-child { margin-left: auto; }
.kb-empty { color: var(--muted); font-size: .88rem; padding: 10px 4px; }
@media (max-width: 860px) { .x-smalls, .kb { grid-template-columns: 1fr; } }

/* Audit : avancement par IA, coche qui apparaît à 100 % */
.aud-engines { max-width: 720px; margin: 14px auto 0; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.aud-eng-title { margin: 0 0 10px; font-weight: 600; font-size: .9rem; }
.aud-eng-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aud-eng { display: grid; grid-template-columns: 140px 1fr 48px 26px; gap: 12px; align-items: center; font-size: .9rem; }
.aud-eng-name { font-weight: 600; }
.aud-eng-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.aud-eng-bar span { display: block; height: 100%; width: calc(var(--w, 3) * 1%); border-radius: 99px; background: #35597E; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.aud-eng[data-state="done"] .aud-eng-bar span { background: var(--ok); }
.aud-eng-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.aud-eng-tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); transform: scale(0); }
.aud-eng-tick .ic { width: 14px; height: 14px; stroke: #fff; }
.aud-eng[data-state="done"] .aud-eng-tick { animation: tick-pop .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes tick-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .aud-eng-bar span { transition: none; } .aud-eng[data-state="done"] .aud-eng-tick { animation: none; transform: scale(1); } }
@media (max-width: 560px) { .aud-eng { grid-template-columns: 96px 1fr 42px 24px; gap: 8px; } }
.kb-effect { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; font-size: .84rem; background: var(--surface-2); }
.kb-effect p { margin: 0; }
.kb-effect.up { background: #E3EAE4; color: #2F4A2E; }
.kb-effect-t { font-weight: 700; }
.kb-effect.wait { color: var(--muted); }
.kb-targets { margin: 0; padding-left: 18px; font-size: .86rem; display: grid; gap: 2px; }
.pot-kpis .kpi-v { color: #2F4A2E; }
.pot-gaps { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.pot-silent { font-weight: 600; }
.rp-viewer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: #1C2B3A; color: #fff; }
.rp-viewer p { margin: 0; }
.rp-viewer .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.lead-search { display: grid; gap: 4px; max-width: 420px; margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.lead-search input { font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--surface); color: var(--text); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* Étoile « IA » et assistant du client */
.ai-spark { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ai-spark .disc { fill: #35597E; }
.ai-spark .star { fill: #F5F3EE; }
/* Sur un bouton plein ardoise : disque clair, étoile ardoise, pour rester visible. */
.btn:not(.btn-ghost) .ai-spark .disc { fill: #F5F3EE; }
.btn:not(.btn-ghost) .ai-spark .star { fill: #35597E; }
.ai-btn { display: inline-flex; align-items: center; gap: 8px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ai-chip { font: inherit; font-size: .86rem; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-strong, var(--line)); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.ai-chip:hover { border-color: #35597E; }
.ai-form { display: grid; gap: 8px; max-width: 760px; }
.ai-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 10px; background: var(--surface); color: var(--text); resize: vertical; }
.ai-form .btn { justify-self: start; }
.ai-thread { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.ai-q { margin: 0 0 6px; font-weight: 700; }
.ai-a { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ai-a-text { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.ai-sources { margin: 0; padding-left: 18px; font-size: .86rem; }
.ai-sources a { color: #35597E; text-decoration: underline; }
.rival-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.rival-card { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rival-card h3 { margin: 0 0 4px; font-size: 1rem; }
.rival-card p { margin: 0; }
.rival-src { font-size: .86rem; color: #35597E; }
.dash-ai h2 { display: flex; align-items: center; gap: 10px; }
.dash-ai h2 .ai-spark { width: 1.1em; height: 1.1em; }
.bars .bar-v { min-width: 4.5em; white-space: nowrap; text-align: right; }
.score-how { margin: 10px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.score-how summary { cursor: pointer; font-weight: 600; color: #35597E; }
.score-how p { margin: 10px 0 6px; }
.score-how ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 4px; }
.score-how .dash-table th[scope=row] { color: var(--text); font-weight: 600; font-size: .88rem; }
/* Questions : cases colorées par position, détail d'une question, suggestions */
.q-table td.hit.r1 { background: #2F4A2E; color: #fff; }
.q-table td.hit.r2 { background: #4A6848; color: #fff; }
.q-table td.hit.r3 { background: #DCE6DD; color: #2F4A2E; }
.q-table td.na { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(28, 43, 58, .06) 4px 8px); }
.q-open { all: unset; cursor: pointer; display: block; color: var(--text); }
.q-open:hover { color: #35597E; text-decoration: underline; }
.q-open:focus-visible { outline: 3px solid #35597E; outline-offset: 2px; border-radius: 4px; }
.q-open[aria-expanded="true"] { font-weight: 700; }
.q-detail-row td { text-align: left; white-space: normal; background: var(--surface-2); padding: 14px 16px; }
.q-detail { display: grid; gap: 6px; max-width: 720px; font-weight: 400; }
.q-detail p { margin: 0; }
.q-engines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.q-engines li { padding: 3px 10px; border-radius: 99px; font-size: .82rem; font-weight: 600; }
.q-engines li.ok { background: #DCE6DD; color: #2F4A2E; }
.q-engines li.ko { background: var(--surface); color: #5b6570; border: 1px solid var(--line); }
.q-recos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.q-recos .chip { background: var(--surface); color: var(--text); }
.q-detail .ai-btn { justify-self: start; }
.q-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 4px; padding: 0; font-size: .86rem; color: var(--muted); }
.q-legend li { display: flex; align-items: center; gap: 6px; }
.q-sw { display: inline-grid; place-items: center; width: 26px; height: 20px; border-radius: 4px; font-weight: 700; font-size: .78rem; border: 1px solid var(--line); }
.q-sw.hit.r1 { background: #2F4A2E; color: #fff; }
.q-sw.hit.r2 { background: #4A6848; color: #fff; }
.q-sw.hit.r3 { background: #DCE6DD; color: #2F4A2E; }
.q-sw.miss { color: #5b6570; }
.q-sw.na { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(28, 43, 58, .1) 4px 8px); }
.q-suggest { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.q-suggest ul { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.q-suggest li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.q-edit-list .btn { flex: none; }
.x-history { margin-top: 22px; }
.x-history h3 { margin: 0 0 6px; font-size: 1.05rem; }
.x-next { margin: 0 0 10px; font-weight: 600; color: #1C2B3A; }
.x-hist-wrap { max-height: 360px; overflow: auto; }
.x-hist td.up { color: #2F4A2E; font-weight: 700; }
.x-hist td.down { color: #8A3B2E; font-weight: 700; }
.x-hist th[scope=row] { font-weight: 400; color: var(--text); white-space: nowrap; }
.rp-scope { margin: 6px 0 12px; padding: 10px 14px; border-left: 3px solid #35597E; background: var(--surface); border-radius: 0 10px 10px 0; font-size: .92rem; }
.rp-scope a { color: #35597E; font-weight: 600; text-decoration: underline; }
.offer li { display: grid; gap: 2px; }
.offer-item { font-weight: 600; }
.offer-d { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* Visite guidée de la démo : fond flouté et assombri, cible nette entourée, bulle avec flèche */
.tour { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.tour-pane { position: fixed; background: rgba(28, 43, 58, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); pointer-events: auto; transition: all .35s ease; }
.tour-ring { position: fixed; border: 3px solid #F5F3EE; border-radius: 14px; box-shadow: 0 0 0 3px #35597E, 0 0 30px rgba(53, 89, 126, .5); transition: all .35s ease; pointer-events: none; }
.tour-box { position: fixed; z-index: 1001; pointer-events: auto; background: #fff; color: #1C2B3A; border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 18px 50px rgba(28, 43, 58, .35); transition: top .35s ease, left .35s ease; }
.tour-box.tour-in { animation: tour-in .35s ease; }
@keyframes tour-in { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-arrow { position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.tour-box[data-side="below"] .tour-arrow { top: -8px; }
.tour-box[data-side="above"] .tour-arrow { bottom: -8px; }
.tour-count { margin: 0 0 4px; font-size: .78rem; font-weight: 700; color: #35597E; }
.tour-title { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; }
.tour-title:focus { outline: none; }
.tour-text { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; color: #33414f; }
.tour-row { display: flex; justify-content: space-between; gap: 8px; }
.tour-quit { all: unset; cursor: pointer; display: block; margin-top: 10px; font-size: .8rem; color: #5b6570; text-decoration: underline; }
.tour-quit:focus-visible, .tour-box .btn:focus-visible { outline: 3px solid #35597E; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tour-pane, .tour-ring, .tour-box { transition: none; } .tour-box.tour-in { animation: none; } }
.btn-lg { font-size: 1.05rem; padding: 14px 24px; }
.offer ul { align-content: start; }

/* Site public (lumna.fr) : seule la démo et la présentation ; liens vers le reste du site masqués */
.is-public body:not(.public-home) .topbar .nav,
.is-public .account-link, .is-public details.lang, .is-public [data-demo-toggle],
.is-public .q-tools a[href*="offres"], .is-public .dash-kanban .q-tools a[href*="offres"], .is-public #tour-start + a { display: none; }
.public-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.narrow { max-width: 720px; }
.nl-public { display: grid; gap: 10px; }
.nl-done { font-weight: 600; color: #2F4A2E; }
.principles { padding-left: 18px; display: grid; gap: 8px; }

/* Mobile (iPhone) : rien ne doit élargir la page ; en-tête public avec son bouton ; faits du héros empilés */
.dash-grid, .dash-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid > *, .dash-split > *, .dash-card, .x-measure, .x-history, .table-wrap { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 960px) { .dash-grid, .dash-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .public-home .top-actions .btn, .is-public .top-actions .btn { display: inline-flex; padding: 8px 14px; font-size: .9rem; }
  .public-home .topbar .nav { display: none; }
}
@media (max-width: 520px) {
  .hero-facts li { display: block; }
  .hero-facts strong { display: block; min-width: 0; margin-bottom: 2px; }
  .public-cta .btn { width: 100%; justify-content: center; text-align: center; }
  .demo-bar { font-size: .85rem; }
  .demo-bar .wrap { gap: 6px 14px; min-height: 0; }
  .tour-box { padding: 16px 16px 12px; }
  .tour-text { font-size: .9rem; }
}
.dash { grid-template-columns: minmax(0, 1fr); }
.dash > *, .q-wrap { min-width: 0; }
.dash-invoices { overflow-x: auto; }
@media (max-width: 520px) { .bar-v { font-size: .78rem; } }

/* ——— Tableau de bord client : deux mises en page ———
   PC : onglets en haut, tableaux complets.
   Mobile (≤ 720 px) : barre d'onglets fixe en bas, à portée du pouce, 5 onglets toujours visibles (rien à faire glisser) ;
   questions en fiches avec les 6 dernières mesures ; historique et factures en fiches empilées. */
.dash-tabs .tab-ic, .dash-tabs .tab-s, .q-mhint { display: none; }
@media (max-width: 720px) {
  body.dash-page:not(.admin) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.dash-page:not(.admin) .dash-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-radius: 0;
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(28, 43, 58, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  body.dash-page:not(.admin) .dash-tabs a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; padding: 6px 2px; border-radius: 12px; font-size: .7rem; font-weight: 600; line-height: 1.1;
    color: #5b6570; background: none; box-shadow: none; text-align: center; -webkit-tap-highlight-color: transparent;
  }
  body.dash-page:not(.admin) .dash-tabs a[aria-current="page"] { color: #1F3A56; background: #E8EEF4; }
  body.dash-page:not(.admin) .dash-tabs .tab-ic { display: block; width: 22px; height: 22px; }
  body.dash-page:not(.admin) .dash-tabs .tab-l { display: none; }
  body.dash-page:not(.admin) .dash-tabs .tab-s { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dash-page:not(.admin) .dash-tabs .tab-n { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; padding: 0 5px; min-width: 18px; font-size: .62rem; line-height: 16px; background: #35597E; color: #fff; }

  /* Questions : une fiche par question, les 6 dernières mesures en cases datées, rien à faire glisser */
  .q-mhint { display: block; margin: 4px 0 10px; }
  .q-wrap { max-height: none; overflow: visible; border: 0; border-radius: 0; }
  .q-table, .q-table tbody { display: block; }
  .q-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .q-table tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; padding: 12px 14px 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  .q-table th[scope=row] { position: static; display: block; flex: 1 0 100%; min-width: 0; max-width: none; padding: 0 0 2px; background: none; border: 0; }
  .q-table .q-open { width: 100%; min-height: 44px; text-align: left; font-size: .95rem; line-height: 1.35; }
  .q-table td { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; max-width: 46px; height: 38px; margin-top: 18px; padding: 0; border: 0; border-radius: 8px; font-size: .85rem; }
  .q-table td.miss { background: var(--surface-2); }
  .q-table td::before { content: attr(data-d); position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: .64rem; font-weight: 400; color: #5b6570; white-space: nowrap; }
  .q-table td.q-m:nth-last-child(n+8) { display: none; }
  .q-table td.q-rate { flex: 0 0 auto; max-width: none; min-width: 48px; margin-left: auto; padding: 0 2px 0 6px; justify-content: flex-end; background: none; font-size: .95rem; }
  .q-table td.q-rate::before { left: auto; right: 0; transform: none; }
  .q-table tr.q-detail-row { display: block; padding: 0; background: none; border: 0; }
  .q-table tr.q-detail-row td { display: block; width: auto; height: auto; margin: -4px 0 0; text-align: left; font-weight: 400; }
  .q-table tr.q-detail-row td::before { content: none; }

  /* Historique des mesures et factures : fiches empilées, chaque valeur avec son nom de colonne */
  .x-hist-wrap { overflow: visible; }
  .dash-invoices { overflow: visible; }
  table.stack-sm, table.stack-sm tbody { display: block; border: 0; }
  table.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack-sm tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  table.stack-sm td, table.stack-sm th { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  table.stack-sm td::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 400; color: #5b6570; }
  table.stack-sm th[scope=row] { grid-column: 1 / -1; font-weight: 700; }
  table.stack-sm th, table.stack-sm .num { background: none; text-align: left; }
}
@media (max-width: 360px) {
  .q-table td.q-m:nth-last-child(n+7) { display: none; }
  body.dash-page:not(.admin) .dash-tabs a { font-size: .68rem; padding: 6px 0; }
}

/* Retours de la relecture mobile */
.x-hist-more { display: none; }
@media (max-width: 720px) {
  .x-hist-wrap { max-height: none; }
  .x-hist-few tbody tr:nth-child(n+4) { display: none; }
  .x-hist-more { display: inline-flex; margin-top: 4px; }
  /* En-tête non collant : l'écran garde la place pour le contenu (la barre d'onglets reste en bas) */
  body.dash-page:not(.admin) .topbar { position: static; }
  .is-demo body.dash-page #tour-start { display: none; }
  .bar { grid-template-columns: minmax(0, 1fr) minmax(60px, 1fr) auto; gap: 8px; }
  /* Zones tactiles d'au moins 44 px */
  .dash .btn-sm, .dash .btn-xs, .dash select, .dash input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }
  .dash .btn-xs { padding: 10px 14px; }
  .dash summary { padding-block: 10px; }
  .dash input[type=checkbox] { width: 22px; height: 22px; }
  .demo-bar a { display: inline-block; padding-block: 8px; }
  .ai-chip { border-radius: 16px; text-align: left; }
  [data-panel] > *, .x-measure, .x-history, .dash-card { scroll-margin-top: 16px; }
  /* Visite guidée : bulle bornée, au-dessus de l'indicateur d'accueil, bouton Quitter assez grand */
  .tour-box { max-height: 54vh; overflow: auto; }
  .tour-quit { min-height: 44px; display: flex; align-items: center; margin-top: 2px; }
}
