/* ════════════════════════════════════════════════════════════
   Atlas 33ML — feuille de style
   Palette : ivoire chaud, encre brune, doré, terracotta
   Typos   : Fraunces (display) / Jost (texte)
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #FFFBF4;
  --ivory: #F7F1E7;
  --ink: #17120E;
  --muted: #6F6458;
  --line: #E4D9C6;
  --gold: #B7822E;
  --gold-l: #E4C274;
  --cta: #B5401D;
  --cta-d: #8F3115;
  --wa: #1E8F55;
  --wa-d: #16703F;
  --tg: #2470A8;
  --tg-d: #1B5A88;
  --rose: #EFC3CF;
  --r: 16px;
  --shadow: 0 10px 30px -12px rgba(23, 18, 14, .28);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap-narrow { max-width: 820px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.muted { color: var(--muted); }

/* ── Typo ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }

/* ── En-tête ──────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 241, 231, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.logo { text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .01em; }
.logo-name { font-weight: 700; }
.logo-num { font-weight: 500; font-style: italic; color: var(--cta); margin: 0 .06em; }
.logo-ml { font-size: .72em; font-weight: 500; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 600 .95rem var(--f-body); cursor: pointer;
  position: relative; transition: background .2s, color .2s;
}
.cart-btn:hover { background: var(--ink); color: var(--ivory); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  background: var(--cta); color: #fff;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
}
@media (max-width: 560px) {
  .logo { font-size: 1.15rem; }
  .nav { gap: 12px; font-size: .92rem; }
  .cart-btn { padding: 0 12px; }
  .cart-btn-label { display: none; }
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px -8px rgba(181, 64, 29, .7); }
.btn-primary:hover { background: var(--cta-d); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 1.1rem; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-d); }

.chip {
  min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 .92rem var(--f-body); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--gold); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: none; border-radius: 50%; background: transparent; color: var(--ink);
  cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(23, 18, 14, .07); }
.icon-btn svg { width: 22px; height: 22px; }

.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-decoration: underline;
  text-underline-offset: 3px;
}
.linklike:hover { color: var(--gold); }

:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ── Héro ─────────────────────────────────────────────────── */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 80px); overflow: hidden; }
.hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { font-size: clamp(2.5rem, 7.4vw, 4.9rem); font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--cta); }
.hero .lead { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; }
.hero-trust svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; height: auto; display: block;
  border-radius: 24px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-chip {
  position: absolute; left: 16px; bottom: 16px;
  margin: 0; padding: 10px 16px;
  background: rgba(255, 251, 244, .94);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-chip b { color: var(--cta); }

/* ── Sections ─────────────────────────────────────────────── */
.sec { padding: clamp(36px, 6vw, 72px) 0; }
.sec-alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec-h { max-width: 46rem; margin-bottom: clamp(22px, 4vw, 36px); }
.sec-h p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }

/* ── Tarifs ───────────────────────────────────────────────── */
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tier {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .2s, transform .2s;
}
.tier:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tier-qty { font-size: .92rem; color: var(--muted); font-weight: 500; }
.tier-qty b { font-family: var(--f-display); font-size: 2rem; color: var(--ink); font-weight: 700; margin-right: 4px; }
.tier-price { font-family: var(--f-display); font-size: 1.5rem; color: var(--cta); font-weight: 700; }
.tier-price span { font-family: var(--f-body); font-size: .9rem; color: var(--muted); font-weight: 400; }
.tier-total { font-size: .92rem; color: var(--muted); }
.tier-save { font-size: .88rem; font-weight: 600; color: var(--wa); }

.grid-full { margin-top: 22px; }
.grid-full summary {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-weight: 600; color: var(--ink);
  padding: 10px 2px; list-style: none;
}
.grid-full summary::-webkit-details-marker { display: none; }
.grid-full summary svg { width: 18px; height: 18px; transition: transform .25s; }
.grid-full[open] summary svg { transform: rotate(180deg); }
.grid-full summary:hover { color: var(--cta); }

.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.price-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.price-table th, .price-table td { padding: 12px 18px; text-align: left; }
.price-table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.price-table td { border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: none; }
.price-table td b { color: var(--cta); }

