/* ============================================================
   Novawebster - Audit SEO design system
   Tokens mirror /design-system/colors_and_type.css
   Typography: Space Grotesk (sans) + JetBrains Mono (numerals/code)
   Brand: ink #0A0A0A, white canvas, electric blue #2563EB (the dot)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens (semantic) - Novawebster ink + navy + dot */

  /* Navy — réservé au HERO (signature visuelle).
     Body en gris clair pour lisibilité optimale. */
  --navy:         #0f1a35;
  --navy-2:       #1a2750;       /* haut du gradient hero */
  --navy-3:       #08122a;       /* bas du gradient hero */

  --bg:           #f5f6f8;       /* gris clair cool — cards blanches pop sans agression */
  --surface:      #ffffff;
  --surface-2:    #fafafa;       /* alt section background */
  --surface-3:    #f4f4f5;
  --border:       #e5e5e5;
  --border-strong:#d4d4d4;
  --ink:          #0a0a0a;       /* the bold "webster" black */
  --ink-soft:     #171717;
  --muted:        #525252;
  --muted-soft:   #a3a3a3;
  --accent:       #2563eb;       /* the dot */
  --accent-2:     #1d4fd8;
  --accent-soft:  #eff4fe;
  --accent-100:   #dce6fd;

  /* Couleurs sémantiques — fonds doux + variants assombris pour TEXTE
     (les versions de base servent aux fonds de badge ; les *-text aux mots
     sur fond clair où WCAG AA 4.5:1 est requis). */
  --ok:           #10b981;
  --ok-soft:      #d1fae5;
  --ok-text:      #047857;       /* ratio 5.4:1 sur blanc — accessible */
  --warn:         #f59e0b;
  --warn-soft:    #fef3c7;
  --warn-text:    #b45309;       /* ratio 5.5:1 sur blanc — accessible */
  --bad:          #ef4444;
  --bad-soft:     #fee2e2;
  --bad-text:     #b91c1c;       /* ratio 6.4:1 sur blanc — accessible */
  --crit:         #991b1b;
  --info:         #0891b2;

  /* Series palette (aligned with Chart.js datasets) */
  --series-1: #2563eb;
  --series-2: #ef4444;
  --series-3: #10b981;
  --series-4: #f59e0b;
  --series-5: #6366f1;

  /* Geometry - mostly sharp, pill for CTAs/chips */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Elevation - crisp, ink-based (low diffusion) */
  --shadow-1:  0 1px 2px rgba(10,10,10,0.04);
  --shadow-2:  0 2px 8px rgba(10,10,10,0.06);
  --shadow-3:  0 8px 24px rgba(10,10,10,0.08);
  --shadow-ink: 6px 6px 0 0 var(--ink);  /* signature hard-offset */

  /* Typography scale */
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Brand fonts */
  --font-sans:    'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: var(--fs-md);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings inherit Space Grotesk by default; tighter tracking for display sizes */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); letter-spacing: -0.015em; }
strong, b { font-weight: 700; }

/* Code + mono numerals use JetBrains Mono */
code, pre, kbd, samp { font-family: var(--font-mono); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

code {
  background: var(--surface-3); color: var(--ink);
  padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Consolas, 'Courier New', monospace;
  font-size: 0.88em;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-5); }
@media (max-width: 600px) { .container { padding: 0 var(--space-4); } }

/* ============================================================
   Hero / Header - Novawebster editorial: white ground, ink type, blue dot
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-3) 100%);
  color: #ffffff;
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  /* Pas de border-bottom : le body est déjà navy, transition fluide.
     L'accent line ::after subsiste comme signature visuelle. */
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, transparent 65%, var(--accent) 65%, var(--accent) 68%, transparent 68%);
}
.hero.compact { padding: var(--space-6) 0 var(--space-5); }
.hero h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}
.hero h1 .nw-light { font-weight: 300; color: rgba(255,255,255,0.72); }
.hero h1 .nw-dot { color: var(--accent); }
.hero.compact h1 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem); margin-bottom: var(--space-2); }
.hero .lead {
  margin: 0;
  font-size: var(--fs-lg);
  max-width: 720px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}
