/* ═══════════════════════════════════════════════
   JOHNNYGPS — CSS  🎸
   Dark gold rock theme · Barlow Condensed
═══════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --o:   #ff9000;
  --ob:  #ffaa33;
  --og:  rgba(255,144,0,.18);
  --red: #ef4444;
  --grn: #22c55e;
  --blu: #3b82f6;

  /* dark theme */
  --bg:   #07070f;
  --bg2:  #0d0d1c;
  --bg3:  #141428;
  --bg4:  #1a1a32;
  --tx:   #ede8d8;
  --tm:   rgba(237,232,216,.52);
  --td:   rgba(237,232,216,.22);

  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --r:  12px;
  --sh: 0 8px 32px rgba(0,0,0,.55);
  --nav-h: 62px;
  --bar-h: 104px; /* nav 62px + radio 42px */
}

/* ─── Light override ─── */
body.light-mode {
  --bg:  #f4efe4;
  --bg2: #ece7dc;
  --bg3: #e4dfd4;
  --bg4: #ddd8cc;
  --tx:  #1a1628;
  --tm:  rgba(26,22,40,.52);
  --td:  rgba(26,22,40,.22);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); font-family: var(--fb); color: var(--tx); -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; background: none; border: none; outline: none; cursor: pointer; }
a { color: var(--ob); }

/* ─── App root ─── */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ════════════════════════════════════════
   MAP  ─  150vmax square, centered
   Diagonal of any viewport ≤ 1.41·vmax
   → 150vmax always covers 360° rotation
════════════════════════════════════════ */
#mapWrap {
  position: absolute;
  left: 50%;
  top:  50%;
  width:  150vmax;
  height: 150vmax;
  transform: translate(-50%,-50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
  z-index: 1;
  will-change: transform;
  background: #1a1a2e; /* fond de secours si tiles lentes */
}
#map { width: 100%; height: 100%; }

/* Leaflet controls hidden */
.leaflet-control-zoom,
.leaflet-control-attribution { display: none !important; }

/* Tile filters per style */
#app.s-dark      .leaflet-tile-pane { filter: brightness(.80) saturate(.65) contrast(1.06); }
#app.s-osm       .leaflet-tile-pane { filter: none; }
#app.s-satellite .leaflet-tile-pane { filter: brightness(.95) saturate(1.08); }
#app.s-terrain   .leaflet-tile-pane { filter: brightness(.86) saturate(.82); }
#app.s-light     .leaflet-tile-pane { filter: none; }

/* ════════════════════════════════════════
   COMPASS BOX  (heading mode)
════════════════════════════════════════ */
#compassBox {
  display: none;            /* shown via JS */
  position: absolute;
  top: 150px; right: 14px;
  z-index: 530;
  width: 60px; height: 60px;
  align-items: center;
  justify-content: center;
}
.compass-ring {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,144,0,.45);
  background: rgba(7,7,15,.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.c-n, .c-e, .c-s, .c-o {
  position: absolute;
  font-family: var(--fd);
  font-size: 9px; font-weight: 700;
  color: var(--ob); line-height: 1;
}
.c-n  { top: 3px;    left: 50%; transform: translateX(-50%); }
.c-e  { right: 3px;  top: 50%;  transform: translateY(-50%); }
.c-s  { bottom: 3px; left: 50%; transform: translateX(-50%); }
.c-o  { left: 3px;   top: 50%;  transform: translateY(-50%); }
.c-needle {
  width: 4px; height: 24px;
  background: linear-gradient(to bottom, var(--red) 50%, var(--td) 50%);
  border-radius: 3px;
  transform-origin: 50% 50%;
  transition: transform .28s;
}

/* ════════════════════════════════════════
   LOGIN MODAL
════════════════════════════════════════ */
#loginModal {
  /* Overlay plein écran avec fond semi-transparent */
  position: absolute;
  inset: 0; z-index: 900;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
#loginModal.open {
  display: flex;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.login-card {
  width: 100%; max-width: 400px;
  margin: auto;
  /* Fond foncé TOUJOURS — indépendant du thème light/dark */
  background: #0f0f1e;
  border: 1px solid rgba(255,144,0,.35);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.8);
}
.login-brand {
  font-family: var(--fd);
  font-size: 32px; font-weight: 800;
  color: var(--o); text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(255,144,0,.4);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.login-tagline { text-align: center; color: rgba(255,255,255,.45); font-size: 13px; }

#authError {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 8px; color: #f87171;
  font-size: 12px; padding: 8px 12px; display: none;
}

