/* ============================================================
   LIM Hospitality Group — feuille de style
   Châssis neutre chaud ; l'accent (--accent) change selon la
   marque active, piloté par JS via body[data-brand].
   ============================================================ */

:root {
  --paper: #FBF8F2;
  --ink: #24211B;
  --muted: #6E675C;
  --line: #E7E1D4;
  --card: #FFFFFF;
  --accent: #2F5D3A;      /* remplacé dynamiquement */
  --accent-ink: #FFFFFF;

  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(36, 33, 27, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: .5rem; }
.wordmark-lim {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--accent);
  transition: color .4s ease;
}
.wordmark-sub {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

.topbar-actions { display: flex; align-items: center; gap: .75rem; }

/* Barre de recherche (dans la topbar) */
.search-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1;
  max-width: 24rem;
  margin: 0 1rem;
  padding: .45rem .9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.search-icon { flex: 0 0 auto; color: var(--muted); }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  transition: background .2s ease;
}
.search-clear:hover { background: var(--accent); color: var(--accent-ink); }
.search-close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: .2rem .1rem .2rem .45rem;
  border-left: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity .2s ease;
}
.search-close:hover { opacity: .7; }
.search-toggle { display: none; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
  background: var(--card);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: .35rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}
.lang-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 0;
  border-radius: 99px;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .88rem;
  transition: background .4s ease, transform .15s ease;
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .3rem;
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .75rem;
}

/* ===== Open/closed banner ===== */
.open-banner {
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1rem;
  letter-spacing: .02em;
}
.open-banner.is-open { background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); }
.open-banner.is-closed { background: #F6E3DE; color: #B03A2E; }

/* ===== Account button ===== */
.account-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  color: var(--muted);
  padding: .5rem .8rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
}
.account-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 2.5rem;
  max-width: 46rem;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 1.1rem;
  transition: color .4s ease;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto 1.8rem;
}

.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  padding: .25rem;
  gap: .25rem;
}
.mode-toggle button {
  border: 0;
  background: transparent;
  border-radius: 99px;
  padding: .55rem 1.4rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  transition: background .3s ease, color .3s ease;
}
.mode-toggle button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}
.hero-note {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--muted);
}

/* ===== Hero slider ===== */
.hero-slider {
  max-width: 72rem;
  margin: 0 auto 1.6rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: var(--ink);
  cursor: pointer;
  display: block;
}
.slide img {
  width: 100%;
  aspect-ratio: 1600 / 666;
  object-fit: cover;
  display: block;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: .7rem;
}
.slider-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  transition: background .25s ease, transform .25s ease;
}
.slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ===== Geolocation button ===== */
.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  margin-top: .4rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 99px;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 600;
}
.geo-btn:hover { border-color: var(--accent); color: var(--accent); }
.geo-btn:disabled { opacity: .5; }
.geo-note { font-size: .78rem; font-weight: 400; color: var(--muted); margin-top: .3rem; }

/* ===== Brand rail ===== */
.brand-rail {
  display: flex;
  gap: .8rem;
  padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-padding-inline: 1rem;
}
/* Centre les tuiles quand elles tiennent, sans casser le scroll quand ça déborde
   (les marges auto des pseudo-éléments absorbent l'espace libre). */
.brand-rail::before,
.brand-rail::after { content: ''; margin: auto; }
.brand-tile {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  width: 12.5rem;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .15s ease;
}
.brand-tile:hover { transform: translateY(-2px); border-color: var(--tile-accent); }
.brand-tile .mono {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  background: color-mix(in srgb, var(--tile-accent) 12%, white);
  color: var(--tile-accent);
  transition: background .25s ease, color .25s ease;
}
.brand-tile .tile-name { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.brand-tile .tile-sub { font-size: .78rem; color: var(--muted); }
.brand-tile .tile-count {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
}
.brand-tile.is-active {
  background: var(--tile-accent);
  border-color: var(--tile-accent);
  color: #fff;
}
.brand-tile.is-active .tile-sub,
.brand-tile.is-active .tile-count { color: rgba(255, 255, 255, .75); }
.brand-tile.is-active .mono { background: rgba(255, 255, 255, .16); color: #fff; }

/* ===== Menu ===== */
.menu-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
}
.menu-head { margin-bottom: 1.6rem; }
.search-empty {
  color: var(--muted);
  padding: 2.5rem 0;
  text-align: center;
}
.menu-brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--accent);
  transition: color .4s ease;
}
.menu-brand-tagline { color: var(--muted); margin-top: .3rem; }