.hero.compact .lead { font-size: var(--fs-md); }
.hero .lead strong { color: #ffffff; }
.hero p { color: rgba(255,255,255,0.85); }
.hero .muted { color: rgba(255,255,255,0.6); }
.hero a { color: #ffffff; border-bottom: 1px solid rgba(255,255,255,0.4); }
.hero a:hover { border-bottom-color: var(--accent); color: #ffffff; }
.hero code {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}

/* Wordmark dans le hero : version sur fond sombre */
.hero .brand-wordmark        { color: #ffffff; }
.hero .brand-wordmark .wm-light { color: rgba(255,255,255,0.6); font-weight: 300; }
.hero .brand-wordmark .wm-bold  { color: #ffffff; font-weight: 700; }
.hero .brand-wordmark .wm-dot   { color: var(--accent); }

/* Eyebrow garde son bleu accent : visible sur le navy (~5:1) */

/* Brand row + wordmark */
.brand-row { display: flex; align-items: flex-start; gap: var(--space-5); flex-wrap: wrap; }
@media (max-width: 600px) { .brand-row { gap: var(--space-3); } }
.brand-logo { max-height: 56px; max-width: 200px; border-radius: var(--radius-sm); }
.brand-wordmark {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);            /* 1.375rem ≈ 22px — présence visuelle plus marquée */
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.brand-wordmark .wm-light { font-weight: 300; }
.brand-wordmark .wm-bold  { font-weight: 700; }
.brand-wordmark .wm-dot   { color: var(--accent); font-weight: 700; }
.brand-wordmark:hover { text-decoration: none; }
@media (max-width: 600px) {
  .brand-wordmark { font-size: var(--fs-lg); }
  .brand-logo     { max-height: 44px; max-width: 160px; }
}

/* Eyebrow label - small caps, blue, used above hero h1 */
.nw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.nw-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   Layout
   ============================================================ */
main { padding: var(--space-6) 0 var(--space-8); }
@media (max-width: 600px) { main { padding: var(--space-4) 0 var(--space-6); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 2px 6px rgba(10,10,10,0.04);
}
@media (max-width: 600px) { .card { padding: var(--space-4); border-radius: var(--radius); } }

.card h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.card h2::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.card h3 {
  margin: var(--space-5) 0 var(--space-3);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink-soft);
}
.card h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.error { color: var(--bad-text); font-weight: 500; }
.cmp-better { color: var(--ok-text); font-weight: 500; }
.cmp-worse { color: var(--bad-text); font-weight: 500; }

/* ============================================================
   Form
   ============================================================ */
.row { margin-bottom: var(--space-4); }
label { display: block; font-weight: 500; color: var(--ink-soft); font-size: var(--fs-sm); }
label .muted { font-weight: 400; }

input[type="url"], input[type="email"], input[type="text"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--fs-md);
  margin-top: 6px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  font-family: var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-100);
}
input::placeholder, textarea::placeholder { color: var(--muted-soft); }
@media (max-width: 480px) {
  input[type="url"], input[type="email"], input[type="text"], input[type="tel"],
  input[type="number"], input[type="search"], input[type="password"], input[type="date"],
  select, textarea { font-size: 16px; } /* iOS no-zoom on focus */
}

.consent label { font-weight: 400; color: var(--muted); display: flex; gap: var(--space-2); align-items: flex-start; }

/* Buttons - NW pill radius for primary CTAs (mirrors the dot in the logo) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent);
  color: #ffffff;
  border: 1.5px solid var(--accent);
  padding: 12px 24px;
  font-size: var(--fs-md);
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: background 120ms ease, border-color 120ms ease, transform 100ms ease, box-shadow 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; color: #ffffff; box-shadow: 0 6px 18px rgba(37,99,235,0.25); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: progress; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: var(--fs-sm); min-height: 36px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); box-shadow: 4px 4px 0 0 var(--accent); }
.btn-ink { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-soft); color: #ffffff; border-color: var(--ink-soft); box-shadow: 4px 4px 0 0 var(--accent); }
.btn .arrow, .btn-arrow { transition: transform 150ms ease; display: inline-block; }
.btn:hover .arrow, .btn:hover .btn-arrow { transform: translateX(3px); }

.export-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* ============================================================
   Landing page
   ============================================================ */
.landing .hero {
  padding: var(--space-8) 0 var(--space-7);
  margin-bottom: var(--space-6);          /* respiration entre hero et form */
}
@media (max-width: 720px) {
  .landing .hero {
    padding: var(--space-6) 0 var(--space-5);
    margin-bottom: var(--space-5);        /* respiration mobile */
  }
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-5);
  margin-top: calc(-1 * var(--space-5));
  margin-bottom: var(--space-7);
}
@media (max-width: 980px) { .landing-grid { grid-template-columns: 1fr; margin-top: 0; gap: var(--space-4); } }

.form-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ink);
  padding: var(--space-6);
}
@media (max-width: 600px) {
  .form-card {
    padding: var(--space-5) var(--space-4);
    border-width: 1.5px;
    box-shadow: 4px 4px 0 0 var(--ink);
  }
}

.form-title {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.form-title::before { content: none; }
.form-title::after { content: '.'; color: var(--accent); font-weight: 700; }

.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-cols { grid-template-columns: 1fr; gap: 0; } }
.extra-comp summary { padding: var(--space-2) 0; color: var(--accent); font-weight: 500; }
.extra-comp summary:hover { color: var(--accent-2); }

.btn-lg {
  padding: 16px 28px;
  font-size: var(--fs-lg);
  width: 100%;
  justify-content: center;
  font-weight: 700;
  min-height: 56px;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--accent);
}
.btn-lg:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--accent);
}
.btn-lg:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--accent); }
@media (max-width: 600px) { .btn-lg { padding: 14px 18px; font-size: var(--fs-md); } }

.btn-block { display: flex; width: 100%; justify-content: center; margin-top: var(--space-3); }
.form-msg { margin-top: var(--space-3); }
.form-msg.error {
  background: var(--bad-soft);
  color: var(--crit);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--bad);
}

