:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#eef7ff;background:#030c16;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#123859,#020a13 65%);min-height:100vh}.app{max-width:660px;min-height:100vh;margin:auto;padding:0 14px 100px;background:linear-gradient(135deg,#071727f0,#020b14f5);box-shadow:0 0 60px #0008}.hero{height:206px;position:relative;overflow:hidden;margin:0 -14px 12px;background:radial-gradient(ellipse at 50% 40%,#144477,#04111f 70%)}.flag{position:absolute;inset:0;display:flex;justify-content:center;transform:rotate(-8deg) scale(1.14);opacity:.72;filter:drop-shadow(0 0 16px #2482bb)}.flag i{width:26%;height:150px;display:block;animation:wave 3.5s ease-in-out infinite alternate;clip-path:polygon(0 0,100% 4%,96% 100%,0 94%)}.flag i:nth-child(1){background:linear-gradient(90deg,#001c66,#1768c4,#061d66)}.flag i:nth-child(2){background:linear-gradient(90deg,#a3c8e5,#fff,#b9d9eb);animation-delay:-.3s}.flag i:nth-child(3){background:linear-gradient(90deg,#ac0923,#f24b5b,#8c081e);animation-delay:-.6s}@keyframes wave{from{transform:skewY(-4deg) translateY(-5px)}to{transform:skewY(5deg) translateY(7px)}}.hero-content{position:absolute;inset:10px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-shadow:0 3px 5px #000,0 0 16px #59cfff}.pump{font-size:36px;filter:drop-shadow(0 0 8px #21ef77)}h1{font-size:clamp(29px,8vw,43px);font-weight:950;font-style:italic;line-height:1.03;letter-spacing:1px;margin:5px 0;color:#fff}h1 span{color:#24fa6b}.tricolor{height:3px;width:160px;background:linear-gradient(90deg,#0665ff 33%,white 33% 66%,#f12444 66%);box-shadow:0 0 12px #00baff}.panel{border:1px solid #315a78;background:linear-gradient(130deg,#0c2236,#071422);border-radius:19px;box-shadow:inset 0 0 12px #1b4e7020}.position{display:flex;justify-content:space-between;align-items:center;padding:14px;gap:8px}.position-left{display:flex;align-items:center;gap:12px;min-width:0}.position-left strong{font-size:15px}.position-left small{display:block;color:#9eb1c5;font-size:11px;margin-top:4px;overflow-wrap:anywhere}.pin{font-size:29px;color:#25f16c;text-shadow:0 0 12px #0bff72}.gps{border:1px solid #09c760;background:#06221a;color:#2df779;padding:9px 12px;border-radius:17px;font-weight:800;cursor:pointer}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 22px}.filters label{padding:12px 11px;color:#8edaff;font-size:13px;font-weight:700}.filters label span{display:inline-block;margin-bottom:12px}.filters select{display:block;width:100%;background:#071321;border:1px solid #26465e;border-radius:11px;color:white;padding:12px 8px;font-size:16px;font-weight:700}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:12px}.list-heading h2{font-size:19px;color:#b0eaff;margin:0}.list-heading span{font-size:12px;color:#a8b8c8}.stations{display:grid;gap:9px}.station{border:1px solid #305774;background:linear-gradient(120deg,#0a1b2d,#06121f);border-radius:17px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.station h3{margin:0 0 5px;font-size:16px}.station .distance{font-size:13px;color:#e7f2ff}.station .address,.station .updated{color:#9aafc3;font-size:11px;margin-top:5px}.station-right{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:105px}.price{text-align:center;font-size:22px;font-weight:850;border-radius:12px;padding:7px 8px;background:#0b1926;color:#fff;white-space:nowrap}.price.min{color:#28f46c;background:#04231a}.price.max{color:#ff575b;background:#290d1b}.price.nearmax{color:#ffa348;background:#281a10}.price small{display:block;font-size:10px;font-weight:400;color:#9bafbe}.actions{display:flex;gap:5px}.actions button{background:#0a2941;border:1px solid #3a83b6;border-radius:10px;color:#bfe6ff;padding:8px 10px;cursor:pointer;font-size:12px;flex:1}.favorite{background:none;border:0;color:#8b9fb3;font-size:20px;cursor:pointer;padding:0 5px}.favorite.saved{color:#f9d545}.station-title{display:flex;justify-content:space-between;gap:5px}.message{padding:16px;text-align:center;color:#a9c7db;border:1px dashed #34536c;border-radius:15px;margin-bottom:12px}.message:empty{display:none}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:660px;width:100%;display:flex;justify-content:space-around;background:#030d17f5;border-top:1px solid #376080;border-radius:25px 25px 0 0;padding:13px 5px max(13px,env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.bottom button{color:#99b0c7;background:none;border:0;font-size:22px;cursor:pointer}.bottom button small{display:block;font-size:11px;margin-top:3px}.bottom button.active{color:#27f46b}dialog{width:min(92vw,440px);border:1px solid #4384a7;border-radius:18px;background:#071827;color:#f4f9ff;padding:24px}dialog::backdrop{background:#000b}.close{float:right;background:none;border:0;color:white;font-size:20px;cursor:pointer}dialog a{display:inline-block;background:#07446a;color:#fff;padding:12px;border-radius:10px;text-decoration:none;margin-top:10px}@media(max-width:370px){.station{grid-template-columns:minmax(0,1fr) 95px}.price{font-size:19px}.filters label{font-size:11px}.list-heading h2{font-size:17px}}

