/* PROTOTYPE v68-v5 — ajustements du verdict d'Anthony, 10 nov. 2026, 21 h 46 (« Montre-moi un test »).
   Base v4 conservée : produit détouré à fond TRANSPARENT, aucun cadre ni fond de carte,
   rotation lente au survol avec épaisseur simulée, icônes NUES (aucun contour),
   wishlist haut-gauche / panier haut-droite, promos montrées (bandeau, badge + prix barré).
   Changements v5 :
   1) icônes RÉVÉLÉES AU SURVOL seulement : au repos, l'image est nette, sans aucune icône;
      au survol (souris) ou au premier toucher (mobile), cœur + panier apparaissent en fondu
      doux, en même temps que le produit commence à tourner;
   2) badge « Précommande » RETIRÉ de l'image (il était en bas à gauche) : le statut vit
      désormais uniquement dans la ligne de texte sous l'image (nom / prix / statut);
   3) coton ouaté noir retravaillé : devant régénéré SANS cordons de capuche pendants,
      libellé « Coton ouaté noir » sans tirets, et visuel affiché ~10 % plus petit
      (échelle 0,90) pour respirer comme les autres produits — grille ET fiche;
   4) revue multi-résolutions : 1440 / 1024 / 768 / 390 — zones tactiles 48 px (≥ 44),
      icônes et libellés ajustés aux petites largeurs, aucun chevauchement. */
