/* ==========================================================================
   CHAMONIX OUTERWEAR — panier.css
   Styles du tiroir du panier (pn-) et de la page de paiement (pp-).
   Repris de l'animation « Comment ça marche » : même panier, mêmes cartes
   de choix, même récapitulatif, mêmes courbes de mouvement.
   Les couleurs et les tailles de texte viennent de style.css (thème sombre
   uniquement, échelle --fs-*). Aucune couleur d'accent, aucun halo.

   0. Réglages propres au panier
   1. Tiroir
   2. Lignes d'articles, quantités, totaux (communs au tiroir et au récap)
   3. Page de paiement : mise en page
   4. Récapitulatif
   5. Formulaire : blocs, champs, cartes de choix
   6. Validation, envoi, mentions
   7. Mobile
   8. Mouvement réduit
   ========================================================================== */


/* ==========================================================================
   0. RÉGLAGES — complètent ceux de style.css (mêmes valeurs que l'animation)
   ========================================================================== */
:root {
  --pn-ligne-forte: rgba(255, 255, 255, .32);   /* bordure au survol, contour des pastilles */
  --pn-voile: rgba(0, 0, 0, .62);               /* fond derrière le tiroir */
  --pn-lumiere: rgba(255, 255, 255, .07);       /* lumière douce derrière les photos */
  --pn-app: cubic-bezier(.2, .86, .24, 1);      /* glissements façon app */
  --pn-doux: cubic-bezier(.22, .61, .36, 1);    /* fondus */
  --pn-ressort: cubic-bezier(.34, 1.3, .5, 1);  /* pastilles qui se remplissent */
  --pn-sortie: cubic-bezier(.55, .06, .68, .19);/* fermeture du tiroir */
}

/* Prix : jamais coupés, chiffres sans crénage (la police colle certains signes aux chiffres) */
.pn-prix { white-space: nowrap; font-kerning: none; }

/* Texte réservé aux lecteurs d'écran */
.pn-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Petite étiquette en capitales (« 3 PIÈCES », « 01 ») */
.pn-lbl {
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
}

/* Compteur du bouton « Panier » : « Panier (2) » ; masqué quand le panier est vide */
.pn-compte::before { content: "("; }
.pn-compte::after { content: ")"; }
.btn > .pn-compte { margin-left: -5px; }

/* Défilement de la page bloqué pendant que le tiroir est ouvert (largeur de barre compensée) */
html.pn-ouvert { overflow: hidden; }
html.pn-ouvert body { padding-right: var(--pn-barre, 0px); }
html.pn-ouvert .nav { right: var(--pn-barre, 0px); }


/* ==========================================================================
   1. TIROIR — glisse depuis la droite (620 ms à l'ouverture, 450 ms à la fermeture)
   ========================================================================== */
.pn-tiroir {
  position: fixed; inset: 0; z-index: 80;
  font-family: var(--font); font-weight: 400; font-synthesis: none;
  color: var(--text);
}
.pn-tiroir[hidden] { display: none; }

.pn-tiroir__fond {
  position: absolute; inset: 0;
  background: var(--pn-voile);
  opacity: 0;
  transition: opacity .4s var(--pn-doux);
}
.pn-tiroir.est-ouvert .pn-tiroir__fond { opacity: 1; transition-duration: .45s; }

.pn-tiroir__panneau {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(105%);
  transition: transform .45s var(--pn-sortie);
  outline: none;
}
.pn-tiroir.est-ouvert .pn-tiroir__panneau { transform: none; transition: transform .62s var(--pn-app); }

.pn-tiroir__tete {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 22px;
  border-bottom: 1px solid var(--border);
}
.pn-tiroir__titre {
  display: flex; align-items: baseline; gap: 10px;
  font-size: var(--fs-h4); letter-spacing: -.01em; line-height: 1.2;
}
.pn-tiroir__titre .pn-lbl { color: var(--text-3); }
.pn-tiroir__titre svg { flex: none; align-self: center; width: 14px; height: 14px; }

/* Bouton carré à icône (fermer) */
.pn-icone {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  padding: 0;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: none;
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.pn-icone:hover { color: var(--text); border-color: var(--pn-ligne-forte); }

.pn-tiroir__corps {
  flex: 1; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 22px 26px;
  scrollbar-width: thin;
}

/* Message court (article retiré, limite atteinte) */
.pn-info {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface-2);
  font-size: var(--fs-meta); line-height: 1.45;
  color: var(--text);
}
.pn-info[hidden] { display: none; }

