/* ============================================================
   Audit d'Autorité de Marque — design system
   Landing sombre éditoriale · Rapport façon "papier" · Or en accent
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-700-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* encre & papier */
  --ink-900: #0c111c;      /* fond landing */
  --ink-800: #121a29;
  --ink-700: #1a2436;
  --ink-600: #253248;
  --ink-line: rgba(240, 235, 220, 0.12);
  --paper: #faf8f3;        /* fond rapport */
  --paper-card: #ffffff;
  --paper-line: #e7e2d6;
  --text-on-dark: #f3efe6;
  --text-on-dark-2: #b8b3a5;
  --text-ink: #171512;
  --text-ink-2: #57534a;
  --text-ink-3: #8a8578;

  /* accent or */
  --gold: #d4a72c;
  --gold-strong: #a97f10;  /* lisible sur papier */
  --gold-soft: rgba(212, 167, 44, 0.14);

  /* séries graphiques (marque = or profond, concurrents en retrait) */
  --serie-brand: #a16207;
  --serie-c1: #2a6bc2;
  --serie-c2: #0f8a66;
  --serie-c3: #7c5cd6;

  /* statuts */
  --status-good: #0ca30c;
  --status-warn: #b45309;
  --status-crit: #c53030;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(23, 21, 18, .05), 0 12px 32px -16px rgba(23, 21, 18, .18);
  --shadow-dark: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -30px rgba(0,0,0,.8);
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-ink);
  background: var(--paper);
}
body.theme-dark { background: var(--ink-900); color: var(--text-on-dark); }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 48px); margin-inline: auto; }

/* ── éléments partagés ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold {
  background: linear-gradient(180deg, #e6bc45, var(--gold));
  color: #241a02;
  box-shadow: 0 10px 30px -12px rgba(212, 167, 44, .55);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(212, 167, 44, .7); }
.btn-gold:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost-dark {
  border-color: var(--ink-line); color: var(--text-on-dark);
  background: rgba(255,255,255,.03);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.07); }

/* ════════════════════════════════════════════════════════════
   LANDING (fond sombre)
   ════════════════════════════════════════════════════════════ */

.site-header {
  padding: 26px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--text-on-dark); text-decoration: none; letter-spacing: .01em;
  white-space: nowrap;
}
.logo .logo-dot { color: var(--gold); }
.header-note { font-size: 13px; color: var(--text-on-dark-2); }

.hero { padding: 44px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  /* halo doré discret */
  content: ''; position: absolute; inset: -40% -20% auto;
  height: 90%; pointer-events: none;
  background:
    radial-gradient(600px 320px at 78% 18%, rgba(212,167,44,.13), transparent 65%),
    radial-gradient(520px 300px at 12% 4%, rgba(58, 110, 200, .10), transparent 60%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12; font-weight: 800; color: var(--text-on-dark);
  margin: 18px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 18px; color: var(--text-on-dark-2); max-width: 54ch; }

.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-on-dark); font-size: 15.5px; }
.hero-points li strong { font-weight: 600; }
.hero-points .pt-ico {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--gold-soft);
  display: grid; place-items: center; color: var(--gold); font-size: 12px; font-weight: 700;
}

.hero-press {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink-line);
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-2);
}
.hero-press span { display: inline-block; margin-right: 18px; opacity: .8; font-family: var(--font-display); font-size: 15px; letter-spacing: .02em; text-transform: none; }

/* ── carte formulaire ── */
.form-card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark);
  padding: 30px 30px 26px;
}
.form-card h2 { color: var(--text-on-dark); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.form-card .form-lead { color: var(--text-on-dark-2); font-size: 14px; margin-bottom: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--text-on-dark-2); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; padding: 12px 14px;
  background: rgba(9, 13, 22, .6);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: rgba(184, 179, 165, .5); }