.proto5-merch { background: transparent; padding: clamp(2rem, 5vw, 4rem) 0; }
.proto5-merch .proto5-head { max-width: 75rem; margin: 0 auto 1.5rem; padding: 0 1rem; }
.proto5-merch h2 { color: #f5f1e6; margin: 0 0 .35rem; }
.proto5-merch .proto5-note { color: #9aa0a8; margin: 0; max-width: 62ch; }
.proto5-count { display: inline-block; margin-left: .6rem; background: #f3c96b; color: #191204; border-radius: 999px; padding: .1rem .6rem; font-weight: 800; font-size: .85rem; }

/* --- Emplacement promo nº 1 : bandeau au-dessus de la grille (inchangé v4) - */
.proto5-promo-banner { max-width: 75rem; margin: 0 auto 1.6rem; padding: .8rem 1rem; }
.proto5-promo-banner-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .35rem 1rem; text-align: center; background: linear-gradient(90deg, rgba(243,201,107,0), rgba(243,201,107,.13) 18%, rgba(243,201,107,.13) 82%, rgba(243,201,107,0)); border-top: 1px solid rgba(243,201,107,.35); border-bottom: 1px solid rgba(243,201,107,.35); padding: .85rem 1rem; }
.proto5-promo-banner .kicker { color: #f3c96b; font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.proto5-promo-banner .offer { color: #f5f1e6; font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; }
.proto5-promo-banner .offer strong { color: #f3c96b; }
.proto5-promo-banner .demo { color: #9aa0a8; font-size: 12px; }

/* --- Grille : 4 colonnes au large, 2 colonnes dès 1100 px ------------------ */
.proto5-grid { max-width: 75rem; margin: 0 auto; padding: 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
@media (max-width: 1100px) { .proto5-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }
@media (max-width: 480px) { .proto5-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 0 .7rem; } }

/* La carte n'a NI fond NI bordure : seul le produit existe. */
.proto5-card { background: none; border: 0; }
.proto5-media { position: relative; aspect-ratio: 4 / 5; }

/* --- Coton ouaté noir : visuel réduit (échelle 0,90) ------------------------
   Le devant régénéré occupe plus de cadre que les autres produits; à 90 % il
   respire comme eux. La propriété `scale` n'interfère ni avec la perspective
   du rotor ni avec le transform piloté par le JS sur .proto5-spin. L'ombre
   portée (::after du rotor) suit la même échelle. */
.proto5-card--petit .proto5-rotor, .proto5-fiche--petit .proto5-rotor { scale: .9; }

/* --- Rotation volumique (inchangée depuis la v3) --------------------------- */
.proto5-rotor { position: absolute; inset: 0; perspective: 1300px; }
.proto5-rotor::after { content: ""; position: absolute; left: 50%; bottom: 1.5%; width: 72%; height: 26px; transform: translateX(-50%) scaleX(var(--sh, 1)); opacity: var(--sho, .5); background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.85), rgba(0,0,0,0) 70%); border-radius: 50%; pointer-events: none; }
.proto5-spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(2.5deg) rotateY(var(--ry, 0deg)); will-change: transform; }
.proto5-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.proto5-face img { width: 100%; height: 100%; object-fit: contain; padding: 3%; box-sizing: border-box; display: block; }
.proto5-face.proto5-back { transform: rotateY(180deg); }
.proto5-edge { position: absolute; top: 4%; bottom: 4%; left: 50%; width: 15px; transform: translateX(-50%) rotateY(90deg); backface-visibility: hidden; border-radius: 6px; background: repeating-linear-gradient(0deg, #17171a 0 5px, #232327 5px 7px, #101013 7px 12px); box-shadow: inset 0 0 6px rgba(0,0,0,.9); pointer-events: none; }
.proto5-media[data-kind="cap"] .proto5-edge { background: repeating-linear-gradient(0deg, #191919 0 6px, #26262a 6px 8px, #121214 8px 13px); }

/* --- Emplacement promo nº 2 : badge sur UNE carte (inchangé v4) -------------
   Bas-droite de l'image : haut-gauche = favori, haut-droite = panier. Le badge
   promo n'est pas une icône d'action : il reste visible au repos. (Le badge
   « Précommande » qui occupait le bas-gauche a été RETIRÉ en v5 : le statut
   vit sous l'image.) */
.proto5-promo-badge { position: absolute; bottom: 6px; right: 2px; z-index: 4; background: #f3c96b; color: #191204; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.55); }

/* --- Icônes NUES, révélées au survol / au toucher ----------------------------
   Au repos : opacity 0 + pointer-events none → l'image est nette, aucune icône
   visible ni cliquable par accident. Le focus clavier reste possible (opacity
   n'exclut pas la tabulation) : :focus-visible et :focus-within révèlent.
   Révélation : survol de la souris, classe .revealed (premier toucher mobile),
   focus dans la carte, ou panneau de grandeurs ouvert. Fondu doux de 0,35 s,
   léger glissement vertical — en même temps que la rotation démarre. */
.proto5-wish, .proto5-add, .proto5-rotate { background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; z-index: 5; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .35s ease, transform .35s ease; }
.proto5-media:hover .proto5-wish, .proto5-media:hover .proto5-add, .proto5-media:hover .proto5-rotate,
.proto5-media:focus-within .proto5-wish, .proto5-media:focus-within .proto5-add, .proto5-media:focus-within .proto5-rotate,
.proto5-media.revealed .proto5-wish, .proto5-media.revealed .proto5-add, .proto5-media.revealed .proto5-rotate,
.proto5-media:has(.proto5-sizes:not([hidden])) .proto5-wish,
.proto5-media:has(.proto5-sizes:not([hidden])) .proto5-add { opacity: 1; pointer-events: auto; transform: translateY(0); }
.proto5-wish:focus-visible, .proto5-add:focus-visible, .proto5-rotate:focus-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.proto5-wish svg, .proto5-add svg, .proto5-rotate svg { fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.95)) drop-shadow(0 0 9px rgba(0,0,0,.55)); transition: transform .15s; }
.proto5-wish:hover svg, .proto5-add:hover svg, .proto5-rotate:hover svg { transform: scale(1.14); }
/* Wishlist : haut à GAUCHE */
.proto5-wish { position: absolute; top: 0; left: 0; color: #f5efdd; }
.proto5-wish svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 2.1; }
.proto5-wish.active { color: #ff8296; }
.proto5-wish.active svg { fill: #d21f3c; stroke: #ff8296; }
/* Panier : haut à DROITE */
.proto5-add { position: absolute; top: 0; right: 0; color: #f3c96b; }
.proto5-add svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 2; }
.proto5-add.added { color: #9fe870; }
/* Rotation (mobile seulement) : bas à droite, nue elle aussi, révélée au
   premier toucher comme les autres icônes. Sur la carte en promo, elle glisse
   à gauche du badge pour ne pas le couvrir. */
.proto5-rotate { position: absolute; right: 0; bottom: 0; color: #f5efdd; display: none; }
.proto5-rotate svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 2.1; }
@media (hover: none) { .proto5-rotate { display: grid; } .proto5-card--promo .proto5-rotate { right: 76px; } }
.proto5-wish:focus-visible, .proto5-add:focus-visible, .proto5-rotate:focus-visible, .proto5-size:focus-visible { outline: 2px solid #f3c96b; outline-offset: -2px; border-radius: 8px; }

/* Surcouche grandeurs SUR l'image */
.proto5-sizes { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(10,10,13,.93); backdrop-filter: blur(3px); padding: 12px; border-radius: 12px; border: 1px solid rgba(243,201,107,.35); }
.proto5-sizes[hidden] { display: none; }
.proto5-sizes p { margin: 0 0 8px; color: #f0e9d8; font-size: 13px; font-weight: 700; }
.proto5-sizes .row { display: flex; flex-wrap: wrap; gap: 7px; }
.proto5-size { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #e8e2d2; min-width: 44px; min-height: 44px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.proto5-size:hover { border-color: #f3c96b; color: #f3c96b; }
.proto5-sizes .cancel { margin-top: 9px; background: none; border: 0; color: #9aa0a8; cursor: pointer; font-size: 12.5px; text-decoration: underline; padding: 6px 2px; }

/* Nom / couleur / prix / statut SOUS l'image — c'est ici que vit désormais
   le statut « Précommande » (plus aucun badge sur l'image). */
.proto5-card h4 { margin: 12px 0 3px; font-size: 16.5px; color: #f5f1e6; }
.proto5-card .proto5-sub { margin: 0 0 6px; color: #9aa0a8; font-size: 13px; line-height: 1.45; }
.proto5-priceline { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #f3c96b; font-size: 16px; font-weight: 800; }
.proto5-priceline .dot { width: 8px; height: 8px; border-radius: 50%; background: #f3c96b; flex: none; }
.proto5-priceline .statut { color: #9aa0a8; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
/* Prix promo : ancien prix barré, nouveau prix doré */
.proto5-priceline .old { color: #9aa0a8; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; }
.proto5-priceline .save { color: #9fe870; font-size: 12.5px; font-weight: 700; }

/* --- Emplacement promo nº 3 : ligne sous le prix de la fiche (inchangé v4) - */
.proto5-fiche-promo { margin: 14px 0 4px; padding: 12px 14px; border-left: 3px solid #f3c96b; background: rgba(243,201,107,.07); border-radius: 0 10px 10px 0; max-width: 34rem; }
.proto5-fiche-promo-main { margin: 0; color: #f5f1e6; font-size: 15px; line-height: 1.5; }
.proto5-fiche-promo-main strong { color: #f3c96b; }
.proto5-fiche-promo-note { margin: 6px 0 0; color: #9aa0a8; font-size: 12.5px; }

/* Fiche produit v5 */
.proto5-fiche .proto5-media { aspect-ratio: 4 / 5; }
.proto5-fiche .proto5-sidelabel { margin-top: .5rem; color: var(--muted, #9aa0a8); text-align: center; }
@media (max-width: 760px) {
  .merch-product__info { grid-row: auto; }
  .merch-product .proto5-fiche { grid-row: 1; }
}

/* --- Petites largeurs : libellés et icônes ajustés, zones tactiles intactes -
   À 390 px la carte fait ~168 px de large : les zones tactiles de 48 px aux
   deux coins laissent ~72 px libres entre elles — aucun chevauchement. Les
   glyphes descendent à 24 px (lisibilité conservée), les boutons restent 48. */
@media (max-width: 480px) {
  .proto5-card h4 { font-size: 15px; }
  .proto5-card .proto5-sub { font-size: 12.5px; }
  .proto5-priceline { font-size: 15px; gap: 6px; }
  .proto5-wish svg, .proto5-add svg { width: 24px; height: 24px; }
  .proto5-promo-badge { font-size: 11.5px; padding: 4px 8px; }
  .proto5-promo-banner-inner { padding: .7rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .proto5-wish, .proto5-add, .proto5-rotate { transition: none; }
  .proto5-wish svg, .proto5-add svg, .proto5-rotate svg { transition: none; }
}
