/* responsive.css · retouches d'affichage pour tous les supports (30/11), à charger après les autres feuilles.
   Chargée en dernier dans le <head>, mais boutons.css, compte.css et decor.css sont reliées plus bas, dans le <body> :
   elles passeraient donc devant à poids égal. D'où les sélecteurs un peu plus lourds (html:root body …).
   Rien ici ne touche à l'onglet « Le voyage d'Axi » (carte en refonte).
   Vérifié par _essais/responsive/test-responsive.py (12 supports, de 360 à 2560 px). */

/* ---------- 1. En-tête de la fenêtre de jeu : la croix ne s'écrase plus, l'étiquette de matière n'est plus tronquée ---------- */
/* avant : sur téléphone la croix « fermer » tombait à 23 px de large et « FRANÇAIS · ORTHOGRAPHE » devenait « FRANÇAIS · ORT… » */
html body .jeu.scene .x{flex:none;width:40px;height:40px}
@media(max-width:560px){
  html body .jeu.scene .sc-haut,html body .jeu.scene .sc-mat,html body .jeu.scene .sc-droite{gap:8px}
  html body .jeu.scene .etq{white-space:normal;text-overflow:clip;font-size:11px;line-height:1.2;letter-spacing:.04em;border-radius:13px;padding:5px 10px;text-wrap:balance}
  html body .jeu.scene .chrono{padding:6px 10px;font-size:16px}
}
@media(max-width:400px){
  html body .jeu.scene .sc-haut,html body .jeu.scene .sc-mat,html body .jeu.scene .sc-droite{gap:6px}
  html body .jeu.scene .porte{width:40px;height:40px;font-size:22px;border-radius:10px;flex:none}
  html body .jeu.scene .sc-haut .picto-haut{width:36px!important;height:36px!important}
  html body .jeu.scene .etq{font-size:10.5px;letter-spacing:.02em;padding:5px 8px}
}

/* ---------- 2. Case 16 (écoute) : un mot de 11 lettres sortait de l'écran à droite sur un téléphone de 360 px ---------- */
@media(max-width:560px){
  html body .ecoute .ec{min-width:0}
  html body .ec .tuiles.petites{flex:1 1 auto;min-width:0}
  html body .ec .tuiles.petites span{flex:0 1 22px;min-width:0;height:40px}
}

/* ---------- 3. Cibles tactiles : 40 px au moins sous le doigt (téléphones, tablettes, écrans tactiles) ---------- */
@media(pointer:coarse),(max-width:1259px){
  html:root body .onglets button[data-v]{min-height:44px}
  html body .puce{min-height:40px}
  html body .sc-jeu .tourner,html body .sc-jeu .suivant{min-height:44px}
  html body .sc-jeu .eti{min-height:40px}
  html body .sc-jeu .jeton{min-height:40px;min-width:40px;justify-content:center}
}

/* ---------- 4. Petits textes ---------- */
@media(max-width:600px){ html body .cl th{font-size:11px} }
html body .xc i{font-size:11px;line-height:1}
/* les mots JOURS / H / MIN / S du ruban : 8 px (7,5 sur téléphone) à l'origine */
html body .rebours-case i{font-size:9.5px;letter-spacing:.08em;text-indent:.08em}
@media(max-width:760px){ html body .rebours-case i{font-size:8.5px;letter-spacing:.04em;text-indent:.04em} }
@media(max-width:350px){ html body .rebours-case i{font-size:7.5px;letter-spacing:.02em;text-indent:.02em} }

/* ---------- 5. Téléphone couché (écran très bas) : la barre des boutons ronds mangeait 68 px sur 375 ---------- */
@media(max-width:1259px) and (max-height:480px){
  html:root{--barre:calc(52px + env(safe-area-inset-bottom,0px))}
  html body .ronds{padding-bottom:calc(2px + env(safe-area-inset-bottom,0px))}
  html body .ronds .rond{width:40px;height:40px}
}

/* ---------- 6. Zones trop petites au doigt (vocal de Valentin 30/11 soir) : 40 px au moins là où la place le permet ---------- */
/* case 15 : les mots d'une lettre (« a », « à ») faisaient 8 px de large ; zone de toucher élargie sans bouger le texte */
html body .mot{position:relative;display:inline-block;min-width:20px;text-align:center}
html body .mot::after{content:"";position:absolute;inset:-7px -5px}
/* croix « fermer » des petites fenêtres (inscription, code, case pas encore ouverte) */
html body .jeu .x{width:40px;height:40px}
/* « Aujourd'hui » sur la case du jour : 8,5 px sur téléphone, illisible */
@media(max-width:560px){ html body .cal .c .t{font-size:9.5px;letter-spacing:.02em} }
/* carte du voyage : épingles des villes (10 à 20 px) avec une zone de toucher invisible de 40 px, boutons de la fiche à 40-44 px */
html body .vy-pin::after{content:"";position:absolute;inset:-12px;border-radius:50%}
html body .vy-plie{width:40px;height:40px}
html body .vy-nav button{width:44px;height:44px}
html body .vy-revoir{min-height:40px}
/* pixels (case 20) : la grille prend toute la largeur sur téléphone ; 12 colonnes ne laissent pas 40 px, on gagne ce qu'on peut */
@media(max-width:560px){ html body .pixels{width:100%;gap:1px;padding:4px} }
/* mots croisés : interstice réduit sur téléphone pour des cases plus grandes */
@media(max-width:560px){ html body .xw{gap:2px;width:100%} }
/* définitions cliquables des mots croisés : 40 px de haut au moins */
html body .indices p.def{min-height:40px;display:flex;align-items:center;padding:6px 8px;margin-left:-8px}
/* pixels (case 20) : sur tablette, la grille peut s'agrandir (27 px → 40 px par case) */
@media(min-width:561px) and (min-height:600px){ html body .pixels{width:min(100%,520px)} }
