/* ============================================
   Observatoire Got - Sécurité Routière
   Palette fidèle au site original Got :
     #6677bb  bleu-gris (fond page / --page-bg)
     #ccdeff  bleu ciel (surfaces / --sky)
     #ddddbb  beige jaune (masthead / --sand)
     #ddccbb  sable rosé (footer / --sand-dark)
     #0044bb  bleu liens (--blue)
     #F11717  rouge alerte (--red)
   ============================================ */

:root {
  /* ── Palette Got ── */
  --page-bg:   #6677bb;   /* bleu-gris de fond */
  --sky:       #ccdeff;   /* bleu ciel clair - container/sidebar */
  --sky-dark:  #b8ccf0;   /* bleu ciel foncé - hover/bordures */
  --sand:      #ddddbb;   /* beige jaune - masthead */
  --sand-dark: #ddccbb;   /* sable rosé - footer */
  --blue:      #0044bb;   /* bleu marine liens */
  --blue-dark: #003090;   /* bleu marine foncé - hover */
  --red:       #F11717;   /* rouge alerte Got */
  --red-dark:  #cc1010;
  --ink:       #111111;   /* texte principal */
  --ink-soft:  #333333;
  --white:     #ffffff;
  --cream:     #f8f7f3;

  /* ── Dérivés UI ── */
  --border:    rgba(0,68,187,0.18);
  --shadow:    0 2px 16px rgba(102,119,187,0.18);
  --shadow-strong: 0 6px 32px rgba(102,119,187,0.28);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;
  --radius:     5px;
  --radius-lg:  10px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

/* ── HEADER ── */
.site-header {
  background: var(--blue-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-brand { display: flex; align-items: center; gap: 1rem; }
.brand-sigil {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: bold;
  background: var(--red);
  color: var(--white);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  letter-spacing: -1px;
}
.header-brand h1 { font-size: 1rem; font-weight: 600; color: var(--white); }
.brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-family: var(--font-mono); }
/* ── HEADER PHOTO ── */
.header-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  display: block;
}

.header-nav { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.api-badge {
  background: #1a7a3a !important;
  color: var(--white) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ── HERO ── */
.hero {
  background: var(--blue-dark);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(204,222,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(241,23,23,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-title em { color: var(--sky); font-style: italic; }
.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Search */
.hero-search { width: 100%; max-width: 600px; margin: 0 auto 3rem; }
.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  gap: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.search-icon { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none; outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}
.search-input::placeholder { color: rgba(0,0,0,0.35); }
.search-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--red-dark); }

/* Hero stats */
.hero-stats { display: flex; gap: 1.5rem; position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; }
.stat-card {
  text-align: center;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(204,222,255,0.25);
  border-radius: var(--radius-lg);
  background: rgba(204,222,255,0.08);
  backdrop-filter: blur(8px);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--sky);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ── MAIN LAYOUT WRAPPER ── */
.themes-section, .featured-section, .types-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--red);
  margin-top: 0.5rem;
}

/* ── THEMES GRID ── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.theme-card {
  background: var(--sky);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.theme-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.theme-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
  background: var(--white);
  color: var(--ink);
}
.theme-card:hover::before { transform: scaleX(1); }
.theme-card:hover .theme-arrow { transform: translateX(4px); }
.theme-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.theme-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--blue-dark); }
.theme-desc { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; margin-bottom: 1rem; }
.theme-arrow { font-size: 1rem; color: var(--red); transition: transform var(--transition); }

/* ── FEATURED DOCS ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.doc-meta { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; align-items: center; }
.doc-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--sky);
  color: var(--blue-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}
.doc-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); font-weight: 600; }
.doc-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.doc-title a { color: var(--ink); }
.doc-title a:hover { color: var(--red); }
.doc-snippet { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 1rem; }
.doc-link { font-size: 0.85rem; color: var(--red); font-weight: 600; }

/* ── TYPES GRID ── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.type-card {
  background: var(--sand);
  border: 1px solid rgba(0,68,187,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
  color: var(--ink);
  display: block;
}
.type-card:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  border-color: var(--blue-dark);
}
.type-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.type-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.type-count { font-size: 0.78rem; font-family: var(--font-mono); opacity: 0.6; }

/* ── AI SECTION ── */
.ai-section {
  background: #1a6e3a;
  color: var(--white);
  padding: 3rem 2rem;
}
.ai-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ai-text h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 0.75rem; }
.ai-text p { color: rgba(255,255,255,0.82); max-width: 560px; font-size: 0.9rem; }
.ai-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ai-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
  display: inline-block;
}
.ai-btn.primary { background: var(--white); color: #1a6e3a; }
.ai-btn.primary:hover { background: var(--sky); }
.ai-btn.secondary { border: 2px solid rgba(255,255,255,0.45); color: var(--white); }
.ai-btn.secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }

/* ── FOOTER ── */
.site-footer {
  background: var(--sand-dark);
  color: var(--ink-soft);
  padding: 3rem 2rem;
  border-top: 3px solid var(--sky-dark);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col strong { color: var(--blue-dark); display: block; margin-bottom: 0.75rem; }
.footer-col a { color: var(--blue); font-size: 0.88rem; }
.footer-col a:hover { color: var(--red); }
.footer-col { font-size: 0.88rem; line-height: 1.8; }
.footer-version { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue); }

/* ── PAGE CONTAINERS (search, catalogue, stats) ── */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--sky);
  min-height: calc(100vh - 64px);
}
.page-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}
.page-subtitle { color: var(--ink-soft); margin-bottom: 2rem; }

