/* ============ SafeConduite — style ============ */

:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1f2937;
  --text-soft: #6b7280;
  --border: #e7e4de;
  --accent: #1f7a5c;
  --accent-hi: #27946f;
  --accent-glow: rgba(31, 122, 92, .30);
  --accent-soft: #e3f0ea;
  --warn: #c99700;
  --warn-hi: #ddad1a;
  --warn-glow: rgba(201, 151, 0, .30);
  --danger: #d64545;
  --danger-soft: #fdecec;
  --track: #ecebe7;
  --shadow: 0 1px 2px rgba(30, 30, 30, .05), 0 6px 20px rgba(30, 30, 30, .06);
  --radius: 18px;
  /* Couleurs du Burkina Faso, adoucies */
  --bf-red: #d9534a;
  --bf-yellow: #e8b40c;
  --bf-green: #2e8b63;
}

/* Thème sombre : choisi manuellement… */
:root[data-theme="dark"] {
  --bg: #17191c;
  --card: #1f2226;
  --text: #eceef0;
  --text-soft: #9aa1a9;
  --border: #2c3036;
  --accent: #3da884;
  --accent-hi: #4cc09a;
  --accent-glow: rgba(61, 168, 132, .28);
  --accent-soft: #21332c;
  --warn: #e0b93c;
  --warn-hi: #ecc95d;
  --warn-glow: rgba(224, 185, 60, .25);
  --danger: #e05c5c;
  --danger-soft: #3a2426;
  --track: #2a2e33;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
}

/* …ou suivant le réglage du système */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17191c;
    --card: #1f2226;
    --text: #eceef0;
    --text-soft: #9aa1a9;
    --border: #2c3036;
    --accent: #3da884;
    --accent-hi: #4cc09a;
    --accent-glow: rgba(61, 168, 132, .28);
    --accent-soft: #21332c;
    --warn: #e0b93c;
    --warn-hi: #ecc95d;
    --warn-glow: rgba(224, 185, 60, .25);
    --danger: #e05c5c;
    --danger-soft: #3a2426;
    --track: #2a2e33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

/* L'attribut hidden ne masque pas les éléments SVG par défaut */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  transition: background-color .4s, color .4s;
  -webkit-tap-highlight-color: transparent;
}

/* Flash visuel pendant l'alarme */
body.alerting { animation: bg-flash 1s ease-in-out infinite; }
@keyframes bg-flash {
  0%, 100% { background-color: var(--bg); }
  50% { background-color: var(--danger-soft); }
}

/* ---------- Barre supérieure ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 20px 8px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 26px; height: 26px; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; gap: 4px; width: max-content; }
.brand h1 { font-size: 1.15rem; font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1; }

/* Le drapeau du Burkina Faso souligne le titre : rouge en haut, étoile jaune, vert en bas */
.flag-underline {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ef2b2d 0 50%, #009e49 50% 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.flag-star {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .3));
}

.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* Bouton d'installation : icône jaune (visible tant que l'app n'est pas installée) */
#btn-install,
#btn-install:hover { color: var(--bf-yellow); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn { transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(.95); }

/* ---------- Mise en page ---------- */
main {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color .4s, border-color .4s;
}

/* ---------- Cadran ---------- */
.gauge-card { padding: 14px 18px 6px; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gauge-wrap { position: relative; max-width: 290px; margin: -4px auto 0; }
.gauge { display: block; width: 100%; }

.gauge-track,
.gauge-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 66.67 100; /* arc de 240° */
}
.gauge-track { stroke: var(--track); }
.gauge-progress {
  stroke: var(--bf-green);
  stroke-dasharray: 0 100;
  transition: stroke-dasharray .35s ease, stroke .3s;
}
/* L'arc passe au jaune à l'approche de la limite, au rouge au-delà */
.gauge-progress.warn { stroke: var(--bf-yellow); }
.gauge-progress.over,
body.alerting .gauge-progress { stroke: var(--danger); }

.gauge-threshold {
  stroke: var(--danger);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .85;
}

/* Graduations du compteur */
.tick { stroke: var(--text-soft); stroke-width: 1; opacity: .5; }
.tick-major { stroke-width: 1.6; opacity: .8; }
.tick-label {
  fill: var(--text-soft);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12%;
  pointer-events: none;
}