/* Champs — fond sombre, texte blanc */
.auth-field {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-size: 14px;
  transition: border-color .18s, background .18s;
}
.auth-field::placeholder { color: rgba(255,255,255,.3); }
.auth-field:focus {
  border-color: rgba(255,144,0,.6);
  background: rgba(255,255,255,.1);
  outline: none;
}

/* Bouton Se connecter */
.auth-submit {
  width: 100%;
  background: var(--o); color: #0b0400;
  font-family: var(--fd); font-weight: 800; font-size: 17px;
  letter-spacing: .5px; border-radius: 12px; padding: 13px;
  transition: background .18s, transform .1s;
  box-shadow: 0 4px 16px rgba(255,144,0,.35);
}
.auth-submit:hover  { background: var(--ob); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: wait; transform: none; }

/* Lien créer compte */
.auth-toggle {
  color: var(--ob); font-size: 12px;
  text-decoration: underline; text-align: center;
  opacity: .85;
}
.auth-toggle:hover { opacity: 1; }

/* Séparateur "ou" */
.auth-sep {
  text-align: center; color: rgba(255,255,255,.3);
  font-size: 12px; position: relative;
}

/* Bouton Google */
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #fff; color: #1a1a1a;
  font-size: 14px; font-weight: 600;
  border-radius: 12px; padding: 11px;
  border: none;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.auth-google:hover { background: #f0f0f0; transform: translateY(-1px); }

/* Bouton Explorer sans connexion — bien visible */
.auth-guest {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 12px;
  color: rgba(255,255,255,.7);
  font-size: 13px; font-weight: 600; padding: 11px;
  transition: background .15s, color .15s, border-color .15s;
  width: 100%;
}
.auth-guest:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500;
  padding: 8px 12px;
  background: #07070f;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px; align-items: center;
  pointer-events: none;
  min-height: 54px;
}
#topbar > * { pointer-events: all; }

#logo {
  font-family: var(--fd); font-size: 23px; font-weight: 800;
  letter-spacing: .6px; color: #fff; text-shadow: 0 0 20px rgba(255,144,0,.6); white-space: nowrap;
  text-shadow: 0 0 20px var(--og); user-select: none;
}
#logo span { color: rgba(255,255,255,.9); }

/* ─── Search ─── */
#searchWrap { position: relative; min-width: 0; }

#searchBox {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,144,0,.35);
  border-radius: 26px; padding: 8px 12px;
  transition: border-color .2s, background .2s;
}
#searchBox:focus-within {
  border-color: rgba(255,144,0,.7);
  background: rgba(255,255,255,.15);
}
.s-icon { font-size: 14px; opacity: .5; flex-shrink: 0; }
#destInput {
  flex: 1; min-width: 0; background: none;
  color: #fff; font-size: 14px;
  caret-color: var(--o);
}
#destInput::placeholder { color: rgba(255,255,255,.38); }
.s-btn {
  background: rgba(255,255,255,.06); color: #fff; font-size: 14px; opacity: .7;
  padding: 4px 8px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
  transition: color .15s, background .15s, opacity .15s;
}
.s-btn:hover { color: #fff; opacity: 1; background: rgba(255,144,0,.18); border-color: rgba(255,144,0,.4); }

/* ─── Autocomplete dropdown ─── */
#acList {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 620;
  background: var(--bg2);
  border: 1px solid rgba(255,144,0,.18);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--sh); max-height: 260px; overflow-y: auto;
}
#acList::-webkit-scrollbar { width: 4px; }
#acList::-webkit-scrollbar-thumb { background: rgba(255,144,0,.2); border-radius: 4px; }

.ac-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .14s;
}
.ac-row:last-child { border-bottom: none; }
.ac-row:hover, .ac-row.focused { background: rgba(255,144,0,.1); }
.ac-ico { font-size: 17px; flex-shrink: 0; }
.ac-name { font-size: 13px; font-weight: 600; }
.ac-sub  { font-size: 11px; color: var(--tm); margin-top: 1px; }

