/* RED SEA — click & collect
   Couleurs et polices reprises des étiquettes : rouge hibiscus à facettes, sable, or ; Lora + Work Sans. */

@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 700; font-display: swap; src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/lora-latin-600-italic.woff2") format("woff2"); }

:root {
  --hibiscus: #7C0008;
  --sang: #520005;
  --vif: #BE2834;
  --qr: #6B0A10;
  --sable: #F3E7D3;
  --sable-clair: #FBF6EC;
  --papier: #FFFFFF;
  --ligne: #E4D5BB;
  --or: #C99A2E;
  --or-texte: #8A6412;
  --encre: #2B1215;
  --encre-2: #6F5557;
  --vert: #1E6B3C;
  --vert-fond: #E3F1E6;
  --gris-fond: #EFE7DA;

  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --rail: 96px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.45; color: var(--encre);
  background: var(--sable-clair); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--hibiscus); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ─── Structure ─────────────────────────────────────────────────────── */

.app { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "view" "nav"; }
.boot { grid-area: view; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--hibiscus); font-family: var(--serif); font-weight: 600; letter-spacing: .22em; }

.top {
  grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(8px + var(--safe-t)) 12px 8px 14px; color: var(--sable);
  background: var(--sang) url("../icons/facettes.svg") center / cover;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; background: var(--sable); display: grid; place-items: center; flex: none; }
.brand__logo img { width: 30px; height: auto; display: block; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .2em; }
.top__actions { display: flex; align-items: center; gap: 4px; }

.iconbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.iconbtn:hover { background: rgba(255, 255, 255, .12); }
.iconbtn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--or); color: var(--sang); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }

.nav { grid-area: nav; display: flex; background: var(--papier); border-top: 1px solid var(--ligne); padding-bottom: var(--safe-b); }
.nav__item { flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--encre-2); text-decoration: none; font-size: .74rem; font-weight: 500; }
.nav__item svg { width: 24px; height: 24px; }
.nav__item.is-active { color: var(--hibiscus); font-weight: 700; }
.nav__item.is-active svg { stroke-width: 2.3; }

.view { grid-area: view; min-height: 0; overflow: auto; position: relative; }
.view--map { overflow: hidden; }

