/* L'Anatolomètre — habillage : tableau de bord d'avion et signalisation d'aéroport. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url(/polices/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url(/polices/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url(/polices/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url(/polices/barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url(/polices/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url(/polices/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family: 'B612 Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/polices/b612-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'B612 Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url(/polices/b612-mono-700.woff2) format('woff2'); }

:root {
  --fond: #E8EDF1; --carte: #FFFFFF; --encre: #101418; --encre-2: #4B5560; --ligne: #D3DAE0; --ligne-forte: #C3CBD3;
  --panneau: #1A2027; --cadran: #0B0E11; --cadre: #11161B; --gris: #2A323B; --gris-2: #3A444F; --clair: #C5CED6; --clair-2: #A9B4BF;
  --jaune: #FFC800; --bleu: #1565C0; --bleu-texte: #0D4A99; --bleu-pale: #DCEBFF; --ambre: #FF8F00; --ambre-texte: #8A4B00; --ambre-pale: #FFE7C2;
  --titre: 'Barlow Condensed', 'Arial Narrow', Barlow, system-ui, sans-serif; --mono: 'B612 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: Barlow, 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: 800; 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.cockpit .logo > span:last-child { display: none; } .barre.cockpit .nav { gap: 6px; } .barre.cockpit .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: 700; }

/* ---------- 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: 800; font-size: 38px; line-height: 1; }
.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: 800; 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: 700; 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: 700; 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: #6EC6FF; }
.instrument svg.cadran { width: min(100%, 300px); height: auto; display: block; }
.instrument .regime { font-family: var(--titre); font-weight: 800; 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; }
.aiguille { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 150px 150px; }
@media (prefers-reduced-motion: reduce) { .aiguille { transition: none; } }

/* ---------- 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: 800; 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 vol ---------- */
.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: 700; }
.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); }

/* ---------- fréquence radio ---------- */
.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: 700; 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: 700; text-transform: uppercase; white-space: nowrap; }

/* ---------- l'avion en papier ---------- */
.piste-lancer { position: relative; width: 100%; max-width: 460px; align-self: center; aspect-ratio: 400 / 480; border: 2px solid var(--encre); border-radius: 22px;
  box-shadow: 4px 4px 0 var(--encre); overflow: hidden; background: #DCEBFF; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.piste-lancer:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.piste-lancer svg.decor, .piste-lancer svg.manche, .piste-lancer svg.visee { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.piste-lancer .papier { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 6px 4px rgba(16,20,24,.3)); }
.piste-lancer .papier svg { width: 100%; height: 100%; display: block; }
.piste-lancer .vent-travers { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(16,20,24,.75); color: #fff; font-size: 11px; font-weight: 700; }
.piste-lancer .jauge-puissance { position: absolute; right: 14px; bottom: 18px; width: 18px; height: 46%; border: 2px solid var(--encre); border-radius: 9px; background: rgba(255,255,255,.7); overflow: hidden; display: flex; align-items: flex-end; }
.piste-lancer .jauge-puissance > div { width: 100%; height: 0; background: linear-gradient(to top, #FFC800, #FF8F00); }
.piste-lancer .verdict { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-family: var(--titre); font-weight: 800; font-size: 34px; line-height: 1;
  color: #fff; text-align: center; text-transform: uppercase; text-shadow: 0 3px 0 var(--encre), 0 0 18px rgba(16,20,24,.5); pointer-events: none; white-space: nowrap; }
.piste-lancer .verdict.mille { color: var(--jaune); font-size: 44px; }
.piste-lancer .verdict.rate { font-size: 24px; white-space: normal; width: 86%; }
.piste-lancer.touche svg.decor .mille { animation: eclat .6s ease-out 2; }
@keyframes eclat { 50% { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .piste-lancer.touche svg.decor .mille { animation: none; } }

/* ---------- 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: 800; 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: #2A323B; }
.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: 800; 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: #A11A1A; 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; }

/* ---------- cockpit : 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: #232A32; color: #E8EDF1; }
.regimes button svg { width: 28px; height: 28px; }
.regimes button span { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.regimes button[aria-pressed='true'] { border-color: #fff; color: var(--encre); box-shadow: 0 0 0 3px var(--encre); }

/* ---------- cockpit : radio ---------- */
.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: 700; 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: 700; }
.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 simulateur ---------- */
.puissance-jour { display: flex; align-items: center; gap: 14px; }
.puissance-jour .mini-cadran { width: 92px; flex: none; }
.puissance-jour .mini-cadran svg { width: 100%; height: auto; display: block; }
.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: #0B0E11; 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(16,20,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(16,20,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(21,101,192,.95); border-color: #6EC6FF; }
.simu-annonce.face { background: rgba(255,143,0,.95); color: var(--encre); border-color: #101418; }
.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(16,20,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: 800; font-size: 26px; }
.simu-gaz.appuye { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.45); background: #FFE066; }
.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: 700; border: 2px solid var(--encre); }
.simu-panneau { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(11,14,17,.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: 800; 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: 700; 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: 700; color: var(--encre); background: #fff; }
.simu-score { font-family: var(--mono); font-weight: 700; 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: 800; 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: 800; 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: #A11A1A; }
