/* =========================================================
   SHOP EXPRESS — styles de l'application client
   Charte : Vert #1B5E3A · Jaune doré #F3AA33 · Crème #F7F8F3
   ========================================================= */
:root {
  --green: #1B5E3A;
  --green-dark: #123F27;
  --green-50: #E3EEE7;
  --green-25: #EEF3EC;
  --gold: #F3AA33;
  --gold-50: #FDF1DC;
  --gold-ink: #6B4A0E;
  --cream: #F7F8F3;
  --bg: #F7F8F3;      /* fond de page (le crème reste la couleur du texte clair sur vert) */
  --white: #FFFFFF;   /* fond des cartes */
  --green-ink: #1B5E3A; /* vert utilisé pour du texte (prix, liens) */
  --ink: #14231A;
  --ink-2: #3F4F44;
  --ink-3: #5B6B60;
  --line: #E3E8E0;
  --line-2: #DCE3DA;
  --danger: #B42318;
  --radius: 16px;
  --title: 'Montserrat', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
  --nav-h: 68px;
  --head-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 14px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--title); margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--head-h);
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px;
}
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.top .brand img { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid rgba(247,248,243,.35); }
.top .brand b { font-family: var(--title); font-weight: 800; font-size: 15px; letter-spacing: .06em; display: block; }
.top .brand small { font-size: 11px; color: #D7E6DC; display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand > span { min-width: 0; }
.top .spacer { flex: 1; }
.top .desk-nav { display: none; }
.icon-btn {
  width: 44px; height: 44px; border: none; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.dot-badge {
  position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--green);
}
.lang-btn {
  white-space: nowrap; flex-shrink: 0;
  height: 32px; padding: 0 10px; border-radius: 16px; border: 1.5px solid rgba(247,248,243,.5);
  background: transparent; color: var(--cream); font-size: 12px; font-weight: 600;
}

@media (max-width: 440px) { .top.has-back .brand small { display: none; } }
/* Petits écrans : en-tête plus serré pour garder « SHOP EXPRESS » sur une ligne */
@media (max-width: 420px) {
  .top { gap: 6px; padding-right: 6px; }
  .top .brand b { white-space: nowrap; font-size: 14px; letter-spacing: .03em; }
  .top .icon-btn { width: 38px; }
  .lang-btn { padding: 0 8px; }
}
.promo-input { border: none; outline: none; flex: 1; min-width: 0; text-transform: uppercase; min-height: 40px; background: transparent; }
.promo-input::placeholder { text-transform: none; }

/* ---------- Mise en page ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 14px 16px calc(var(--nav-h) + 28px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.two-col, .three-col { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.title-sm { font-family: var(--title); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.title-lg { font-family: var(--title); font-weight: 800; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; }
.card { background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 0 var(--line); }
.card.dark { background: var(--green-dark); color: var(--cream); box-shadow: none; }
.card.green { background: var(--green); color: var(--cream); box-shadow: none; }
.card.soft { background: var(--green-25); box-shadow: none; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- Boutons ---------- */
.btn {
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: none;
  font-family: var(--title); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E89E25; }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-ghost { background: transparent; color: var(--ink-2); font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: 0; }
.btn-light { background: var(--white); color: var(--ink); border: 1.5px solid var(--line-2); font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip {
  flex-shrink: 0; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1.5px solid var(--line-2);
  background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.seg { display: grid; gap: 6px; background: #E9EEE6; padding: 4px; border-radius: 14px; }
.seg button { min-height: 38px; border: none; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: .02em; }
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-green { background: var(--green); color: var(--cream); }
.badge-soft { background: var(--gold-50); color: var(--gold-ink); }
.badge-ok { background: var(--green-50); color: var(--green); }
.badge-red { background: #FDE7E5; color: var(--danger); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.input {
  min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white);
  padding: 0 14px; font-size: 15px; font-weight: 400; outline: none; width: 100%;
}
textarea.input { padding: 12px 14px; min-height: 88px; resize: vertical; }
.input:focus { border-color: var(--green); }
.search {
  flex: 1; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 14px;
}
.search input { border: none; outline: none; background: transparent; width: 100%; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-2); font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); flex-shrink: 0; }

/* ---------- Accueil : bannières défilantes ---------- */
.scan-btn { background: #fff; border: 1.5px solid var(--line-2); color: var(--green); width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; }
.hero { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 176px; display: flex; align-items: center; gap: 8px;
  padding: 20px 18px 30px 22px; text-decoration: none; color: var(--cream); overflow: hidden;
  background: radial-gradient(circle at 85% 30%, #2C7A50 0, #1B5E3A 38%, #123F27 100%); background-size: cover; background-position: center;
}
.slide:nth-child(2) { background: radial-gradient(circle at 85% 30%, #F7C463 0, #F3AA33 40%, #D98E1A 100%); color: var(--ink); }
.slide:nth-child(3) { background: radial-gradient(circle at 85% 30%, #3E8761 0, #245F41 45%, #173E2B 100%); }
.slide.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,63,39,.9), rgba(18,63,39,.15)); }
.slide > * { position: relative; z-index: 1; }
.slide-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.slide-badge { align-self: flex-start; font-family: var(--title); font-weight: 800; letter-spacing: .08em; }
.slide:nth-child(2) .slide-badge { background: var(--green); color: var(--cream); }
.slide-title { font-family: var(--title); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.slide-sub { font-size: 12.5px; opacity: .85; max-width: 240px; }
.slide-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; margin-top: 4px; }
.slide-art { width: 128px; height: 156px; flex-shrink: 0; border-radius: 18px; overflow: hidden; transform: rotate(3deg); box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 18px 30px -12px rgba(0,0,0,.5); }
.slide-art .art { width: 100%; height: 100%; border-radius: 0; }
/* Illustrations flottantes (bannières Molo Molo et vente en lot) */
.slide-ill { width: 136px; flex-shrink: 0; margin-right: -4px; }
.slide-ill svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 14px rgba(0,0,0,.18)); }
.ill-box { animation: float 4s ease-in-out infinite; }
.ill-box .speed { animation: dash 1.2s ease-in-out infinite; }
.ill-molo { animation: float 4s ease-in-out infinite; }
.ill-molo .coin-drop { animation: drop 2.2s cubic-bezier(.5,0,.75,0) infinite; }
.ill-molo .sparkle { animation: twinkle 2.2s ease-in-out infinite; transform-origin: center; }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes dash { 50% { transform: translateX(-6px); opacity: .55; } }
@keyframes twinkle { 50% { opacity: .3; } }
@keyframes drop { 0%, 15% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 75% { transform: translateY(22px); opacity: 1; } 85%, 100% { transform: translateY(26px); opacity: 0; } }
.hero .dots { position: absolute; left: 22px; bottom: 12px; display: flex; gap: 5px; }
.hero .dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 4px; background: rgba(255,255,255,.55); transition: width .2s; }
.hero .dots button[aria-selected="true"] { width: 22px; background: var(--gold); }
/* Catégories de l'accueil : vraies photos, nom posé sur un dégradé */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-card {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; text-decoration: none;
  background: var(--green); color: #fff;
}
.cat-card img, .cat-card .cat-ic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease, ease); }
.cat-card .cat-ic { display: flex; align-items: center; justify-content: center; color: var(--gold); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,63,39,0) 35%, rgba(18,63,39,.88) 100%); }
.cat-card b { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-family: var(--title); font-weight: 800; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cat-card b::after { content: "›"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.cat-card:hover img { transform: scale(1.05); }
.trust { gap: 8px; }
.trust span { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--green-25); color: var(--green); font-size: 12px; font-weight: 600; }
.flash { background: linear-gradient(160deg, #FFF4DE, #FDE7BD); border-radius: 22px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; margin: 0 -4px; }
.flash .title-sm { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); }
.flash .hscroll { margin: 0 -16px; padding: 0 16px; }
.timer { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.timer b { background: var(--ink); color: var(--gold); border-radius: 6px; padding: 2px 5px; font-family: var(--title); font-size: 13px; }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; text-decoration: none; }
.molo-promo {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 22px; text-decoration: none;
  background: var(--green); color: var(--cream);
}
.molo-promo .mp-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; position: relative; z-index: 1; }
.molo-promo .title-sm { color: var(--gold); }
.molo-promo b { font-family: var(--title); font-weight: 800; font-size: 18px; line-height: 1.2; }
.molo-promo .small { color: #D7E6DC; max-width: 300px; }
.molo-promo .slide-cta { color: var(--gold); }
.mp-ic { position: relative; z-index: 1; width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--green-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(243,170,51,.18); }
.how { background: var(--white); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 var(--line); }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.how .n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--title); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-list > div { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--green); }
.info-list b { color: var(--ink); }
.cnt.bump { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.28); } }