.landing-side .trust-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.stat .stat-num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat .stat-lbl {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 6px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.checklist li {
  padding: 8px 0 8px 22px;
  border-bottom: 1px dashed var(--border);
  position: relative;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.checklist li:last-child { border-bottom: 0; }

/* ============================================================
   Form-specific (legacy compat)
   ============================================================ */
.features ul.grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms ease, border-color 150ms ease;
}
.features li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--ink);
}
.features li strong { color: var(--ink); display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--fs-md); }

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: var(--space-7) 0 var(--space-6);
  font-size: var(--fs-sm);
  margin-top: var(--space-7);
}
footer .container { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; }
footer .muted, footer.muted { color: rgba(255,255,255,0.65); }
footer a { color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }
footer a:hover { border-bottom-color: var(--accent); color: #ffffff; text-decoration: none; }
footer .nw-dot { color: var(--accent); }
footer small { color: rgba(255,255,255,0.55); display: block; margin-top: 6px; }

/* Footer right column with contact + legal links */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-legal {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer-legal a {
  color: rgba(255,255,255,0.7);
  border-bottom: none;
  padding-bottom: 0;
  font-size: var(--fs-xs);
}
.footer-legal a:hover {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.footer-legal span { color: rgba(255,255,255,0.3); }
@media (max-width: 600px) {
  .footer-right { align-items: flex-start; }
}

/* ============================================================
   Pages légales (mentions-legales.php, confidentialite.php)
   ============================================================ */
.container-narrow { max-width: 760px; }
.legal-page main { padding: var(--space-5) 0 var(--space-7); }
.legal-page .hero { padding-bottom: var(--space-5); }
.legal-prose h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--ink);
  letter-spacing: -0.015em;
  display: block;
}
.legal-prose h2::before { display: none; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p,
.legal-prose ul {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}
.legal-prose ul { padding-left: var(--space-5); }
.legal-prose li { margin-bottom: 6px; }
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose em {
  color: var(--accent);
  font-style: normal;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
.legal-prose a { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.legal-prose a:hover { border-bottom-style: solid; }

/* ============================================================
   Report - sticky TOC layout
   ============================================================ */
.report-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 1100px) { .report-layout { grid-template-columns: 1fr; gap: var(--space-4); } }
@media (max-width: 600px) { .report-layout { gap: var(--space-3); } }

.toc {
  position: sticky;
  top: var(--space-4);
  align-self: start;
  max-height: calc(100vh - var(--space-7));
  overflow-y: auto;
}
@media (max-width: 1100px) { .toc { display: none; } }

.toc-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}
.toc h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.toc nav { display: flex; flex-direction: column; gap: 1px; }
.toc nav a {
  display: block;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  border-radius: 6px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.toc nav a:hover {
  background: var(--surface-2);
  color: var(--accent);
  text-decoration: none;
}
.toc nav a.active {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-left-color: var(--accent);
  font-weight: 600;
}
.toc nav a.toc-top {
  font-weight: 600;
  color: var(--ink);
}
.toc nav .toc-group {
  display: block;
  margin: var(--space-3) 0 4px;
  padding: 0 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  font-weight: 700;
}
.toc nav .toc-group:first-of-type { margin-top: var(--space-3); }

/* Chart titles as links */
.chart-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}
.chart-title-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.chart-title-link .link-arrow {
  font-size: 1.1em;
  transition: transform 150ms ease;
}
.chart-title-link:hover .link-arrow {
  transform: translateX(3px);
}

.report-content { min-width: 0; }
section[id] { scroll-margin-top: var(--space-4); }

/* ============================================================
   Report — shared
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.synth { border-left: 4px solid var(--accent); }
.synth h3 { color: var(--ink); }
.quickwins { padding-left: var(--space-5); }
.quickwins li { margin: var(--space-2) 0; }

/* Tables */
table.cmp {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0 0;
  font-size: var(--fs-sm);
  background: var(--surface);
}
table.cmp th, table.cmp td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.cmp thead th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.cmp tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface-2);
  white-space: nowrap;
}
table.cmp tbody tr:hover td { background: rgba(248, 250, 252, 0.7); }
table.cmp tbody tr:last-child td { border-bottom: 0; }

/* Mobile : les tableaux comparatifs (5 colonnes max : client + 4 concurrents)
   ne tiennent pas sur smartphone. On les rend scrollables horizontalement. */
@media (max-width: 720px) {
  table.cmp {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  table.cmp th,
  table.cmp td {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: var(--fs-xs);
  }
  /* La 1re colonne (label de ligne) reste visible : sticky left */
  table.cmp tbody th {
    position: sticky;
    left: 0;
    background: var(--surface-2);
    z-index: 1;
    box-shadow: 1px 0 0 var(--border);
  }
}

/* Indicateur visuel "scroll horizontal" pour les longs blocs de contenu sur mobile */
@media (max-width: 720px) {
  .card { overflow-x: hidden; }    /* Le card lui-même ne scrolle pas, c'est la table dedans */
}

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); padding: 2px 8px; border-radius: 999px;
  color: white; font-weight: 600; letter-spacing: 0.03em;
}
.b-crit { background: var(--crit); }
.b-high { background: var(--bad); }
.b-med  { background: var(--warn); }
.b-low  { background: var(--muted); }
.b-good { background: var(--ok); }