/* Panier vide */
.pn-vide {
  display: grid; justify-items: start; gap: 22px;
  padding-top: 28px;
}
.pn-vide[hidden] { display: none; }
.pn-vide__texte { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.2; }

/* Tiroir de confirmation : l'article qui vient d'être ajouté */
.pn-confirme {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 18px 0;
  animation: pn-apparition .4s var(--pn-doux) both;
}
.pn-confirme__info { min-width: 0; }
/* les boutons suivent l'article (pas de grand vide entre les deux) */
.pn-tiroir--confirme .pn-tiroir__corps { flex: none; padding-bottom: 0; }
.pn-tiroir--confirme .pn-tiroir__pied { border-top: 0; padding-top: 6px; }
/* téléphone : la confirmation prend la hauteur de son contenu (la page reste visible dessous) */
@media (max-width: 599px) {
  .pn-tiroir--confirme .pn-tiroir__panneau { bottom: auto; max-height: 100%; border-bottom: 1px solid var(--border); }
}

/* « Complète ta tenue » : petites cartes (photo studio, nom, prix, « + Ajouter ») — page Panier */
.pn-ajouts { margin-top: 26px; animation: pn-apparition .4s var(--pn-doux) both; }
.pn-ajouts[hidden] { display: none; }
.pn-ajouts__titre {
  margin: 0;
  font-size: var(--fs-label); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  color: var(--text-2);
}
.pn-ajout {
  display: flex; flex-direction: column; min-width: 0;
  scroll-snap-align: start;
}
.pn-ajout__photo { position: relative; }
.pn-ajout .pn-vignette { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-btn); }
.pn-ajout__badge { position: absolute; top: 6px; left: 6px; z-index: 2; }
.pn-ajout.est-ouvert .pn-ajout__badge { visibility: hidden; }
.pn-ajout__badge .pn-badge { background: rgba(0, 0, 0, .78); border-color: transparent; }
.pn-ajout__nom {
  margin-top: 8px;
  font-size: var(--fs-meta); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pn-ajout__prix { margin-top: 2px; font-size: var(--fs-meta); }
.pn-ajout__btn { justify-content: center; width: 100%; margin-top: 8px; padding: 0 8px; }
/* mini choix de taille, posé sur la photo */
.pn-ajout__tailles {
  position: absolute; inset: 0; z-index: 3;
  display: grid; align-content: center; gap: 8px;
  padding: 8px;
  border-radius: var(--r-btn);
  background: rgba(0, 0, 0, .84);
  animation: pn-apparition .25s var(--pn-doux) both;
}
.pn-ajout__tailles[hidden] { display: none; }
.pn-ajout__tailles-lbl {
  font-size: var(--fs-mini); letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  color: var(--text-2); text-align: center;
}
.pn-ajout__tailles-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pn-ajout__taille {
  display: grid; place-items: center;
  min-width: 0; height: 34px; padding: 0 6px;
  border: 1px solid var(--pn-ligne-forte); border-radius: var(--r-btn);
  background: none; color: var(--text);
  font: inherit; font-size: var(--fs-label); line-height: 1;
  cursor: pointer;
  transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.pn-ajout__taille:hover { border-color: var(--text); }
.pn-ajout__taille:active { background: var(--text); color: var(--bg); }
@keyframes pn-apparition { from { opacity: 0; } to { opacity: 1; } }

/* Bas du tiroir, toujours visible : « Voir mon panier », « Passer commande », « Continuer mes achats » */
.pn-tiroir__pied {
  flex: none;
  padding: 16px 22px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.pn-tiroir__pied[hidden] { display: none; }
.pn-tiroir__pied .btn + .btn { margin-top: 10px; }
.pn-tiroir__pied .btn[hidden] { display: none; }

/* Prix réduit : badge « –20 % », prix d'origine barré, prix payé (cartes, fiche, panier, paiement) */
.pn-remise {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px;
  font-kerning: none;
}
.pn-remise > * { white-space: nowrap; }
.pn-remise .pn-badge { align-self: center; }
.pn-badge {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 6px;
  border: 1px solid var(--pn-ligne-forte); border-radius: var(--r-btn);
  font-size: var(--fs-mini); letter-spacing: .02em; line-height: 1; white-space: nowrap;
  color: var(--text);
}

/* Lien discret « Continuer mes achats » */
.pn-lien {
  display: block;
  margin: 12px auto 0;
  padding: 8px 4px;
  border: 0; background: none;
  font: inherit;
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-hover) var(--ease-out);
}
.pn-lien:hover { color: var(--text); }


/* ==========================================================================
   2. LIGNES, QUANTITÉS, TOTAUX
   ========================================================================== */
.pn-lignes { }
.pn-lignes > .pn-ligne:first-child { border-top: 0; }
.pn-lignes[hidden] { display: none; }

.pn-ligne {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.pn-ligne > * { position: relative; z-index: 1; }
/* mise en avant de la ligne ajoutée : un fond doux qui s'efface */
.pn-ligne::before {
  content: "";
  position: absolute; inset: 0 -12px; z-index: 0;
  border-radius: var(--r-card);
  background: var(--surface-2);
  opacity: 0;
  pointer-events: none;
}
.pn-ligne--ajoutee { animation: pn-entree .55s var(--pn-app) both; }
.pn-ligne--ajoutee::before { animation: pn-eclat 1.9s var(--pn-doux) both; }
@keyframes pn-entree { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes pn-eclat { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }

/* Miniature : fond doux et lumière, comme les photos de l'animation */
.pn-vignette {
  position: relative;
  display: grid; place-items: center;
  width: 72px; height: 86px;
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--surface);
  color: var(--text-3);
}
.pn-vignette::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 42%, var(--pn-lumiere), transparent 72%);
  pointer-events: none;
}
.pn-vignette img { position: relative; width: 86%; height: 86%; object-fit: contain; }
.pn-vignette__repli { position: relative; }

.pn-ligne__nom { font-size: var(--fs-text); line-height: 1.3; letter-spacing: -.005em; overflow-wrap: anywhere; }
.pn-ligne__meta {
  margin-top: 5px;
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.35;
  color: var(--text-2);
}
/* prix payé en haut ; dessous, le prix d'origine barré puis le badge « –20 % » */
.pn-ligne__prix {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-size: var(--fs-text); line-height: 1.3; text-align: right;
}
.pn-ligne__prix .pn-maintenant { order: -1; }
.pn-ligne__prix .pn-barre { font-size: var(--fs-meta); line-height: 1.2; }
.pn-ligne__prix .pn-badge { order: 1; }

.pn-ligne__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }

/* Sélecteur de quantité (+ et – dessinés en SVG) */
.pn-qte {
  display: inline-flex; align-items: center;
  height: 36px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
}
.pn-qte__btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  padding: 0; border: 0; border-radius: 3px;
  background: none;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.pn-qte__btn:hover:not(:disabled) { background: var(--surface-2); }
.pn-qte__btn:disabled { color: var(--text-3); cursor: default; }
.pn-qte__val { min-width: 24px; text-align: center; font-size: var(--fs-small); line-height: 1; font-kerning: none; }

/* « Retirer », « Modifier » : petits liens soulignés */
.pn-retirer,
.pp-lien {
  padding: 4px 0 3px;
  border: 0; border-bottom: 1px solid var(--pn-ligne-forte);
  background: none;
  font: inherit;
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.pn-retirer:hover,
.pp-lien:hover { color: var(--text); border-color: var(--text); }

/* Totaux : Sous-total, Offre, Livraison, Protection de l'acheteur, Total */
.pn-totaux {
  display: grid; gap: 7px;
  margin: 0;
  font-size: var(--fs-meta); line-height: 1.35;
  color: var(--text-2);
}
.pn-totaux__ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pn-totaux dt, .pn-totaux dd { margin: 0; }
.pn-totaux__remise, .pn-totaux__total { color: var(--text); }
.pn-totaux__mode { color: var(--text-3); }
.pn-totaux__astuce dt { color: var(--text); }
.pn-totaux__lien {
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  color: var(--text); border-bottom: 1px solid var(--pn-ligne-forte);
  transition: border-color var(--t-hover) var(--ease-out);
}
.pn-totaux__lien:hover { border-color: var(--text); }

/* Prix barré d'un article en ajout rapide */
.pn-barre { color: var(--text-3); text-decoration-thickness: 1px; }

/* « ? » discret de la protection de l'acheteur, avec sa bulle (survol, focus ou clic) */
.pn-protection { position: relative; display: inline-flex; align-items: baseline; gap: 6px; }
.pn-aide { display: inline-flex; }
.pn-aide__btn {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; padding: 0;
  border: 1px solid var(--pn-ligne-forte); border-radius: 50%;
  background: none; color: var(--text-2);
  font: inherit; font-size: var(--fs-mini); line-height: 1;
  cursor: help;
  transform: translateY(2px);
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.pn-aide__btn::before { content: ""; position: absolute; inset: -14px; }      /* zone de toucher plus large */
.pn-aide__btn:hover, .pn-aide__btn[aria-expanded="true"] { color: var(--text); border-color: var(--text); }
.pn-aide__bulle {
  position: absolute; left: -8px; bottom: calc(100% + 10px); z-index: 5;
  width: max-content; max-width: min(240px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface-2);
  font-size: var(--fs-meta); line-height: 1.4; letter-spacing: 0; text-transform: none;
  color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .2s var(--pn-doux), transform .25s var(--pn-doux), visibility 0s linear .25s;
  pointer-events: none;
}
.pn-aide__btn:hover + .pn-aide__bulle,
.pn-aide__btn:focus-visible + .pn-aide__bulle,
.pn-aide__btn[aria-expanded="true"] + .pn-aide__bulle {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s var(--pn-doux), transform .25s var(--pn-doux);
}


/* ==========================================================================
   3. PAGE DE PAIEMENT — formulaire à gauche, récapitulatif à droite
   ========================================================================== */
.pp {
  padding: clamp(28px, 3.4vw, 48px) var(--gutter) 0;
}
.pp__wrap { max-width: 1180px; margin: 0 auto; }

.pp__tete { margin-bottom: clamp(28px, 4.5vh, 48px); }
.pp__fil { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--text-2); }
.pp__titre {
  margin-top: 14px;
  font-size: var(--fs-h1); letter-spacing: -.035em; line-height: 1.02;
}

.pp-chargement,
.pp-sansjs { font-size: var(--fs-text); color: var(--text-2); }
.pp-chargement[hidden],
html:not(.js) .pp-chargement { display: none; }

.pp-vide { display: grid; justify-items: start; gap: 26px; padding-top: 30px; border-top: 1px solid var(--border); }
.pp-vide[hidden] { display: none; }
.pp-vide__texte { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.15; }

.pp-info {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface);
  font-size: var(--fs-small); line-height: 1.45;
}
.pp-info[hidden] { display: none; }

