/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --primary:       #2563EB;
  --primary-dk:    #1D4ED8;
  --primary-lt:    #DBEAFE;
  --success:       #16A34A;
  --warning:       #D97706;
  --danger:        #DC2626;
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-400:      #94A3B8;
  --gray-600:      #475569;
  --gray-800:      #1E293B;
  --white:         #FFFFFF;

  /* Carburants */
  --c-gazole:  #3B82F6;
  --c-sp95:    #22C55E;
  --c-sp98:    #15803D;
  --c-e10:     #06B6D4;
  --c-e85:     #F59E0B;
  --c-gplc:    #8B5CF6;

  --nav-h:     60px;
  --radius:    10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: .2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── Navigation ────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo span { color: var(--gray-800); }
.navbar__logo svg { width: 28px; height: 28px; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
}
.navbar__nav a {
  padding: .4rem .75rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}
.navbar__nav a:hover, .navbar__nav a.active {
  background: var(--primary-lt);
  color: var(--primary);
  text-decoration: none;
}

.navbar__search {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: .3rem .75rem;
  gap: .5rem;
  min-width: 220px;
  max-width: 320px;
  flex: 1;
}
.navbar__search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .875rem;
  width: 100%;
  color: var(--gray-800);
}
.navbar__search svg { color: var(--gray-400); flex-shrink: 0; }

/* ─── Layout page carte ─────────────────────────────────────────────────── */
.map-layout {
  display: flex;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.map-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.map-sidebar__filters {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.map-sidebar__results {
  flex: 1;
  overflow-y: auto;
  padding: .25rem .5rem .5rem;
}
.map-sidebar__results[hidden] { display: none; }

.sidebar-results-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1rem;
  background: var(--gray-50);
  border: none;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.sidebar-results-toggle:hover { background: var(--gray-100); color: var(--gray-800); }
.sidebar-results-toggle svg { transition: transform .2s; }
.sidebar-results-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.map-container {
  flex: 1;
  position: relative;
  z-index: 1;
}
#map { width: 100%; height: 100%; }

/* ─── Filtres carburant ──────────────────────────────────────────────────── */
.fuel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .75rem;
}
.fuel-tab {
  padding: .3rem .65rem;
  border-radius: 20px;
  border: 2px solid transparent;
  background: var(--gray-100);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
}
.fuel-tab:hover { background: var(--gray-200); }
.fuel-tab.active { color: var(--white); }
.fuel-tab[data-carb="Gazole"].active  { background: var(--c-gazole); border-color: var(--c-gazole); }
.fuel-tab[data-carb="SP95"].active    { background: var(--c-sp95);   border-color: var(--c-sp95);   }
.fuel-tab[data-carb="SP98"].active    { background: var(--c-sp98);   border-color: var(--c-sp98);   }
.fuel-tab[data-carb="E10"].active     { background: var(--c-e10);    border-color: var(--c-e10);    }
.fuel-tab[data-carb="E85"].active     { background: var(--c-e85);    border-color: var(--c-e85);    }
.fuel-tab[data-carb="GPLc"].active    { background: var(--c-gplc);   border-color: var(--c-gplc);   }

.filter-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.filter-row label { font-size: .8rem; color: var(--gray-600); white-space: nowrap; }
.filter-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.filter-row output { font-size: .8rem; font-weight: 600; min-width: 3.5rem; text-align: right; }

.filter-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--gray-600);
}
.filter-check input { accent-color: var(--primary); }

/* ─── Carte – boutons contrôle ───────────────────────────────────────────── */
.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.map-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .55rem .65rem;
  box-shadow: var(--shadow);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: box-shadow var(--transition);
}
.map-btn:hover { box-shadow: var(--shadow-lg); }
.map-btn svg { width: 16px; height: 16px; }

/* ─── Markers Leaflet custom ─────────────────────────────────────────────── */
.marker-pin {
  background: var(--white);
  border: 2px solid currentColor;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 20px;
}
.marker-pin.rupture {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-400);
}

