/* ============================================================
   ARROUD — tunnel de commande (boutique, panier, paiement)
   (3 modes : casier, comptoir, livraison — voir .modes--3 en fin de fichier)
   Ergonomie des grandes applis de livraison, habillage de la maison.
   ============================================================ */

:root {
  --ink: #15110f;
  --ink-2: #2a2320;
  --paper: #f4efe6;
  --card: #fffdf9;
  --line: #e4dccf;
  --muted: #6f655d;
  --blood: #7a160f;
  --blood-2: #9e2216;
  --brass: #c09a5e;
  --ok: #2f7a45;
  --ok-bg: #e5f1e6;
  --warn: #e0a33a;
  --r: 14px;
  --g: clamp(16px, 3vw, 40px);
  --top: 68px;
  --f-display: "Gloock", Georgia, serif;
  --f-cond: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 2px; }

/* ---------- barre du haut ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  display: flex; align-items: center; gap: 14px; padding: 0 var(--g);
  background: var(--ink); color: var(--paper);
}
.top__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.top__mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--brass); color: var(--brass); font: 900 20px/1 var(--f-cond); flex: none; }
.top__word { font: 900 24px/1 var(--f-cond); text-transform: uppercase; letter-spacing: .04em; }
.search { flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: #2a2320; }
.search svg { width: 18px; height: 18px; fill: none; stroke: #b9aea3; stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--paper); font: 500 15px var(--f-body); outline: none; }
.search input::placeholder { color: #9b9086; }
.pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: #2a2320; border: 0; color: var(--paper); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd18b; }
.top__cart { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--blood); border: 0; color: #fff; font-weight: 700; }
.top__cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.top__cart.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

body.is-checkout .search, body.is-checkout .pill, body.is-checkout .top__cart { visibility: hidden; }

/* ---------- couverture ---------- */
.cover { position: relative; display: grid; grid-template-columns: 1fr; background: var(--ink); color: var(--paper); overflow: hidden; }
.cover__art { position: absolute; inset: 0; }
.cover__art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: coverzoom 14s ease-out both; }
@keyframes coverzoom { from { transform: scale(1.15); } }
.cover__body { position: relative; padding: 64px var(--g) 56px; background: linear-gradient(90deg, rgba(21, 17, 15, .95) 30%, rgba(21, 17, 15, .2)); }
.cover__body > * { animation: rise .9s var(--ease) both; }
.cover__body > *:nth-child(2) { animation-delay: .08s; } .cover__body > *:nth-child(3) { animation-delay: .16s; } .cover__body > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.cover h1 { font: 400 clamp(44px, 6vw, 84px)/.95 var(--f-display); letter-spacing: -.02em; margin: 10px 0 8px; }
.cover__sub { margin: 0 0 26px; color: #b9aea3; }
.state { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: #e0a33a; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.is-open { color: #7fd18b; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.facts li { padding: 0 22px; border-left: 1px solid #3a302c; }
.facts li:first-child { padding-left: 0; border: 0; }
.facts b { display: block; font: 700 26px/1.1 var(--f-cond); color: var(--brass); }
.facts span { font-size: 13px; color: #b9aea3; }

/* ---------- retrait + promo ---------- */
.pickup {
  display: flex; align-items: center; gap: 14px; width: calc(100% - 2 * var(--g)); max-width: 1400px; margin: -22px auto 0; position: relative;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-align: left;
  box-shadow: 0 12px 30px -16px rgba(21, 17, 15, .35);
}
.pickup__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blood); display: grid; place-items: center; flex: none; }
.pickup__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.pickup__txt { flex: 1; min-width: 0; }
.pickup__txt small { display: block; color: var(--muted); font-size: 13px; }
.pickup__txt b { font-size: 17px; }
.pickup__edit { font-weight: 700; color: var(--blood); font-size: 14px; }
.howto { list-style: none; max-width: 1400px; width: calc(100% - 2 * var(--g)); margin: 14px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.howto li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14.5px; color: var(--muted); animation: rise .7s var(--ease) both; }
.howto li:nth-child(2) { animation-delay: .1s; } .howto li:nth-child(3) { animation-delay: .2s; }
.howto b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.howto strong { color: var(--ink); }
.pickup__txt small:last-child { margin-top: 2px; line-height: 1.35; }
.promo-banner { max-width: 1400px; margin: 14px auto 0; width: calc(100% - 2 * var(--g)); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 18px; border-radius: var(--r); background: #f3dfd3; }
.promo-banner span { color: var(--muted); font-size: 14px; flex: 1; }
.promo-banner code { font: 500 13px var(--f-mono); background: #fff; padding: 2px 6px; border-radius: 4px; color: var(--ink); }
.promo-banner button { border: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: 14px; }

/* ---------- rayons ---------- */
.cats {
  position: sticky; top: var(--top); z-index: 30; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin-top: 18px; padding: 10px var(--g); background: rgba(244, 239, 230, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .2s, color .2s; }
.cats a:hover { color: var(--ink); }
.cats a.is-on { background: var(--ink); color: #fff; }

.store__body { max-width: 1400px; margin: 0 auto; padding: 8px var(--g) 120px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.rayon { padding-top: 28px; }
.rayon h2 { font: 400 32px/1 var(--f-display); margin: 0 0 18px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.noresult { padding: 60px 0; text-align: center; color: var(--muted); }

.item.is-in { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }
.item { position: relative; display: grid; grid-template-columns: 1fr 132px; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .25s, transform .25s var(--ease); }
.item:hover { box-shadow: 0 14px 30px -18px rgba(21, 17, 15, .45); transform: translateY(-2px); }
.item__hit { position: absolute; inset: 0; z-index: 1; background: none; border: 0; border-radius: var(--r); }
.item__txt { min-width: 0; }
.item h3 { margin: 2px 0 4px; font: 700 17px/1.25 var(--f-body); }
.item__price { margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.item__price small { color: var(--muted); font-weight: 500; }
.hot { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f3dfd3; color: var(--blood); font-size: 12px; font-weight: 700; }
.item__desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__media { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.item__media .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.item:hover .item__media .art { transform: scale(1.06); }
.item__tag { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.plus {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font: 500 26px/1 var(--f-body); box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  display: grid; place-items: center; transition: transform .2s var(--ease), background .2s;
}
.plus:hover { transform: scale(1.1); background: var(--ink); color: #fff; }
.item--big { grid-template-columns: 1fr; grid-template-rows: auto 1fr; scroll-snap-align: start; }
.item--big .item__media { order: -1; aspect-ratio: 4 / 3; }
.rank { display: inline-block; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blood); }

/* ---------- panier ---------- */
.cart { position: sticky; top: calc(var(--top) + 76px); }
.cart__scrim { display: none; }
.cart__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; max-height: calc(100vh - var(--top) - 96px); overflow: hidden; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.cart__head h2 { margin: 0; font: 400 26px/1 var(--f-display); }
.x { display: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); }
.cart__scroll { overflow-y: auto; padding: 0 20px; flex: 1; overscroll-behavior: contain; }
.cart__foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.cart__foot:empty { display: none; }
.cart__pickup { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0 0 12px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: 14px; font-weight: 600; }
.cart__pickup button { border: 0; background: none; color: var(--blood); font-weight: 700; font-size: 13px; }
.empty { text-align: center; padding: 26px 6px 34px; }
.empty__art { width: 120px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.empty__art .art { width: 100%; height: 100%; }
.empty p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.gift { padding: 12px; border-radius: 10px; background: #f6ecdf; margin-bottom: 6px; font-size: 13.5px; }
.gift p { margin: 0 0 8px; }
.gift__bar { height: 6px; border-radius: 6px; background: #e6d6c1; overflow: hidden; }
.gift__bar i { display: block; height: 100%; background: var(--blood); border-radius: 6px; transition: width .6s var(--ease); }
.gift.is-won { background: var(--ok-bg); }
.gift.is-won .gift__bar i { background: var(--ok); }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line__edit { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 0; text-align: left; }
.line__thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; }
.line__thumb .art { width: 100%; height: 100%; }
.line__txt { min-width: 0; display: grid; }
.line__txt b { font-size: 15px; }
.line__txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.line__txt em { font-style: normal; font-weight: 600; font-size: 14px; margin-top: 2px; }
.line--gift .line__txt em { color: var(--ok); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; font-weight: 600; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.stepper--sm button { width: 30px; height: 30px; font-size: 14px; }
.stepper--sm span { min-width: 20px; font-size: 14px; }

.ups { padding: 16px 0 4px; }
.ups h3 { margin: 0 0 10px; font-size: 15px; }
.ups__rail { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.up { position: relative; display: grid; gap: 2px; text-align: left; padding: 0 0 8px; border: 0; background: none; font-size: 13px; }
.up__art { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 4px; }
.up__art .art { width: 100%; height: 100%; }
.up span { color: var(--muted); }
.up i { position: absolute; right: 6px; top: 58px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }

.promo { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 18px; }
.promo input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 500 14px var(--f-mono); text-transform: uppercase; background: #fff; }
.promo button { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ink); background: none; font-weight: 700; font-size: 14px; }
.promo .err { width: 100%; }
.promo__ok { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 14px; }
.promo__ok button { border: 0; height: auto; padding: 0; text-decoration: underline; color: var(--ok); font-weight: 600; }

.totals { margin: 0 0 14px; display: grid; gap: 6px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .free { color: var(--ok); }
.totals .is-promo dd, .totals .is-promo dt { color: var(--ok); }
.totals .is-total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 17px; }
.totals .is-total dt { color: var(--ink); font-weight: 700; }
.totals .is-total dd { font-weight: 800; }

.cta {
  width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px;
  border: 0; border-radius: 12px; background: var(--blood); color: #fff; font: 700 16px var(--f-body);
  transition: background .2s, transform .15s;
}
.cta:hover:not(:disabled) { background: var(--blood-2); }
.cta:active:not(:disabled) { transform: scale(.985); }
.cta:disabled { opacity: .6; cursor: progress; justify-content: center; }
.cta b { font-weight: 800; }
.err { color: #b42318; font-size: 13.5px; margin: 0 0 10px; min-height: 0; }
.err:empty { display: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* barre panier mobile */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none;
  align-items: center; gap: 12px; height: 58px; padding: 0 18px; border: 0; border-radius: 14px;
  background: var(--blood); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 14px 30px -10px rgba(122, 22, 15, .6);
}
.cartbar span:nth-child(2) { flex: 1; text-align: left; }
.cartbar__n { min-width: 28px; height: 28px; border-radius: 8px; background: rgba(0, 0, 0, .25); display: grid; place-items: center; font-size: 14px; }

/* ---------- sheets (fiche produit, retrait) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(21, 17, 15, .55); opacity: 0; transition: opacity .3s; }
.sheet__panel {
  position: relative; width: min(560px, 100%); max-height: min(860px, calc(100vh - 48px)); display: flex; flex-direction: column;
  background: var(--card); border-radius: 18px; overflow: hidden; opacity: 0; transform: translateY(24px) scale(.98); transition: transform .35s var(--ease), opacity .25s;
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { opacity: 1; transform: none; }
.sheet__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); font-size: 15px; }
.sheet__scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet__media { aspect-ratio: 16 / 9; }
.sheet__media .art { width: 100%; height: 100%; }
.sheet__body { padding: 20px 22px 10px; }
.sheet__body h2 { margin: 0 0 4px; font: 400 32px/1.05 var(--f-display); }
.sheet__meta { margin: 0 0 8px; font-weight: 600; }
.sheet__desc { margin: 0 0 8px; color: var(--muted); }
.sheet__title { margin: 0; padding: 22px 22px 6px; font: 400 30px/1 var(--f-display); }
.sheet--small [data-pickup-sheet] { padding: 6px 22px 18px; }
.sheet__foot { display: flex; gap: 12px; align-items: center; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.sheet__foot .cta { flex: 1; }

.opt { border: 0; margin: 18px 0 0; padding: 0; }
.opt legend { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.opt legend b { font-size: 17px; }
.req { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.opt__hint { font-size: 13px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #f0e9de; cursor: pointer; }
.row input { width: 20px; height: 20px; accent-color: var(--blood); margin: 0; flex: none; }
.row span { flex: 1; font-weight: 500; }
.row small { margin-left: 8px; color: var(--muted); font-weight: 400; font-size: 13px; }
.row em { font-style: normal; color: var(--muted); font-size: 14px; }
.opt--note { display: block; margin: 20px 0 10px; }
.opt--note b { display: block; margin-bottom: 8px; }
.opt--note textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 15px var(--f-body); resize: vertical; background: #fff; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode input, .chip input, .pay input { position: absolute; opacity: 0; pointer-events: none; }
.mode span { display: block; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s; }
.mode b { display: block; font-size: 16px; margin-bottom: 4px; }
.mode small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.mode input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mode input:focus-visible + span, .chip input:focus-visible + span, .pay input:focus-visible + .pay__box { outline: 2px solid var(--blood); outline-offset: 2px; }
.mini { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- paiement ---------- */
.checkout { max-width: 1180px; margin: 0 auto; padding: 0 var(--g) 120px; }
.checkout__bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.back { border: 0; background: none; font-weight: 700; padding: 8px 0; }
.secure { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 600; }
.secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.checkout h1 { font: 400 clamp(34px, 4vw, 48px)/1 var(--f-display); margin: 0 0 20px; letter-spacing: -.01em; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 14px; }
.block h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 19px; }
.block h2 span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: block; }
.f--wide { grid-column: 1 / -1; }
.f span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.f input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font: 500 16px var(--f-body); background: #fff; color: var(--ink); }
.f input:focus { outline: none; border-color: var(--ink); }
.f input.is-bad { border-color: #b42318; background: #fff5f4; }
.pays { display: grid; gap: 10px; }
.pay__box { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 16px 14px 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.pay__box::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #c9beb1; }
.pay input:checked + .pay__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay input:checked + .pay__box::before { border: 6px solid var(--blood); }
.pay__box small { color: var(--muted); font-size: 13px; grid-column: 1; }
.cards { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; gap: 4px; font-style: normal; }
.cards em { font: 700 10px var(--f-mono); font-style: normal; padding: 4px 6px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.pay.is-off { opacity: .5; }
.pay.is-off .pay__box { cursor: not-allowed; }
.cgv { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 18px 0; }
.cgv input { width: 18px; height: 18px; accent-color: var(--blood); margin-top: 2px; }

.summary { position: sticky; top: calc(var(--top) + 16px); }
.summary__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.summary__shop { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.summary__shop .top__mark { color: var(--blood); border-color: var(--blood); }
.summary__shop small { display: block; color: var(--muted); font-size: 13px; }
.summary__lines { list-style: none; margin: 0 0 14px; padding: 0; max-height: 280px; overflow-y: auto; }
.summary__lines li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 8px 0; font-size: 14px; }
.summary__lines .q { font-weight: 700; color: var(--blood); }
.summary__lines small { display: block; color: var(--muted); font-size: 12.5px; }
.summary__lines em { font-style: normal; font-weight: 600; }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--top) + 12px); z-index: 70; display: flex; gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  transform: translate(-50%, -20px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility 0s .35s;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s var(--ease), opacity .25s; }
.toast button { border: 0; background: none; color: var(--brass); font-weight: 700; text-decoration: underline; padding: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .store__body { grid-template-columns: minmax(0, 1fr); }
  .cartbar { display: flex; }
  .cartbar.is-gone { display: none; }
  .cart { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
  .cart__scrim { display: block; position: absolute; inset: 0; background: rgba(21, 17, 15, .55); opacity: 0; transition: opacity .3s; }
  .cart__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .4s var(--ease); }
  .cart.is-open { pointer-events: auto; }
  .cart.is-open .cart__scrim { opacity: 1; }
  .cart.is-open .cart__panel { transform: none; }
  .cart__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .x { display: grid; place-items: center; }
  .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 760px) {
  :root { --top: 60px; }
  html { scroll-padding-top: 116px; }
  .top { gap: 8px; flex-wrap: nowrap; }
  .top__word { display: none; }
  .search { height: 40px; padding: 0 12px; }
  .pill { display: none; }
  .top__cart { height: 40px; padding: 0 12px; }
  .cover__art { opacity: .35; justify-content: center; padding: 0; }
  .cover__body { padding: 34px var(--g) 44px; background: linear-gradient(180deg, rgba(21, 17, 15, .4), var(--ink) 70%); }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .facts li { padding: 0; border: 0; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .item { grid-template-columns: 1fr 104px; padding: 12px; }
  .rail { grid-auto-columns: 72%; }
  .item--big { grid-template-columns: 1fr; }
  .rayon h2 { font-size: 26px; }
  .sheet { padding: 0; align-items: end; }
  .sheet__panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .modes { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .checkout .summary__card .cta { position: sticky; bottom: 12px; }
}

.art { object-fit: cover; display: block; }
.line { animation: rise .4s var(--ease) both; }
.fly { position: fixed; z-index: 90; border-radius: 12px; object-fit: cover; pointer-events: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .howto { grid-template-columns: 1fr; gap: 6px; }
  .howto li { padding: 10px 12px; }
}
.menu .item:not(.is-in) { opacity: 0; }

/* typographie alignée sur l'accueil : pas de capitales espacées */
.top__mark { border: 0; background: var(--blood); color: #fff; border-radius: 9px; }
.top__word { font: 400 24px/1 var(--f-display); text-transform: none; letter-spacing: 0; }
.state { font: 600 14px var(--f-body); text-transform: none; letter-spacing: 0; }
.rank { font: 700 12.5px var(--f-body); text-transform: none; letter-spacing: 0; }
.facts b { font: 700 22px/1.2 var(--f-body); color: #fff; }
.summary__shop .top__mark { color: #fff; }

.modes--3 { grid-template-columns: repeat(3, 1fr); }
.totals .hint { font-size: 13px; }
.totals .hint dt, .totals .hint dd { color: var(--blood); font-weight: 600; }
@media (max-width: 760px) { .modes--3 { grid-template-columns: 1fr; } }