.pp__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 24px;
  align-items: start;
}
.pp__grille[hidden] { display: none; }
.pp-form { grid-column: 1; grid-row: 1; min-width: 0; }
.pp-recap {
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(var(--nav-h) + 24px);
}


/* ==========================================================================
   4. RÉCAPITULATIF (carte « Récapitulatif » de l'animation)
   ========================================================================== */
.pp-recap__carte {
  padding: 24px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface);
}
.pp-recap__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pp-recap__titre { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-h4); letter-spacing: -.01em; line-height: 1.2; }

.pp-recap__ligne {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.pp-recap__ligne .pn-vignette { width: 60px; height: 70px; }
.pp-recap__ligne .pn-ligne__nom { font-size: var(--fs-small); }
.pp-recap__qte { margin-top: 4px; font-size: var(--fs-meta); color: var(--text-2); font-kerning: none; }
.pp-recap__ligne .pn-ligne__prix { font-size: var(--fs-small); align-self: center; }

.pp-recap__totaux { padding-top: 14px; border-top: 1px solid var(--border); }
.pp-recap__totaux .pn-totaux__total {
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid var(--border);
  align-items: baseline;
  font-size: var(--fs-text);
}
.pp-recap__totaux .pn-totaux__total dd { font-size: var(--fs-h2); letter-spacing: -.02em; line-height: 1; }

/* Bouton du récapitulatif replié (mobile seulement) */
.pp-recap__bascule { display: none; }
.pp-recap__panneau { display: grid; grid-template-rows: 1fr; }
.pp-recap__interieur { min-height: 0; }


/* ==========================================================================
   5. FORMULAIRE — trois blocs, comme dans l'animation
   ========================================================================== */
.pp-tout { margin: 0; padding: 0; border: 0; min-width: 0; }
.pp-tout:disabled .pp-bloc { opacity: .55; transition: opacity .3s var(--ease-out); }   /* envoi en cours */

.pp-bloc { margin: 0; padding: 0; border: 0; min-width: 0; }
.pp-bloc + .pp-bloc { margin-top: clamp(40px, 6vh, 56px); }
.pp-bloc__titre {
  float: left; width: 100%;                   /* légende rangée comme un titre ordinaire */
  margin-bottom: 18px; padding: 0;
  font-size: var(--fs-h4); letter-spacing: -.015em; line-height: 1.2;
}
.pp-bloc__titre + * { clear: both; }
.pp-bloc__num { margin-left: 10px; vertical-align: 2px; }

/* Champs : libellé au-dessus, texte en 16px (pas de zoom sur iPhone) */
.pp-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 14px; }
.pp-champ { min-width: 0; }
.pp-champ--large { grid-column: 1 / -1; }
.pp-champ label,
.pp-champ__lbl {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  color: var(--text-2);
}
.pp-champ__opt { color: var(--text-3); }
.pp-champ input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body); line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.pp-champ input:hover { border-color: var(--pn-ligne-forte); }
.pp-champ input::placeholder { color: var(--text-3); }
.pp-champ input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);          /* anneau net, sans halo */
}
.pp-champ input[aria-invalid="true"] { border-color: var(--text); border-style: dashed; }
.pp-champ input:-webkit-autofill,
.pp-champ input:-webkit-autofill:hover {     /* le navigateur remplit tout seul : le champ garde ses couleurs */
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  transition: background-color 9999s;
}
.pp-champ input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--surface-2) inset, 0 0 0 1px var(--text); }
.pp-pays { font-size: var(--fs-body); line-height: 1.4; }

