/* Configurateurs (stickers, flex, T-shirt) sur téléphone : une seule colonne, aperçu en haut, grandes cases */
#polices button[data-num]{position:relative}
#polices button[data-num]::before{content:attr(data-num);position:absolute;top:4px;left:7px;font:700 10.5px/1 system-ui,sans-serif;font-style:normal;opacity:.65;color:#fff}
#polices button.on[data-num]::before{opacity:1}

@media (max-width:820px){
  header{padding:10px 14px!important;gap:10px!important;flex-wrap:wrap}
  header img{width:40px!important;height:40px!important}
  header b{font-size:15px!important}
  header .h-nav{margin-left:0!important;width:100%;gap:14px!important;font-size:12.5px!important;overflow-x:auto;white-space:nowrap}
  main{padding:12px 12px 40px!important}
  .wrap{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .preview{position:sticky!important;top:0!important;z-index:20;padding:8px!important;background:#121316;border-radius:0 0 14px 14px}
  .panel{padding:16px 14px!important}
  .chips button,.chipsD button,.views button{font-size:13px!important;padding:8px 12px!important}
  .polices{grid-template-columns:1fr 1fr!important;gap:10px!important;max-height:none!important;overflow:visible!important}
  .polices button{padding:18px 8px 12px!important;font-size:18px!important}
  .polices button .s{font-size:21px!important}
  .tuto{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  .polices button small{font-size:11.5px!important}
}
/* Aperçu collé en haut de l'écran pendant les réglages, réduit pour laisser la place aux choix */
@media (max-width:600px){
  .wrap{justify-items:center}
  .panel{width:100%;box-sizing:border-box}
  .preview{width:420px;max-width:none;box-sizing:border-box}
  .preview:not(:has(#shirt)) .stage{height:240px!important}
  .preview p,.preview .note,.preview small{display:none}
  .preview{zoom:.84}
  .preview:has(#shirt){width:590px;zoom:.75}
}
@media (max-width:460px){ .preview:has(#shirt){zoom:.66} }
@media (max-width:420px){ .preview:has(#shirt){zoom:.62} }
@media (max-width:385px){ .preview{zoom:.8} .preview:has(#shirt){zoom:.59} }
@media (max-width:362px){ .preview{zoom:.74} .preview:has(#shirt){zoom:.56} }
