/* Le Matéomètre — habillage : vélotaf, compteur à cristaux liquides, maillots et pavés parisiens. */
@font-face { font-family: 'Anton'; font-weight: 400; font-style: normal; font-display: swap; src: url(/polices/anton-400.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 400; font-style: normal; font-display: swap; src: url(/polices/archivo-400.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-style: normal; font-display: swap; src: url(/polices/archivo-500.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-style: normal; font-display: swap; src: url(/polices/archivo-600.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-style: normal; font-display: swap; src: url(/polices/archivo-700.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 800; font-style: normal; font-display: swap; src: url(/polices/archivo-800.woff2) format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/polices/share-tech-mono-400.woff2) format('woff2'); }

:root {
  --fond: #F4EEE3; --carte: #FFFDF8; --encre: #1D1B18; --encre-2: #5A554D; --ligne: #D9CFBD; --ligne-forte: #C9BDA6;
  --panneau: #26292E; --cadran: #1D1B18; --cadre: #121417; --gris: #33373D; --gris-2: #4A4F57; --clair: #E4DDCF; --clair-2: #BDB5A5;
  --jaune: #FFD23F; --bleu: #0E7C86; --bleu-texte: #0A5A61; --bleu-pale: #D5EEEE; --ambre: #F26B1D; --ambre-texte: #9A3A05; --ambre-pale: #FFE3CF;
  --rouge: #D7263D; --lcd: #C7D1B5; --lcd-encre: #1E2619;
  --titre: Anton, Impact, 'Arial Narrow', sans-serif; --mono: 'Share Tech Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
a { color: var(--bleu-texte); }
a:hover { color: var(--encre); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.discret { color: var(--encre-2); }
.petit { font-size: 14px; }
.visuel-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barre du haut ---------- */
.barre { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; padding-top: max(16px, env(safe-area-inset-top)); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; min-width: 0; }
.logo .marque { flex: none; width: 42px; height: 42px; border-radius: 8px; border: 2px solid var(--encre); background: var(--jaune); display: grid; place-items: center; }
.logo .marque svg { width: 26px; height: 26px; }
.logo b { display: block; font-family: var(--titre); font-weight: 400; font-size: 25px; line-height: 1; }
.logo small { display: block; font-size: 13px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo > span:last-child { min-width: 0; }
@media (max-width: 560px) { .barre.guidon .logo > span:last-child { display: none; } .barre.guidon .nav { gap: 6px; } .barre.guidon .pastille-lien:not(.icone) { padding: 0 10px; } }
.nav { display: flex; align-items: center; gap: 8px; flex: none; }
.pastille-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 2px solid var(--encre); border-radius: 999px; background: var(--carte); color: var(--encre); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pastille-lien:hover { background: var(--jaune); color: var(--encre); }
.pastille-lien[aria-current='page'] { background: var(--encre); color: #fff; }
.pastille-lien svg { width: 18px; height: 18px; }
.pastille-lien.icone { width: 44px; padding: 0; justify-content: center; }
.compteur { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ambre); color: var(--encre); display: inline-grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 400; }

/* ---------- mise en page ---------- */
.page { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.page.large { max-width: 1080px; }
.colonnes { display: grid; gap: 16px; align-items: start; }
.colonnes > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tete { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.tete h1 { font-family: var(--titre); font-weight: 400; font-size: 40px; line-height: 1.02; text-transform: uppercase; }
.tete p { font-size: 17px; color: var(--encre-2); }
.retour { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--encre); font-size: 15px; font-weight: 600; text-decoration: none; }
.retour svg { width: 18px; height: 18px; }
.pied { max-width: 1080px; margin: 8px auto 0; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: 14px; color: var(--encre-2); }

/* ---------- cartes ---------- */
.carte { background: var(--carte); border: 2px solid var(--encre); border-radius: 22px; box-shadow: 4px 4px 0 var(--encre); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.carte.sombre { background: var(--panneau); color: #fff; }
.carte h2 { font-family: var(--titre); font-weight: 400; font-size: 26px; line-height: 1; }
.entete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.entete .mono { font-size: 12px; color: var(--encre-2); white-space: nowrap; }
.taxi { align-self: flex-start; padding: 4px 8px; border: 2px solid var(--jaune); border-radius: 4px; background: var(--encre); color: var(--jaune); font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.etape { display: flex; align-items: center; gap: 10px; }
.etape .num { width: 26px; height: 26px; border-radius: 6px; background: var(--jaune); color: var(--encre); display: inline-grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 400; flex: none; }
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.surtitre.contraire { color: var(--ambre-texte); }
.surtitre.porteur { color: var(--bleu-texte); }

/* ---------- l'instrument ---------- */
.instrument { align-items: center; gap: 8px; }
.instrument .haut { align-self: stretch; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); }
.instrument .vol { font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--jaune); }
.instrument .direct { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--clair); }
.instrument .direct::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5FB8C2; }
.instrument svg.lcd { width: min(100%, 300px); height: auto; display: block; }
.instrument .regime { font-family: var(--titre); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-align: center; }
.instrument .devise { font-size: 17px; color: var(--clair); text-align: center; }
.instrument .releve { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--clair-2); text-align: center; }

/* ---------- vents ---------- */
.comptes { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.comptes .arriere { color: var(--bleu-texte); }
.comptes .face { color: var(--ambre-texte); }
.balance { display: flex; height: 18px; border: 2px solid var(--encre); border-radius: 999px; overflow: hidden; background: var(--ligne); }
.balance .arriere { background: var(--bleu); }
.balance .face { background: var(--ambre); }
.balance .sep { width: 2px; background: var(--encre); }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gros-bouton { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 8px; border: 2px solid var(--encre); border-radius: 16px; box-shadow: 3px 3px 0 var(--encre); text-decoration: none; text-align: center; }
.gros-bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.gros-bouton svg { width: 24px; height: 24px; }
.gros-bouton b { font-family: var(--titre); font-weight: 400; font-size: 21px; line-height: 1.1; }
.gros-bouton span { font-size: 13px; font-weight: 600; }
.gros-bouton.arriere, .gros-bouton.arriere:hover { background: var(--bleu); color: #fff; }
.gros-bouton.face, .gros-bouton.face:hover { background: var(--ambre); color: var(--encre); }

/* ---------- météo, puces ---------- */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.puce b { font-weight: 800; }
.puce.contraire { background: var(--ambre-pale); color: var(--ambre-texte); }
.puce.porteur { background: var(--bleu-pale); color: var(--bleu-texte); }
.puce.libre { background: var(--fond); color: var(--encre); }
.bulle { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--fond); font-size: 17px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
button.puce { min-height: 42px; padding: 0 13px; border: 2px solid var(--ligne-forte); background: var(--carte); color: var(--encre); }
button.puce b { color: var(--ambre-texte); }
button.puce.porteur b { color: var(--bleu-texte); }
button.puce[aria-pressed='true'] { border-color: var(--encre); background: var(--ambre); color: var(--encre); }
button.puce[aria-pressed='true'] b { color: var(--encre); }
button.puce.porteur[aria-pressed='true'] { background: var(--bleu); color: #fff; }
button.puce.porteur[aria-pressed='true'] b { color: #fff; }

.sens-autre { display: flex; flex-direction: column; gap: 8px; }
.sens-autre .deux button.puce { justify-content: center; min-height: 46px; }

/* ---------- carnet de route ---------- */
.barres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; height: 110px; }
.barres > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 110px; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.barres .barre-j { width: 100%; border: 2px solid var(--encre); border-radius: 8px 8px 4px 4px; }
.barres .barre-j.creuse { border-style: dashed; border-color: var(--ligne-forte); background: transparent; height: 12px; }
.jours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; text-align: center; font-size: 14px; color: var(--encre-2); }
.jours .auj { font-weight: 700; color: var(--encre); }

/* ---------- l'oreillette ---------- */
.radio { display: flex; flex-direction: column; }
.msg { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.msg:last-child { border-bottom: 0; }
.msg .corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.msg .qui { font-size: 14px; color: var(--encre-2); }
.msg .qui b { color: var(--encre); }
.msg p { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.badge-vent { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--encre); display: grid; place-items: center; }
.badge-vent svg { width: 18px; height: 18px; }
.badge-vent.arriere { background: var(--bleu); color: #fff; }
.badge-vent.face { background: var(--ambre); color: var(--encre); }
.reponse { align-self: flex-start; padding: 3px 10px; border: 1.5px solid var(--encre); border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; }
.vide-radio { padding: 8px 0; color: var(--encre-2); }
.plus { align-self: flex-start; }

.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dans-le-mille { padding: 3px 8px; border-radius: 4px; background: var(--jaune); color: var(--encre); font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; white-space: nowrap; }

/* ---------- formulaires ---------- */
.bascule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 2px solid var(--encre); border-radius: 18px; background: var(--carte); }
.bascule.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
.bascule button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border: 0; border-radius: 13px; background: transparent; color: var(--encre); font-family: var(--titre); font-weight: 400; font-size: 20px; }
.bascule.trois button { min-height: 44px; border-radius: 11px; font-family: inherit; font-size: 15px; font-weight: 700; }
.bascule button svg { width: 20px; height: 20px; }
.bascule button[aria-pressed='true'] { background: var(--encre); color: #fff; }
.bascule button.arriere[aria-pressed='true'] { background: var(--bleu); color: #fff; }
.bascule button.face[aria-pressed='true'] { background: var(--ambre); color: var(--encre); }
.phrases { display: flex; flex-direction: column; gap: 8px; }
.phrase { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 2px solid var(--ligne); border-radius: 14px; background: var(--carte); text-align: left; font-size: 16px; line-height: 1.4; }
.phrase .rond { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--encre); border-radius: 50%; display: grid; place-items: center; }
.phrase[aria-pressed='true'] { border-color: var(--encre); }
.phrase.arriere[aria-pressed='true'] { background: var(--bleu-pale); }
.phrase.face[aria-pressed='true'] { background: var(--ambre-pale); }
.phrase[aria-pressed='true'] .rond::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--encre); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .etiquette-champ { font-size: 16px; font-weight: 700; }
.champ .ligne-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.champ .ligne-label span { font-family: var(--mono); font-size: 12px; color: var(--encre-2); }
input[type=text], input[type=password], textarea, select { width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--ligne-forte); border-radius: 12px; background: var(--carte); color: var(--encre); font-size: 16px; }
textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--bleu-pale); }
input:disabled { background: var(--fond); color: var(--encre-2); }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.case input { width: 22px; height: 22px; margin: 0; accent-color: var(--encre); flex: none; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px solid var(--encre); border-radius: 14px; background: var(--encre); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.bouton:hover { color: #fff; background: #3A3631; }
.bouton.second { background: var(--carte); color: var(--encre); }
.bouton.second:hover { background: var(--jaune); color: var(--encre); }
.bouton.fantome { border-color: transparent; background: transparent; color: var(--encre-2); text-decoration: underline; padding: 0 8px; }
.bouton.fantome:hover { color: var(--encre); background: transparent; }
.bouton:disabled { opacity: .55; cursor: default; }
.bouton.petit { min-height: 44px; padding: 0 14px; font-size: 15px; }
.bouton svg { width: 18px; height: 18px; }
.grand-bouton { min-height: 62px; border: 2px solid var(--encre); border-radius: 16px; box-shadow: 4px 4px 0 var(--encre); font-family: var(--titre); font-weight: 400; font-size: 23px; letter-spacing: .02em; }
.grand-bouton:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.grand-bouton.tour { background: var(--jaune); color: var(--encre); }
.grand-bouton.arriere { background: var(--bleu); color: #fff; }
.grand-bouton.face { background: var(--ambre); color: var(--encre); }
.grand-bouton:disabled { opacity: .6; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { font-size: 14px; color: var(--encre-2); text-align: center; }
.erreur { color: #A3172B; font-weight: 600; font-size: 15px; }
.alerte { margin: 0; font-size: 14px; font-weight: 600; color: var(--ambre-texte); }
.apercu { display: flex; gap: 12px; padding: 14px; border: 2px dashed var(--encre); border-radius: 16px; background: var(--carte); }
.apercu .corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.apercu p { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.bandeau { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--encre); border-radius: 16px; background: var(--bleu-pale); }
.bandeau svg { width: 26px; height: 26px; flex: none; color: var(--bleu-texte); }
.bandeau span { color: var(--bleu-texte); font-size: 15px; }

/* ---------- guidon : régimes ---------- */
.regimes { align-self: stretch; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.regimes button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 6px 0; border: 2px solid var(--gris-2); border-radius: 14px; background: var(--gris); color: var(--clair); }
.regimes button svg { width: 28px; height: 28px; }
.regimes button span { font-family: var(--mono); font-size: 14px; font-weight: 400; }
.regimes button[aria-pressed='true'] { border-color: #fff; color: var(--encre); box-shadow: 0 0 0 3px var(--encre); }

/* ---------- guidon : oreillette ---------- */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuile { padding: 12px 14px; border: 2px solid var(--encre); border-radius: 16px; display: flex; flex-direction: column; }
.tuile b { font-family: var(--mono); font-weight: 400; font-size: 32px; line-height: 1.1; }
.tuile span { font-size: 14px; font-weight: 700; }
.tuile.arriere { background: var(--bleu-pale); color: var(--bleu-texte); }
.tuile.face { background: var(--ambre-pale); color: var(--ambre-texte); }
.carte-msg { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--encre); border-radius: 18px; background: var(--carte); }
.carte-msg .haut { display: flex; align-items: center; gap: 10px; }
.carte-msg .haut .badge-vent { width: 34px; height: 34px; }
.carte-msg .qui { flex: 1; min-width: 0; font-size: 14px; color: var(--encre-2); }
.carte-msg .qui b { color: var(--encre); }
.carte-msg p { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.carte-msg.masque { border-style: dashed; box-shadow: none; }
.carte-msg.masque p { font-size: 15px; font-style: italic; color: var(--encre-2); }
.nouveau { padding: 2px 8px; border-radius: 4px; background: var(--jaune); color: var(--encre); font-family: var(--mono); font-size: 11px; font-weight: 400; }
.choix-rep { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-rep button { min-height: 44px; padding: 0 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--carte); color: var(--encre); font-size: 15px; font-weight: 700; }
.choix-rep button.principal.arriere { background: var(--bleu); color: #fff; }
.choix-rep button.principal.face { background: var(--ambre); }
.choix-rep button.masquer { display: inline-flex; align-items: center; gap: 6px; border-color: var(--ligne-forte); color: var(--encre-2); font-weight: 600; }
.choix-rep button.masquer svg { width: 16px; height: 16px; }
.repondu { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.journal { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--encre-2); }

/* ---------- notifications : activation pas à pas ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.appareil-actuel { font-size: 15px; color: var(--encre-2); }
.appareil-actuel b { color: var(--encre); }
.bandeau-ok { padding: 10px 14px; border: 2px solid var(--bleu); border-radius: 12px; background: var(--bleu-pale); color: var(--bleu-texte); font-weight: 600; }
#zone-activation:empty { display: none; }
#zone-activation { display: flex; flex-direction: column; gap: 12px; }
.etapes-activation { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--fond); border-radius: 12px; }
.etapes-activation li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.etapes-activation li.attente { color: var(--encre-2); }
.pastille-etape { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ligne-forte); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
li.encours .pastille-etape { border-color: var(--bleu); border-right-color: transparent; animation: tourne .8s linear infinite; }
li.ok .pastille-etape { background: var(--bleu); border-color: var(--bleu); }
li.ok .pastille-etape::after { content: '✓'; }
li.echec .pastille-etape { background: var(--ambre); border-color: var(--ambre); color: var(--encre); }
li.echec .pastille-etape::after { content: '!'; }
li.echec { font-weight: 700; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { li.encours .pastille-etape { animation: none; border-style: dotted; } }
.aide-notif { border: 2px solid var(--ambre); background: var(--ambre-pale); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.aide-notif .titre-aide { font-weight: 800; color: var(--ambre-texte); }
.aide-notif ul, .aide-details ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.aide-notif .mono { font-size: 12px; word-break: break-word; }
.aide-details { border: 1.5px solid var(--ligne-forte); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.aide-details summary { cursor: pointer; font-weight: 700; }
.aide-details[open] summary { margin-bottom: 8px; }
.aide-details p { margin-top: 8px; color: var(--encre-2); }
.appareils { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.appareils li { display: flex; flex-direction: column; gap: 2px; }
.badge-ici { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--jaune); color: var(--encre); font-size: 12px; font-weight: 700; vertical-align: 2px; }

/* ---------- le home-trainer ---------- */
.jambes-jour { display: flex; align-items: center; gap: 14px; }
.jambes-jour > svg { flex: none; }
.jambes-jour b { font-size: 17px; }
.jambes-jour p { color: var(--clair); }
.carte.sombre .puce.porteur { background: #D5EEEE; }
.pistes { display: grid; gap: 16px; }
@media (min-width: 900px) { .page:has(.pistes) { max-width: 1080px; } .pistes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.piste-jeu { gap: 10px; }
.piste-jeu .vignette { margin: -18px -18px 4px; border-bottom: 2px solid var(--encre); border-radius: 20px 20px 0 0; overflow: hidden; }
.piste-jeu .vignette svg { display: block; width: 100%; height: auto; }
.piste-jeu .record { font-size: 15px; color: var(--encre-2); margin-top: auto; }
.piste-jeu .record b { color: var(--encre); font-family: var(--mono); }
body.simu-ouvert { overflow: hidden; }
.simu { position: fixed; inset: 0; z-index: 50; background: #1D1B18; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: contain; }
.simu-canevas { position: absolute; inset: 0; display: block; outline: none; }
.simu-boutons { position: absolute; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); display: flex; gap: 8px; z-index: 3; }
.simu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(29,27,24,.7); color: #fff; display: grid; place-items: center; }
.simu-btn svg { width: 18px; height: 18px; fill: currentColor; }
.simu-annonces { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(92vw, 560px); pointer-events: none; z-index: 2; }
.simu-annonce { padding: 8px 14px; border-radius: 12px; background: rgba(29,27,24,.88); border: 1.5px solid rgba(255,255,255,.25); font-weight: 600; font-size: 15px; text-align: center; transition: opacity .4s, transform .4s; }
.simu-annonce.arriere { background: rgba(14,124,134,.95); border-color: #D5EEEE; }
.simu-annonce.face { background: rgba(242,107,29,.95); color: var(--encre); border-color: #1D1B18; }
.simu-annonce.part { opacity: 0; transform: translateY(-8px); }
.simu-commandes { display: none; }
.simu.tactile .simu-commandes { display: block; }
.simu-joystick { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); width: 136px; height: 136px; border-radius: 50%;
  background: rgba(29,27,24,.35); border: 2px solid rgba(255,255,255,.55); box-shadow: inset 0 0 0 12px rgba(255,255,255,.05); z-index: 3; touch-action: none; }
.simu-manche { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; border: 3px solid var(--encre); box-shadow: 0 4px 0 rgba(0,0,0,.45); pointer-events: none; }
.simu-gaz, .simu-boost { position: absolute; z-index: 3; display: grid; place-items: center; border: 3px solid var(--encre); box-shadow: 0 5px 0 rgba(0,0,0,.45); touch-action: none; }
.simu-gaz { right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); width: 92px; height: 92px; border-radius: 50%; background: var(--jaune); color: var(--encre); font-family: var(--titre); font-weight: 400; font-size: 26px; }
.simu-gaz.appuye { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.45); background: #FFE27A; }
.simu-boost { right: calc(max(22px, env(safe-area-inset-right)) + 108px); bottom: max(30px, env(safe-area-inset-bottom)); width: 66px; height: 66px; border-radius: 50%; background: var(--bleu); color: #fff; border-color: #fff; }
.simu-boost svg { width: 28px; height: 28px; }
.simu-nb { position: absolute; right: -6px; top: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: #fff; color: var(--encre); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 400; border: 2px solid var(--encre); }
.simu-panneau { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(29,27,24,.55); overflow-y: auto; }
.simu-carte { width: min(100%, 520px); background: var(--carte); color: var(--encre); border: 2px solid var(--encre); border-radius: 22px; box-shadow: 4px 4px 0 var(--jaune); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.simu-carte h2 { font-family: var(--titre); font-weight: 400; font-size: 34px; line-height: 1; }
.simu-carte p { font-size: 16px; }
.simu-taxi { align-self: flex-start; padding: 4px 8px; border: 2px solid var(--jaune); border-radius: 4px; background: var(--encre); color: var(--jaune); font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.simu-taxi.rate { border-color: var(--ambre); color: var(--ambre); }
.simu-puissance { font-family: var(--mono); font-size: 13px !important; color: var(--encre-2); }
.simu-aide { font-size: 15px !important; color: var(--encre-2); line-height: 1.9; }
.simu-aide kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin: 0 2px; border: 1.5px solid var(--encre); border-radius: 6px; box-shadow: 0 2px 0 var(--encre); font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--encre); background: #fff; }
.simu-score { font-family: var(--mono); font-weight: 400; font-size: 34px !important; }
.simu-record { font-weight: 700; color: var(--encre-2); }
.simu-record.nouveau { color: var(--encre); background: var(--jaune); align-self: flex-start; padding: 4px 10px; border-radius: 8px; }
.simu-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.simu-principal { flex: 1 1 180px; min-height: 56px; border: 2px solid var(--encre); border-radius: 14px; background: var(--jaune); color: var(--encre); font-family: var(--titre); font-weight: 400; font-size: 22px; box-shadow: 0 4px 0 var(--encre); }
.simu-second { flex: 1 1 140px; min-height: 56px; border: 2px solid var(--encre); border-radius: 14px; background: #fff; color: var(--encre); font-weight: 700; font-size: 16px; }

/* ---------- divers ---------- */
.chargement, .vide { padding: 60px 20px; text-align: center; color: var(--encre-2); }
.vide h2 { font-family: var(--titre); font-weight: 400; font-size: 30px; color: var(--encre); margin-bottom: 8px; }
.connexion { max-width: 420px; width: 100%; margin: 0 auto; }
.merci { align-items: center; text-align: center; padding: 28px 20px; }
.merci .rond-vent { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--encre); display: grid; place-items: center; }
.merci .rond-vent svg { width: 34px; height: 34px; }
.merci .rond-vent.arriere { background: var(--bleu); color: #fff; }
.merci .rond-vent.face { background: var(--ambre); color: var(--encre); }
.merci h2 { font-size: 32px; }
#toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 10; width: min(92vw, 440px); pointer-events: none; }
.toast { padding: 12px 16px; border: 2px solid var(--encre); border-radius: 14px; background: var(--encre); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 4px 4px 0 var(--jaune); }
.toast.erreur { background: #A3172B; }

/* ---------- Matéomètre : compteur, cassette, maillot ---------- */
.lcd.petit { width: 132px; height: auto; flex: none; display: block; }
.cassette { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.pignons { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.pignon { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pignon svg { display: block; }
.pignon span { font-family: var(--mono); font-size: 12px; color: var(--clair-2); }
.pignon.actif span { color: var(--jaune); }
.cassette .legende { font-size: 13px; color: var(--clair-2); font-style: italic; }
.maillot-jour { align-self: stretch; display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--gris-2); border-radius: 14px; background: var(--gris); }
.maillot-jour svg { flex: none; }
.maillot-jour span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--clair-2); }
.maillot-jour b { font-weight: 600; font-size: 15px; color: #fff; }
.instrument .regime { font-size: 46px; }
.tuile .libelle { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.taxi-doux { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); }

/* ---------- la flamme rouge ---------- */
.flamme { border-color: var(--encre); }
.titre-flamme { display: flex; align-items: center; gap: 12px; }
.titre-flamme svg { flex: none; }
.decompte { display: flex; align-items: baseline; gap: 10px; }
.decompte b { font-family: var(--titre); font-weight: 400; font-size: 54px; line-height: .95; color: var(--rouge); }
.decompte span { font-weight: 700; color: var(--encre-2); }
.route-flamme { position: relative; height: 34px; margin: 8px 26px 0 4px; }
.route-flamme::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ligne) 0 10px, transparent 10px 16px); }
.route-flamme .fait { position: absolute; left: 0; top: 22px; height: 6px; border-radius: 3px; background: var(--rouge); }
.route-flamme .velo-flamme { position: absolute; top: -2px; width: 28px; height: 28px; margin-left: -14px; color: var(--encre); }
.route-flamme .velo-flamme svg { width: 28px; height: 28px; display: block; }
.route-flamme .damier { position: absolute; right: -24px; top: 0; }
.legendes-flamme { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--encre-2); }

/* ---------- la rue : bidon et klaxon ---------- */
.rue-jeu { position: relative; width: 100%; max-width: 520px; align-self: center; border: 2px solid var(--encre); border-radius: 22px; box-shadow: 4px 4px 0 var(--encre); overflow: hidden; background: #EAF3F2; }
.rue-jeu svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.rue-jeu.klaxon svg { cursor: default; }
.rue-jeu svg:focus-visible { outline: 3px solid var(--bleu); outline-offset: -4px; }
.vitesse-mateo { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(29,27,24,.82); color: var(--lcd); font-size: 11px; pointer-events: none; }
.rue-jeu .verdict { position: absolute; left: 50%; top: 80%; transform: translate(-50%, -50%); font-family: var(--titre); font-weight: 400; font-size: 36px; line-height: 1.05;
  color: #fff; text-align: center; text-transform: uppercase; text-shadow: 0 3px 0 var(--encre), 0 0 18px rgba(29,27,24,.45); pointer-events: none; width: 90%; }
.rue-jeu .verdict.mille { color: var(--jaune); font-size: 44px; }
.rue-jeu .verdict.rate { font-size: 24px; }
.pouet { align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 320px); min-height: 72px; border: 3px solid var(--encre); border-radius: 999px;
  background: var(--ambre); color: var(--encre); box-shadow: 0 5px 0 var(--encre); font-family: var(--titre); font-weight: 400; font-size: 30px; text-transform: uppercase; touch-action: manipulation; }
.pouet:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--encre); }
.pouet svg { width: 30px; height: 30px; }

/* ---------- guidon : braquet et maillots ---------- */
.ligne-compteur { display: flex; align-items: center; gap: 14px; }
.ligne-compteur .nom-braquet { display: block; font-family: var(--titre); font-weight: 400; font-size: 28px; line-height: 1.05; text-transform: uppercase; color: #fff; }
.ligne-compteur .devise { display: block; margin-top: 4px; font-size: 15px; color: var(--clair); }
.maillots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.maillots button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; padding: 8px 2px; border: 2px solid var(--ligne-forte); border-radius: 14px; background: var(--carte); color: var(--encre); font-size: 12px; font-weight: 700; }
.maillots button[aria-pressed='true'] { border-color: var(--encre); background: var(--jaune); box-shadow: 2px 2px 0 var(--encre); }
.regimes button { background: var(--gris); border-color: var(--gris-2); color: var(--clair); }