/* Suggestions d'adresse (API Adresse) : une petite liste sous le champ */
.pp-champ--suggestions { position: relative; }
.pp-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 20;
  margin: 0; padding: 6px;
  border: 1px solid var(--pn-ligne-forte); border-radius: var(--r-card);
  background: var(--surface-2);
  list-style: none;
  max-height: 300px; overflow-y: auto;
}
.pp-suggestions[hidden] { display: none; }
.pp-suggestion {
  display: grid; gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-btn);
  font-size: var(--fs-small); line-height: 1.35;
  color: var(--text);
  cursor: pointer;
}
.pp-suggestion small { font-size: var(--fs-meta); color: var(--text-2); }
.pp-suggestion:hover, .pp-suggestion[aria-selected="true"] { background: var(--surface-3); }
.pp-adresse.est-ouverte .pp-adresse__interieur:has(.pp-suggestions:not([hidden])) { overflow: visible; }

/* Adresse : s'ouvre en douceur sous « À domicile » */
.pp-adresse {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--pn-app);
}
.pp-adresse.est-ouverte { grid-template-rows: 1fr; }
.pp-adresse__interieur { min-height: 0; overflow: hidden; margin: 0 -3px; padding: 0 3px 3px; }
.pp-adresse__champs { padding-top: 22px; }
.pp-adresse .pp-champ {
  opacity: 0; transform: translate3d(0, 10px, 0);
  transition: opacity .3s var(--pn-doux), transform .3s var(--pn-doux);
}
.pp-adresse.est-ouverte .pp-champ {
  opacity: 1; transform: none;
  transition-duration: .38s;
  transition-delay: calc(80ms + var(--i, 0) * 60ms);
}

/* Cartes de choix : pastille ronde qui se remplit avec un léger rebond */
.pp-opts {
  display: grid; gap: 10px;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
}
.pp-opt {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 12px; row-gap: 5px;
  align-items: center; align-content: start;   /* noms alignés d'une carte à l'autre */
  min-height: 52px;
  padding: 16px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), opacity .3s var(--ease-out);
}
.pp-opt[hidden] { display: none; }
.pp-opt input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.pp-opt__radio {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--pn-ligne-forte);
  transition: border-color var(--t-hover) var(--ease-out);
}
.pp-opt__radio::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--text);
  transform: scale(0);
  transition: transform .45s var(--pn-ressort);
}
.pp-opt__nom { font-size: var(--fs-text); line-height: 1.3; }
.pp-opt__desc {
  grid-column: 2;
  display: grid;
  font-size: var(--fs-meta); line-height: 1.4;
  color: var(--text-3);
}
.pp-opt__desc > span { grid-area: 1 / 1; transition: opacity .35s var(--pn-doux); }
.pp-opt__desc > span + span { opacity: 0; }