/* Cluster – cercle extérieur (halo) */
.marker-cluster-small  { background: rgba(37, 99, 235, .25) !important; }
.marker-cluster-medium { background: rgba(217, 119,  6, .25) !important; }
.marker-cluster-large  { background: rgba(220,  38, 38, .25) !important; }

/* Cluster – cercle intérieur (fond opaque + texte lisible) */
.marker-cluster-small  div {
  background: #2563EB !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.35) !important;
}
.marker-cluster-medium div {
  background: #D97706 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.35) !important;
}
.marker-cluster-large  div {
  background: #DC2626 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.35) !important;
}

/* ─── Panel station (carte) ──────────────────────────────────────────────── */
.station-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: .875rem;
  margin-bottom: .5rem;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.station-card:hover, .station-card.active {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.station-card__name {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .2rem;
  color: var(--gray-800);
}
.station-card__addr {
  font-size: .78rem;
  color: var(--gray-600);
  margin-bottom: .5rem;
}
.station-card__prix {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.prix-badge {
  padding: .2rem .5rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-low  { background: #DCFCE7; color: #15803D; }
.price-mid  { background: #FEF3C7; color: #92400E; }
.price-high { background: #FEE2E2; color: #991B1B; }
.price-rupt { background: var(--gray-100); color: var(--gray-400); }

/* ─── Layout général ────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Hero page ─────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
}
.page-hero__breadcrumb {
  font-size: .8rem;
  opacity: .8;
  margin-bottom: .75rem;
}
.page-hero__breadcrumb a { color: var(--white); opacity: .8; }
.page-hero__breadcrumb a:hover { opacity: 1; }
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 600px; }

/* ─── Stats band ────────────────────────────────────────────────────────── */
.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.stat-item { text-align: center; }
.stat-item__value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.stat-item__label {
  font-size: .78rem;
  color: var(--gray-600);
  margin-top: .1rem;
}

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--gray-200); }
.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gray-800);
}

/* ─── Grille stations ────────────────────────────────────────────────────── */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ─── Carte station (page SEO) ───────────────────────────────────────────── */
.station-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.station-info-card h3 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}

/* ─── Tableau de prix ────────────────────────────────────────────────────── */
.prix-table { width: 100%; border-collapse: collapse; }
.prix-table th, .prix-table td {
  padding: .625rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: .9rem;
}
.prix-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.prix-table tr:last-child td { border-bottom: none; }
.prix-table__carb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.carb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Graphique ─────────────────────────────────────────────────────────── */
.chart-wrapper {
  position: relative;
  height: 260px;
}
.chart-tabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.chart-tab {
  padding: .3rem .7rem;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
}
.chart-tab.active, .chart-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── Map intégrée (pages SEO) ───────────────────────────────────────────── */
.mini-map {
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

/* ─── Tableau liste stations ─────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th {
  padding: .75rem 1rem;
  background: var(--gray-50);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: .875rem;
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

/* ─── Recherche ─────────────────────────────────────────────────────────── */
.search-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-600); }
.form-control {
  padding: .6rem .875rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ─── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dk);
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
}
.btn-outline:hover {
  background: var(--gray-100);
  text-decoration: none;
}
.btn-sm { padding: .4rem .875rem; font-size: .8rem; }