@media (min-width: 960px) {
  .app { grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top view" "nav view"; }
  .app::before { content: ""; grid-column: 1; grid-row: 1 / -1; background: var(--sang) url("../icons/facettes.svg") center / cover; }
  .top, .nav { grid-column: 1; background: none; border: 0; z-index: 1; }
  .top { grid-row: 1; flex-direction: column; padding: 18px 0 8px; gap: 10px; }
  .brand { flex-direction: column; gap: 8px; }
  .brand__logo { width: 56px; height: 56px; }
  .brand__logo img { width: 42px; }
  .brand__name { font-size: .78rem; letter-spacing: .18em; }
  .nav { grid-row: 2; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 8px 16px; }
  .nav__item { flex: none; min-height: 66px; border-radius: var(--r-m); color: rgba(243, 231, 211, .78); }
  .nav__item:hover { background: rgba(255, 255, 255, .08); }
  .nav__item.is-active { background: var(--sable); color: var(--sang); }
  .view { grid-row: 1 / -1; }
}

/* ─── Boutons, champs, pastilles ────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border: 1.5px solid var(--hibiscus); border-radius: var(--r-m); background: var(--hibiscus); color: #fff;
  font-weight: 600; text-decoration: none; text-align: center; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--sang); border-color: var(--sang); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; color: var(--hibiscus); }
.btn--ghost:hover { background: rgba(124, 0, 8, .07); color: var(--sang); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--hibiscus); padding: 0 10px; min-height: 44px; }
.btn--quiet:hover { background: rgba(124, 0, 8, .07); border-color: transparent; }
.btn--ok { background: var(--vert); border-color: var(--vert); }
.btn--ok:hover { background: #17552F; border-color: #17552F; }
.btn--small { min-height: 40px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--gris-fond); border-color: var(--gris-fond); color: var(--encre-2); cursor: not-allowed; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1 1 150px; }
.stack { display: grid; gap: 10px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field__label { font-size: .9rem; font-weight: 600; }
.field__hint { font-size: .84rem; color: var(--encre-2); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ligne); border-radius: 12px;
  background: var(--papier); font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--hibiscus); box-shadow: 0 0 0 3px rgba(124, 0, 8, .14); }
.input--code { font-weight: 700; font-size: 1.3rem; letter-spacing: .22em; text-transform: uppercase; text-align: center; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hibiscus); flex: none; }
.formerror { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #FBE6E4; color: #7A1016; font-size: .93rem; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--gris-fond); color: var(--encre-2); white-space: nowrap; }
.chip--ok { background: var(--vert-fond); color: var(--vert); }
.chip--red { background: #F7DEDB; color: var(--hibiscus); }
.chip--gold { background: #F6EBCF; color: var(--or-texte); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.muted { color: var(--encre-2); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ─── Carte + panneau ───────────────────────────────────────────────── */

.mapview { height: 100%; display: grid; grid-template-rows: minmax(210px, 42%) minmax(0, 1fr); }
.map { background: #E9E1D2; min-height: 0; z-index: 0; }
.panel { min-height: 0; overflow: auto; background: var(--sable-clair); border-top: 1px solid var(--ligne); -webkit-overflow-scrolling: touch; }
.panel__inner { padding: 16px 16px 28px; max-width: 560px; margin: 0 auto; }
@media (min-width: 960px) {
  .mapview { grid-template-rows: minmax(0, 1fr); grid-template-columns: 420px minmax(0, 1fr); }
  .map { grid-column: 2; grid-row: 1; }
  .panel { grid-column: 1; grid-row: 1; border-top: 0; border-right: 1px solid var(--ligne); }
  .panel__inner { padding: 26px 24px 32px; }
}
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-bar a { color: var(--sang); }

.pin { position: relative; width: 40px; height: 48px; filter: drop-shadow(0 3px 3px rgba(43, 18, 21, .35)); transition: transform .15s; transform-origin: 50% 100%; }
.pin::before { content: ""; position: absolute; left: 3px; top: 1px; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--hibiscus); border: 2px solid var(--sable); transform: rotate(-45deg); transform-origin: 50% 50%; }
.pin span { position: absolute; left: 0; right: 0; top: 8px; text-align: center; color: #fff; font-weight: 700; font-size: .95rem; line-height: 20px; }
.pin--empty::before { background: #8D7F78; }
.pin--sel { transform: scale(1.22); z-index: 2; }
.pin--sel::before { border-color: var(--or); border-width: 3px; left: 2px; top: 0; }
.me { width: 18px; height: 18px; border-radius: 50%; background: #2A6FDB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(42, 111, 219, .22); }

.listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.h-page { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
.lede { color: var(--encre-2); margin-bottom: 16px; }

.shoplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shopcard {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; text-align: left;
  padding: 14px 16px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-m);
}
.shopcard:hover { border-color: var(--hibiscus); }
.shopcard__name { font-weight: 600; font-size: 1.04rem; }
.shopcard__addr { grid-column: 1; color: var(--encre-2); font-size: .9rem; }
.shopcard__status { grid-column: 1; font-size: .88rem; }
.stock { grid-column: 2; grid-row: 1 / span 3; display: grid; justify-items: center; min-width: 62px; padding: 6px 8px; border-radius: 12px; background: var(--sable); color: var(--sang); }
.stock b { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; font-weight: 600; }
.stock span { font-size: .7rem; font-weight: 500; }
.stock--empty { background: var(--gris-fond); color: var(--encre-2); }
.is-open { color: var(--vert); font-weight: 600; }
.is-closed { color: var(--encre-2); font-weight: 600; }

.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 4px -8px; padding: 0 10px 0 4px; border: 0; background: none; color: var(--hibiscus); font-weight: 600; text-decoration: none; border-radius: 10px; }
.back svg { width: 20px; height: 20px; }
.shop__name { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.15; margin-bottom: 6px; }
.shop__addr { color: var(--encre-2); }
.shop__status { margin: 6px 0 16px; font-size: .95rem; }

.buy { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 16px; margin-bottom: 12px; }
.buy__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.buy__stock { display: flex; align-items: baseline; gap: 8px; }
.buy__stock b { font-family: var(--serif); font-size: 2.3rem; line-height: 1; font-weight: 600; color: var(--hibiscus); }
.buy__price { text-align: right; font-size: .9rem; color: var(--encre-2); }
.buy__price b { display: block; font-size: 1.1rem; color: var(--encre); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ligne); border-radius: 12px; background: var(--sable-clair); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; display: grid; place-items: center; color: var(--hibiscus); border-radius: 10px; }
.stepper button[disabled] { color: #C9BBA6; cursor: default; }
.stepper button svg { width: 20px; height: 20px; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 1.15rem; }
.buy__note { margin-top: 10px; font-size: .88rem; color: var(--encre-2); }
.buy__note--warn { color: #7A1016; }

.hours { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .93rem; }
.hours th { text-align: left; font-weight: 500; padding: 5px 0; width: 104px; color: var(--encre-2); }
.hours td { padding: 5px 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--encre); }
.h-section { font-size: 1rem; font-weight: 700; margin: 22px 0 6px; }

/* ─── Pages simples ─────────────────────────────────────────────────── */

.page { max-width: 620px; margin: 0 auto; padding: 22px 16px 40px; }
@media (min-width: 960px) { .page { padding: 40px 24px 56px; } }
.card { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-m); padding: 16px; margin-bottom: 12px; }
.card__title { font-weight: 700; margin-bottom: 8px; }
.empty { text-align: center; padding: 34px 20px; }
.empty img { width: 96px; opacity: .9; margin-bottom: 12px; }
.empty p { color: var(--encre-2); margin: 6px auto 18px; max-width: 34ch; }

.orderrow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; text-align: left; padding: 14px 16px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-m); margin-bottom: 10px; color: inherit; text-decoration: none; }
a.orderrow:hover { border-color: var(--hibiscus); }
.orderrow__title { font-weight: 600; }
.orderrow__sub { grid-column: 1; color: var(--encre-2); font-size: .9rem; }
.orderrow__side { grid-column: 2; grid-row: 1 / span 2; text-align: right; }