.pp-opt:hover { color: var(--text); border-color: var(--pn-ligne-forte); }
.pp-opt.est-choisi { color: var(--text); border-color: var(--text); }
.pp-opt.est-choisi .pp-opt__radio { border-color: var(--text); }
.pp-opt.est-choisi .pp-opt__radio::after { transform: scale(1); }
.pp-opt.est-choisi .pp-opt__desc { color: var(--text-2); }

/* Livraison : nom à gauche, prix à droite (« Gratuit », « 10 € ») */
.pp-opt__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.pp-opt__prix { font-size: var(--fs-text); line-height: 1.3; color: var(--text); white-space: nowrap; font-kerning: none; }
.pp-opt--livraison { padding: 18px; row-gap: 8px; }

/* Paiement : Virement et PayPal en avant ; Espèces dessous, plus discret */
.pp-moyens { display: grid; gap: 10px; }
.pp-opt--discret {
  min-height: 0; padding: 12px 16px;
  background: transparent;
}
.pp-opt--discret .pp-opt__nom { font-size: var(--fs-small); }
.pp-opt--discret .pp-opt__desc { display: none; }
@media (min-width: 600px) {
  .pp-opt--discret { grid-template-columns: 16px auto minmax(0, 1fr); }
  .pp-opt--discret .pp-opt__desc { display: block; grid-column: 3; color: var(--text-3); }
}

/* Focus clavier sur une carte */
.pp-opt:focus-within { outline: 2px solid var(--text); outline-offset: 3px; }
@supports selector(:has(*)) {
  .pp-opt:focus-within { outline: none; }
  .pp-opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
}

.pp-groupe-note { margin-top: 12px; font-size: var(--fs-meta); line-height: 1.45; color: var(--text-2); }
.pp-groupe-note[hidden] { display: none; }


/* ==========================================================================
   6. VALIDATION, ENVOI, MENTIONS
   ========================================================================== */
.pp-erreur {
  margin-top: 8px;
  font-size: var(--fs-meta); line-height: 1.4;
  color: var(--text);
}
.pp-erreur::before { content: "– "; }
.pp-erreur[hidden] { display: none; }

.pp-final {
  margin-top: clamp(40px, 6vh, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

/* Ajout rapide : « Complète ta tenue » — petites cartes au-dessus du total */
.pp-ajouts { margin-bottom: 26px; }
.pp-ajouts[hidden] { display: none; }
.pp-ajouts__titre { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--text-2); }
.pp-ajouts__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.pp-ajout {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface);
}
.pp-ajout .pn-vignette { width: 52px; height: 60px; }
.pp-ajout__nom { font-size: var(--fs-small); line-height: 1.3; overflow-wrap: anywhere; }
.pp-ajout__prix { margin-top: 4px; font-size: var(--fs-small); line-height: 1.3; }
.pp-ajout__actions { display: flex; align-items: center; gap: 6px; }
.pp-ajout__taille select {
  height: 36px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: var(--fs-meta);
}
.pp-ajout__btn,
.pn-ajout__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--pn-ligne-forte); border-radius: var(--r-btn);
  background: none; color: var(--text);
  font: inherit; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.pp-ajout__btn:hover:not(:disabled),
.pn-ajout__btn:hover,
.pn-ajout__btn[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pp-final__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 24px;
  font-size: var(--fs-text);
}
.pp-final__total .pn-prix { font-size: var(--fs-h2); letter-spacing: -.02em; line-height: 1; }