.speed-value {
  font-size: clamp(3rem, 16vw, 4.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
body.alerting .speed-value { color: var(--danger); }

.speed-unit {
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Puces ---------- */
.chip {
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-muted { background: var(--track); color: var(--text-soft); }
.chip-ok { background: var(--accent-soft); color: var(--accent); }
.chip-time {
  background: var(--track);
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip-alert {
  background: var(--danger);
  color: #fff;
  animation: chip-pulse 1s ease-in-out infinite;
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
}
@keyframes chip-pulse { 50% { opacity: .55; } }

/* Vitesse max : cercle intégré au cadran, façon compteur auto */
.max-badge {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--track);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.max-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.max-label {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
}

/* ---------- Stats intégrées au cadran ---------- */
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding: 10px 0 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
}
.stat + .stat { border-left: 1px solid var(--border); }

.stat-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-soft);
}
.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-value small { font-size: .68rem; font-weight: 500; color: var(--text-soft); }

/* ---------- Carte alerte (compacte) ---------- */
.alert-card { padding: 12px 16px; }

.alert-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .92rem;
  font-weight: 600;
}
.alert-title svg { width: 18px; height: 18px; color: var(--bf-yellow); }

.limit-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.step-btn { transition: background-color .2s, border-color .2s; }
.step-btn:hover { background: var(--track); border-color: var(--accent); }
.step-btn:active { transform: scale(.92); }

.limit-display { display: flex; align-items: baseline; gap: 4px; }
.limit-display input {
  width: 62px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}
.limit-display input::-webkit-outer-spin-button,
.limit-display input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.limit-display input:focus { outline: 2px solid var(--accent); border-radius: 8px; }
.limit-unit { color: var(--text-soft); font-size: .78rem; font-weight: 500; }

.alert-card.disabled .limit-compact { opacity: .35; pointer-events: none; }

/* Interrupteur */
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--track);
  border-radius: 999px;
  transition: background-color .2s;
  cursor: pointer;
}
.slider::before {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Variante fine (section Contribution) */
.switch.sm { width: 38px; height: 21px; }
.switch.sm .slider::before { width: 15px; height: 15px; left: 3px; top: 3px; }
.switch.sm input:checked + .slider::before { transform: translateX(17px); }

/* L'interrupteur s'aligne sur la ligne du titre, pas au centre du bloc */
.contrib-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.contrib-row .switch { margin-top: 1px; flex-shrink: 0; }

/* ---------- Boutons ---------- */
.controls { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.controls-row { display: flex; gap: 10px; }
.controls-row .btn { flex: 1; white-space: nowrap; }

@media (max-width: 400px) {
  .controls-row .btn { font-size: .88rem; padding: 14px 8px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 15px;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s, opacity .2s, box-shadow .2s, border-color .2s, filter .15s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .4; cursor: default; }
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #fff;
  padding: 15px 18px;
  font-size: 1.08rem;
  letter-spacing: .01em;
  border-radius: 17px;
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:active {
  box-shadow: 0 3px 10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-primary.running {
  background: linear-gradient(180deg, var(--warn-hi), var(--warn));
  box-shadow: 0 6px 18px var(--warn-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover:not(:disabled) { background: var(--track); }
.btn-danger-text { color: var(--danger); }

/* ---------- Pied de page ---------- */
.foot-note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-soft);
  margin: 4px 0 0;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Signature CodeHeidi */
.credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  margin: 2px 0 0;
}
.credit-name { color: var(--text-soft); text-decoration: none; }
.credit b { color: var(--accent); font-weight: 700; }
.credit-name:hover b { text-decoration: underline; }

.social-row { display: flex; gap: 14px; }
.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .1s;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { border-color: var(--accent); }
.social-btn:active { transform: scale(.94); }
button.social-btn { cursor: pointer; font: inherit; padding: 0; }

/* ---------- Modale générique ---------- */
.modal {
  border: none;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  width: calc(100vw - 48px);
  max-width: 380px;
  padding: 22px;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal h3 { margin: 0 0 8px; font-size: 1.05rem; }
.modal p {
  margin: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-line;
}
.modal-code {
  margin-top: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .85rem;
  word-break: break-all;
  user-select: all;
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; padding: 12px; font-size: .95rem; }
.modal-actions .btn-ghost { border: 1px solid var(--border); }
#modal-ok.danger {
  background: linear-gradient(180deg, #e05c5c, var(--danger));
  box-shadow: 0 6px 18px rgba(214, 69, 69, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* Toast « Lien copié » */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  background: var(--text);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 60;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mode paysage (téléphone monté à l'horizontale) ----------
   Activé par JS via la classe body.land : automatiquement selon
   l'orientation de l'écran, ou manuellement via le bouton d'orientation. */
body.land .topbar {
  max-width: 940px;
  padding: 10px 20px 4px;
}

body.land main {
  max-width: 940px;
  display: grid;
  /* Zone vitesse 60 % / commandes 40 % */
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  grid-template-rows: auto auto 1fr;
  gap: 10px 16px;
  align-items: start;
  padding-bottom: 16px;
}

/* Cadran pleine hauteur à gauche, commandes empilées à droite */
body.land .gauge-card {
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px 16px 4px;
}

body.land .gauge-wrap { max-width: min(320px, 66vh); }
body.land .speed-value { font-size: clamp(2.2rem, 15vh, 3.8rem); }
body.land .max-badge { width: 54px; height: 54px; }
body.land .max-value { font-size: 1.05rem; }
body.land .mini-stats { padding: 6px 0 4px; }

body.land .alert-card { padding: 10px 14px; }

body.land .controls { gap: 8px; margin-top: 0; }
body.land .btn { padding: 11px 12px; font-size: .95rem; }
body.land .btn-primary { padding: 12px; font-size: 1rem; }
body.land .btn-primary svg { width: 26px; height: 26px; padding: 6px; }

body.land .foot-note { margin: 0; align-self: end; }

/* ---------- Historique (feuille) ---------- */
.sheet {
  border: none;
  border-radius: 22px 22px 0 0;
  background: var(--card);
  color: var(--text);
  width: 100%;
  max-width: 480px;
  margin: auto auto 0;
  padding: 0;
  max-height: 80dvh;
  display: none;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(0, 0, 0, .45); }

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}
.sheet-header h2 { font-size: 1.1rem; margin: 0; }

.history-list {
  overflow-y: auto;
  padding: 4px 20px;
  flex: 1;
}

.history-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 36px 0;
  font-size: .92rem;
}

.trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.trip:first-child { border-top: none; }

.trip-date { font-weight: 600; font-size: .92rem; }
.trip-meta { color: var(--text-soft); font-size: .82rem; margin-top: 3px; }
.trip-meta b { color: var(--text); font-weight: 600; }

.trip-delete {
  border: none;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.trip-delete:hover { color: var(--danger); background: var(--danger-soft); }
.trip-delete svg { width: 18px; height: 18px; display: block; }

.sheet-footer {
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

/* ---------- Paramètres ---------- */
.settings-body {
  overflow-y: auto;
  padding: 4px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-body h3 {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-soft);
  margin: 0 0 8px;
}

/* Sélecteur segmenté (type d'alerte) */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--track);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg label { position: relative; }
.seg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.seg span {
  display: block;
  text-align: center;
  padding: 9px 4px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.seg input:checked + span {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Liste des sonneries */
.sound-list { display: flex; flex-direction: column; }
.sound-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.sound-row:first-child { border-top: none; }
.sound-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.sound-row > span { flex: 1; font-size: .95rem; font-weight: 500; }
.sound-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  font-size: .8rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.sound-play:hover { background: var(--track); border-color: var(--accent); }
.sound-play:active { transform: scale(.92); }

/* Volume */
.volume-row { display: flex; align-items: center; gap: 14px; }
.volume-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}
.volume-value {
  width: 48px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
}

/* Tolérance */
.tol-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.tol-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: center;
}
.hint {
  font-size: .8rem;
  color: var(--text-soft);
  margin: 10px 0 0;
  line-height: 1.45;
}

.setting-label { font-size: .95rem; font-weight: 500; margin: 0; }
.app-version { text-align: center; margin-top: 16px; }

/* Liens À propos (CodeHeidi) */
.about-links { display: flex; flex-direction: column; }
.about-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
.about-link:first-child { border-top: none; }
.about-link svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.about-link:hover span { color: var(--accent); }

/* ---------- Bandeau de mise à jour ---------- */
.update-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 12px 10px 18px;
  font-size: .92rem;
  font-weight: 500;
  z-index: 50;
  max-width: calc(100vw - 32px);
  animation: banner-in .3s ease;
}
@keyframes banner-in {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.btn-update { padding: 9px 16px; font-size: .88rem; border-radius: 11px; }
.update-banner .icon-btn { width: 34px; height: 34px; border: none; box-shadow: none; }
