/* Kilomètre Zéro · page produit */

/* ---------- Bloc achat ---------- */
.pd { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.45fr) minmax(300px, .85fr); gap: clamp(20px, 3vw, 48px); align-items: center; min-height: calc(100svh - 64px); padding: clamp(24px, 4vh, 48px) var(--gut) 48px; max-width: 1560px; margin: 0 auto; }
.pd-back { font-size: 13px; }
.pd-name { font: italic 800 clamp(52px, 4.9vw, 88px)/.88 var(--f-title); text-transform: uppercase; letter-spacing: -.01em; margin: 18px 0 18px; text-wrap: balance; }
.pd-line { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; margin: 0 0 12px; max-width: 24ch; font-weight: 500; }
.pd-use { margin: 0; color: var(--ink-2); font-size: 15px; }

.pd-info { position: relative; z-index: 2; min-width: 0; }
.pd-stage { position: relative; display: grid; place-items: center; min-height: 50vh; }
.pd-stage::before { content: ""; position: absolute; inset: 6% 2%; border-radius: 50%; background: radial-gradient(closest-side, #f8f9fb 0%, rgba(248, 249, 251, 0) 100%); z-index: 0; }
.pd-shoe { position: relative; z-index: 1; width: 100%; max-width: 820px; transform: rotate(-6deg); }
.pd-shoe img { width: 100%; height: auto; display: block; transition: opacity 260ms ease, filter 260ms ease, transform 420ms var(--ease-out); filter: drop-shadow(0 30px 26px rgba(16, 20, 27, .12)); }
.pd-shoe img.swap { opacity: 0; filter: blur(6px) drop-shadow(0 30px 26px rgba(16, 20, 27, .12)); transform: translateX(12px); }
.pd-shoe i { display: block; width: 70%; height: 22px; margin: 7% auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 20, 27, .26), rgba(16, 20, 27, 0)); transform: rotate(6deg); }