/* ─── Transport select & Go button ─── */
.sel-pill {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,144,0,.35);
  border-radius: 20px; color: #fff;
  padding: 8px 10px; font-size: 13px;
}
.sel-pill option { background: #131325; }

.btn-go {
  background: var(--o); color: #0b0400;
  font-family: var(--fd); font-weight: 800; font-size: 16px;
  letter-spacing: .4px; border-radius: 24px;
  padding: 8px 18px; white-space: nowrap;
  transition: background .18s, transform .1s;
}
.btn-go:hover    { background: var(--ob); transform: translateY(-1px); }
.btn-go:disabled { opacity: .6; cursor: wait; transform: none; }
.spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(0,0,0,.3); border-top-color: #0b0400; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════
   ROUTE BAR — 1 ligne compacte
════════════════════════════════════════ */
#routebar {
  position: absolute; top: 54px; left: 0; right: 0; z-index: 500;
  background: #07070f;
  border-bottom: 2px solid rgba(255,144,0,.35);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; height: 46px;
  overflow: visible;
}
.nav-arrow {
  font-family: var(--fd); font-size: 22px; color: var(--ob);
  width: 24px; text-align: center; flex-shrink: 0;
}
.nav-texts { flex: 1; min-width: 0; overflow: hidden; }
.nav-i { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-m { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rb-meta {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.rb-chip {
  display: flex; align-items: baseline; gap: 2px;
  background: rgba(255,144,0,.18);
  border: 1px solid rgba(255,144,0,.45);
  border-radius: 8px; padding: 3px 7px;
}
.rb-arr { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.45); }
.rb-val  { font-family: var(--fd); font-size: 16px; font-weight: 800; color: #fff; line-height: 1; }
.rb-arr .rb-val { color: #fff; font-size: 14px; }
.rb-unit { font-size: 9px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .3px; }

.rb-stop {
  flex-shrink: 0;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35);
  color: var(--red); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.rb-icon-btn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,144,0,.15); border: 1px solid rgba(255,144,0,.4);
  color: #fff; font-size: 13px;
}

/* ─── Style Picker popup ─── */
#stylePicker {
  position: absolute; right: 72px; bottom: calc(var(--bar-h) + 12px); z-index: 530;
  background: #0d0d1c; border: 2px solid rgba(255,144,0,.5);
  border-radius: 14px; padding: 8px 10px;
  display: none; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  min-width: 160px;
}
#stylePicker.open { display: flex; }
.sp-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; font-size: 13px;
  color: #e8e0d0; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: background .14s, border-color .14s;
  white-space: nowrap;
}
.sp-btn span { font-size: 12px; font-weight: 500; color: #e8e0d0; }
.sp-btn:hover { background: rgba(255,144,0,.18); border-color: rgba(255,144,0,.5); color: #fff; }
.sp-btn.c-on  { background: rgba(255,144,0,.25); border-color: var(--o); color: #fff; font-weight: 700; }

/* ─── View Picker popup ─── */
#viewPicker {
  position: absolute; right: 72px; bottom: calc(var(--bar-h) + 68px); z-index: 530;
  background: #0d0d1c; border: 2px solid rgba(59,130,246,.55);
  border-radius: 14px; padding: 8px 10px;
  display: none; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  min-width: 160px;
}
#viewPicker.open { display: flex; }
.vp-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; font-size: 13px;
  color: #e8e0d0; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: background .14s, border-color .14s;
  white-space: nowrap;
}
.vp-btn span { font-size: 12px; font-weight: 500; color: #e8e0d0; }
.vp-btn:hover { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.28); }
.vp-btn.c-on  { background: rgba(59,130,246,.28); border-color: rgba(59,130,246,.7); color: #fff; font-weight: 700; }

/* ─── Chip (kept for potential use) ─── */
.chip {
  border-radius: 20px; padding: 5px 10px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: rgba(255,144,0,.07); border: 1px solid rgba(255,144,0,.28); color: var(--ob);
  transition: background .15s;
}
.chip.c-on    { background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.6); color: #fff; }
.chip.c-danger{ background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: var(--red); }

/* ════════════════════════════════════════
   HUD CARDS
════════════════════════════════════════ */
#hud {
  position: absolute; left: 12px;
  bottom: calc(var(--bar-h) + 10px); z-index: 440;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: none;
}
.hc {
  background: #0d0d1c;
  border: 1px solid rgba(255,144,0,.35);
  border-radius: 10px; padding: 6px 10px; min-width: 74px;
  box-shadow: 0 3px 10px rgba(0,0,0,.55);
}
.hc-l { font-size: 9px; text-transform: uppercase; letter-spacing: .7px; color: var(--tm); }
.hc-v { font-family: var(--fd); font-size: 20px; font-weight: 700; color: var(--ob); line-height: 1.1; }

/* ════════════════════════════════════════
   SPEEDOMETER
════════════════════════════════════════ */
#speedBox {
  position: absolute;
  left: 12px;
  bottom: calc(var(--bar-h) + 170px);
  z-index: 440;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

/* Cercle vitesse principale */
#speedVal {
  font-family: var(--fd);
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  background: #0d0d1c;
  border: 3px solid rgba(255,144,0,.7);
  border-radius: 50%;
  width: 86px; height: 86px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,144,0,.15), 0 4px 18px rgba(0,0,0,.6);
  transition: color .3s, border-color .3s, box-shadow .3s;
  letter-spacing: -1px;
}
/* Clignotement rouge si dépassement */
#speedBox.speeding #speedVal {
  color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.25), 0 4px 18px rgba(239,68,68,.4);
  animation: speedPulse 0.7s ease-in-out infinite;
}
@keyframes speedPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(239,68,68,.25), 0 4px 18px rgba(239,68,68,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,.4),  0 4px 24px rgba(239,68,68,.6); }
}