.menu-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
}

.menu-cat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2rem 0 .9rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  scroll-margin-top: 8rem;      /* topbar + puces collantes */
  transition: border-color .4s ease;
}
.menu-cat:first-of-type { margin-top: .5rem; }

.cat-chips {
  position: sticky;
  top: 56px;                    /* juste sous la topbar */
  z-index: 30;
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .55rem 0;
  margin: 0 -4px;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: .38rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cat-chips button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.cat-chips button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.item-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .15s ease;
}
.item-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.item-photo {
  aspect-ratio: 16 / 10;
  background: var(--line);
  overflow: hidden;
}
.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.item-card:hover .item-photo img { transform: scale(1.04); }

.item-body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem 1.2rem 1.1rem;
  flex: 1;
}

.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.item-name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.item-tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  border-radius: 99px;
  padding: .1rem .55rem;
  transition: color .4s ease, border-color .4s ease;
}
.item-desc { font-size: .87rem; color: var(--muted); flex: 1; }

.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .4rem;
}
.item-price { font-family: var(--font-mono); font-size: .95rem; }

.add-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 99px;
  padding: .38rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  transition: background .2s ease, color .2s ease, border-color .4s ease;
}
.add-btn:hover { background: var(--accent); color: var(--accent-ink); }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  border: 1px solid var(--accent);
  border-radius: 99px;
  overflow: hidden;
}
.stepper button {
  border: 0;
  background: transparent;
  color: var(--accent);
  width: 2rem;
  height: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.stepper button:hover { background: color-mix(in srgb, var(--accent) 12%, white); }
.stepper .qty {
  min-width: 1.6rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .9rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  background: var(--card);
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
}
.footer-title {
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .35rem;
}
.footer-line { color: var(--muted); font-size: .92rem; }
.footer-line a { text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }

/* ===== Cart drawer ===== */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 33, 27, .45);
  z-index: 50;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(26rem, 100vw);
  background: var(--paper);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(36, 33, 27, .18);
  animation: slideIn .28s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem .9rem;
}
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.drawer-close {
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  padding: .2rem .5rem;
}

