/* =========================================================
   AvisBoost — feuille de style maison (vanilla, file://)
   Identité : outil gratuit moderne, hero sombre, pages claires
   Palette : teal #0D9488 + ambre #F59E0B, neutres slate
   Typo : Plus Jakarta Sans (titres + corps), IBM Plex Mono
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marque & accent */
  --brand: #0D9488;
  --brand-600: #0F766E;
  --brand-700: #115E59;
  --brand-soft: #CCFBF1;
  --accent: #F59E0B;
  --accent-600: #D97706;
  --accent-soft: #FEF3C7;

  /* Hero sombre */
  --ink: #0B1220;
  --ink-2: #111A2E;
  --ink-3: #1B2740;

  /* Texte */
  --text: #0F172A;
  --muted: #64748B;
  --muted-2: #94A3B8;

  /* Surfaces */
  --surface: #FFFFFF;
  --soft: #F8FAFC;
  --soft-2: #F1F5F9;
  --border: #E6E9EF;
  --border-2: #D8DEE9;

  /* Étoiles */
  --star: #F59E0B;
  --star-off: #CBD5E1;

  /* Échelle d'espacement (4/8) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px;

  /* Rayons & ombres (sobres) */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .18);

  --container: 1120px;
  --maxread: 720px;

  --ff: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; }
button { font-family: inherit; }

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

