/* css/produit.css : page article de la boutique (produit.html?id=…, script produit.js).
   Utilise les variables de style.css : angles vifs (aucun arrondi), biseau à 17° sur les boutons et étiquettes,
   animations limitées à transform et opacity (désactivées par prefers-reduced-motion dans style.css), cibles tactiles de 44 px au moins. */

.pdp-racine { min-height: 60vh; }
.pdp-racine [hidden] { display: none !important; }

/* Le lien « Boutique » du menu est la section courante (même rendu que aria-current="page" dans style.css) */
.nav > ul > li > a[aria-current="true"]::after { transform: scaleX(1); }

/* ===== Squelette : l'espace est réservé avant que le script n'écrive l'article ===== */
.pdp-squelette { display: none; }
.js .pdp-squelette { display: grid; gap: 28px; padding-block: 24px 64px; }
.pdp-squelette > * { min-width: 0; }
.pdp-squelette .skeleton { margin: 0; }
.pdp-squelette__img { aspect-ratio: 4 / 5; height: auto; }
.pdp-squelette__txt { display: grid; gap: 14px; align-content: start; }
@media (min-width: 960px) {
  .js .pdp-squelette { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; }
  .pdp-squelette__img { max-width: 520px; }
}

/* ===== Fil d'Ariane ===== */
.pdp-fil { padding-block: 6px; }
.pdp-fil ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.pdp-fil li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pdp-fil li .ph { flex: none; font-size: .75rem; }
.pdp-fil a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; }
.pdp-fil a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pdp-fil [aria-current] { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }

/* ===== Mise en page : galerie à gauche (collante), informations à droite ===== */
.pdp { display: grid; gap: 28px; padding-bottom: 56px; }
.pdp > * { min-width: 0; }
.pdp-media { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pdp-info { display: grid; gap: 28px; align-content: start; min-width: 0; }
@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 56px; align-items: start; padding-bottom: 80px; }
  .pdp-media { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (min-width: 640px) and (max-width: 959px) {
  .pdp { width: 100%; max-width: 600px; margin-inline: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .pdp-info { animation: pdp-entree .55s var(--ease) backwards; }
  .js .pdp-media { animation: pdp-fondu .4s var(--ease) backwards; }
  @keyframes pdp-entree { from { opacity: 0; transform: translateY(14px); } }
  @keyframes pdp-fondu { from { opacity: 0; } }
}

/* ===== Onglets Photos / Aperçu du flocage (écran large : sur mobile l'aperçu est dans l'encadré Personnalisation) ===== */
.pdp-onglets { display: none; }
@media (min-width: 960px) {
  .pdp-onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
}
.pdp-onglets button {
  position: relative; min-height: 48px; padding: 0 18px; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 700 1.125rem/1 var(--font-title); letter-spacing: .05em; text-transform: uppercase;
}
.pdp-onglets button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.pdp-onglets button:hover { color: var(--text); }
.pdp-onglets button:hover::after, .pdp-onglets button[aria-selected="true"]::after { transform: scaleX(1); }
.pdp-onglets button[aria-selected="true"] { color: var(--text); }
.pdp-onglets button[aria-selected="true"]::after { background: var(--navy); }

/* ===== Galerie ===== */
.pdp-galerie { display: grid; gap: 8px; min-width: 0; }
.pdp-galerie__corps { display: grid; gap: 12px; min-width: 0; }
.pdp-scene { order: 1; min-width: 0; }
.pdp-cadre { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
@media (max-width: 639px) { .pdp-cadre { margin-inline: -16px; } }                    /* pleine largeur de l'écran, là où la colonne l'est aussi */
@media (min-width: 960px) {
  .pdp-galerie--multi .pdp-galerie__corps { grid-template-columns: 80px minmax(0, 1fr); align-items: stretch; }
  /* sur un écran peu haut, la photo se réduit pour que le bas de la galerie collante reste visible */
  .pdp-scene { max-width: max(320px, calc((100dvh - var(--header-h) - 160px) * .8)); }
}

/* Les photos sont empilées : la nouvelle apparaît en fondu au-dessus de l'ancienne */
.pdp-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.pdp-slide.is-prev { z-index: 1; opacity: 1; transition: none; }
.pdp-slide.is-on { z-index: 2; opacity: 1; }
.pdp-slide img { width: 100%; height: 100%; object-fit: cover; background: var(--mist); }

.pdp-zoomer { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; background: transparent; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.pdp-zoomer:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--bg); }
.pdp-loupe { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; background: var(--bg); color: var(--navy); font-size: 1.25rem; pointer-events: none; }
.pdp-fleche {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: var(--navy); color: var(--bg);
  font-size: 1.25rem; cursor: pointer;
}
.pdp-fleche:hover { background: var(--yellow); color: var(--on-yellow); }
.pdp-fleche:active { transform: translateY(1px); }
.pdp-fleche:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
.pdp-cadre .pdp-fleche { position: absolute; top: 50%; z-index: 4; margin-top: -22px; }
.pdp-cadre .pdp-fleche:hover:focus-visible { outline-color: var(--navy); }
.pdp-fleche--prec { left: 0; }
.pdp-fleche--suiv { right: 0; }
.pdp-compteur {
  position: absolute; left: 0; bottom: 0; z-index: 4; padding: 8px 24px 8px 12px; background: var(--navy); color: var(--bg);
  font: 700 1rem/1 var(--font-title); letter-spacing: .1em; font-variant-numeric: tabular-nums; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.pdp-credit { margin: 10px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

.pdp-vignettes { position: relative; order: 2; display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--navy) transparent; }
.pdp-vignettes li { flex: none; }
.pdp-vignette { position: relative; display: block; width: 68px; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; background: var(--mist); cursor: pointer; }
.pdp-vignette img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .25s var(--ease); }
.pdp-vignette:hover img, .pdp-vignette[aria-current="true"] img { opacity: 1; }
.pdp-vignette::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.pdp-vignette:hover::after, .pdp-vignette[aria-current="true"]::after { transform: scaleX(1); }
.pdp-vignette:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (min-width: 960px) {
  .pdp-vignettes { order: 0; flex-direction: column; padding: 0; overflow: hidden auto; contain: size; }
  .pdp-vignette { width: 100%; }
}

/* Pas de photo : grand pictogramme sur fond brume, avec le motif des bandes du logo */
.pdp-vide { position: absolute; inset: 0; overflow: hidden; display: grid; align-content: center; justify-items: center; gap: 14px; background: var(--mist); color: var(--navy); text-align: center; }
.pdp-vide::before, .pdp-vide::after { content: ""; position: absolute; top: -10%; bottom: -10%; transform: skewX(-17deg); }
.pdp-vide::before { right: 22%; width: 14px; background: var(--yellow); }
.pdp-vide::after { right: -6%; width: 26%; background: color-mix(in srgb, var(--navy) 7%, transparent); }
.pdp-vide > * { position: relative; z-index: 1; }
.pdp-vide .ph { font-size: clamp(5.5rem, 22vw, 9rem); line-height: 1; }
.pdp-vide span { color: var(--muted); font: 700 .875rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }

/* Aperçu du flocage (le moteur dessine son propre cadre, la bascule Face/Dos et la mention « Aperçu indicatif ») */
.pdp-apercu-boite { display: grid; gap: 8px; min-width: 0; max-width: 560px; }
/* Colonne collante : l'aperçu (dessin 400 × 440, plus Face/Dos et la mention) tient dans la hauteur de l'écran, comme la photo */
@media (min-width: 960px) {
  .pdp-apercu-boite { max-width: clamp(260px, calc((100dvh - var(--header-h) - 210px) / 1.1), 560px); }
}
.pdp-apercu { min-width: 0; }
.pdp-apercu__note { max-width: none; margin: 0; color: var(--muted); font-size: .875rem; }
.pdp-perso__apercu { width: 100%; max-width: 380px; margin-inline: auto; }
.pdp-perso__apercu:empty { display: none; }

/* ===== Colonne d'informations ===== */
.pdp-entete { display: grid; gap: 12px; }
.pdp-etiquettes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: none; margin: 0; }
.pdp-cat { color: var(--muted); font: 700 .8125rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.pdp-titre { font-size: clamp(2.5rem, 5.2vw, 3.75rem); line-height: .92; overflow-wrap: anywhere; }
.pdp-prix { max-width: none; margin: 0; font: 700 clamp(2.125rem, 3.6vw, 2.75rem)/1 var(--font-title); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pdp-prix.tbc { color: var(--muted); font: 600 1.125rem/1.3 var(--font-body); letter-spacing: 0; }
.pdp-desc { margin: 0; color: var(--muted); }

.pdp-form { display: grid; gap: 28px; min-width: 0; }
fieldset.pdp-bloc { min-width: 0; margin: 0; padding: 0; border: 0; }
.pdp-bloc { display: grid; gap: 12px; min-width: 0; }
.pdp-bloc > legend { margin-bottom: 12px; padding: 0; }
.pdp-lib { margin: 0; padding: 0; color: var(--text); font: 700 1.3125rem/1 var(--font-title); letter-spacing: .05em; text-transform: uppercase; }
.pdp-lib--s { color: var(--muted); font-size: 1.0625rem; }
.pdp-sel { margin-left: 10px; color: var(--blue); }
.pdp-err { max-width: none; margin: 0; color: var(--ko); font-size: .9375rem; font-weight: 600; }
.pdp-err:empty { display: none; }
.pdp-err::before { content: "Erreur : "; }
.pdp-guide { justify-self: start; }

/* Puces de taille et de police : une barre jaune glisse sous la puce survolée ou choisie */
.pdp-form .chips { gap: 8px; }
.pdp-form .chips span { position: relative; min-width: 56px; min-height: 48px; padding-inline: 16px; font-size: 1.0625rem; text-align: center; }
.pdp-form .chips span::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.pdp-form .chips label:hover span::after, .pdp-form .chips input:checked + span::after { transform: scaleX(1); }
.pdp-form .chips label:active span { transform: translateY(1px); }
.pdp-bloc[data-invalide] .chips span { border-color: var(--ko); }
.pdp-police .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pdp-police .chips span { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 0; padding-inline: 10px; font-size: 1.125rem; line-height: 1.2; text-align: center; text-wrap: balance; }
.pdp-police .chips b { flex: none; font-size: 1.25em; }

/* Personnalisation */
.pdp-perso { display: grid; gap: 18px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--yellow); background: var(--surface); }
.pdp-perso__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.pdp-perso__titre { font-size: 1.875rem; line-height: 1; }
.pdp-perso__fac { color: var(--muted); font-weight: 600; }
.pdp-note { display: flex; align-items: flex-start; gap: 10px; max-width: none; margin: 0; padding: 10px 12px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); color: var(--navy); font-size: .9375rem; font-weight: 600; }
.pdp-note .ph { flex: none; margin-top: 2px; }
.pdp-perso__sans { display: flex; align-items: center; gap: 8px; max-width: none; margin: 0; color: var(--muted); font-size: .9375rem; }
.pdp-champ { gap: 8px; min-width: 0; }
.pdp-etiq { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; color: var(--text); font-size: 1rem; font-weight: 700; }
.pdp-etiq em { color: var(--muted); font-size: .9375rem; font-style: normal; font-weight: 600; }
.pdp-form .field input.maj { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pdp-form .field input.maj::placeholder { text-transform: none; letter-spacing: 0; }
.pdp-form .field input[aria-invalid="true"] { border-bottom-color: var(--ko); background: color-mix(in srgb, var(--ko) 8%, var(--mist)); }
.pdp-aide { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.pdp-champ--logo { display: grid; gap: 8px; }
.pdp-logo { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px 10px 20px; border: 2px solid var(--line); cursor: pointer; }
.pdp-logo:hover { border-color: var(--navy); }
.pdp-logo:has(input:checked) { border-color: var(--navy); background: var(--mist); box-shadow: inset 6px 0 0 var(--yellow); }
.pdp-logo:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.pdp-logo:has(input[aria-invalid="true"]) { border-color: var(--ko); }
.pdp-logo input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.pdp-logo__txt { display: grid; gap: 2px; min-width: 0; }
.pdp-logo__txt em { color: var(--muted); font-size: .9375rem; font-style: normal; font-weight: 600; }
.pdp-logo img { flex: none; width: 56px; height: 56px; margin-left: auto; object-fit: contain; border: 1px solid var(--line); background: var(--bg); }

/* Quantité */
.pdp-qte { display: inline-flex; align-items: stretch; width: max-content; max-width: 100%; border: 2px solid var(--line); }
.pdp-qte button { display: grid; place-items: center; width: 48px; min-height: 48px; padding: 0; border: 0; background: var(--surface); color: var(--text); font-size: 1.125rem; cursor: pointer; }
.pdp-qte button:hover { background: var(--navy); color: var(--bg); }
.pdp-qte button:active { transform: translateY(1px); }
.pdp-qte button[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.pdp-qte button[aria-disabled="true"]:hover { background: var(--surface); color: var(--text); }
.pdp-qte button:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; }
.pdp-qte input {
  width: 64px; min-height: 48px; padding: 0; border: 0; border-inline: 2px solid var(--line); border-radius: 0; background: var(--bg); color: var(--text);
  font: 700 1.25rem/1 var(--font-title); text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.pdp-qte input::-webkit-outer-spin-button, .pdp-qte input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.pdp-qte input:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; }
.pdp-qte input[aria-invalid="true"] { background: color-mix(in srgb, var(--ko) 8%, var(--bg)); border-color: var(--ko); }

/* Prix en direct, message d'erreur, bouton d'ajout */
.pdp-recap { display: grid; align-content: start; gap: 4px; min-height: 4.5rem; padding: 14px 0; border-block: 1px solid var(--line); }
.pdp-recap__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; max-width: none; margin: 0; }
.pdp-recap__lbl { color: var(--muted); font: 700 1.0625rem/1 var(--font-title); letter-spacing: .06em; text-transform: uppercase; }
.pdp-recap__total { font: 700 2.25rem/1 var(--font-title); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pdp-recap__calc { max-width: none; margin: 0; color: var(--muted); font-size: .875rem; }
.pdp-alerte { max-width: none; margin: 0; padding: 12px 16px; border-left: 4px solid var(--ko); background: color-mix(in srgb, var(--ko) 8%, var(--bg)); color: var(--ko); font-weight: 600; }
.pdp-alerte:empty { display: none; }
.pdp-ajouter { width: 100%; min-height: 56px; font-size: 1.25rem; }
.pdp-ajouter.is-ajoute { background: var(--navy); color: var(--bg); }
.pdp-suite { max-width: none; margin: -12px 0 0; }
.pdp-voir { padding: 0; border: 0; background: none; cursor: pointer; }
.pdp-bientot { display: grid; gap: 20px; }
.pdp-bientot__txt { display: flex; align-items: flex-start; gap: 12px; max-width: none; margin: 0; padding: 14px 16px; background: var(--mist); border-left: 4px solid var(--yellow); font-weight: 600; }
.pdp-bientot__txt .ph, .pdp-bientot__perso .ph { flex: none; margin-top: 3px; color: var(--navy); }
.pdp-bientot__perso { display: flex; align-items: flex-start; gap: 10px; max-width: none; margin: 0; color: var(--muted); }
.pdp-bientot .sizes { margin: 0; }

/* Assurance : paiement, retrait, envoi, flocage */
.pdp-assure { display: grid; gap: 12px; margin: -8px 0 0; padding: 16px 18px; list-style: none; background: var(--mist); }
.pdp-assure li { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.45; }
.pdp-assure .ph { flex: none; margin-top: 1px; color: var(--navy); font-size: 1.375rem; line-height: 1; }

/* ===== Sections d'information (<details>) ===== */
.pdp-det { margin-top: 8px; border-top: 2px solid var(--navy); }
.pdp-det details { border-bottom: 1px solid var(--line); }
.pdp-det summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 0; list-style: none; cursor: pointer;
  font: 700 1.5rem/1.1 var(--font-title); letter-spacing: .03em; text-transform: uppercase;
}
.pdp-det summary::-webkit-details-marker { display: none; }
.pdp-det summary::after { content: "+"; flex: none; color: var(--navy); font: 700 2rem/1 var(--font-title); transition: transform .25s var(--ease); }
.pdp-det details[open] summary::after { transform: rotate(45deg); }
.pdp-det summary:hover::after { color: var(--blue); }
.pdp-det__corps { padding: 0 0 22px; }
.pdp-det__corps > :last-child { margin-bottom: 0; }
.pdp-det__corps ul:not(.pdp-liv) { margin: 0 0 1em; padding-left: 1.2em; }
.pdp-liv { display: grid; margin: 0 0 14px; padding: 0; list-style: none; }
.pdp-liv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pdp-liv__nom { font-weight: 700; }
.pdp-liv b { white-space: nowrap; }
.pdp-liv__det { grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.pdp-def { display: grid; margin: 0; }
.pdp-def > div { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pdp-def dt { color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .07em; line-height: 1.9; text-transform: uppercase; }
.pdp-def dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { .pdp-def > div { grid-template-columns: 150px minmax(0, 1fr); } }
.pdp-table { overflow-x: auto; border: 1px solid var(--line); }
.pdp-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pdp-table th, .pdp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.pdp-table thead th { background: var(--mist); border-bottom: 2px solid var(--navy); color: var(--muted); font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase; }
.pdp-table tbody tr:last-child > * { border-bottom: 0; }

/* ===== Vous aimerez aussi ===== */
section.pdp-sim { border-top: 1px solid var(--line); }
.pdp-sim > h2 { margin-bottom: 28px; }
.pdp-sim .prod__name { overflow-wrap: anywhere; }

/* ===== Barre d'achat collante (mobile) : prix et bouton, quand le bouton principal est hors de l'écran ===== */
.pdp-barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -14px 30px -22px color-mix(in srgb, var(--navy) 70%, transparent);
  transform: translateY(105%); transition: transform .3s var(--ease);
}
.pdp-barre.is-on { transform: none; }
.pdp-barre__prix { display: grid; gap: 4px; flex: none; max-width: none; margin: 0; }
.pdp-barre__prix span { color: var(--muted); font: 700 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.pdp-barre__prix b { font: 700 1.75rem/1 var(--font-title); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pdp-barre .btn { flex: 1; min-width: 0; min-height: 52px; padding-inline: 14px; white-space: normal; line-height: 1.1; text-align: center; }
@media (max-width: 359px) {
  .pdp-barre { gap: 10px; padding-inline: 12px; }
  .pdp-barre__prix b { font-size: 1.5rem; }
  .pdp-barre .btn { gap: 6px; padding-inline: 8px; font-size: 1rem; letter-spacing: .03em; }
  .pdp-barre .btn--primary { padding-right: calc(8px + var(--biseau)); }
}
.pdp-barre .btn--primary { padding-right: calc(14px + var(--biseau)); }
.pdp-barre .btn.is-ajoute { background: var(--navy); color: var(--bg); }
@media (min-width: 960px) { .pdp-barre { display: none; } }
@media (max-width: 959px) {
  html:has(body.pdp-barre-on) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* un champ qui prend le focus ne passe pas sous la barre */
  body.pdp-barre-on .site-footer { padding-bottom: calc(28px + 84px + env(safe-area-inset-bottom)); }
  body.pdp-barre-on .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ===== Photo en grand (<dialog> natif) ===== */
.pdp-zoom {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden;
  border: 0; background: color-mix(in srgb, var(--navy) 97%, transparent); color: var(--bg); box-shadow: none;
}
.pdp-zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pdp-zoom::backdrop { background: var(--navy); }
.pdp-zoom :focus-visible { outline-color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) { .pdp-zoom[open] { animation: pdp-fondu .25s var(--ease); } }
.pdp-zoom__haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.pdp-zoom__compteur { font: 700 1.25rem/1 var(--font-title); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.pdp-zoom__fermer { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid color-mix(in srgb, var(--bg) 50%, transparent); background: transparent; color: var(--bg); font-size: 1.4rem; cursor: pointer; }
.pdp-zoom__fermer:hover { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.pdp-zoom__scene { position: relative; display: grid; align-items: center; min-height: 0; padding-inline: 12px; }
.pdp-zoom__fig { display: grid; place-items: center; min-width: 0; min-height: 0; touch-action: pan-y pinch-zoom; }
.pdp-zoom__fig img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 176px); object-fit: contain; }
.pdp-zoom .pdp-fleche { position: absolute; top: 50%; z-index: 2; margin-top: -22px; background: color-mix(in srgb, var(--navy) 82%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); }
.pdp-zoom .pdp-fleche:hover { background: var(--yellow); border-color: var(--yellow); }
.pdp-zoom .pdp-fleche--prec { left: 12px; }
.pdp-zoom .pdp-fleche--suiv { right: 12px; }
.pdp-zoom__credit { max-width: none; min-height: 1.4em; margin: 0; padding: 12px 16px 18px; color: color-mix(in srgb, var(--bg) 80%, var(--navy)); font-size: .875rem; text-align: center; }
html:has(.pdp-zoom[open]) { overflow: hidden; }

@media (prefers-contrast: more) {
  .pdp-perso, .pdp-table, .pdp-logo { border-width: 2px; }
  .pdp-det details { border-bottom-width: 2px; }
}

/* Choix de la couleur ou du modèle : chaque choix mène à l'article correspondant */
.pdp-var { min-width: 0; margin: 0; padding: 0; border: 0; }
.pdp-var__liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdp-var__choix { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 2px solid var(--line); color: var(--text); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.pdp-var__choix small { color: var(--muted); font-weight: 600; font-size: .8125rem; }
.pdp-var__choix::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.pdp-var__choix:hover { border-color: var(--navy); }
.pdp-var__choix:hover::after, .pdp-var__choix[aria-current="true"]::after { transform: scaleX(1); }
.pdp-var__choix[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--bg); }
.pdp-var__choix[aria-current="true"] small { color: inherit; opacity: .8; }
.pdp-var__choix:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.pdp-var .pastille { width: 22px; height: 22px; }
.pdp-var__choix[aria-current="true"] .pastille { border-color: var(--bg); }

/* Choix de la couleur : pastille et nom ; une seule couleur : simple indication */
.pdp-coul { min-width: 0; margin: 0; padding: 0; border: 0; }
.pdp-coul > .pdp-lib { margin-bottom: 0; }
.pdp-form .chips--couleur span { display: inline-flex; align-items: center; gap: 10px; padding-inline: 14px; }
.pdp-form .chips--couleur b { font-weight: 700; }
.pdp-form .chips--couleur .pastille { width: 22px; height: 22px; }
.pdp-form .chips--couleur input:checked + span .pastille { border-color: var(--bg); }
