/* Surcharges studio — feuille d'appoint.
   style.css a atteint une taille que ce serveur refuse d'accepter de façon fiable ;
   les nouvelles règles vivent ici et sont chargées APRÈS lui. */
@media (max-width:899px){
  /* dock à 2 entrées : chacune est une vraie carte cliquable, pas une icône timide */
  .studio-dock{display:grid;grid-template-columns:repeat(2,1fr);position:fixed;left:0;right:0;bottom:76px;z-index:56;background:#fff;border-top:1px solid var(--line);gap:8px;padding:8px 10px}
  .dock-btn{min-width:0;min-height:52px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-family:inherit;font-size:14px;font-weight:560;padding:10px 8px;border-radius:14px;cursor:pointer;touch-action:manipulation}
  .dock-btn span{text-align:left;line-height:1.15;white-space:normal}
  .dock-btn svg{width:22px;height:22px;flex:none;color:var(--muted)}
  .dock-btn:active{transform:scale(.98)}
  .dock-btn.active{color:#993c1d;border-color:#d85a30;background:#fff4f1}
  .dock-btn.active svg{color:#d85a30}
}

/* ---- Progression en chevrons ----
   Le stepper était masqué sur mobile (style.css l.749) : sur 97 % du trafic, le client
   ne savait ni où il en était ni ce qu'il lui restait. Chevrons imbriqués, lisibles à 375 px. */
.wz-steps{display:flex!important;gap:0;align-items:stretch;margin:14px 0 10px}
.wz-dot{flex:1;min-width:0;flex-direction:row!important;align-items:center;justify-content:center;gap:6px;
  height:46px;padding:0 6px 0 14px;background:#f0eeea;color:#8a857d;border:0;border-radius:0;position:relative;
  clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%,13px 50%);cursor:pointer;transition:background .18s,color .18s}
.wz-dot:first-child{clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%);border-radius:10px 0 0 10px;padding-left:12px}
.wz-dot:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,13px 50%);border-radius:0 10px 10px 0}
.wz-dot+.wz-dot{margin-left:-9px}
.wz-dot::before{display:none}
.wz-dot i{width:21px;height:21px;flex:none;border-radius:50%;background:rgba(0,0,0,.10);color:inherit;
  font-size:11.5px;font-weight:700;font-style:normal;display:grid;place-items:center;border:0}
