/* Velora Mode — boutique cape poncho
 * Mise en page : mobile d'abord, photo plein cadre puis boîte d'achat avec formulaire intégré ;
 * sur ordinateur, galerie fixe à droite (RTL) et achat à gauche. Thème clair unique (boutique de marque). */
:root {
  color-scheme: light;
  /* Couleurs (identité Velora + brun du produit) */
  --bg: #FBF8F5;
  --surface: #FFFFFF;
  --sand: #F4ECE6;
  --ink: #261A20;
  --ink-2: #54454B;
  --muted: #776870;
  --line: #EADFD7;
  --choco: #4A2C24;
  --plum: #5A2E6E;
  --plum-2: #47225A;
  --rose: #C0629A;
  --rose-soft: #FBE9F2;
  --lav: #F3ECF9;
  --ok: #2F7D5B;
  --ok-soft: #E4F2EA;
  --err: #B83232;
  --warn-bg: #FFF5D6;
  --warn-fg: #8A5F00;
  /* Typo */
  --display: 'El Messiri', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --brand: 'Lora', Georgia, 'Times New Roman', serif;
  /* Formes et mouvements */
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 12px 32px -12px rgba(74, 44, 36, .18);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.noscript { margin: 0; padding: 10px 16px; background: var(--warn-bg); color: var(--warn-fg); text-align: center; font-weight: 700; }
:focus-visible { outline: 3px solid rgba(90, 46, 110, .45); outline-offset: 2px; }

/* ---------- Bandeau ---------- */
.topbar { background: var(--plum); color: #fff; font-size: 13.5px; font-weight: 500; }
.topbar-track { display: flex; justify-content: center; gap: 32px; padding: 8px var(--gutter-r) 8px var(--gutter-l); white-space: nowrap; }
.topbar-track span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ic { opacity: .9; }
@media (max-width: 640px) {
  .topbar-track { display: grid; justify-items: center; }
  .topbar-track span { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
  .topbar-track span.on, .topbar-track:not(.js) span:first-child { opacity: 1; transform: none; }
}

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(251, 248, 245, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter-r) 10px var(--gutter-l); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; direction: ltr; }
.logo svg { width: 38px; height: 28px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--brand); }
.logo-text b { color: var(--plum); font-size: 19px; letter-spacing: 4px; font-weight: 500; }
.logo-text i { color: var(--rose); font-size: 9.5px; letter-spacing: 5.5px; font-style: normal; margin-top: 3px; }
.header-cta {
  background: var(--plum); color: #fff; text-decoration: none; font-weight: 700;
  padding: 8px 18px; border-radius: 999px; font-size: 15px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.header-cta:active { transform: scale(.97); }

/* ---------- Produit ---------- */
.product { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.product > * { min-width: 0; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 32px var(--gutter-r) 0 var(--gutter-l); align-items: start; }
  .gallery { position: sticky; top: 84px; }
}

.gallery { position: relative; }
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 4.7; max-width: 100%; background: var(--sand); overscroll-behavior-x: contain;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
@media (min-width: 900px) { .gallery-main { aspect-ratio: 3 / 4; border-radius: var(--r); } }

.gallery-badge {
  position: absolute; top: 14px; right: 14px; background: var(--rose); color: #fff;
  font-weight: 800; font-size: 15px; padding: 3px 12px; border-radius: 999px; direction: ltr;
}
.gallery-badge:empty { display: none; }
.gallery-zoom, .gallery-nav {
  position: absolute; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: var(--ink); border-radius: 50%;
  box-shadow: 0 2px 10px rgba(38, 26, 32, .12);
  transition: transform 160ms var(--ease-out), opacity 150ms ease;
}
.gallery-zoom { top: 12px; left: 12px; width: 38px; height: 38px; }
.gallery-zoom:active, .gallery-nav:active { transform: scale(.94); }
.gallery-count {
  position: absolute; bottom: 12px; left: 12px; direction: ltr;
  background: rgba(38, 26, 32, .55); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.gallery-nav { top: calc(50% - 22px); width: 44px; height: 44px; font-size: 20px; }
.gallery-nav.prev { right: 12px; }
.gallery-nav.next { left: 12px; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .gallery-nav { display: none; } }
@media (min-width: 900px) { .gallery-count { bottom: 118px; } }

.gallery-thumbs { display: none; }
@media (min-width: 900px) {
  .gallery-thumbs { display: flex; gap: 10px; padding-top: 12px; }
  .gallery-thumbs button {
    flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
    background: none; cursor: pointer; opacity: .6; transition: opacity 150ms ease, border-color 150ms ease;
  }
  .gallery-thumbs button img { width: 64px; height: 86px; object-fit: cover; }
  .gallery-thumbs button.on { border-color: var(--plum); opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .gallery-thumbs button:hover { opacity: 1; }
  .header-cta:hover, .btn-order:hover { background: var(--plum-2); }
}

.buybox { padding: 14px var(--gutter-r) 0 var(--gutter-l); }
@media (min-width: 900px) { .buybox { padding: 0; } }
.eyebrow { margin: 0 0 2px; color: var(--rose); font-weight: 700; font-size: 13.5px; letter-spacing: .2px; }
.buybox h1 { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--choco); }
@media (min-width: 900px) { .buybox h1 { font-size: 40px; } }
.pitch { margin: 6px 0 14px; color: var(--ink-2); font-size: 16.5px; max-width: 46ch; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-variant-numeric: tabular-nums; }
.price { font-size: 32px; font-weight: 800; color: var(--plum); line-height: 1.1; }
.price-old { color: var(--muted); font-size: 18px; }
.save { background: var(--rose-soft); color: #A3417C; font-weight: 700; font-size: 13.5px; padding: 3px 10px; border-radius: 999px; }
.save:empty { display: none; }

.variant { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }
.variant b { color: var(--ink); }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: #4A2C24; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--plum); margin-inline-end: 8px; }

.perks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.perks li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.perks li .ic { color: var(--plum); font-size: 22px; margin-top: 1px; }
.perks li b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; }

/* ---------- Commande ---------- */
.order {
  background: var(--surface); border: 1.5px solid var(--plum); border-radius: 20px;
  padding: 18px 16px 16px; box-shadow: var(--shadow); scroll-margin-top: 76px;
}
@media (min-width: 900px) { .order { padding: 22px 22px 18px; } }
.order-head h2 { font-family: var(--display); font-size: 24px; color: var(--plum); }
.order-head p { margin: 2px 0 14px; color: var(--muted); font-size: 14.5px; }

.offers { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.offers legend { font-weight: 700; margin-bottom: 8px; font-size: 15px; padding: 0; }
.offers-list { display: grid; gap: 12px; }
.offer {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface);
  transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.offer:active { transform: scale(.99); }
.offer.is-on { border-color: var(--plum); background: var(--lav); }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer .radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #BFAFB6; display: grid; place-items: center; transition: border-color 150ms ease; }
.offer .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--plum); transform: scale(.4); opacity: 0; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.offer.is-on .radio { border-color: var(--plum); }
.offer.is-on .radio::after { transform: none; opacity: 1; }
.offer input:focus-visible + .radio { outline: 3px solid rgba(90, 46, 110, .35); outline-offset: 2px; }
.offer-txt { flex: 1; min-width: 0; line-height: 1.35; }
.offer-txt b { display: block; font-size: 16px; }
.offer-txt small { color: var(--muted); font-size: 13px; }
.offer-price { text-align: left; white-space: nowrap; line-height: 1.3; font-variant-numeric: tabular-nums; }
.offer-price b { display: block; font-size: 17px; color: var(--plum); }
.offer-price s { color: var(--muted); font-size: 13px; }
.offer-badge { position: absolute; top: -11px; left: 12px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }

.field { margin-bottom: 12px; min-width: 0; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #FFFDFB; font-size: 16px; appearance: none; -webkit-appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: #A99BA1; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A2E6E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; padding-left: 34px;
  text-overflow: ellipsis;
}
.field select:disabled { opacity: .55; }
.field input[dir="ltr"] { text-align: right; letter-spacing: .5px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(90, 46, 110, .14); }
.field.is-bad input, .field.is-bad select { border-color: var(--err); }
.field.is-ok input, .field.is-ok select { border-color: #9BC8B2; }
.err { margin: 4px 0 0; color: var(--err); font-size: 13px; }
.err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.eta { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; background: var(--ok-soft); color: #23604A; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; }
.eta .ic { font-size: 18px; }

.summary { background: var(--sand); border-radius: var(--r-sm); padding: 10px 14px; margin: 4px 0 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary span { color: var(--muted); }
.summary b { text-align: left; }
.summary-total { border-top: 1px dashed #D6C6BA; margin-top: 4px; padding-top: 8px !important; align-items: baseline; }
.summary-total span { color: var(--ink); font-weight: 700; }
.summary-total b { font-size: 20px; color: var(--plum); font-weight: 800; }

.btn-order {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; padding: 12px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--plum); color: #fff; font-size: 18px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(90, 46, 110, .55);
  transition: transform 160ms var(--ease-out), background-color 150ms ease, opacity 150ms ease;
  font-variant-numeric: tabular-nums;
}
.btn-order:active { transform: scale(.97); }
.btn-order:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.btn-label { transition: filter 200ms ease, opacity 200ms ease; }
.btn-order .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.btn-order.is-loading { opacity: .9; pointer-events: none; }
.btn-order.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { color: var(--err); font-weight: 500; text-align: center; margin: 8px 0 0; font-size: 14.5px; }
.form-error:empty { display: none; }
.form-error a { color: var(--ok); font-weight: 700; }
.reassure { display: flex; justify-content: center; align-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

.success { text-align: center; padding: 10px 4px; outline: none; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
@starting-style { .success { opacity: 0; transform: translateY(8px); } }
.success-ic { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 30px; }
.success-ic .ic { stroke-width: 2.6; }
.success h3 { font-family: var(--display); font-size: 24px; color: var(--plum); }
.success p { margin: 6px 0; }
.success-num { font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
.success-recap { background: var(--sand); border-radius: var(--r-sm); padding: 10px; margin: 12px 0; }
.success-recap p { margin: 2px 0; }
.recap-total { font-weight: 800; color: var(--plum); font-size: 18px; }
.recap-total small { font-weight: 500; color: var(--muted); font-size: 13px; }
.success-demo { color: var(--warn-fg); background: var(--warn-bg); border-radius: 8px; padding: 6px; font-size: 13px; }
.btn-ghost { background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 18px; cursor: pointer; font-weight: 700; margin-top: 6px; transition: transform 160ms var(--ease-out); }
.btn-ghost:active { transform: scale(.97); }

/* ---------- Sections ---------- */
main > section:not(.product) { padding-top: 56px; }
@media (min-width: 900px) { main > section:not(.product) { padding-top: 88px; } }
.section-title { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--choco); text-align: center; margin-bottom: 20px; }
@media (min-width: 900px) { .section-title { font-size: 34px; margin-bottom: 30px; } }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
@media (min-width: 900px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.benefit-grid article { min-width: 0; }
.b-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lav); color: var(--plum); font-size: 22px; margin-bottom: 10px; }
.benefit-grid h3 { font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.benefit-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.looks-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 0 var(--gutter-r) 4px var(--gutter-l);
  scroll-padding-inline: var(--gutter-r);
}
.looks-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .looks-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; gap: 24px; } }
.looks figure { margin: 0; scroll-snap-align: start; min-width: 0; }
.looks img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--r); background: var(--sand); }
.looks figcaption { padding: 10px 2px 0; font-size: 14.5px; color: var(--ink-2); }
.looks figcaption b { display: block; color: var(--plum); font-size: 17px; font-family: var(--display); }

.reviews-row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
@media (min-width: 900px) { .reviews-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); } }
.review { scroll-snap-align: start; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.review img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 10px; }
.review p { margin: 0 0 8px; }
.review footer { font-size: 13.5px; color: var(--muted); }

.details-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .details-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.size-card, .info-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; }
.details h3 { font-family: var(--display); font-size: 19px; color: var(--plum); margin-bottom: 10px; }
.details h3 small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 14px; }
.info-card h3:not(:first-child) { margin-top: 22px; }
.size-svg { width: 100%; max-width: 280px; margin: 0 auto 10px; display: block; }
.sizes { margin: 0; display: grid; }
.sizes div { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding: 7px 0; }
.sizes dt { display: flex; align-items: center; gap: 8px; }
.sizes dt b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--lav); color: var(--plum); font-size: 13px; }
.sizes dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--ink-2); background: var(--sand); border-radius: 10px; padding: 9px 12px; margin: 14px 0 0; }
.compo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compo li { position: relative; padding-bottom: 8px; font-size: 15px; }
.compo li b { color: var(--plum); font-variant-numeric: tabular-nums; margin-inline-end: 4px; }
.compo li small { color: var(--muted); margin-inline-start: 6px; }
.compo li span { position: absolute; bottom: 0; right: 0; left: 0; height: 4px; border-radius: 4px; background: var(--sand); }
.compo li span::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: var(--p); border-radius: 4px; background: var(--rose); }
.care { margin: 0; padding-inline-start: 20px; color: var(--ink-2); }
.care li { margin-bottom: 4px; }