/* ---------- Accessibilité focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--r) 0; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.section { padding-block: var(--s9); }
.section--tight { padding-block: var(--s8); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); margin-top: var(--s3); max-width: 16ch; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: var(--s4); max-width: 56ch; }

.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--ff-mono); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); }
.btn--accent { background: var(--accent); color: #2A1A02; }
.btn--accent:hover { background: var(--accent-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--soft-2); }
.btn--onbark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.btn--onbark:hover { background: rgba(255,255,255,.16); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-dark {
  background: rgba(11,18,32,.72);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text);
}
.is-dark .brand { color: #fff; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  flex: none;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand b { color: var(--brand-600); }
.is-dark .brand b { color: #5EEAD4; }

.nav__links { display: flex; align-items: center; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: var(--r-sm);
}
.nav__links a:hover { background: var(--soft-2); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-soft); }
.is-dark .nav__links a { color: #CBD5E1; }
.is-dark .nav__links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.is-dark .nav__links a[aria-current="page"] { color: #fff; background: rgba(94,234,212,.14); }

.nav__cta { display: flex; align-items: center; gap: var(--s3); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.is-dark .nav__toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--text); }
.is-dark .nav__toggle svg { stroke: #fff; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--s3) var(--s5) var(--s5);
    box-shadow: var(--shadow);
    display: none;
  }
  .is-dark .nav__links { background: var(--ink-2); border-bottom-color: rgba(255,255,255,.08); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  .nav__cta .btn--primary.nav__cta-keep { display: inline-flex; }
}

/* ---------- HERO sombre ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(13,148,136,.28), transparent 60%),
    radial-gradient(700px 480px at 0% 110%, rgba(245,158,11,.12), transparent 55%),
    var(--ink);
  color: #E2E8F0;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8);
  align-items: center; padding-block: var(--s9);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: rgba(94,234,212,.12); color: #5EEAD4;
  border: 1px solid rgba(94,234,212,.22);
  padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
}
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.2vw, 58px); margin-top: var(--s5);
  letter-spacing: -.03em;
}
.hero h1 .hl { color: #5EEAD4; }
.hero__sub { color: #A8B6CC; font-size: clamp(17px, 2vw, 20px); margin-top: var(--s5); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6); color: #8294AE; font-size: 14px; }
.hero__trust b { color: #fff; font-weight: 800; }
.hero__trust span { display: inline-flex; flex-direction: column; }

/* ---------- Mockup d'app (CSS pur) ---------- */
.appwin {
  background: var(--surface); color: var(--text);
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.appwin__bar {
  display: flex; align-items: center; gap: var(--s3);
  padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--soft);
}
.appwin__dots { display: flex; gap: 6px; }
.appwin__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.appwin__dots i:nth-child(1) { background: #FB7185; }
.appwin__dots i:nth-child(2) { background: #FBBF24; }
.appwin__dots i:nth-child(3) { background: #34D399; }
.appwin__url {
  flex: 1; font-family: var(--ff-mono); font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 5px 12px; text-align: center;
}
.appwin__body { padding: var(--s5); display: grid; gap: var(--s4); }

/* Carte avis client */
.review {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: var(--s4); background: var(--surface);
}
.review__top { display: flex; align-items: center; gap: var(--s3); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #64748B, #475569);
}
.avatar--g { background: linear-gradient(135deg, #4285F4, #1A73E8); }
.review__who { display: flex; flex-direction: column; line-height: 1.3; }
.review__who b { font-size: 15px; }
.review__who small { color: var(--muted); font-size: 12px; }
.review__src {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.review__text { margin-top: var(--s3); font-size: 15px; color: #334155; }

/* Étoiles */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.stars .s-on path { fill: var(--star); }
.stars .s-off path { fill: var(--star-off); }
.stars--lg svg { width: 22px; height: 22px; }

/* Réponse générée */
.reply {
  border: 1px solid var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: var(--r); padding: var(--s4); background: #F0FDFA;
}
.reply__head {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 12px; font-weight: 800; color: var(--brand-700);
  text-transform: uppercase; letter-spacing: .06em;
}
.reply__head .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,148,136,.18);
}
.reply__text { margin-top: var(--s2); font-size: 14px; color: #134E4A; line-height: 1.6; }
.reply__owner { margin-top: var(--s3); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.reply__owner .avatar { width: 28px; height: 28px; font-size: 12px; }

.typing { display: inline-flex; gap: 3px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s7); padding-block: var(--s8); }
}

/* ---------- Bandeau logos secteurs ---------- */
.sectors { border-block: 1px solid var(--border); background: var(--soft); }
.sectors__inner { display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap; padding-block: var(--s5); }
.sectors__label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.sectors__list { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); list-style: none; padding: 0; margin: 0; }
.sectors__list li { font-weight: 800; font-size: 17px; color: #475569; letter-spacing: -.01em; }

/* ---------- Problème (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }

.statline { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s6); }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-700); }
.stat span { font-size: 14px; color: var(--muted); }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow);
}
.panel--dark {
  background: var(--ink-2); color: #CBD5E1; border-color: rgba(255,255,255,.08);
}

/* ---------- Étapes (comment ça marche) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6) var(--s5) var(--s5);
}
.step__n {
  counter-increment: step;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  box-shadow: var(--shadow-sm); margin-bottom: var(--s4);
}
.step__n::before { content: counter(step); }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin-top: var(--s2); font-size: 15px; }
.step__line { display: none; }

/* ---------- Grille de fonctionnalités ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s7); }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s5); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.feature:hover { border-color: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-700); margin-bottom: var(--s4);
}
.feature__ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.feature.is-accent .feature__ic { background: var(--accent-soft); color: var(--accent-600); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin-top: var(--s2); font-size: 15px; }

/* Feature large (éditorial) */
.feature--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
@media (max-width: 880px) { .feature--wide { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 540px) { .feature--wide { grid-column: span 1; } }

/* ---------- Aperçu tarifs (mini) ---------- */
.priceview {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s8); align-items: center;
  background: var(--ink); color: #E2E8F0; border-radius: var(--r-lg);
  padding: var(--s8); overflow: hidden; position: relative;
  background-image: radial-gradient(600px 300px at 90% 0%, rgba(13,148,136,.25), transparent 60%);
}
@media (max-width: 880px) { .priceview { grid-template-columns: 1fr; gap: var(--s6); padding: var(--s6); } }
.priceview h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); }
.priceview p { color: #A8B6CC; margin-top: var(--s4); }
.pv-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: var(--s5);
}
.pv-card .amt { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.pv-card .amt span { font-size: 16px; color: #8294AE; font-weight: 600; }
.pv-card ul { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); display: grid; gap: 8px; }
.pv-card li { display: flex; gap: 8px; font-size: 14px; color: #CBD5E1; }
.pv-card li svg { width: 18px; height: 18px; flex: none; stroke: #5EEAD4; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: var(--s7); display: grid; gap: var(--s3); }
.faq details {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  overflow: hidden;
}
.faq details[open] { border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s4) var(--s5);
  font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; flex: none; transition: transform .2s ease; stroke: var(--muted); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq p { padding: 0 var(--s5) var(--s5); color: var(--muted); font-size: 16px; }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(700px 400px at 15% -20%, rgba(245,158,11,.16), transparent 60%),
    radial-gradient(700px 400px at 90% 120%, rgba(13,148,136,.30), transparent 60%),
    var(--ink);
  color: #fff; border-radius: var(--r-lg); padding: var(--s9) var(--s7); text-align: center;
}
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; }
.cta-final p { color: #A8B6CC; margin-top: var(--s4); font-size: 18px; max-width: 50ch; margin-inline: auto; }
.cta-final .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94A3B8; margin-top: var(--s9); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s6);
  padding-block: var(--s8) var(--s6);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid .brand { color: #fff; margin-bottom: var(--s3); }
.footer__about { font-size: 14px; line-height: 1.6; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s3); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: #94A3B8; font-size: 15px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center;
  font-size: 13px; color: #64748B;
}
.footer__bottom a { color: #94A3B8; }

/* ---------- Page header générique ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 85% -30%, rgba(13,148,136,.10), transparent 60%),
    var(--soft);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { padding-block: var(--s8) var(--s7); max-width: 760px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin-top: var(--s3); }
.page-hero p { color: var(--muted); font-size: 19px; margin-top: var(--s4); }

/* ---------- DÉMO ---------- */
.demo-layout { display: grid; grid-template-columns: 420px 1fr; gap: var(--s6); align-items: start; }
@media (max-width: 940px) { .demo-layout { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-sm);
}
.card__title { font-size: 18px; margin-bottom: var(--s2); }
.card__hint { color: var(--muted); font-size: 14px; margin-bottom: var(--s5); }

.field { margin-bottom: var(--s5); }
.field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: var(--s2); }
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
textarea, input[type="text"], select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
textarea:focus, input[type="text"]:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
textarea:focus-visible, input:focus-visible, select:focus-visible { outline: none; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Sélecteur d'étoiles interactif */
.starpick { display: inline-flex; gap: 4px; }
.starpick button {
  background: none; border: 0; cursor: pointer; padding: 2px; line-height: 0; border-radius: 6px;
}
.starpick svg { width: 30px; height: 30px; }
.starpick button svg path { fill: var(--star-off); transition: fill .12s ease; }
.starpick button.on svg path { fill: var(--star); }
.starpick:hover button svg path { fill: var(--star-off); }
.starpick button:hover svg path,
.starpick button:hover ~ button svg path { /* placeholder */ }
.starpick.hovering button svg path { fill: var(--star-off); }
.starnote { margin-left: 10px; font-weight: 700; color: var(--muted); font-size: 14px; }

/* Chips ton */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

.form-error {
  display: none; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  border-radius: var(--r); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: var(--s4);
}
.form-error.show { display: block; }

/* Sortie démo */
.output { min-height: 100%; }
.output__empty {
  border: 2px dashed var(--border-2); border-radius: var(--r-lg);
  padding: var(--s8) var(--s6); text-align: center; color: var(--muted);
  display: grid; place-items: center; gap: var(--s3); min-height: 360px;
}
.output__empty svg { width: 48px; height: 48px; stroke: var(--border-2); fill: none; stroke-width: 1.5; }

.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.result-card__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); background: var(--soft);
}
.result-card__bar .lbl { font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.result-card__bar .lbl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.18); }
.result-card__body { padding: var(--s5); }

.preview-review {
  background: var(--soft); border: 1px solid var(--border); border-radius: var(--r);
  padding: var(--s4); margin-bottom: var(--s5);
}
.preview-review .meta { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }

.reply-out {
  font-size: 16px; line-height: 1.7; color: #134E4A;
  background: #F0FDFA; border: 1px solid var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: var(--r); padding: var(--s5); white-space: pre-wrap;
}
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); align-items: center; }
.copied-flag { font-size: 14px; font-weight: 700; color: var(--brand-700); display: none; }
.copied-flag.show { display: inline-flex; align-items: center; gap: 6px; }
.demo-disclaimer {
  margin-top: var(--s5); font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--soft-2); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 8px 14px;
}
.demo-disclaimer svg { width: 16px; height: 16px; stroke: var(--accent-600); flex: none; }