/* Progress */
progress {
  width: 100%; height: 14px;
  border: 0; background: var(--surface-3); border-radius: 999px;
  overflow: hidden;
  appearance: none;
}
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width 300ms ease; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

/* Details / disclosure */
details { margin-top: var(--space-2); }
details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  padding: var(--space-2) 0;
  user-select: none;
}
details summary:hover { color: var(--accent-2); }
details[open] summary { font-weight: 600; }

/* ============================================================
   Scoreboard + radar
   ============================================================ */
.scoreboard h2 { margin-top: 0; }
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--g, var(--accent));
  border-radius: var(--radius);
  padding: var(--space-4);
  position: relative;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.score-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.score-card .score-label {
  font-weight: 600;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 50px;
}
.score-card .score-overall {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--g, var(--ink));
  line-height: 1;
  margin: var(--space-2) 0;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.score-card .score-overall small {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--muted);
}
.score-card .score-grade {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  background: var(--g, var(--accent));
  color: white;
  font-weight: 700;
  font-size: var(--fs-xl);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(15,23,42,0.15);
}
.score-breakdown {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px var(--space-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.score-breakdown .sb-good { color: var(--ok-text); font-weight: 600; }
.score-breakdown .sb-mid  { color: var(--warn-text); font-weight: 600; }
.score-breakdown .sb-bad  { color: var(--bad-text); font-weight: 600; }

.charts-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
@media (max-width: 900px) { .charts-row { grid-template-columns: 1fr; } }
.chart-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  height: 360px;
  position: relative;
}
.chart-wrapper.tall { height: 420px; }
.chart-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   Mapping (tree + clusters)
   ============================================================ */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-4);
}
.map-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.map-col h4 { margin-top: 0; }

.tree {
  list-style: none;
  padding-left: 14px;
  margin: var(--space-2) 0;
  border-left: 1px dashed var(--border-strong);
}
.tree li { margin: 4px 0; font-size: var(--fs-sm); }
.tree-node.depth-0 {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2);
}
.tree-meta { color: var(--muted); font-size: var(--fs-xs); }
.tree-leaf { color: var(--ink); text-decoration: none; }
.tree-leaf:hover { text-decoration: underline; color: var(--accent); }
.tree-issue {
  background: var(--bad);
  color: white;
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 500;
}

/* SVG sitemap */
.sitemap-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.sitemap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sitemap-header h4 { margin: 0; }
.sitemap-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.stat-pill {
  background: var(--surface-3);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.stat-pill.stat-bad { background: var(--bad-soft); color: var(--crit); }
.stat-pill.stat-ok  { background: var(--ok-soft); color: var(--ok); }
.sitemap-canvas {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  overflow-x: auto;
  border: 1px solid var(--border);
}
.sitemap-svg {
  width: 100%;
  min-width: 800px;
  height: auto;
}
.sitemap-node { cursor: default; transition: opacity 150ms ease; }
.sitemap-node:hover { opacity: 0.85; }
.sitemap-node[data-url=""] { cursor: default; }

/* Légende des couleurs par profondeur */
.sitemap-legend {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-size: 13px;
  color: var(--ink);
}
.sitemap-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #0f172a;
  flex-shrink: 0;
}
.legend-gradient {
  display: inline-block;
  width: 60px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
  margin-right: 4px;
}

/* Empty state — affiché quand une section n'a pas de données à analyser */
.empty-state {
  padding: var(--space-4);
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}
.empty-state p:first-child { margin-top: 0; }
.empty-state ul { margin: var(--space-2) 0 0; padding-left: var(--space-4); }
.empty-state li { margin-bottom: 4px; }

/* Treemap-lite (CSS flexbox) */
.treemap-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 180px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}
.treemap-tile {
  min-width: 100px;
  min-height: 80px;
  padding: var(--space-2) var(--space-3);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: var(--fs-xs);
  transition: transform 150ms ease;
  overflow: hidden;
}
.treemap-tile:hover { transform: scale(1.02); }
.treemap-dir {
  font-weight: 600;
  font-size: var(--fs-sm);
  word-break: break-all;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.treemap-count {
  font-size: var(--fs-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.treemap-count span { font-size: var(--fs-xs); font-weight: 400; opacity: 0.85; }

/* Structure section — visual list */
.structure-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}
.structure-block summary {
  font-weight: 500;
  color: var(--ink);
  padding: var(--space-2) 0;
}
.struct-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
@media (max-width: 800px) { .struct-content { grid-template-columns: 1fr; } }
.dir-list h4, .linked-list h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 var(--space-2);
  font-weight: 600;
}
.dir-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 4px;
  font-size: var(--fs-sm);
}
.dir-name {
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-bar {
  height: 14px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.dir-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #06b6d4);
  border-radius: 4px;
  transition: width 300ms ease;
}
.dir-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  color: var(--ink-soft);
}
.linked-pages {
  list-style: decimal;
  padding-left: 22px;
  margin: 0;
  font-size: var(--fs-sm);
}
.linked-pages li {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
}
.linked-pages a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}
.linked-pages a:hover { text-decoration: underline; }
.link-count {
  background: var(--surface-3);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
}
.link-count.link-low { background: var(--warn-soft); color: var(--warn); }

