/* =========================================================================
   Fiche produit — styles propres à la page (produit.html)
   S’appuie sur les jetons et composants de app.css.
   ========================================================================= */

:root { --pdbar-h: 84px; }

/* La barre d’achat collante ne recouvre jamais le contenu */
.pd-page.has-pdbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--pdbar-h)); }
.pdbar-on .toast-region { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--pdbar-h) + 6px); transition: bottom var(--dur-2) var(--ease-out); }

/* ---------- Squelette initial ---------- */
.pd-skel__crumbs { padding-block: 14px; }
.pd-skel__crumbs .skeleton { display: block; width: 58%; height: 16px; border-radius: 8px; }
.pd-skel__gal { aspect-ratio: 1 / 0.86; max-height: max(260px, 45svh); border-radius: 0; }
.pd-skel__info { display: flex; flex-direction: column; padding: 18px var(--gutter); }
.pd-skel__info .skeleton { display: block; border-radius: 10px; }

/* ---------- Fil d’Ariane ---------- */
.crumbs { max-width: var(--content-max); margin-inline: auto; }
.crumbs ol {
  display: flex; align-items: center; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--gutter); white-space: nowrap; scrollbar-width: none;
}
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li { display: flex; align-items: center; flex: none; }
.crumbs li + li::before { content: '›'; content: '›' / ''; color: var(--muted-2); font-weight: 600; transform: translateY(-1px); }
.crumbs a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: none;
}
.crumbs li:first-child a { padding-left: 0; }
.crumbs li:last-child a { color: var(--ink); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Galerie ---------- */
.gal { position: relative; isolation: isolate; background: var(--well); }
.gal__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline-offset: -4px; border-radius: 0; }
.gal__slide {
  position: relative; flex: 0 0 100%; aspect-ratio: 1 / 0.86; max-height: max(260px, 45svh); overflow: hidden;
  scroll-snap-align: center; scroll-snap-stop: always;
}
.gal__hit { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; }
.gal__hit:focus-visible { outline-offset: -4px; }

.gal__slide--pack { background: radial-gradient(62% 54% at 50% 44%, #fff 0%, #f8f6f2 48%, var(--well) 100%); }
.gal__slide--pack::before {
  content: ''; position: absolute; left: 24%; right: 24%; bottom: 10%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(20 21 24 / 0.2), rgb(20 21 24 / 0));
}
.gal__slide--pack picture { position: relative; width: 78%; height: 78%; }
.gal__pack {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 22px 26px rgb(20 21 24 / 0.2));
  transition: transform var(--dur-3) var(--ease-out);
}
@media (hover: hover) { .gal__slide--pack:hover .gal__pack { transform: scale(1.03); } }

