/* ============================================================
   Stations et Recharge — design system
   ============================================================ */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --ink: #101c2b;
  --muted: #5a6b7d;
  --line: #e0e7ee;
  --brand: #1565d8;
  --brand-dark: #0d4cae;
  --brand-soft: #e4eefc;
  --accent: #f5a200;
  --danger: #d93838;
  --blue: #1565d8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 28, 43, .06), 0 8px 24px rgba(16, 28, 43, .07);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .4rem; }
h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
p.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { padding: 2rem 0 3.5rem; }
section { margin: 2.6rem 0; }
.narrow { max-width: 780px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap;
}
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo .logo-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), #4f9cf9);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900;
}
.logo span { color: var(--brand); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--brand-soft); }
.main-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }
.nav-cta {
  background: var(--brand) !important; color: #fff !important; border-radius: 999px !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* ---------- Hero ---------- */
.hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(900px 420px at 85% -10%, #d8e7fb 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 10%, #e8f1fd 0%, transparent 55%);
  border-bottom: 1px solid var(--line);
}
.hero .kicker {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 1rem;
}
.hero em { font-style: normal; color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.4rem; }
.badge {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--muted); padding: 5px 13px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Boutons / formulaires ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: none; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  padding: 11px 20px; border-radius: 10px; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--surface); }
input, select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2rem 0; }
.searchbar input[type="text"] { flex: 1 1 240px; max-width: 340px; }
.msg { min-height: 1.4em; font-weight: 600; }

/* ---------- Cartes / grille ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { display: flex; align-items: center; gap: 8px; }
.card .ico { font-size: 1.3rem; }
.kpi-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 1.4rem 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.kpi b { display: block; font-size: 1.5rem; color: var(--brand-dark); }
.kpi small { color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fbfcfb; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f4faf7; }
td.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.best { background: #dcf5e6; color: #0a5c38; }
.tag.good { background: #eef3fd; color: #2f6fdb; }
.tag.expensive { background: #fdeaea; color: #b32626; }

/* ---------- Carte MapLibre ---------- */
.map-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.map-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
#map { height: 480px; border-radius: 10px; }
#map:fullscreen, #map:-webkit-full-screen { height: 100vh; border-radius: 0; }
.map-results { max-height: 480px; overflow-y: auto; }
.station-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line);
}
.station-row:last-child { border-bottom: none; }
.st-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.st-name small { color: var(--muted); }
.fb {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; background: var(--brand-soft); color: var(--brand-dark);
}
.price { font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.price small { font-weight: 600; color: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.maplibregl-ctrl-attrib.maplibregl-compact { font-size: 11px; border-radius: 8px 0 0 0; background: rgba(255,255,255,.85); }
.maplibregl-ctrl-bottom-right { z-index: 5; }
/* Badge pays façon app mobile (pill ISO) */
.cbadge { display: inline-block; border-radius: 6px; padding: 1px 6px; font-size: .72rem; font-weight: 800; color: #fff; letter-spacing: .03em; }
.cbadge.FR { background: #0055A4; } .cbadge.LU { background: #00A1DE; } .cbadge.BE { background: #2D2926; }
.cbadge.ES { background: #C60B1E; } .cbadge.DE { background: #b38600; } .cbadge.CH { background: #DA291C; } .cbadge.AD { background: #10069F; }
a.maps-link { font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ico-svg { width: 20px; height: 20px; flex: none; }
.card h3 .ico-svg { width: 18px; height: 18px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; }

/* ---------- Graphes ---------- */
.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.chart-card { min-height: 320px; display: flex; flex-direction: column; }
.chart-box { flex: 1; position: relative; min-height: 240px; }

/* ---------- Captures d'écran ---------- */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.4rem; }
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shot-fallback {
  aspect-ratio: 9 / 18; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--muted); border-radius: 18px; text-align: center; font-size: .9rem;
}

/* ---------- Store badges ---------- */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.4rem 0; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #101410; color: #fff; border-radius: 12px; padding: 10px 18px;
}
.store-badge small { display: block; font-size: .68rem; opacity: .8; }
.store-badge b { font-size: 1.02rem; line-height: 1.2; }
.store-badge.disabled { opacity: .55; pointer-events: none; }

/* ---------- FAQ ---------- */
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin: 8px 0;
}
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Waitlist ---------- */
.waitlist {
  background: linear-gradient(135deg, #0d3d8f, var(--brand));
  color: #fff; border-radius: 18px; padding: 2rem; text-align: center;
}
.waitlist h2 { color: #fff; }
.waitlist p { color: #d5e4fa; }
.waitlist form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.waitlist input, .waitlist select { border: none; }
.waitlist .btn { background: #fff; color: var(--brand-dark); }
.waitlist .msg { color: #fff; }

/* ---------- Article / blog ---------- */
.article-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.article-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  color: inherit; text-decoration: none;
}
.article-card:hover { border-color: var(--brand); }
.article-card time { color: var(--muted); font-size: .85rem; }
.article-card h3 { color: var(--ink); }
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 2rem; }
.article-body table { margin: 1rem 0; }
.callout {
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 14px 18px; margin: 1.2rem 0;
}

/* ---------- Breadcrumb / footer ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.site-footer {
  background: #0c1626; color: #b9c6da; margin-top: 3rem;
  padding: 2.6rem 0 1.6rem; font-size: .92rem;
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: #b9c6da; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #1e2f4d; margin-top: 2rem; padding-top: 1.2rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #7f92ad;
}
@media (max-width: 720px) {
  .main-nav { width: 100%; padding-bottom: 10px; }
}

/* ---------- 404 ---------- */
.err-404 { text-align: center; padding: 5rem 0; }
.err-404 b { font-size: 5rem; color: var(--brand); display: block; line-height: 1; }