.free-ship { padding: 0 1.4rem .9rem; }
.free-ship-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.free-ship-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--accent);
  transition: width .35s ease, background .4s ease;
}
.free-ship-text { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: .4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .7rem .9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: .9rem; }
.cart-line-brand { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cart-line-price { font-family: var(--font-mono); font-size: .85rem; white-space: nowrap; }
.cart-line .stepper button { width: 1.7rem; height: 1.7rem; font-size: .95rem; }

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 1.1rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sum-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.sum-total { font-weight: 600; color: var(--ink); font-size: 1.05rem; padding-top: .3rem; border-top: 1px dashed var(--line); }

.btn-primary {
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  margin-top: .6rem;
  transition: background .4s ease, transform .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.5rem;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.cart-empty-hint { font-size: .85rem; }

/* ===== Modals ===== */
.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 70;
}
.modal {
  width: min(28rem, 100%);
  background: var(--paper);
  border-radius: 18px;
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: popIn .22s ease;
}
@keyframes popIn { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.modal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; }
.modal label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
.modal input, .modal textarea {
  font: inherit;
  font-weight: 400;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}
.modal input:focus, .modal textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.form-error { color: #B03A2E; font-size: .85rem; }
.modal-actions { display: flex; gap: .7rem; margin-top: .3rem; }
.modal-actions .btn-primary { flex: 1; margin-top: 0; }

/* Modal d'options (variantes d'un item) */
.options-head { display: flex; gap: .9rem; align-items: flex-start; }
.options-photo {
  flex: 0 0 4.6rem;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 12px;
  overflow: hidden;
}
.options-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.options-desc { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.options-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .4rem .9rem .5rem;
  margin: 0;
}
.options-group legend {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 0 .4rem;
}
.options-need {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.options-choice {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: .7rem !important;
  padding: .55rem 0;
  font-weight: 500 !important;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.options-choice:last-child { border-bottom: 0; }
.options-choice input[type="radio"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.options-choice-name { flex: 1; }
.options-choice-price { font-family: var(--font-mono); font-size: .85rem; white-space: nowrap; }
.options-actions { margin-top: .2rem; }
.cart-line-opts { font-size: .78rem; color: var(--muted); }

/* Checkout : quand + paiement */
.when-fieldset, .pay-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .9rem .9rem;
}
.when-fieldset legend, .pay-fieldset legend {
  font-size: .82rem;
  font-weight: 600;
  padding: 0 .4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.when-toggle { display: flex; gap: .4rem; }
.when-toggle button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: .5rem .6rem;
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
}
.when-toggle button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.when-toggle button:disabled { opacity: .45; cursor: not-allowed; }
.slot-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; margin-top: .6rem; }
.slot-row select {
  font: inherit;
  padding: .55rem .6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.closed-note { font-size: .8rem; color: #B03A2E; margin-top: .5rem; }

.pay-options { display: flex; flex-direction: column; gap: .4rem; }
.pay-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: .6rem !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem .8rem;
  cursor: pointer;
  font-weight: 500 !important;
  background: var(--card);
}
.pay-option.is-active { border-color: var(--accent); outline: 1px solid var(--accent); }
.pay-option input { accent-color: var(--accent); }

/* Modales de paiement */
.modal-pay { text-align: center; align-items: center; }
.pay-amounts { font-size: 1.25rem; font-weight: 600; }
.pay-usd { color: var(--muted); font-size: .95rem; font-weight: 400; margin-left: .4rem; }
#paypalButtons { width: 100%; min-height: 120px; }
.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .8rem;
  display: grid;
  place-items: center;
}
.qr-meta { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.qr-hint { font-size: .85rem; color: var(--muted); max-width: 22rem; }

/* Combos */
.item-includes { font-size: .8rem; color: var(--muted); font-style: italic; }

.confirm-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.confirm-actions .btn-ghost { text-decoration: none; font-size: .88rem; padding: .55rem 1.1rem; }

.modal-confirm { text-align: center; align-items: center; }
.confirm-check {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.6rem;
  transition: background .4s ease;
}
.confirm-code { font-size: .9rem; color: var(--muted); }
.confirm-code strong { font-family: var(--font-mono); color: var(--ink); }
.confirm-text { font-size: .92rem; color: var(--muted); }

/* ===== Responsive & a11y ===== */
@media (max-width: 640px) {
  .topbar { gap: .5rem; padding: .6rem .75rem; }
  .topbar-actions { gap: .45rem; flex-shrink: 0; }
  .wordmark { gap: .3rem; min-width: 0; }
  .wordmark-sub { display: none; }              /* garde le logo sur une ligne */
  .lang-toggle button { padding: .32rem .55rem; }
  .account-btn span { display: none; }          /* icône seule */
  .account-btn { padding: .55rem .6rem; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: .55rem .7rem; }
  .brand-tile { width: 10.5rem; }

  /* recherche : bouton loupe qui déplie la barre par-dessus la topbar */
  .search-bar { display: none; }
  .search-toggle {
    display: flex;
    align-items: center;
    padding: .5rem .55rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--card);
    color: var(--muted);
    transition: color .2s ease, border-color .2s ease;
  }
  .search-toggle:hover { color: var(--accent); border-color: var(--accent); }
  .topbar.search-open .search-toggle { color: var(--accent); border-color: var(--accent); }
  .topbar.search-open .search-bar {
    display: flex;
    position: absolute;
    left: .6rem;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Code promo (package Premium) ===== */
.promo-fieldset { border: 1px solid var(--line, #e6e0d4); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
.promo-fieldset legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; }
.promo-row { display: flex; gap: .5rem; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.promo-note { margin: .5rem 0 0; font-size: .85rem; }
.promo-note.is-ok { color: #2F5D3A; font-weight: 600; }
.promo-note.is-bad { color: #a33b22; }
.sum-discount { color: #2F5D3A; font-weight: 600; }
