/* Thème « Le Cachalot » — charte de lecachalot.fr (Manrope, fond blanc, cartes grises
   arrondies, orange #ff5a36, boutons en pilule). Chargé APRÈS style.css ; les sélecteurs
   préfixés par `body` l'emportent sur les <style> en ligne des gabarits. */
:root{
  --paper:#ffffff; --card:#f3f4f5; --ink:#14161a; --muted:#5d6168;
  --line:#e2e4e7; --line-soft:#e9eaec;
  --accent:#ff5a36; --accent-text:#d63f1d; --accent-soft:#fff1ec; --green:#0e5a45;
  --display:"Manrope",system-ui,sans-serif; --sans:"Manrope",system-ui,sans-serif;
  --radius:28px; --radius-sm:18px;
}
body{background:#fff;background-image:none;font-family:var(--sans);font-size:16.5px;color:var(--ink)}
body .wrap{max-width:1180px;padding-top:0}

/* barre du haut : logo */
.cx-topnav{display:flex;align-items:center;justify-content:space-between;height:56px}
.cx-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.cx-brand svg{height:46px;width:auto}
.cx-wordmark{font-size:21px;letter-spacing:-.03em}
.cx-wordmark b{font-weight:800}.cx-wordmark span{font-weight:300}
.cx-tagline{font-size:13.5px;color:var(--muted)}

/* en-tête de rapport */
body .masthead{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:6px;align-items:flex-end}
body .masthead .kicker{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;letter-spacing:0;
  text-transform:none;color:var(--muted);margin-bottom:12px}
body .masthead .kicker::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
body .masthead h1{font-family:var(--display);font-weight:700;font-size:48px;letter-spacing:-.03em;line-height:1.05}
body .masthead .runmeta strong{font-weight:700}

/* titres de section */
body section h2{font-family:var(--display);font-weight:700;font-size:28px;letter-spacing:-.025em;border-bottom:0;padding-bottom:0;margin-bottom:20px}
body section h2 .num{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:99px;
  background:var(--accent-soft);color:var(--accent-text);font-size:13px;font-weight:700;vertical-align:middle;margin-right:10px}

/* cartes : surface grise, très arrondies, sans filet ni trait de couleur */
body .kpi, body .hero-trend, body .brands-card, body .chart-box, body .month-actions, body .credit-box,
body .revbar, body .bcard, body table.admin{background:var(--card);border:0;border-radius:24px}
body .kpi::before, body .hero-trend::before, body .brands-card::before{display:none}
body .kpi{padding:18px 16px 14px}
body .hero-trend{padding:22px 24px 16px}
body .brands-card{padding:22px 24px}
body .kpi .label, body .hero-trend-label, body .brands-title{font-weight:700;letter-spacing:.04em}
body .kpi .value, body .hero-trend-now strong{font-weight:700}
body .kpi .explain{border-top-color:var(--line)}

/* pastilles et boutons */
body .scope-pill{background:#fff;border:0;color:var(--muted);font-weight:600}
body .ia-chip, body .period-form, body .view-toggle, body .dl-btn{background:#fff;border:1.5px solid var(--line)}
body .ia-chip:hover, body .dl-btn:hover{border-color:var(--ink)}
body .dl-btn{color:var(--ink);font-weight:600;padding:7px 16px;font-size:13px;letter-spacing:0}
body .vt-btn{font-weight:600;letter-spacing:0}
body .vt-btn.on{background:var(--ink);color:#fff}
body .btn{background:var(--accent);color:#fff;border-radius:999px;padding:11px 22px;font-size:14px;font-weight:700;letter-spacing:0;text-transform:none}
body .btn:hover{background:var(--accent-text)}
body .btn.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
body .btn.ghost:hover{border-color:var(--ink);color:var(--ink);background:transparent}
body .btn.small{padding:7px 14px;font-size:12.5px}
body .runmeta-actions{gap:8px}

/* barres : pistes arrondies, blanches sur carte grise */
body .bar-row .track{background:var(--line);border-radius:99px;height:10px}
body .bar-row .fill{border-radius:99px}
body .brands-card .bar-row .track{background:#fff}
body .bar-row.self .name{color:var(--accent-text)}
body .more-brands{color:var(--accent-text);font-weight:700}

/* tableaux : fins filets, en-têtes discrets */
body table.providers th, body table.matrix th, body table.admin th{font-weight:700;letter-spacing:.05em}
body table.admin th{border-bottom:1px solid var(--line)}
body .own-brand-tag strong{color:var(--accent-text)}
body .hero-trend-now strong{color:var(--accent-text)}

/* pied de page */
body footer.colophon{border-top:1px solid var(--line);font-weight:500;letter-spacing:0;font-size:13.5px;color:var(--muted);
  align-items:center;gap:16px;flex-wrap:wrap}
body footer.colophon a{color:var(--muted)}
body footer.colophon .cx-wordmark{font-size:16px;color:var(--ink)}

@media (max-width:640px){
  body .masthead h1{font-size:36px}
  body section h2{font-size:23px}
  body .kpi, body .hero-trend, body .brands-card{border-radius:20px}
  .cx-tagline{display:none}
}
@media print{ .cx-tagline{display:none} }
/* Très petits téléphones (320 px) : en-tête sans débordement (27/10/2026) */
@media(max-width:360px){body .wrap{padding-left:16px;padding-right:16px}.cx-brand{gap:6px}.cx-brand svg{height:36px}.cx-wordmark{font-size:17px}}
