/* ============================ Polices (fichiers locaux, licence OFL) ============================ */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/polices/Archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/polices/Archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/polices/ArchivoBlack-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/polices/ArchivoBlack-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ============================ Tokens ============================ */
:root {
  --bg: #0B0B1E;
  --panel: #0D0F2B;
  --panel-2: #141739;
  --line: #2A2F66;
  --card-border: #4B2394;
  --text: #FFFFFF;
  --muted: #9AA3E0;
  --dim: #6B73B0;
  --pink: #D9168F;
  --pink-hot: #E0189A;
  --orange: #FF7A1A;
  --yellow: #F5B323;
  --purple: #6A1BB0;
  --ok: #3DDC97;

  --font-display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px);
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ Header ============================ */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  min-height: 104px;
  background: url("../assets/header-bg.webp") center 40% / cover no-repeat, var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(11, 11, 30, .55));
  pointer-events: none;
}
.brand { position: relative; z-index: 1; display: block; }
.brand img { width: clamp(80px, 22vw, 128px); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }

.btn-panier {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px;
  background: var(--bg);
  border: 2px solid #fff;
  border-radius: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  isolation: isolate;
  transition: transform .15s var(--ease);
}
.btn-panier::after {
  content: "";
  position: absolute; inset: -2px;
  transform: translate(5px, 5px);
  background: linear-gradient(90deg, var(--orange), var(--pink-hot));
  z-index: -2;
}
.btn-panier::before {
  content: ""; position: absolute; inset: 0; background: var(--bg); z-index: -1;
}
.btn-panier:active { transform: translate(3px, 3px); }
.badge-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px;
  background: #fff; color: var(--bg);
  font-size: 12px; letter-spacing: 0;
}
.btn-panier.bump .badge-count { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ============================ Tabs ============================ */
.tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 10px;
  padding: 12px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overscroll-behavior-x: contain;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: #CDD3FF;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.tab.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ============================ Category hero ============================ */
.cat { padding: 8px var(--gutter) 12px; }
.cat-hero { position: relative; text-align: center; padding: 34px 0 6px; }
.cat-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 13.5vw, 84px);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 7px #07071A;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 #07071A;
  transform: rotate(-3deg);
}
.cat-title span { display: block; }
.cat-title span:nth-child(2) { margin-left: .2em; }
/* Coup de pinceau derrière le titre : un trait pour un mot, deux traits pour deux mots */
.cat-title::before {
  content: "";
  position: absolute;
  background: center / 100% 100% no-repeat;
  z-index: -1;
  pointer-events: none;
}
.cat-title--1::before {
  background-image: url("../assets/pinceau-1-mot.webp");
  left: -24%; right: -24%; top: -18%; bottom: -34%;
}
.cat-title--2::before {
  background-image: url("../assets/pinceau-2-mots.webp");
  left: -20%; right: -20%; top: -6%; bottom: -16%;
}
.cat-hero { isolation: isolate; }
main { overflow-x: clip; max-width: 1180px; margin: 0 auto; }
@media (min-width: 760px) { .topbar { padding-inline: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))); } }
.cat-tag {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px;
  margin: 22px 0 0;
  font-weight: 800; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap;
}
.cat-tag span + span::before { content: "·"; margin-right: 12px; color: var(--muted); }
@media (min-width: 420px) { .cat-tag { font-size: 12px; letter-spacing: .3em; gap: 6px 18px; } .cat-tag span + span::before { margin-right: 18px; } }

