/* Page produit — pensée téléphone d'abord */
@property --a { syntax: "<color>"; inherits: true; initial-value: #3fbf3a; }

body.pdp-page { background: var(--paper); }
.pdp { --a: #3fbf3a; position: relative; padding: 124px 0 40px; color: #fff; isolation: isolate;
  background: radial-gradient(110% 70% at 30% 0%, color-mix(in srgb, var(--a) 62%, #000), color-mix(in srgb, var(--a) 20%, #07050a) 80%); }
.pdp .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* ---------- Galerie ---------- */
.gal { position: sticky; top: 90px; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 30px; outline-offset: 4px; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; height: min(74svh, 680px); min-height: 420px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 30px; }
.s-phone { perspective: 1400px; background: radial-gradient(circle at 50% 45%, rgb(255 255 255 / .16), transparent 62%); }
.s-phone .ph { --w: min(52vw, 300px, calc(min(74svh, 680px) * .4)); }
.s-phone .ph-in { transform: rotateY(-12deg) rotateX(5deg); transition: transform .5s var(--ease); }
.s-art { background: rgb(0 0 0 / .25); }
.s-art img { height: 92%; width: auto; border-radius: 18px; box-shadow: 0 30px 60px rgb(0 0 0 / .4); object-fit: contain; }
.s-zoom { background: #000; }
.zoomimg { position: absolute; inset: 0; background: center 40% / 260% auto no-repeat; transition: background-position .2s; cursor: zoom-in; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots button { border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 99px; transition: background .25s, color .25s; }
.dots button[aria-selected="true"] { background: #fff; color: var(--ink); }

/* ---------- Infos ---------- */
.info { padding-top: 8px; }
.crumbs { font-size: 13px; opacity: .78; display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.info h1 { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 92px); line-height: .95; letter-spacing: -.03em; margin: 10px 0 10px; overflow-wrap: anywhere; }
.info .acc { font-size: 18px; opacity: .92; margin: 0 0 18px; max-width: 30em; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 22px; }
.price-line b { font-size: 36px; letter-spacing: -.04em; white-space: nowrap; }
.price-line span { font-size: 14px; font-weight: 600; background: rgb(255 255 255 / .14); padding: 5px 10px; border-radius: 99px; }

.opt { margin-bottom: 16px; }
.opt-l { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.swatches::-webkit-scrollbar { display: none; }
.sw { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: center 30% / cover; border: 3px solid transparent; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .35); transition: transform .3s var(--spring); }
.sw:hover { transform: scale(1.1); }
.sw[aria-current="page"] { border-color: #fff; box-shadow: 0 0 0 3px var(--sun); }

.pick { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left; gap: 2px 10px; border: 1.5px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff; border-radius: 18px; padding: 13px 16px; margin-bottom: 8px; transition: border-color .25s, background .25s; min-height: 64px; }
.pick:hover { border-color: #fff; background: rgb(255 255 255 / .14); }
.pick-l { font-size: 12px; font-weight: 700; opacity: .75; }
.pick-v { font-size: 17px; font-weight: 800; grid-row: 2; }
.pick svg { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.pick:not(.ok) .pick-v { color: var(--sun); }
.pick-err { color: #ffd0d0; font-weight: 700; font-size: 14px; margin: 0 0 8px; }

.qtys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 14px; }
.qtys button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1.5px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .05); color: #fff; border-radius: 18px; padding: 12px 14px; transition: border-color .25s, background .25s; min-height: 64px; }
.qtys button b { font-size: 15.5px; }
.qtys button span { font-size: 14px; opacity: .85; }
.qtys button em { position: absolute; top: -9px; right: 10px; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--sun); color: var(--ink); padding: 3px 8px; border-radius: 99px; }
.qtys button em:empty { display: none; }
.qtys button[aria-checked="true"] { border-color: #fff; background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1px #fff; }
.qtys:has(button:only-child) { grid-template-columns: 1fr; }

.btn-add { width: 100%; min-height: 60px; font-size: 17px; }
.reassure { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 10px; font-size: 14.5px; }
.reassure li { display: flex; gap: 12px; align-items: center; opacity: .92; }
.reassure i { font-style: normal; width: 34px; height: 34px; border-radius: 11px; background: rgb(255 255 255 / .12); display: grid; place-items: center; flex-shrink: 0; }

.acco { margin-top: 18px; border-top: 1px solid rgb(255 255 255 / .16); }
.acco details { border-bottom: 1px solid rgb(255 255 255 / .16); }
.acco summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 800; font-size: 16px; position: relative; }
.acco summary::-webkit-details-marker { display: none; }
.acco summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 24px; transition: transform .3s var(--spring); }
.acco details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acco p { margin: 0 0 18px; opacity: .9; font-size: 15.5px; line-height: 1.6; }
.acco a { color: var(--sun); }

@media (max-width: 900px) {
  .pdp { padding-top: 92px; }
  .pdp .wrap { grid-template-columns: 1fr; gap: 18px; }
  .gal { position: relative; top: 0; margin-inline: -20px; }
  .slides, .slide { border-radius: 0; }
  .slide { height: min(62svh, 520px); min-height: 380px; }
  .s-phone .ph { --w: min(48vw, 220px); }
}

/* ---------- Bandeau perso ---------- */
.promo-perso { padding: 34px 0 0; }
.pp { display: flex; align-items: center; gap: 16px; text-decoration: none; border-radius: 24px; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, #003b5c, #00a6c8 60%, #36e0c0); box-shadow: 0 18px 40px -24px rgb(0 80 120 / .7); transition: transform .4s var(--spring); }
.pp:hover { transform: translateY(-3px); }
.pp-ph { width: 46px; aspect-ratio: 1 / 2; border-radius: 9px; background: conic-gradient(from 200deg at 50% 60%, #ff3d5a, #ffd21f, #1fbf6a, #00b8d9, #8b5cf6, #ff3d5a); box-shadow: 0 6px 14px rgb(0 0 0 / .25); flex-shrink: 0; transform: rotate(-8deg); }
.pp b { display: block; font-size: 18px; }
.pp small { opacity: .9; font-size: 14px; }
.pp-go { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* ---------- Ventes en plus ---------- */
.more { padding: 50px 0 110px; }
.more .head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.more .head.h2 { margin-top: 36px; }
.more h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.04em; line-height: 1; margin: 0; }
.more .rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 16px; }
.more .rail::-webkit-scrollbar { display: none; }
.more .rail .card { scroll-snap-align: start; }
.nav-r { display: flex; gap: 8px; }
.nav-r button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); font-size: 17px; transition: transform .3s var(--spring), background .2s; }
.nav-r button:hover { transform: scale(1.08); background: var(--sun); }
@media (max-width: 900px) { .more .rail { grid-auto-columns: 42%; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; } .nav-r { display: none; } }

/* ---------- Barre d'achat ---------- */
.buybar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 22px; padding: 10px 10px 10px 14px; box-shadow: 0 20px 50px rgb(0 0 0 / .35); transform: translate(-50%, 160%); transition: transform .45s var(--spring); }
.buybar.show { transform: translate(-50%, 0); }
.bb-ph .ph { --w: 26px; }
.bb-t { min-width: 0; }
.bb-t b { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-t small { display: block; opacity: .75; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { margin-left: auto; padding: 13px 20px; font-size: 15px; flex-shrink: 0; }
body.bb-on .foot { padding-bottom: 110px; }