/* ---------- Bannière ---------- */
.banner {
  text-decoration: none;
  position: relative; min-height: 150px; border-radius: 20px; background: var(--green-dark); color: var(--cream);
  overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 20px 26px;
  background-size: cover; background-position: center;
}
.banner::before { content: ""; position: absolute; right: -36px; top: -30px; width: 170px; height: 170px; border-radius: 50%; background: var(--green); }
.banner.has-img::before { background: none; }
.banner.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,63,39,.88), rgba(18,63,39,.2)); }
.banner > * { position: relative; z-index: 1; }
.banner h2 { font-weight: 800; font-size: 21px; max-width: 230px; line-height: 1.15; text-transform: uppercase; }
.banner p { margin: 0; font-size: 12px; color: #D7E6DC; max-width: 240px; }
.banner .dots { position: absolute; bottom: 12px; left: 20px; display: flex; gap: 5px; }
.banner .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(247,248,243,.5); }
.banner .dots i.on { width: 18px; background: var(--gold); }

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 4px; }
.cat-tile { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; text-decoration: none; color: var(--ink); }
.cat-tile span.ic { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--green); }
.cat-tile b { font-size: 12px; font-weight: 500; }
/* Sélecteur de catégorie : carte blanche + petite icône dans une pastille ; la catégorie active passe en vert et or */
.cat-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 78px; padding: 10px 6px;
  border-radius: 18px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
  border: 1.5px solid transparent; transition: transform .2s var(--ease, ease), box-shadow .2s, background .2s;
}
.cat-pill .cp-ic {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--green-25), var(--green-50)); color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transition: background .2s, color .2s, transform .2s var(--ease, ease);
}
.cat-pill b { font-family: var(--title); font-weight: 700; font-size: 12px; letter-spacing: .02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 420px) { .cat-pill { padding: 10px 2px; } .cat-pill b { font-size: 10.5px; letter-spacing: 0; } }
.cat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cat-pill:hover .cp-ic { transform: scale(1.06); }
.cat-pill[aria-current="true"] { background: linear-gradient(160deg, #23704A, var(--green-dark)); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(18,63,39,.7); }
.cat-pill[aria-current="true"] .cp-ic { background: linear-gradient(145deg, #F7BA52, var(--gold)); color: var(--green-dark); box-shadow: 0 6px 14px -6px rgba(217,142,26,.9); }

/* ---------- Produits ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard {
  background: var(--white); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(18,63,39,.35); color: var(--ink); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 14px 26px -16px rgba(18,63,39,.45); }
.pcard .pcard-link { display: block; border-radius: 12px; overflow: hidden; }
.pcard .art { aspect-ratio: 1 / 1; border-radius: 12px; transition: transform .3s ease; }
.pcard .art img { transition: transform .35s ease; }
.pcard:hover .art img { transform: scale(1.04); }
.pcard .name { font-size: 13px; font-weight: 500; line-height: 1.25; height: 33px; overflow: hidden; color: var(--ink); text-decoration: none; }
.pcard .price { font-family: var(--title); font-weight: 800; font-size: 15px; }
.pcard .sub { font-size: 11px; color: var(--green); font-weight: 600; }
.pcard .was, .was { color: var(--ink-3); font-size: 12px; }
.pcard .tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none; }
.pcard .rank { font-family: var(--title); }
.pcard .price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.pcard .quick {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; border: none; background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease, background .15s;
}
.pcard .quick:hover { transform: scale(1.08); }
.pcard .quick.done { background: var(--green); color: var(--cream); animation: pop .4s ease; }
.fav {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--ink-3); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.fav[aria-pressed="true"], .fav-lg[aria-pressed="true"] { color: #D64545; }
.fav[aria-pressed="true"] svg path, .fav-lg[aria-pressed="true"] svg path { fill: currentColor; }
.fav.pop, .fav-lg.pop { animation: pop .35s ease; }
.fav-lg { color: var(--ink-3); }
.pcard .out { position: absolute; left: 8px; right: 8px; top: 8px; aspect-ratio: 1/1; border-radius: 12px; background: rgba(255,255,255,.72); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.pcard .sold { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--gold-ink); font-weight: 600; }
.pcard .sold .bar { height: 6px; background: var(--gold-50); }
.pcard.mini { flex: 0 0 152px; }
.art { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--green); background: #F1F3EE; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art > svg { width: 30%; height: 30%; opacity: .45; }
.art.no-img { flex-direction: column; gap: 6px; }
.art.no-img span { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.line .art.no-img span, .mitem .art.no-img span, .pick .art.no-img span, .pd-thumbs .art.no-img span { display: none; }
.out { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: var(--ink); }

/* Fiche produit */
.pd { display: flex; flex-direction: column; gap: 16px; }
.pd-gallery { margin: -14px -16px 0; }
.pd-main { aspect-ratio: 1 / 1; max-height: 460px; width: 100%; }
.pd-thumbs { display: flex; gap: 8px; padding: 8px 16px 0; overflow-x: auto; }
.pd-thumbs button { width: 58px; height: 58px; flex-shrink: 0; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--green-50); }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--green); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.big-price { font-family: var(--title); font-weight: 800; font-size: 26px; color: var(--green); }
.tier { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1.5px solid transparent; font-size: 13px; }
.tier.on { background: var(--gold-50); border-color: var(--gold); font-weight: 600; }
.tier b { font-family: var(--title); font-weight: 800; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #F1F4EE; border-radius: 12px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border: none; border-radius: 10px; background: var(--white); color: var(--green); font-size: 18px; font-weight: 600; }
.stepper span { min-width: 30px; text-align: center; font-weight: 600; }
.var-btn { min-width: 48px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--white); font-size: 13px; font-weight: 600; }
.var-btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-50); }
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.action-bar .btn { min-height: 54px; font-size: 12px; }