.pd-buy { display: grid; gap: 22px; align-content: center; }
.pd-price { margin: 0; font: italic 800 40px/1 var(--f-title); font-variant-numeric: tabular-nums; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.opt legend b { font-weight: 500; color: var(--ink-2); }
.sw { display: flex; gap: 12px; }
.sw button { appearance: none; width: 44px; height: 44px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--a) 0 55%, var(--b) 55% 100%); box-shadow: inset 0 0 0 1px rgba(16, 20, 27, .18), 0 0 0 0 var(--ink); transition: box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out); }
.sw button:active { transform: scale(.94); }
.sw button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(16, 20, 27, .18), 0 0 0 3px var(--chalk), 0 0 0 5px var(--ink); }
.sz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sz button { appearance: none; height: 48px; border-radius: 12px; border: 1px solid var(--chalk-3); background: #f6f7f9; color: var(--ink); font: 600 15px/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.sz button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .sz button:hover { border-color: var(--ink); } }
.sz button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sz.need button { border-color: var(--err); }
.sz-er { margin: 8px 0 0; color: var(--err); font-size: 13px; font-weight: 500; min-height: 0; }
.sz-er:empty { display: none; }
.sz-help { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sz-help .link-quiet { font-size: 13px; padding: 0; }
.pd-sure { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.pd-sure li { display: flex; align-items: center; gap: 7px; }
.pd-sure li::before { content: ""; width: 14px; height: 14px; background: currentColor; color: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* volets repliés (options avancées) */
.more { border-top: 1px solid var(--line-d); }
.more details { border-bottom: 1px solid var(--line-d); }
.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; font-weight: 600; font-size: 14px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.more details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more .dt { padding: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.more dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.more dt { color: var(--ink); font-weight: 600; }
.more dd { margin: 0; }
.more ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- Anatomie ---------- */
.st { position: relative; height: 560vh; background: radial-gradient(90% 60% at 50% 50%, #f7f8fa 0%, var(--chalk) 72%); }
.st-stage { position: sticky; top: 64px; height: calc(100svh - 64px); overflow: hidden; }
.st-persp { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1700px; perspective-origin: 50% 40%; }
.st-stack { position: relative; width: min(38vw, calc((100svh - 330px) * .824), 560px); margin-top: -24px; aspect-ratio: 1127 / 1368; }
.st-rot { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.st-whole { position: absolute; left: .6%; width: 98.4%; height: auto; top: 25.6%; will-change: opacity, transform, filter; filter: drop-shadow(0 30px 26px rgba(16, 20, 27, .12)); }
#st-34 { left: 4%; width: 92%; top: 22%; }
.st-l { position: absolute; will-change: transform, opacity; transform-style: preserve-3d; }
.st-l img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 18px rgba(16, 20, 27, .12)); }
.dot { position: absolute; width: 0; height: 0; }
.st-floor { position: absolute; left: 12%; right: 12%; bottom: -2%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 20, 27, .22), rgba(16, 20, 27, 0)); will-change: transform, opacity; }

.st-cap { position: absolute; left: var(--gut); top: 50%; translate: 0 -50%; max-width: min(25vw, 380px); opacity: 0; will-change: opacity, transform; z-index: 3; }
.st-cap h2 { font: italic 800 clamp(36px, 3.5vw, 60px)/.92 var(--f-title); text-transform: uppercase; margin: 0 0 14px; text-wrap: balance; }
.st-cap p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 30ch; }

.st-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.st-lines line { stroke: var(--ink); stroke-width: 1; }
.st-lines circle { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.st-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.st-labels li { position: absolute; top: 0; left: 0; width: 230px; opacity: 0; will-change: transform, opacity; }
.st-labels li.r { text-align: left; }
.st-labels li.l { text-align: right; }
.st-labels b { display: block; font: italic 800 22px/1 var(--f-title); text-transform: uppercase; margin-bottom: 4px; }
.st-labels span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ---------- Vous aimerez aussi / lookbook ---------- */
.pd-also { padding-block: clamp(80px, 12vh, 140px) 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: 28px; }
.look { padding-block: clamp(64px, 10vh, 120px) clamp(64px, 10vh, 120px); }
.look h2 { margin-bottom: 28px; }
.look-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding-inline: var(--gut); }
.look-row img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; border-radius: 14px; clip-path: inset(var(--c, 0%) 0 0 0 round 14px); }
.look-row img:nth-child(1) { object-position: 50% 40%; }
.look-row img:nth-child(2) { object-position: 50% 40%; margin-top: 8vh; }
.look-row img:nth-child(3) { object-position: 50% 40%; margin-top: 16vh; }

/* ---------- Barre d'achat collante ---------- */
.pd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 var(--gut) max(14px, env(safe-area-inset-bottom)); transform: translateY(120%); transition: transform 240ms var(--ease-out); pointer-events: none; }
.pd-bar.on { transform: none; transition-duration: 420ms; pointer-events: auto; }
.pd-bar-in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 999px; background: rgba(250, 251, 252, .92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 20px 50px -18px rgba(16, 20, 27, .45), inset 0 0 0 1px rgba(16, 20, 27, .06); }
.pd-bar-in img { width: 76px; height: auto; }
.bar-t { min-width: 0; display: grid; }
.bar-t b { font: italic 800 20px/1.05 var(--f-title); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-t span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pd-bar .btn-main { min-height: 50px; padding: 0 24px; font-size: 15px; }

/* ---------- Guide des tailles ---------- */
.guide { border: 0; padding: 0; border-radius: 18px; width: min(460px, calc(100% - 32px)); background: #f6f7f9; color: var(--ink); font-family: var(--f-body); box-shadow: 0 40px 100px -30px rgba(10, 13, 19, .5); opacity: 0; transform: scale(.96); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.guide[open] { opacity: 1; transform: none; }
@starting-style { .guide[open] { opacity: 0; transform: scale(.96); } }
.guide::backdrop { background: rgba(10, 13, 19, .42); }
.guide .dr-head { padding: 16px 18px; }
.guide p { margin: 16px 20px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.guide table { width: calc(100% - 40px); margin: 0 20px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.guide th { text-align: left; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line-d); }
.guide td { padding: 8px 0; border-bottom: 1px solid var(--line-d); }
.guide tr:last-child td { border-bottom: 0; }

@media (max-width: 1100px) {
  .pd { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); grid-template-areas: "stage stage" "info buy"; align-items: start; }
  .pd-stage { grid-area: stage; min-height: 0; padding-top: 12px; }
  .pd-info { grid-area: info; }
  .pd-buy { grid-area: buy; }
  .pd-shoe { max-width: 640px; }
}
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; grid-template-areas: "info" "stage" "buy"; gap: 10px; min-height: 0; padding-top: 18px; }
  .pd-name { font-size: clamp(52px, 15vw, 72px); margin: 12px 0 10px; }
  .pd-line { font-size: 17px; margin-bottom: 6px; }
  .pd-stage { padding: 18px 0 8px; }
  .pd-shoe { width: 92%; }
  .pd-buy { gap: 20px; }
  .st { height: 520vh; }
  .st-stack { width: min(78vw, calc((100svh - 200px) * .824)); }
  .st-cap { left: var(--gut); right: var(--gut); top: 18px; translate: none; max-width: none; text-align: center; }
  .st-cap h2 { font-size: clamp(34px, 10vw, 48px); }
  .st-cap p { margin: 0 auto; font-size: 15px; }
  .st-lines { display: none; }
  .st-labels li { width: auto; left: var(--gut) !important; right: var(--gut); top: 12px !important; bottom: auto; text-align: center !important; transform: none !important; background: rgba(250, 251, 252, .9); padding: 14px 16px; border-radius: 14px; box-shadow: 0 16px 40px -20px rgba(16, 20, 27, .4); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 > :nth-child(3) { display: none; }
  .look-row { grid-template-columns: 1fr 1fr; }
  .look-row img:nth-child(1) { grid-column: span 2; height: 56vw; }
  .look-row img:nth-child(2), .look-row img:nth-child(3) { margin-top: 0; height: 52vw; }
  .pd-bar-in { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .pd-bar-in img { width: 56px; }
  .pd-bar .btn-main { padding: 0 18px; }
}
@media (max-width: 380px) { .pd-bar .btn-main { font-size: 14px; padding: 0 14px; } .sz { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