#speedUnit {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  color: var(--tm); text-transform: uppercase;
  margin-top: 4px;
}

/* Panneau limitation de vitesse — style panneau routier */
#speedLimitWrap {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 7px;
  opacity: 0; transition: opacity .4s;
}
#speedLimitWrap.visible { opacity: 1; }

#speedLimitSign {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff;
  border: 3px solid #e20000;
  /* Double bord rouge style panneau européen */
  outline: 2px solid #fff;
  box-shadow: 0 0 0 4px #e20000, 0 3px 10px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
#speedLimitVal {
  font-family: var(--fd);
  font-size: 16px; font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1;
}
#speedLimitLabel {
  font-size: 9px; color: var(--tm);
  margin-top: 3px; letter-spacing: .5px;
}

/* ════════════════════════════════════════
   FLOATING ACTION BUTTONS
════════════════════════════════════════ */
.fab {
  position: absolute; right: 14px; z-index: 520;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: transform .14s, box-shadow .14s;
  /* Ombre forte pour visibilité sur tout fond de carte */
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
}
.fab:hover { transform: scale(1.08); }

/* Pile verticale depuis le bas : voice → center → stop → compass → style */
.fab-voice {
  bottom: calc(var(--bar-h) + 12px);
  width: 52px; height: 52px; font-size: 22px;
  background: var(--o); color: #0b0400;
  box-shadow: 0 6px 22px rgba(255,144,0,.55), 0 2px 6px rgba(0,0,0,.5);
}
.fab-center {
  bottom: calc(var(--bar-h) + 72px);
  width: 42px; height: 42px; font-size: 18px;
  background: #0d0d1c;
  border: 2px solid rgba(255,144,0,.6); color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.6);
}
.fab-stop {
  bottom: calc(var(--bar-h) + 122px);
  width: 42px; height: 42px; font-size: 16px; font-weight: 700;
  background: #ef4444;
  border: 2px solid #fff; color: #fff;
  box-shadow: 0 3px 12px rgba(239,68,68,.5);
}
.fab-compass {
  bottom: calc(var(--bar-h) + 172px);
  width: 42px; height: 42px; font-size: 18px;
  background: #1e3a5f;
  border: 2px solid rgba(59,130,246,.7); color: #93c5fd;
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.fab-style {
  bottom: calc(var(--bar-h) + 222px);
  width: 42px; height: 42px; font-size: 18px;
  background: #0d0d1c;
  border: 2px solid rgba(255,144,0,.6); color: var(--ob);
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.fab-style.active { background: var(--o); border-color: var(--ob); color: #0b0400; }
.fab-vehicle {
  bottom: calc(var(--bar-h) + 272px);
  width: 42px; height: 42px; font-size: 20px;
  background: #0d0d1c;
  border: 2px solid rgba(255,144,0,.6); color: var(--ob);
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.fab-vehicle.active { background: var(--o); border-color: var(--ob); color: #0b0400; }

/* ════════════════════════════════════════
   BOTTOM NAV
════════════════════════════════════════ */
#bottomNav {
  position: absolute; left: 0; right: 0; bottom: 42px; z-index: 590;
  height: var(--nav-h);
  display: flex;
  background: rgba(7,7,15,.97);
  border-top: 1px solid rgba(255,144,0,.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nb {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-radius: 10px; padding: 7px 3px;
  color: rgba(255,255,255,.3); position: relative;
  transition: background .14s, color .14s;
}
.nb:hover  { background: rgba(255,144,0,.07); }
.nb.active { color: var(--ob); position: relative; }
.nb.active::after { content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:20px; height:2px; background:var(--o); border-radius:2px; }
.nb-i  { font-size: 20px; }
.nb-l  { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.nb-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--red); color: #fff;
  font-size: 8px; font-weight: 700;
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ════════════════════════════════════════
   SIDE PANEL
════════════════════════════════════════ */
#panelOverlay {
  position: absolute; inset: 0; z-index: 690;
  background: rgba(0,0,0,.42); opacity: 0; pointer-events: none;
  transition: opacity .26s;
}
#panelOverlay.on { opacity: 1; pointer-events: all; }

#panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 700;
  width: min(360px, 94vw);
  background: var(--bg2); border-left: 1px solid rgba(255,144,0,.14);
  box-shadow: var(--sh);
  transform: translateX(102%);
  transition: transform .27s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
#panel.open { transform: translateX(0); }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.panel-ttl { font-family: var(--fd); font-size: 20px; font-weight: 800; color: var(--ob); }
.panel-x   {
  font-size: 20px; font-weight: 700;
  color: #fff; opacity: .7;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, background .15s;
}
.panel-x:hover { opacity: 1; background: rgba(255,255,255,.15); }

#panelBody {
  flex: 1; overflow-y: auto; padding: 12px;
  overscroll-behavior: contain;
}
#panelBody::-webkit-scrollbar { width: 4px; }
#panelBody::-webkit-scrollbar-thumb { background: rgba(255,144,0,.2); border-radius: 4px; }

/* ════════════════════════════════════════
   ROUTE MODAL (full-screen)
════════════════════════════════════════ */
#routeModal {
  position: absolute; inset: 0; z-index: 760;
  background: rgba(7,7,15,.97);
  backdrop-filter: blur(14px);
  overflow-y: auto; padding: 60px 12px 20px;
  transform: translateY(100%);
  transition: transform .27s cubic-bezier(.4,0,.2,1);
}
#routeModal.open { transform: translateY(0); }

.rm-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(7,7,15,.97);
  border-bottom: 1px solid rgba(255,144,0,.14);
}
.rm-ttl { font-family: var(--fd); font-size: 22px; font-weight: 800; color: var(--ob); }
#routeClose {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
#routeClose:hover { background: rgba(255,255,255,.2); }

.step-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border-left: 3px solid rgba(255,144,0,.18);
  margin-bottom: 7px; transition: background .14s;
}
.step-card.active { background: rgba(255,144,0,.08); border-left-color: var(--ob); }
.step-arr  { font-family: var(--fd); font-size: 24px; color: var(--ob); width: 28px; text-align: center; flex-shrink: 0; }
.step-txt  { font-size: 13px; font-weight: 600; }
.step-meta { font-size: 11px; color: var(--tm); margin-top: 2px; }

/* ════════════════════════════════════════
   PANEL CONTENT — shared styles
════════════════════════════════════════ */
.p-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,144,0,.1);
  border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.p-card-ttl { font-size: 13px; font-weight: 700; margin-bottom: 8px; }