/* ─── Ticket de commande (QR) ───────────────────────────────────────── */

.ticket { max-width: 400px; margin: 0 auto 16px; border-radius: var(--r-l); background: var(--papier); box-shadow: 0 10px 30px -12px rgba(82, 0, 5, .45), 0 0 0 1px var(--ligne); overflow: hidden; }
.ticket__head { padding: 16px 20px 18px; color: var(--sable); background: var(--sang) url("../icons/facettes.svg") center / cover; }
.ticket__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ticket__qty { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.1; }
.ticket__price { font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.ticket__shop { margin-top: 4px; font-size: 1rem; opacity: .95; }
.ticket__cut { position: relative; height: 18px; background: var(--papier); }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--sable-clair); box-shadow: inset 0 0 0 1px var(--ligne); }
.ticket__cut::before { left: -11px; }
.ticket__cut::after { right: -11px; }
.ticket__cut i { position: absolute; left: 22px; right: 22px; top: 0; border-top: 2px dashed var(--ligne); }
.ticket__body { padding: 0 20px 18px; text-align: center; }
.qrbtn { display: block; width: 100%; max-width: 252px; margin: 0 auto; padding: 0; border: 0; background: #fff; border-radius: 8px; }
.qrbtn canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.ticket__code { margin-top: 4px; font-weight: 700; font-size: 1.35rem; letter-spacing: .22em; color: var(--sang); }
.ticket__codehint { font-size: .82rem; color: var(--encre-2); }
.ticket__timer { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sable); }
.ticket__timer b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--sang); }
.ticket__timer.is-urgent b { color: var(--vif); }
.ticket__state { padding: 26px 0 6px; }
.ticket__state svg { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--vert-fond); color: var(--vert); margin-bottom: 10px; }
.ticket__state--off svg { background: var(--gris-fond); color: var(--encre-2); }
.ticket__state b { display: block; font-size: 1.15rem; }

