/* ============================================================
   statistiques-esim.css — Page "Statistiques eSIM & roaming"
   Charte eSIM Voyage : navy hero, accents --gold / orange,
   typo --font-display. S'appuie sur les variables du thème
   (--text --muted --ivory --gold --border --surface --font-display)
   avec fallbacks neutres si le thème évolue.
   ============================================================ */

:root {
  --st-gold: var(--gold, #b8a07a);
  --st-orange: #e07830;
  --st-navy-0: #0e1a22;
  --st-navy-1: #152530;
  --st-navy-2: #1a2f3a;
  --st-text: var(--text, #2a2a2a);
  --st-muted: var(--muted, #6b6b6b);
  --st-ivory: var(--ivory, #1e1a16);
  --st-border: var(--border, rgba(184,160,122,0.22));
  --st-surface: var(--surface, #ffffff);
  --st-display: var(--font-display, Georgia, "Times New Roman", serif);
}

/* ---------- HERO ---------- */
.st-hero {
  padding: 120px 0 56px;
  background: linear-gradient(165deg, var(--st-navy-0) 0%, var(--st-navy-1) 45%, var(--st-navy-2) 100%);
  position: relative;
  overflow: hidden;
}
.st-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 18%, rgba(184,160,122,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 44% 42% at 8% 82%, rgba(224,120,48,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.st-container {
  max-width: min(1000px, 100%);
  margin: 0 auto;
  padding: 0 24px 90px;
  position: relative;
  box-sizing: border-box;
}
main.st-main { overflow-x: clip; }

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184,160,122,0.15);
  border: 1px solid rgba(184,160,122,0.35);
  color: var(--st-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}
.st-hero h1 {
  font-family: var(--st-display);
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 400;
  color: #fff;
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 860px;
}
.st-hero h1 em { font-style: italic; color: var(--st-gold); }
.st-lead {
  font-size: 17.5px;
  color: rgba(255,255,255,0.74);
  line-height: 1.75;
  max-width: 730px;
  margin: 0 0 26px;
}
.st-lead strong { color: #fff; font-weight: 600; }
.st-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.st-meta span { display: inline-flex; align-items: center; gap: 6px; }
.st-meta .st-live {
  color: #7fd6a0;
  font-weight: 600;
}
.st-meta .st-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7fd6a0; display: inline-block;
  box-shadow: 0 0 0 3px rgba(127,214,160,0.2);
}

/* ---------- KPI STRIP (chiffres phares) ---------- */
.st-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: -36px 0 8px;
  position: relative;
  z-index: 2;
}
.st-kpi {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
}
.st-kpi::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--st-gold), var(--st-orange));
}
.st-kpi-value {
  font-family: var(--st-display);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--st-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.st-kpi-label {
  font-size: 12.5px;
  color: var(--st-muted);
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* ---------- SECTION SEPARATORS ---------- */
.st-section-head {
  margin: 64px 0 8px;
}
.st-section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--st-orange);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-section-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--st-orange);
  display: inline-block;
}
.st-section-title {
  font-family: var(--st-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 500;
  color: var(--st-ivory);
  margin: 0 0 6px;
}
.st-section-sub {
  font-size: 14.5px;
  color: var(--st-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

/* Data-origin banner (section 2) */
.st-origin-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin: 20px 0 8px;
  border-radius: 14px;
  background: rgba(107,107,107,0.06);
  border: 1px dashed var(--st-border);
  font-size: 13.5px;
  color: var(--st-muted);
  line-height: 1.55;
}
.st-origin-banner svg { flex: 0 0 auto; margin-top: 2px; color: var(--st-muted); }

/* ---------- BLOC (groupe de stats) ---------- */
.st-bloc { margin: 40px 0 0; }
.st-bloc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--st-border);
}
.st-bloc-title {
  font-family: var(--st-display);
  font-size: 21px;
  color: var(--st-ivory);
  margin: 0;
}
.st-bloc-source {
  font-size: 12px;
  color: var(--st-muted);
}
.st-bloc-source a { color: var(--st-gold); text-decoration: none; }
.st-bloc-source a:hover { text-decoration: underline; }

/* ---------- STAT CARDS GRID ---------- */
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.st-grid.st-grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.st-card {
  position: relative;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.st-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(14,26,34,0.12);
  border-color: rgba(184,160,122,0.5);
}
.st-card-figure {
  font-family: var(--st-display);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1;
  color: var(--st-orange);
  font-weight: 500;
}
.st-card-figure small {
  font-size: 0.5em;
  color: var(--st-muted);
  font-family: inherit;
  margin-left: 4px;
}
.st-card-claim {
  font-size: 15px;
  line-height: 1.6;
  color: var(--st-text);
  margin: 0;
  flex: 1;
}
.st-card-claim strong { color: var(--st-ivory); font-weight: 600; }
.st-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(184,160,122,0.16);
}
.st-card-src {
  font-size: 11.5px;
  color: var(--st-muted);
  line-height: 1.35;
}
.st-card-src a { color: var(--st-gold); text-decoration: none; }