/* ─── Badges état ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-rupture { background: #FEE2E2; color: var(--danger); }
.badge-dispo   { background: #DCFCE7; color: var(--success); }
.badge-auto    { background: var(--primary-lt); color: var(--primary); }

/* ─── Alert / Info ───────────────────────────────────────────────────────── */
.alert {
  padding: .875rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.alert-info    { background: var(--primary-lt); color: var(--primary-dk); }
.alert-warning { background: #FEF3C7; color: #92400E; }
.alert-danger  { background: #FEE2E2; color: #991B1B; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: .25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.pagination a, .pagination span {
  padding: .4rem .75rem;
  border-radius: 6px;
  font-size: .875rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--primary-lt); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 700; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-800);
  color: #CBD5E1;
  padding: 1.5rem 0 1rem;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer__brand { color: var(--white); font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.footer p { font-size: .8rem; line-height: 1.5; }
.footer h4 { color: var(--white); font-size: .75rem; font-weight: 700; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .2rem; }
.footer ul a { font-size: .8rem; color: #94A3B8; transition: color var(--transition); }
.footer ul a:hover { color: var(--white); text-decoration: none; }
.footer__regions { columns: 2; column-gap: .75rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
  color: #64748B;
}

/* ─── Popup Leaflet custom ───────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; padding: .75rem 1rem !important; }
.leaflet-popup-content:has(.popup-station) { padding: 0 !important; }
.popup-station { min-width: 280px; max-width: 360px; }
.popup-station__header {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1rem;
}
.popup-station__name { font-weight: 700; font-size: .95rem; }
.popup-station__addr { font-size: .78rem; opacity: .85; }
.popup-station__body { padding: .75rem 1rem; }
.popup-prix-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: .85rem;
}
.popup-prix-row:last-child { border-bottom: none; }
.popup-prix-row .carb { font-weight: 600; color: var(--gray-600); }
.popup-prix-row .val  { font-weight: 700; }
.popup-station__footer {
  padding: .6rem 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: .5rem;
}
.popup-station__footer a {
  flex: 1;
  text-align: center;
  padding: .35rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--primary-lt);
  color: var(--primary);
}
.popup-station__footer a:hover { background: var(--primary); color: var(--white); text-decoration: none; }

/* ─── Page Ruptures ──────────────────────────────────────────────────────── */
.ruptures-hero {
  text-align: center;
  padding: .75rem .5rem 1rem;
}
.ruptures-hero__count {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--danger);
  line-height: 1.1;
}
.ruptures-hero__label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .15rem;
}
.ruptures-hero__sub {
  font-size: .8rem;
  color: var(--gray-600);
}

/* Marqueur rond rouge sur la carte ruptures */
.rupture-pin {
  width: 14px; height: 14px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.leaflet-marker-rupture { background: transparent !important; border: none !important; }

/* ─── Spinner ────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* ─── Grilles utilitaires responsive ────────────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ─── Menu hamburger ─────────────────────────────────────────────────────── */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem .4rem;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: .5rem .75rem .75rem;
  flex-direction: column;
  gap: .125rem;
}
.navbar__mobile-nav.open { display: flex; }
.navbar__mobile-nav a {
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-600);
  display: block;
  transition: background var(--transition);
  text-decoration: none;
}
.navbar__mobile-nav a:hover,
.navbar__mobile-nav a.active { background: var(--primary-lt); color: var(--primary); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .map-sidebar { width: 280px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2col { grid-template-columns: 1fr; }
  .grid-4col { grid-template-columns: repeat(2, 1fr); }
  .mini-map { height: 260px; }
  .stats-band__grid { grid-template-columns: repeat(3, 1fr); }
  .stations-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .section { padding: 2rem 0; }
  .page-hero { padding: 2rem 0 2.5rem; }
  .page-hero h1 { font-size: 1.75rem; }
}

@media (max-width: 640px) {
  .map-layout { flex-direction: column; height: auto; min-height: 0; }
  .map-sidebar { order: 2; width: 100%; height: auto; border-right: none; border-top: 1px solid var(--gray-200); }
  .map-sidebar__results { max-height: 50vh; }
  .map-container { order: 1; height: 62vh; min-height: 300px; }
  #map { height: 62vh; min-height: 300px; }
  .navbar__nav { display: none; }
  .navbar__burger { display: flex; }
  .navbar__search { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 1.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.4rem; }
  .page-hero p { font-size: .9rem; }
  .section { padding: 1.5rem 0; }
  .container { padding: 0 1rem; }
  .stations-grid { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .mini-map { height: 220px; }
  .station-info-card { padding: 1rem; }
  .stat-item__value { font-size: 1.25rem; }
}

@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr; }
  .grid-4col { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Utilitaires ────────────────────────────────────────────────────────── */
.text-muted { color: var(--gray-600); }
.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .78rem; }
.font-bold  { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }

/* ─── Couleurs carburant inline ──────────────────────────────────────────── */
.carb-gazole { color: var(--c-gazole); }
.carb-sp95   { color: var(--c-sp95); }
.carb-sp98   { color: var(--c-sp98); }
.carb-e10    { color: var(--c-e10); }
.carb-e85    { color: var(--c-e85); }
.carb-gplc   { color: var(--c-gplc); }

/* ─── Favoris – badge navbar ────────────────────────────────────────────── */
.fav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  background: var(--warning);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 9px;
  vertical-align: middle;
  line-height: 1;
}
.navbar__fav-link { color: var(--gray-800); }
.navbar__fav-link.active, .navbar__fav-link:hover { color: var(--primary); }