/* ---------- TARIFS ---------- */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s6); }
.toggle-wrap .opt { font-weight: 700; color: var(--muted); }
.toggle-wrap .opt.is-active { color: var(--text); }
.save-badge { background: var(--accent-soft); color: var(--accent-600); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-pill); }
.switch {
  --w: 56px; --h: 30px;
  position: relative; width: var(--w); height: var(--h); flex: none;
  border: 1px solid var(--border-2); background: var(--soft-2); border-radius: var(--r-pill);
  cursor: pointer; padding: 0; transition: background .15s ease;
}
.switch[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease;
}
.switch[aria-checked="true"]::after { transform: translateX(26px); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); align-items: stretch; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); display: flex; flex-direction: column;
}
.plan.is-featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan.is-featured::before {
  content: "Le plus choisi"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #2A1A02; font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: var(--r-pill); white-space: nowrap;
}
.plan__name { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); }
.plan__desc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 40px; }
.plan__price { margin-top: var(--s4); display: flex; align-items: baseline; gap: 6px; }
.plan__price .amount { font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.plan__price .per { color: var(--muted); font-size: 15px; font-weight: 600; }
.plan__bill { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.plan li svg { width: 19px; height: 19px; flex: none; stroke: var(--brand); margin-top: 2px; }
.plan li.off { color: var(--muted-2); }
.plan li.off svg { stroke: var(--border-2); }

/* Tableau comparatif */
.cmp-wrap { overflow-x: auto; margin-top: var(--s7); border: 1px solid var(--border); border-radius: var(--r-lg); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
table.cmp thead th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.cmp tbody th { font-weight: 600; color: var(--text); }
table.cmp td { text-align: center; }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: 0; }
table.cmp .yes svg { width: 18px; height: 18px; stroke: var(--brand); display: inline-block; }
table.cmp .no { color: var(--border-2); }
table.cmp .hi { background: rgba(13,148,136,.04); }

/* ---------- Pages éditoriales (fonctionnalités) ---------- */
.editorial { display: grid; gap: var(--s9); }
.edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.edit-row.flip .edit-row__media { order: -1; }
@media (max-width: 880px) { .edit-row { grid-template-columns: 1fr; gap: var(--s6); } .edit-row.flip .edit-row__media { order: 0; } }
.edit-row h2 { font-size: clamp(24px, 3vw, 32px); margin-top: var(--s3); }
.edit-row p { color: var(--muted); margin-top: var(--s4); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin-top: var(--s5); display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 16px; }
.checklist li svg { width: 20px; height: 20px; flex: none; stroke: var(--brand); margin-top: 3px; }

/* Mini mockups éditoriaux */
.mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--shadow);
}
.tone-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s4); }
.tone-pill { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-2); color: var(--muted); }
.tone-pill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lang-grid .flagcell {
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 6px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.lang-grid .flagcell.on { background: var(--brand-soft); color: var(--brand-700); border-color: var(--brand-soft); }
.bars { display: grid; gap: 10px; margin-top: var(--s3); }
.bar-line { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bar-line .lbl2 { width: 56px; color: var(--muted); font-weight: 700; }
.bar-line .track { flex: 1; height: 10px; background: var(--soft-2); border-radius: var(--r-pill); overflow: hidden; }
.bar-line .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-700)); border-radius: var(--r-pill); }
.bar-line .num { width: 36px; text-align: right; font-weight: 800; }