.gal__slide--dark { background: #0d0e11; color: #fff; }
.gal__slide--dark picture, .gal__cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.gal__cover { object-fit: cover; }
.gal__cover--photo { object-position: 50% 30%; }
.gal__slide--dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgb(8 10 16 / 0.86) 0%, rgb(8 10 16 / 0.35) 38%, rgb(8 10 16 / 0) 60%);
}
.gal__cap { position: absolute; left: 18px; right: 22%; bottom: 66px; z-index: 2; display: grid; gap: 6px; pointer-events: none; }
.gal__cap .eyebrow { color: #ff7a7d; }
.gal__cap-txt { font-size: 1.2rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }

.gal__slide--video { background: #0b0b0d; }
.gal__video-slot, .gal__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.gal__video { object-fit: cover; }
.gal__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  background: rgb(255 255 255 / 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: var(--fs-sm); font-weight: 700;
}
.gal__motion { top: auto; bottom: 12px; right: 12px; }
.gal__play.is-playing { left: auto; top: auto; right: 12px; bottom: 12px; transform: none; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.gal__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: rgb(255 255 255 / 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-weight: 750; white-space: nowrap;
}

/* Surimpressions */
.gal__count {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.84); color: var(--ink); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.78rem; font-weight: 650; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-2), color var(--dur-2);
}
.gal__actions { position: absolute; top: 6px; right: 6px; z-index: 3; display: flex; gap: 2px; }
.gal__fab {
  position: relative; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink); transition: transform var(--dur-1) var(--ease-out), color var(--dur-2);
}
.gal__fab::before {
  content: ''; position: absolute; inset: 4px; z-index: -1; border-radius: 999px;
  background: rgb(255 255 255 / 0.9); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gal__fab:active { transform: scale(0.9); }
.gal__fab .heart { fill: transparent; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill var(--dur-2); }
.gal__fab[aria-pressed='true'] { color: var(--red); }
.gal__fab[aria-pressed='true'] .heart { fill: currentColor; }
.gal__fab.pop .heart { animation: pd-heart 560ms var(--spring); }
@keyframes pd-heart { 30% { transform: scale(1.4); } 60% { transform: scale(0.92); } }

.gal__pill {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgb(20 21 24 / 0.22);
  font-size: var(--fs-sm); font-weight: 750;
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.gal__pill .icon { animation: pd-spin 3.2s linear infinite; }
@keyframes pd-spin { to { transform: rotate(-360deg); } }
.gal__expand { position: absolute; right: 6px; bottom: 6px; z-index: 3; transition: opacity var(--dur-2), transform var(--dur-1) var(--ease-out); }
.gal__pill, .gal__expand { transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out), visibility var(--dur-2); }
.gal:not([data-kind='pack']) .gal__pill { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; }
.gal[data-kind='video'] .gal__expand { opacity: 0; visibility: hidden; pointer-events: none; }

.gal__dots { position: absolute; left: 50%; bottom: 30px; z-index: 3; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; }
.gal__dots span { width: 6px; height: 6px; border-radius: 99px; background: rgb(20 21 24 / 0.22); transition: width var(--dur-3) var(--ease-out), background-color var(--dur-2); }
.gal__dots span.is-on { width: 20px; background: var(--ink); }
.gal:not([data-kind='pack']) .gal__dots span { background: rgb(255 255 255 / 0.4); }
.gal:not([data-kind='pack']) .gal__dots span.is-on { background: #fff; }
.gal:not([data-kind='pack']) .gal__count { background: rgb(10 15 29 / 0.5); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }

.gal__nav {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 999px;
  display: none; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-2);
  opacity: 0; transition: opacity var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.gal__nav--prev { left: 14px; }
.gal__nav--next { right: 14px; }
.gal__nav:disabled { opacity: 0 !important; pointer-events: none; }
.gal__nav:active { transform: scale(0.92); }
.gal__thumbs { display: none; }

/* ---------- Informations ---------- */
.pd-info { padding: 10px var(--gutter) 6px; }
.pd-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -4px; }
.pd-brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-xs); font-weight: 800; font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-600); text-decoration: none;
}
.pd-brand:hover { text-decoration: underline; }
.pd-sku { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; border-radius: 8px; }
.pd-sku__pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px;
  color: var(--ink-3); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.74rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap;
  transition: box-shadow var(--dur-2), color var(--dur-2), transform var(--dur-1);
}
.pd-sku:hover .pd-sku__pill { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.pd-sku:active .pd-sku__pill { transform: scale(0.96); }
.pd-title {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); font-weight: 800; font-stretch: 106%;
  letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance;
}
.pd-title--long { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.12; }
.pd-rating {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: none;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-3); text-decoration: none;
}
.pd-rating > span:last-child { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pd-rating:hover > span:last-child { text-decoration-color: currentColor; }
.pd-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 10px; }