.field input:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 167, 44, .18);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-on-dark-2) 50%), linear-gradient(135deg, var(--text-on-dark-2) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field .field-error { display: none; font-size: 12px; color: #f0a1a1; margin-top: 5px; }
.field.has-error input, .field.has-error select { border-color: #c95c5c; }
.field.has-error .field-error { display: block; }

.competitors-block { margin-top: 6px; }
.competitors-block .comp-row { display: none; margin-top: 10px; }
.competitors-block .comp-row.visible { display: block; }
.add-competitor {
  margin-top: 10px; background: none; border: 1px dashed var(--ink-line);
  color: var(--text-on-dark-2); border-radius: var(--radius-sm);
  width: 100%; padding: 10px; font-size: 13.5px; font-weight: 500;
}
.add-competitor:hover { color: var(--gold); border-color: var(--gold); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.consent label { font-size: 12.5px; color: var(--text-on-dark-2); line-height: 1.5; }

.form-submit { margin-top: 20px; width: 100%; }
.form-secure { text-align: center; font-size: 12px; color: var(--text-on-dark-2); margin-top: 12px; }
.form-global-error {
  display: none; margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm);
  background: rgba(197, 48, 48, .14); border: 1px solid rgba(197, 48, 48, .4);
  color: #f2b3b3; font-size: 13.5px;
}
.form-global-error.visible { display: block; }

/* champ piège anti-bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── section "comment ça marche" ── */
.how { padding: 64px 0 80px; border-top: 1px solid var(--ink-line); }
.how h2 { color: var(--text-on-dark); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 10px 0 34px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--ink-800); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 24px;
}
.how-card .num {
  font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--gold);
  line-height: 1; margin-bottom: 12px;
}
.how-card h3 { color: var(--text-on-dark); font-family: var(--font-ui); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.how-card p { color: var(--text-on-dark-2); font-size: 14.5px; margin: 0; }

.site-footer {
  border-top: 1px solid var(--ink-line);
  padding: 26px 0 34px; font-size: 13px; color: var(--text-on-dark-2);
}
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   ÉCRAN D'ANALYSE (progression + teaser)
   ════════════════════════════════════════════════════════════ */

.analysis { display: none; padding: 40px 0 90px; }
.analysis.visible { display: block; }
.analysis-head { text-align: center; margin-bottom: 34px; }
.analysis-head h2 { color: var(--text-on-dark); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-top: 14px; }
.analysis-head p { color: var(--text-on-dark-2); margin-top: 10px; }

.progress-shell {
  max-width: 720px; margin: 0 auto;
  background: var(--ink-800); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-dark);
}
.progress-track {
  height: 8px; border-radius: 999px; background: rgba(9, 13, 22, .8); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #8a6a10, var(--gold), #e6bc45);
  transition: width .5s ease;
}
.progress-label {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-size: 13px; color: var(--text-on-dark-2);
}
.progress-label .pct { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

.progress-log { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.progress-log li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; color: var(--text-on-dark-2);
  opacity: 0; transform: translateY(4px);
  animation: log-in .35s ease forwards;
}
@keyframes log-in { to { opacity: 1; transform: none; } }
.progress-log li.done { color: var(--text-on-dark); }
.progress-log .st-ico {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.progress-log li.done .st-ico { background: var(--gold-soft); color: var(--gold); }
.progress-log li.running .st-ico { color: var(--gold); }
.progress-log li.running .st-ico::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--gold-soft); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.teaser-stats {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.teaser-stat {
  background: rgba(9, 13, 22, .5); border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.teaser-stat .ts-value {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text-on-dark);
  line-height: 1.1;
}
.teaser-stat .ts-label { font-size: 12px; color: var(--text-on-dark-2); margin-top: 4px; line-height: 1.35; }
.teaser-stat.gold .ts-value { color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   RAPPORT (fond papier)
   ════════════════════════════════════════════════════════════ */

.report-header {
  background: var(--ink-900); color: var(--text-on-dark);
  padding: 30px 0 84px;
}
.report-header .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.report-main { padding-bottom: 90px; }
.report-hero {
  margin-top: -56px;
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 38px 40px; text-align: center;
}
@media (max-width: 640px) { .report-hero { padding: 28px 20px; } }
.report-hero .eyebrow { color: var(--gold-strong); }
.report-hero .eyebrow::before { background: var(--gold-strong); }
.report-hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin: 14px 0 6px; }
.report-hero .report-meta { color: var(--text-ink-3); font-size: 13.5px; }

.score-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px;
  margin-top: 30px;
}
.score-tile {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); padding: 22px 22px 19px; text-align: left;
  box-shadow: var(--shadow-card);
}
.score-tile .sc-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-ink-3); }
.score-tile .sc-value { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.score-tile .sc-sub { font-size: 13px; color: var(--text-ink-2); margin-top: 4px; }
.score-tile.hero-tile { border-top: 3px solid var(--gold); }
.score-tile.hero-tile .sc-value { color: var(--gold-strong); }

.report-section { margin-top: 46px; }
.report-section > h2 {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin-bottom: 6px;
}
.report-section > .section-sub { color: var(--text-ink-2); font-size: 15px; max-width: 68ch; margin-bottom: 22px; }

.card {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 26px;
}
.chart-wrap { position: relative; width: 100%; }
.chart-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.card h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.card .card-sub { font-size: 13px; color: var(--text-ink-3); margin-bottom: 18px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 16px; font-size: 13px; color: var(--text-ink-2); }
.legend .lg-item { display: inline-flex; align-items: center; gap: 8px; }
.legend .lg-swatch { width: 12px; height: 12px; border-radius: 3px; }

/* tableau des retombées presse */
.press-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.press-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-ink-3); font-weight: 700; padding: 0 12px 10px;
  border-bottom: 1px solid var(--paper-line);
}
.press-table td { padding: 12px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.press-table tr:last-child td { border-bottom: none; }
.press-table .pt-media { font-weight: 600; white-space: nowrap; }
.press-table .pt-title { color: var(--text-ink-2); }
.press-table .pt-title a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--paper-line); }
.press-table .pt-title a:hover { color: var(--gold-strong); border-color: var(--gold-strong); }
.press-table .pt-date { white-space: nowrap; color: var(--text-ink-3); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.table-footnote { font-size: 12px; color: var(--text-ink-3); margin: 14px 0 0; }

.tier-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.tier-1 { background: var(--gold-soft); color: var(--gold-strong); }
.tier-2 { background: rgba(42, 107, 194, .12); color: #1c518f; }
.tier-3 { background: rgba(23, 21, 18, .07); color: var(--text-ink-2); }

.brand-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.brand-tab {
  border: 1px solid var(--paper-line); background: transparent; color: var(--text-ink-2);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600;
}
.brand-tab.active { background: var(--ink-900); border-color: var(--ink-900); color: var(--text-on-dark); }
.brand-tab .tab-count { opacity: .65; font-weight: 500; margin-left: 5px; }

.empty-note { color: var(--text-ink-3); font-size: 14px; font-style: italic; padding: 14px 0; }

/* actualités */
.news-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.news-col h3 { font-size: 14.5px; }
.news-col h3 .nc-domain { color: var(--text-ink-3); font-weight: 500; }
.news-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.news-list li { font-size: 13.5px; line-height: 1.45; padding-left: 14px; position: relative; }
.news-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.news-list .nl-source { color: var(--text-ink-3); font-size: 12px; display: block; margin-top: 2px; }
.news-list a { color: var(--text-ink); text-decoration: none; }
.news-list a:hover { color: var(--gold-strong); }

/* analyse IA */
.insight-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.insight-list li {
  font-size: 14.5px; line-height: 1.55; color: var(--text-ink-2);
  padding: 12px 16px; background: #faf9f5; border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
}
.insight-list li strong { color: var(--text-ink); }

/* angle stratégique */
.strategy-block {
  margin-top: 18px;
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 26px 30px;
}
.strategy-block .eyebrow { color: var(--gold-strong); }
.strategy-block .eyebrow::before { background: var(--gold-strong); }
.strategy-block h3 {
  font-family: var(--font-display); font-size: 21px; font-weight: 800;
  margin: 12px 0 12px;
}
.strategy-block p { font-size: 15px; color: var(--text-ink-2); max-width: 78ch; margin-bottom: 12px; }
.strategy-block p:last-child { margin-bottom: 0; }

/* angles éditoriaux */
.angles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.angle-card {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 10px;
}
.angle-format {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-strong);
}
.angle-title {
  font-family: var(--font-display); font-size: 18.5px; font-weight: 700;
  line-height: 1.3; margin: 0;
}
.angle-pitch { font-size: 13.8px; color: var(--text-ink-2); margin: 0; flex: 1; }
.angle-medias { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--paper-line); }
.angle-media-chip {
  font-size: 11.5px; font-weight: 600; color: var(--text-ink-2);
  background: #f4f2ec; border: 1px solid var(--paper-line);
  padding: 3px 9px; border-radius: 999px;
}

