/* ──────────────────────────────────────────────────────────────────
   Mon Puzzle Intérieur — La roue au téléphone (Yann, 2026-10-22)

   Sur toutes les pages qui ont une roue (Thème natal, Énergies du jour,
   Dialogue intérieur, Formation…), dans la page comme agrandie :
   - en portrait, elle prend la largeur de l'écran : le bloc qui la porte
     passe à toute la largeur (Puzzy s'appelle par son bouton) ;
   - couché, elle prend la hauteur de l'écran, sans défiler.
   Ordinateur inchangé : rien ici ne s'applique au-dessus de 768 px de large
   ni sans pointeur tactile en paysage.

   Le Thème natal couché garde son calcul (--roue-w, en bas de page) : il
   cale les glyphes, pas le dessin, sur la hauteur de l'écran ; sa règle est
   plus forte que celles d'ici.
   ────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) and (orientation: portrait) {
  /* Le bloc qui porte une roue : toute la largeur (avant : 75vw calé à gauche). */
  #bento#bento .cm-page > .panel:has(.natal-wheel svg, #edj-roue),
  #bento#bento .cm-page .panel.welcome-wheel:has(.natal-wheel svg, #edj-roue),
  #bento#bento .cm-page .panel:has(> #edj-roue, > * > #edj-roue) {
    width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
  }
  #bento#bento .cm-page .natal-split:has(.natal-wheel svg) { flex-direction: column !important; }
  #bento#bento .cm-page .natal-split:has(.natal-wheel svg) .natal-text { width: 100% !important; }
  #bento#bento .cm-page .natal-wheel:has(svg) { width: 100% !important; flex: none !important; }
  #bento#bento .cm-page .natal-wheel svg { width: 100% !important; max-width: none !important; }
  #bento#bento #edj-roue.edj-roue:not(.edj-zoom-roue) { width: 100% !important; max-width: none !important; }
  /* Rapports (rapports-speciaux.html) : la roue, simple ou double, toute la largeur du cadre. */
  .rapports-stage .wheel-zone, .rapports-stage .wheel-zone.dual { width: 100% !important; max-width: none !important; }
  /* Formation : la roue de la leçon (la roue agrandie porte aussi .froue). */
  .froue:not(.froue-zoom-box), .ffiche .froue:not(.froue-zoom-box) { width: 100% !important; max-width: none !important; }

  /* Roue agrandie : de bord à bord. */
  .wheel-zoom, .froue-zoom, .edj-zoom, .rp-zoom { padding: 0 !important; }
  .wheel-zoom-box, .froue-zoom-box, .edj-zoom-box:not(.edj-ciel-box), .rp-zoom-box { width: 100vw !important; height: 100vw !important; }
}

@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #bento#bento .cm-page .natal-wheel svg { width: min(100%, 100svh) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }
  .froue:not(.froue-zoom-box), .ffiche .froue:not(.froue-zoom-box) { width: min(100%, 100svh) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; }

  /* Roue agrandie : la hauteur de l'écran, sans défiler ; la croix, la loupe
     et la consigne reviennent sur la roue. */
  .wheel-zoom, .froue-zoom, .edj-zoom, .rp-zoom { padding: 0 !important; align-items: center !important; overflow: hidden !important; }
  .wheel-zoom-box, .froue-zoom-box, .edj-zoom-box:not(.edj-ciel-box), .rp-zoom-box { width: 100svh !important; height: 100svh !important; }
}