/* ── FILTERS PANEL ── */
.filters-panel {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.filters-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 160px; }
.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}
.filter-select, .filter-input {
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--sky);
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus, .filter-input:focus { border-color: var(--blue); }
.filter-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}
.filter-btn:hover { background: var(--blue-dark); color: var(--white); }
.filter-btn.secondary { background: var(--sand); color: var(--ink); border: 1px solid var(--sky-dark); }
.filter-btn.secondary:hover { background: var(--sand-dark); color: var(--ink); }

/* ── RESULTS ── */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.results-count strong { color: var(--blue-dark); font-family: var(--font-mono); }
.results-grid { display: grid; gap: 0.85rem; }
.result-item {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: all var(--transition);
}
.result-item:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.result-type-badge {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.badge-html  { background: #dbeafe; }
.badge-pdf   { background: #fee2e2; }
.badge-image { background: #d1fae5; }
.badge-excel { background: #fef3c7; }
.badge-pptx  { background: #ede9fe; }
.result-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.result-title a { color: var(--blue-dark); }
.result-title a:hover { color: var(--red); }
.result-snippet { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.5rem; }
.result-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  background: var(--sky);
  color: var(--blue-dark);
}
.tag-vitesse     { background: #dbeafe; color: #1e40af; }
.tag-alcool      { background: #f3e8ff; color: #6b21a8; }
.tag-ecologie    { background: #d1fae5; color: #065f46; }
.tag-mortalite   { background: #fee2e2; color: #991b1b; }
.tag-legislation { background: #fef3c7; color: #92400e; }
.result-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.result-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}
.result-btn.primary { background: var(--blue); color: var(--white); }
.result-btn.primary:hover { background: var(--blue-dark); color: var(--white); }
.result-btn.outline { border: 1px solid var(--sky-dark); color: var(--ink-soft); background: var(--white); }
.result-btn.outline:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--blue-dark);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.page-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── VIEWER ── */
.viewer-content {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  line-height: 1.7;
}
.viewer-content h1, .viewer-content h2 { font-family: var(--font-serif); font-weight: 400; color: var(--blue-dark); }
.viewer-content p { margin-bottom: 1rem; }
.viewer-content table { width: 100%; border-collapse: collapse; }
.viewer-content td, .viewer-content th { border: 1px solid var(--sky-dark); padding: 0.5rem; }
.meta-box {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.meta-box h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}
.meta-key { font-size: 0.72rem; color: var(--ink-soft); font-family: var(--font-mono); }
.meta-val { font-size: 0.88rem; font-weight: 500; color: var(--blue-dark); }
.meta-row { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.75rem; }
.pdf-frame { width: 100%; height: 80vh; border: none; border-radius: var(--radius-lg); }
.img-viewer { max-width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--sky-dark); }
.unavailable-box {
  background: var(--sky);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

/* ── API PAGE ── */
.api-container { max-width: 960px; margin: 0 auto; padding: 3rem 2rem; }
.api-endpoint {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.api-method { color: var(--sky); font-size: 0.78rem; font-weight: 500; margin-bottom: 0.3rem; }
.api-path { font-size: 1rem; margin-bottom: 0.5rem; }
.api-desc { font-size: 0.84rem; color: rgba(255,255,255,0.65); }
pre.code-block {
  background: var(--blue-dark);
  color: #a8ff78;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── CATALOGUE TOOLBAR ── */
.catalogue-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.toolbar-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 40px;
  border: 1px solid var(--sky-dark);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--blue-dark);
  text-decoration: none;
}
.toolbar-chip:hover, .toolbar-chip.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Image cards */
.img-card {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
  color: var(--ink);
}
.img-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-2px); }
.img-thumb { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--sky); }
.img-info { padding: 0.75rem 1rem; }
.img-title { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.25rem; word-break: break-all; color: var(--blue-dark); }
.img-context { font-size: 0.74rem; color: var(--ink-soft); font-family: var(--font-mono); }

/* ── STATISTICS PAGE ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stats-card {
  background: var(--white);
  border: 1px solid var(--sky-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stats-card h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}
.bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.bar-label { font-size: 0.82rem; min-width: 130px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 10px; background: var(--sky); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--blue); }
.bar-count { font-size: 0.78rem; font-family: var(--font-mono); color: var(--blue-dark); min-width: 36px; text-align: right; }
.timeline-container { overflow-x: auto; }
.timeline-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 0 0.5rem; min-width: 500px; }
.timeline-bar {
  flex: 1; min-width: 4px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  opacity: 0.65;
  transition: opacity 0.2s;
  cursor: pointer;
  position: relative;
}
.timeline-bar:hover { opacity: 1; background: var(--red); }
.timeline-bar::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  background: var(--blue-dark); color: var(--white);
  padding: 2px 6px; border-radius: 3px;
  font-size: 0.7rem; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
  font-family: var(--font-mono);
}
.timeline-bar:hover::after { opacity: 1; }
.timeline-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; font-family: var(--font-mono);
  color: var(--blue-dark); margin-top: 0.4rem;
  min-width: 500px; padding: 0 0.5rem;
}

/* ── UTILITIES ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--ink-soft); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.65rem; border-radius: 100px;
  font-size: 0.72rem; font-family: var(--font-mono);
}
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue  { background: var(--sky); color: var(--blue-dark); }
mark { background: #fef3c7; color: var(--ink); border-radius: 2px; padding: 0 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .stat-card { min-width: 120px; }
  .header-nav { display: none; }
  .ai-inner { flex-direction: column; }
  .result-item { grid-template-columns: auto 1fr; }
  .result-actions { grid-column: 2; flex-direction: row; }
}