/* médias recommandés */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.media-card {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
}
.media-card .mc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.media-card .mc-domain { font-family: var(--font-display); font-weight: 700; font-size: 17px; word-break: break-all; }
.media-card .mc-desc { font-size: 13px; color: var(--text-ink-3); margin: 0; }
.media-card .mc-reason { font-size: 13.8px; color: var(--text-ink-2); margin: 0; flex: 1; }
.media-card .mc-competitors {
  font-size: 12.8px; margin: 0; padding: 8px 12px;
  background: rgba(197, 48, 48, .07); border: 1px solid rgba(197, 48, 48, .18);
  border-radius: var(--radius-sm); color: #8f2f2f;
}
.media-card .mc-competitors strong { color: var(--status-crit); }
.media-card .mc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--paper-line); font-size: 13px;
}
.media-card .mc-metric { color: var(--text-ink-3); }
.media-card .mc-price { font-weight: 700; color: var(--gold-strong); }

/* diagnostic */
.diagnostic {
  background: var(--ink-900); color: var(--text-on-dark);
  border-radius: var(--radius); padding: 42px 44px; position: relative; overflow: hidden;
}
@media (max-width: 640px) { .diagnostic { padding: 30px 22px; } }
.diagnostic::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 85% 0%, rgba(212,167,44,.16), transparent 60%);
}
.diagnostic .eyebrow { position: relative; }
.diagnostic h2 { position: relative; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 14px 0 14px; }
.diagnostic p { position: relative; color: var(--text-on-dark-2); font-size: 16px; max-width: 72ch; }
.diagnostic p strong { color: var(--text-on-dark); }
.diagnostic .diag-cta { position: relative; margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.diagnostic .diag-phone { font-size: 14.5px; color: var(--text-on-dark-2); }
.diagnostic .diag-phone strong { color: var(--gold); font-size: 16px; }

.report-footer { margin-top: 50px; text-align: center; font-size: 13px; color: var(--text-ink-3); }

/* état de chargement du rapport */
.report-loading { text-align: center; padding: 80px 0; color: var(--text-ink-2); }
.report-loading .spinner {
  width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid var(--paper-line); border-top-color: var(--gold-strong);
  animation: spin .8s linear infinite;
}

/* ════════════════════════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════════════════════════ */

.admin-body { background: #f4f2ec; }
.admin-topbar { background: var(--ink-900); color: var(--text-on-dark); padding: 16px 0; }
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.admin-topbar nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.admin-topbar nav a { color: var(--text-on-dark-2); text-decoration: none; }
.admin-topbar nav a:hover, .admin-topbar nav a.active { color: var(--gold); }

.admin-main { padding: 34px 0 70px; }
.admin-main h1 { font-size: 26px; font-weight: 800; margin-bottom: 22px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-card .st-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-ink-3); }
.stat-card .st-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-top: 4px; }

