/* ===================== V2 — conversion & mobile (complète style.css) ===================== */
body { line-height: 1.8; }
.sec { padding: 44px 0; }
.sub { font-size: 1.02rem; }

/* hero : ce que contient le pack */
.fan { height: clamp(250px, 70vw, 420px); }
.fan img { width: 50%; }
.pack { position: relative; z-index: 4; margin: -18px auto 0; max-width: 520px; background: #fff; border-radius: 24px; padding: 12px 12px 14px; box-shadow: var(--shadow); border: 2px solid #FFE0EC; }
.pack-cap { text-align: center; font-weight: 800; margin: 0 0 8px; font-size: 1rem; }
.pack-cap b { color: var(--pink); font-family: var(--font-h); font-size: 1.2rem; }
.pack-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 4px; text-align: center; }
.pack-row li { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.pack-row b { font-size: .86rem; line-height: 1.3; font-family: var(--font-h); }
.pack-row small { font-size: .74rem; color: var(--green); font-weight: 700; line-height: 1.3; }
.pack-img { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: 4px; }
.pack-img img { width: 100%; height: 100%; object-fit: contain; }
.pack-row li:first-child .pack-img img { object-fit: cover; object-position: top; }
.pen-tile { background: var(--blue-soft); }
.pen-tile svg { width: 72%; height: 72%; }
.pack-plus { font-family: var(--font-h); font-weight: 800; font-size: 1.4rem; color: var(--pink); align-self: center; margin-top: -26px; }
.vid-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 0; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-h); font-weight: 800; font-size: 1.05rem; padding: 12px 22px; min-height: 52px; cursor: pointer; }
.vid-play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cta); font-size: .85rem; }

