/* ==========================================================================
   Les Merveilles — feuille de style
   ========================================================================== */
:root {
  --cream: #fdf9f3;
  --sand: #f6ede1;
  --beige: #ecdcc6;
  --line: #e8d9c5;
  --gold: #b0864a;
  --gold-2: #d6b47e;
  --gold-dark: #876430;
  --ink: #3e3027;
  --muted: #7f6c5d;
  --rose: #e9bfbb;
  --white: #fff;
  --danger: #b4423b;
  --ok: #4e7b52;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(94, 66, 38, .14);
  --shadow-sm: 0 4px 14px rgba(94, 66, 38, .08);
  --f-script: 'Great Vibes', 'Brush Script MT', cursive;
  --f-title: 'Bodoni Moda', 'Didot', Georgia, serif;
  --f-body: 'Jost', 'Futura', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }

/* Icônes au trait (SVG) */
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, #c39a5c, var(--gold-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(135, 100, 48, .3);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(135, 100, 48, .38); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--gold-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--danger); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Bandeau démo ---------- */
.demo-banner {
  background: var(--ink);
  color: #f3e3c6;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 243, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-moon { width: 38px; height: 38px; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--f-script); font-size: 34px; color: var(--ink); }
.logo-sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin-top: 2px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 10px 16px; font-weight: 500;
  transition: box-shadow .2s;
}
.cart-btn:hover { box-shadow: var(--shadow-sm); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 12px; display: inline-grid; place-items: center;
}
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(214, 180, 126, .28), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(233, 191, 187, .30), transparent 60%),
    linear-gradient(180deg, var(--sand), var(--cream));
  padding: 64px 0 72px;
}
.hero-star { position: absolute; color: var(--gold-2); font-size: 22px; animation: twinkle 3.5s ease-in-out infinite; }
.hero-star.s1 { top: 9%; right: 5%; }
.hero-star.s2 { top: 70%; left: 46%; font-size: 16px; animation-delay: .8s; }
.hero-star.s3 { top: 12%; left: 52%; font-size: 14px; animation-delay: 1.6s; }
.hero-star.s4 { top: 82%; left: 4%; font-size: 18px; animation-delay: 2.2s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.8) rotate(20deg); } }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.lead { font-size: 17.5px; color: var(--muted); max-width: 540px; margin: 18px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; height: 420px; }
.hero-card {
  position: absolute; width: 230px; border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow); border: 6px solid #fff;
  cursor: pointer; transition: transform .35s ease;
}
.hero-card .ph, .hero-card img { aspect-ratio: 4/5; }
.hero-card:nth-child(1) { left: 2%; top: 40px; transform: rotate(-7deg); }
.hero-card:nth-child(2) { left: 32%; top: 0; transform: rotate(3deg); z-index: 2; }
.hero-card:nth-child(3) { right: 0; top: 120px; transform: rotate(9deg); }
.hero-card:hover { transform: rotate(0) translateY(-6px) scale(1.03); z-index: 3; }

/* ---------- Trust ---------- */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: -34px; position: relative; z-index: 2;
}
.trust-item {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.trust-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--gold-dark); flex-shrink: 0; }
.trust-ic .ic { width: 21px; height: 21px; }
.trust-item strong { display: block; font-size: 14.5px; font-weight: 500; }
.trust-item small { color: var(--muted); font-size: 13px; }