.wz-dot span{display:none}   /* libellé long inutilisé : une seule source de texte, à toutes les largeurs */
.wz-dot em{font-style:normal;font-size:12.5px;font-weight:560;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* étape en cours : encre pleine, c'est le repère le plus fort */
.wz-dot.active{background:var(--ink);color:#fff;z-index:2}
.wz-dot.active i{background:rgba(255,255,255,.22);color:#fff}
/* étape accomplie : vert + coche, le client voit ce qui est derrière lui */
.wz-dot.done{background:#e7f5ec;color:#14713f;z-index:1}
.wz-dot.done i{background:#1a8a4a;color:#fff;font-size:0}
.wz-dot.done i::after{content:"✓";font-size:12px;line-height:1}
@media (min-width:900px){
  .wz-dot{height:50px}
  .wz-dot em{font-size:13.5px}
}
@media (max-width:899px){
  .pd-studio .wz-steps{position:sticky;top:0;z-index:40;margin:0 0 8px;padding:8px 0;background:#fff}
  .pd-studio }

/* ---- Couleurs et quantités (étape Tailles) ---- */
.dupc:empty{display:none}
.dupc{border:1px solid var(--line);border-radius:var(--r);padding:11px;margin:0 0 14px}
.dupc-h{margin-bottom:9px}
.dupc-h b{display:block;font-size:13px;font-weight:560;color:var(--ink)}
.dupc-h small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;line-height:1.3}
.dupc-row{display:flex;flex-wrap:wrap;gap:9px}
.dupc-sw{position:relative;width:40px;height:40px;padding:3px;border:2px solid transparent;border-radius:50%;background:none;cursor:pointer;touch-action:manipulation}
.dupc-sw span{display:block;width:100%;height:100%;border-radius:50%}
.dupc-sw.has{border-color:#1a8a4a}
.dupc-sw.cur{border-color:#d85a30}
.dupc-sw i{position:absolute;right:-3px;bottom:-3px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#1a8a4a;color:#fff;font-size:10.5px;font-style:normal;font-weight:700;display:grid;place-items:center;border:2px solid #fff}

/* ---- Fenêtre d'ajout : un bloc par couleur, avec les photos de ses emplacements ---- */
.am-cols{display:flex;flex-direction:column;gap:9px;margin:0 0 12px;text-align:left}
.am-col{border:.5px solid var(--line);border-radius:12px;padding:10px}
.am-col-h{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.am-dot{width:22px;height:22px;flex:none;border-radius:50%}
.am-col-h b{font-size:13.5px;font-weight:560;white-space:nowrap}
.am-col-h small{flex:1;min-width:0;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-col-h em{font-style:normal;font-size:13.5px;font-weight:600}
/* vignettes à TAILLE FIXE : en grille auto-fit, une photo seule s'étirait sur toute la largeur
   et la fenêtre devenait interminable sur mobile. L'info utile est dans l'en-tête de couleur. */
.am-col-v{display:flex;flex-wrap:wrap;gap:8px;padding-top:9px;border-top:.5px solid var(--surface)}
.am-col-v figure{margin:0;width:72px;flex:none}
.am-col-v span{display:block;aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:#eceae5}
.am-col-v img{width:100%;height:100%;object-fit:cover;display:block}
.am-col-v figcaption{text-align:center;font-size:10px;color:var(--muted);margin-top:3px;line-height:1.25}
.am-col-v figcaption i{font-style:normal;color:#993c1d}

.am-paylogos{display:flex;flex-direction:column;align-items:center;gap:7px;margin:0 0 12px}
.am-secu{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:520;color:var(--muted)}
.am-secu svg{width:14px;height:14px;color:#1a8a4a}
.am-logos{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.am-logos svg,.am-logos img{height:20px;width:auto}

/* ---- Choix de police : le client voit SON texte dans chaque police ----
   Remplace les pastilles « Ag » de style.css (chargé avant, donc surchargé ici). */
.lay-fonts{display:flex;flex-direction:column;gap:0;margin-bottom:14px;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;max-height:296px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.lay-f{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;height:auto;padding:12px;border:0;border-bottom:.5px solid var(--line);border-radius:0;background:#fff;color:var(--ink);cursor:pointer;text-align:left;box-shadow:none;touch-action:manipulation}
.lay-f:last-child{border-bottom:0}
.lay-f>span{font-size:23px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.lay-f>small{flex:none;font-size:11px;color:var(--muted);white-space:nowrap}
.lay-f.on{background:#fff4f1;color:var(--ink);box-shadow:inset 3px 0 0 #d85a30}
.lay-f.on>small{color:#993c1d}

/* ---- CTA collants à l'étape Tailles ----
   La grille des paliers est longue : le bouton d'achat sortait de l'écran pendant que le client
   comparait les prix. Il reste désormais sous les yeux jusqu'à la décision. */
@media (max-width:899px){
  .pd-buy.pd-fixed{position:fixed;left:0;right:0;bottom:0;z-index:57;background:#fff;margin:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px rgba(0,0,0,.10)}
  .pd-buy.pd-fixed .btn{margin:0 0 7px}
  .pd-buy.pd-fixed .btn:last-child{margin-bottom:0}
  body.has-fixed-buy{padding-bottom:150px}
}
/* ---- Aperçu plein écran : prix + achat, l'écran n'est plus un cul-de-sac ---- */
.pv-buy{margin-top:12px;text-align:left}
.pv-sum{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:9px;font-size:13.5px}
.pv-sum span{color:var(--muted)}
.pv-sum b{font-size:17px;font-weight:600}
.pv-edit{display:block;width:100%;margin-top:8px;padding:9px;border:0;background:none;font:inherit;font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pv-modal{max-height:calc(100vh - 40px);overflow-y:auto}

/* ---- Quantité manquante : on explique au lieu de secouer discrètement ---- */
.qm-ov{position:fixed;inset:0;z-index:130;background:rgba(20,19,18,.55);display:flex;align-items:center;justify-content:center;padding:20px}
.qm-box{width:100%;max-width:330px;background:#fff;border-radius:18px;padding:20px 18px;text-align:center;box-shadow:0 16px 44px rgba(0,0,0,.22)}
.qm-ic{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 12px;border-radius:50%;background:#fff4f1;color:#d85a30}
.qm-ic svg{width:22px;height:22px}
.qm-box h3{margin:0 0 6px;font-size:17px;font-weight:600}
.qm-box p{margin:0 0 16px;font-size:13.5px;line-height:1.45;color:var(--muted)}
.size-matrix.qm-hi{outline:2px solid #d85a30;outline-offset:6px;border-radius:12px;transition:outline-color .3s}

/* ===== Annuler / Rétablir ===== */
.lay-hist{display:flex;gap:8px;margin:0 0 10px}
.lay-h{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line,#e6e2dc);
  border-radius:999px;background:#fff;color:var(--ink,#141312);font-size:13px;font-weight:600;cursor:pointer;
  min-height:40px;transition:background .15s,border-color .15s,opacity .15s}
.lay-h svg{width:16px;height:16px;flex:none}
.lay-h:not(:disabled):active{background:#f3f0eb}
.lay-h:disabled{opacity:.34;cursor:default}
@media(max-width:900px){.lay-h span{display:none}.lay-h{padding:0;width:44px;justify-content:center}}

/* ===== Liste des polices : 20 choix, la liste défile chez elle au lieu de pousser la page ===== */
.lay-fonts{max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  scroll-snap-type:y proximity;padding-right:2px}
.lay-fonts .lay-f{scroll-snap-align:start}
@media(max-width:900px){.lay-fonts{max-height:40vh}}

/* majoration grande taille, lisible sans alourdir la cellule */
.size-cell .sz{display:flex;align-items:baseline;justify-content:center;gap:5px}
/* display:flex et non inline-flex : le libellé doit rester SEUL sur sa ligne, sinon les
   cellules courtes (S, M, L) mettent le sélecteur à côté et les longues (2XL +3,00 €) le
   renvoient dessous — deux hauteurs de cellules dans la même grille. */
.sz-sur{font-style:normal;font-size:11px;font-weight:600;color:#d85a30;white-space:nowrap}

/* ===== Poignées de manipulation directe : supprimer / pivoter / redimensionner ===== */
.pv-act{position:absolute;width:26px;height:26px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(0,0,0,.18);cursor:pointer;
  display:grid;place-items:center;touch-action:none;z-index:3;pointer-events:auto}
/* Collés à l'angle HAUT-DROIT du cadre, en paire serrée : au-dessus et centrés ils se
   posaient sur le visage du mannequin et pesaient plus lourd que le logo à régler. */
.pv-act.k-nw{right:24px;top:-13px}
.pv-act.k-ne{right:-13px;top:-13px;cursor:grab}
.pv-act::before{content:"";display:block;width:13px;height:13px;background:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain}
#pv-del{color:#d8452f}
#pv-del::before{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}
#pv-rot{color:#141312}
#pv-rot::before{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E")}
.pv-act:active{transform:scale(.92)}
/* doigt : cibles plus larges sans grossir le visuel */
@media(max-width:899px){.pv-act{width:30px;height:30px}.pv-act.k-nw{right:27px;top:-15px}.pv-act.k-ne{right:-15px;top:-15px}}
/* le cadre est inerte au pointeur : les boutons doivent le redevenir */
.pv-act{pointer-events:auto}