/* Notification mock */
.notif {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; background: var(--surface);
}
.notif + .notif { margin-top: 10px; }
.notif .nic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.notif .nic.teal { background: var(--brand-soft); color: var(--brand-700); }
.notif .nic.amber { background: var(--accent-soft); color: var(--accent-600); }
.notif .nic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.notif b { font-size: 14px; }
.notif small { color: var(--muted); font-size: 13px; display: block; }

/* ---------- Contenu légal ---------- */
.legal { max-width: var(--maxread); }
.legal h2 { font-size: 22px; margin-top: var(--s7); padding-top: var(--s2); }
.legal h2:first-of-type { margin-top: var(--s5); }
.legal h3 { font-size: 17px; margin-top: var(--s5); }
.legal p, .legal li { color: #334155; font-size: 16px; }
.legal p { margin-top: var(--s3); }
.legal ul { margin-top: var(--s3); padding-left: 22px; display: grid; gap: 8px; }
.legal .toc {
  background: var(--soft); border: 1px solid var(--border); border-radius: var(--r);
  padding: var(--s5); margin-bottom: var(--s6);
}
.legal .toc ul { list-style: none; padding: 0; margin-top: var(--s3); columns: 2; }
@media (max-width: 560px) { .legal .toc ul { columns: 1; } }
.legal .updated { color: var(--muted); font-size: 14px; }

/* ---------- Bandeau disclaimer ---------- */
.disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid #FDE68A; border-radius: var(--r);
  padding: 14px 16px; color: #92400E; font-size: 14px; line-height: 1.5;
}
.disclaimer svg { width: 20px; height: 20px; flex: none; stroke: var(--accent-600); margin-top: 1px; }

/* ---------- Emplacements publicitaires (AdSense / Ezoic) ---------- */
/* Placeholder discret, thème teal, bordure pointillée, min-height anti-CLS.
   Coller le vrai code annonce à l'intérieur de chaque .ad-slot. */
.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-inline: auto;
  padding: var(--s3);
  background: var(--soft);
  border: 1px dashed var(--border-2);
  border-radius: var(--r);
  color: var(--muted-2);
  text-align: center;
  overflow: hidden;
}
.ad-slot .ad-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
/* Petit liseré teal discret en haut pour rester dans l'identité */
.ad-slot::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13,148,136,.35), transparent);
}
/* Bannière horizontale (home, en-têtes de section) */
.ad-slot--leaderboard { min-height: 90px; max-width: 970px; }
/* Pavé (sous la réponse générée, colonnes) */
.ad-slot--rectangle { min-height: 250px; max-width: 336px; }
/* Intégré au fil du contenu (guide) */
.ad-slot--inarticle { min-height: 250px; max-width: 580px; margin-block: var(--s7); }

/* Espacement vertical par défaut entre une pub et le contenu */
.ad-zone { margin-block: var(--s7); display: flex; justify-content: center; }

@media (max-width: 560px) {
  .ad-slot--leaderboard { min-height: 100px; }
  .ad-slot--rectangle { min-height: 250px; max-width: 100%; }
}

/* ---------- utilitaires ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s4); }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