/* ---------- Boutique ---------- */
.shop { padding: 72px 0 40px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-head h2, .steps h2, .custom h2 { font-size: clamp(30px, 4vw, 42px); }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; min-width: min(320px, 100%);
}
.search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; outline: 0; background: transparent; padding: 12px 0; width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 16px; font-weight: 500; font-size: 14px; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold-2); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { opacity: .55; font-weight: 600; margin-left: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp .45s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img, .card:hover .ph-icon { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--gold-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 23px; margin-bottom: 6px; }
.card-short { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 600; font-size: 18px; }
.price s, .pm-price s { color: var(--muted); font-weight: 600; font-size: .8em; margin-right: 4px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Vignette illustrée (si pas de photo) */
.ph {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 45%),
    linear-gradient(150deg, var(--a), var(--b));
  overflow: hidden;
}
.ph::after {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 12px; pointer-events: none;
}
.ph-icon { color: #fff; transition: transform .5s ease; }
.ph-icon .ic { width: clamp(56px, 8vw, 80px); height: clamp(56px, 8vw, 80px); stroke-width: 1; }
.ph-name { font-family: var(--f-title); font-style: italic; font-size: 22px; color: #fff; text-shadow: 0 1px 8px rgba(70, 45, 20, .3); padding: 0 16px; text-align: center; line-height: 1.2; }
.ph-soon { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.ph-thumb .ph-icon .ic { width: 30px; height: 30px; stroke-width: 1.3; }
.ph-thumb::after { display: none; }

/* ---------- Comment ça marche ---------- */
.steps { background: var(--sand); padding: 72px 0; margin-top: 40px; }
.steps-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps-list li { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); text-align: center; }
.step-n {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff;
  font-family: var(--f-title); font-size: 24px; font-weight: 500; margin-bottom: 12px;
}
.steps-list strong { display: block; font-family: var(--f-title); font-size: 22px; }
.steps-list p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Sur mesure ---------- */
.custom { padding: 72px 0; }
.custom-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #4a382c, #2f241d); color: #f6ead6;
  border-radius: 28px; padding: 44px 48px; position: relative; overflow: hidden;
}
.custom-card h2 { color: #fff; }
.custom-card p { color: #e1d1b8; }
.custom-card-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.atelier { margin: 0; background: rgba(255,255,255,.08); padding: 12px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.atelier .ic { width: 22px; height: 22px; color: var(--gold-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 22px; background: var(--cream); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { font-family: var(--f-script); font-size: 34px; margin: 0; line-height: 1; }
.footer-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { text-align: center; color: var(--muted); font-size: 12.5px; margin: 26px 0 0; }

/* ==========================================================================
   Overlays / modales
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(46, 34, 26, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .25s ease;
}
.overlay.open { opacity: 1; }
.modal {
  position: relative; background: var(--cream); border-radius: 26px;
  width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  box-shadow: 0 30px 80px rgba(30, 20, 10, .35);
  transform: translateY(18px) scale(.98); transition: transform .3s ease;
}
.overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 24px; line-height: 1;
  display: grid; place-items: center; transition: transform .2s;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close.static { position: static; }

/* ---------- Fiche produit ---------- */
.pm-grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.pm-media { background: var(--sand); }
.pm-media-inner { position: sticky; top: 0; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.pm-visual { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); }
.pm-visual img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: .3; } }
.pm-thumbs { display: flex; gap: 8px; margin-top: -8px; }
.pm-thumbs:empty { display: none; }
.pm-thumb {
  width: 62px; height: 62px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: #fff; opacity: .7; transition: opacity .2s, border-color .2s;
}
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumb:hover { opacity: 1; }
.pm-thumb.active { border-color: var(--gold); opacity: 1; }
.pm-preview-wrap { background: #fff; border-radius: var(--radius); padding: 14px 16px 12px; border: 1px solid var(--line); }
.pm-preview-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pm-preview {
  min-height: 150px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #fbf7f1 0 12px, #f8f1e7 12px 24px);
  padding: 16px; overflow: hidden;
}
.pm-preview-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.pm-info { padding: 34px 36px 0; }
.pm-cat { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pm-info h2 { font-size: 36px; padding-right: 40px; }
.pm-price { font-size: 24px; font-weight: 600; margin: 8px 0 10px; color: var(--gold-dark); }
.pm-desc { color: var(--muted); margin: 0 0 12px; }
.pm-includes p { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
.pm-includes ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.pm-includes li { font-size: 14.5px; padding-left: 22px; position: relative; margin: 2px 0; }
.pm-includes li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 1px; background: var(--gold); }
.pm-meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-meta li { background: var(--sand); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.pm-meta .ic { color: var(--gold-dark); }
.pm-form-title { font-size: 24px; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 14px; }

/* Champs */
.field { margin-bottom: 18px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-weight: 500; font-size: 15px; }
.field-value { font-weight: 600; color: var(--gold-dark); font-size: 14px; text-align: right; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 500; font-size: 13px; }
.help { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.error { margin: 6px 0 0; color: var(--danger); font-size: 13.5px; font-weight: 500; }
.field.has-error input[type=text], .field.has-error textarea, .field.has-error .pills, .field.has-error .swatches { border-color: var(--danger) !important; }
.field.shake { animation: shake .45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.text-wrap { position: relative; }
.field input[type=text], .field input[type=date], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input[type=text] { padding-right: 14px; }
.text-wrap:has(.counter) input[type=text] { padding-right: 62px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(214, 180, 126, .2); }
.field textarea { resize: vertical; min-height: 64px; }
.counter { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; border: 1.5px solid transparent; border-radius: 12px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-dot {
  display: block; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover .swatch-dot { transform: scale(1.08); }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--gold); }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 1.5px solid transparent; border-radius: 12px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 600; font-size: 14.5px; transition: all .15s;
}
.pill span em { font-style: normal; font-size: 12px; color: var(--gold-dark); font-weight: 600; }
.pill:hover span { border-color: var(--gold-2); }
.pill input:checked + span { border-color: var(--gold); background: #fbf2e4; box-shadow: 0 0 0 1px var(--gold) inset; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pills.font-pills .pill span { font-size: 22px; padding: 6px 18px; font-weight: 500; }
.pills.theme-pills .pill span { border-left: 5px solid var(--tc, var(--line)); border-radius: 12px; }

.check { display: flex; gap: 12px; align-items: center; cursor: pointer; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--gold); background: #fbf2e4; }

.pm-actions {
  position: sticky; bottom: 0; margin: 22px -36px 0; padding: 16px 36px 22px;
  background: linear-gradient(180deg, rgba(253,249,243,.6), var(--cream) 30%);
  display: flex; gap: 12px; align-items: center;
}
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.qty-sm button { width: 32px; height: 32px; font-size: 16px; }
.qty-sm span { min-width: 20px; font-size: 14px; }
.btn-add { flex: 1; padding: 15px 20px; font-size: 16px; }

/* ---------- Aperçus ---------- */
.pv-text { line-height: 1.1; white-space: nowrap; }
.is-placeholder { opacity: .45; }

/* Attache-tétine simili cuir */
.pv-strap { display: flex; align-items: center; width: 100%; max-width: 420px; }
.pv-ring { width: 26px; height: 26px; border-radius: 50%; border: 5px solid #c9b79f; flex-shrink: 0; margin-right: -4px; }
.pv-strap-band {
  flex: 1; height: 58px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.06)), var(--strap);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.12);
  position: relative;
}
.pv-strap-band::before { content: ''; position: absolute; inset: 6px; border: 1.5px dashed rgba(255,255,255,.5); border-radius: 6px; }
.pv-strap .pv-text { font-size: 30px; text-shadow: 0 1px 2px rgba(0,0,0,.25); position: relative; }
.pv-clip {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; margin-left: -8px;
  background: radial-gradient(circle at 35% 30%, #e8cfa8, #b98c57 70%);
  box-shadow: 0 6px 12px rgba(0,0,0,.18), inset 0 -4px 8px rgba(0,0,0,.15);
  position: relative;
}
.pv-clip::after { content: ''; position: absolute; right: -18px; top: 18px; width: 26px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, #e5e5e5, #a9a9a9); }

/* Perles */
.pm-preview { container-type: inline-size; }
.pv-beads {
  --s: min(28px, calc((100cqw - 30px) / var(--n, 16)));
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 2px; max-width: 100%;
}
.pv-woodclip { width: calc(var(--s) * 1.3); height: calc(var(--s) * 1.3); flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8cfa8, #b98c57 70%); margin-right: 3px; box-shadow: 0 4px 8px rgba(0,0,0,.15); }
.pv-bead { width: calc(var(--s) * .85); height: calc(var(--s) * .85); flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 -3px 5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.1); border: 1px solid rgba(0,0,0,.06); }
.pv-letter {
  width: var(--s); height: var(--s); flex-shrink: 0; border-radius: calc(var(--s) * .22); background: #fff; border: 1px solid #e3d9cc;
  display: grid; place-items: center; font-family: 'Fredoka', var(--f-body); font-weight: 600; font-size: calc(var(--s) * .58); color: #4a3a2e;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.08);
}
.pv-charm {
  width: calc(var(--s) * 1.4); height: calc(var(--s) * 1.4); margin-left: 3px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; color: #6b4f33;
  background: radial-gradient(circle at 35% 30%, #f1dfc2, #d2b088 75%);
  box-shadow: 0 3px 6px rgba(0,0,0,.15), inset 0 -2px 4px rgba(0,0,0,.1);
}
.pv-charm .ic { width: 72%; height: 72%; stroke-width: 1.6; }

/* Mug */
.pv-mug { display: flex; align-items: center; margin-top: 12px; }
.pv-mug-cup {
  position: relative; width: 160px; height: 122px; border-radius: 10px 10px 34px 34px;
  background: linear-gradient(90deg, #ececec, #ffffff 30%, #ffffff 65%, #e2e2e2);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-top: 14px;
}
.pv-mug-rim { position: absolute; top: -8px; left: 0; right: 0; height: 18px; border-radius: 50%; background: var(--inside); border: 4px solid #f3f3f3; }
.pv-mug-motif { color: #3e3027; line-height: 0; }
.pv-mug-motif .ic { width: 24px; height: 24px; }
.pv-mug .pv-text { font-size: 30px; color: #3e3027; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.pv-mug-handle { width: 40px; height: 64px; border: 12px solid #ececec; border-left: 0; border-radius: 0 40px 40px 0; margin-left: -4px; }
.pv-back { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-style: italic; text-align: center; }

/* Tissu brodé */
.pv-fabric {
  width: 100%; max-width: 420px; min-height: 140px; border-radius: 12px;
  display: grid; place-items: center; padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 6px 14px rgba(0,0,0,.08);
}
.pv-label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; border-radius: 14px; position: relative; }
.pv-label.patch { box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.pv-label.patch::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(255,255,255,.65); border-radius: 10px; }
.pv-fabric .pv-text { font-size: 36px; text-shadow: 0 1px 1px rgba(0,0,0,.25), 0 0 1px rgba(0,0,0,.35); position: relative; }
.pv-motif { position: relative; line-height: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.pv-motif .ic { width: 28px; height: 28px; stroke-width: 1.7; }
.pv-sub { font-size: 14px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); position: relative; }

/* Coffret */
.pv-box { width: min(260px, 100%); position: relative; }
.pv-box-inner {
  height: 70px; border-radius: 12px 12px 0 0; background: #f4e9da;
  display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; justify-content: center; gap: 4px; padding: 8px 10px 6px;
  box-shadow: inset 0 8px 14px rgba(0,0,0,.1);
}
.pv-box-inner span {
  background: #fff; border: 1px solid #e6d6bf; border-radius: 999px; padding: 2px 9px;
  font-size: 11.5px; color: var(--muted); white-space: nowrap;
}
.pv-box-front {
  height: 92px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, var(--box), color-mix(in srgb, var(--box), #000 18%));
  position: relative; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.pv-ribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%); background: rgba(255,255,255,.35); }
.pv-tag {
  position: relative; background: #fffaf2; border-radius: 999px; padding: 4px 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,.2); border: 1px solid #ead9bf;
}
.pv-tag .pv-text { font-size: 28px; color: var(--ink); }
.pv-theme { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* ---------- Panier (tiroir) ---------- */
#cartOverlay { justify-content: flex-end; padding: 0; }
.drawer {
  background: var(--cream); width: min(440px, 100%); height: 100%;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(30,20,10,.25);
  transform: translateX(100%); transition: transform .3s ease;
}
.overlay.open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.ship-progress { padding: 12px 22px; font-size: 13.5px; background: var(--sand); }
.ship-progress:empty { display: none; }
.bar { height: 6px; border-radius: 999px; background: #fff; margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: inherit; transition: width .4s ease; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-top strong { font-size: 15px; }
.line-top span { font-weight: 600; white-space: nowrap; }
.line-opts { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.line-opts li span { color: var(--ink); font-weight: 600; }
.line-actions { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 22px; background: #fff; }
.drawer-foot:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; margin: 4px 0; }
.sum-row.total { font-size: 19px; font-weight: 600; margin-top: 8px; }
.sum-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .big { display: block; margin-bottom: 8px; color: var(--gold); }
.cart-empty .big .ic { width: 48px; height: 48px; stroke-width: 1.1; }

/* ---------- Commande ---------- */
.checkout-modal { width: min(1000px, 100%); }
.co-grid { display: grid; grid-template-columns: 1.25fr 1fr; }
.co-form { padding: 34px 36px; }
.co-form h2 { font-size: 34px; margin-bottom: 4px; }
.co-form h3 { font-size: 22px; margin: 24px 0 12px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row .field { margin-bottom: 12px; }
.co-form .field-label { font-size: 14px; margin-bottom: 6px; }
.choice-card {
  display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; margin-bottom: 8px;
}
.choice-card input { accent-color: var(--gold); width: 18px; height: 18px; }
.choice-card:has(input:checked) { border-color: var(--gold); background: #fbf2e4; }
.choice-card .cc-main { flex: 1; }
.choice-card strong { display: block; font-size: 14.5px; }
.choice-card small { color: var(--muted); }
.choice-card .cc-price { font-weight: 600; }
.legal { font-size: 13px; align-items: flex-start; }
.legal input { margin-top: 2px; }
.co-side { background: var(--sand); padding: 34px 28px; }
.co-side h3 { font-size: 24px; margin-bottom: 10px; }
.co-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-line ul { list-style: none; padding: 0; margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.co-line b { white-space: nowrap; }
.pay-note { font-size: 12.5px; color: var(--muted); background: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 14px; }

.confirm { padding: 50px 40px; text-align: center; max-width: 720px; margin: 0 auto; }
.confirm-icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff;
  display: grid; place-items: center; font-size: 38px; box-shadow: 0 10px 24px rgba(135,100,48,.3);
  animation: pop .5s ease;
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.confirm h2 { font-size: 40px; }
.confirm .order-num { display: inline-block; background: var(--sand); padding: 6px 14px; border-radius: 999px; font-weight: 600; margin: 10px 0 18px; letter-spacing: .04em; }
.confirm-recap { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 22px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Espace créatrice ---------- */
.admin-modal { width: min(900px, 100%); padding: 34px 36px; }
.admin-modal h2 { font-size: 34px; }
.admin-intro { color: var(--muted); margin: 6px 0 20px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.order-head strong { font-size: 17px; }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff3d6; color: #8a6114; }
.order-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.order-lines { margin: 0; padding: 0; list-style: none; }
.order-lines > li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.order-lines > li:first-child { border-top: 0; }
.order-lines ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.order-total { text-align: right; font-weight: 600; margin-top: 8px; }
.admin-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translate(-50%, calc(100% + 60px)); transition: transform .35s ease, visibility .35s;
  visibility: hidden;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 14px 12px 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: var(--gold); border: 0; color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 500; white-space: nowrap; }

/* ==========================================================================
   Éléments propres au mobile (masqués sur PC)
   ========================================================================== */
.only-mobile { display: none; }
.pm-topbar, .pm-carousel-wrap, .mobile-cart-bar { display: none; }
.co-recap summary { display: none; }
.card-btn .ic { width: 15px; height: 15px; }
.field input, .field select, .field textarea, .search input { font-size: 16px; }

/* Catégories collantes sous l'en-tête (PC et mobile) */
.chips {
  position: sticky; top: 76px; z-index: 30;
  padding: 10px 0; margin-bottom: 18px;
  background: rgba(253, 249, 243, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   Tablette (≤ 980 px)
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 300px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-card { width: 170px; }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .custom-card { grid-template-columns: 1fr; padding: 34px 28px; }
  .pm-info { padding: 30px 26px 0; }
  .pm-actions { margin: 22px -26px 0; padding: 14px 26px 18px; flex-wrap: wrap; }
  .chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* ==========================================================================
   Mobile (≤ 760 px) : mise en page dédiée
   ========================================================================== */
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  body { font-size: 15px; }
  html { scroll-padding-top: 120px; }

  /* En-tête */
  .demo-banner { font-size: 11.5px; padding: 5px 12px; }
  .header-inner { height: 58px; gap: 10px; }
  .logo { gap: 8px; }
  .logo-moon { width: 28px; height: 28px; }
  .logo-name { font-size: 26px; }
  .logo-sub { font-size: 8.5px; letter-spacing: .16em; }
  .cart-btn { padding: 8px 12px; }
  .cart-label { display: none; }

  /* Accueil compact : les produits arrivent vite */
  .hero { padding: 24px 0 26px; }
  .hero-inner { gap: 0; }
  .hero-art { display: none; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15px; margin: 10px 0 18px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cta .btn { padding: 12px 8px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; }

  .trust { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 0; }
  .trust-item { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; box-shadow: none; }
  .trust-ic { width: 36px; height: 36px; }
  .trust-ic .ic { width: 18px; height: 18px; }
  .trust-item strong { font-size: 12px; line-height: 1.25; }
  .trust-item small { display: none; }

  /* Boutique */
  .shop { padding: 26px 0 20px; }
  .shop-head { margin-bottom: 10px; gap: 12px; }
  .shop-head h2 { font-size: 28px; }
  .search { width: 100%; min-width: 0; }
  .search input { padding: 11px 0; }
  .chips {
    top: 58px; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 -16px 14px; padding: 10px 16px; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; padding: 8px 14px; font-size: 13.5px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 14px; }
  .card:hover { transform: none; box-shadow: none; }
  .card:hover .card-media img, .card:hover .ph-icon { transform: none; }
  .badge { top: 8px; left: 8px; font-size: 10.5px; padding: 3px 8px; }
  .card-body { padding: 10px 10px 12px; }
  .card-cat, .card-short { display: none; }
  .card h3 {
    font-size: 15.5px; line-height: 1.25; margin-bottom: 8px; min-height: 2.5em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-foot { flex-direction: row; align-items: center; }
  .price { font-size: 15px; line-height: 1.2; }
  .price s { display: block; font-size: 11px; }
  .card-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; flex-shrink: 0; }
  .card-btn span { display: none; }
  .card-btn .ic { width: 17px; height: 17px; }
  .ph-name { font-size: 15px; }
  .ph-soon { font-size: 9px; }
  .ph-icon .ic { width: 42px; height: 42px; }

  /* Comment ça marche / Sur mesure / pied de page */
  .steps { padding: 38px 0; margin-top: 16px; }
  .steps h2, .custom h2 { font-size: 26px; }
  .steps-list { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .steps-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; text-align: left; padding: 14px; align-items: center; }
  .step-n { grid-row: span 2; width: 38px; height: 38px; font-size: 18px; margin: 0; }
  .steps-list strong { font-size: 16px; }
  .steps-list p { margin: 0; font-size: 13.5px; }
  .custom { padding: 34px 0; }
  .custom-card { padding: 26px 20px; border-radius: 20px; gap: 18px; }
  .custom-card-side .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px 18px; }
  body.has-cart .site-footer { padding-bottom: 96px; }

  /* Barre panier flottante (zone du pouce) */
  .mobile-cart-bar:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 14px 18px; border: 0; border-radius: 16px;
    background: var(--ink); color: #fff; font-size: 14.5px;
    box-shadow: 0 12px 30px rgba(40, 28, 20, .35);
    animation: slideUp .3s ease;
  }
  @keyframes slideUp { from { transform: translateY(120%); } }
  body.locked .mobile-cart-bar { display: none !important; }
  .mcb-left { display: flex; gap: 8px; align-items: center; opacity: .85; }
  .mcb-right strong { color: var(--gold-2); font-weight: 600; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); width: max-content; }
  body.has-cart:not(.locked) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Fenêtres : plein écran */
  .overlay { padding: 0; align-items: stretch; }
  .modal { width: 100%; height: 100%; height: 100dvh; max-height: none; border-radius: 0; }

  /* ---- Fiche produit plein écran ---- */
  .product-modal > .modal-close { display: none; }
  .pm-topbar {
    display: flex; position: sticky; top: 0; z-index: 6; height: 52px; align-items: center; gap: 4px; padding: 0 8px;
    background: rgba(253, 249, 243, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .pm-back { width: 42px; height: 42px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
  .pm-back:active { background: var(--sand); }
  .pm-back .ic { width: 24px; height: 24px; }
  .pm-topbar-title { font-family: var(--f-title); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }

  .pm-grid { display: flex; flex-direction: column; }
  .pm-media, .pm-media-inner, .pm-info { display: contents; }
  .pm-visual, .pm-thumbs { display: none !important; }

  .pm-carousel-wrap { display: block; order: 1; position: relative; background: var(--sand); }
  .pm-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pm-carousel::-webkit-scrollbar { display: none; }
  .pm-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; max-height: 50vh; overflow: hidden; }
  .pm-slide img { width: 100%; height: 100%; object-fit: cover; }
  .pm-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
  .pm-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .2s; }
  .pm-dots span.on { background: #fff; width: 18px; }

  .pm-head { order: 2; padding: 16px 16px 2px; }
  .pm-info h2 { font-size: 26px; padding-right: 0; }
  .pm-price { font-size: 20px; margin: 4px 0 0; }
  .pm-details { order: 3; padding: 8px 16px 0; }
  .pm-desc { font-size: 14.5px; }
  .pm-meta { margin-bottom: 4px; }

  .pm-preview-wrap {
    order: 4; position: sticky; top: 52px; z-index: 5; margin-top: 8px;
    border-radius: 0; border-left: 0; border-right: 0; padding: 8px 16px 10px;
    box-shadow: 0 8px 14px rgba(60, 40, 20, .07);
  }
  .pm-preview-title { margin-bottom: 6px; font-size: 10.5px; }
  .pm-preview { min-height: 92px; padding: 8px; }
  .pm-preview-note { display: none; }
  .pv-strap .pv-text { font-size: 24px; }
  .pv-strap-band { height: 50px; }
  .pv-clip { width: 46px; height: 46px; }
  .pv-mug { transform: scale(.74); margin: -14px 0 -18px; }
  .pv-box { transform: scale(.8); margin: -16px 0; }
  .pv-fabric { min-height: 88px; padding: 10px; }
  .pv-fabric .pv-text { font-size: 30px; }

  #pmForm { order: 5; padding: 0 16px; }
  .pm-form-title { font-size: 21px; padding-top: 18px; border-top: 0; }
  .swatch-dot { width: 42px; height: 42px; }
  .pill span { padding: 10px 14px; }
  .pm-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253, 249, 243, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 16px rgba(60, 40, 20, .06);
  }
  #pmForm { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .btn-add { font-size: 15px; padding: 12px 10px; min-width: 0; white-space: normal; line-height: 1.2; }

  /* ---- Panier ---- */
  .drawer { width: 100%; height: 100%; height: 100dvh; }
  .drawer-head { padding: 12px 16px 10px; }
  .drawer-head h2 { font-size: 24px; }
  .ship-progress { padding: 10px 16px; }
  .drawer-body { padding: 4px 16px; }
  .line { grid-template-columns: 64px 1fr; gap: 12px; }
  .line-thumb { width: 64px; height: 64px; }
  .line-actions { gap: 16px; flex-wrap: wrap; }
  .qty-sm button { width: 38px; height: 38px; }
  .line-actions .link { min-height: 40px; padding: 0 6px; display: inline-flex; align-items: center; }
  .drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }

  /* ---- Commande ---- */
  .checkout-modal > .modal-close { display: none; }
  .co-grid { display: flex; flex-direction: column; }
  .co-side { order: -1; padding: 0; border-bottom: 1px solid var(--line); }
  .co-recap summary {
    display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer;
    list-style: none; font-weight: 500; font-size: 14.5px;
  }
  .co-recap summary::-webkit-details-marker { display: none; }
  .co-recap summary strong { margin-left: auto; font-weight: 600; }
  .co-recap summary .ic { transition: transform .2s; color: var(--gold-dark); }
  .co-recap[open] summary .ic { transform: rotate(180deg); }
  .co-recap h3 { display: none; }
  .co-recap #coRecap { padding: 0 16px 14px; }
  .co-form { padding: 18px 16px 0; }
  .co-form h2 { font-size: 26px; }
  .co-row { grid-template-columns: 1fr; gap: 0; }
  #coSubmit { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 6px 0 16px; box-shadow: 0 10px 24px rgba(135, 100, 48, .35); }

  .admin-modal { padding: 24px 16px; }
  .confirm { padding: 40px 18px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 27px; }
  .grid { gap: 10px; }
  .card h3 { font-size: 14.5px; }
  .trust-item strong { font-size: 11px; }
}
/* Pas d'animation d'apparition des cartes sur mobile, ni pour qui préfère moins d'animations */
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px), (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
/* Mobile : la barre panier fait déjà office de raccourci, on allège la notification */
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  body.has-cart .toast:not(.keep-action) button { display: none; }
  .toast { padding: 12px 18px; font-size: 14px; }
}
/* PC avec écran peu haut (portables) : photo moins haute pour garder l'aperçu visible */
@media (min-width: 761px) and (min-height: 521px) and (max-height: 900px), (min-width: 761px) and (max-height: 900px) and (pointer: fine) {
  .pm-visual { aspect-ratio: auto; height: clamp(140px, calc(100vh - 48px - 420px), 420px); }
  .pm-thumb { width: 48px; height: 48px; }
  .pm-media-inner { padding: 20px; gap: 14px; }
  .pm-preview { min-height: 130px; }
}
/* ==========================================================================
   Ajustements issus de la revue
   ========================================================================== */
/* Zones de sécurité (encoche) en paysage */
.container { width: min(1180px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
.overlay { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
#cartOverlay { padding-left: 0; padding-right: 0; }
.drawer-head, .ship-progress, .drawer-body, .drawer-foot { padding-right: max(22px, env(safe-area-inset-right)); }

/* Champs date iOS alignés sur les autres champs */
.field input[type=date] { -webkit-appearance: none; appearance: none; min-height: 48px; text-align: left; }
.field input[type=date]::-webkit-date-and-time-value { text-align: left; }

/* Barre du haut de la commande : masquée sur PC comme celle de la fiche */
.co-topbar { display: none; }

@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  .overlay { padding-left: 0; padding-right: 0; }
  .drawer-head, .ship-progress, .drawer-body { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .drawer-foot { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .pm-topbar, .pm-actions { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .mobile-cart-bar:not([hidden]) { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
  .co-topbar { display: flex; }
}
/* Téléphone en paysage : en-tête non collant pour garder de la hauteur utile */
@media (pointer: coarse) and (max-height: 520px) {
  .site-header { position: static; }
  .chips { top: 0; }
  .pm-slide { max-height: 70vh; }
}@media (pointer: coarse) and (max-height: 520px) and (min-width: 600px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* ---------- Aperçu sur la vraie photo du produit ---------- */
.pv-photo {
  --ph: 250px;
  position: relative; width: min(100%, calc(var(--ph) * var(--r))); aspect-ratio: var(--r);
  border-radius: 10px; overflow: hidden; container-type: inline-size;
  box-shadow: 0 6px 16px rgba(60, 40, 20, .14);
}
.pv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.pv-tint { position: absolute; inset: 0; mix-blend-mode: color; opacity: .9; pointer-events: none; }
.pv-zone { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .6cqw; text-align: center; pointer-events: none; }
.pv-zone .pv-text { white-space: nowrap; line-height: 1.05; }
.pv-photo.is-brode .pv-text { letter-spacing: .01em; }
.pv-zone .pv-motif { line-height: 0; filter: none; }
.pv-zone .pv-motif .ic { width: 7cqw; height: 7cqw; stroke-width: 1.8; }
.pv-zone .pv-sub { font-size: 4.6cqw; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  .pv-photo { --ph: 128px; }
}
/* Mobile : aperçu photo un peu plus grand, et en grand d'un appui */
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  .pv-photo { --ph: 158px; }
  .pm-preview { cursor: zoom-in; }
  .pm-preview-wrap.zoomed .pv-photo { --ph: 320px; }
  .pm-preview-wrap.zoomed .pm-preview { cursor: zoom-out; }
  .pm-preview-wrap .pm-preview-title::after { content: ' · toucher pour agrandir'; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
  .pm-preview-wrap.zoomed .pm-preview-title::after { content: ' · toucher pour réduire'; }
}
/* ==========================================================================
   Thème Noël (activé depuis l'admin : Réglages → Thème saisonnier)
   ========================================================================== */
.only-noel, .noel-block { display: none; }
body.theme-noel .only-noel { display: inline; }
body.theme-noel .noel-block { display: block; }
body.theme-noel .hide-noel { display: none; }
body.theme-noel .hero-cta.noel-block { display: flex; }

:root { --noel-green: #22392d; --noel-green-2: #2f4d3c; --noel-red: #9e2b2c; }

/* Bandeau */
.noel-banner { background: var(--noel-green); color: #f4ead8; font-size: 13.5px; }
.noel-banner-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; text-align: center; }
.noel-banner .ic { color: var(--gold-2); width: 16px; height: 16px; }
.noel-banner strong { color: #fff; font-weight: 600; }
.noel-count { background: var(--noel-red); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }

/* Haut de page festif */
body.theme-noel .hero {
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(214, 180, 126, .22), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(158, 43, 44, .35), transparent 60%),
    linear-gradient(160deg, var(--noel-green-2), var(--noel-green));
  color: #f6ecdb;
}
body.theme-noel .hero-inner { position: relative; z-index: 1; }
body.theme-noel .hero .eyebrow { color: var(--gold-2); }
body.theme-noel .hero h1 { color: #fff; }
body.theme-noel .hero h1 em { color: var(--gold-2); }
body.theme-noel .hero .lead { color: #e2d6c2; }
body.theme-noel .hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
body.theme-noel .hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
body.theme-noel .hero-card { border-color: #f6ecdb; }

/* Neige légère (désactivée si l'utilisateur préfère moins d'animations) */
body.theme-noel .hero::before, body.theme-noel .hero::after {
  content: ''; position: absolute; inset: -220px 0 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 22px 34px, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 96px 140px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 160px 60px, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 190px 180px, rgba(255,255,255,.7) 50%, transparent 51%);
  background-size: 220px 220px;
  animation: noelSnow 16s linear infinite;
  opacity: .75;
}
body.theme-noel .hero::after { background-size: 330px 330px; animation-duration: 26s; opacity: .5; }
@keyframes noelSnow { to { transform: translateY(220px); } }
@media (prefers-reduced-motion: reduce) { body.theme-noel .hero::before { animation-duration: 40s; } body.theme-noel .hero::after { animation-duration: 64s; } }

/* Sélection de Noël */
.noel-select { padding: 64px 0 8px; background: linear-gradient(180deg, #fbf1ea, var(--cream) 70%); }
.noel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.noel-head h2 { font-size: clamp(30px, 4vw, 42px); }
.noel-head .eyebrow { color: var(--noel-red); }
.noel-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; background: #fff; border: 1px solid #ecd3cc; color: var(--noel-red); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.noel-note .ic { width: 16px; height: 16px; }
.noel-note strong { font-weight: 600; }
.noel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.badge.badge-noel { background: var(--noel-red); color: #fff; }

@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  .noel-banner { font-size: 12px; }
  .noel-banner-inner { padding: 6px 0; gap: 8px; }
  body.theme-noel .hero-cta.noel-block { display: grid; }
  .noel-select { padding: 30px 0 4px; }
  .noel-head { margin-bottom: 14px; }
  .noel-head h2 { font-size: 28px; }
  .noel-note { font-size: 12.5px; padding: 6px 12px; }
  /* Sélection en défilement horizontal sur téléphone */
  .noel-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -16px; padding: 2px 16px 14px; scrollbar-width: none;
  }
  .noel-grid::-webkit-scrollbar { display: none; }
  .noel-grid .card { flex: 0 0 46%; scroll-snap-align: start; }
}

/* ---------- Thème Noël : arrivée sur le site (une fois par visite) ---------- */
.noel-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 300; pointer-events: none; }

/* Titre doré permanent, avec un reflet qui le traverse à l'arrivée */
body.theme-noel .hero h1 em {
  background: linear-gradient(100deg, #d6b47e 0%, #d6b47e 40%, #fff3d4 50%, #d6b47e 60%, #d6b47e 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
body.noel-intro .hero h1 em { animation: noelShimmer 1.6s .9s ease-in-out both; }
@keyframes noelShimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* Texte qui monte en fondu */
body.noel-intro .hero .eyebrow { animation: noelRise .7s .1s ease both; }
body.noel-intro .hero h1 { animation: noelRise .8s .25s ease both; }
body.noel-intro .hero .lead { animation: noelRise .8s .45s ease both; }
body.noel-intro .hero-cta { animation: noelRise .8s .6s ease both; }
@keyframes noelRise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* Les coffrets tombent comme des cadeaux, avec un petit rebond */
body.noel-intro .hero-card { animation: noelGiftDrop 1s cubic-bezier(.2, .8, .3, 1.15) both; }
body.noel-intro .hero-card:nth-child(1) { animation-delay: .35s; }
body.noel-intro .hero-card:nth-child(2) { animation-delay: .55s; }
body.noel-intro .hero-card:nth-child(3) { animation-delay: .75s; }
@keyframes noelGiftDrop {
  0% { opacity: 0; translate: 0 -160px; rotate: -12deg; }
  60% { opacity: 1; translate: 0 10px; rotate: 3deg; }
  80% { translate: 0 -4px; rotate: -1deg; }
  100% { opacity: 1; translate: 0 0; rotate: 0deg; }
}

/* Le bouton principal s'illumine une fois */
body.noel-intro .hero .btn-primary { animation: noelGlow 1.4s 1.6s ease both; }
@keyframes noelGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(135, 100, 48, .3); }
  50% { box-shadow: 0 0 0 6px rgba(214, 180, 126, .28), 0 0 34px rgba(255, 220, 150, .6); }
}

/* Le compte à rebours pulse */
body.noel-intro .noel-count { animation: noelPulse .9s 1.2s ease 2; }
@keyframes noelPulse { 50% { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(158, 43, 44, .25); } }

/* Version douce (appareil réglé sur « réduire les animations ») : fondus au lieu de mouvements */
body.noel-intro-doux.noel-intro .hero .eyebrow,
body.noel-intro-doux.noel-intro .hero h1,
body.noel-intro-doux.noel-intro .hero .lead,
body.noel-intro-doux.noel-intro .hero-cta,
body.noel-intro-doux.noel-intro .hero-card { animation-name: noelFade; animation-timing-function: ease; }
body.noel-intro-doux.noel-intro .noel-count,
body.noel-intro-doux.noel-intro .hero .btn-primary { animation: none; }
@keyframes noelFade { from { opacity: 0; } to { opacity: 1; } }