/* Keyword cloud */
.kw-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  align-items: baseline;
}
.kw-tag {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
}
.kw-tag small {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.7em;
  margin-left: 4px;
}

/* Signal badges */
.sig {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 2px;
}
.sig-slug    { background: #dbeafe; color: #1e40af; }
.sig-h1      { background: #d1fae5; color: #065f46; }
.sig-title   { background: #fef3c7; color: #92400e; }
.sig-anchors { background: #ede9fe; color: #5b21b6; }

/* Indexation stats */
.idx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.idx-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.idx-stat.idx-warn { border-left-color: var(--bad); }
.idx-num {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.idx-stat.idx-warn .idx-num { color: var(--bad-text); }
.idx-lbl {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
}
.idx-pct {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 4px;
}

/* Section intro — explains what & why */
.section-intro {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.section-intro strong { color: var(--ink); }

/* ============================================================
   Verdict card (always visible, plain language)
   ============================================================ */
.verdict-card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--accent);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-2);
}
.verdict-card h2 { display: flex; align-items: center; gap: var(--space-3); }
.verdict-card h2::before { content: none; }
.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.verdict-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.verdict-title { font-size: var(--fs-xl); margin: 0; }
.verdict-penalty {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff7ed;
  border-left: 3px solid #ea580c;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: #7c2d12;
  line-height: 1.5;
}
.verdict-penalty strong {
  display: inline-block;
  background: #ea580c;
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  letter-spacing: 0.02em;
}
.verdict-penalty small {
  display: block;
  margin-top: 4px;
  color: #9a3412;
  font-size: 12px;
  font-weight: normal;
}
.verdict-penalty a { color: #c2410c; text-decoration: underline; }
.verdict-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: 0;
}
.verdict-grade-A { background: var(--ok); }
.verdict-grade-B { background: #16a34a; }
.verdict-grade-C { background: var(--warn); }
.verdict-grade-D { background: #ea580c; }
.verdict-grade-F { background: var(--bad); }
.verdict-score {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.verdict-score small { color: var(--muted); font-weight: 400; font-size: 0.5em; }
.verdict-cta { flex-shrink: 0; }

.verdict-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-3);
}
@media (max-width: 700px) { .verdict-body { grid-template-columns: 1fr; } }
.verdict-col {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.verdict-col h3 { margin: 0 0 var(--space-3); font-size: var(--fs-md); }
.verdict-col-good h3 { color: var(--ok-text); }
.verdict-col-bad h3 { color: var(--bad-text); }
.verdict-col ul, .verdict-col ol {
  margin: 0;
  padding-left: 22px;
  font-size: var(--fs-sm);
}
.verdict-col li { margin-bottom: 8px; line-height: 1.4; }
.verdict-vs {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.verdict-footnote { margin: 0; padding-top: var(--space-3); border-top: 1px dashed var(--border); }
.verdict-footnote a { font-weight: 600; }

/* Mode toggle */
.mode-toggle {
  display: inline-flex;
  background: var(--surface-3);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-right: var(--space-2);
}
.mode-btn {
  padding: 6px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  text-decoration: none;
  transition: all 150ms ease;
}
.mode-btn:hover { color: var(--ink); text-decoration: none; }
.mode-btn.mode-active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Override : quand le toggle est dans le hero navy, la règle ".hero a" rendrait
   les boutons en blanc (illisibles sur la pilule blanche). On rétablit ici les
   couleurs propres au mode-btn. */
.hero .mode-btn {
  color: var(--muted);
  border-bottom: none;
  padding-bottom: 6px;
}
.hero .mode-btn:hover {
  color: var(--ink);
  border-bottom: none;
}
.hero .mode-btn.mode-active {
  color: var(--accent);
  border-bottom: none;
}

/* Hide technical sections in simple mode */
body.simple-mode .tech-only,
body.simple-mode .toc-tech {
  display: none !important;
}

/* CTA top - primary action bar above the verdict (NW ink + dot accent) */
.cta-top {
  display: flex;
  justify-content: flex-end;
  margin: var(--space-5) 0;
}
.btn-cta-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 var(--accent);
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn-cta-go:hover {
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--accent);
}
.btn-cta-go:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--accent);
}
.btn-cta-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cta-phone-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cta-top { justify-content: stretch; }
  .btn-cta-go { width: 100%; justify-content: center; padding: 14px 20px; font-size: var(--fs-sm); }
}

/* ============================================================
   Floating sticky CTA - appears bottom-right after scroll
   (per Novawebster design system)
   ============================================================ */
.fab-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(10,10,10,0.20), 4px 4px 0 0 var(--accent);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 150ms ease;
  min-height: 48px;
}
.fab-cta::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.fab-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-cta:hover {
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(10,10,10,0.25), 6px 6px 0 0 var(--accent);
  transform: translateY(-2px);
}
.fab-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fab-cta .fab-label {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.fab-cta .fab-arrow { transition: transform 150ms ease; color: #ffffff; }
.fab-cta:hover .fab-arrow { transform: translateX(3px); }

@media (max-width: 600px) {
  .fab-cta {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
    padding: 14px 22px;
    font-size: var(--fs-sm);
    /* Ombre plus douce pour la pilule full-width (l'ombre dure d'angle est peu lisible) */
    box-shadow: 0 8px 24px rgba(10,10,10,0.20);
  }
  .fab-cta:hover {
    box-shadow: 0 12px 32px rgba(10,10,10,0.25);
    transform: translateY(0);             /* pas de translation hover sur mobile */
  }
}
@media print {
  .fab-cta { display: none !important; }
}

/* Floating mode toggle (desktop only, top-right corner, sticky) */
.mode-toggle-float {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.10);
}
.mode-toggle-float .mode-btn {
  padding: 7px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  text-decoration: none;
  transition: all 150ms ease;
}
.mode-toggle-float .mode-btn:hover { color: var(--ink); text-decoration: none; }
.mode-toggle-float .mode-btn.mode-active {
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.4);
}
@media (max-width: 1100px) { .mode-toggle-float { display: none; } }
@media print { .mode-toggle-float { display: none !important; } }

/* SERP previews */
.serp-previews {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.serp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: 'Roboto', -apple-system, sans-serif;
  max-width: 600px;
}
.serp-crumb {
  color: #5f6368;
  font-size: 12px;
  margin-bottom: 4px;
  word-break: break-all;
}
.serp-title {
  color: #1a0dab;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}
.serp-title:hover { text-decoration: underline; }
.serp-desc {
  color: #4d5156;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 8px;
}
.serp-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--muted);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-family: -apple-system, sans-serif;
}