/* ============================ Product grid ============================ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1.5px solid var(--card-border);
  min-width: 0;
}
.card-media {
  position: relative;
  aspect-ratio: 1 / .86;
  background: url("../assets/card-bg.webp") center 40% / cover no-repeat;
  overflow: hidden;
  border: 0; padding: 0; width: 100%;
}
.card-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to bottom, rgba(13,15,43,0), var(--panel));
}
.card-media img {
  position: absolute; z-index: 1;
  left: 50%; bottom: 6%;
  width: 92%; height: 86%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.45));
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 6px 14px 14px; }
.badge {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: var(--yellow);
  color: #120A00;
  font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.card-name {
  margin: 0 0 8px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(17px, 4.6vw, 22px); line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.card-foot { margin-top: auto; padding-top: 14px; }
.card-price {
  display: flex; align-items: baseline; gap: 6px;
  padding-top: 12px; margin: 0 0 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(20px, 5.4vw, 26px);
}
.card-price small { font-family: var(--font); font-weight: 700; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.btn-add, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 13px 10px;
  border: 0; border-radius: 3px;
  background: var(--pink);
  color: #fff;
  font-weight: 800; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  transition: filter .15s, transform .15s var(--ease);
}
.btn-add:hover, .btn-primary:hover { filter: brightness(1.1); }
.btn-add:active, .btn-primary:active { transform: scale(.98); }
.btn-add svg, .btn-primary svg { width: 18px; height: 18px; flex: none; }
.btn-primary[disabled] { background: #3A2E5E; color: #A89CC9; cursor: not-allowed; filter: none; }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--line); border-radius: 3px;
  padding: 12px 14px; color: #CDD3FF; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}

.rows {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px;
  margin-top: 24px;
}
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px;
  background: var(--panel);
  border: 1.5px solid var(--card-border);
  border-left: 4px solid var(--pink-hot);
}
.row:nth-child(3n+2) { border-left-color: var(--orange); }
.row:nth-child(3n) { border-left-color: var(--purple); }
.row-name { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.row-price { font-family: var(--font-display); font-size: 16px; }
.row-add {
  flex: none; width: 40px; height: 40px;
  border: 0; border-radius: 3px;
  background: var(--pink); color: #fff;
  font-size: 24px; font-weight: 700; line-height: 1;
}
.row-add:active { transform: scale(.94); }

.empty-cat {
  margin-top: 22px; padding: 26px 18px;
  border: 1.5px dashed var(--line);
  text-align: center; color: var(--muted);
}
.empty-cat strong { display: block; color: #fff; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

/* ============================ Bottom nav ============================ */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--bg);
  border-top: 1px solid var(--line);
  transform: translateZ(0);
}
.bottom-nav button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0;
  color: var(--dim);
  font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.bottom-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav .is-active { color: #fff; }
.bottom-nav .is-active svg { stroke: var(--pink-hot); }
.bottom-nav .is-active::after {
  content: ""; position: absolute; bottom: 8px; left: 50%; width: 52px; height: 3px;
  transform: translateX(-50%); background: var(--pink-hot); border-radius: 2px;
}

/* ============================ Pages (suivi / compte) ============================ */
.view { min-height: 50vh; }
.page-head { padding: 28px var(--gutter) 6px; }
.page-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400; font-size: 40px; text-transform: uppercase; line-height: 1;
}
.page-sub { margin: 8px 0 0; color: var(--muted); }
.panel {
  margin: 18px var(--gutter) 0;
  padding: 18px;
  background: var(--panel);
  border: 1.5px solid var(--card-border);
}
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #CDD3FF; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  color: #fff;
  font: inherit; font-size: 16px;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--pink-hot); outline: none; }
.field input:user-invalid { border-color: #FF5470; }

.order {
  margin: 16px var(--gutter) 0; padding: 16px;
  background: var(--panel); border: 1.5px solid var(--card-border);
}
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order-num { font-family: var(--font-display); font-size: 20px; }
.order-meta { color: var(--muted); font-size: 13px; }
.order-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 12px 0; padding: 6px 10px;
  background: rgba(61, 220, 151, .12); color: var(--ok);
  font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.order-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.order-status.is-cancel { background: rgba(255, 84, 112, .12); color: #FF7C93; }
.order-line { margin: 0 0 10px; }
.steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.steps li { padding-top: 8px; border-top: 4px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; }
.steps li.done { border-top-color: var(--pink-hot); color: #fff; }
.order ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.order-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-weight: 800; }
.empty-page { margin: 28px var(--gutter); padding: 28px 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); }
.empty-page .btn-primary { margin-top: 16px; width: auto; padding: 13px 22px; }
.info-list { display: grid; gap: 10px; margin: 0; }
.info-list dt { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list dd { margin: 2px 0 0; }

/* ============================ Sheets ============================ */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 12, .72); animation: fade .2s ease; }
.sheet-panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px;
  max-height: 92vh; max-height: 92dvh;
  background: var(--panel);
  border: 1.5px solid var(--card-border); border-bottom: 0;
  animation: up .28s var(--ease);
}
.sheet-panel.tall { height: 92vh; height: 92dvh; }
@media (min-width: 760px) {
  .sheet { align-items: center; }
  .sheet-panel { border-bottom: 1.5px solid var(--card-border); max-height: 88vh; }
  .sheet-panel.tall { height: auto; min-height: 60vh; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%; border: 0;
  background: rgba(11, 11, 30, .8); color: #fff;
  font-size: 26px; line-height: 1;
}
.ps-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.ps-footer {
  display: flex; gap: 12px; align-items: center;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.ps-footer.col { flex-direction: column; align-items: stretch; }
.grow { flex: 1; }

.ps-media { position: relative; aspect-ratio: 16 / 10; background: url("../assets/card-bg.webp") center 45% / cover; }
.ps-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--panel)); }
.ps-media img { position: absolute; z-index: 1; left: 50%; bottom: 6%; height: 88%; width: 80%; object-fit: contain; transform: translateX(-50%); }
.ps-head { padding: 4px var(--gutter) 6px; }
.ps-head h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; }
.ps-head p { margin: 0; color: var(--muted); }

