:root {
  --navy: #0b1f33; --ink: #10233a; --muted: #5b6b7c; --line: rgba(15,36,61,.08); --cheap: #128a4b; --pricey: #c43c1a; --shadow: 0 10px 30px rgba(11,31,51,.18); --safe-top: env(safe-area-inset-top,0px); --safe-bottom: env(safe-area-inset-bottom,0px);
}
* { box-sizing: border-box; }

html, body, .map-app {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

html, body {
  min-height: 100vh;
}

body.map-app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter,system-ui,sans-serif;
  color: var(--navy);
  background: #d9e2ec;
}

#map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  z-index: 0;
}

/*
 * iOS Home Screen workaround:
 * Do NOT use viewport-fit=cover together with dynamic viewport units here.
 * WebKit has open standalone-PWA bugs that can create a non-DOM bottom area.
 * With the viewport meta left at the standard viewport, 100vh is the stable
 * full-screen sizing path for the installed web app.
 */
html.is-standalone-app,
html.is-standalone-app body,
html.is-standalone-app .map-app,
html.is-standalone-app #map {
  height: 100vh;
  min-height: 100vh;
}

@supports (height: 100dvh) {
  html:not(.is-standalone-app),
  html:not(.is-standalone-app) body,
  html:not(.is-standalone-app) .map-app,
  html:not(.is-standalone-app) #map {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.topbar,.fuels,.drawer,.sheet,.setup,.toast,.route-panel,.scrim { position:fixed; z-index:20; }
.topbar { top:calc(10px + var(--safe-top)); left:12px; right:12px; display:flex; align-items:center; gap:10px; padding:8px; background:rgba(255,255,255,.92); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); backdrop-filter:blur(16px); }
.brand { flex:1; min-width:0; line-height:1.15; } .brand strong{display:block;font-size:1.02rem}.brand span{color:var(--muted);font-size:.75rem;font-weight:600}
.icon-btn,.text-btn,.pill,.sheet-nav,.route-mode { border:0; cursor:pointer; font:inherit; }.icon-btn{width:44px;height:44px;border-radius:14px;background:var(--navy);color:#fff;display:grid;place-items:center;gap:4px}.icon-btn span{display:block;width:16px;height:2px;background:#fff;border-radius:2px}.icon-btn.locate{background:#fff;color:var(--navy);border:1px solid var(--line)}.text-btn{background:none;color:var(--muted);font-weight:700}
.scrim{inset:0;background:rgba(11,31,51,.45);z-index:30}.drawer{top:0;left:0;bottom:0;width:min(86vw,320px);background:#fff;z-index:40;padding:calc(18px + var(--safe-top)) 18px 24px;box-shadow:var(--shadow)}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.drawer-nav{display:grid;gap:6px}.drawer-nav a{color:var(--navy);text-decoration:none;font-weight:700;padding:12px 10px;border-radius:12px}
.fuels{left:12px;right:12px;bottom:calc(14px + var(--safe-bottom));display:flex;gap:8px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none}.fuels::-webkit-scrollbar{display:none}.pill{flex:0 0 auto;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--navy);font-weight:800;box-shadow:var(--shadow)}.pill.is-on{background:var(--navy);color:#fff}
.sheet{
  left:50%;
  right:auto;
  bottom:calc(82px + var(--safe-bottom));
  width:min(760px,calc(100vw - 24px));
  max-height:min(58vh,520px);
  overflow:auto;
  transform:translateX(-50%);
  background:rgba(255,255,255,.98);
  border:1px solid rgba(15,36,61,.08);
  border-radius:22px;
  box-shadow:0 18px 55px rgba(11,31,51,.24);
  padding:8px 18px 18px;
  z-index:25;
}.sheet-handle{width:42px;height:5px;border:0;border-radius:99px;background:#d5dde6;display:block;margin:6px auto 12px}.sheet-brand{display:flex;gap:12px;align-items:center;min-width:0}
.sheet-brand > div{min-width:0}
.sheet-brand > div > strong{display:block;color:var(--navy);font-size:17px;line-height:1.2;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-brand span{width:42px;height:42px;border-radius:14px;background:var(--c,var(--navy));color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 42px}
.sheet-brand small{display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:700}
.sheet-identity{
  min-width:0;
  padding-right:48px;
}
.sheet-identity > strong{
  display:block;
  color:var(--navy);
  font-size:17px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sheet-identity > small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.sheet-address-block{
  margin-top:12px;
  padding:11px 13px;
  border-radius:14px;
  background:#f7f9fb;
  border:1px solid #edf1f5;
}
.sheet-section-label{
  display:block;
  color:#8793a3;
  font-size:10px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sheet-address-block .sheet-section-label{
  margin-bottom:4px;
}
.sheet-addr{
  margin:0;
  color:#435266;
  font-size:.82rem;
  line-height:1.4;
}

.sheet-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:9px;
}
.sheet-info-card{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:60px;
  padding:10px 11px;
  border:1px solid #e5eaf0;
  border-radius:14px;
  background:#fff;
}
.sheet-info-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 32px;
  border-radius:10px;
  background:#f1f5f9;
  font-size:15px;
}
.sheet-info-label{
  display:block;
  margin-bottom:2px;
  color:#94a3b8;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.sheet-info-value{
  display:block;
  color:var(--navy);
  font-size:.82rem;
  line-height:1.2;
  font-weight:900;
}
.sheet-info-hours{
  font-size:.76rem;
}
.sheet-section{
  margin-top:14px;
}
.sheet-section-head{
  margin-bottom:7px;
}
.sheet-prices{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.sheet-price{
  min-width:0;
  padding:10px 9px;
  border:1px solid #e4e9ef;
  border-radius:14px;
  background:#f7f9fb;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.sheet-price.is-on{
  border-color:#102c5c;
  background:#102c5c;
  color:#fff;
}
.sheet-price-fuel{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:950;
  letter-spacing:.06em;
}
.sheet-price.is-on .sheet-price-fuel{
  color:rgba(255,255,255,.78);
}
.sheet-price-value{
  display:block;
  margin-top:2px;
  color:var(--navy);
  font-size:15px;
  line-height:1.15;
  font-weight:950;
}
.sheet-price.is-on .sheet-price-value{
  color:#fff;
}
.sheet-price-mode{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-size:9px;
  line-height:1.1;
  font-weight:800;
}
.sheet-price.is-on .sheet-price-mode{
  color:rgba(255,255,255,.70);
}
.sheet-empty{
  grid-column:1/-1;
  padding:12px;
  border-radius:12px;
  background:#f7f9fb;
  color:#94a3b8;
  font-size:.78rem;
  font-weight:800;
}
.sheet-info-card-compact{
  justify-content:flex-start;
}

.sheet-addr{margin:10px 0 5px;color:var(--muted);font-size:.82rem;line-height:1.35}.sheet-prices{display:flex;flex-wrap:wrap;gap:6px}
.tag{background:#f3f6fa;border-radius:999px;padding:7px 10px;font-size:.74rem;font-weight:850;white-space:nowrap}
.tag.is-on{background:var(--navy);color:#fff}.tag.is-on{background:var(--navy);color:#fff}.sheet-nav{display:block;margin-top:14px;text-align:center;text-decoration:none;background:var(--navy);color:#fff;border-radius:14px;padding:12px;font-weight:800}
.route-panel{left:12px;right:12px;top:calc(78px + var(--safe-top));background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:12px;z-index:24}.route-head{display:flex;justify-content:space-between;align-items:center}.route-summary{margin:8px 0;color:var(--muted);font-size:.9rem;font-weight:700}.route-modes{display:flex;gap:6px}.route-mode{padding:8px 10px;border-radius:10px;background:#f3f6fa;font-size:.8rem;font-weight:800}.route-mode.is-on{background:var(--navy);color:#fff}.route-close{border:0;background:none;color:var(--muted);font-size:1.2rem}.toast{top:calc(76px + var(--safe-top));left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 14px;border-radius:12px;font-size:.85rem;font-weight:700;white-space:nowrap}.setup{inset:0;z-index:50;display:grid;place-items:center;background:rgba(11,31,51,.55);padding:24px}.setup-card{background:#fff;border-radius:20px;padding:22px;max-width:420px;box-shadow:var(--shadow)}.setup[hidden],.sheet[hidden],.drawer[hidden],.scrim[hidden],.toast[hidden],.route-panel[hidden]{display:none}.pump-pin{display:flex;align-items:center;gap:7px;background:#fff;border:0;border-radius:999px;padding:3px 10px 3px 3px;box-shadow:0 8px 20px rgba(11,31,51,.22);font:800 12px/1 Inter,system-ui,sans-serif;color:var(--navy);white-space:nowrap;transform:translateY(-4px)}.pump-pin::after{content:"";position:absolute;left:18px;top:100%;border:6px solid transparent;border-top-color:#fff}.pump-logo{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:11px}.pump-pin.cheap .pump-price{color:var(--cheap)}.pump-pin.pricey .pump-price{color:var(--pricey)}.user-dot{width:18px;height:18px;border-radius:50%;background:#2563eb;border:3px solid #fff;box-shadow:0 0 0 8px rgba(37,99,235,.18)}
.pump-logo-brand{background:#fff!important;border:1px solid rgba(15,23,42,.14);padding:3px;overflow:hidden}.pump-logo-brand img{display:block;width:100%;height:100%;object-fit:contain}.pump-logo-generic{font-size:16px;line-height:1}.pump-pin .pump-logo{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;flex:0 0 30px}.pump-pin .pump-price{white-space:nowrap}

.pump-pin.is-cheapest-focus{
  z-index:10;
  transform:translateY(-6px) scale(1.18);
  background:linear-gradient(135deg,#15803d,#16a34a);
  color:#fff;
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 12px 30px rgba(22,163,74,.38),0 0 0 5px rgba(22,163,74,.18);
}
.pump-pin.is-cheapest-focus::after{
  border-top-color:#16a34a;
}
.pump-pin.is-cheapest-focus .pump-price{
  color:#fff;
  font-weight:950;
}
.pump-pin.is-cheapest-focus .pump-logo{
  border-color:rgba(255,255,255,.55);
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.pump-pin.is-cheapest-focus .pump-favorite{
  color:#f6c945;
  text-shadow:0 1px 2px rgba(0,0,0,.2);
}


.fuel-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.fuel-filter-choice{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border:1px solid #dce4ec;
  border-radius:13px;
  background:#f8fafc;
  color:var(--navy);
  cursor:pointer;
  font:800 12px/1 Inter,system-ui,sans-serif;
  text-align:left;
  transition:.15s ease;
}

.fuel-filter-choice:hover{
  border-color:#b9c5d2;
  background:#fff;
}

.fuel-filter-choice.is-selected{
  border-color:var(--navy);
  background:#eef3f8;
  box-shadow:0 0 0 2px rgba(16,35,58,.08);
}

.fuel-filter-badge{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-size:10px;
  font-weight:900;
}

.fuel-filter-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ============================================================
   MAP CONTROLS / FILTERS
   ============================================================ */

.map-controls{
  position:fixed;
  left:12px;
  right:12px;
  bottom:calc(10px + var(--safe-bottom));
  z-index:20;
  pointer-events:none;
}

.map-controls .fuels{
  position:static;
  width:100%;
  pointer-events:auto;
  padding:4px 2px 8px;
}

.map-filter-actions{
  display:flex;
  gap:8px;
  align-items:center;
  pointer-events:auto;
}

.map-filter-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:14px;
  background:rgba(255,255,255,.94);
  color:var(--navy);
  box-shadow:0 8px 24px rgba(11,31,51,.18), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  font-weight:850;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.map-filter-button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(11,31,51,.22), inset 0 1px 0 rgba(255,255,255,.9);
}
.map-filter-button:active{transform:translateY(0) scale(.98);}
.map-filter-button.is-active{
  background:rgba(11,31,51,.94);
  border-color:rgba(255,255,255,.14);
  color:#fff;
}

.map-sort-button{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 14px;
}


.filter-count{
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:#e9b949;
  color:#17212b;
  font-size:10px;
  font-weight:950;
  box-shadow:0 2px 8px rgba(233,185,73,.28);
}

.filter-panel{
  position:fixed;
  left:12px;
  right:12px;
  bottom:calc(66px + var(--safe-bottom));
  z-index:35;
  max-height:min(78vh,680px);
  overflow:auto;
  padding:20px;
  border-radius:22px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(15,36,61,.08);
  box-shadow:0 24px 70px rgba(11,31,51,.28);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.filter-panel[hidden]{
  display:none;
}

.filter-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.filter-eyebrow{
  margin:0 0 4px;
  color:#ef111d;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.filter-panel-head strong{
  display:block;
  color:var(--navy);
  font-size:20px;
  letter-spacing:-.02em;
}

.map-search-field{
  display:block;
  margin-bottom:18px;
}

.map-search-field > span{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.map-search-field input,
.map-filter-select{
  width:100%;
  min-height:44px;
  padding:0 13px;
  border:1px solid #dce4ec;
  border-radius:12px;
  background:#fff;
  color:var(--navy);
  font:700 13px/1 Inter,system-ui,sans-serif;
  outline:none;
}

.map-search-field input:focus,
.map-filter-select:focus{
  border-color:#102c5c;
  box-shadow:0 0 0 3px rgba(16,44,92,.08);
}

.filter-section{
  padding:15px 0;
  border-top:1px solid #edf1f5;
}

.filter-section-title{
  margin-bottom:10px;
  color:var(--navy);
  font-size:12px;
  font-weight:900;
}

.filter-choice-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.filter-choice{
  min-height:36px;
  padding:0 13px;
  border:1px solid #dce4ec;
  border-radius:10px;
  background:#f8fafc;
  color:#526174;
  cursor:pointer;
  font:800 12px/1 Inter,system-ui,sans-serif;
}

.filter-choice.is-selected{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
}

.filter-toggle{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:36px;
  color:#334155;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.filter-toggle input{
  width:17px;
  height:17px;
  accent-color:#102c5c;
}

.filter-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px 12px;
}

.filter-panel-actions{
  display:flex;
  gap:9px;
  padding-top:15px;
  border-top:1px solid #edf1f5;
}

.filter-panel-actions button{
  flex:1;
  min-height:44px;
}

.sheet-distance{
  margin:4px 0 10px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
}

.sheet-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:13px;
}

.sheet-meta-item{
  padding:7px 9px;
  border-radius:10px;
  background:#f3f6fa;
  color:#526174;
  font-size:.72rem;
  font-weight:800;
}

.sheet-services{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}

.sheet-service{
  padding:6px 9px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:.72rem;
  font-weight:800;
}

.sheet-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}

.sheet-action{
  display:block;
  padding:11px 10px;
  border-radius:12px;
  text-align:center;
  text-decoration:none;
  font-size:.78rem;
  font-weight:900;
}

.sheet-action.primary{
  background:var(--navy);
  color:#fff;
}

.sheet-action.secondary{
  background:#f1f5f9;
  color:var(--navy);
}

.drawer-head-sub{
  display:block;
  max-width:220px;
  margin-top:3px;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.drawer-nav{
  display:grid;
  gap:14px;
}

.drawer-group{
  display:grid;
  gap:4px;
}

.drawer-group-title{
  margin:0 10px 4px;
  color:#94a3b8;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.drawer-nav a,
.drawer-submenu summary{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:43px;
  padding:10px;
  border-radius:12px;
  color:var(--navy);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.drawer-nav a:hover,
.drawer-submenu summary:hover{
  background:#f3f6fa;
}

.drawer-link-icon{
  width:28px;
  text-align:center;
  font-size:15px;
}

.drawer-submenu{
  border-radius:12px;
}

.drawer-submenu summary{
  list-style:none;
}

.drawer-submenu summary::-webkit-details-marker{
  display:none;
}

.drawer-summary-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
}

.drawer-submenu summary::after{
  content:'›';
  color:#94a3b8;
  font-size:18px;
  transition:transform .15s ease;
}

.drawer-submenu[open] summary::after{
  transform:rotate(90deg);
}

.drawer-submenu-links{
  display:grid;
  gap:2px;
  margin:1px 0 3px 38px;
}

.drawer-submenu-links a{
  min-height:36px;
  padding:8px 10px;
  color:#526174;
  font-size:12px;
  font-weight:700;
}

.drawer-item-soon{
  margin-left:auto;
  padding:3px 6px;
  border-radius:999px;
  background:#f1f5f9;
  color:#94a3b8;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
}

.drawer-support-link{
  background:#fff6dc !important;
  color:#8a5a00 !important;
  border:1px solid #f0d98a;
}
.drawer-support-link:hover{
  background:#ffefbd !important;
}
.drawer-group-end{
  padding-top:8px;
  border-top:1px solid #edf1f5;
}

@media (min-width:760px){
  .filter-panel{
    left:auto;
    width:min(520px,calc(100vw - 24px));
  }

  .map-controls{
    left:50%;
    right:auto;
    width:min(820px,calc(100vw - 24px));
    transform:translateX(-50%);
  }

  .filter-panel{
    right:calc(50% - min(410px,calc((100vw - 24px)/2)));
  }
}

@media (max-width:600px){
  .filter-panel{
    bottom:calc(62px + var(--safe-bottom));
    max-height:72vh;
    padding:17px;
    border-radius:20px;
  }

  .filter-check-grid{
    grid-template-columns:1fr;
  }

  .fuel-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sheet{
    bottom:calc(72px + var(--safe-bottom));
    width:calc(100vw - 16px);
    max-height:58vh;
    padding:7px 14px 14px;
    border-radius:20px;
  }

  .sheet-brand > div > strong{
    font-size:15px;
  }

  .sheet-addr{
    font-size:.78rem;
  }

  .sheet-actions{
    grid-template-columns:1fr;
  }
  .sheet-info-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sheet-prices{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sheet-info-card-compact{
    grid-column:1 / -1;
  }

}


/* ============================================================
   FAVORIS
   ============================================================ */
.pump-pin.is-favorite{
  background:linear-gradient(135deg,#fffdf7 0%,#fff7df 58%,#f5e5b3 100%);
  color:#5b4817;
  border:1px solid rgba(202,157,48,.52);
  box-shadow:0 9px 24px rgba(80,60,20,.20), inset 0 1px 0 rgba(255,255,255,.95);
}
.pump-pin.is-favorite::after{
  border-top-color:#f5e5b3;
}
.pump-favorite{
  color:#fff;
  font-size:13px;
  line-height:1;
  margin-right:2px;
}
.pump-pin.is-favorite .pump-favorite{
  color:#b8861b;
  text-shadow:0 1px 1px rgba(255,255,255,.7);
}
/* ============================================================
   STATION LA MOINS CHÈRE + FAVORI
   Le vert de surbrillance reste prioritaire sur l'or du favori,
   tout en conservant l'étoile dorée.
   ============================================================ */
.pump-pin.is-favorite.is-cheapest-focus{
  background:linear-gradient(135deg,#15803d,#16a34a);
  color:#fff;
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 12px 30px rgba(22,163,74,.38),0 0 0 5px rgba(22,163,74,.18);
}
.pump-pin.is-favorite.is-cheapest-focus::after{
  border-top-color:#16a34a;
}
.pump-pin.is-favorite.is-cheapest-focus .pump-price{
  color:#fff;
  font-weight:950;
}
.pump-pin.is-favorite.is-cheapest-focus .pump-favorite{
  color:#f6c945;
  text-shadow:0 1px 2px rgba(0,0,0,.2);
}

.sheet-brand{position:relative;padding-right:48px;}
.sheet-favorite{
  position:absolute;
  top:0;
  right:0;
  width:42px;
  height:42px;
  border:1px solid #d7dee7;
  border-radius:12px;
  background:#fff;
  color:#9aa5b1;
  cursor:pointer;
  font-size:23px;
  line-height:1;
}
.sheet-favorite.is-favorite{
  background:linear-gradient(135deg,#fffdf7,#fff4d0);
  border-color:#e2c778;
  color:#b8861b;
  box-shadow:0 5px 14px rgba(184,134,27,.16);
}
.sheet-favorite-link{
  display:grid;
  place-items:center;
  text-decoration:none;
}
.sheet-favorite-link:hover{
  background:#f7f9fb;
  color:var(--navy);
}
.sheet-favorite-link:focus-visible,
.sheet-favorite:focus-visible{
  outline:3px solid rgba(37,99,235,.22);
  outline-offset:2px;
}

.station-favorite{
  float:right;
  width:36px;
  height:36px;
  margin-left:10px;
  border:1px solid #dbe3eb;
  border-radius:11px;
  background:#fff;
  color:#a5afbb;
  cursor:pointer;
  font-size:19px;
  line-height:1;
  box-shadow:0 3px 10px rgba(11,31,51,.07);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.station-favorite:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(11,31,51,.11);}
.station-favorite.is-favorite{
  background:linear-gradient(135deg,#fffdf7,#fff4d0);
  border-color:#e2c778;
  color:#b8861b;
  box-shadow:0 4px 12px rgba(184,134,27,.14);
}
.station-favorite:disabled,.sheet-favorite:disabled{opacity:.6;cursor:wait;}


/* First-visit fuel selection */
.fuel-choice{
  position:fixed;inset:0;z-index:1000;display:grid;place-items:center;
  padding:18px;background:rgba(7,24,42,.60);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.fuel-choice[hidden]{display:none}
.fuel-choice-card{
  width:min(820px,100%);padding:34px;border:1px solid rgba(255,255,255,.88);
  border-radius:30px;background:rgba(255,255,255,.98);
  box-shadow:0 30px 90px rgba(4,18,34,.30);
}
.fuel-choice-head{display:flex;align-items:center;gap:13px;margin-bottom:18px}
.fuel-choice-mark{
  width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;
  border-radius:15px;background:#0b1f33;color:#fff;font-size:22px;
  box-shadow:0 10px 24px rgba(11,31,51,.16);
}
.fuel-choice-card .eyebrow{
  margin:0 0 3px;color:#94a3b8;font-size:11px;font-weight:950;letter-spacing:.14em
}
.fuel-choice-kicker{color:#64748b;font-size:10px;font-weight:900;letter-spacing:.08em}
.fuel-choice-card h2{
  margin:0;color:#0b1f33;font-size:clamp(31px,5vw,46px);line-height:1.04;letter-spacing:-.04em
}
.fuel-choice-intro{
  max-width:650px;margin:14px 0 5px;color:#526174;line-height:1.5;font-size:17px
}
.fuel-choice-memory{margin:0 0 22px;color:#94a3b8;font-size:14px;line-height:1.4}
.fuel-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fuel-choice-item{
  position:relative;appearance:none;width:100%;min-height:132px;padding:16px 18px;
  border:1px solid color-mix(in srgb,var(--fuel-color) 55%,#dbe3eb);
  border-radius:22px;display:flex;align-items:center;gap:15px;text-align:left;
  cursor:pointer;font:inherit;background:var(--fuel-soft);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease
}
.fuel-choice-item:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(11,31,51,.10);border-color:var(--fuel-color)}
.fuel-choice-item:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(11,31,51,.12),0 12px 28px rgba(11,31,51,.10)}
.fuel-choice-icon{
  flex:0 0 66px;width:66px;height:66px;border-radius:18px;display:grid;place-items:center;
  padding:7px;text-align:center;font-weight:950;font-size:15px;box-shadow:0 6px 16px rgba(11,31,51,.10)
}
.fuel-choice-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.fuel-choice-copy strong{color:#0b1f33;font-size:22px;line-height:1.05;letter-spacing:-.025em}
.fuel-choice-copy small{color:#64748b;font-size:14px;line-height:1.2;font-weight:700}
.fuel-choice-arrow{
  margin-left:auto;flex:0 0 auto;color:#64748b;font-size:22px;font-weight:500;transition:transform .15s ease,color .15s ease
}
.fuel-choice-item:hover .fuel-choice-arrow{transform:translateX(3px);color:#0b1f33}
@media(max-width:620px){
  .fuel-choice{padding:10px}
  .fuel-choice-card{padding:22px 18px;border-radius:24px}
  .fuel-choice-head{margin-bottom:15px}
  .fuel-choice-mark{width:44px;height:44px;flex-basis:44px;border-radius:13px;font-size:20px}
  .fuel-choice-card h2{font-size:32px}
  .fuel-choice-intro{font-size:15px;margin-top:11px}
  .fuel-choice-memory{font-size:13px;margin-bottom:18px}
  .fuel-choice-grid{gap:10px}
  .fuel-choice-item{min-height:118px;padding:12px 11px;gap:10px;border-radius:19px}
  .fuel-choice-icon{flex-basis:56px;width:56px;height:56px;border-radius:15px;font-size:13px}
  .fuel-choice-copy strong{font-size:19px}
  .fuel-choice-copy small{font-size:12px}
  .fuel-choice-arrow{font-size:18px}
}
@media(max-width:380px){
  .fuel-choice-card{padding:18px 13px}
  .fuel-choice-card h2{font-size:28px}
  .fuel-choice-grid{gap:8px}
  .fuel-choice-item{min-height:108px;padding:10px 8px;gap:8px}
  .fuel-choice-icon{flex-basis:48px;width:48px;height:48px;border-radius:13px;font-size:11px}
  .fuel-choice-copy strong{font-size:17px}
  .fuel-choice-copy small{font-size:11px}
  .fuel-choice-arrow{font-size:16px}
}
/* PWA install prompt */
.pwa-install-prompt{position:fixed;left:16px;right:16px;bottom:calc(74px + var(--safe-bottom));z-index:1100;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid rgba(255,255,255,.75);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 18px 45px rgba(11,31,51,.22);backdrop-filter:blur(14px)}
.pwa-install-copy{display:flex;align-items:center;gap:10px;min-width:0}
.pwa-install-copy>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.pwa-install-copy strong{color:var(--navy);font-size:14px;font-weight:900}
.pwa-install-copy span{color:var(--muted);font-size:11px;line-height:1.3}
.pwa-install-badge{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#0b1f33;font-size:19px}
.pwa-install-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.pwa-install-button{min-height:38px;padding:0 13px;border:0;border-radius:11px;background:var(--navy);color:#fff;cursor:pointer;font:800 12px/1 Inter,system-ui,sans-serif}
.pwa-install-dismiss{width:32px;height:32px;padding:0;border:0;border-radius:9px;background:#f1f5f9;color:#64748b;cursor:pointer;font-size:20px;line-height:1}
.pwa-install-help{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px;background:rgba(11,31,51,.5);backdrop-filter:blur(8px)}
.pwa-install-help-card{position:relative;width:min(560px,100%);padding:30px 26px 24px;border-radius:26px;background:#fff;box-shadow:0 24px 70px rgba(11,31,51,.28)}
.pwa-install-help-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:10px;background:#f1f5f9;color:#64748b;cursor:pointer;font-size:22px}
.pwa-install-icon{width:52px;height:52px;display:grid;place-items:center;margin-bottom:13px;border-radius:15px;background:#0b1f33;font-size:25px}
.pwa-install-help-card h2{margin:0;color:var(--navy);font-size:clamp(25px,6vw,34px);line-height:1.08;letter-spacing:-.03em}
.pwa-install-help-card>.muted{margin:14px 0 18px;line-height:1.5}
.pwa-install-steps{display:grid;gap:11px;margin:0 0 20px;padding-left:24px;color:#475569;font-size:14px;line-height:1.45}
.pwa-install-steps strong{color:var(--navy)}
.pwa-install-help-ok{width:100%;min-height:46px}
@media(max-width:600px){.pwa-install-prompt{left:10px;right:10px;bottom:calc(74px + var(--safe-bottom));padding:11px}.pwa-install-copy span{font-size:10px}.pwa-install-button{padding:0 10px;font-size:11px}.pwa-install-badge{flex-basis:36px;width:36px;height:36px}}
.donation-card{
  width:min(980px,calc(100% - 32px)) !important;
  max-width:none;
  margin:32px auto 64px;
}
.donation-why{
  margin:28px 0 30px;
  padding-top:24px;
  border-top:1px solid #edf1f6;
}
.donation-why h2{
  margin:0 0 16px;
  color:#102c5c;
  font-size:22px;
  letter-spacing:-.02em;
}
.donation-why-list{
  display:grid;
  gap:10px;
}
.donation-why-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border:1px solid #e4ebf3;
  border-radius:14px;
  background:#f9fbfd;
}
.donation-why-icon{
  flex:0 0 26px;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e9b949;
  color:#17212b;
  font-size:13px;
  font-weight:950;
  line-height:1;
  margin-top:1px;
}
.donation-why-item p{
  flex:1;
  min-width:0;
  margin:2px 0 0;
  color:#475569;
  font-size:14px;
  line-height:1.55;
}
.donation-amount-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.donation-amount-wrap input{
  padding-right:48px;
}
.donation-amount-wrap span{
  position:absolute;
  right:16px;
  color:#64748b;
  font-weight:800;
}
.donation-submit{
  width:100%;
  margin-top:16px;
}


/* Station la moins chère autour de l'utilisateur */
.cheapest-card{
  position:fixed;
  top:calc(80px + var(--safe-top));
  left:12px;
  z-index:19;
  display:flex;
  align-items:center;
  gap:10px;
  width:min(380px,calc(100vw - 24px));
  min-height:58px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:16px;
  background:rgba(255,255,255,.95);
  color:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(11,31,51,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  appearance:none;
  -webkit-appearance:none;
  transition:transform .15s ease,box-shadow .15s ease;
}
.cheapest-card:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 34px rgba(11,31,51,.2);
}
.cheapest-card:active{
  transform:scale(.99);
}
.cheapest-card:focus-visible{
  outline:3px solid rgba(16,44,92,.18);
  outline-offset:2px;
}
.cheapest-card[hidden]{display:none}
.cheapest-card-icon{
  position:relative;
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(145deg,#ffe98a,#e9b949);
  color:#17212b;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 5px 12px rgba(184,134,27,.18);
}
.cheapest-card-icon svg{display:block}
.cheapest-card-content{min-width:0;flex:1}
.cheapest-card-label{
  color:#64748b;
  font-size:9px;
  line-height:1.1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.cheapest-card-name{
  margin-top:2px;
  color:var(--navy);
  font-size:12px;
  line-height:1.15;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cheapest-card-meta{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  margin-top:2px;
  color:#64748b;
  font-size:9px;
  line-height:1.15;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cheapest-card-price{
  flex:0 0 auto;
  color:#128a4b;
  font-size:16px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
}
@media(max-width:600px){
  .cheapest-card{
    left:10px;
    width:min(350px,calc(100vw - 20px));
    min-height:54px;
    padding:7px 9px;
    gap:9px;
    border-radius:14px;
  }
  .cheapest-card-icon{
    flex-basis:32px;
    width:32px;
    height:32px;
    border-radius:10px;
  }
  .cheapest-card-label{font-size:8px}
  .cheapest-card-name{font-size:11px}
  .cheapest-card-meta{font-size:8px}
  .cheapest-card-price{font-size:15px}
}


/* ============================================================
   FAVORI INVITÉ — CONVERSION / AUTHENTIFICATION
   ============================================================ */
.favorite-auth-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(7,24,42,.62);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.favorite-auth-modal[hidden]{display:none}
.favorite-auth-card{
  position:relative;
  width:min(520px,100%);
  padding:30px 28px 24px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:28px;
  background:rgba(255,255,255,.99);
  box-shadow:0 30px 90px rgba(4,18,34,.32);
  text-align:center;
}
.favorite-auth-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  color:#64748b;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.favorite-auth-close:hover{background:#f8fafc;color:var(--navy)}
.favorite-auth-close:focus-visible{
  outline:3px solid rgba(37,99,235,.18);
  outline-offset:2px;
}
.favorite-auth-icon{
  width:58px;
  height:58px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(135deg,#fffdf7,#fff1c5);
  border:1px solid #ead28d;
  color:#b8861b;
  font-size:30px;
  box-shadow:0 10px 24px rgba(184,134,27,.16);
}
.favorite-auth-kicker{
  margin:0 0 5px;
  color:#94a3b8;
  font-size:10px;
  font-weight:950;
  letter-spacing:.14em;
}
.favorite-auth-card h2{
  margin:0;
  color:#0b1f33;
  font-size:clamp(26px,5vw,34px);
  line-height:1.08;
  letter-spacing:-.035em;
}
.favorite-auth-station{
  margin:8px 0 0;
  color:#b8861b;
  font-size:14px;
  font-weight:900;
}
.favorite-auth-intro{
  max-width:430px;
  margin:13px auto 0;
  color:#526174;
  font-size:15px;
  line-height:1.5;
}
.favorite-auth-benefit{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:17px auto 20px;
  max-width:430px;
  padding:11px 13px;
  border:1px solid #e5eaf0;
  border-radius:14px;
  background:#f7f9fb;
  color:#435266;
  text-align:left;
  font-size:12px;
  line-height:1.45;
  font-weight:750;
}
.favorite-auth-benefit > span:first-child{
  flex:0 0 23px;
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e9f7ef;
  color:#128a4b;
  font-size:12px;
  font-weight:950;
}
.favorite-auth-actions{
  display:grid;
  gap:9px;
}
.favorite-auth-primary,
.favorite-auth-secondary,
.favorite-auth-later{
  min-height:48px;
  padding:12px 16px;
  border-radius:14px;
  font:inherit;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.favorite-auth-primary{
  background:var(--navy);
  color:#fff;
  box-shadow:0 10px 22px rgba(11,31,51,.16);
}
.favorite-auth-primary:hover{background:#163d6f}
.favorite-auth-secondary{
  border:1px solid #dbe3eb;
  background:#fff;
  color:var(--navy);
}
.favorite-auth-secondary:hover{background:#f7f9fb}
.favorite-auth-later{
  border:0;
  background:transparent;
  color:#94a3b8;
}
.favorite-auth-later:hover{color:#64748b}
.favorite-auth-primary:focus-visible,
.favorite-auth-secondary:focus-visible,
.favorite-auth-later:focus-visible{
  outline:3px solid rgba(37,99,235,.18);
  outline-offset:2px;
}
@media(max-width:600px){
  .favorite-auth-modal{padding:10px}
  .favorite-auth-card{
    padding:25px 17px 18px;
    border-radius:22px;
  }
  .favorite-auth-card h2{font-size:27px}
  .favorite-auth-intro{font-size:14px}
}


/* ============================================================
   NATIVE ANDROID NAVIGATION
   ============================================================ */

.mapompe-native-nav{
    display:none;
}

html.is-native-app .mapompe-native-nav{
    position:fixed;
    left:8px;
    right:8px;
    bottom:8px;
    bottom:calc(8px + var(--safe-bottom));
    z-index:2147483000;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:4px;
    padding:6px;
    border:1px solid rgba(15,36,61,.08);
    border-radius:18px;
    background:rgba(255,255,255,.96);
    box-shadow:0 12px 36px rgba(11,31,51,.22);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

html.is-native-app .mapompe-native-nav-item{
    min-width:0;
    min-height:54px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:5px 4px;
    border-radius:13px;
    color:#64748b;
    text-decoration:none;
    font-weight:800;
    -webkit-tap-highlight-color:transparent;
}

html.is-native-app .mapompe-native-nav-item.is-active{
    background:#102c5c;
    color:#fff;
}

html.is-native-app .mapompe-native-nav-icon{
    display:grid;
    place-items:center;
    width:25px;
    height:22px;
    font-size:17px;
    line-height:1;
}

html.is-native-app .mapompe-native-nav-label{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
    line-height:1.1;
}

html.is-native-app body.map-app .map-controls{
    bottom:calc(82px + var(--safe-bottom));
}

html.is-native-app body.map-app .filter-panel{
    bottom:calc(132px + var(--safe-bottom));
}

html.is-native-app body.map-app .sheet{
    bottom:calc(82px + var(--safe-bottom));
    max-height:min(62vh,560px);
}

html.is-native-app body.subpage-body{
    padding-bottom:88px;
}

html.is-native-app .account-shell,
html.is-native-app .notification-center-shell,
html.is-native-app .page-shell,
html.is-native-app .station-shell{
    padding-bottom:24px;
}

@media (max-width:380px){
    html.is-native-app .mapompe-native-nav{
        left:6px;
        right:6px;
        gap:2px;
        padding:5px;
    }

    html.is-native-app .mapompe-native-nav-item{
        min-height:52px;
    }

    html.is-native-app .mapompe-native-nav-label{
        font-size:9px;
    }
}


/* Badge 24H sur les pins */
.pump-pin{position:relative}
.pump-24h{position:absolute;top:-6px;right:-5px;z-index:3;display:grid;place-items:center;min-width:24px;height:16px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#fff;color:#111;box-shadow:none;font:900 8px/1 Inter,system-ui,sans-serif;letter-spacing:.02em;pointer-events:none}


/* Filtre autoroute temporairement masqué */
#highwayOnly{display:none!important}
#highwayOnly + span{display:none!important}


/* Position du bouton filtres sur desktop : toujours à gauche */
@media (min-width: 769px) {
  .map-controls {
    left: 16px;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}


/* Explicit, accessible analytics-consent prompt */
.mp-cookie-consent{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:2147483200;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  max-width:980px;
  margin:0 auto;
  padding:16px 18px;
  border:1px solid rgba(15,36,61,.14);
  border-radius:16px;
  background:rgba(255,255,255,.98);
  color:#10233f;
  box-shadow:0 14px 40px rgba(11,31,51,.24);
  font:500 13px/1.5 Inter,system-ui,sans-serif;
}
.mp-cookie-consent-message{margin:0;flex:1 1 auto;min-width:180px}
.mp-cookie-consent-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.mp-cookie-consent-actions button{
  min-height:40px;
  padding:9px 12px;
  border-radius:10px;
  font:800 12px/1.25 Inter,system-ui,sans-serif;
  cursor:pointer;
}
.mp-cookie-consent-accept{border:1px solid #00824a;background:#00824a;color:#fff}
.mp-cookie-consent-reject{border:1px solid #cbd5e1;background:#fff;color:#10233f}
.mp-cookie-consent-actions a{padding:8px 4px;color:#334e68;font-size:12px;font-weight:800;white-space:nowrap}
@media(max-width:680px){
  .mp-cookie-consent{
    left:8px;right:8px;bottom:8px;
    display:block;
    max-height:calc(75dvh - env(safe-area-inset-bottom,0px));
    overflow:auto;
    padding:14px;
    border-radius:15px;
  }
  .mp-cookie-consent-message{min-width:0;margin-bottom:12px}
  .mp-cookie-consent-actions{justify-content:flex-start}
  .mp-cookie-consent-actions button{flex:1 1 42%;min-height:44px}
}
html.is-native-app .mp-cookie-consent{
  bottom:calc(88px + var(--safe-bottom));
}