/* Clusters */
.cluster {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  background: var(--surface);
}
.cluster-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: var(--space-2);
}
.tag {
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: var(--fs-xs);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.cluster-pages { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.cluster-pages li { margin: 2px 0; }
.cluster-pages a { color: var(--accent); text-decoration: none; }
.cluster-pages a:hover { text-decoration: underline; }

/* CTA card - NW ink block with white text and the blue dot accent */
.cta-card {
  background: var(--ink);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: '';
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
}
.cta-card h2, .cta-card p { color: #ffffff; }
.cta-card h2 { padding-right: 36px; }
.cta-card h2::before { background: var(--accent); }
.cta-card .btn { background: #ffffff; color: var(--ink); border-color: #ffffff; font-weight: 700; }
.cta-card .btn:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; box-shadow: 0 8px 22px rgba(37,99,235,0.30); }
.cta-card .btn-outline { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.4); }
.cta-card .btn-outline:hover { background: #ffffff; color: var(--ink); border-color: #ffffff; box-shadow: 4px 4px 0 0 var(--accent); }

/* Profile badge in ROI section */
.profile-badge {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-left: 4px solid var(--accent);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin: var(--space-3) 0;
}
.profile-badge strong { font-size: var(--fs-lg); color: var(--ink); }
.profile-eyebrow {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ROI estimator */
.roi-headline {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--ok-soft), #ecfdf5);
  border-left: 4px solid var(--ok);
  border-radius: var(--radius-sm);
  margin: var(--space-3) 0;
}
.roi-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ok);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.roi-label { color: var(--ink-soft); font-size: var(--fs-md); }

/* Topic heatmap */
.topic-heatmap td.heat-empty { background: var(--surface-3); color: var(--muted-soft); text-align: center; }
.topic-heatmap td.heat-light { background: #fef3c7; color: var(--warn); text-align: center; font-weight: 600; }
.topic-heatmap td.heat-strong { background: var(--accent-soft); color: var(--accent-2); text-align: center; font-weight: 700; }

/* Code blocks */
.codeblock {
  background: #0b1020;
  color: #e2e8f0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: var(--fs-xs);
  overflow-x: auto;
  line-height: 1.5;
  margin: var(--space-2) 0;
}

/* ============================================================
   Print / PDF view
   ============================================================ */
@media print {
  body { background: white; color: #000; }
  .hero { background: white; color: #000; padding: var(--space-3) 0; border-bottom: 2px solid var(--accent); }
  .hero h1 { color: var(--accent); }
  .hero .lead, .hero .muted { color: #444; }
  .no-print, .export-bar, footer a, script, .cta-card .btn-outline { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; margin-bottom: var(--space-3); }
  .scoreboard, .map-grid { break-inside: avoid; }
  table.cmp { font-size: 10px; }
  table.cmp th, table.cmp td { padding: 4px 6px; }
  .chart-wrapper { height: 240px; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .btn { display: none; }
  @page { margin: 14mm 12mm; size: A4; }
}
body.print { background: white; }
body.print .no-print { display: none !important; }

/* ============================================================
   Booking modal
   ============================================================ */
body.modal-open { overflow: hidden; }
.book-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
}
.book-modal.show { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  animation: fadeIn 200ms ease;
}
.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: calc(100% - var(--space-5));
  max-height: calc(100vh - var(--space-6));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: var(--shadow-3);
  animation: slideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 600px) {
  .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}
#bookForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.book-scroll {
  overflow-y: auto;
  padding: var(--space-5) var(--space-5) var(--space-3);
  flex: 1;
}
#bookForm h3 { margin: 0 0 4px; font-size: var(--fs-lg); }
#bookForm .book-scroll > p.muted.small { margin: 0 0 var(--space-3); }
.book-grid { gap: var(--space-4); margin: var(--space-3) 0 0; }

/* No-calendar mode : form en pleine largeur, footer reste sticky en bas à droite */
.modal-content.no-calendar { max-width: 560px; }
.modal-content.no-calendar .book-grid { grid-template-columns: 1fr; }
.modal-content.no-calendar .book-cal { display: none; }
.book-footer {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.book-submit { padding: 11px 22px; font-size: var(--fs-md); font-weight: 600; }
.book-success { padding: var(--space-6); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 150ms ease;
}
.modal-close:hover {
  background: var(--bad);
  color: white;
  border-color: var(--bad);
  transform: rotate(90deg);
}
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#bookForm h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-xl);
  color: var(--ink);
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5);
  margin: var(--space-4) 0;
}
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }
.book-form-cols .row { margin-bottom: 10px; }
.book-form-cols .row label { font-size: var(--fs-sm); }
.book-form-cols input,
.book-form-cols select { padding: 8px 12px; font-size: var(--fs-sm); margin-top: 4px; }
.book-form-cols select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--surface);
}
.book-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.book-row-2 .row { margin-bottom: 0; }
@media (max-width: 600px) {
  .book-row-2 { grid-template-columns: 1fr; gap: 0; }
  .book-row-2 .row { margin-bottom: 10px; }
}