.qrfull { position: fixed; inset: 0; z-index: 5000; background: #fff; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: calc(16px + var(--safe-t)) 16px calc(20px + var(--safe-b)); border: 0; width: 100%; }
.qrfull canvas { width: min(94vw, 72vh); height: auto; image-rendering: pixelated; }
.qrfull__foot { text-align: center; color: var(--sang); }
.qrfull__foot b { display: block; font-size: 1.7rem; letter-spacing: .24em; }

/* ─── Scanner commerçant ────────────────────────────────────────────── */

.scan { position: relative; max-width: 440px; margin: 0 auto 14px; aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: #1c0f10; }
.scan video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan__frame { position: absolute; inset: 15%; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(28, 15, 16, .45); border: 3px solid var(--sable); pointer-events: none; }
.scan__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: var(--sable); }
.scan__msg svg { width: 44px; height: 44px; }
.result { max-width: 440px; margin: 0 auto 14px; border-radius: var(--r-l); padding: 20px; background: var(--papier); border: 2px solid var(--ligne); }
.result--ok { border-color: var(--vert); }
.result--no { border-color: var(--vif); }
.result__state { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.result__state svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; flex: none; }
.result--ok .result__state { color: var(--vert); }
.result--ok .result__state svg { background: var(--vert-fond); }
.result--no .result__state { color: #7A1016; }
.result--no .result__state svg { background: #F7DEDB; }
.result__name { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; line-height: 1.15; }
.result__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 16px; }
.fact { padding: 10px 12px; border-radius: 12px; background: var(--sable-clair); }
.fact span { display: block; font-size: .8rem; color: var(--encre-2); }
.fact b { font-size: 1.2rem; }
.manual { max-width: 440px; margin: 0 auto; }
.manual form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* ─── Admin ─────────────────────────────────────────────────────────── */

.admin-shop__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.admin-shop__nums { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline .input { width: 96px; min-height: 40px; padding: 6px 10px; }
.codes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.codes li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; background: var(--sable-clair); border-radius: 10px; }
.codes code { font-family: var(--sans); font-weight: 700; letter-spacing: .08em; }
.hoursgrid { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px; align-items: center; margin-bottom: 14px; }
.hoursgrid .input { min-height: 40px; padding: 6px 10px; font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ─── Fenêtres, notifications, messages ─────────────────────────────── */

.dlg { width: min(100%, 460px); max-width: 100%; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--sable-clair); color: var(--encre); overflow: auto; }
.dlg::backdrop { background: rgba(43, 18, 21, .55); }
.dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 8px 20px; background: var(--sable-clair); }
.dlg__title { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.dlg__head .iconbtn:hover { background: rgba(124, 0, 8, .08); }
.dlg__body { padding: 6px 20px calc(22px + var(--safe-b)); }
.dlg__body p + p { margin-top: 8px; }
.dlg__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dlg__actions .btn { flex: 1 1 140px; }
@media (min-width: 620px) { .dlg { margin: auto; border-radius: var(--r-l); } .dlg--wide { width: min(100%, 560px); } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--sable); border-radius: 12px; }
.tabs button { min-height: 42px; border: 0; border-radius: 9px; background: none; font-weight: 600; color: var(--encre-2); }
.tabs button[aria-selected="true"] { background: var(--papier); color: var(--sang); box-shadow: 0 1px 2px rgba(43, 18, 21, .12); }

.recap { display: grid; gap: 8px; margin: 4px 0 4px; padding: 14px; border-radius: 12px; background: var(--papier); border: 1px solid var(--ligne); }
.recap__line { display: flex; justify-content: space-between; gap: 12px; }
.recap__line b { text-align: right; }

.notif { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.notif:last-child { border-bottom: 0; }
.notif__title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.notif__title .dot { color: var(--vif); }
.notif__time { font-size: .8rem; color: var(--encre-2); margin-top: 2px; }

.toasts { position: fixed; z-index: 4000; left: 12px; right: 12px; bottom: calc(74px + var(--safe-b)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { max-width: 440px; padding: 12px 16px; border-radius: 12px; background: var(--encre); color: #fff; font-size: .95rem; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); animation: toast-in .18s ease-out; }
.toast--error { background: #7A1016; }
.toast--ok { background: var(--vert); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 960px) { .toasts { bottom: 24px; left: calc(var(--rail) + 12px); } }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #F6EBCF; color: #5C430B; font-size: .92rem; margin-bottom: 14px; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.demo-flag { position: absolute; z-index: 800; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--encre); color: #fff; font-size: .75rem; font-weight: 600; pointer-events: none; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.kv dt { color: var(--encre-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.steps { margin: 8px 0 0; padding-left: 20px; }
.steps li { margin-bottom: 4px; }

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