@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-wdth.woff2?v=e3a28eade2) format('woff2-variations'), url(/assets/fonts/archivo-wdth.woff2?v=e3a28eade2) format('woff2');
}
:root {
  --bg: #F6F4EE; --surface: #FFFFFF; --ink: #10201A; --muted: #4B5A53; --line: #DAD6CA;
  --primary: #0E6B4F; --on-primary: #FFFFFF; --accent: #FFC83D; --red: #C8372D; --red-bg: #FBE7E4; --red-ink: #A32A21;
  --amber: #8A5A10; --totem: #10201A; --totem-ink: #FFC83D; --chip: #ECE8DC;
  --s1: #0E6B4F; --s2: #B7791F; --s3: #C8372D; --s4: #3B5BA9; --s5: #6B4FA0; --s6: #4B5A53;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1512; --surface: #15201B; --ink: #E8EFEA; --muted: #A5B4AC; --line: #2A3A33;
    --primary: #3FBF8F; --on-primary: #0D1512; --red: #FF7B6E; --red-bg: #3A1A17; --red-ink: #FF9A8F;
    --amber: #E9B44C; --totem: #050A08; --chip: #1E2B25;
    --s1: #3FBF8F; --s2: #E9B44C; --s3: #FF7B6E; --s4: #8FA8F0; --s5: #C2A6F0; --s6: #A5B4AC;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.55; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
a { color: var(--primary); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-stretch: 118%; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-stretch: 125%; margin: .4em 0 .3em; }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.05rem; margin: 0; font-stretch: 112%; font-weight: 700; }
p { margin: .5em 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.1rem; max-width: 60ch; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--accent); color: #10201A; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* En-tête */
.site-top { background: var(--totem); color: #F6F4EE; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #F6F4EE; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; }
.nav a { color: #F6F4EE; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }

/* Fil d'Ariane */
.crumbs ol { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 8px; }

/* Totem : le prix comme sur le panneau d'une station */
.totem {
  display: inline-flex; align-items: flex-start; background: var(--totem); color: var(--totem-ink);
  border-radius: 8px; padding: .12em .45em .1em; font-weight: 700; font-stretch: 112%; line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .18);
}
.totem .tt-m { font-size: .62em; margin-left: .06em; margin-top: .05em; }
.totem.sm { font-size: 1rem; border-radius: 6px; }
.totem.lg { font-size: clamp(1.7rem, 7vw, 2.4rem); border-radius: 10px; padding: .1em .35em; }
.totem-none { color: #A5B4AC; }

/* Accueil : le panneau des prix */
.hero { padding: 6px 0 4px; }
.sign { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 12px; background: var(--totem); color: #F6F4EE; border-radius: 18px; padding: 8px 14px; margin: 18px 0; border: 3px solid #1F3A2F; }
.sign-head, .sign-row { display: contents; }
.sign-head span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #B9C7C0; padding: 4px 0 6px; }
.sign-head span:nth-child(2) { text-align: center; }
.sign-head span:nth-child(3) { text-align: right; }
.sign-row > span { display: flex; align-items: center; padding: 8px 0; border-top: 1px solid #24382F; min-width: 0; }
.sign-f { font-weight: 800; font-stretch: 125%; font-size: 1.05rem; }
.sign-row .totem { box-shadow: none; background: #0A1511; }
.sign-row > .sign-min { flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; font-size: .82rem; text-align: right; }
.sign-min a { color: #DDE7E1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sign-min .totem { background: transparent !important; padding: 0; font-size: .95rem; }
.hero-grid { display: grid; gap: 0 32px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .hero-side { padding-top: 18px; } .hero-side .alert-card { margin-top: 18px; } }

.search { margin: 14px 0 6px; max-width: 640px; }
.search label { display: block; font-weight: 700; margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); }
.btn { display: inline-block; font: inherit; font-weight: 700; background: var(--primary); color: var(--on-primary); border: 0; border-radius: 10px; padding: 11px 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: #10201A; }
.more { font-weight: 700; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.alert-card { margin-top: 22px; border-left: 6px solid var(--red); }
.alert-card h2 { margin: 0 0 4px; }
.big-n { color: var(--red); font-stretch: 125%; }
.cta-compare { margin-top: 26px; }
.cta-compare h2 { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.app { margin: 28px 0 8px; background: var(--primary); color: var(--on-primary); border: 0; }
.app h2 { margin-top: 0; }
.app .soon { display: inline-block; background: var(--accent); color: #10201A; font-weight: 700; border-radius: 999px; padding: 4px 12px; }

/* Grilles de liens */
.dept-grid, .cities, .brand-grid, .model-list, .rupt-depts, .eq, .stations, .versions, .rup-list, .rank, .rupt-fuels { list-style: none; padding: 0; margin: 0; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dept-grid a { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 6px 8px; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.dept-grid a:hover { border-color: var(--primary); }
.dg-n { font-weight: 800; color: var(--primary); }
.dg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-p { font-weight: 700; }
.cities { columns: 2 150px; column-gap: 20px; }
.cities li { break-inside: avoid; padding: 3px 0; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.brand-grid a { display: flex; flex-direction: column; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.model-list .card { padding: 0; }
.model-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.ml-c { color: var(--primary); font-weight: 700; }

/* Tableaux de moyennes */
table { border-collapse: collapse; width: 100%; }
.avg-t { max-width: 640px; }
.avg-t th, .avg-t td, .data-t th, .data-t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.avg-t thead th, .data-t thead th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.avg-t .fr { font-weight: 600; }
.down { color: var(--primary); font-weight: 600; }
.up { color: var(--red-ink); font-weight: 600; }
@media (prefers-color-scheme: dark) { .up { color: var(--red-ink); } }
.eq { color: var(--muted); }

/* Classements */
details.top { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; }
details.top summary { cursor: pointer; padding: 12px 16px; font-weight: 800; font-stretch: 115%; display: flex; justify-content: space-between; gap: 8px; }
details.top .muted { font-weight: 500; font-stretch: 100%; }
.rank { counter-reset: r; }
details .rank { padding: 0 12px 10px; }
.rank li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.rank .age { white-space: nowrap; }
.nw { white-space: nowrap; }
.two .rank li { grid-template-columns: minmax(0, 1fr) auto; }
.two .rank li span { font-weight: 700; white-space: nowrap; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; }

.pill { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; line-height: 1.4; }
.pill-red { background: var(--red-bg); color: var(--red-ink); }
.pill-mute { background: var(--chip); color: var(--muted); }
.rup-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Ruptures */
.rupt-fuels { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 18px 0; }
.rupt-fuels li { background: var(--totem); color: #F6F4EE; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.rf-n { color: #FF8A7E; font-size: 1.45rem; font-weight: 800; font-stretch: 105%; line-height: 1.1; white-space: nowrap; }
.rf-f { font-size: .9rem; }
.rupt-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rd-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-stretch: 112%; text-decoration: none; }
.rd-n { color: var(--red-ink); }
.rupt-depts p { margin: 4px 0 0; font-size: .92rem; }

/* Ville : les stations */
.best ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.best li { display: grid; grid-template-columns: auto auto; grid-template-areas: 'f p' 's s'; gap: 2px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.b-f { grid-area: f; font-weight: 700; }
.best .totem { grid-area: p; justify-self: end; }
.b-s { grid-area: s; font-size: .82rem; color: var(--muted); }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.station .muted { font-size: .9rem; margin: 2px 0 8px; }
.st-p { margin: 0; display: grid; gap: 0; }
.st-p > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.st-p dt { font-weight: 700; }
.st-p dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.age { font-size: .82rem; color: var(--muted); }
.age.old { color: var(--amber); font-weight: 600; }

/* Courbe */
.chart { margin: 22px 0; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 12px; font-family: inherit; }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ln.s1 { stroke: var(--s1); } .ln.s2 { stroke: var(--s2); } .ln.s3 { stroke: var(--s3); } .ln.s4 { stroke: var(--s4); } .ln.s5 { stroke: var(--s5); } .ln.s6 { stroke: var(--s6); }
.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; }
.key::before { content: ''; display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.key.s1::before { background: var(--s1); } .key.s2::before { background: var(--s2); } .key.s3::before { background: var(--s3); }
.key.s4::before { background: var(--s4); } .key.s5::before { background: var(--s5); } .key.s6::before { background: var(--s6); }

/* Comparateur */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; margin: 18px 0; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { font-weight: 800; font-stretch: 115%; font-size: 1.05rem; margin-bottom: 6px; padding: 0; }
.calc label { display: block; font-size: .92rem; margin: 8px 0; }
.calc input:not([type=range]), .calc select { display: block; width: 100%; font: inherit; padding: 9px 10px; margin-top: 4px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.calc input[type=range] { display: block; width: 100%; margin-top: 6px; accent-color: var(--primary); }
.calc-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.co { background: var(--totem); color: #F6F4EE; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.co-l { font-size: .85rem; color: #C5D2CB; }
.co-v { color: var(--accent); font-size: 2rem; font-weight: 800; font-stretch: 118%; line-height: 1.15; }
.co-s { font-size: .88rem; color: #DDE7E1; }
.co-d { grid-column: 1 / -1; font-weight: 700; font-size: 1.1rem; margin: 4px 0 0; }
.notes ul { padding-left: 1.2em; }
.notes li { margin: 6px 0; }

/* Modèle */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 16px 0; }
.kpi { background: var(--totem); color: #F6F4EE; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.kpi-l { font-size: .85rem; color: #C5D2CB; }
.kpi-v { color: var(--accent); font-size: 1.6rem; font-weight: 800; font-stretch: 115%; line-height: 1.2; }
.kpi-s { font-size: .85rem; color: #DDE7E1; }
.versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.versions h3 { font-size: .95rem; font-stretch: 100%; }
.versions .muted { font-size: .88rem; margin: 2px 0 8px; }
.vd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.vd dt { font-size: .78rem; color: var(--muted); }
.vd dd { margin: 0; font-weight: 600; }
.vd-c dd { color: var(--primary); font-weight: 800; }
.eq { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; color: var(--ink); }
.eq li { display: flex; flex-direction: column; gap: 2px; }

/* Textes légaux */
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.data-t { margin: 10px 0; font-size: .95rem; }
.data-t td { vertical-align: top; }

/* Pied de page */
.foot { margin-top: 48px; background: var(--totem); color: #DDE7E1; padding: 24px 0 30px; font-size: .9rem; }
.foot a, .foot .linkbtn { color: #F6F4EE; }
.foot .upd strong { color: var(--accent); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; }
.copy { color: #B9C7C0; }

@media (max-width: 480px) {
  .nav { gap: 2px 12px; font-size: .86rem; }
  .brand { font-size: 1.05rem; }
  .hide-s { display: none; }
  .search-row { flex-direction: column; }
  .sign { padding: 6px 10px; border-radius: 14px; column-gap: 8px; }
  .sign-f { font-size: .95rem; font-stretch: 112%; }
  .stations, .versions, .model-list, .rupt-depts, .eq { grid-template-columns: minmax(0, 1fr); }
}

/* ——— Accueil v2 : héros court, carte au centre ——— */
.hero2 { padding: 10px 0 2px; }
.hero2 h1 { margin-bottom: .2em; }
.hero2 .lead { color: var(--muted); margin-top: 0; }

/* ——— Carte des prix (finder.js) ——— */
.finder { --fh: 600px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px -18px rgba(16, 32, 26, .35); margin: 18px 0 8px; overflow: hidden; position: relative; }
.f-bar { padding: 14px 14px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.f-search { display: flex; gap: 8px; }
.f-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.f-field > svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.f-q { width: 100%; font: inherit; font-size: 1.02rem; padding: 12px 12px 12px 40px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.f-q:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.f-loc { display: inline-flex; align-items: center; gap: 6px; }
.f-loc:disabled { opacity: .6; cursor: progress; }
.f-sug { position: absolute; z-index: 1100; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }
.f-sug li { padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.f-sug li:hover, .f-sug li[aria-selected=true] { background: var(--chip); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-weight: 700; font-size: .95rem; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true] { background: var(--totem); color: var(--accent); border-color: var(--totem); }
.f-msg { margin: 0; font-size: .92rem; color: var(--red-ink); }
.f-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: var(--fh); }
.f-map { position: relative; min-height: 0; background: #E8E4D8; z-index: 0; }
.f-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.f-head { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.f-head strong { font-stretch: 112%; }
.f-head .muted { font-size: .88rem; }
.rupt-n { color: var(--red-ink); font-weight: 700; }
.f-list { list-style: none; margin: 0; padding: 4px 6px 8px; overflow-y: auto; flex: 1; }
.f-list .row { width: 100%; display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.f-list .row:hover { background: var(--chip); }
.f-list .row.top3 .rk { background: var(--primary); color: var(--on-primary); }
.rk { width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--chip); color: var(--muted); }
.nm { display: flex; flex-direction: column; min-width: 0; }
.nm b, .nm .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm .muted { font-size: .85rem; }
.totem small { font-size: .62em; margin-left: .06em; }
.totem.dim { opacity: .55; }
.f-empty { padding: 18px 14px; color: var(--muted); margin: 0; }
.finder.busy .f-head::after { content: ''; height: 3px; margin: 6px -14px -10px; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: fbusy 1s linear infinite; }
@keyframes fbusy { from { background-position: -50% 0 } to { background-position: 150% 0 } }

/* Marqueurs : le prix comme sur un totem de station */
.pin { position: absolute; transform: translate(-50%, calc(-100% - 7px)); display: inline-flex; align-items: baseline; white-space: nowrap; background: var(--totem); color: var(--accent); font-weight: 800; font-stretch: 108%; font-size: 13.5px; line-height: 1; padding: 6px 8px 5px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); cursor: pointer; font-variant-numeric: tabular-nums; }
.pin small { font-size: .7em; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--pin-tail, var(--totem)); border-bottom: 0; }
.pin.best { background: #0E6B4F; color: #fff; --pin-tail: #0E6B4F; font-size: 15px; outline: 2px solid #FFC83D; }
.pin.old { background: #6B7570; color: #EDEFEA; --pin-tail: #6B7570; font-size: 12px; opacity: .85; }
.pin.rup { background: #C8372D; color: #fff; --pin-tail: #C8372D; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon:focus .pin { transform: translate(-50%, calc(-100% - 7px)) scale(1.08); }
.dpin { position: absolute; transform: translate(-50%, -50%); background: #10201A; color: #FFC83D; font-weight: 800; font-size: 11.5px; line-height: 1; padding: 4px 6px 3px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); border: 1.5px solid rgba(255, 255, 255, .85); cursor: pointer; font-variant-numeric: tabular-nums; }
.dpin small { font-size: .75em; }
.dpin.dot { width: 15px; height: 15px; padding: 0; border-width: 2px; }
.dpin.low { background: #0E6B4F; color: #fff; }
.dpin.high { background: #A8362C; color: #fff; }
.dpin.none { background: #6B7570; color: #EDEFEA; }
.leaflet-marker-icon:hover .dpin { transform: translate(-50%, -50%) scale(1.15); }
.f-legend { position: absolute; z-index: 500; left: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 10px; padding: 5px 9px; font-size: .78rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.f-legend[hidden] { display: none; }
.f-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.sdot { position: absolute; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background: #10201A; border: 2px solid #FFC83D; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: pointer; }
.sdot.old { background: #6B7570; border-color: #EDEFEA; }
.sdot.rup { background: #C8372D; border-color: #fff; }
.leaflet-marker-icon:hover .sdot { transform: translate(-50%, -50%) scale(1.3); }
.me { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #2A7DE1; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(42, 125, 225, .25); }

/* Bulle d'une station */
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--surface); color: var(--ink); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font: inherit; font-size: .92rem; line-height: 1.4; }
.leaflet-container { font: inherit; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pop strong { font-size: 1.02rem; font-stretch: 112%; }
.pop .muted { font-size: .84rem; margin: 2px 0 8px; }
.pop table { width: 100%; }
.pop th { text-align: left; font-weight: 600; padding: 4px 8px 4px 0; white-space: nowrap; }
.pop td { padding: 4px 0; }
.pop tr.on th { color: var(--primary); }
.pop-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.pop-a a:not(.btn) { font-size: .85rem; font-weight: 600; }
.btn.sm { padding: 7px 12px; font-size: .9rem; border-radius: 8px; color: var(--on-primary) !important; }
.leaflet-control-attribution { font-size: 10.5px; }
@media (prefers-color-scheme: dark) {
  .f-map .leaflet-tile-pane { filter: brightness(.78) contrast(1.08) saturate(.75); }
  .f-map { background: #222A26; }
  .leaflet-control-attribution { background: rgba(21, 32, 27, .8) !important; color: var(--muted); }
  .leaflet-control-attribution a { color: var(--ink); }
}
@media (max-width: 819px) {
  .finder { --fh: auto; border-radius: 16px; margin-left: -6px; margin-right: -6px; }
  .f-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58vh auto; height: auto; }
  .f-map { height: 58vh; min-height: 340px; }
  .f-side { border-left: 0; border-top: 1px solid var(--line); }
  .f-list { max-height: 420px; }
}
@media (max-width: 480px) {
  .f-search { flex-wrap: wrap; }
  .f-loc { width: 100%; justify-content: center; }
}

/* Prix moyens du jour en cartes */
.fuel-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.fuel-card { background: var(--totem); color: #F6F4EE; border-radius: 16px; padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.fuel-card .totem { align-self: flex-start; background: #0A1511; box-shadow: none; padding: 0; background: transparent; }
.fc-f { font-weight: 800; font-stretch: 118%; font-size: .95rem; color: #C5D2CB; text-transform: uppercase; letter-spacing: .04em; }
.fc-min { font-size: .84rem; color: #C5D2CB; }
.fc-min strong { color: #F6F4EE; }
.fc-min a { color: #F6F4EE; }
.rupt-banner { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--red-bg); color: var(--red-ink); text-decoration: none; border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.rupt-banner:hover { border-color: var(--red); }
.rb-n { font-size: 1.8rem; font-weight: 800; font-stretch: 118%; line-height: 1; }
.rb-t { flex: 1; font-size: .92rem; color: var(--ink); }
.rb-t strong { color: var(--red-ink); display: block; font-size: 1rem; }
.rb-go { font-size: 1.4rem; font-weight: 800; }