/* Copy-citation button */
.st-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--st-border);
  background: rgba(184,160,122,0.08);
  color: var(--st-muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.st-copy:hover { background: rgba(184,160,122,0.18); color: var(--st-ivory); border-color: var(--st-gold); }
.st-copy svg { width: 11px; height: 11px; }
.st-copy.is-copied { background: rgba(127,214,160,0.18); border-color: #7fd6a0; color: #2b7a4b; }

/* Highlight card variant (data proprietaire phare) */
.st-card.st-card-hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(184,160,122,0.10) 0%, rgba(224,120,48,0.05) 100%);
  border-color: rgba(184,160,122,0.4);
}
.st-card.st-card-hero .st-card-figure { font-size: clamp(38px, 6vw, 60px); }
@media (min-width: 720px) {
  .st-card.st-card-hero {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .st-card.st-card-hero .st-card-figure { flex: 0 0 auto; }
  .st-card.st-card-hero .st-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
}

/* ---------- SVG CHART WRAP ---------- */
.st-chart {
  margin: 18px 0 4px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #faf8f5 0%, #f1ece4 100%);
  border: 1px solid rgba(184,160,122,0.28);
}
.st-chart-title {
  font-family: var(--st-display);
  font-size: 17px;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.st-chart-sub { font-size: 12.5px; color: #666; margin: 0 0 16px; }
.st-chart svg { width: 100%; height: auto; display: block; }
.st-bar-label { font-size: 12px; fill: #3a3a3a; font-weight: 600; }
.st-bar-value { font-size: 12px; fill: #1a1a1a; font-weight: 700; }
.st-bar-track { fill: rgba(0,0,0,0.05); }

/* ---------- COMPARISON TABLE ---------- */
.st-table-wrap { overflow-x: auto; margin: 6px 0 4px; border-radius: 14px; border: 1px solid var(--st-border); }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.st-table thead th {
  background: linear-gradient(180deg, var(--st-navy-1), var(--st-navy-2));
  color: #fff;
  font-family: var(--st-display);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  font-size: 13.5px;
}
.st-table tbody td { padding: 11px 16px; border-top: 1px solid var(--st-border); color: var(--st-text); }
.st-table tbody tr:nth-child(even) { background: rgba(184,160,122,0.04); }
.st-table tbody td strong { color: var(--st-ivory); }
.st-table .st-td-em { color: var(--st-orange); font-weight: 700; }
.st-table caption {
  caption-side: bottom;
  font-size: 11.5px;
  color: var(--st-muted);
  padding: 10px 4px 0;
  text-align: left;
}

/* ---------- CITE / LICENSE BLOCK ---------- */
.st-cite-block {
  margin: 56px 0 0;
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--st-navy-1) 0%, var(--st-navy-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.st-cite-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(184,160,122,0.16), transparent 60%);
  pointer-events: none;
}
.st-cite-block h2 {
  font-family: var(--st-display);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 12px;
}
.st-cite-block p { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.7; margin: 0 0 16px; max-width: 720px; }
.st-cite-quote {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,160,122,0.3);
  font-size: 14px;
  color: #fff;
}
.st-cite-quote code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--st-gold);
  flex: 1;
  min-width: 200px;
}
.st-cite-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.st-cite-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(184,160,122,0.4);
  background: rgba(184,160,122,0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.st-cite-links a:hover { background: rgba(184,160,122,0.24); }

/* ---------- UPDATE BANNER ---------- */
.st-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(127,214,160,0.10);
  border: 1px solid rgba(127,214,160,0.3);
  color: #2b7a4b;
  font-size: 12.5px;
  font-weight: 600;
  margin: 4px 0 0;
}

/* ---------- TOC / anchor nav ---------- */
.st-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}
.st-toc a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  color: var(--st-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.st-toc a:hover { border-color: var(--st-gold); color: var(--st-ivory); background: rgba(184,160,122,0.08); }

/* ---------- FAQ ---------- */
.st-faq { margin-top: 40px; }
.st-faq details {
  border: 1px solid var(--st-border);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--st-surface);
}
.st-faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--st-ivory);
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: '+'; color: var(--st-gold); font-size: 22px; font-weight: 300; }
.st-faq details[open] summary::after { content: '−'; }
.st-faq details p { color: var(--st-text); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }

@media (max-width: 768px) {
  .st-kpi-strip { grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
  .st-bloc-head { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) {
  .st-kpi-strip { grid-template-columns: 1fr; }
}