/* Case CGV (obligatoire) */
.pp-cgv {
  position: relative;
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px;
  align-items: start;
  font-size: var(--fs-small); line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.pp-cgv input {
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pp-cgv__case {
  display: grid; place-items: center;
  width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--pn-ligne-forte); border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--bg);
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.pp-cgv__case svg { opacity: 0; transform: scale(.6); transition: opacity .2s var(--pn-doux), transform .35s var(--pn-ressort); }
.pp-cgv input:checked + .pp-cgv__case { background: var(--text); border-color: var(--text); }
.pp-cgv input:checked + .pp-cgv__case svg { opacity: 1; transform: none; }
.pp-cgv input:focus-visible + .pp-cgv__case { outline: 2px solid var(--text); outline-offset: 3px; }
.pp-cgv input[aria-invalid="true"] + .pp-cgv__case { border-color: var(--text); border-style: dashed; }
.pp-cgv a {
  color: var(--text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.pp-cgv + .pp-erreur { margin-left: 32px; }

/* Message général, juste au-dessus du bouton */
.pp-alerte {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--text); border-radius: var(--r-card);
  font-size: var(--fs-small); line-height: 1.45;
  color: var(--text);
}
.pp-alerte[hidden] { display: none; }

/* Bouton « Commander avec obligation de paiement » + chargement */
.pp-envoyer { position: relative; margin-top: 22px; }
.pp-envoyer__txt { transition: opacity .2s var(--pn-doux), transform .3s var(--pn-doux); }
.pp-envoyer__spin {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--pn-doux);
}
.pp-envoyer.est-en-cours { cursor: progress; }
.pp-envoyer.est-en-cours .pp-envoyer__txt { opacity: 0; transform: translate3d(0, -6px, 0); }
.pp-envoyer.est-en-cours .pp-envoyer__spin { opacity: 1; animation: pn-tour .8s linear infinite; }
@keyframes pn-tour { to { transform: rotate(360deg); } }

.pp-note {
  margin-top: 14px;
  font-size: var(--fs-meta); line-height: 1.5;
  color: var(--text-2);
  text-align: center;
}

/* Champ piège (robots) : hors de l'écran, jamais vu ni atteint au clavier */
.pp-piege {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* ==========================================================================
   7. MOBILE — récap replié en haut, puis le formulaire, puis le total et le bouton
   ========================================================================== */
@media (max-width: 959px) {
  .pp__grille { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .pp-recap,
  .pp-form { grid-column: 1; grid-row: auto; }
  .pp-recap { position: static; }

  .pp-recap__bascule {
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--border); border-radius: var(--r-card);
    background: var(--surface);
    color: var(--text);
    font: inherit; font-size: var(--fs-text); line-height: 1.3; text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color var(--t-hover) var(--ease-out), border-radius .3s var(--pn-doux);
  }
  .pp-recap__bascule:hover { border-color: var(--pn-ligne-forte); }
  .pp-recap__bascule-texte { flex: 1; min-width: 0; }
  .pp-recap__bascule svg { flex: none; color: var(--text-2); transition: transform .45s var(--pn-app); }
  .pp-recap__bascule[aria-expanded="true"] { border-radius: var(--r-card) var(--r-card) 0 0; }
  .pp-recap__bascule[aria-expanded="true"] svg { transform: rotate(180deg); }

  .pp-recap__panneau { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--pn-app); }
  .pp-recap__panneau.est-ouvert { grid-template-rows: 1fr; }
  .pp-recap__interieur { overflow: hidden; }
  .pp-recap__carte { padding: 4px 18px 20px; border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card); }
  .pp-recap__tete { margin: 12px 0 6px; }
}