.book-cal h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.book-cal h4:not(:first-child) { margin-top: var(--space-4); }

.book-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
@media (max-width: 500px) { .book-days { grid-template-columns: repeat(3, 1fr); } }
.day-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit;
  transition: all 120ms ease;
}
.day-btn small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.day-btn strong { font-size: var(--fs-lg); color: var(--ink); }
.day-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.day-btn.day-active { background: var(--accent); border-color: var(--accent); }
.day-btn.day-active small, .day-btn.day-active strong { color: white; }
.day-skel { color: var(--muted); font-size: var(--fs-sm); padding: var(--space-3); }

.book-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
  min-height: 60px;
}
.book-slots .day-skel, .book-slots p { grid-column: 1 / -1; }
.slot-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all 120ms ease;
}
.slot-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.slot-btn.slot-active { background: var(--accent); border-color: var(--accent); color: white; }
.slot-btn.slot-disabled {
  background: var(--surface-3);
  color: var(--muted-soft);
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: var(--border);
}
.slot-btn.slot-disabled:hover { background: var(--surface-3); border-color: var(--border); }

.book-success {
  text-align: center;
  padding: var(--space-5) var(--space-4);
}
.book-success .success-icon {
  width: 70px; height: 70px;
  background: var(--ok); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700;
  margin: 0 auto var(--space-4);
}
.book-success h3 { margin: 0 0 var(--space-2); color: var(--ink); }
.book-success p { color: var(--ink-soft); max-width: 480px; margin: 0 auto var(--space-4); }

@media print { .book-modal { display: none !important; } }

/* ============================================================
   Admin space
   ============================================================ */
.admin-body { background: var(--surface-3); }
.admin-bar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 56px;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-md);
  flex-shrink: 0;
}
.admin-brand:hover { text-decoration: none; }
.admin-brand-icon {
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all 150ms ease;
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}
.admin-nav-item.is-active {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.4);
}
.admin-nav-item.is-active:hover { background: var(--accent-2); }
.nav-icon { font-size: 16px; line-height: 1; }