/* Prix */
.pd-price { margin-top: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pd-price__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pd-price__now {
  font-size: 2.65rem; font-weight: 850; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pd-price__now.is-sale { color: var(--red-600); }
.pd-price__was { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-price__pct { align-self: center; }
.pd-price__unit { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.pd-price__unit b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-price__save { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 0.82rem; }
.pd-save__amt { padding: 4px 9px; border-radius: 7px; background: var(--red-50); color: var(--red-700); font-weight: 750; }
.pd-save__end { color: var(--muted); }

/* Options */
.pd-opt { margin-top: 22px; }
.pd-opt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pd-opt__label { font-size: var(--fs-xs); font-weight: 800; font-stretch: 110%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pd-opt__val { font-weight: 750; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.pd-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size-opt {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 62px; padding: 8px 10px; border-radius: 14px; text-align: left;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color var(--dur-2), box-shadow var(--dur-2), color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.size-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.size-opt:active { transform: scale(0.96); }
.size-opt__size { font-weight: 800; font-size: 0.9rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.size-opt__price { font-size: 0.76rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.size-opt[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgb(20 21 24 / 0.2); }
.size-opt[aria-pressed='true'] .size-opt__price { color: rgb(255 255 255 / 0.72); }
.size-opt__tag {
  position: absolute; top: -9px; right: 8px; max-width: calc(100% - 16px);
  display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.size-opt__tag .icon { width: 11px; height: 11px; }
.size-opt--more {
  flex-direction: row; align-items: center; justify-content: center; gap: 6px; text-align: center;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-3);
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.pd-fit {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--well); color: var(--ink-3); font-size: 0.85rem; line-height: 1.4;
  animation: pd-fade-up 360ms var(--ease-out);
}
.pd-fit__ico { flex: none; display: grid; margin-top: 1px; }
.pd-fit.is-ok { background: var(--green-50); color: var(--green); }
.pd-fit.is-ok b { color: var(--ink); }
.pd-fit.is-warn { background: var(--amber-50); color: #7a3f00; }
.pd-fit__link {
  display: inline; padding: 13px 0; margin: -13px 0; /* zone tactile élargie sans décaler le texte */
  font-weight: 750; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
@keyframes pd-fade-up { from { opacity: 0; transform: translateY(4px); } }

.pd-qty { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pd-qty .pd-opt__label { min-width: 74px; }
.pd-stepper { background: var(--card); }
.pd-stepper button { width: 48px; height: 48px; transition: opacity var(--dur-2), background-color var(--dur-2); }
.pd-stepper button:disabled { opacity: 0.3; cursor: default; }
.pd-stepper output { min-width: 32px; font-size: 1.1rem; }
.pd-stepper output.bump { animation: pd-bump 380ms var(--spring); }
@keyframes pd-bump { 40% { transform: scale(1.3); } }
.pd-qty__hint { flex: 1 1 84px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.pd-qty__hint .is-full { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 700; }
.is-warn { color: #8a4700; font-weight: 650; }
.pd-qty__hint .is-warn { display: inline-flex; align-items: center; gap: 5px; }
.pd-qty__hint .is-full, .pd-qty__hint .is-warn:has(.icon) { white-space: nowrap; }

/* Interrupteur « pose » */
.pd-switch {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 16px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.pd-switch:active { transform: scale(0.99); }
.pd-switch:has(input:disabled) { cursor: default; transform: none; }
.pd-switch .switch:disabled { cursor: default; opacity: 0.85; }
.pd-switch:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green), 0 6px 18px rgb(11 122 59 / 0.1); }
.pd-switch:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pd-switch__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); transition: background-color var(--dur-2), color var(--dur-2); }
.pd-switch:has(input:checked) .pd-switch__ico { background: var(--green-50); color: var(--green); }
.pd-switch__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pd-switch__txt b { font-size: 0.92rem; line-height: 1.25; }
.pd-switch__txt span { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 52px; height: 32px; border-radius: 99px; background: var(--line-2);
  transition: background-color var(--dur-2);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgb(20 21 24 / 0.22);
  transition: transform 340ms var(--spring);
}
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: none; }

/* Modes de réception */
.pd-ful { display: grid; gap: 10px; min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.pd-ful legend { padding: 0; margin-bottom: 10px; }
.fopt {
  position: relative; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.fopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-1); }
.fopt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fopt:has(label:active) { transform: scale(0.99); }
.fopt input {
  appearance: none; -webkit-appearance: none; position: absolute; top: 22px; right: 16px; margin: 0; pointer-events: none;
  width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2);
  transition: box-shadow 260ms var(--ease-out);
}
.fopt input:checked { box-shadow: inset 0 0 0 7px var(--ink); }
.fopt input:focus-visible { outline: none; }
.fopt label { display: flex; gap: 12px; min-height: 68px; padding: 14px 50px 14px 14px; cursor: pointer; }
.fopt__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--well); transition: background-color var(--dur-2), color var(--dur-2); }
.fopt:has(input:checked) .fopt__ico { background: var(--ink); color: #fff; }
.fopt__txt { display: grid; gap: 3px; min-width: 0; align-content: center; }
.fopt__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-weight: 750; font-size: 0.95rem; line-height: 1.25; }
.fopt__price { font-size: 0.8rem; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
#f-pickup + label .fopt__price, .fopt__price.is-free { color: var(--green); }
.fopt__sub { font-size: 0.82rem; color: var(--ink-3); line-height: 1.4; }
.fopt__stock { white-space: nowrap; }
.fopt__sub .is-ok { color: var(--green); font-weight: 700; }
.fopt__sub .is-low { color: #8a4700; font-weight: 700; }
.fopt__fine { font-size: 0.74rem; color: var(--muted); }
.fopt__links { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); }
.fopt__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 8px;
  font-size: 0.82rem; font-weight: 750; color: var(--red-600); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-2);
}
.fopt__link + .fopt__link { border-left: 1px solid var(--line); }
.fopt__link:hover { background: var(--red-50); }
.fopt__link:active { background: var(--red-50); }
.fopt__links > :first-child { border-bottom-left-radius: 16px; }
.fopt__links > :last-child { border-bottom-right-radius: 16px; }

/* Argent CT */
.pd-ct {
  display: flex; align-items: center; gap: 12px; min-height: 60px; margin-top: 18px; padding: 10px 12px 10px 10px; border-radius: 16px;
  background: linear-gradient(100deg, var(--red-50), #fff4ee); color: var(--red-700); text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2);
}
.pd-ct:hover { box-shadow: inset 0 0 0 1.5px rgb(163 14 21 / 0.18); }
.pd-ct:active { transform: scale(0.99); }
.pd-ct__mark { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-1); }
.pd-ct__tri { width: 15px; height: 15px; color: var(--red); }
.pd-ct__txt { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 0.92rem; font-weight: 650; line-height: 1.3; }
.pd-ct__txt b { font-weight: 850; font-variant-numeric: tabular-nums; }
.pd-ct__txt small { font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.pd-ct__go { flex: none; transition: transform var(--dur-2) var(--ease-out); }
.pd-ct:hover .pd-ct__go { transform: translateX(3px); }

/* Appel à l’action */
.pd-cta { display: grid; gap: 10px; margin-top: 16px; }
.pd-add { gap: 10px; max-width: 100%; }
.pd-add__lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pd-add__ico, .buybar__btn .pd-add__ico { display: grid; flex: none; }
.pd-add .icon, .buybar__btn .icon { max-width: none; }
.pd-sentinel { position: absolute; left: 0; bottom: 0; top: -10000px; width: 1px; visibility: hidden; pointer-events: none; }
.pd-add .i-check, .buybar__btn .i-check { display: none; }
[data-buy].is-done { --btn-bg: var(--green); box-shadow: 0 6px 18px rgb(11 122 59 / 0.3); }
[data-buy].is-done .i-cart { display: none; }
[data-buy].is-done .i-check { display: block; animation: pd-pop 520ms var(--spring); }
.pd-add__sep { opacity: 0.6; }
.pd-add__total { font-variant-numeric: tabular-nums; }
.pd-tax { font-size: 0.75rem; color: var(--muted); text-align: center; }
.pd-incart {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 6px;
  font-size: 0.82rem; font-weight: 650; color: var(--green); animation: pd-fade-up 360ms var(--ease-out);
}
.pd-incart button { min-height: 44px; font-weight: 750; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes pd-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } }

.pd-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.pd-trust li {
  display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 6px; border-radius: 14px;
  background: var(--card); text-align: center; font-size: 0.72rem; line-height: 1.25; color: var(--muted);
}
.pd-trust .icon { color: var(--red); }
.pd-trust b { display: block; color: var(--ink); font-size: 0.78rem; }

/* ---------- Sections de détails ---------- */
.pd-more { padding-top: 14px; }
.pd-sec { padding-block: 20px; }
.pd-sec__title { margin-bottom: 2px; }
.pd-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pd-keys li { display: grid; align-content: start; gap: 2px; padding: 14px 10px 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-1); min-width: 0; }
.pd-keys__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; background: var(--night); color: #fff; }
.pd-keys b { font-size: 0.92rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.pd-keys li > span:last-child { font-size: 0.72rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.pd-hl__title { margin-top: 24px; font-size: var(--fs-lg); font-weight: 750; letter-spacing: -0.01em; }
.pd-hl__list { display: grid; gap: 10px; margin-top: 12px; }
.pd-hl__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; line-height: 1.4; }
.pd-hl__list .icon { color: var(--green); margin-top: 1px; }
.pd-foot { margin-top: 12px; font-size: 0.74rem; color: var(--muted); }

/* Accordéon */
.acc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.acc + .acc { margin-top: 10px; }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 0 16px; border-radius: var(--radius);
  font-size: 1.02rem; font-weight: 750; list-style: none; cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary > .icon { flex: none; color: var(--muted); transition: transform 320ms var(--ease-out); }
.acc[open]:not(.is-closing) summary > .icon { transform: rotate(180deg); }
.acc__body { overflow: hidden; }
.acc__in { padding: 0 16px 18px; font-size: 0.95rem; line-height: 1.6; color: var(--ink-3); }
.acc__in > p + p { margin-top: 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.4; }
.specs th, .specs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 46%; padding-right: 14px; font-weight: 600; color: var(--muted); }
.specs td { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.specs tr:last-child > * { border-bottom: 0; }
.pd-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--well); font-size: 0.85rem; line-height: 1.45; }
.pd-note .icon { flex: none; color: var(--ink-3); margin-top: 1px; }
.pd sup { font-size: 0.65em; line-height: 0; }
.pd-bullets { display: grid; gap: 10px; }
.pd-bullets li { position: relative; padding-left: 18px; }
.pd-bullets li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.pd-bullets b { color: var(--ink); }

/* Souvent achetés ensemble */
.bundle { padding: 16px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-1); }
.bundle__visual { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 0 14px; }
.bundle__img {
  position: relative; flex: none; width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center;
  background: radial-gradient(90% 80% at 50% 40%, #fff 0%, var(--well) 100%);
  transition: opacity var(--dur-3), transform var(--dur-3) var(--spring), filter var(--dur-3);
}
.bundle__img img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(20 21 24 / 0.14)); }
.bundle__img.is-off { opacity: 0.35; transform: scale(0.88); filter: grayscale(1); }
.bundle__qty { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 800; }
.bundle__plus { color: var(--muted-2); display: grid; }
.bundle__list li + li { border-top: 1px solid var(--line); }
.bopt { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px 0; cursor: pointer; }
.bopt input { position: absolute; left: 1px; top: 50%; width: 26px; height: 26px; margin: -13px 0 0; opacity: 0; }
.bopt__box {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color var(--dur-2), box-shadow var(--dur-2);
}
.bopt__box .icon { opacity: 0; transform: scale(0.3); transition: opacity var(--dur-2), transform 320ms var(--spring); }
.bopt:has(input:checked) .bopt__box { background: var(--ink); box-shadow: none; }
.bopt:has(input:checked) .bopt__box .icon { opacity: 1; transform: none; }
.bopt:has(input:focus-visible) .bopt__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.bopt__txt { display: grid; gap: 2px; min-width: 0; }
.bopt__name { font-size: 0.88rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bopt__this { display: inline-block; margin-right: 2px; padding: 1px 6px; border-radius: 5px; background: var(--red-50); color: var(--red-700); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; vertical-align: 1px; }
.bopt__opt { font-size: 0.76rem; color: var(--muted); }
.bopt__price { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.bopt__price b { font-size: 0.95rem; }
.bopt__price s { font-size: 0.74rem; color: var(--muted); }
.bundle__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.bundle__sum { display: grid; gap: 2px; }
.bundle__sum .muted { font-size: var(--fs-sm); }
.bundle__total { font-size: 1.7rem; font-weight: 850; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bundle__btn { width: 100%; min-width: 0; white-space: normal; text-align: center; }
.bundle__btn.is-done { --btn-bg: var(--green); }

/* Avis */
.rev { display: grid; gap: 12px; }
.rev-skel .skeleton { display: block; }
.rev__summary { display: grid; gap: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-1); }
.rev__score { display: flex; align-items: center; gap: 14px; }
.rev__score > b { font-size: 3.4rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.045em; line-height: 0.9; }
.rev__score > span { display: grid; gap: 6px; font-size: var(--fs-sm); }
.stars--lg { width: 104px; height: 19px; }
.rev__reco { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; line-height: 1.35; color: var(--green); }
.rev__reco span { color: var(--ink-3); }
.rev__reco b { color: var(--ink); }
.rev__bars { display: grid; gap: 7px; }
.rev__bars li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 0.8rem; }
.rev__lbl { font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.rev__bar, .rev__asp-bar { display: block; height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.rev__bar > span, .rev__asp-bar > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ink); transition: width 1100ms var(--ease-out); }
.bars-in .rev__bar > span, .bars-in .rev__asp-bar > span { width: var(--w); }
.rev__bars li:nth-child(2) .rev__bar > span { transition-delay: 70ms; }
.rev__bars li:nth-child(3) .rev__bar > span { transition-delay: 140ms; }
.rev__bars li:nth-child(4) .rev__bar > span { transition-delay: 210ms; }
.rev__bars li:nth-child(5) .rev__bar > span { transition-delay: 280ms; }
.rev__n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rev__aspects { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.rev__aspects li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: 0.85rem; }
.rev__asp { display: flex; align-items: center; gap: 10px; flex: none; }
.rev__asp-bar { width: 76px; height: 6px; }
.rev__asp-bar > span { background: var(--red); transition-delay: 300ms; }
.rev__asp b { min-width: 2em; text-align: right; font-variant-numeric: tabular-nums; }
.rev__list { display: grid; gap: 12px; }
.rev-card { padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
.rev-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rev-card__date { font-size: 0.78rem; color: var(--muted); }
.rev-card__title { margin-top: 10px; font-size: 1rem; font-weight: 750; line-height: 1.3; text-wrap: balance; }
.rev-card__body { margin-top: 6px; font-size: 0.92rem; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.rev-card__who { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.85rem; line-height: 1.35; }
.rev-card__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font-weight: 800; }
.rev-card__meta { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 0.75rem; font-weight: 650; }
.rev-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.8rem; }
.rev-card__help { min-height: 44px; }
.rev-card__help .icon { transition: transform 320ms var(--spring); }
.rev-card__help[aria-pressed='true'] .icon { transform: scale(1.2); }

/* Questions et réponses */
.qa { display: grid; gap: 10px; }
.qa .acc + .acc { margin-top: 0; }
.qa__item summary { padding-block: 12px; font-size: 0.95rem; line-height: 1.35; }
.qa__item summary > span { display: flex; align-items: flex-start; gap: 10px; }
.qa__q, .qa__r { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.78rem; font-weight: 850; background: var(--ink); color: #fff; }
.qa__r { background: var(--red); }
.qa__a { display: flex; gap: 10px; color: var(--ink-2); }
.qa__meta { display: grid; gap: 2px; margin-top: 10px; padding-left: 36px; font-size: 0.76rem; line-height: 1.4; color: var(--muted); }
.qa__by { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 650; }
.qa > .btn { justify-self: start; margin-top: 4px; }

/* Suggestions */
.pd-recos .section-head { margin-bottom: 10px; }

/* ---------- Barre d’achat collante ---------- */
.buybar {
  position: fixed; left: 0; right: 0; z-index: 55;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  padding: 8px 10px; pointer-events: none;
  opacity: 0; transform: translateY(100%);
  transition: transform 480ms var(--ease-out), opacity 260ms;
}
.buybar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.buybar__in {
  display: flex; align-items: center; gap: 10px; max-width: 720px; margin-inline: auto; padding: 8px;
  border-radius: 20px; background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 12px 32px rgb(20 21 24 / 0.16), inset 0 0 0 1px rgb(20 21 24 / 0.06);
}
.buybar__img { flex: none; width: 52px; height: 52px; padding: 4px; border-radius: 12px; object-fit: contain; background: var(--well); }
.buybar__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.buybar__name {
  font-size: 0.78rem; font-weight: 650; line-height: 1.25; color: var(--ink-3); font-variant-numeric: tabular-nums;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.buybar__short { display: none; }
.buybar__meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.buybar__meta b { font-size: 1.12rem; font-weight: 850; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.buybar__meta s { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.buybar__btn { flex: none; min-height: 48px; padding-inline: 16px; gap: 6px; }

/* ---------- Visionneuse plein écran ---------- */
dialog.zv {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: var(--ink);
}
dialog.zv[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
dialog.zv::backdrop { background: transparent; }
.zv__bg {
  position: absolute; inset: 0; z-index: -1; opacity: var(--zv-fade, 1);
  background: radial-gradient(80% 60% at 50% 45%, #fff 0%, #f6f4f0 55%, #ebe8e2 100%);
}
.zv.is-opening .zv__bg { animation: zv-fade 340ms var(--ease-out) both; }
.zv.is-opening .zv__bar, .zv.is-opening .zv__thumbs, .zv.is-opening .zv__hint { animation: zv-fade 420ms 120ms var(--ease-out) both; }
.zv.is-closing .zv__bg, .zv.is-closing .zv__bar, .zv.is-closing .zv__thumbs, .zv.is-closing .zv__hint, .zv.is-closing .zv__nav { opacity: 0; transition: opacity 240ms; }
@keyframes zv-fade { from { opacity: 0; } }
.zv__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(var(--safe-top) + 8px) 10px 6px 18px; }
.zv__count { font-size: 0.9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.zv__tools { display: flex; gap: 6px; }
.zv__btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgb(255 255 255 / 0.92); box-shadow: var(--shadow-1); transition: opacity var(--dur-2), transform var(--dur-1); }
.zv__btn:active { transform: scale(0.92); }
.zv__btn:disabled { opacity: 0.35; cursor: default; }
.zv__btn--close { background: var(--ink); color: #fff; }
.zv__stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.zv.is-zoomed .zv__stage { cursor: grab; }
.zv.is-zoomed .zv__stage:active { cursor: grabbing; }
.zv__track { display: flex; height: 100%; will-change: transform; }
.zv__track.is-anim { transition: transform 380ms var(--ease-out); }
.zv__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.zv__frame { position: absolute; inset: 0; transform-origin: 50% 50%; }
.zv__slide--pack .zv__frame { inset: 7%; }
.zv__frame picture { width: 100%; height: 100%; }
.zv__img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; -webkit-user-drag: none; will-change: transform; }
.zv__img.is-anim { transition: transform 320ms var(--ease-out); }
.zv__nav {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 999px;
  display: none; place-items: center; background: #fff; box-shadow: var(--shadow-2); transition: opacity var(--dur-2);
}
.zv__nav--prev { left: 16px; }
.zv__nav--next { right: 16px; }
.zv__nav:disabled { opacity: 0; pointer-events: none; }
.zv__hint { padding: 4px 16px; text-align: center; font-size: 0.82rem; color: var(--muted); transition: opacity 600ms; }
.zv__hint.is-gone { opacity: 0; }
.zv__thumbs { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 8px 12px calc(var(--safe-bottom) + 14px); scrollbar-width: none; }
.zv__thumb {
  flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line); opacity: 0.7; transition: opacity var(--dur-2), box-shadow var(--dur-2), transform var(--dur-1);
}
.zv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.zv__thumb[aria-current='true'] { opacity: 1; box-shadow: inset 0 0 0 2.5px var(--ink); }
.zv__thumb:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .zv__nav { display: grid; } }

/* ---------- Feuille « Trouver en magasin » ---------- */
.instore { display: grid; gap: 12px; padding-bottom: 8px; }
.instore__store { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--well); font-size: 0.9rem; line-height: 1.35; }
.instore__store .btn { margin-left: auto; min-height: 44px; }
.instore__aisle { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, #1d2a4a 0%, var(--night) 60%); color: #fff; }
.instore__aisle .eyebrow { color: rgb(255 255 255 / 0.6); }
.instore__aisle b { font-size: 1.9rem; font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; }
.instore__aisle span:last-child { font-size: 0.88rem; color: rgb(255 255 255 / 0.75); }
.instore__code { display: grid; justify-items: center; gap: 10px; margin: 0; padding: 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.barcode { width: min(100%, 280px); height: auto; color: var(--ink); }
.instore__code figcaption { display: grid; gap: 2px; text-align: center; }
.instore__code figcaption b { letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.instore__code figcaption span { font-size: 0.8rem; color: var(--muted); }
.instore__help { font-size: 0.85rem; text-align: center; }

/* ---------- Formulaires de démonstration (avis, question) ---------- */
.dform { display: grid; gap: 16px; padding-bottom: 6px; }
.dform__prod { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--well); font-size: 0.9rem; font-weight: 650; line-height: 1.3; }
.dform__prod img { flex: none; width: 56px; height: 56px; padding: 4px; border-radius: 10px; object-fit: contain; background: #fff; }
.dform__stars { margin: 0; padding: 0; border: 0; }
.dform__stars legend { padding: 0; margin-bottom: 6px; font-weight: 750; }
.starpick { position: relative; display: flex; gap: 2px; }
.starpick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.starpick label { width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; color: var(--line-2); transition: color var(--dur-2), transform 260ms var(--spring); }
.starpick label svg { width: 34px; height: 34px; fill: currentColor; }
.starpick label:active { transform: scale(0.85); }
.starpick input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -2px; border-radius: 12px; }
.starpick:has(#note-1:checked) label:nth-of-type(-n + 1),
.starpick:has(#note-2:checked) label:nth-of-type(-n + 2),
.starpick:has(#note-3:checked) label:nth-of-type(-n + 3),
.starpick:has(#note-4:checked) label:nth-of-type(-n + 4),
.starpick:has(#note-5:checked) label:nth-of-type(-n + 5) { color: var(--gold); }
.starpick input:checked + label { animation: pd-bump 380ms var(--spring); }
@media (hover: hover) {
  .starpick:hover label { color: var(--line-2); }
  .starpick label:hover, .starpick label:has(~ label:hover) { color: #f6cf7f; }
}
.starpick__lbl { display: block; min-height: 1.3em; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.dform__field { display: grid; gap: 6px; }
.dform__field label { font-size: 0.9rem; font-weight: 700; }
.dform input[type='text'], .dform textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff;
  font-size: 16px; line-height: 1.45; transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.dform textarea { min-height: 120px; resize: vertical; }
.dform input[type='text']:focus, .dform textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(20 21 24 / 0.08); }
.dform__count { justify-self: end; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dform__err { padding: 10px 12px; border-radius: 12px; background: var(--red-50); color: var(--red-700); font-size: 0.88rem; font-weight: 650; animation: pd-fade-up 300ms var(--ease-out); }
.dform__legal { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; color: var(--muted); text-align: center; }
.dform__done { display: grid; justify-items: center; gap: 10px; padding: 18px 0 8px; text-align: center; }
.dform__done .h2 { font-size: 1.6rem; }
.dform__check { width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 10px var(--green-50); animation: pd-pop 620ms var(--spring) both; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 8px 14px; border-radius: 999px; background: var(--night); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Produit introuvable ---------- */
.nf { padding-top: 20px; }
.nf__card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px;
  padding: 28px 20px 24px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-1);
}
.nf__card::before {
  content: ''; position: absolute; right: -60px; top: -40px; z-index: -1; width: 240px; height: 210px;
  background: var(--red); opacity: 0.07; clip-path: polygon(0 0, 100% 0, 50% 100%); transform: rotate(-10deg);
}
.nf__mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 4px; background: var(--night); color: #fff; }
.nf__title { max-width: 18ch; }
.nf__lead { max-width: 46ch; color: var(--ink-3); }
.nf__search { width: 100%; margin-top: 4px; padding-right: 2px; }
.nf__search input { align-self: stretch; }
.nf__go { min-height: 44px; }
.nf__ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.nf__ideas { margin: 0; padding: 0; list-style: none; }
.nf__ideas .chip { min-height: 46px; } /* 44 px garantis même avec un arrondi sous-pixel */
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Tablette ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .gal__slide, .pd-skel__gal { aspect-ratio: 4 / 3; }
  .pd-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rev__list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bureau ---------- */
@media (min-width: 900px) {
  :root { --pdbar-h: 88px; }
  .pd-skel__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
  .pd-skel__gal { border-radius: var(--radius-lg); }
  .pd-skel__info { padding: 0; }

  .crumbs { padding-top: 6px; }
  .pd-top {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start;
    max-width: var(--content-max); margin-inline: auto; padding: 6px var(--gutter) 0;
  }
  .pd-gal { position: sticky; top: calc(var(--header-h) + 16px); }
  .gal { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
  .gal__slide, .pd-skel__gal { aspect-ratio: 1 / 1; max-height: none; }
  .gal__nav { display: grid; }
  .gal:hover .gal__nav, .gal:focus-within .gal__nav { opacity: 1; }
  .gal__thumbs { display: flex; gap: 10px; margin-top: 12px; }
  .gal__thumb {
    position: relative; width: 76px; height: 76px; border-radius: 16px; overflow: hidden;
    background: radial-gradient(90% 80% at 50% 40%, #fff 0%, var(--well) 100%);
    box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--dur-2), transform var(--dur-1);
  }
  .gal__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
  .gal__thumb--life img, .gal__thumb--photo img, .gal__thumb--video img { object-fit: cover; padding: 0; }
  .gal__thumb[aria-current='true'] { box-shadow: inset 0 0 0 2.5px var(--ink); }
  .gal__thumb:hover { transform: translateY(-2px); }
  .gal__thumb-360 { position: absolute; inset: auto 6px 6px auto; padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.9); color: var(--ink); font-size: 0.66rem; font-weight: 800; }
  .gal__cap { left: 28px; bottom: 76px; }
  .gal__cap-txt { font-size: 1.5rem; }

  .pd-info { padding: 0; }
  .pd-price__now { font-size: 3.1rem; }
  .pd-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pd-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; padding-top: 40px; }
  .pd-hl { grid-column: 1; }
  .pd-acc { grid-column: 2; padding-top: 58px; }
  .pd-bundle, .pd-reviews, .pd-qa, .pd-recos { grid-column: 1 / -1; }
  .pd-sec { padding-block: 28px; }
  .bundle { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto auto; column-gap: 32px; padding: 24px; }
  .bundle__visual { grid-row: 1 / span 2; padding: 0; }
  .bundle__img { width: 140px; height: 140px; border-radius: 22px; }
  .bundle__foot { grid-template-columns: 1fr auto; align-items: center; }
  .bundle__btn { width: auto; }
  .rev { grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 24px; }
  .rev__summary { position: sticky; top: calc(var(--header-h) + 16px); }
  .qa { grid-template-columns: 1fr 1fr; align-items: start; }
  .qa > .btn { grid-column: 1 / -1; }
  .buybar { padding-bottom: 16px; }
  .nf { padding-top: 40px; }
  .nf__card { justify-items: center; padding: 56px 44px 48px; text-align: center; }
  .nf__card::before { right: auto; left: 50%; top: -70px; width: 420px; height: 360px; transform: translateX(-50%); }
  .nf__title, .nf__lead { margin-inline: auto; }
  .nf__search { max-width: 560px; }
  .nf__ideas, .nf__links { justify-content: center; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .gal__pill .icon { animation: none; }
  .rev__bar > span, .rev__asp-bar > span { transition: none; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 420px) {
  /* « Ajouter au panier · 5 999,94 $ » tient sur 360 px */
  .pd-add { gap: 8px; padding-inline: 18px; font-size: 1.0625rem; }
}
@media (max-width: 599px) {
  /* « Mettre à jour le panier » : le total reste affiché au-dessus (prix du jeu de 4) et dans la barre collante */
  .pd-add.is-update .pd-add__sep, .pd-add.is-update .pd-add__total { display: none; }
}
@media (max-width: 359px) {
  /* En bref : 3 rangées (icône, valeur, libellé) plutôt que 3 colonnes de 86 px */
  .pd-keys { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pd-keys li { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px 12px; }
  .pd-keys__ico { grid-row: span 2; margin-bottom: 0; }
  /* Barre collante : libellé court, prix régulier barré masqué (il reste affiché sous le prix principal) */
  .buybar__img, .buybar__meta s { display: none; }
  .buybar__long { display: none; }
  .buybar__short { display: inline; }
  .buybar__btn { padding-inline: 14px; }
}
@media (max-width: 380px) {
  .pd-qty { column-gap: 12px; }
  .pd-qty .pd-opt__label { min-width: 0; }
  .pd-stepper button { width: 46px; }
  .pd-stepper output { min-width: 28px; }
  .pd-price__now { font-size: 2.3rem; }
  .pd-price__row { gap: 4px 10px; }
}

/* Le toast (sombre) garde un contour lisible au-dessus du pied de page sombre */
.pd-page .toast { box-shadow: var(--shadow-2), 0 0 0 1px rgb(255 255 255 / 0.14); }