/* Fan items */
.fan-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,144,0,.1);
  margin-bottom: 8px; cursor: pointer;
  transition: background .14s, border-color .14s, transform .1s;
}
.fan-item:hover { background: rgba(255,144,0,.08); border-color: rgba(255,144,0,.24); transform: translateX(2px); }
.fan-av {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.fan-av img { width: 100%; height: 100%; object-fit: cover; }
.fan-info { flex: 1; min-width: 0; }
.fan-name { font-size: 14px; font-weight: 700; }
.fan-dist { font-size: 11px; color: var(--tm); }
.fan-msg  { font-size: 12px; color: var(--tm); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.on  { background: var(--grn); box-shadow: 0 0 6px var(--grn); }
.dot.off { background: rgba(255,255,255,.18); }

/* Chat */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 134px); }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; overscroll-behavior: contain; }
.chat-msgs::-webkit-scrollbar { width: 3px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,144,0,.2); border-radius: 4px; }

.msg { max-width: 88%; display: flex; flex-direction: column; }
.msg.them { align-self: flex-start; }
.msg.me   { align-self: flex-end; }
.msg-author { font-size: 10px; color: var(--td); margin-bottom: 3px; }
.bubble { padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.msg.them .bubble { background: rgba(255,255,255,.07); border-bottom-left-radius:  3px; }
.msg.me   .bubble { background: rgba(255,144,0,.17);  color: #ffe0a0; border-bottom-right-radius: 3px; }

.chat-bar { border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; display: flex; gap: 7px; align-items: center; }
.chat-in  { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,144,0,.2); border-radius: 20px; padding: 8px 13px; color: var(--tx); font-size: 13px; }
.chat-in:focus { border-color: rgba(255,144,0,.4); }
.chat-send { width: 36px; height: 36px; border-radius: 50%; background: var(--o); color: #0b0400; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Alerts */
.alert-it { border-radius: 12px; padding: 11px; margin-bottom: 8px; border: 1px solid; }
.alert-it.danger { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.24); }
.alert-it.warn   { background: rgba(255,144,0,.07); border-color: rgba(255,144,0,.24); }
.alert-it.info   { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.24); }
.alert-ttl  { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.alert-it.danger .alert-ttl { color: var(--red); }
.alert-it.warn   .alert-ttl { color: var(--ob); }
.alert-it.info   .alert-ttl { color: var(--grn); }
.alert-desc { font-size: 12px; color: var(--tm); }
.alert-by   { font-size: 11px; color: var(--td); margin-top: 4px; }

/* Profile */
.prof-top { text-align: center; margin-bottom: 12px; }
.prof-av {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,144,0,.12); border: 2px solid var(--o);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 8px; overflow: hidden;
}
.prof-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-name { font-family: var(--fd); font-size: 22px; font-weight: 800; }
.prof-sub  { font-size: 12px; color: var(--tm); margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.stat-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 9px; text-align: center; }
.stat-v { font-family: var(--fd); font-size: 22px; font-weight: 700; color: var(--ob); }
.stat-l { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--tm); }