/* Panier */
.line { display: flex; gap: 12px; align-items: center; }
.line .art { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; }
.line .art svg { width: 44%; height: 44%; }
.vstep { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #F1F4EE; border-radius: 12px; padding: 3px; }
.vstep button { width: 36px; height: 32px; border: none; border-radius: 9px; background: var(--white); color: var(--green); font-size: 16px; font-weight: 600; }
.choice { text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; width: 100%; }
.choice[aria-pressed="true"] { border-color: var(--green); background: var(--green-50); }
.choice .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; }
.sep { height: 1px; background: var(--line); }

/* Molo Molo */
.molo-hero { background: var(--green); color: var(--cream); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.molo-hero .bal { font-family: var(--title); font-weight: 800; font-size: 32px; color: var(--gold); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.amounts button { min-height: 40px; border-radius: 12px; border: 1.5px solid rgba(247,248,243,.4); background: transparent; color: var(--cream); font-size: 13px; font-weight: 600; }
.amounts button[aria-pressed="true"] { background: var(--cream); color: var(--green); border-color: var(--cream); }
.bar { height: 8px; border-radius: 4px; background: #E9EEE6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.bar > i.gold { background: var(--gold); }
.mitem { display: flex; gap: 10px; align-items: center; }
.mitem .art { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.mitem .art svg { width: 50%; height: 50%; }
.recov { border: 2px solid var(--gold); }

/* Compte */
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--title); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.menu { padding: 0; overflow: hidden; }
.menu a, .menu button { min-height: 52px; border: none; border-bottom: 1px solid #EEF1EB; background: transparent; text-align: left; padding: 0 14px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink); text-decoration: none; width: 100%; }
.menu > :last-child { border-bottom: none; }
.status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--green-50); color: var(--green); white-space: nowrap; }
.status.en_attente, .status.confirmee { background: var(--gold-50); color: var(--gold-ink); }
.status.annulee { background: #FDE7E5; color: var(--danger); }

/* ---------- Navigation du bas ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom); background: var(--green); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bottom-nav a { color: var(--cream); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; }
.bottom-nav a span.pill { position: relative; width: 52px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.bottom-nav a[aria-current="page"] span.pill { background: var(--gold); color: var(--ink); }
.bottom-nav a[aria-current="page"] { font-weight: 600; }
.bottom-nav .cnt { position: absolute; top: -3px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--cream); color: var(--green); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- Fenêtres ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,30,18,.55); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; animation: fade .15s ease; }
.sheet {
  background: var(--white); border-radius: 26px 26px 0 0; padding: 12px 20px calc(26px + env(safe-area-inset-bottom));
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: up .2s ease;
}
.sheet .grip { align-self: center; width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet h2 { font-weight: 800; font-size: 18px; line-height: 1.3; }
.sheet .center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.round-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.warn { background: var(--gold-50); border-radius: 14px; padding: 14px; color: #3D2B08; font-size: 13px; }
.warn b { color: var(--gold-ink); display: block; margin-bottom: 4px; font-family: var(--title); }
.pick { text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; width: 100%; }
.pick[aria-pressed="true"] { border-color: var(--green); background: var(--green-50); }
.pick .art { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; }
/* Mot de passe : bouton « œil » et règles du mot de passe fort */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--green-ink); }
.pw-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; font-size: 12px; color: var(--ink-3); }
.pw-rules li { display: flex; align-items: center; gap: 5px; }
.pw-rules li svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--line-2); color: transparent; flex-shrink: 0; }
.pw-rules li.ok { color: var(--green-ink); font-weight: 600; }
.pw-rules li.ok svg { background: var(--green); color: #fff; }
/* Comptes enregistrés, avatar */
.saved-acc { display: flex; align-items: center; gap: 4px; }
.saved-acc .pick { flex: 1; }
.avatar { overflow: hidden; object-fit: cover; }
img.avatar { display: block; }
.avatar.sm { width: 40px; height: 40px; font-size: 16px; }
.avatar-edit { position: relative; width: 92px; height: 92px; align-self: center; }
.avatar-edit .avatar { width: 92px; height: 92px; font-size: 34px; }
.avatar-edit label { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 3px var(--white); }
/* Corbeille du panier */
.card.line { position: relative; }
.line-rm { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: none; border-radius: 9px; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.line-rm:hover { background: #FDE7E5; color: var(--danger); }
.card.line .vstep { margin-top: 26px; }
/* Case à cocher des choix multiples (articles Molo à livrer) */
.pick-box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s, border-color .15s; }
.pick[aria-pressed="true"] .pick-box { background: var(--green); border-color: var(--green); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px); z-index: 80;
  background: var(--ink); color: var(--cream); font-size: 13px; padding: 12px 16px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: min(520px, calc(100% - 32px)); width: max-content;
}
.toast.err { background: var(--danger); }
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px); z-index: 70; max-width: 560px; margin: 0 auto;
  background: var(--white); border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 10px; font-size: 13px;
}
.empty { padding: 34px 16px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.skel { background: linear-gradient(90deg, #EEF1EB, #F7F8F3, #EEF1EB); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
.legal { max-width: 760px; }
.legal h1 { font-size: 20px; margin-bottom: 4px; }
.legal h2 { font-size: 15px; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.foot { text-align: center; font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 8px 0; }
.foot a { color: var(--ink-2); }
.demo-flag { background: var(--gold-50); color: var(--gold-ink); font-size: 12px; text-align: center; padding: 6px 12px; }

/* =========================================================
   PASSE DESIGN — rendu plus vivant (motifs inspirés du pagne,
   profondeur, retours au toucher). Mêmes couleurs, mêmes polices.
   ========================================================= */
:root {
  /* Motif géométrique (losanges + zigzag) en filigrane doré */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23F3AA33' stroke-width='1.4'%3E%3Cpath d='M24 4 44 24 24 44 4 24Z'/%3E%3Cpath d='M24 14 34 24 24 34 14 24Z'/%3E%3Cpath d='M0 0 6 6M42 42 48 48M48 0 42 6M6 42 0 48'/%3E%3C/g%3E%3C/svg%3E");
  --shadow-1: 0 1px 2px rgba(18,63,39,.06), 0 4px 14px -6px rgba(18,63,39,.18);
  --shadow-2: 0 2px 4px rgba(18,63,39,.08), 0 16px 32px -14px rgba(18,63,39,.38);
  --ease: cubic-bezier(.2,.8,.2,1);
}
body { font-size: 15px; line-height: 1.5; }
.small, .badge, .pcard .sub, .pcard .sold, .status, .bottom-nav a, .top .brand small { font-size: 12px; }

/* En-tête : motif discret + liseré doré */
.top { background: var(--pattern) right -12px center / 48px repeat-y, var(--green); box-shadow: inset 0 -3px 0 var(--gold); }
.top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green) 55%, rgba(27,94,58,.6)); pointer-events: none; }
.top > * { position: relative; }

/* Titres de section : petite barre dorée */
.title-sm { display: inline-flex; align-items: center; gap: 8px; }
.home h2.title-sm::before, .stack > .between > h2.title-sm::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--gold); flex-shrink: 0; }
.flash h2.title-sm::before, .molo-promo .title-sm::before { display: none; }