/* ── Pack automatique ─────────────────────────────────────── */
.auto-box {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(18px, 4vw, 30px);
  display: flex; flex-direction: column; gap: 18px;
}
.auto-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.auto-label { font-weight: 600; }
.auto-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.auto-preview { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.auto-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px 6px 8px; font-size: .9rem;
}
.auto-tag i {
  font-style: normal; font-family: var(--f-display); font-weight: 700;
  color: var(--gold); font-size: .82rem;
}
.auto-tag .q { color: var(--muted); font-weight: 600; }
.auto-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auto-hint { color: var(--muted); font-size: .95rem; align-self: center; }

/* ── Outils catalogue ─────────────────────────────────────── */
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search {
  flex: 1 1 260px; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 18px; min-height: 48px;
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input {
  border: none; outline: none; background: transparent;
  font: 400 1rem var(--f-body); color: var(--ink);
  width: 100%; height: 46px;
}
.search input::placeholder { color: var(--muted); }

.fam-filter { display: flex; gap: 8px; flex-wrap: wrap; }

.count-line { margin: 14px 2px 18px; font-size: .95rem; }

/* ── Barre de progression ─────────────────────────────────── */
.goalbar {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--gold-l);
  border-radius: 999px; padding: 10px 18px; margin-bottom: 16px;
  font-size: .93rem; font-weight: 500;
}
.goalbar.in-cart { border-radius: var(--r); margin: 0; flex-wrap: wrap; }
.goal-track { flex: 1 1 120px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.goal-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--cta)); border-radius: 99px; transition: width .35s ease-out; }
.goalbar.is-max { border-color: var(--wa); }
.goalbar.is-max .goal-track i { background: var(--wa); }

/* ── Grille catalogue ─────────────────────────────────────── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
}
@media (min-width: 760px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card[hidden] { display: none; }

.card-media {
  position: relative; display: block;
  aspect-ratio: 1/1; overflow: hidden;
  background: var(--paper);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease-out;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-num {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .8rem;
  color: var(--gold); background: rgba(255, 251, 244, .9);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.card-fam-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 251, 244, .9);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-vol { font-size: .8rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.card-name { font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; line-height: 1.2; }

.card-notes { font-size: .86rem; }
.card-notes summary {
  cursor: pointer; color: var(--gold); font-weight: 500; list-style: none;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 0;
}
.card-notes summary::-webkit-details-marker { display: none; }
.card-notes summary svg { width: 14px; height: 14px; transition: transform .25s; }
.card-notes[open] summary svg { transform: rotate(180deg); }
.card-notes dl { margin: 8px 0 2px; display: grid; gap: 5px; }
.card-notes dl div { display: flex; gap: 8px; }
.card-notes dt { font-weight: 600; color: var(--muted); min-width: 42px; }
.card-notes dd { margin: 0; }

.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.price { font-size: .95rem; color: var(--muted); }
.price b { font-family: var(--f-display); font-size: 1.45rem; color: var(--ink); font-weight: 700; }

.btn-add {
  width: 100%; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--ivory);
  border: none; border-radius: 999px;
  font: 600 .95rem var(--f-body); cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-add:hover { background: var(--cta); }
.btn-add:active { transform: scale(.97); }
.btn-add svg { width: 18px; height: 18px; }

.stepper {
  display: flex; align-items: stretch; justify-content: space-between;
  border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden;
  min-height: 46px;
}
.stepper button {
  width: 52px; border: none; background: transparent; color: var(--ink);
  font: 600 1.2rem var(--f-body); cursor: pointer;
  transition: background .15s;
}
.stepper button:hover { background: rgba(23, 18, 14, .07); }
.stepper .qty { display: grid; place-items: center; font-weight: 600; min-width: 34px; }

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

/* ── Étapes ───────────────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px;
}
.step-n {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  background: var(--ink); color: var(--ivory);
  border-radius: 50%; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
}
.steps p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

/* ── Avantages ────────────────────────────────────────────── */
.feats { display: grid; gap: 16px; }
@media (min-width: 620px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(4, 1fr); } }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px;
}
.feat svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 12px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 20px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none;
  font-weight: 600; padding: 16px 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--gold); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }

/* ── CTA final ────────────────────────────────────────────── */
.final-cta {
  background: var(--ink); color: var(--ivory);
  padding: clamp(44px, 7vw, 84px) 0; text-align: center;
}
.final-cta h2 { margin-bottom: 24px; }
.final-cta .btn-primary { box-shadow: 0 8px 24px -8px rgba(181, 64, 29, .9); }

/* ── Pied de page ─────────────────────────────────────────── */
.ftr { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 26px; }
.ftr-in { display: grid; gap: 26px; }
@media (min-width: 760px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.logo-f { font-size: 1.25rem; margin-bottom: 8px; }
.ftr p { color: var(--muted); font-size: .95rem; }
.ftr-h { font-weight: 600; color: var(--ink) !important; margin-bottom: 8px; }
.chans { display: flex; flex-direction: column; gap: 6px; }
.chans a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.chans a:hover { color: var(--cta); text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem !important; }

/* ── Barre flottante mobile ───────────────────────────────── */
.cart-float {
  position: fixed; left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 0 22px;
  background: var(--ink); color: var(--ivory);
  border: none; border-radius: 999px;
  font: 600 1rem var(--f-body); cursor: pointer;
  box-shadow: var(--shadow);
}
.cart-float b { font-family: var(--f-display); font-size: 1.1rem; }
@media (min-width: 900px) { .cart-float { display: none; } }

/* ── Tiroir panier ────────────────────────────────────────── */
.cart-overlay, .modal-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(23, 18, 14, .45);
  backdrop-filter: blur(2px);
}
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 45;
  width: min(430px, 100%);
  background: var(--ivory);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(23, 18, 14, .4);
  transform: translateX(0);
  animation: cart-in .28s ease-out;
}
@keyframes cart-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cart { animation: none; } }

.cart-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.cart-h h2 { font-size: 1.35rem; }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { text-align: center; padding: 40px 0; font-size: 1.05rem; }

.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px;
}
.cart-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ci-name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.ci-name i { font-style: normal; color: var(--gold); font-family: var(--f-display); font-weight: 700; font-size: .82rem; margin-right: 5px; }
.ci-sub { font-size: .82rem; color: var(--muted); }
.ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--ivory);
}
.ci-stepper button {
  width: 34px; height: 34px; border: none; background: transparent;
  font: 600 1rem var(--f-body); color: var(--ink); cursor: pointer;
}
.ci-stepper button:hover { background: rgba(23, 18, 14, .07); }
.ci-stepper .qty { min-width: 26px; text-align: center; font-weight: 600; font-size: .92rem; }
.ci-remove {
  border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: .78rem; text-decoration: underline;
  text-underline-offset: 2px; padding: 2px;
}
.ci-remove:hover { color: var(--cta); }

.cart-sum {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .98rem; }
.sum-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.sum-total b { font-family: var(--f-display); font-size: 1.5rem; }
.sum-save { color: var(--wa); font-weight: 600; font-size: .92rem; }

.cart-form { display: flex; flex-direction: column; gap: 12px; }
.cart-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.cart-form input {
  min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: 400 1rem var(--f-body); outline: none;
  transition: border-color .2s;
}
.cart-form input:focus { border-color: var(--gold); }
.cart-form input.is-bad { border-color: var(--cta); }
.form-err { color: var(--cta); font-weight: 500; font-size: .92rem; }
.confirm-btns { display: grid; gap: 10px; margin-top: 4px; }
.confirm-note { text-align: center; font-size: .85rem; }

/* ── Modale ───────────────────────────────────────────────── */
.modal {
  position: fixed; z-index: 45; inset: 0; margin: auto;
  width: min(560px, calc(100% - 32px)); height: fit-content; max-height: 85dvh;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: cart-in .25s ease-out;
}
.modal-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line);
}
.modal-h h2 { font-size: 1.3rem; }
.modal-body { padding: 18px 22px 24px; overflow-y: auto; display: grid; gap: 12px; color: var(--muted); }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60;
  background: var(--ink); color: var(--ivory);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  box-shadow: var(--shadow);
  animation: toast-in .25s ease-out;
  max-width: calc(100% - 32px); text-align: center;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