.steps ol { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 18px; max-width: 920px; }
@media (min-width: 900px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li > b { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-size: 17px; }
.steps strong { display: block; color: var(--choco); font-size: 16.5px; }
.steps span { font-size: 14.5px; color: var(--ink-2); }

.faq .wrap { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 2px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--plum); font-size: 24px; font-weight: 400; line-height: 1; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 2px 16px; color: var(--ink-2); }

.final-in { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; max-width: 760px; }
.final-in > img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.final-cta h2 { font-family: var(--display); font-size: 22px; color: var(--choco); }
.final-cta p { margin: 4px 0 12px; color: var(--muted); }
@media (min-width: 900px) { .final-in { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } .final-cta h2 { font-size: 30px; } }

.footer { text-align: center; padding: 44px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); margin-top: 64px; border-top: 1px solid var(--line); font-size: 14px; }
.footer p { margin: 4px 0; }
.footer-brand { font-family: var(--brand); color: var(--plum); letter-spacing: 4px; font-size: 18px; direction: ltr; }
.footer-brand span { color: var(--rose); font-size: 12px; letter-spacing: 5px; }
.footer a { color: var(--plum); font-weight: 700; text-decoration: none; }
body.has-sticky .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Barre fixe mobile ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(38, 26, 32, .18);
  transform: translateY(110%); transition: transform 400ms var(--ease-drawer);
  visibility: hidden;
}
.sticky-bar.on { transform: none; visibility: visible; transition: transform 400ms var(--ease-drawer), visibility 0s; }
.sticky-bar:not(.on) { transition: transform 250ms var(--ease-out), visibility 0s 250ms; }
.sticky-price { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sticky-price b { color: var(--plum); font-size: 18px; }
.sticky-price s { color: var(--muted); font-size: 13px; }
.sticky-bar .btn-order { min-height: 50px; font-size: 17px; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

.wa-float {
  position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 39;
  width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform 300ms var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
body.sticky-on .wa-float { transform: translateY(-74px); }

/* ---------- Visionneuse photos ---------- */
.viewer { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: #140D11; color: #fff; }
.viewer[open] { display: block; animation: viewer-in 250ms var(--ease-out); }
.viewer::backdrop { background: rgba(20, 13, 17, .9); }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.viewer-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: calc(14px + env(safe-area-inset-left, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: transform 160ms var(--ease-out);
}
.viewer-close:active { transform: scale(.94); }
.viewer-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; direction: ltr; font-size: 14px; opacity: .8; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn-order .spinner { animation: spin 1.2s linear infinite !important; }
}

/* ---------- WordPress ---------- */
.logo-img { max-height: 40px; width: auto; }
.footer-brand a { text-decoration: none; }
.footer .muted a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
body.admin-bar .header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { body.admin-bar .header { top: env(safe-area-inset-top, 0px); } }