/* V3 : identite visuelle des enseignes, sans modifier les cartes existantes */
.brand-heading{display:flex;align-items:center;gap:9px;min-width:0}.brand-heading h3{overflow-wrap:anywhere}.brand-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:10px;background:linear-gradient(140deg,#14547b,#072238);border:1px solid #3984a8;color:#e5faff;font-size:13px;font-weight:900;box-shadow:inset 0 0 8px #5cc5ff22}.brand-heading h3{margin:0}dialog input{display:block;width:100%;margin-top:7px;background:#0a273c;border:1px solid #3a83b6;color:white;border-radius:8px;padding:10px}#saveBrand{background:#075b78;border:1px solid #56b4da;border-radius:8px;color:white;padding:9px 12px;cursor:pointer}

/* Logos d'enseignes, sans modifier les cartes ni leur mise en page */
.brand-icon{position:relative;overflow:hidden}
.brand-logo{width:27px;height:27px;object-fit:contain;display:block;flex:none}
.brand-fallback.logo-loaded{display:none}
.brand-logo + .brand-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0b3049}
.brand-logo + .brand-fallback.logo-loaded{display:none}

/* Logos lisibles sur fond clair, sans changer le reste de l’interface */
.brand-icon:has(.brand-logo){background:#fff;border:1px solid #d9e7f2;box-shadow:0 2px 8px #0003}
.brand-icon .brand-logo{width:29px;height:29px;object-fit:contain}
.brand-icon .brand-logo + .brand-fallback{background:#fff;color:#16415d}

.price.unavailable{font-size:13px;color:#b8c9d8;white-space:normal;min-width:105px}

/* V6 : logo TotalEnergies agrandi dans son cadre, sans modifier les cartes */
.brand-icon:has(.brand-logo[src*="TotalEnergies"]) { width:42px;height:42px;border-radius:10px;overflow:hidden;background:#fff; }
.brand-icon .brand-logo[src*="TotalEnergies"] {width:40px;height:40px;max-width:none;max-height:none;object-fit:contain;transform:scale(1.55);transform-origin:center; }

/* Logo TotalEnergies : symbole multicolore visible, sans découpe ni zoom artificiel. */
.brand-icon:has(.brand-logo-total){width:42px;height:42px;background:#fff;border:1px solid #d9e7f2;overflow:hidden}
.brand-icon .brand-logo-total{width:39px;height:35px;max-width:none;max-height:none;object-fit:contain;transform:none}

.travel-tools{padding:12px;margin-top:12px}.mode-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.mode-buttons button{font-size:12px;padding:10px 4px;border:1px solid #315a78;background:#081929;color:#b8d9ed;border-radius:10px;cursor:pointer}.mode-buttons button.active{color:#30f378;border-color:#24bd72;background:#092b27}.mode-fields{margin-top:12px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px}.mode-fields[hidden]{display:none}.mode-fields label{font-size:12px;color:#9cdbff;font-weight:700}.mode-fields input,.mode-fields select{display:block;width:100%;margin-top:5px;background:#061321;border:1px solid #315a78;color:white;border-radius:10px;padding:11px;font-size:15px}.mode-fields button{background:#0b4768;border:1px solid #42a8db;color:white;border-radius:10px;padding:12px 10px;cursor:pointer;font-weight:700}.mode-fields small{grid-column:1/-1;color:#99b7c9}#routeTools{grid-template-columns:1fr 1fr}#routeTools label:nth-child(3),#routeTools button{grid-column:1/-1}.route-note{font-size:12px;color:#53d4fb;margin-top:4px}@media(max-width:400px){.mode-buttons button{font-size:10px}}

.search-title{font-weight:800;color:#b6eaff;font-size:14px}.search-hint{display:block;color:#9eb7c8;font-size:11px;margin-top:8px}#routeTools[hidden]{display:none}#routeTools .mode-fields{grid-template-columns:1fr 1fr}#routeTools .mode-fields label:nth-child(3),#routeTools .mode-fields button,#routeTools .mode-fields small{grid-column:1/-1}

/* Navigation quatre modes et calculateur */
[hidden]{display:none!important}
.bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:10px 5px max(10px,env(safe-area-inset-bottom))}
.bottom button{font-size:20px;min-width:0;padding:7px 1px;border-radius:12px}
.bottom button small{font-size:10px;white-space:nowrap}
.bottom button.active{background:#153e55;border:1px solid #2cb9e4}
.actions{flex-wrap:wrap}.actions button{min-width:52px;padding:7px 5px}.actions button:disabled{opacity:.55}
.calculator-panel{padding:12px 0 22px}.calc-title{display:flex;justify-content:center;gap:0;margin:6px 0 12px;font-size:clamp(24px,7vw,32px);font-weight:900;letter-spacing:.3px}
.calc-title span:nth-child(1){color:#299bff}.calc-title span:nth-child(2){color:#fff}.calc-title span:nth-child(3){color:#ef4444}
.calc-count{text-align:right;font-size:12px;color:#9cb2c3;margin:10px 0 18px}
.calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.calc-fields label{font-size:12px;color:#bdcad5;font-weight:700}
.calc-fields input{display:block;width:100%;margin-top:7px;background:#071827;border:1px solid #315a78;border-radius:20px;color:white;padding:12px;font-size:16px}
.calc-selection{display:flex;align-items:center;justify-content:space-between;margin:16px 0 10px;gap:6px;font-size:13px}
.calc-selection button{background:transparent;border:1px solid #27445a;border-radius:18px;color:#b9c7d3;padding:8px;cursor:pointer}.calc-selection button:disabled{opacity:.5}
.calc-stations{display:grid;gap:10px}.calc-station{border:1px solid #315a78;background:#0d2537;border-radius:13px;padding:12px}
.calc-station label{font-size:14px}.calc-station-line{display:flex;justify-content:space-between;align-items:end;gap:8px;margin-top:12px}
.calc-station-line small{display:block;color:#b5c5d4;font-size:12px;margin-top:4px}
.calc-amount{font-size:21px;font-weight:850;text-align:right;white-space:nowrap;color:white}.calc-amount.min{color:#28f46c}.calc-amount.max{color:#ff575b}.calc-amount.nearmax{color:#ffa348}
.calc-trip{font-size:11px;color:#ffb454;margin-top:4px;font-weight:700}.calc-empty{color:#a4c2d7;text-align:center;padding:15px}
.calc-compare{background:#050505;border:1px solid #303030;border-radius:16px;padding:13px;margin-top:12px;font-size:14px}
.calc-compare>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0 8px}.calc-compare b{color:#4ade80;white-space:nowrap;font-size:16px;font-weight:900}
.calc-compare small{color:#b7b7b7;font-size:11px}.calc-advice{border:1px solid #315a78;border-radius:16px;padding:13px;margin-top:12px;font-size:14px;min-height:46px}
.calc-advice p{margin:8px 0 0;line-height:1.5}
@media(max-width:390px){.calc-fields label{font-size:11px}.calc-station-line{flex-wrap:wrap}.calc-amount{margin-left:auto}.bottom button small{font-size:9px}}

/* V20 : sélection compacte GPS / code postal, même présentation que la barre d'origine */
.position{gap:10px;padding:16px 14px;min-height:90px}.position .pin{font-size:26px;line-height:1;flex:none}.position-choice{min-width:0;flex:1}.position-modes{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.position-option{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#fff;font-size:14px;font-weight:800}.position-option input{width:18px;height:18px;accent-color:#2df779;cursor:pointer;margin:0}.position-choice>small{display:block;color:#9eb1c5;font-size:12px;margin-top:6px}.position-pills{display:flex;align-items:center;gap:7px;flex:none}.mode-pill{display:inline-flex;align-items:center;justify-content:center;border:1px solid #09c760;background:#06221a;color:#2df779;border-radius:17px;padding:10px 11px;font-size:13px;font-weight:800;min-width:48px}.mode-pill.inactive,.gps.inactive{color:#8b9bab;border-color:#385064;background:#0b1b2a}.quick-postal{display:flex;align-items:center;gap:6px;margin-top:9px}.quick-postal input{width:120px;max-width:100%;background:#071321;color:#fff;border:1px solid #315a78;border-radius:10px;padding:8px;font-size:15px}.quick-postal button{border:1px solid #09c760;border-radius:10px;background:#06221a;color:#2df779;padding:8px 10px;font-weight:800;cursor:pointer}@media(max-width:480px){.position{gap:7px;padding:13px 9px}.position-modes{gap:8px}.position-option{font-size:12px;gap:4px}.position-option input{width:17px;height:17px}.position-pills{gap:4px}.mode-pill,.gps{padding:8px 7px;font-size:12px;min-width:0}.position .pin{font-size:20px}}
.quick-postal[hidden]{display:none!important}

/* V21 : choix de commune intégré, sans doublon */
.commune-choice{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:9px}.commune-choice[hidden]{display:none!important}.commune-choice label{font-size:12px;color:#a6d8ee;width:100%}.commune-choice select{min-width:150px;max-width:100%;flex:1;background:#071321;color:#fff;border:1px solid #315a78;border-radius:10px;padding:9px}.commune-choice button{background:#06221a;color:#2df779;border:1px solid #09c760;border-radius:10px;padding:9px;font-weight:800}

/* V22 */
.sort-panel{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:-2px 0 12px;color:#aee6ff;font-size:13px;font-weight:650}
.sort-panel select{min-width:170px;max-width:65%;background:#091c2d;color:#f2faff;border:1px solid #315a78;border-radius:11px;padding:9px 10px;font:inherit}
.station .updated.fresh{color:#42df85}.station .updated.recent{color:#ffac45}.station .updated.old{color:#ff606a}
.calc-check,#calcAll{appearance:none;-webkit-appearance:none;width:17px;height:17px;border:1.5px solid #7097ad;border-radius:50%;vertical-align:-3px;background:#071b2a;cursor:pointer;position:relative;flex-shrink:0}
.calc-check:checked,#calcAll:checked{border-color:#4ade80;background:#155c42}
.calc-check:checked:after,#calcAll:checked:after{content:'';position:absolute;inset:4px;border-radius:50%;background:#e8fff1}
.bottom{justify-content:space-around}.bottom button{flex:1}

/* V22.1: three centered navigation buttons */
.bottom{display:flex;align-items:stretch;justify-content:center;gap:8px;padding-left:14px;padding-right:14px}
.bottom button{flex:1 1 0;max-width:205px;text-align:center}

.calc-sort-panel{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:10px 0;color:#aee6ff;font-size:13px;font-weight:650}
.calc-sort-panel select{min-width:170px;max-width:65%;background:#091c2d;color:#f2faff;border:1px solid #315a78;border-radius:11px;padding:9px 10px;font:inherit}
