
  :root { --j:#FFCC00; --n:#111111; --nn:#0A0A0A; --g:#4A4A4A; --m:#FF3D9A; --r:#B42318; }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; height: 100%; background: #000; overscroll-behavior: none; }
  body { font-family: Barlow, system-ui, sans-serif; color: var(--n); display: flex; justify-content: center; }
  button { font-family: inherit; cursor: pointer; }
  button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; }
  .cond { font-family: 'Barlow Condensed', sans-serif; }
  #app { position: relative; width: 100%; max-width: 480px; height: 100dvh; min-height: 600px; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
  .ecran { flex: 1; min-height: 0; display: none; flex-direction: column; overflow-y: auto; }
  .ecran.actif { display: flex; }
  /* Barre d'onglets */
  nav#onglets { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--n); height: 68px; }
  nav#onglets button { border: none; background: none; color: #BDBDBD; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 700 14px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .5px; }
  nav#onglets button[aria-current="page"] { color: var(--j); }
  nav#onglets button[aria-current="page"] svg { transform: scale(1.1); }
  /* Verdict */
  .haut { background: var(--j); padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
  .barre { display: flex; justify-content: space-between; align-items: center; }
  .logo { font: 800 24px 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .5px; }
  .puce { border: none; font: 700 15px 'Barlow Condensed', sans-serif; text-transform: uppercase; background: var(--n); color: var(--j); padding: 0 12px; height: 40px; border-radius: 8px; }
  .panneau { border: 4px solid var(--n); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
  .panneau .surtitre { font: 700 22px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .panneau .gros { font: 800 88px 'Barlow Condensed', sans-serif; line-height: .9; letter-spacing: -1px; }
  .panneau .sous { font-size: 15px; font-weight: 500; }
  .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .trio div { background: var(--n); color: #fff; border-radius: 10px; padding: 8px; text-align: center; min-height: 58px; }
  .trio b { display: block; font: 700 22px 'Barlow Condensed', sans-serif; }
  .trio small { font-size: 11px; color: #E6E6E6; }
  .corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
  .station-titre { font-weight: 700; font-size: 17px; }
  .gris { color: var(--g); font-size: 14px; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 10px; }
  .btn-noir { height: 56px; border-radius: 14px; border: 3px solid var(--n); background: var(--n); color: var(--j); display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 22px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .btn-blanc { height: 56px; border-radius: 14px; border: 3px solid var(--n); background: #fff; color: var(--n); display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 20px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .section { font: 700 18px 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 4px 0 0; }
  .liste { display: flex; flex-direction: column; gap: 8px; }
  .ligne-st { width: 100%; height: 64px; border: 2px solid #E5E5E5; background: #fff; border-radius: 12px; padding: 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; align-items: center; text-align: left; color: var(--n); }
  .ligne-st .nom { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ligne-st .meta { font-size: 13px; color: var(--g); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ligne-st .val { font: 700 19px 'Barlow Condensed', sans-serif; text-align: right; white-space: nowrap; }
  .ligne-st.perte { border-color: #F3C7C2; background: #FFF4F2; }
  .ligne-st.perte .val { color: var(--r); }
  .ligne-st.frais { border-color: var(--n); }
  .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; margin-left: 6px; vertical-align: 1px; }
  .simu { background: #F2F2F2; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
  .simu .l { display: flex; justify-content: space-between; align-items: baseline; }
  .simu label { font-weight: 700; font-size: 14px; }
  .simu output { font: 800 20px 'Barlow Condensed', sans-serif; }
  input[type=range] { width: 100%; height: 32px; margin: 0; accent-color: var(--n); }
  .alerte { background: var(--n); color: #fff; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
  .alerte h2 { margin: 0; font: 800 26px 'Barlow Condensed', sans-serif; text-transform: uppercase; line-height: 1; }
  .alerte p { margin: 4px 0 0; font-size: 14px; color: #E6E6E6; }
  .rassure { background: var(--j); border-radius: 12px; padding: 10px 14px; display: flex; align-items: baseline; gap: 10px; color: var(--n); margin: 0 18px; transform: translateY(-10px); }
  .rassure b { font: 800 38px 'Barlow Condensed', sans-serif; line-height: 1; }
  .rassure span { font-size: 14px; font-weight: 600; }
  .neutre { border: 4px solid var(--n); border-radius: 18px; padding: 16px 18px; }
  /* Radar */
  #ecran-radar { background: var(--nn); color: #fff; overflow: hidden; }
  #map { position: relative; flex: 1; min-height: 0; touch-action: none; }
  #overlay { position: absolute; inset: 0; pointer-events: none; }
  .ville { position: absolute; transform: translate(-50%, -50%); font: 600 12px Barlow, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: #BDBDBD; text-shadow: 0 0 4px #000, 0 0 8px #000; white-space: nowrap; }
  .ville.moi { color: #fff; font-weight: 700; }
  .pepite { position: absolute; transform: translate(-50%, calc(-100% - 12px)); display: flex; flex-direction: column; align-items: center; }
  .pepite b { background: var(--j); color: #111; border: 3px solid #111; border-radius: 8px; padding: 1px 8px; font: 800 19px 'Barlow Condensed', sans-serif; white-space: nowrap; }
  .pepite i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--j); }
  .radar-tete { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; pointer-events: none; }
  .radar-tete h1 { margin: 0; font: 800 24px 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--j); text-shadow: 0 0 6px #000; }
  .radar-tete button { pointer-events: auto; }
  .legende { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 12px; font-size: 12px; font-weight: 600; background: rgba(10,10,10,.85); padding: 7px 11px; border-radius: 8px; pointer-events: none; }
  .legende span { display: flex; align-items: center; gap: 6px; }
  .legende em { width: 10px; height: 10px; border-radius: 5px; display: inline-block; }
  #radar-bas { flex: none; background: var(--j); color: var(--n); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
  .curseur { display: flex; align-items: center; gap: 12px; }
  #play { flex: none; width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--n); background: var(--n); color: var(--j); display: flex; align-items: center; justify-content: center; }
  .compteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compteurs div { background: var(--n); color: #fff; border-radius: 10px; padding: 6px 12px; min-height: 56px; }
  .compteurs strong { display: block; font: 800 24px 'Barlow Condensed', sans-serif; line-height: 1.1; }
  .compteurs small { font-size: 12px; }
  #rinfo { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; background: rgba(17,17,17,.08); border-radius: 10px; padding: 6px 6px 6px 12px; }
  #rinfo button { flex: none; height: 36px; padding: 0 12px; border: none; border-radius: 8px; background: var(--n); color: var(--j); font: 700 15px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  #rinfo.tension { background: var(--n); color: #fff; }
  #rinfo.tension button { background: var(--j); color: var(--n); }
  /* Véhicule & accueil */
  .page { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
  .page h1 { margin: 0; font: 800 30px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .champ { display: flex; flex-direction: column; gap: 8px; }
  .champ .l { display: flex; justify-content: space-between; align-items: baseline; }
  .champ label, .champ .lab { font-weight: 700; font-size: 15px; }
  .champ output { font: 800 22px 'Barlow Condensed', sans-serif; }
  .choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .choix.q { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .choix button { height: 52px; border: 3px solid var(--n); background: #fff; color: var(--n); border-radius: 10px; font: 700 18px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .choix button[aria-pressed="true"] { background: var(--n); color: var(--j); }
  .bascule { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #F2F2F2; border-radius: 14px; padding: 14px; }
  .bascule b { display: block; font-size: 15px; }
  .bascule small { color: var(--g); font-size: 13px; }
  .interrupteur { flex: none; width: 60px; height: 34px; border-radius: 17px; border: 3px solid var(--n); background: #fff; position: relative; padding: 0; }
  .interrupteur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--n); transition: left .15s; }
  .interrupteur[aria-checked="true"] { background: var(--j); }
  .interrupteur[aria-checked="true"]::after { left: 29px; }
  .lien { background: none; border: none; color: var(--n); font-weight: 700; text-decoration: underline; font-size: 15px; padding: 10px 0; text-align: left; }
  #accueil { position: absolute; inset: 0; z-index: 20; background: var(--j); display: none; flex-direction: column; }
  #accueil.ouvert { display: flex; }
  #accueil .page { flex: 1; overflow-y: auto; }
  #accueil .pied { padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
  .points { display: flex; gap: 8px; justify-content: center; }
  .points i { width: 10px; height: 10px; border-radius: 5px; background: rgba(17,17,17,.25); }
  .points i.on { background: var(--n); width: 26px; }
  #accueil .choix button { background: var(--j); }
  #accueil .choix button[aria-pressed="true"] { background: var(--n); color: var(--j); }
  .logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .logo .voyant { width: 1.15em; height: 1.15em; flex: none; }
  .sils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sils button { height: 112px; border: 3px solid var(--n); background: #fff; color: var(--n); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
  .sils button svg { width: 76px; height: 36px; }
  .sils button svg circle { fill: #fff; }
  .sils button > b { font: 700 17px 'Barlow Condensed', sans-serif; text-transform: uppercase; line-height: 1.1; }
  .sils button small { font-size: 12px; color: var(--g); }
  .sils button[aria-pressed="true"] { background: var(--n); color: var(--j); }
  .sils button[aria-pressed="true"] svg circle { fill: var(--n); }
  .sils button[aria-pressed="true"] small { color: #E6E6E6; }
  #accueil .sils button { background: var(--j); }
  #accueil .sils button svg circle { fill: var(--j); }
  #accueil .sils button[aria-pressed="true"] { background: var(--n); }
  #accueil .sils button[aria-pressed="true"] svg circle { fill: var(--n); }
  .aide { display: flex; gap: 12px; align-items: flex-start; background: #F2F2F2; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
  #accueil .aide { background: rgba(255,255,255,.55); }
  .aide svg { flex: none; margin-top: 1px; }
  .aide b { display: block; margin-bottom: 2px; }
  .modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: rgba(17,17,17,.12); padding: 4px; border-radius: 12px; }
  .modes button { height: 44px; border: none; border-radius: 9px; background: transparent; font: 700 15px 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--n); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
  .modes button[aria-pressed="true"] { background: var(--n); color: var(--j); }
  .age { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
  .age.a1 { background: var(--j); color: var(--n); }
  .age.a2 { background: var(--n); color: #fff; }
  .age.a3 { background: #E6E6E6; color: var(--g); }
  .ligne-st.vieille .val { color: var(--g); }
  .trio .maj-frais b { color: var(--j); }
  .tendance { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 14px; padding: 12px 14px; background: #F2F2F2; color: var(--n); }
  .tendance svg { flex: none; }
  .tendance.hausse { background: var(--n); color: #fff; }
  .tendance.hausse svg { color: var(--j); }
  .tendance.hausse .t-src { color: #BDBDBD; }
  .t-titre { font: 800 22px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .t-txt { font-size: 14px; line-height: 1.35; margin-top: 2px; }
  .t-src { font-size: 12px; color: var(--g); margin-top: 4px; }
  .conseil { border: 3px dashed var(--n); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
  .c-titre { font: 800 19px 'Barlow Condensed', sans-serif; text-transform: uppercase; line-height: 1.1; }
  .c-txt { font-size: 14px; }
  .horsligne { display: flex; gap: 8px; align-items: center; justify-content: center; background: #3A3A3A; color: #fff; font-size: 13px; font-weight: 600; padding: 8px; }
  #conduite { position: absolute; inset: 0; z-index: 50; background: var(--n); color: #fff; display: none; flex-direction: column; justify-content: center; gap: 22px; padding: 28px; text-align: center; }
  #conduite.ouvert { display: flex; }
  #conduite h2 { margin: 0; font: 800 46px 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--j); line-height: .95; }
  #conduite p { margin: 0; font-size: 18px; line-height: 1.4; }
  .grosTitre { font: 800 52px 'Barlow Condensed', sans-serif; line-height: .92; text-transform: uppercase; margin: 10px 0 0; }
  /* Feuilles & toast */
  #voile { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.55); display: none; }
  #voile.ouvert { display: block; }
  .feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 18px 24px; display: none; flex-direction: column; gap: 14px; max-height: 88%; overflow-y: auto; }
  .feuille.ouvert { display: flex; }
  .poignee { width: 40px; height: 4px; border-radius: 2px; background: #D5D5D5; align-self: center; }
  .feuille-tete { display: flex; justify-content: space-between; align-items: center; }
  .feuille-tete h2 { margin: 0; font: 800 24px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
  .fermer { width: 44px; height: 44px; border-radius: 22px; border: none; background: #EEE; display: flex; align-items: center; justify-content: center; }
  .carte-partage { background: var(--j); border-radius: 18px; padding: 8px; }
  .carte-partage > div { border: 4px solid var(--n); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
  .bulle { background: #F2F2F2; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
  .deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .appli { height: 60px; border: 3px solid var(--n); border-radius: 14px; background: #fff; font: 800 20px 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--n); }
  #toast { position: absolute; left: 18px; right: 18px; bottom: 84px; z-index: 40; background: var(--n); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; display: none; }
  #toast.ouvert { display: block; }

  /* ===== Vraie app ===== */
  #carte { position: absolute; inset: 0; }
  #contamination { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
  .maplibregl-ctrl-attrib { background: rgba(10,10,10,.75) !important; color: #BDBDBD; font-size: 10px; }
  .maplibregl-ctrl-attrib a { color: #E6E6E6 !important; }
  .marqueur-moi { width: 18px; height: 18px; border-radius: 9px; background: #fff; border: 4px solid #111; box-shadow: 0 0 0 3px #fff; }
  .marqueur-pepite { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
  .marqueur-pepite b { background: var(--j); color: #111; border: 3px solid #111; border-radius: 8px; padding: 1px 8px; font: 800 19px 'Barlow Condensed', sans-serif; white-space: nowrap; }
  .marqueur-pepite i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--j); }
  .recherche { width: 100%; height: 52px; border: 3px solid var(--n); border-radius: 12px; padding: 0 14px; font: 500 17px Barlow, sans-serif; background: #fff; color: var(--n); }
  #accueil .recherche { background: #fff; }
  .chargement { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 24px; text-align: center; font-size: 16px; }
  .chargement .rond { width: 44px; height: 44px; border-radius: 22px; border: 5px solid rgba(17,17,17,.15); border-top-color: var(--n); animation: tourne 0.9s linear infinite; }
  @keyframes tourne { to { transform: rotate(360deg); } }
  .petit { font-size: 12px; color: var(--g); }
  .prix-carbus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .prix-carbus div { border: 2px solid #E5E5E5; border-radius: 10px; padding: 6px 8px; min-height: 58px; }
  .prix-carbus div.actuel { border-color: var(--n); background: var(--j); }
  .prix-carbus b { display: block; font: 800 18px 'Barlow Condensed', sans-serif; }
  .prix-carbus small { font-size: 11px; color: var(--g); }
  .prix-carbus .rupt { color: var(--r); font-weight: 700; font-size: 12px; }
  a.appli { display: flex; align-items: center; justify-content: center; text-decoration: none; }