.opt-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 10px;
  background: rgba(255,255,255,.04); margin-bottom: 5px;
  cursor: pointer; transition: background .14s;
}
.opt-row:hover, .opt-row.sel { background: rgba(255,144,0,.1); }
.opt-radio { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--o); flex-shrink: 0; }
.opt-row.sel .opt-radio { background: var(--o); }
.opt-lbl { font-size: 13px; }

.btn-full { width: 100%; background: var(--o); color: #0b0400; font-family: var(--fd); font-weight: 700; font-size: 15px; padding: 11px; border-radius: 10px; margin-top: 6px; transition: background .15s; }
.btn-full:hover { background: var(--ob); }
.btn-logout { width: 100%; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--red); font-family: var(--fd); font-weight: 700; font-size: 15px; padding: 11px; border-radius: 10px; margin-top: 5px; }

/* Login prompt inside panel */
.login-prompt { text-align: center; padding: 20px 10px; color: var(--tm); font-size: 13px; }
.login-prompt .btn-full { margin-top: 12px; }

/* ─── Boutons type alerte ─── */
.alert-type-btn {
  padding: 6px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1);
  color: var(--tx); cursor: pointer; transition: background .14s, border-color .14s;
  white-space: nowrap;
}
.alert-type-btn:hover  { background: rgba(255,144,0,.12); border-color: rgba(255,144,0,.3); }
.alert-type-btn.alert-btn-on {
  background: rgba(255,144,0,.18); border-color: var(--o); color: var(--ob);
}

/* ─── Avatar dans messages chat ─── */
.msg-author {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--td); margin-bottom: 3px;
}
.msg-av {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}

/* ─── Sélecteur de véhicule ─── */
.vc-cat-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--tm); margin: 8px 0 5px;
}
.vc-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px;
}
.vc-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 7px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08);
  transition: background .14s, border-color .14s, transform .1s;
  min-width: 62px;
}
.vc-btn:hover { background: rgba(255,144,0,.1); border-color: rgba(255,144,0,.3); transform: translateY(-1px); }
.vc-btn.vc-on {
  background: var(--o);
  border-color: var(--ob);
  box-shadow: 0 0 0 3px rgba(255,144,0,.25), 0 4px 14px rgba(255,144,0,.35);
}
.vc-ico { font-size: 26px; line-height: 1; }
.vc-lbl { font-size: 9px; color: var(--tm); text-align: center; line-height: 1.2; max-width: 58px; }
.vc-btn.vc-on .vc-lbl { color: rgba(0,0,0,.7); font-weight: 700; }

/* ════════════════════════════════════════
   VEHICLE PICKER MODAL
════════════════════════════════════════ */
#vehicleModal {
  position: absolute; inset: 0; z-index: 800;
  background: rgba(5,5,14,.97);
  display: none; flex-direction: column;
  animation: fadeUp .22s ease;
}
#vehicleModal.open { display: flex; }
.vm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,144,0,.2);
  flex-shrink: 0;
}
/* Bouton fermeture vehicle modal */
#vehicleClose {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
#vehicleClose:hover { background: rgba(255,255,255,.2); }
.vm-ttl {
  font-family: var(--fd); font-size: 24px; font-weight: 800; color: var(--ob);
}
#vehicleGrid {
  flex: 1; overflow-y: auto; padding: 14px 12px 24px;
  overscroll-behavior: contain;
}
#vehicleGrid::-webkit-scrollbar { width: 3px; }
#vehicleGrid::-webkit-scrollbar-thumb { background: rgba(255,144,0,.2); }