.opt-group { margin: 18px var(--gutter) 0; border: 0; padding: 0; min-width: 0; }
.opt-group legend {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; padding: 0 0 10px;
  font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.opt-rule { font-size: 11px; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.opt-rule.req { background: rgba(217, 22, 143, .18); color: #FF7CC8; }
.opt-rule.ok { background: rgba(61, 220, 151, .12); color: var(--ok); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--line); border-radius: 3px;
  background: var(--bg);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-price { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--pink-hot); background: rgba(217, 22, 143, .14); }
.opt:has(input:checked) .opt-price { color: #FF9AD5; }
.opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.opt:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }

.note-field { margin: 18px var(--gutter) 0; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 3px; }
.stepper button { width: 42px; height: 46px; border: 0; background: none; font-size: 22px; font-weight: 700; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.sm button { width: 34px; height: 34px; font-size: 18px; }

/* ============================ Cart ============================ */
.cart-head { padding: 22px var(--gutter) 8px; }
.cart-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; text-transform: uppercase; }
.cart-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.line-name { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.line-opts { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.line-price { font-weight: 800; text-align: right; }
.line-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 6px 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px var(--gutter) 0; }
.seg label { text-align: center; }
.totals { margin: 16px var(--gutter) 0; display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--font-display); font-size: 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.notice { margin: 14px var(--gutter) 0; padding: 12px 14px; border-left: 3px solid var(--yellow); background: rgba(245,179,35,.08); color: #F7D27A; font-size: 13px; }
.form-pad { padding: 4px var(--gutter) 0; }
.success { padding: 40px var(--gutter) 10px; text-align: center; }
.success .big { font-family: var(--font-display); font-size: 34px; text-transform: uppercase; line-height: 1; margin: 14px 0 8px; }
.success .check { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--pink); }
.success .check svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ Toast ============================ */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 60;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: #fff; color: var(--bg);
  font-weight: 800; font-size: 14px;
  box-shadow: 5px 5px 0 var(--pink-hot);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.locked { overflow: hidden; }

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

/* ============================ État du restaurant ============================ */
/* Bandeau d'état : badge néon ouvert/fermé + zone de livraison */
.statut {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s;      /* invisible tant que l'état n'est pas lu */
}
.statut.is-ready { opacity: 1; }
@media (min-width: 760px) { .statut { justify-content: center; gap: 28px; } }

.statut-pill {
  --c: var(--ok);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px 7px 9px;
  border: 2px solid var(--c);
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--c) 18%, transparent);
  white-space: nowrap;
}
.statut-pill.is-closed { --c: #FF4D6D; }
.statut-texte { display: grid; line-height: 1.1; }
.statut-texte b {
  font-weight: 800; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent);
}
.statut-texte small { margin-top: 2px; font-size: 11px; font-weight: 700; color: #fff; opacity: .85; letter-spacing: .04em; }
.statut-point {
  position: relative; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.statut-pill.is-open .statut-point::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--c);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }

.statut-livraison { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.statut-livraison[hidden] { display: none; }
.statut-livraison svg {
  flex: none; width: 21px; height: 21px;
  fill: none; stroke: var(--pink-hot); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(224, 24, 154, .55));
}
.statut-livraison > span { display: grid; line-height: 1.15; }
.statut-livraison small { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.statut-livraison b { font-family: var(--font-display); font-weight: 400; font-size: 14px; white-space: nowrap; }
@media (min-width: 420px) {
  .statut-texte b { font-size: 12px; letter-spacing: .12em; }
  .statut-pill { padding: 8px 16px 8px 12px; }
  .statut-livraison b { font-size: 15px; }
  .statut-livraison small { font-size: 10px; letter-spacing: .16em; }
}
.statut-livraison.is-paused svg { stroke: var(--yellow); filter: none; }
.statut-livraison.is-paused b { color: var(--yellow); }

.card.is-off, .row.is-off { opacity: .45; }
.card.is-off .btn-add, .row.is-off .row-add { background: #3A2E5E; cursor: not-allowed; }
.line.is-off .line-name { text-decoration: line-through; }
.line-off { margin: 4px 0 0; color: #FF7C93; font-size: 13px; font-weight: 700; }
.success .page-sub + .page-sub { margin-top: 10px; }
/* Champ piège pour les robots : hors de l'écran, jamais vu ni lu */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