@media (max-width: 599px) {
  .pn-tiroir__panneau { width: 100%; border-left: 0; }          /* plein écran */
  .pn-tiroir__tete { padding: 16px 20px 4px; }
  .pn-icone { width: 44px; height: 44px; }
  .pn-tiroir__corps { padding: 14px 20px 20px; }
  .pn-tiroir__pied { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
  .pn-ligne { gap: 12px; }
  .pn-ligne::before { inset: 0 -10px; }
  .pn-qte { height: 40px; }
  .pn-qte__btn { width: 40px; height: 38px; }

  .pp-champs { gap: 18px 12px; }
  .pp-champ--large-mobile { grid-column: 1 / -1; }
  .pp-opts { grid-template-columns: minmax(0, 1fr); }
  .pp-envoyer { height: auto; min-height: 56px; padding: 14px 18px; white-space: normal; line-height: 1.35; text-align: center; }
  .pp-final__total .pn-prix,
  .pp-recap__totaux .pn-totaux__total dd { font-size: var(--fs-h3); }
}


/* ==========================================================================
   8. MOUVEMENT RÉDUIT — tout s'affiche directement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pn-tiroir__panneau,
  .pn-tiroir.est-ouvert .pn-tiroir__panneau,
  .pn-tiroir__fond,
  .pp-adresse,
  .pp-adresse .pp-champ,
  .pp-recap__panneau { transition: none !important; }
  .pn-ligne--ajoutee,
  .pn-confirme,
  .pn-ajouts,
  .pn-ajout__tailles { animation: none; }
  .pn-ligne--ajoutee::before { animation: pn-eclat 1.9s linear both !important; animation-duration: 1.9s !important; }
  .pp-envoyer.est-en-cours .pp-envoyer__spin { animation: none; }
}


/* Photos « studio » : même fond beige que les fiches produit (voir style.css, section 12) */
.pn-vignette { background: var(--studio-mid) var(--studio); }
.pn-vignette::before { display: none; }
.pn-vignette img {
  width: auto; height: auto; max-width: 86%; max-height: 90%;
  -webkit-mask-image: var(--studio-fondu); -webkit-mask-composite: source-in;
  mask-image: var(--studio-fondu); mask-composite: intersect;
}
.pn-vignette--vide { color: rgba(0, 0, 0, .28); }


/* ==========================================================================
   9. PAGE PANIER (panier.html) — articles et « Complète ta tenue » à gauche,
   récapitulatif à droite (collant) ; téléphone : tout empilé + barre en bas
   ========================================================================== */
.pc { padding-bottom: var(--sec); }
.pc-titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.pc-titre__nb {
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  color: var(--text-3);
}
.pc-info { max-width: 720px; margin: 24px 0 0; }

.pc-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px 56px; align-items: start;
  margin-top: 36px;
}
.pc-grille[hidden] { display: none; }
.pc-gauche { min-width: 0; }

.pc-lignes { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pc-lignes .pn-ligne { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; }
.pc-lignes .pn-vignette { width: 96px; height: 116px; }
.pc-lignes .pn-ligne__nom { font-size: var(--fs-h4); }
.pc-lignes .pn-ligne__prix { font-size: var(--fs-body); }

.pc-ajouts { margin-top: 40px; }
.pc-ajouts__rangee {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  max-width: 660px; margin: 14px 0 0; padding: 0;
  list-style: none;
}

.pc-recap { position: sticky; top: calc(var(--nav-h) + 24px); }
.pc-recap__carte {
  padding: 24px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface);
}
.pc-recap__titre { margin-bottom: 16px; font-size: var(--fs-h4); letter-spacing: -.01em; line-height: 1.2; }
.pc-commander { margin-top: 22px; }
.pc-continuer { text-align: center; }

.pc-vide { display: grid; justify-items: start; gap: 22px; margin-top: 36px; }
.pc-vide[hidden] { display: none; }

/* barre « Total · Passer commande » : téléphone seulement */
.pc-barre { display: none; }

@media (max-width: 959px) {
  .pc-grille { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .pc-recap { position: static; }
  .pc-barre:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px var(--g) max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg);
    transition: transform .35s var(--pn-doux), visibility .35s;
  }
  .pc-barre.est-cache { transform: translateY(100%); visibility: hidden; }
  .pc-barre__total { display: grid; gap: 2px; font-size: var(--fs-h4); line-height: 1.2; }
  .pc-barre__lbl { font-size: var(--fs-mini); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .pc-barre .btn { flex: none; }
  .pc:has(.pc-barre:not([hidden])) { padding-bottom: calc(var(--sec) + 72px); }
}
@media (max-width: 599px) {
  .pc-lignes .pn-ligne { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
  .pc-lignes .pn-vignette { width: 72px; height: 86px; }
  .pc-lignes .pn-ligne__nom { font-size: var(--fs-body); }
  .pc-lignes .pn-ligne__prix { font-size: var(--fs-text); }
  .pc-ajouts__rangee { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-ajouts__rangee > .pn-ajout:nth-child(n + 3) { display: none; }   /* 2 sur téléphone */
  .pc-recap__carte { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-barre { transition: none !important; }
}