.admin-account {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.admin-user {
  color: #94a3b8;
  font-size: var(--fs-sm);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.admin-logout {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: var(--fs-sm);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 150ms ease;
}
.admin-logout:hover {
  background: var(--bad);
  color: white !important;
  border-color: var(--bad);
}

@media (max-width: 760px) {
  .admin-bar-inner { flex-wrap: wrap; height: auto; padding: 8px 0; gap: var(--space-2); }
  .admin-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .admin-account { order: 2; margin-left: auto; }
  .admin-user { display: none; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.kpi-num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi-lbl {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: var(--space-2);
}

.filter-presets {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 150ms ease;
}
.filter-chip:hover { background: var(--surface-3); text-decoration: none; }
.filter-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.filter-form { margin-bottom: var(--space-4); }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
}
.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.filter-row input, .filter-row select {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  background: var(--surface);
  font-family: inherit;
  min-width: 160px;
}

.admin-table th, .admin-table td { vertical-align: top; }
.admin-table .nowrap { white-space: nowrap; }
.comp-pill {
  display: inline-block;
  background: var(--surface-3);
  color: var(--ink-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  margin: 2px 2px 0 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.pagination a {
  padding: 6px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--accent);
}

/* Leads list */
.leads-list { display: flex; flex-direction: column; gap: var(--space-3); }
.lead-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}
.lead-card[open] { border-color: var(--accent); }
.lead-card summary { cursor: pointer; padding: 4px 0; list-style: none; }
.lead-card summary::-webkit-details-marker { display: none; }
.lead-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-2);
}
.lead-rdv {
  background: var(--accent-soft); color: var(--accent-2);
  padding: 2px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 500;
  margin-left: var(--space-2);
}
.lead-meta { display: flex; gap: var(--space-2); }
.lead-body { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.lead-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
}
.lead-info strong {
  display: block; font-size: var(--fs-xs); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.lead-message {
  background: var(--surface-2); padding: var(--space-3);
  border-radius: var(--radius-sm); margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
}
.lead-message p { margin: 4px 0 0; color: var(--ink-soft); }
.lead-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  align-items: center; padding-top: var(--space-2); border-top: 1px dashed var(--border);
}
.lead-actions select, .lead-actions textarea {
  padding: 7px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: var(--fs-sm); font-family: inherit;
}

/* Admin calendar */
.cal-days {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-bottom: var(--space-4);
}
@media (max-width: 600px) { .cal-days { grid-template-columns: repeat(3, 1fr); } }
.cal-days .day-btn { text-decoration: none; }
.day-btn-cal { position: relative; padding: 12px 6px 8px; }
.day-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  border: 2px solid var(--surface);
}
.day-btn.day-active .day-badge {
  background: white;
  color: var(--accent);
  border-color: var(--accent);
}
.day-badge-blocked {
  background: var(--bad);
  top: -6px;
  left: -6px;
  right: auto;
  font-size: 10px;
}
.day-btn-cal.day-blocked-all {
  border-color: var(--bad);
  border-style: dashed;
  background: var(--bad-soft);
}
.day-btn-cal.day-blocked-all small,
.day-btn-cal.day-blocked-all strong { color: var(--bad); }
.slot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px; margin-bottom: var(--space-4);
}
.slot-form { margin: 0; }
.cal-slot {
  width: 100%; border: 0; padding: var(--space-3);
  border-radius: var(--radius-sm); font-family: inherit; font-size: var(--fs-sm);
  cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  transition: transform 100ms ease, box-shadow 150ms ease;
  font-weight: 600;
}
.cal-slot small { font-weight: 400; font-size: var(--fs-xs); opacity: 0.8; }
.cal-slot:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.cal-slot:disabled { cursor: not-allowed; }
.slot-available { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.slot-blocked   { background: var(--bad-soft); color: var(--bad); border: 1px dashed var(--bad); }
.slot-booked    { background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent); }
.slot-past      { background: var(--surface-3); color: var(--muted-soft); border: 1px solid var(--border); }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  padding: var(--space-3); background: var(--surface-2);
  border-radius: var(--radius-sm); font-size: var(--fs-xs); color: var(--muted);
}
.cal-legend-item { display: flex; align-items: center; gap: 6px; }
.cal-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-available { background: var(--ok); }
.dot-blocked   { background: var(--bad); }
.dot-booked    { background: var(--accent); }
.dot-past      { background: var(--muted-soft); }

/* ============================================================
   Reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   GEO 2.0 — AI/LLM Ready section
   ============================================================ */
.geo-hero {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%);
}
.geo-hero.tier-excellent { background: linear-gradient(135deg, #d4f4dd 0%, transparent 60%); border-color: #4ade80; }
.geo-hero.tier-good      { background: linear-gradient(135deg, #dcecff 0%, transparent 60%); border-color: #60a5fa; }
.geo-hero.tier-medium    { background: linear-gradient(135deg, #fef3c7 0%, transparent 60%); border-color: #fbbf24; }
.geo-hero.tier-poor      { background: linear-gradient(135deg, #fee2e2 0%, transparent 60%); border-color: #f87171; }
.geo-score-big {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  line-height: 1;
}
.geo-score-num { font-size: 64px; color: var(--accent-2); }
.geo-score-out { font-size: 24px; color: var(--muted); }
.geo-tier strong { display: block; font-size: var(--fs-xl); margin-bottom: 4px; }
.geo-tier p { margin: 0; color: var(--muted); }

.geo-signals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.geo-signal {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--surface);
  transition: transform 0.15s ease;
}
.geo-signal:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.geo-signal.sig-good   { border-left: 4px solid #16a34a; }
.geo-signal.sig-medium { border-left: 4px solid #f59e0b; }
.geo-signal.sig-poor   { border-left: 4px solid #dc2626; }
.sig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 6px;
}
.sig-label { font-weight: 600; font-size: var(--fs-sm); }
.sig-pts { font-weight: 700; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sig-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.sig-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.sig-good   .sig-fill { background: linear-gradient(90deg, #4ade80, #16a34a); }
.sig-medium .sig-fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.sig-poor   .sig-fill { background: linear-gradient(90deg, #f87171, #dc2626); }
.sig-hint { font-size: 11px; color: var(--muted); line-height: 1.4; }

.geo-snippet {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
}
.geo-snippet summary { cursor: pointer; font-size: var(--fs-md); padding: var(--space-2) 0; }
.geo-snippet pre.codeblock {
  background: #0f172a;
  color: #e2e8f0;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}
