/* Néon : verre fumé et filets de lumière sur fond nuit. Cadres et icônes peints par Codex (img/cadre-*, img/ic-*),
   police Rajdhani (technique, lisible). Pensé téléphone d'abord : 740 × 360 en paysage. */
@font-face { font-family: 'Rajdhani'; src: url(polices/rajdhani-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url(polices/rajdhani-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url(polices/rajdhani-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --cyan: #22e5ff; --ambre: #ffb020; --framboise: #ff2d78; --acide: #9dff2e;
  --texte: #e6f6ff; --doux: rgba(214, 238, 255, .62); --nuit: #05070f; --verre: rgba(8, 16, 32, .82);
  --marge: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--nuit); color: var(--texte);
  font: 500 16px/1.25 'Rajdhani', system-ui, sans-serif; font-synthesis: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: none; }
img { pointer-events: none; }
button { font: inherit; color: inherit; cursor: pointer; padding: 0; border: 0; background: none; }
[hidden] { display: none !important; }
#jeu { position: fixed; inset: 0; touch-action: none; }
#jeu canvas { display: block; touch-action: none; }
body:not(.en-partie) #jeu { visibility: hidden; }

/* Fond des menus : la piste au-dessus de la ville (Codex), voilée. */
#fond-menus { position: fixed; inset: 0; z-index: 1; }
#fond-menus .illustration, #titre .illustration { position: absolute; inset: 0; background: url(img/fond.webp) center / cover no-repeat; }
#fond-menus .voile { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(5, 7, 15, .45), rgba(5, 7, 15, .88) 75%); }
body.en-partie #fond-menus { display: none; }

/* ---------- Boutons ---------- */
.bouton-vif { position: relative; min-height: 50px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: solid transparent; border-width: 16px 24px; border-image: url(img/cadre-bouton.webp) 60 90 60 90 fill / 16px 24px stretch;
  font-weight: 700; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 10px rgba(34, 229, 255, .8); transition: transform .08s, filter .08s; }
.bouton-vif.grand { min-height: 62px; padding: 0 54px; font-size: 22px; }
.bouton-vif.petit { min-height: 40px; padding: 0 14px; font-size: 14px; border-width: 12px 18px; border-image-width: 12px 18px; }
.bouton-vif .ic { width: 26px; height: 26px; object-fit: contain; margin-left: -8px; }
.bouton-vif:disabled { filter: grayscale(1) brightness(.6); cursor: default; }
.bouton-filet { min-height: 44px; padding: 0 18px; border: 1px solid rgba(160, 225, 255, .3); border-radius: 3px; background: rgba(8, 18, 36, .6);
  font-weight: 600; font-size: 16px; letter-spacing: .06em; color: var(--texte); transition: transform .08s, border-color .08s; }
.bouton-filet.petit { min-height: 36px; font-size: 14px; padding: 0 12px; }
.lien-texte { color: var(--doux); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
button.appuye, button:active { transform: scale(.97); filter: brightness(1.25); }
.rond { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; padding: 0;
  background: url(img/cadre-rond.webp) center / contain no-repeat; }
.rond .ic { width: 24px; height: 24px; object-fit: contain; }
.rond.reglages { top: var(--marge); right: var(--marge); }
.ic { display: block; }

/* ---------- Panneaux ---------- */
.panneau { border: solid transparent; border-width: 22px 26px; border-image: url(img/cadre-panneau.webp) 52 62 56 62 fill / 22px 26px stretch;
  padding: 2px 6px; }
.panneau h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.pile { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.centre { margin: auto; }
.texte-centre { text-align: center; }
.regle { margin: 4px 0; color: var(--doux); font-size: 15px; text-align: center; }
.petit { margin: 6px 0; color: var(--doux); font-size: 13px; line-height: 1.3; }
.ligne-boutons { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Écrans ---------- */
.ecran { position: fixed; inset: 0; z-index: 10; }
.ecran.voile { z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(3, 5, 12, .66);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.barre-haut { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 var(--marge); }
.barre-haut h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.retour { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; background: url(img/cadre-rond.webp) center / contain no-repeat; }
.retour .ic { width: 22px; height: 22px; object-fit: contain; }
.compte-etoiles { margin-left: auto; margin-right: 60px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; color: var(--ambre); }
.compte-etoiles::before, .etoile { content: ''; display: inline-block; width: 16px; height: 16px; background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.contenu { position: absolute; top: 64px; left: var(--marge); right: var(--marge); bottom: var(--marge); display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.contenu.centre-col { flex-direction: column; align-items: center; justify-content: center; gap: 16px; }

/* Titre */
#titre { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; opacity: 0; transition: opacity .45s; }
#titre.ouvert { opacity: 1; }
#titre.sortie { opacity: 0; pointer-events: none; }
#titre .illustration::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(5, 7, 15, .2), rgba(5, 7, 15, .65)); }
#titre .titre-jeu { position: relative; width: min(72vw, 640px); max-height: 42vh; object-fit: contain; filter: drop-shadow(0 0 24px rgba(34, 229, 255, .45)); }
#titre .bas { position: relative; }

/* Menu */
#menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5vh; }
.titre-menu { width: min(38vw, 340px); max-height: 20vh; object-fit: contain; filter: drop-shadow(0 0 16px rgba(34, 229, 255, .4)); }
.modes { display: flex; gap: 12px; justify-content: center; align-items: stretch; padding: 0 60px; }
.mode { width: 172px; min-height: 178px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; text-align: center;
  border: solid transparent; border-width: 22px 22px; border-image: url(img/cadre-panneau.webp) 52 62 56 62 fill / 22px 22px stretch;
  padding: 0 2px; transition: transform .1s, filter .1s; }
.mode .ic { width: 50px; height: 50px; object-fit: contain; margin-bottom: 4px; }
.mode b { font-size: 21px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.mode small { font-size: 14px; line-height: 1.2; color: var(--doux); min-height: 34px; }
.mode em { font-style: normal; font-weight: 700; font-size: 15px; color: var(--ambre); margin-top: auto; display: flex; align-items: center; gap: 5px; }
.mode.principal { filter: drop-shadow(0 0 14px rgba(34, 229, 255, .35)); }
.mode.principal b { color: var(--cyan); text-shadow: 0 0 12px rgba(34, 229, 255, .6); }
.coin-gauche { position: absolute; top: var(--marge); left: var(--marge); display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 8px;
  border: 1px solid rgba(160, 225, 255, .28); border-radius: 3px; background: rgba(8, 18, 36, .7); font-weight: 600; letter-spacing: .06em; }
.coin-gauche img { width: 62px; height: 26px; object-fit: contain; }
#liens-plateforme { position: absolute; left: var(--marge); bottom: var(--marge); display: flex; align-items: center; gap: 10px; }
.lien { height: 22px; padding: 0 9px; border-radius: 3px; background: #000; font-size: 11px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); position: relative; }
.lien::after { content: ''; position: absolute; inset: -10px -4px; }

/* Pistes */
.deux-pistes { align-items: stretch; }
#grille-pistes { flex: 1 1 auto; max-width: 470px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-content: start; overflow-y: auto; padding: 2px; touch-action: pan-y; }
.tuile { aspect-ratio: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(120, 210, 255, .28); border-radius: 3px; background: rgba(8, 18, 36, .78); font-weight: 700; font-size: 17px; }
.tuile .etoiles { display: flex; gap: 1px; color: var(--ambre); }
.tuile .etoile { width: 9px; height: 9px; opacity: .22; background: #fff; }
.tuile .etoile.oui { opacity: 1; background: var(--ambre); }
.tuile.choisie { border-color: var(--cyan); box-shadow: 0 0 12px rgba(34, 229, 255, .5) inset, 0 0 10px rgba(34, 229, 255, .35); }
.tuile.verrou { color: rgba(255, 255, 255, .3); }
.tuile.verrou img { width: 18px; height: 18px; object-fit: contain; opacity: .55; }
#fiche-piste { flex: 0 0 250px; display: flex; flex-direction: column; gap: 4px; }
#fiche-piste h3 { font-size: 18px; color: #fff; letter-spacing: .14em; margin: 0; }
#fiche-plan { width: 100%; height: auto; border: 1px solid rgba(120, 210, 255, .2); border-radius: 2px; background: #070c1a; }
#fiche-infos { list-style: none; margin: 2px 0; padding: 0; font-size: 14px; color: var(--doux); display: grid; gap: 1px; }
#fiche-infos li { display: flex; align-items: center; gap: 6px; }
#fiche-infos li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
#fiche-etoiles { display: flex; gap: 4px; color: var(--ambre); }
#fiche-etoiles .etoile { width: 20px; height: 20px; background: rgba(255, 255, 255, .18); }
#fiche-etoiles .etoile.oui { background: var(--ambre); filter: drop-shadow(0 0 6px rgba(255, 176, 32, .6)); }
#fiche-piste .bouton-vif { margin-top: auto; }

/* Duel libre, choix */
.choix { display: flex; align-items: center; gap: 8px; }
.choix span { width: 110px; text-align: right; margin-right: 6px; color: var(--doux); font-weight: 600; }
.choix button, .choix-langue button { min-width: 74px; height: 42px; padding: 0 10px; border: 1px solid rgba(160, 225, 255, .25); border-radius: 3px;
  background: rgba(8, 18, 36, .6); font-weight: 600; font-size: 16px; }
.choix button.pris, .choix-langue button.actif { border-color: var(--cyan); color: #fff; box-shadow: 0 0 14px rgba(34, 229, 255, .4) inset; }

/* Ma moto */
#liste-motos { display: flex; gap: 12px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.carte-moto { width: 160px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1px solid rgba(160, 225, 255, .22);
  border-radius: 3px; background: rgba(8, 18, 36, .74); }
.carte-moto img.moto { width: 136px; height: 70px; object-fit: contain; margin: 18px 0 6px; }
.carte-moto.verrou img.moto { filter: grayscale(1) brightness(.35); }
.carte-moto.choisie { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 229, 255, .35) inset; }
.carte-moto .prix { font-size: 14px; color: var(--ambre); display: flex; gap: 5px; align-items: center; }

/* Multijoueur */
.contenu.deux { align-items: stretch; }
#sans-compte { max-width: 460px; align-self: center; }
.pile-multi { display: flex; gap: 14px; align-items: stretch; width: 100%; max-width: 720px; }
.pile-multi > .panneau:first-child { flex: 0 0 250px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pile-multi .liste { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.sous-bouton { margin: 8px 0 0; font-size: 14px; color: var(--doux); text-align: center; }
#liste-amis { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; touch-action: pan-y; padding-right: 2px; }
.ami { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 8px; border: 1px solid rgba(160, 225, 255, .14); border-radius: 3px; background: rgba(4, 10, 22, .5); text-align: left; width: 100%; }
.ami.hors-ligne { opacity: .5; }
.ami-av { flex: 0 0 34px; height: 34px; border-radius: 3px; background: rgba(34, 229, 255, .12) center / cover; }
.ami-nom { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ami-nom b { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ami-nom small { color: var(--doux); font-size: 13px; }
.ami-inviter { font-weight: 700; color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.ami.invite .ami-inviter { color: var(--acide); }
.vide { color: var(--doux); font-size: 14px; margin: 4px 0; }
#places { display: grid; grid-template-columns: repeat(4, 120px); gap: 8px; margin-bottom: 8px; }
.place { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid rgba(160, 225, 255, .2); border-radius: 3px; background: rgba(4, 10, 22, .5); }
.place.libre { opacity: .45; border-style: dashed; }
.place .ami-av { width: 40px; height: 40px; flex: none; }
.place b { font-size: 15px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place small { font-size: 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: .1em; }
.place .moto-place { width: 70px; height: 24px; object-fit: contain; }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; }
.reglage > span { font-weight: 600; font-size: 17px; display: flex; flex-direction: column; }
.reglage small { font-size: 13px; color: var(--doux); font-weight: 500; }
.interrupteur { width: 58px; height: 30px; border-radius: 15px; border: 1px solid rgba(160, 225, 255, .3); background: rgba(8, 18, 36, .8); position: relative; flex: none; }
.interrupteur i { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .45); transition: left .15s, background .15s; }
.interrupteur[aria-checked="true"] { border-color: var(--cyan); box-shadow: 0 0 10px rgba(34, 229, 255, .35) inset; }
.interrupteur[aria-checked="true"] i { left: 32px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.choix-langue { display: flex; gap: 6px; }
.version-jeu { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--doux); margin-top: 4px; }
#reglages .panneau { min-width: 380px; }
.bouton-app { min-height: 50px; padding: 0 26px; border-radius: 4px; font-weight: 700; font-size: 18px; color: #fff; }
.bouton-app.whatsapp { background: #1fa855; }
.bouton-app.telegram { background: #2a9ad6; }

/* ---------- En partie ---------- */
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#hud > * { pointer-events: none; }
#hud #b-pause { pointer-events: auto; top: 6px; left: var(--marge); width: 42px; height: 42px; }
#hud #b-pause .ic { width: 18px; height: 18px; }
#manches { position: absolute; top: max(6px, env(safe-area-inset-top)); left: 0; right: 0; margin: auto; width: fit-content; display: flex; gap: 18px; align-items: center; height: 26px; }
.camp { display: flex; gap: 4px; align-items: center; }
.camp b { font-size: 13px; font-weight: 700; letter-spacing: .12em; margin-right: 4px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp i { width: 18px; height: 5px; border-radius: 1px; background: currentColor; opacity: .2; }
.camp i.oui { opacity: 1; box-shadow: 0 0 8px currentColor; }
.camp.sorti { opacity: .4; }
.vague { font-size: 20px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ambre); text-shadow: 0 0 10px rgba(255, 176, 32, .5); }
#compte { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 110px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 26px var(--cyan); opacity: 0; }
#compte.on { animation: compte .9s ease-out; }
@keyframes compte { 0% { opacity: 0; transform: scale(1.5); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
#message { position: absolute; left: 0; right: 0; top: 36%; text-align: center; font-size: 34px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .25s;
  text-shadow: 0 0 18px currentColor, 0 2px 6px #000; }
#message.on { opacity: 1; }
#message small { display: block; font-size: 16px; letter-spacing: .1em; opacity: .75; margin-top: 4px; text-transform: none; color: #fff; text-shadow: 0 1px 4px #000; }
#aide { position: absolute; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); margin: 0 auto; width: fit-content; max-width: 80%; padding: 6px 14px; border-radius: 3px;
  background: rgba(3, 6, 14, .78); font-size: 16px; font-weight: 600; text-align: center; opacity: 0; transition: opacity .3s; }
#aide.on { opacity: 1; }

/* Fin */
.fin { min-width: 360px; text-align: center; }
.fin h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#gros-fin { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 60px; font-size: 58px; font-weight: 700; color: #fff; text-shadow: 0 0 22px var(--cyan); }
#gros-fin .etoile { width: 46px; height: 46px; background: rgba(255, 255, 255, .15); }
#gros-fin .etoile.oui { background: var(--ambre); filter: drop-shadow(0 0 10px rgba(255, 176, 32, .7)); }
#detail-fin { color: var(--doux); font-size: 15px; display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
#detail-fin .rang-fin { display: flex; justify-content: center; gap: 14px; }
#pause .panneau, #fin .panneau { min-width: 300px; }
#pause h2 { margin: 0 0 4px; text-align: center; font-size: 24px; letter-spacing: .2em; text-transform: uppercase; }

/* Tutoriel */
#tuto { position: fixed; z-index: 25; left: 0; right: 0; bottom: 14px; margin: auto; width: min(560px, calc(100% - 140px)); padding: 10px 14px; border-radius: 3px;
  background: rgba(4, 10, 24, .9); border: 1px solid rgba(34, 229, 255, .5); box-shadow: 0 0 20px rgba(34, 229, 255, .2); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; transition: opacity .2s; }
#tuto.efface { opacity: .15; }
#tuto small { grid-column: 1; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#tuto p { grid-column: 1; margin: 0; font-size: 18px; font-weight: 600; }
#tuto em { grid-column: 1; font-style: normal; color: var(--ambre); font-weight: 700; font-size: 15px; }
#tuto em.secoue { animation: secoue .3s; }
#tuto button { grid-column: 2; grid-row: 1 / span 3; }
@keyframes secoue { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
#tuto-geste { position: fixed; z-index: 24; pointer-events: none; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; }
#tuto-geste i { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 18px var(--cyan); animation: glisse 1.3s ease-in-out infinite; }
#tuto-geste.haut i { --dx: 0px; --dy: -70px; }
#tuto-geste.droite i { --dx: 70px; --dy: 0px; }
@keyframes glisse { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(var(--dx), var(--dy)); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* Tourner le téléphone (ecran.js) */
#tourner { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: var(--nuit); text-align: center; }
#tourner.on, #tourner.visible { display: flex; }
#tourner img { width: min(60vw, 300px); }
#tourner p { font-size: 20px; font-weight: 600; margin: 12px 0; }
#tourner .aide { font-size: 14px; color: var(--doux); }

/* Toasts */
#toasts { position: fixed; z-index: 60; top: 12px; left: 0; right: 0; margin: auto; width: fit-content; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 3px; background: rgba(4, 10, 24, .94); border: 1px solid rgba(34, 229, 255, .45); font-weight: 600; font-size: 15px; animation: toast 2.9s forwards; }
.toast i { width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.toast.erreur { border-color: rgba(255, 45, 120, .6); } .toast.erreur i { background: var(--framboise); box-shadow: 0 0 8px var(--framboise); }
.toast.reussite { border-color: rgba(157, 255, 46, .5); } .toast.reussite i { background: var(--acide); box-shadow: 0 0 8px var(--acide); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Petits écrans (téléphone en paysage) */
@media (max-height: 430px) {
  .barre-haut { height: 54px; } .contenu { top: 54px; }
  .barre-haut h2 { font-size: 19px; }
  .titre-menu { max-height: 17vh; }
  #menu { gap: 10px; }
  .mode { width: 148px; min-height: 160px; border-width: 18px; border-image-width: 18px; }
  .mode .ic { width: 40px; height: 40px; }
  .mode b { font-size: 18px; } .mode small { font-size: 13px; min-height: 31px; }
  .panneau { border-width: 18px 20px; border-image-width: 18px 20px; }
  #grille-pistes { gap: 5px; max-width: 400px; }
  .tuile { font-size: 15px; }
  #fiche-piste { flex-basis: 230px; }
  #places { grid-template-columns: repeat(4, 104px); }
  .carte-moto img.moto { margin: 8px 0 2px; }
  #fiche-plan { max-height: 64px; object-fit: contain; }
  #fiche-piste .petit { font-size: 12px; margin: 2px 0; }
  #fiche-piste { gap: 2px; }
  .bouton-vif { min-height: 44px; font-size: 16px; }
  #compte { font-size: 86px; }
  #message { font-size: 27px; }
  #reglages .panneau { min-width: 340px; }
}
@media (max-width: 700px) { .modes { padding: 0 8px; } .mode { width: 136px; } }