.vm-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--tm); margin: 14px 0 8px;
  display: flex; align-items: center; gap: 7px;
}
.vm-section-label::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.07);
}
.vm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px;
  margin-bottom: 4px;
}
.vm-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 6px 10px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08);
  transition: background .14s, border-color .14s, transform .1s;
}
.vm-btn:hover  { background: rgba(255,144,0,.1); border-color: rgba(255,144,0,.3); transform: translateY(-2px); }
.vm-btn:active { transform: scale(.95); }
.vm-btn.vm-on  {
  background: var(--o);
  border-color: var(--ob);
  box-shadow: 0 0 0 3px rgba(255,144,0,.3), 0 4px 16px rgba(255,144,0,.4);
}
.vm-ico { font-size: 32px; line-height: 1; }
.vm-lbl { font-size: 10px; color: var(--tm); text-align: center; line-height: 1.3; }
.vm-btn.vm-on .vm-lbl { color: rgba(0,0,0,.80); font-weight: 700; }
.vm-btn.vm-on .vc-lbl { color: rgba(0,0,0,.75); font-weight: 700; }
.vm-btn.vm-on .vm-lbl { color: rgba(0,0,0,.75); font-weight: 700; }

/* ════════════════════════════════════════
   MAP MARKERS (Leaflet DivIcon)
════════════════════════════════════════ */
.me-pin {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--o); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(255,144,0,.5);
  animation: mePulse 2.4s ease-in-out infinite;
  position: relative;
}
.me-pin-inner { font-size: 17px; transition: transform .3s; display: block; }
.me-dir-arrow {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 10px solid var(--o);
  opacity: 0; transition: opacity .3s;
}
@keyframes mePulse {
  0%,100% { box-shadow: 0 4px 18px rgba(255,144,0,.5), 0 0 0 0 rgba(255,144,0,.28); }
  50%      { box-shadow: 0 4px 18px rgba(255,144,0,.5), 0 0 0 12px rgba(255,144,0,.0); }
}

.fan-pin {
  width: 33px; height: 33px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; color: #fff;
  font-family: var(--fd); font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer;
}
.dest-wrap { display: flex; flex-direction: column; align-items: center; }
.dest-ball {
  width: 33px; height: 33px; border-radius: 50%;
  background: var(--ob); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 3px 12px rgba(0,0,0,.4);
}
.dest-stem { width: 3px; height: 10px; background: var(--ob); }
.haz-pin {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.38); cursor: pointer;
}

/* ════════════════════════════════════════
   RADIO PLAYER
════════════════════════════════════════ */
#radioBar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 42px;
  background: #07070f;
  border-top: 1px solid rgba(255,144,0,.25);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; z-index: 595;
}
/* Décaler la nav bar vers le bas = non, plutôt insérer radio AU-DESSUS de nav */
/* On réajuste nav-h dynamiquement via JS */

.radio-ico { font-size: 18px; flex-shrink: 0; }
.radio-meta { flex: 1; min-width: 0; }
.radio-name {
  font-family: var(--fd); font-size: 13px; font-weight: 700;
  color: var(--ob); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio-status { font-size: 10px; color: var(--tm); }

.radio-btn {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background .14s;
}
.radio-play {
  background: var(--o); color: #0b0400;
  box-shadow: 0 2px 8px rgba(255,144,0,.4);
}
.radio-play:hover { background: var(--ob); }
.radio-mute-gps {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); color: var(--tx);
}
.radio-mute-gps.active {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.4); color: var(--red);
}
.radio-mute-gps:hover { background: rgba(255,255,255,.12); }
.radio-vol {
  -webkit-appearance: none; appearance: none;
  width: 64px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.15); outline: none; cursor: pointer; flex-shrink: 0;
}
.radio-vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--o); cursor: pointer;
}

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
#toast {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 108px; z-index: 999;
  background: rgba(255,144,0,.96); color: #0b0400;
  font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  opacity: 0; transition: opacity .22s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#toast.on { opacity: 1; }