.admin-table-wrap { background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: var(--radius); overflow-x: auto; }
.admin-table { min-width: 760px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.admin-table th {
  text-align: left; padding: 12px 14px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-ink-3); background: #faf9f5;
  border-bottom: 1px solid var(--paper-line);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--paper-line); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fbfaf6; }
.admin-table a { color: var(--text-ink); font-weight: 600; text-decoration: none; }
.admin-table a:hover { color: var(--gold-strong); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-done { background: rgba(12, 163, 12, .12); color: #067806; }
.badge-running, .badge-pending { background: rgba(180, 83, 9, .12); color: var(--status-warn); }
.badge-error { background: rgba(197, 48, 48, .12); color: var(--status-crit); }

.admin-actions { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.btn-small {
  padding: 9px 16px; font-size: 13.5px; border-radius: 999px; border: 1px solid var(--paper-line);
  background: var(--paper-card); color: var(--text-ink); text-decoration: none; font-weight: 600;
}
.btn-small:hover { border-color: var(--gold-strong); color: var(--gold-strong); }

/* login admin */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--ink-900); padding: 20px; }
.login-card {
  width: min(400px, 100%); background: var(--ink-800); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-dark);
}
.login-card h1 { color: var(--text-on-dark); font-size: 22px; margin-bottom: 20px; }
.login-error { color: #f0a1a1; font-size: 13.5px; margin-top: 12px; }

/* détail lead */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .lead-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--text-ink-3); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ── impression du rapport ── */
@media print {
  .report-header, .diagnostic .diag-cta { display: none; }
  .report-hero { margin-top: 0; box-shadow: none; }
  .card, .score-tile { box-shadow: none; }
  body { background: #fff; }
}