/* pack : photos plus grandes */
.item { padding: 16px; }
.item-pic { height: 250px; }
.item-book .item-pic { gap: 0; }
.item-book .item-pic img { height: 200px; margin-inline: -16px; }
.item-book .item-pic img:nth-child(2) { position: relative; z-index: 2; height: 224px; transform: none; }
.item-badge { display: inline-block; margin-bottom: 8px; background: var(--green-soft); color: #0E7A34; font-weight: 800; font-size: .9rem; border-radius: 999px; padding: 3px 12px; }
.item-clay .item-badge { background: var(--lav); color: var(--purple); }
.item-pen .item-badge { background: var(--blue-soft); color: var(--blue); }
.pen-pic { padding: 0; }
.pen-pic img { height: 100%; width: 100%; object-fit: cover; border-radius: 0; }
.pen-svg { width: 96px; height: 96px; bottom: 10px; inset-inline-start: 12px; }

/* étapes */
.steps li { position: relative; padding: 8px 8px 14px; }
.steps img { aspect-ratio: 4 / 3; }
.step-n { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--pink); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.steps li:nth-child(2) .step-n { background: var(--orange); }
.steps li:nth-child(3) .step-n { background: var(--blue); }
.steps li:nth-child(4) .step-n { background: var(--green); }
.step-img { position: relative; display: block; }
.step-ico { position: absolute; bottom: 16px; inset-inline-end: 6px; width: 58px; height: 58px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.step-ico.redo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; font-weight: 800; line-height: 1; }
.demo-video { margin: 22px auto 0; max-width: 520px; background: #fff; border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.demo-video figcaption { font-family: var(--font-h); font-weight: 800; text-align: center; margin-bottom: 8px; }
.vfile { width: 100%; max-height: 80vh; border-radius: 14px; background: #000; display: block; }
.vframe { position: relative; aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* galerie */
.gal-badge { width: fit-content; max-width: 100%; margin: -6px auto 10px; background: var(--yellow-soft); border: 2px solid #FFE08A; color: #8A5A00; font-weight: 800; border-radius: 999px; padding: 6px 16px; text-align: center; }
.gal-track { grid-auto-columns: 74%; gap: 12px; }
.gal-item { transition: transform .2s; }
.gal-item:active { transform: scale(.98); }
.gal-item::after { content: "🔍"; position: absolute; bottom: 46px; inset-inline-start: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); box-shadow: 0 3px 8px rgba(0, 0, 0, .2); font-size: 1rem; }
.gal-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.gal-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--ink); flex: 0 0 auto; }
.gal-hint { font-size: .85rem; color: var(--muted); text-align: center; }

/* visionneuse : zoom fluide */
.lb-stage { position: relative; overflow: hidden; touch-action: none; display: block; }
.lb-stage img, .lb-stage.zoom img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb-stage.zoomed img { cursor: grab; }
.lb-stage.anim img { transition: transform .25s ease; }
.lb-tip { text-align: center; font-size: .85rem; opacity: .75; margin: 6px 0 0; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px calc(12px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.lb-thumbs button { flex: 0 0 auto; width: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.lb-thumbs button[aria-current="true"] { border-color: var(--yellow); opacity: 1; }
.lb-thumbs img { width: 100%; display: block; }
.lb-nav { padding-bottom: 6px; }
.vbox { padding: 0; border: 0; background: transparent; width: min(100vw, 520px); max-width: 100vw; max-height: 100dvh; overflow: visible; }
.vbox::backdrop { background: rgba(20, 17, 40, .9); }
.vbox-in { padding: 54px 10px 10px; }
.vbox-close { position: absolute; top: 4px; inset-inline-end: 8px; }

/* versions */
.same-note { background: #fff; border-radius: var(--r-sm); padding: 10px 14px; border: 1px dashed var(--lav-2); font-weight: 700; color: var(--ink); }
.ed { position: relative; }
.ed.selected::before { content: "✓ مختارة"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-weight: 800; border-radius: 999px; padding: 2px 14px; font-size: .9rem; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4); }
.ed-girl.selected { box-shadow: 0 0 0 4px rgba(242, 69, 143, .18), var(--shadow); }
.ed-boy.selected { box-shadow: 0 0 0 4px rgba(30, 123, 234, .18), var(--shadow); }
[data-pick] .lbl-on { display: none; }
[data-pick][aria-pressed="true"] .lbl-on { display: inline; }
[data-pick][aria-pressed="true"] .lbl-off { display: none; }

/* formulaire */
.order-card { padding: 22px 14px; }
fieldset.f-info, fieldset.f-qty, fieldset.f-edition { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px 4px; margin-bottom: 14px; }
fieldset.f-edition { border-width: 2px; border-color: #FFD0E2; background: #FFF7FB; padding-bottom: 12px; }
legend { display: flex; align-items: center; gap: 8px; font-family: var(--font-h); font-size: 1.15rem; padding: 0 6px; margin-inline-start: -4px; }
.f-step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .95rem; font-family: var(--font); }
.pick { padding: 10px 8px 12px; border-width: 3px; }
.pick img { width: 78%; }
.pick-name { font-size: 1.05rem; }
.pick-state::before { content: "اختار"; display: inline-block; font-family: var(--font); font-size: .85rem; font-weight: 700; color: var(--muted); border: 2px solid var(--line); border-radius: 999px; padding: 0 12px; }
.pick:has(input:checked) .pick-state::before { content: "✓ مختارة"; color: #fff; background: var(--green); border-color: var(--green); }
.pick:has(input:checked)::after { display: none; }
.field label { font-size: 1rem; }
input[type="text"], input[type="tel"], input[type="number"], select, textarea { font-size: 16px; min-height: 52px; }
.phone { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: var(--r-sm); background: #FCFBFF; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.phone:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139, 79, 224, .15); background: #fff; }
.phone-cc { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--lav); font-weight: 800; color: var(--ink); white-space: nowrap; }
.phone input { border: 0 !important; box-shadow: none !important; background: transparent !important; text-align: left !important; letter-spacing: .06em; font-weight: 700; font-size: 1.15rem; flex: 1; min-width: 0; }
.phone-ok { display: none; align-items: center; padding: 0 12px; color: var(--green); font-weight: 800; font-size: 1.2rem; }
.phone.ok .phone-ok { display: flex; }
.phone.ok { border-color: #9BE0B1; }
.invalid .phone { border-color: var(--red); }
.hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238B4FE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 12px center; background-size: 20px 20px; background-repeat: no-repeat; padding-left: 40px; }
select:not(:disabled) { cursor: pointer; }
.qty-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.qty-btn { width: 58px; height: 56px; font-size: 1.7rem; }
.qty input { width: 64px; min-height: 56px; font-size: 1.35rem; }
.unit { margin: 0; color: var(--muted); }
.unit b { color: var(--ink); }
.summary { background: #fff; }
.total-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: linear-gradient(135deg, #FFF0F6, #FFF7E6); border: 2px solid #FFC2D6; }
.total-box > span { font-weight: 800; font-family: var(--font-h); font-size: 1.15rem; }
.total-box b { font-family: var(--font-h); font-size: 2rem; color: var(--pink); line-height: 1; }
.btn-submit { min-height: 62px; font-size: 1.25rem; }
.trust { list-style: none; margin: 14px 0 0; padding: 12px 14px; display: grid; gap: 6px; background: var(--green-soft); border-radius: var(--r-sm); font-size: .95rem; font-weight: 700; color: #145C2E; }

/* barre fixe */
.sticky-buy { padding-top: 8px; }
.sticky-buy .btn { min-height: 54px; font-size: 1.15rem; }
.sb-price span { font-size: .74rem; }

@media (min-width: 640px) {
  .gal-track { grid-auto-columns: 40%; }
  .pack-row b { font-size: .95rem; }
}
@media (min-width: 900px) {
  .sec { padding: 72px 0; }
  .fan { height: 440px; }
  .gal-track { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
  .item-pic { height: 280px; }
  .vframe { aspect-ratio: 16 / 9; }
}
