/* veille-prix — identité "profil d'étape" (ancrée dans le vélo : dénivelé, fanions de col) */

.hero{padding:34px 0 22px;}
.hero-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.hero-stat{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 16px;min-width:126px;}
.hero-stat b{display:block;font-family:var(--f-titre);font-weight:500;font-size:24px;color:var(--ink);}
.hero-stat span{font-size:12.5px;color:var(--muted);}

.section-tete{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px;}
.section-tete h2{font-size:clamp(20px,2.4vw,26px);margin:0;}
.section-tete p{margin:2px 0 0;font-size:13.5px;}

/* ---------- vue Suivi : vraie table, pas des cartes identiques ---------- */
.tbl-produits thead th{white-space:nowrap;}
.tbl-produits td.c-produit{min-width:150px;}
.tbl-produits td.c-produit b{font-weight:700;font-size:13.5px;display:block;}
.tbl-produits td.c-produit span{display:block;font-weight:500;font-size:12.5px;color:var(--muted);margin-top:1px;}
.tbl-produits td.c-concurrent{text-align:center;}
.tbl-produits td.c-concurrent .val{font-family:var(--f-texte);font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;}
.tbl-produits td.c-concurrent.sous-prix .val{color:var(--sig-err-texte);background:var(--sig-err-bg);padding:3px 8px;border-radius:5px;display:inline-block;}
.tbl-produits td.c-nous{text-align:center;background:var(--surface-2);}
.tbl-produits td.c-nous .val{font-family:var(--f-texte);font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;color:var(--ink);}
.tbl-produits td.c-action{text-align:right;}

/* ---------- vue Graphique : le profil d'étape, pleine largeur ---------- */
.profil-carte{overflow:hidden;}
.profil-entete{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--line);}
.profil-legende{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;}
.legende-item{display:flex;align-items:center;gap:6px;color:var(--muted);font-weight:500;}
.legende-pt{width:12px;height:3px;border-radius:2px;}
.legende-pt.drapeau{width:9px;height:9px;border-radius:2px;}
.profil-svg-zone{padding:10px 6px 4px;}
.profil-svg-zone svg{width:100%;height:auto;display:block;}
@media (max-width:480px){.repere-txt{font-size:12.5px;}.axe-txt{font-size:12px;}}

.aire-nous{fill:color-mix(in srgb, var(--ink) 16%, transparent);}
.ligne-nous{fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;}
.ligne-concurrent{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 0;}
.repere-ligne{stroke:var(--line);stroke-width:1;}
.repere-txt{font-family:var(--f-texte);font-weight:500;font-size:13px;fill:var(--muted);}
.axe-txt{font-family:var(--f-texte);font-weight:500;font-size:13px;fill:var(--muted);}

/* fanion qui se plante — le seul moment orchestré du reste de la page */
.fanion{opacity:0;transform-box:fill-box;transform-origin:50% 100%;animation:planter 520ms var(--ease) forwards;}
.fanion .mat{stroke:var(--sig-err-texte);stroke-width:1.6;}
.fanion .drapeau{fill:var(--sig-err);}
@keyframes planter{
  0%{opacity:0;transform:translateY(-18px) scale(.8);}
  65%{opacity:1;transform:translateY(2px) scale(1.05);}
  100%{opacity:1;transform:translateY(0) scale(1);}
}
@media (prefers-reduced-motion: reduce){.fanion{opacity:1;transform:none;animation:none;}}

/* ---------- tableau compact des relevés + alertes, sous le profil ---------- */
.grille-compacte{display:grid;grid-template-columns:1.3fr .9fr;gap:16px;align-items:start;margin-top:16px;}
@media (max-width:900px){.grille-compacte{grid-template-columns:1fr;}}
.tbl-releves td,.tbl-releves th{text-align:right;font-size:12.5px;}
.tbl-releves td:first-child,.tbl-releves th:first-child{text-align:left;}
.tbl-releves td.sous .val{color:var(--sig-err-texte);font-weight:700;}

.alertes-liste{display:flex;flex-direction:column;gap:8px;}
.alerte{display:flex;gap:10px;align-items:flex-start;background:var(--sig-err-bg);border:1px solid #f3bdb6;border-radius:8px;padding:10px 12px;font-size:13px;color:var(--ink);}
.alerte.info{background:var(--sig-warn-bg);border-color:#efd9ac;}
.alerte svg{width:18px;height:18px;stroke:var(--sig-err-texte);flex:none;margin-top:1px;}
.alerte.info svg{stroke:var(--sig-warn);}
