:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3ede4;
  --text: #1f1a17;
  --muted: #6e645c;
  --border: #e6ddd1;
  --gold: #a1803f;
  --gold-dark: #7d6230;
  --whatsapp: #1fa855;
  --danger: #b4443b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(31, 26, 23, 0.08);
  --serif: "Cormorant Garamond", "Amiri", Georgia, serif;
  --sans: "Inter", "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.5px;
}
.logo span { color: var(--gold); margin-left: 6px; font-weight: 600; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: #fff; border: 0;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.badge {
  background: var(--gold); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center; font-size: 12px;
}
.badge.bump { animation: bump 0.4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 80% 0%, #f1e4cf 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; color: var(--gold-dark); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; }
h1 em { color: var(--gold); font-style: italic; }
.lead { font-size: 18px; color: var(--muted); margin: 18px 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: "✦"; color: var(--gold); margin-inline-end: 10px; }
.hero-points strong { color: var(--text); font-weight: 600; }

.hero-visual { position: relative; height: 380px; }
.hero-visual .bottle { position: absolute; bottom: 0; }
.hero-visual .big { left: 30%; width: 150px; height: 300px; }
.hero-visual .mid { left: 8%; width: 110px; height: 210px; }
.hero-visual .small { left: 66%; width: 100px; height: 170px; }

/* Mosaïque de photos du hero */
.hero-collage {
  display: grid; gap: 10px; height: 480px;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 1fr 1.15fr;
  grid-template-areas: "tall wide wide" "tall a b";
}
.hero-collage img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--surface-2);
}
.hero-collage .c-tall { grid-area: tall; }
.hero-collage .c-wide { grid-area: wide; }
.hero-collage .c-a { grid-area: a; }
.hero-collage .c-b { grid-area: b; }

/* Photo unique du hero (montage 4 photos, format portrait) */
.hero-photo { display: flex; justify-content: center; }
.hero-photo img {
  width: auto; max-width: 100%; height: auto; max-height: 560px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 900px) { .hero-photo img { max-height: 480px; } }

/* Flacon dessiné en CSS */
.bottle {
  --c: #a1803f;
  border-radius: 18px 18px 22px 22px;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.45) 0 12%, transparent 22% 70%, rgba(0,0,0,0.12) 100%),
    var(--c);
  box-shadow: inset 0 -12px 24px rgba(0,0,0,0.15), 0 18px 30px rgba(31,26,23,0.18);
}
.bottle::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: -22%; width: 38%; height: 24%;
  background: linear-gradient(90deg, #6a5226, #d8bb7a 45%, #7d6230);
  border-radius: 6px 6px 3px 3px;
}
.bottle::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 42%; height: 22%;
  background: rgba(255,255,255,0.75); border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #3a312c; }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #18914a; }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #1c88bb; }