/* Bannières : motif, profondeur */
.slides { box-shadow: var(--shadow-2); }
.slide::before, .molo-promo::before, .molo-hero::before {
  content: ""; position: absolute; inset: 0; background: var(--pattern) 0 0 / 40px; opacity: .14; pointer-events: none;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 80%); mask-image: linear-gradient(110deg, transparent 35%, #000 80%);
}
.slide:nth-child(2)::before { filter: brightness(.25); opacity: .12; }
.slide-title { font-size: 25px; letter-spacing: .01em; }
.slide-cta { background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 12px; align-self: flex-start; font-family: var(--title); font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.slide:nth-child(2) .slide-cta { background: var(--green); color: var(--cream); }
.molo-promo, .molo-hero { position: relative; overflow: hidden; box-shadow: var(--shadow-2); }
.molo-promo::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(243,170,51,.45), transparent 70%); pointer-events: none; }
.molo-promo .slide-cta { color: var(--ink); }
.molo-hero > * { position: relative; }

/* Catégories : tuiles en relief */
.cat-card { box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s; }
.cat-card:hover { box-shadow: var(--shadow-2); }

/* Bandeau de confiance : grille nette au lieu d'une bande qui défile */
.trust.hscroll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0; padding: 0; }
.trust span { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); padding: 10px 12px; font-size: 12px; line-height: 1.3; flex-shrink: 1; }
.trust span svg { color: var(--green); flex-shrink: 0; }
@media (min-width: 720px) { .trust.hscroll { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.demo-flag { font-size: 11px; padding: 4px 12px; }
.art img { animation: fade .35s ease; }

/* Cartes produit */
.pcard { box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pcard:hover { box-shadow: var(--shadow-2); }
.pcard .price { color: var(--green-dark); font-size: 15px; white-space: nowrap; }
.pcard.mini .price { font-size: 14px; }
.pcard .quick { width: 40px; height: 40px; box-shadow: 0 4px 10px -4px rgba(217,142,26,.8); }
.flash { box-shadow: var(--shadow-1); border: 1.5px solid #F8D79B; }
.how { box-shadow: var(--shadow-1); }
.how .n { box-shadow: 0 0 0 4px var(--gold-50); }
.card { box-shadow: var(--shadow-1); }

/* Boutons : relief et retour au toucher */
.btn { transition: transform .12s var(--ease), background .15s, box-shadow .15s; }
.btn-gold { background: linear-gradient(180deg, #F7BA52, var(--gold)); box-shadow: 0 6px 16px -8px rgba(217,142,26,.9); }
.btn-green { box-shadow: 0 6px 16px -8px rgba(18,63,39,.9); }
.btn:active:not([disabled]), .chip:active, .quick:active, .cat-card:active, .pcard:active, .icon-btn:active, .choice:active { transform: scale(.97); }

/* Navigation du bas : plus moderne */
.bottom-nav { border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px -12px rgba(18,63,39,.5); }
.bottom-nav a span.pill { transition: background .2s var(--ease), width .2s var(--ease); }
.bottom-nav a[aria-current="page"] span.pill { width: 58px; box-shadow: 0 4px 12px -4px rgba(243,170,51,.9); }


/* =========================================================
   TÉLÉPHONE (≤ 480 px) : tout un peu plus compact.
   Les zones à toucher restent d'au moins 44 px.
   ========================================================= */
@media (max-width: 480px) {
  :root { --head-h: 52px; --nav-h: 56px; --radius: 12px; }
  body { font-size: 13.5px; }
  .page { padding-top: 10px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .hscroll { margin: 0 -12px; padding: 0 12px; }
  .pd-gallery { margin: -10px -12px 0; }
  .pd-thumbs { padding: 8px 12px 0; }
  .home { gap: 16px !important; }
  .stack { gap: 12px; }
  .top .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .top .brand b { font-size: 13px; }
  .top .brand small { font-size: 10.5px; }
  .lang-btn { height: 28px; font-size: 11px; }
  .search { min-height: 40px; border-radius: 11px; padding: 0 12px; }
  .search input { font-size: 13px; }
  .search svg { width: 16px; height: 16px; }
  .scan-btn { width: 40px; height: 40px; border-radius: 11px; }
  .title-sm { font-size: 12px; }
  .title-lg { font-size: 16px; }
  .btn { min-height: 44px; font-size: 11.5px; padding: 0 12px; border-radius: 11px; }
  .chip { min-height: 34px; font-size: 11px; padding: 0 12px; }

  /* Bannières */
  .slides { border-radius: 16px; }
  .slide { min-height: 0; padding: 14px 10px 24px 14px; gap: 6px; }
  .slide-text { gap: 4px; }
  .slide-title { font-size: 18px; }
  .slide-sub { font-size: 11px; max-width: 180px; }
  .slide-cta { padding: 6px 11px; font-size: 10.5px; border-radius: 10px; }
  .slide-badge { font-size: 9.5px; }
  .slide-ill { width: 90px; }
  .slide-art { width: 86px; height: 108px; border-radius: 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 12px 22px -10px rgba(0,0,0,.5); }
  .hero .dots { bottom: 9px; left: 14px; }

  /* Catégories, confiance */
  .cats { gap: 8px; }
  .cat-card { aspect-ratio: 9 / 4; border-radius: 12px; }
  .cat-card b { font-size: 11px; left: 9px; right: 9px; bottom: 7px; }
  .cat-card b::after { width: 18px; height: 18px; font-size: 14px; }
  .trust { gap: 6px; }
  .trust span { padding: 7px 9px; font-size: 10.5px; border-radius: 10px; gap: 5px; }
  .trust span svg { width: 14px; height: 14px; }

  /* Produits */
  .grid-2 { gap: 8px; }
  .pcard { padding: 6px; gap: 4px; border-radius: 12px; }
  .pcard .art, .pcard .pcard-link { border-radius: 9px; }
  .pcard.mini { flex-basis: 126px; }
  .pcard .name { font-size: 12px; height: 29px; }
  .pcard .price { font-size: 13px; }
  .pcard.mini .price { font-size: 12.5px; }
  .pcard .was, .pcard .sub, .pcard .sold { font-size: 10.5px; }
  .pcard .quick { width: 32px; height: 32px; border-radius: 9px; }
  .pcard .quick svg { width: 16px; height: 16px; }
  .pcard .tags { left: 11px; top: 11px; }
  .badge { font-size: 10px; padding: 2px 6px; }
  .fav { width: 28px; height: 28px; right: 10px; top: 10px; }
  .fav svg { width: 15px; height: 15px; }
  .flash { padding: 10px 12px 12px; border-radius: 16px; }
  .timer b { font-size: 11.5px; }
  .big-price { font-size: 21px; }
  .action-bar .btn { min-height: 46px; font-size: 11px; }

  /* Blocs Molo Molo, « comment ça marche » */
  .molo-promo { padding: 12px 14px; border-radius: 16px; gap: 10px; }
  .molo-promo b { font-size: 14.5px; }
  .molo-promo .small { font-size: 11px; }
  .mp-ic { width: 46px; height: 46px; box-shadow: 0 0 0 5px rgba(243,170,51,.18); }
  .mp-ic svg { width: 22px; height: 22px; }
  .molo-hero { padding: 14px; border-radius: 16px; }
  .molo-hero .bal { font-size: 25px; }
  .how { padding: 12px; border-radius: 16px; }
  .how li { font-size: 12.5px; gap: 10px; }
  .how .n { width: 24px; height: 24px; font-size: 12px; }

  /* Navigation du bas */
  .bottom-nav { border-radius: 16px 16px 0 0; }
  .bottom-nav a { font-size: 10px; gap: 2px; }
  .bottom-nav a span.pill { width: 42px; height: 26px; }
  .bottom-nav a[aria-current="page"] span.pill { width: 46px; }
  .bottom-nav svg { width: 19px; height: 19px; }
}

/* =========================================================
   MODE SOMBRE (bouton lune/soleil dans l'en-tête)
   Mêmes verts et or ; fonds et textes inversés.
   ========================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1712;
  --white: #17241C;
  --ink: #E8EFE9;
  --ink-2: #B7C4BA;
  --ink-3: #8FA095;
  --line: #24332A;
  --line-2: #2F4136;
  --green-25: #18291F;
  --green-50: #1F3628;
  --gold-50: #2E2412;
  --gold-ink: #F3C46E;
  --green-ink: #6FCF97;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px -8px rgba(0,0,0,.6);
  --shadow-2: 0 2px 4px rgba(0,0,0,.45), 0 18px 34px -14px rgba(0,0,0,.75);
}
[data-theme="dark"] a:not([class]), [data-theme="dark"] .see-all { color: var(--green-ink); }
[data-theme="dark"] .foot a { color: var(--ink-2); }
[data-theme="dark"] .top { box-shadow: inset 0 -3px 0 var(--gold), 0 1px 0 #000; }
[data-theme="dark"] .big-price, [data-theme="dark"] .pcard .price, [data-theme="dark"] .pcard .sub,
[data-theme="dark"] .info-list > div, [data-theme="dark"] .btn-outline, [data-theme="dark"] .scan-btn,
[data-theme="dark"] .seg button[aria-pressed="true"], [data-theme="dark"] .stepper button, [data-theme="dark"] .vstep button,
[data-theme="dark"] .trust span svg, [data-theme="dark"] .art, [data-theme="dark"] .cp-ic { color: var(--green-ink); }
[data-theme="dark"] .btn-outline { border-color: var(--green-ink); }
[data-theme="dark"] .btn-light { color: var(--ink); }
[data-theme="dark"] .seg, [data-theme="dark"] .bar, [data-theme="dark"] .stepper, [data-theme="dark"] .vstep { background: #22332A; }
[data-theme="dark"] .scan-btn { background: var(--white); }
[data-theme="dark"] .art { background: #1C2B22; }
[data-theme="dark"] .fav { background: rgba(23,36,28,.9); }
[data-theme="dark"] .out, [data-theme="dark"] .pcard .out { background: rgba(14,23,18,.72); color: var(--ink); }
[data-theme="dark"] .flash { background: linear-gradient(160deg, #2A2312, #33280F); border-color: #4A3A16; }
[data-theme="dark"] .warn { color: #F1E3C4; }
[data-theme="dark"] .timer b { background: #0A110D; }
[data-theme="dark"] .badge-red, [data-theme="dark"] .status.annulee { background: #3A1A17; color: #FF9A8F; }
[data-theme="dark"] .menu a, [data-theme="dark"] .menu button { border-bottom-color: var(--line); }
[data-theme="dark"] .skel { background: linear-gradient(90deg, #1A2820, #22332A, #1A2820); background-size: 200% 100%; }
[data-theme="dark"] .toast { background: #F7F8F3; color: #14231A; }
[data-theme="dark"] .toast.err { background: var(--danger); color: #fff; }
[data-theme="dark"] .overlay { background: rgba(0,0,0,.65); }
[data-theme="dark"] .demo-flag { background: #2E2412; color: #F3C46E; }
[data-theme="dark"] .bottom-nav { background: #123F27; }
[data-theme="dark"] .cat-pill .cp-ic { background: linear-gradient(145deg, #1F3628, #18291F); box-shadow: none; }
[data-theme="dark"] .cat-pill[aria-current="true"] .cp-ic { color: var(--green-dark); }
[data-theme="dark"] .input::placeholder, [data-theme="dark"] .search input::placeholder { color: var(--ink-3); }
[data-theme="dark"] .slide-ill svg { filter: drop-shadow(0 12px 14px rgba(0,0,0,.4)); }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 720px) {
  .slide { min-height: 210px; padding: 26px 34px; }
  .slide-title { font-size: 29px; }
  .slide-sub { font-size: 14px; max-width: 400px; }
  .slide-art { width: 168px; height: 200px; }
  .slide-ill { width: 180px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .cat-card { aspect-ratio: 2 / 1; }
  .how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard.mini { flex-basis: 172px; }
  .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  /* Ordinateur : cartes moins hautes et plus longues, icône à gauche du nom */
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 210px)); justify-content: start; gap: 14px; }
  .cat-pill { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 10px 16px 10px 10px; }
  .cat-pill .cp-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
  .cat-pill b { font-size: 14px; text-align: left; }
  .banner { min-height: 190px; padding: 24px 32px; }
  .banner h2 { font-size: 26px; max-width: 420px; }
  .banner p { font-size: 14px; max-width: 420px; }
  .banner::before { width: 300px; height: 300px; right: -60px; top: -60px; }
}
@media (min-width: 960px) {
  :root { --nav-h: 0px; }
  .bottom-nav { display: none; }
  .top { height: 64px; padding: 0 max(24px, calc((100vw - 1200px) / 2 + 16px)); gap: 12px; }
  .top .desk-nav { display: flex; gap: 4px; margin-left: 20px; }
  .top .desk-nav a { color: var(--cream); text-decoration: none; padding: 7px 13px; border-radius: 10px; font-weight: 500; font-size: 13.5px; position: relative; }
  .top .desk-nav a[aria-current="page"] { background: var(--gold); color: var(--ink); font-weight: 600; }
  .top .desk-nav a:not([aria-current="page"]):hover { background: rgba(255,255,255,.1); }
  .top .desk-nav .cnt { margin-left: 6px; background: var(--cream); color: var(--green); border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 700; }
  .page { padding-block: 20px 48px; }
  .grid-2 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pd-main { max-height: 420px; }
  .big-price { font-size: 24px; }
  .pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .pd-gallery { margin: 0; position: sticky; top: 84px; }
  .pd-main { border-radius: 20px; }
  .pd-thumbs { padding: 10px 0 0; }
  .action-bar { position: static; padding: 0; border: none; background: transparent; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .toast { bottom: 24px; }
  .cookie { bottom: 16px; }
  .overlay { justify-content: center; }
  .sheet { border-radius: 24px; max-height: 86vh; }
  .sheet .grip { display: none; }
}

/* Petit point rouge : action importante à faire (ex. compte Google sans mot de passe) */
.red-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--bg, #fff); vertical-align: middle; animation: red-dot-pulse 1.8s ease-in-out infinite; }
.bottom-nav .pill .red-dot, .desk-nav a .red-dot { position: absolute; top: 2px; right: 6px; }
.bottom-nav .pill, .desk-nav a { position: relative; }
@keyframes red-dot-pulse { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .red-dot { animation: none; } }

/* Catégories : défilement horizontal (autant de catégories que l'admin en crée) */
.cat-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.cat-grid::-webkit-scrollbar { display: none; }
.cat-grid > .cat-pill { flex: 0 0 84px; scroll-snap-align: start; }
@media (max-width: 480px) { .cat-grid > .cat-pill { flex-basis: 76px; } }
@media (min-width: 900px) { .cat-grid > .cat-pill { flex-basis: 110px; } }

/* Disponibilité : petite pastille discrète, point de couleur + texte */
.stock-pill { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px 4px 6px; border-radius: 999px; background: var(--white, #fff); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line, #E6EAE3) inset; white-space: nowrap; }
.stock-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock-pill.s-in { color: #1F7A4A; } .stock-pill.s-in i { background: #22A05B; box-shadow: 0 0 0 3px rgba(34,160,91,.15); }
.stock-pill.s-low { color: #9A6510; } .stock-pill.s-low i { background: var(--gold, #F3AA33); animation: stock-blink 1.6s ease-in-out infinite; }
.stock-pill.s-soon { color: #2563A8; } .stock-pill.s-soon i { background: #3B82D6; }
.stock-pill.s-out { color: var(--ink-3, #8A938D); } .stock-pill.s-out i { background: #B5BDB8; }
.stock-pill.big { font-size: 13px; padding: 6px 12px 6px 9px; } .stock-pill.big i { width: 9px; height: 9px; }
.pcard .stock-pill { margin: 6px 0 -2px; }
.pcard .out-veil { position: absolute; left: 8px; right: 8px; top: 8px; aspect-ratio: 1/1; border-radius: 12px; background: rgba(255,255,255,.45); pointer-events: none; }
@keyframes stock-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .stock-pill.s-low i { animation: none; } }
[data-theme="dark"] .stock-pill { background: rgba(255,255,255,.06); }
[data-theme="dark"] .stock-pill.s-in { color: #5FD08F; } [data-theme="dark"] .stock-pill.s-low { color: #F3C26B; } [data-theme="dark"] .stock-pill.s-soon { color: #7FB2EE; }
[data-theme="dark"] .pcard .out-veil { background: rgba(14,23,18,.45); }

/* Accueil : plus de 4 catégories mises en avant → 2 lignes qui défilent horizontalement (lentement, toutes seules) */
.cats.scroll { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc(50% - 5px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cats.scroll::-webkit-scrollbar { display: none; }
@media (max-width: 480px) { .cats.scroll { grid-auto-columns: calc(50% - 4px); } }
@media (min-width: 900px) { .cats.scroll { grid-auto-columns: calc(25% - 9px); } }

/* Page Catégories : barre de tri discrète (onglets texte, soulignement or sur l'onglet actif) */
.sort-bar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line, #E6EAE3); margin-top: -2px; }
.sort-count { flex: none; font-size: 12px; color: var(--ink-3, #8A938D); padding-bottom: 9px; }
.sort-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; -webkit-overflow-scrolling: touch; }
.sort-tabs::-webkit-scrollbar { display: none; }
.sort-tabs button { flex: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2, #5B6660); padding: 6px 10px 9px; position: relative; cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0; transition: color .2s; }
.sort-tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold, #F3AA33); transform: scaleX(0); transition: transform .25s var(--ease, ease); }
.sort-tabs button[aria-pressed="true"] { color: var(--green, #1B5E3A); font-weight: 700; }
.sort-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.sort-tabs button:hover { color: var(--green, #1B5E3A); }
@media (max-width: 480px) { .sort-count { display: none; } .sort-tabs { margin-left: 0; } .sort-tabs button { font-size: 12.5px; padding: 6px 9px 9px; } }
[data-theme="dark"] .sort-tabs button[aria-pressed="true"] { color: var(--gold, #F3AA33); }

/* Images protégées : pas de menu « Télécharger l'image » à l'appui long (mobile), pas de glisser-déposer */
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--cream, #F7F8F3); display: inline-flex; align-items: center; justify-content: center; font-family: var(--title); font-weight: 800; font-size: 13px; }

/* Avis et étoiles */
.stars { display: inline-flex; gap: 1px; line-height: 1; letter-spacing: 0; }
.stars i { font-style: normal; color: #D9DED9; }
.stars i.on { color: var(--gold, #F3AA33); }
.stars i.half { background: linear-gradient(90deg, var(--gold, #F3AA33) 50%, #D9DED9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rate-line { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-2); text-decoration: none; }
.rate-line b { color: var(--ink); font-weight: 700; }
.rate-line.big { font-size: 13px; }
.pcard .rate-line { margin-top: -2px; }
.rate-bar { display: grid; grid-template-columns: 12px 1fr 22px; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-2); }
.rate-bar .bar { height: 6px; }
.review { display: flex; flex-direction: column; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line, #E6EAE3); }
.review p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; }
.star-pick { display: flex; justify-content: center; gap: 6px; }
.star-pick button { border: 0; background: none; font-size: 38px; line-height: 1; color: #D9DED9; cursor: pointer; padding: 2px; transition: transform .15s, color .15s; }
.star-pick button[aria-pressed="true"] { color: var(--gold, #F3AA33); }
.star-pick button:active { transform: scale(1.2); }
.rate-btn { align-self: flex-start; border: 1px dashed var(--gold, #F3AA33); background: var(--gold-50, #FDF4E3); color: #8A5A07; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; margin: -2px 0 4px; }
.rate-btn.done { border-style: solid; background: transparent; color: var(--ink-2); }
[data-theme="dark"] .stars i, [data-theme="dark"] .star-pick button { color: #3A4640; }

/* Espace vendeur */
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi-row .card { padding: 12px 6px; gap: 2px; display: flex; flex-direction: column; align-items: center; }
.kpi-row b { font-family: var(--title); font-size: 22px; color: var(--green); }
.sp-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-imgs > span { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.sp-imgs img { width: 100%; height: 100%; object-fit: cover; }
.sp-imgs button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sp-add { width: 72px; height: 72px; border-radius: 12px; border: 1.5px dashed var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; }

.sp-kpi { border: 2px solid transparent; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.sp-kpi[aria-pressed="true"] { border-color: var(--gold, #F3AA33); background: var(--gold-50, #FDF4E3); }
.sp-kpi:active { transform: scale(.97); }

/* Bannières : photo dans un cadre (rond, carte, goutte, hexagone, arche, polaroïd, carton 3D, camionnette 3D) */
.bf { flex-shrink: 0; width: 140px; height: 140px; display: block; position: relative; animation: bf-float 5s ease-in-out infinite; }
.bf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-rond img { border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.95), 0 18px 30px -12px rgba(0,0,0,.5); }
.bf-carte { width: 124px; height: 152px; transform: rotate(4deg); }
.bf-carte img { border-radius: 18px; box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 18px 30px -12px rgba(0,0,0,.5); }
.bf-goutte img { border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%; box-shadow: 0 0 0 5px rgba(255,255,255,.95), 0 18px 30px -12px rgba(0,0,0,.5); }
.bf-hexagone { filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.bf-hexagone img { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.bf-arche { width: 124px; height: 152px; }
.bf-arche img { border-radius: 70px 70px 14px 14px; box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 18px 30px -12px rgba(0,0,0,.5); }
.bf-polaroid { width: 128px; height: 150px; background: #fff; padding: 8px 8px 26px; border-radius: 4px; transform: rotate(-5deg); box-shadow: 0 18px 30px -12px rgba(0,0,0,.55); }
/* Carton 3D : la photo est imprimée sur la face avant */
.bf-carton { width: 150px; height: 150px; perspective: 600px; }
.bf-carton .cube { position: absolute; left: 22px; top: 30px; width: 96px; height: 96px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-32deg); }
.bf-carton .cube i { position: absolute; display: block; }
.bf-carton .c-front { inset: 0; background-size: cover; background-position: center; transform: translateZ(48px); border: 3px solid #C99A5B; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.bf-carton .c-side { inset: 0; background: linear-gradient(90deg, #B98A4E, #A67A42); transform: rotateY(90deg) translateZ(48px); }
.bf-carton .c-top { inset: 0; background: linear-gradient(135deg, #DDB27A, #C99A5B); transform: rotateX(90deg) translateZ(48px); }
.bf-carton .c-top::after { content: ""; position: absolute; left: 0; right: 0; top: 42%; height: 16%; background: rgba(243,170,51,.85); }
.bf-carton::after { content: ""; position: absolute; left: 14px; right: 6px; bottom: 6px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.2); filter: blur(4px); }
/* Camionnette 3D : photo sur le côté du coffre */
.bf-camion { width: 190px; height: 121px; }
.bf-camion svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
@keyframes bf-float { 50% { transform: translateY(-6px); } }
.bf-carte, .bf-polaroid { animation: none; }
@media (prefers-reduced-motion: reduce) { .bf { animation: none; } }
@media (max-width: 480px) {
  .bf { width: 92px; height: 92px; } .bf-carte, .bf-arche { width: 84px; height: 104px; } .bf-polaroid { width: 88px; height: 104px; padding: 5px 5px 18px; }
  .bf-carton { width: 104px; height: 104px; } .bf-carton .cube { left: 16px; top: 22px; width: 64px; height: 64px; }
  .bf-carton .c-front { transform: translateZ(32px); } .bf-carton .c-side { transform: rotateY(90deg) translateZ(32px); } .bf-carton .c-top { transform: rotateX(90deg) translateZ(32px); }
  .bf-camion { width: 128px; height: 82px; }
}
@media (min-width: 900px) { .bf { width: 180px; height: 180px; } .bf-carte, .bf-arche { width: 160px; height: 196px; } .bf-camion { width: 240px; height: 153px; } }

/* Couleur choisie pour une bannière (sinon : alternance vert / jaune) */
.slide.bc-vert { background: radial-gradient(circle at 85% 30%, #2E8A57 0, #1B5E3A 45%, #123F27 100%); color: var(--cream, #F7F8F3); }
.slide.bc-jaune { background: radial-gradient(circle at 85% 30%, #F7C463 0, #F3AA33 40%, #D98E1A 100%); color: var(--ink, #1F2A24); }
.slide.bc-rouge { background: radial-gradient(circle at 85% 30%, #E8574F 0, #C8322B 45%, #8E1F1A 100%); color: #fff; }
.slide.bc-blanc { background: radial-gradient(circle at 85% 30%, #FFFFFF 0, #F7F8F3 55%, #E8EDE6 100%); color: var(--ink, #1F2A24); box-shadow: inset 0 0 0 1px var(--line, #E6EAE3); }
.slide.bc-vert .slide-badge, .slide.bc-rouge .slide-badge { background: var(--gold, #F3AA33); color: var(--ink, #1F2A24); }
.slide.bc-jaune .slide-badge, .slide.bc-blanc .slide-badge { background: var(--green, #1B5E3A); color: var(--cream, #F7F8F3); }
.slide.bc-vert .slide-cta, .slide.bc-rouge .slide-cta { background: var(--gold, #F3AA33); color: var(--ink, #1F2A24); }
.slide.bc-jaune .slide-cta, .slide.bc-blanc .slide-cta { background: var(--green, #1B5E3A); color: var(--cream, #F7F8F3); }
.slide.bc-blanc .slide-sub { color: var(--ink-2, #5B6660); }
.slide.bc-jaune::before, .slide.bc-blanc::before { filter: brightness(.25); opacity: .1; }
.slide.bc-vert::before, .slide.bc-rouge::before { filter: none; }

/* « Vendu par … » et vitrine du vendeur */
.sold-by { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 12.5px; color: var(--ink-2); text-decoration: none; background: var(--green-25, #E3EEE7); border-radius: 999px; padding: 5px 10px; }
.sold-by b { color: var(--green); }
.sold-by .cert { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; }
.shop-ava { width: 56px; height: 56px; flex: none; border-radius: 16px; background: linear-gradient(145deg, #2E8A57, #1B5E3A); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--title); font-weight: 800; font-size: 24px; }

/* Badge « Populaire » (vraies commandes des 7 derniers jours) */
.badge-hot { background: #FFE4DC; color: #B4381E; font-weight: 700; }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 4px; }
[data-theme="dark"] .badge-hot { background: rgba(232,87,79,.2); color: #FF9C88; }

/* Tableau de bord vendeur : petites barres des ventes par jour */
.sd-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.sd-bars span { flex: 1; background: linear-gradient(180deg, var(--gold, #F3AA33), #E8962A); border-radius: 4px 4px 1px 1px; min-height: 3px; }

/* Panneau « page » : plein écran sur téléphone, sur le côté sur ordinateur */
.overlay.side { justify-content: stretch; align-items: stretch; }
.overlay.side .sheet { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; padding-top: 0; overflow-y: auto; animation: side-in .22s ease; }
.side-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 10px 0; margin: 0 -2px 4px; background: inherit; border-bottom: 1px solid var(--line, #E6EAE3); }
.side-head b { flex: 1; font-family: var(--title); font-size: 15px; letter-spacing: .02em; }
.sp-line { width: 100%; border: 0; font: inherit; color: inherit; cursor: pointer; gap: 12px; }
@keyframes side-in { from { transform: translateX(24px); opacity: .4; } }
@media (min-width: 900px) {
  .overlay.side { flex-direction: row; justify-content: flex-end; }
  .overlay.side .sheet { width: min(560px, 100%); box-shadow: -10px 0 30px rgba(0,0,0,.15); }
}

/* Photo de boutique : jamais cliquable ni agrandie */
.shop-ava { overflow: hidden; }
.shop-ava img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-touch-callout: none; user-select: none; }
.shop-ava-edit { position: relative; cursor: pointer; flex: none; }
.shop-ava-edit .cam { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold, #F3AA33); color: var(--ink, #1F2A24); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--white, #fff); }

/* Badge « Produit Shop Express · vérifié » (vos produits : pas d'avis clients) */
.se-verified { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--green, #1B5E3A); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.se-verified.sm { padding: 2px 7px; font-size: 10px; gap: 3px; }

/* Photos du produit : glisser à gauche et à droite */
.pd-stage { position: relative; overflow: hidden; }
.pd-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pd-swipe::-webkit-scrollbar { display: none; }
.pd-swipe > .art { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.pd-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #1F2A24; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pd-nav.prev { left: 10px; } .pd-nav.next { right: 10px; }
@media (hover: hover) and (pointer: fine) { .pd-nav { display: flex; } }

/* Carte produit : bouton WhatsApp à côté du + */
.pcard .price-row { flex-wrap: wrap; }
.pcard-acts { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.pcard.mini .pcard-acts { width: 100%; justify-content: flex-end; }
.wa-quick { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.wa-quick:hover { transform: scale(1.08); }
.wa-quick:active { transform: scale(.97); }
@media (max-width: 480px) {
  .wa-quick { width: 32px; height: 32px; border-radius: 9px; }
  .wa-quick svg { width: 16px; height: 16px; }
  .pcard-acts { gap: 4px; }
}

/* Plus de connexion : écran plein au-dessus de la boutique */
.offline { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.offline-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.offline-box h2 { margin: 0; }