/* ─── Bouton favori (page station) ─────────────────────────────────────── */
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .85rem;
  padding: .45rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.fav-btn:hover {
  background: rgba(255,255,255,.22);
}
.fav-btn--active {
  background: #FCD34D22;
  border-color: #FCD34D88;
  color: #FCD34D;
}
.fav-btn--active svg { fill: #FCD34D; }

/* ─── Page Mes stations ─────────────────────────────────────────────────── */
.fav-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}
.fav-state__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.fav-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: opacity .28s, transform .28s;
}
.fav-card--removing {
  opacity: 0;
  transform: scale(.96);
}
.fav-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.fav-card__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--gray-800);
}
.fav-card__addr {
  margin-top: .2rem;
}
.fav-card__remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: .2rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.fav-card__remove:hover {
  color: var(--danger);
  background: #FEE2E2;
}
.fav-card__prix {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .25rem;
}

/* ─── Liens légaux footer ───────────────────────────────────────────────── */
.footer__legal-links { display: flex; align-items: center; gap: .4rem; }
.footer__legal-links a { color: #64748B; font-size: .75rem; transition: color var(--transition); }
.footer__legal-links a:hover { color: var(--white); text-decoration: none; }
.footer__legal-links span { color: #475569; }

/* ─── Pages légales ─────────────────────────────────────────────────────── */
.page-legal .legal-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-legal .legal-section:last-of-type { border-bottom: none; }
.page-legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: .75rem;
}
.page-legal h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 1rem 0 .4rem;
}
.page-legal p, .page-legal li { font-size: .925rem; line-height: 1.7; color: var(--gray-700); }
.page-legal ul { padding-left: 1.25rem; margin: .5rem 0; }
.page-legal ul li { margin-bottom: .3rem; }
.page-legal a { color: var(--primary); }
.page-legal a:hover { text-decoration: underline; }
.page-legal code {
  background: var(--gray-100);
  padding: .1em .35em;
  border-radius: 3px;
  font-size: .85em;
}

/* ─── Section Petrole ──────────────────────────────────────────────────── */
.petrole-kpis {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.petrole-kpi {
  flex: 1;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .875rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.petrole-kpi__label {
  font-size: .75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  margin-bottom: .3rem;
}
.petrole-kpi__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
}
.petrole-kpi__sub {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: .25rem;
}

/* ─── Bandeau RGPD ──────────────────────────────────────────────────────── */
.rgpd-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 680px;
  background: #0F172A;
  color: #CBD5E1;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  z-index: 9000;
  padding: 1rem 1.25rem;
}
.rgpd-banner__content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.rgpd-banner__content p {
  flex: 1;
  font-size: .82rem;
  line-height: 1.55;
  margin: 0;
}
.rgpd-banner__content a { color: #93C5FD; }
.rgpd-banner__content a:hover { color: var(--white); }
.rgpd-banner__actions { display: flex; gap: .5rem; flex-shrink: 0; }
.rgpd-banner__actions .btn { cursor: pointer; }
.rgpd-banner__actions .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: #CBD5E1;
}
.rgpd-banner__actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
@media (max-width: 480px) {
  .rgpd-banner__content { flex-direction: column; align-items: stretch; }
  .rgpd-banner__actions { justify-content: flex-end; }
}