.btn-tg svg { color: #229ed9; }
.btn[hidden] { display: none; }
.devis-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }
.footer a.tg { color: #229ed9; }
@media (max-width: 640px) { .devis-btns { width: 100%; } .devis-btns .btn { flex: 1; } }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; padding: 6px; }
.icon-btn { background: none; border: 0; font-size: 20px; color: var(--muted); padding: 6px 10px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 600; }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filters input[type="search"], .filters select {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.filters input[type="search"] { flex: 1 1 260px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface); padding: 8px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
}
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  position: relative; height: 210px; background: linear-gradient(180deg, #f6efe4, #ede2d1);
  display: grid; place-items: end center; padding-bottom: 26px;
}
.card-media.photo { height: 280px; padding: 0; cursor: zoom-in; border: 0; width: 100%; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .bottle { position: relative; width: 74px; height: 130px; }
.tag {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--surface); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--gold-dark);
}
.tag.out { inset-inline-start: auto; inset-inline-end: 12px; background: var(--danger); color: #fff; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title h3 { font-size: 24px; font-weight: 600; }
.card-title small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.card-insp { margin: -6px 0 0; font-size: 13px; color: var(--gold-dark); font-weight: 500; }
.card-notes { color: var(--muted); font-size: 14px; margin: 0; }
.card-notes.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tiers { width: 100%; border-collapse: collapse; font-size: 13px; }
.tiers td { padding: 6px 0; border-top: 1px dashed var(--border); }
.tiers td:last-child { text-align: end; font-weight: 600; }
.tiers tr.best td:last-child { color: var(--gold-dark); }
.from { font-size: 14px; color: var(--muted); }
.from strong { font-size: 22px; color: var(--text); font-family: var(--serif); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 34px; height: 38px; border: 0; background: none; font-size: 18px; }
.stepper button:hover { background: var(--surface-2); }
.stepper span { min-width: 46px; text-align: center; font-weight: 600; font-size: 14px; }
.stepper input {
  width: 46px; border: 0; background: none; text-align: center; font-weight: 600; font-size: 14px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.tiers-more { font-size: 12px; color: var(--gold-dark); text-decoration: none; }
.tiers-more:hover { text-decoration: underline; }
.card-actions .btn { flex: 1; padding: 10px 14px; }

.empty { color: var(--muted); text-align: center; padding: 24px 0; }

/* ---------- Packs (mobile d'abord : 2 par ligne, 3 sur tablette, 5 sur ordinateur) ---------- */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .packs { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .packs { grid-template-columns: repeat(5, 1fr); } }
.pack {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  transition: box-shadow .2s, transform .2s;
}
.pack:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pack.featured { border: 2px solid var(--gold); }
.pack-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.pack-qty { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1; }
.pack-qty small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.pack-price { font-size: 20px; font-weight: 700; margin-top: 6px; }
.pack-unit { font-size: 13px; color: var(--muted); }
.pack-save { font-size: 12px; font-weight: 700; color: var(--whatsapp); background: #e3f6ea; border-radius: 999px; padding: 2px 8px; margin: 4px 0 8px; }
.pack-save.base { color: var(--muted); background: var(--surface-2); }
.pack .btn { width: 100%; padding: 10px 8px; font-size: 14px; margin-top: auto; }
.pack-devis {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px 18px;
}
.pack-devis strong { display: block; font-family: var(--serif); font-size: 22px; }
.pack-devis span { color: var(--muted); font-size: 14px; }
.pack-devis .btn { width: auto; }
@media (max-width: 640px) { .pack-devis .btn { width: 100%; } }

/* ---------- Page « Compose ton pack » ---------- */
.pack-page { padding-bottom: 110px; }
.cart-btn { text-decoration: none; }
.pack-hero { padding: 40px 0 8px; }
.pack-title { font-size: clamp(34px, 5vw, 52px); font-weight: 600; }
.pack-title em { color: var(--gold); font-style: normal; }
.pack-hero .lead { margin: 12px 0 18px; }
.pack-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pack-switch .chip { text-decoration: none; white-space: nowrap; }
.pick-section { padding-top: 20px; }
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .pick-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .pick-grid { grid-template-columns: repeat(5, 1fr); } }
.pick-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pick-card.picked { border-color: var(--gold); }
.pick-card.out { opacity: .55; }
.pick-media { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(180deg, #f6efe4, #ede2d1); display: grid; place-items: end center; }
.pick-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-media .bottle { position: relative; width: 60px; height: 105px; margin-bottom: 20px; }
.pick-badge { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--gold); color: #fff; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 2px 10px; }
.pick-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pick-body h3 { font-size: 19px; font-weight: 600; }
.pick-body small { color: var(--muted); font-size: 12px; margin-top: -4px; }
.pick-body .btn, .pick-body .stepper { margin-top: auto; width: 100%; padding: 8px 10px; font-size: 14px; }
.pick-body .stepper { justify-content: space-between; padding: 0; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.pick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 30px rgba(31,26,23,0.08); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.pick-bar-inner { display: flex; align-items: center; gap: 16px; }
.pick-progress { flex: 1; min-width: 0; }
.pick-count { font-size: 15px; margin-bottom: 6px; }
.pick-count strong { font-family: var(--serif); font-size: 24px; }
.pick-progress small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.pick-bar .btn { flex-shrink: 0; }

/* ---------- Récapitulatif avant confirmation ---------- */
#confirmOverlay { z-index: 56; }
.confirm-modal { z-index: 57; width: min(560px, calc(100% - 32px)); }
.pay-note { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #1b6b3a; text-align: center; }
.empty a { color: var(--gold-dark); font-weight: 600; }
.recap { padding: 28px; display: grid; gap: 14px; }
.recap h3 { font-size: 30px; }
.recap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.recap td { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.recap td:last-child { text-align: end; font-weight: 600; white-space: nowrap; }
.recap tr.total td { border-bottom: 0; font-size: 17px; padding-top: 10px; }
.recap-client { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.recap-pay { display: flex; gap: 10px; align-items: center; background: #e3f6ea; color: #1b6b3a; border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.recap-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.recap-actions .btn { flex: 1 1 200px; }
.recap-done { text-align: center; }
.recap-done .big { font-size: 48px; line-height: 1; }

/* ---------- Page Panier : tout visible sur un écran ---------- */
.cart-page .link-back { margin-inline-start: auto; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.cart-page .nav + .link-back { margin-inline-start: 0; }
.checkout { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.co-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.co-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.co-head h1 { font-size: 30px; font-weight: 600; }
.co-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.co-list { overflow-y: auto; min-height: 0; flex: 1; margin: 0 -6px; padding: 0 6px; }
.co-line { display: grid; grid-template-columns: 40px 1fr auto auto 24px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.co-line .thumb { width: 40px; height: 50px; object-fit: cover; border-radius: 6px; }
.co-line .bottle { position: relative; width: 26px; height: 44px; margin: 8px auto 0; border-radius: 6px 6px 8px 8px; }
.co-line .bottle::after { display: none; }
.co-name { min-width: 0; }
.co-name h4 { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-name small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-line .stepper button { width: 30px; height: 32px; font-size: 16px; }
.co-line .stepper input { width: 38px; }
.co-price { font-weight: 600; font-size: 14px; text-align: end; min-width: 70px; }
.co-remove { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 4px; }
.co-remove:hover { color: var(--danger); }
.co-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); padding: 30px 0; }
.co-empty p { margin: 0; }
.co-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 12px; }
.co-actions .btn { padding: 9px 14px; font-size: 13px; }
.co-actions[hidden], .co-actions .btn[hidden] { display: none; }
.co-actions .link-btn { margin-inline-start: auto; }
.co-side .totals { margin-bottom: 8px; }
.co-side .min-msg { margin: 6px 0 10px; }
.co-form { gap: 8px; }
.co-form h2 { font-size: 22px; font-weight: 600; margin-top: 2px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co-form textarea { resize: none; }
.co-form .btn { width: 100%; padding: 13px; }
.checkout.is-empty .co-side { opacity: .6; }

/* Ordinateur : deux colonnes qui tiennent dans la hauteur de l'écran, sans défilement de la page */
@media (min-width: 900px) {
  .cart-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .checkout { flex: 1; min-height: 0; grid-template-columns: 1.35fr 1fr; padding-top: 20px; padding-bottom: 20px; }
  .co-card { padding: 20px 22px; }
  .co-side { overflow-y: auto; }
}
/* Téléphone : liste compacte qui défile seule, bouton de validation toujours visible */
@media (max-width: 899px) {
  .co-list { max-height: 34vh; }
  .co-line { grid-template-columns: 36px 1fr auto 22px; }
  .co-line .co-price { display: none; }
  .co-line .thumb { width: 36px; height: 44px; }
  .co-form #submitOrder { position: sticky; bottom: 10px; box-shadow: 0 8px 24px rgba(31,26,23,.25); }
  .cart-page .nav { display: none; }
}
@media (max-width: 420px) {
  .co-row { grid-template-columns: 1fr; }
}

/* ---------- Fiche produit ---------- */
.modal {
  position: fixed; z-index: 55; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(860px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
#modalOverlay { z-index: 54; }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: var(--surface); border-radius: 50%; }
.modal-grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-grid img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.modal-info h3 { font-size: 34px; }
.modal-info p { margin: 0; color: var(--muted); }
.modal-info .card-actions { margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.steps span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--whatsapp); font-weight: 600; text-decoration: none; }

/* ---------- Drawer (panier) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 16, 14, 0.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%);
  background: var(--bg); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 28px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 20px 20px; background: var(--surface); max-height: 62%; overflow-y: auto; }

.line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.line .bottle { position: relative; width: 30px; height: 50px; margin: 10px auto 0; border-radius: 6px 6px 8px 8px; }
.line .bottle::after { display: none; }
.line .thumb { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; }
.line h4 { margin: 0; font-size: 15px; }
.line p { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.line .price { text-align: end; font-weight: 600; font-size: 15px; }
.line .price small { display: block; color: var(--gold-dark); font-weight: 500; font-size: 12px; }
.line .remove { background: none; border: 0; color: var(--danger); font-size: 12px; padding: 0; margin-top: 4px; }

.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0 6px; }
.cart-actions .btn { padding: 10px 8px; font-size: 13px; }
.cart-actions[hidden], .cart-actions .btn[hidden] { display: none; }
.cart-actions:has(.btn[hidden]) { grid-template-columns: 1fr; }

.totals { display: flex; justify-content: space-between; margin-bottom: 10px; }
.totals div { display: flex; flex-direction: column; }
.totals div:last-child { text-align: end; }
.totals span { font-size: 13px; color: var(--muted); }
.totals strong { font-size: 22px; font-family: var(--serif); }
.min-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.min-bar div { height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.min-bar div.ok { background: var(--whatsapp); }
.min-msg { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }

.order-form { display: grid; gap: 10px; }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus, .filters input:focus, .filters select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px;
  z-index: 60; transition: transform .3s ease; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; order: -1; }
  .hero-visual .big { width: 110px; height: 220px; }
  .hero-visual .mid { width: 80px; height: 150px; left: 14%; }
  .hero-visual .small { width: 72px; height: 124px; left: 62%; }
  .hero-collage { height: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .cart-btn { margin-inline-start: auto; }
  .cart-btn > span:not(.badge) { display: none; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .filters select { flex: 1; }
  .hero-collage { height: 340px; gap: 6px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid img { max-height: 320px; }
  .pick-bar .btn { padding: 12px 14px; font-size: 14px; }
  .recap { padding: 22px 18px; }
}

/* Message après ajout : lien cliquable vers le panier */
.toast.show { pointer-events: auto; }
.toast a { color: #f1d9a3; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 899px) { .cart-page .nav + .link-back { margin-inline-start: auto; } }
.co-empty[hidden] { display: none; }
.checkout { grid-template-columns: minmax(0, 1fr); }
.checkout > * { min-width: 0; }
.toast:not(.show) { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
@media (max-width: 899px) {
  .cart-page .topbar-inner { gap: 12px; }
  .cart-page .link-back { font-size: 13px; }
  .co-count { font-size: 12px; }
}
@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

/* ---------- Langues : sélecteur + darija (droite à gauche) ---------- */
/* Évite d'afficher la page dans la mauvaise langue le temps que les traductions s'appliquent */
html.i18n-pending body { visibility: hidden; }
.lang-switch {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-switch:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.nav + .lang-switch { margin-inline-start: 4px; }
.cart-page .lang-switch { margin-inline-start: auto; }
.cart-page .nav + .lang-switch { margin-inline-start: 4px; }
/* Le logo reste en lettres latines, de gauche à droite */
.logo { direction: ltr; unicode-bidi: isolate; }
/* L'arabe ne supporte ni les lettres espacées ni les majuscules */
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
[dir="rtl"] body { line-height: 1.7; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
/* Téléphone, quantités et prix restent lisibles de gauche à droite */
[dir="rtl"] input[type="number"], [dir="rtl"] input[type="tel"] { direction: ltr; }
@media (max-width: 640px) {
  .lang-switch { padding: 6px 8px; font-size: 12px; }
  .cart-btn { margin-inline-start: 0; }
  .topbar-inner { gap: 10px; }
  .topbar-inner .lang-switch { margin-inline-start: auto; }
}
/* Noms de parfums (lettres latines et chiffres, ex : « 1 Million ») : toujours lus de gauche à droite */
[dir="rtl"] .card-title h3, [dir="rtl"] .pick-body h3, [dir="rtl"] .co-name h4, [dir="rtl"] .modal-info h3 {
  direction: ltr; unicode-bidi: isolate; text-align: right;
}
.cart-page .lang-switch + .link-back { margin-inline-start: 8px; }
@media (max-width: 420px) {
  .logo { font-size: 23px; }
  .topbar-inner { gap: 8px; }
  .cart-btn { padding: 9px 12px; }
  .cart-page .link-back { display: none; }
}