/* ════════════════════════════════════════
   FADE IN ANIMATION
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .2s ease; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 680px) {
  #topbar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logo logo" "search search" "trans go";
    padding: 8px 8px 0;
  }
  #logo      { grid-area: logo; }
  #searchWrap{ grid-area: search; }
  #transSel  { grid-area: trans; }
  #goBtn     { grid-area: go; }

  #routebar { top: 105px; }
  #toast    { top: 165px; }
  #stylePicker, #viewPicker { right: 60px; }
}

@media (max-width: 420px) {
  .fab-voice   { width: 46px; height: 46px; font-size: 20px; }
  .fab-center  { bottom: calc(var(--bar-h) + 66px); }
  .fab-stop    { bottom: calc(var(--bar-h) + 116px); }
  .fab-compass { bottom: calc(var(--bar-h) + 160px); }
  .fab-style   { bottom: calc(var(--bar-h) + 204px); }
  .fab-vehicle { bottom: calc(var(--bar-h) + 248px); }
  #stylePicker { right: 60px; bottom: calc(var(--nav-h) + 8px); }
  #viewPicker  { right: 60px; bottom: calc(var(--nav-h) + 56px); }
}


/* ════════════════════════════════════════
   MODE CONDUITE SIMPLIFIÉ
════════════════════════════════════════ */
#simpleWidget {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 800;
  background: rgba(7,7,15,.96);
  border: 2px solid rgba(255,144,0,.5);
  border-radius: 20px;
  padding: 20px 24px;
  display: none;
  flex-direction: column; align-items: center; gap: 10px;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,.7);
  backdrop-filter: blur(20px);
}
#app.simple-mode #simpleWidget { display: flex; }
#app.simple-mode #topbar,
#app.simple-mode #routebar,
#app.simple-mode #hud,
#app.simple-mode #bottomNav,
#app.simple-mode #radioBar,
#app.simple-mode .fab:not(#fabSimple) { opacity: 0.08; pointer-events: none; }
#app.simple-mode #fabSimple { opacity: 1 !important; pointer-events: all !important; }

#sw-arrow {
  font-family: var(--fd); font-size: 52px; color: var(--ob); line-height: 1;
}
#sw-instr {
  font-family: var(--fd); font-size: 22px; font-weight: 700; text-align: center; color: #fff;
  max-width: 200px; line-height: 1.2;
}
#sw-speed {
  font-family: var(--fd); font-size: 40px; font-weight: 900; color: var(--ob);
  line-height: 1;
}
#sw-speed span { font-size: 14px; color: var(--tm); font-weight: 400; }
#sw-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 16px; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#sw-close:hover { background: rgba(255,255,255,.2); }

.fab-simple {
  bottom: calc(var(--bar-h) + 322px);
  width: 42px; height: 42px; font-size: 16px;
  background: #0d0d1c;
  border: 2px solid rgba(255,255,255,.2); color: var(--tx);
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.fab-simple.active { background: rgba(255,144,0,.15); border-color: var(--o); color: var(--ob); }

.fab-notif {
  bottom: calc(var(--bar-h) + 372px);
  width: 42px; height: 42px; font-size: 16px;
  background: #0d0d1c;
  border: 2px solid rgba(255,255,255,.2); color: var(--tx);
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.fab-notif.active { background: rgba(34,197,94,.15); border-color: var(--grn); color: var(--grn); }

/* ════════════════════════════════════════
   TUTORIEL FIRST LAUNCH
════════════════════════════════════════ */
#tutOverlay {
  position: absolute; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 12px 120px;
  animation: fadeUp .3s ease;
}
#tutCard {
  background: var(--bg2);
  border: 1px solid rgba(255,144,0,.3);
  border-radius: 20px; padding: 22px;
  width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.tut-icon  { font-size: 44px; text-align: center; margin-bottom: 10px; }
.tut-title { font-family: var(--fd); font-size: 22px; font-weight: 800; color: var(--ob); text-align: center; margin-bottom: 8px; }
.tut-text  { font-size: 14px; color: var(--tm); text-align: center; line-height: 1.55; margin-bottom: 14px; }
.tut-dots  { display: flex; justify-content: center; gap: 6px; }
.tut-dot   { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.15); transition: background .2s; }
.tut-dot.on{ background: var(--o); }

/* ════════════════════════════════════════
   BOTTOMNAV : scroll horizontal si beaucoup d'onglets
════════════════════════════════════════ */
#bottomNav {
  overflow-x: auto;
  scrollbar-width: none;
}
#bottomNav::-webkit-scrollbar { display: none; }
.nb { min-width: 56px; flex-shrink: 0; }