:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f2433;
  --ink-2: #4b5060;
  --muted: #878a95;
  --line: #ece4d8;
  --line-strong: #dccfbd;
  --accent: #d0553a;
  --accent-dark: #b4432b;
  --accent-soft: #fbe6df;
  --blush: #f8e2da;
  --sage: #e3ebdc;
  --sky: #dfe9f2;
  --butter: #f8eecf;
  --lilac: #ebe5f2;
  --sand: #f2e9dc;
  --ok: #2f6b4f;
  --ok-soft: #e3f0e8;
  --danger: #b42318;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 36, 51, .04), 0 10px 30px rgba(31, 36, 51, .07);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Bandeau + en-tête ---------- */
.announce { background: var(--ink); color: #f5efe6; font-size: 13px; text-align: center; padding: 8px 16px; letter-spacing: .01em; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 241, .93); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.logo-mark { width: 32px; height: 32px; }
.logo-word { font: 600 25px/1 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 100; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.nav { display: none; gap: 24px; margin-inline-start: 36px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--ink); }
.nav .nav-promo { color: var(--accent); }
@media (min-width: 1000px) { .nav { display: flex; } }
.header-actions { margin-inline-start: auto; display: flex; gap: 2px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; position: relative; color: var(--ink); }
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 23px; height: 23px; }
.cart-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: none; place-items: center; line-height: 18px; }
.cart-count.on { display: grid; }
.menu-btn { display: inline-grid; margin-inline-start: -8px; }
@media (min-width: 1000px) { .menu-btn { display: none; } }
@media (max-width: 380px) { .logo-word { font-size: 22px; } .logo-mark { width: 28px; height: 28px; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 15.5px; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 19px; height: 19px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; border: 0; border-bottom: 2px solid currentColor; padding: 0 0 2px; background: none; }

/* ---------- Titres ---------- */
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.display { font: 560 clamp(38px, 6.4vw, 70px)/1.02 var(--font-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.03em; margin: 0; }
.display em, .h2 em { font-style: italic; font-weight: 450; color: var(--accent); }
.h2 { font: 560 clamp(28px, 4vw, 42px)/1.08 var(--font-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.025em; margin: 0; }
.lead { font-size: 17.5px; color: var(--ink-2); max-width: 34em; margin: 0; }
.section { padding: 56px 0; }
.section-tight { padding: 28px 0; }
@media (min-width: 768px) { .section { padding: 84px 0; } .section-tight { padding: 40px 0; } }
.section-soft { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

/* ---------- Accueil ---------- */
.hero { position: relative; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-inner { position: relative; }
.hero-card { background: var(--bg); padding: 28px 0 8px; }
.hero-card .lead { margin-top: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (min-width: 768px) {
  .hero { min-height: 640px; display: flex; align-items: center; overflow: hidden; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { height: 100%; aspect-ratio: auto; }
  .hero-card { max-width: 560px; padding: 40px 42px; border-radius: 26px; background: rgba(251, 247, 241, .94); box-shadow: var(--shadow); margin: 56px 0; }
}
.universes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .universes { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.universe { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.universe img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.universe:hover img { transform: scale(1.04); }
.universe span { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 11px 14px; }
.universe b { font: 600 20px/1 var(--font-display); font-variation-settings: 'SOFT' 100; }
.universe small { font-size: 12.5px; color: var(--muted); font-weight: 700; text-align: end; }
@media (max-width: 420px) { .universe span { flex-direction: column; align-items: flex-start; gap: 3px; } .universe small { text-align: start; } }

.sizefinder { display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px 20px; }
@media (min-width: 900px) { .sizefinder { grid-template-columns: 1fr 1.25fr; padding: 44px; align-items: center; gap: 48px; } }
.sizefinder .lead { margin: 14px 0 18px; }
.sizefinder-grid { display: grid; gap: 18px; }
.sizefinder-grid h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.age-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.age-chip { display: inline-grid; place-items: center; min-width: 74px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--bg); font-weight: 800; font-size: 14.5px; transition: all .15s; }
.age-chip small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); line-height: 1; }
.age-chip:hover { border-color: var(--ink); background: var(--surface); }
.age-chip.none { opacity: .45; pointer-events: none; }

.story { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.story-media img { width: 100%; border-radius: 26px; aspect-ratio: 4 / 3; object-fit: cover; }
.story-copy .h2 { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps b { display: block; font-size: 16.5px; }
.steps span:not(.step-num) { color: var(--ink-2); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 18px/1 var(--font-display); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 44%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .rail { grid-auto-columns: calc(25% - 11px); margin: 0; padding-inline: 0; } }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; justify-content: center; }

.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.promise svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 6px; }
.promise b { font-size: 15.5px; }
.promise span { color: var(--ink-2); font-size: 14px; }
.faq-wrap { max-width: 860px; }
.faq-wrap .h2 { margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 16.5px; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--font-display); color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- Cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 36px 20px; } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .3s ease, transform .5s ease; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card-media:hover .alt { opacity: 1; } .card-media:hover img:only-of-type { transform: scale(1.03); } }
.card-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-out { background: rgba(255, 255, 255, .92); color: var(--muted); }
.card-body { padding: 12px 2px 0; display: grid; gap: 4px; }
.card-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); display: inline-block; }
.price { font-weight: 800; font-size: 15.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price s { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.price .now-sale { color: var(--accent); }

/* ---------- Boutique ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 30px 0 16px; }
.shop-count { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.select-wrap select { height: 44px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0 16px; background: var(--surface); font-weight: 700; font-size: 14px; }
.filters { display: grid; gap: 10px; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; } }
.chip { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-sm .chip { height: 34px; padding: 0 12px; font-size: 13px; }
.filter-size { display: grid; gap: 6px; }
.filter-size > span { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }
.empty p { margin: 0; }

/* ---------- Fiche produit ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 16px 0; white-space: nowrap; overflow: hidden; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.pdp { display: grid; gap: 22px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: 84px; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 960px) { .gallery { grid-template-columns: 76px 1fr; } }
.gallery-stage { position: relative; min-width: 0; }
.gallery-main { direction: ltr; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--sand); margin: 0 -16px; }
@media (min-width: 768px) { .gallery-main { margin: 0; } }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.gallery-dots i.on { background: #fff; width: 18px; border-radius: 4px; }
.gallery-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
@media (max-width: 767px) { .gallery-badges { inset-inline-start: -4px; } }
.gallery-thumbs { display: none; }
@media (min-width: 960px) { .gallery-thumbs { display: grid; gap: 10px; align-content: start; } .gallery-dots { display: none; } }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--sand); }
.gallery-thumbs button[aria-current='true'] { border-color: var(--ink); }
.gallery-thumbs img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pdp-title { font: 560 clamp(28px, 3.6vw, 40px)/1.1 var(--font-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.02em; margin: 0; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-price strong { font-size: 26px; font-weight: 800; }
.pdp-price s { color: var(--muted); font-size: 17px; }
.pdp-price .save { background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 999px; }
.pdp-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.opt { margin-top: 24px; }
.opt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14.5px; color: var(--ink-2); }
.opt-head b { color: var(--ink); }
.opt-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.opt-link svg { width: 17px; height: 17px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--line-strong); padding: 0; position: relative; }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink); }
.swatch.out::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--ink-2); transform: rotate(45deg); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.size { height: 48px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 14px; position: relative; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.size:disabled { color: #b9b3aa; background: transparent; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.size .few { position: absolute; top: -7px; inset-inline-end: -5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.stock-hint { margin: 10px 0 0; font-size: 14px; font-weight: 700; min-height: 1.4em; }
.stock-hint.low { color: var(--accent-dark); }
.stock-hint.need { color: var(--danger); }
.buy-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-grow { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; }
.order-box { margin-top: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px 18px; scroll-margin-top: 90px; }
@media (min-width: 768px) { .order-box { padding: 26px; } }
.order-box h3 { margin: 0; font: 600 23px/1.2 var(--font-display); font-variation-settings: 'SOFT' 100; }
.order-box > p { margin: 6px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 400px) { .form-grid.two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 50px; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 0 14px; background: #fff; outline: none; width: 100%; font-size: 16px; }
.field textarea { height: 80px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 36, 51, .08); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.delivery-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-choice label { display: grid; gap: 2px; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 11px 13px; cursor: pointer; position: relative; background: #fff; }
.delivery-choice input { position: absolute; opacity: 0; }
.delivery-choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.delivery-choice b { font-size: 14.5px; }
.delivery-choice span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.summary { margin: 16px 0 12px; padding: 14px 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 6px; font-size: 14.5px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .muted { color: var(--muted); }
.summary .total { font-weight: 800; font-size: 17px; margin-top: 4px; }
.form-error { display: none; color: var(--danger); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.form-error.on { display: block; }
.form-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 600; }
.assure { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.assure li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.assure svg { width: 22px; height: 22px; color: var(--accent); }
.assure b { color: var(--ink); }
.acc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 20px; color: var(--accent); line-height: 1; }
.acc details[open] summary::after { content: '−'; }
.acc-body { padding: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.acc-body p { margin: 0 0 8px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); transform: translateY(140%); transition: transform .25s ease; }
.sticky-buy.show { transform: none; }
.sticky-buy .btn { height: 46px; }
.sticky-price { font-weight: 800; font-size: 17px; display: grid; }
.sticky-price small { font-weight: 600; font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Panier, merci ---------- */
.cart-layout { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; } }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.cart-line img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.cart-line .meta { display: grid; gap: 3px; min-width: 0; }
.cart-line .meta a { font-weight: 700; }
.cart-line .meta span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cart-line .right { display: grid; justify-items: end; gap: 8px; }
.cart-line .qty { height: 40px; }
.cart-line .qty button { width: 34px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.thanks { max-width: 620px; margin: 0 auto; padding: 48px 0 72px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.thanks-mark { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.thanks-mark svg { width: 32px; height: 32px; }
.thanks .ref { font-weight: 800; letter-spacing: .06em; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.thanks .steps { text-align: start; margin: 12px 0; }
.thanks-items { display: grid; gap: 8px; width: 100%; }
.thanks-items div { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-align: start; font-size: 14px; }
.thanks-items img { width: 48px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #c9ccd6; padding: 56px 0 calc(90px + env(safe-area-inset-bottom)); margin-top: 40px; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }
.footer .logo-word { color: #fff; }
.footer-about { max-width: 30em; margin: 14px 0 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #343a4b; margin-top: 36px; padding-top: 20px; font-size: 13px; }

/* ---------- Barre d'onglets mobile ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); border: 0; background: none; position: relative; }
.tabbar svg { width: 23px; height: 23px; }
.tabbar [aria-current='page'] { color: var(--accent); }
.tabbar .cart-count { top: 6px; inset-inline-end: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- Panneaux ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); transform: translateY(102%); transition: transform .28s ease; display: flex; flex-direction: column; visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
@media (min-width: 768px) { .sheet { left: auto; width: 440px; transform: translateX(102%); box-shadow: -10px 0 40px rgba(0, 0, 0, .12); } .sheet-wide { width: 620px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 64px; }
.sheet-body { padding: 18px 16px 40px; overflow-y: auto; flex: 1; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font: 560 23px/1.2 var(--font-display); font-variation-settings: 'SOFT' 100; }
.menu-links small { font: 600 13px var(--font-body); color: var(--muted); }
.menu-contact { margin-top: 26px; color: var(--ink-2); }
.search-input { width: 100%; height: 54px; border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 0 16px; font-size: 17px; background: #fff; outline: none; }
.search-input:focus { border-color: var(--ink); }
.search-results { display: grid; gap: 4px; margin-top: 14px; }
.search-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.search-row:hover { background: var(--surface); }
.search-row img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.search-row span { font-weight: 700; font-size: 14.5px; }
.search-row small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 26px; }
.size-table caption { text-align: start; font: 600 20px var(--font-display); margin-bottom: 10px; }
.size-table th, .size-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.size-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.size-tip { background: var(--butter); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 22px; }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; z-index: 90; transition: all .2s; pointer-events: none; max-width: calc(100% - 32px); width: max-content; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffd2c6; text-decoration: underline; margin-left: 8px; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- Bouton de langue ---------- */
.lang-link { display: inline-grid; place-items: center; height: 34px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 800; font-size: 13.5px; margin-inline-end: 4px; }
.lang-link:hover { border-color: var(--ink); background: var(--surface); }
.lang-link[lang='ar'] { font-family: 'Tajawal', system-ui, sans-serif; font-size: 15px; }

/* ---------- Version arabe (de droite à gauche) ---------- */
html[lang='ar'] {
  --font-display: 'El Messiri', 'Tajawal', serif;
  --font-body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
html[lang='ar'] body { font-size: 16.5px; line-height: 1.7; }
/* L'espacement des lettres casse les liaisons de l'écriture arabe. */
html[lang='ar'] * { letter-spacing: 0 !important; }
html[lang='ar'] .display, html[lang='ar'] .h2, html[lang='ar'] .pdp-title { font-weight: 700; line-height: 1.3; }
html[lang='ar'] .display em, html[lang='ar'] .h2 em { font-style: normal; font-weight: 700; }
html[lang='ar'] .kicker { font-size: 14px; }
html[lang='ar'] .logo-word, html[lang='ar'] [data-shop-name] { font-family: 'Fraunces', Georgia, serif; }
html[lang='ar'] .menu-links a { font-weight: 600; }
html[lang='ar'] .order-box h3 { font-weight: 700; }
html[lang='ar'] input[type='tel'] { direction: ltr; text-align: right; }
html[lang='ar'] .price, html[lang='ar'] .pdp-price { direction: rtl; }
[dir='rtl'] .link-arrow svg, [dir='rtl'] .btn svg use[href='#i-arrow'], [dir='rtl'] .crumbs svg { transform: scaleX(-1); transform-origin: center; }
[dir='rtl'] .btn svg { transform-box: fill-box; }
@media (min-width: 768px) {
  [dir='rtl'] .sheet { left: 0; right: auto; transform: translateX(-102%); box-shadow: 10px 0 40px rgba(0, 0, 0, .12); }
  [dir='rtl'] .sheet.open { transform: none; }
}
html[lang='ar'] .badge-sale, html[lang='ar'] .pdp-price .save { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 899px) { .header-actions [data-open='search'] { display: none; } }
@media (max-width: 380px) { .lang-link { min-width: 36px; padding: 0 8px; } }
