/* QENTINA — app client. Charte : /shared/brand.css (papier, bleu-canard, Fraunces + Inter). */

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
body.has-cartbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
html.has-sheet body { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.noscript { padding: 24px; text-align: center; }
#main { outline: none; }

/* Titres */
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--ink); font-optical-sizing: auto; }
.h1 { font-size: clamp(28px, 6.4vw, 40px); line-height: 1.1; font-weight: 500; }
.h2 { font-size: clamp(23px, 4.6vw, 28px); line-height: 1.2; }
.h3 { font-size: 20px; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--terra); font-weight: 500; }
.kicker { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }

/* ───────── Boutons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--pill); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, border-color .2s; text-align: center; -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(15, 84, 96, .25); }
.btn--primary:hover:not(:disabled) { background: var(--terra-deep); }
.btn--primary[aria-disabled="true"] { background: #7f9ea3; box-shadow: none; }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--terra); color: var(--terra); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--terra-tint); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-txt { color: var(--danger); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 17px; padding: 0 26px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; }
.btn.is-busy { opacity: .9; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
p .link, .muted .link { display: inline; min-height: 0; padding: 0; }
.link { background: none; border: 0; padding: 6px 2px; color: var(--terra); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.iconbtn {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--white);
  border: 1px solid var(--line); color: var(--ink); position: relative; text-decoration: none; transition: border-color .2s, color .2s;
}
.iconbtn:hover { border-color: var(--terra); color: var(--terra); }
.iconbtn--sm { width: 44px; height: 44px; }
.iconbtn--float { position: absolute; top: 14px; right: 14px; z-index: 3; box-shadow: var(--shadow); border: 0; }
.iconbtn .dot { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--olive); border: 2px solid var(--white); }

/* ───────── Barre haute ───────── */
.topbar { position: relative; z-index: 40; background: rgba(244, 236, 217, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.topbar__in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand seg acc" "where where where"; gap: 10px 10px; align-items: center; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .04em; }
.seg--top { grid-area: seg; justify-self: end; }
.iconbtn#accountBtn { grid-area: acc; justify-self: end; }
.where {
  grid-area: where; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; width: 100%; min-width: 0;
  border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); text-align: left; font-weight: 500;
}
.where:hover { border-color: var(--terra); }
.where__ico { color: var(--terra); display: grid; flex: none; }
.where__txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where__a { font-weight: 600; }
.where__t { color: var(--terra); font-weight: 600; }
.where__chev { flex: none; display: grid; color: var(--ink-soft); }
body:not([data-view="menu"]) .seg--top, body:not([data-view="menu"]) .where { display: none; }
body:not([data-view="menu"]) .topbar__in { grid-template-areas: "brand seg acc"; }

/* Segmenté */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: var(--pill); padding: 4px; gap: 0; isolation: isolate; }
.seg::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--pill); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.seg[data-active="pickup"]::before { transform: translateX(100%); }
.seg:has(.seg__btn[hidden])::before { width: calc(100% - 8px); transform: none; }
.seg:has(.seg__btn[hidden]) { grid-template-columns: 1fr; }
.seg__btn { min-height: 44px; padding: 0 14px; border: 0; background: transparent; border-radius: var(--pill); font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 15px; }
.seg__btn[aria-checked="true"] { color: var(--terra-deep); }
.seg--block { display: grid; width: 100%; }
.seg--block .seg__btn { min-height: 52px; font-size: 16px; }

/* ───────── Vues ───────── */
.view { max-width: 1160px; margin: 0 auto; padding: 0 16px 32px; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.view.view--in { opacity: 1; transform: none; }
.pagehead { display: flex; align-items: center; gap: 14px; padding: 18px 0 14px; }
.pagehead .h1 { font-size: clamp(27px, 6vw, 36px); }
.pagehead .muted { margin: 2px 0 0; }
.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.card + .card, .card + section, section + .card { margin-top: 14px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card > .h3 { margin-bottom: 14px; }
.state { text-align: center; padding: 56px 16px; max-width: 520px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; color: var(--ink-soft); }
.state .h1 { color: var(--ink); }
.state p { margin: 0; font-size: 17px; }
.state .ico { color: var(--terra); }

/* ───────── Accueil ───────── */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 14px; }
.hero { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.hero__cover { aspect-ratio: 16 / 7; overflow: hidden; background: var(--paper-2); }
.hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero__body { display: flex; gap: 16px; padding: 0 20px 20px; align-items: flex-start; }
.hero__logo { width: 84px; height: 84px; border-radius: 18px; border: 4px solid var(--white); box-shadow: var(--shadow); margin-top: -42px; flex: none; background: var(--white); position: relative; }
.hero__txt { padding-top: 14px; min-width: 0; }
.hero__meta { margin: 8px 0 0; color: var(--ink-soft); }
.status-wrap { margin-top: 14px; }
.status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 18px; border-radius: var(--radius); background: var(--olive-tint); border: 1px solid rgba(95, 122, 78, .25); }
.status--closed { background: #f6ead2; border-color: rgba(200, 144, 47, .4); }
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); flex: none; }
.status--open .status__dot { background: var(--olive); }
.status__dot--live { box-shadow: 0 0 0 0 rgba(95, 122, 78, .5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(95, 122, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 122, 78, 0); } }
.status__txt { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.status__txt strong { font-weight: 600; }
.status__txt span { color: var(--ink-soft); font-size: 15px; }

.ongoing { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--terra); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.ongoing--urgent { background: var(--terra-deep); animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 6% { transform: translateY(-2px); } 12% { transform: none; } }
.ongoing__ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; }
.ongoing__t { flex: 1; min-width: 0; display: grid; }
.ongoing__t span { opacity: .9; font-size: 15px; }
.ongoing__chev { display: grid; }

/* Catégories collantes */
.chips { position: sticky; top: 0; z-index: 30; margin: 18px -16px 0; padding: 8px 0; background: rgba(244, 236, 217, .96); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.chips.is-stuck { box-shadow: 0 8px 16px -12px rgba(23, 48, 51, .35); }
.chips__in { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; scroll-behavior: smooth; }
.chips__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white);
  font-weight: 600; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--terra); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.cat { padding-top: 22px; }
.cat .h2 { margin-bottom: 14px; outline: none; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Carte produit */
.pcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 14px; padding: 14px; min-height: 144px;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line); }
.pcard:active { transform: scale(.995); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard__name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; display: flex; align-items: center; gap: 6px; }
.pcard__open { all: unset; cursor: pointer; }
.pcard__open:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.pcard__desc { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.price { font-weight: 600; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price--lg { font-size: 20px; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); background: rgba(200, 144, 47, .18); color: #6d4a10; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.badge--out { background: rgba(23, 48, 51, .1); color: var(--ink-soft); }
.tag { display: inline-flex; padding: 3px 10px; border-radius: var(--pill); background: var(--terra-tint); color: var(--terra-deep); font-size: 13.5px; font-weight: 600; }
.pork { display: inline-grid; color: #b0606a; flex: none; }
.pcard__media { position: relative; width: 116px; height: 116px; align-self: center; }
.pcard__img, .pcard__media .ph { width: 116px; height: 116px; border-radius: 14px; object-fit: cover; background: var(--paper-2); }
.pcard__add {
  position: absolute; right: -6px; bottom: -6px; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--white); color: var(--terra); box-shadow: 0 4px 14px rgba(23, 48, 51, .2); transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.pcard__add:hover:not(:disabled) { background: var(--terra); color: #fff; }
.pcard__add.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); background: var(--terra); color: #fff; } }
.pcard__qty { position: absolute; top: -6px; left: -6px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--pill); background: var(--terra); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pcard--compact { grid-template-columns: minmax(0, 1fr) 76px; min-height: 104px; }
.pcard--compact .pcard__media, .pcard--compact .pcard__img, .pcard--compact .pcard__media .ph { width: 76px; height: 76px; }
.pcard--compact .ph__ico svg { width: 24px; height: 24px; }
.pcard.is-out { cursor: default; }
.pcard.is-out .pcard__body, .pcard.is-out .pcard__img, .pcard.is-out .ph { opacity: .55; filter: grayscale(1); }
.pcard.is-out .pcard__add { opacity: .4; box-shadow: none; }
.pcard--sk { cursor: default; display: block; position: relative; padding-right: 140px; }
.pcard--sk .sk--img { position: absolute; right: 14px; top: 14px; width: 116px; height: 116px; border-radius: 14px; }

/* Visuel de repli (produit sans photo) */
.ph {
  display: grid; place-items: center; color: var(--terra);
  background-color: #e6ece6;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(15, 84, 96, .09) 39%, rgba(15, 84, 96, .09) 42%, transparent 43%),
    conic-gradient(from 45deg, rgba(15, 84, 96, .07) 0 25%, transparent 0 50%, rgba(15, 84, 96, .07) 0 75%, transparent 0);
  background-size: 28px 28px, 28px 28px;
}
.ph__ico { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 253, 248, .92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(15, 84, 96, .12); }
.ph[data-kind="glass"] { background-color: #e8eee9; }
.ph[data-kind="dessert"] { background-color: #efe7da; }
.pcard--compact .ph { place-items: start; padding: 8px; }
.pcard--compact .ph__ico { width: 34px; height: 34px; }
.pcard--compact .ph__ico svg { width: 20px !important; height: 20px !important; }
.pcard--compact .pcard__add { width: 44px; height: 44px; right: -8px; bottom: -8px; }

/* Panier latéral (desktop) */
.side { display: none; }
.side__in { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.side__t { margin-bottom: 12px; }
.side__empty { text-align: center; color: var(--ink-soft); padding: 18px 6px; display: grid; justify-items: center; gap: 4px; }
.side__empty .ico { color: var(--terra); margin-bottom: 6px; }
.side__empty p { margin: 0; }
.side__empty strong { color: var(--ink); }
.side__lines { list-style: none; margin: 0 0 12px; padding: 0; max-height: 52vh; overflow: auto; }
.sline { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t p" "s s"; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.sline__t { grid-area: t; display: grid; min-width: 0; }
.sline__o { color: var(--ink-soft); font-size: 14.5px; }
.sline__p { grid-area: p; font-weight: 600; font-variant-numeric: tabular-nums; }
.sline .stepper { grid-area: s; justify-self: start; }
.side__sum { display: flex; justify-content: space-between; padding: 6px 0 14px; font-size: 17px; }

/* Stepper quantité */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border-radius: var(--pill); padding: 4px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.stepper button:hover:not(:disabled) { color: var(--terra); }
.stepper button:disabled { opacity: .4; }
.stepper__v, .stepper span { min-width: 30px; text-align: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper--sm button { width: 44px; height: 44px; }
.stepper--sm span { font-size: 16px; min-width: 24px; }

/* Barre panier flottante */
.cartbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(110%); } }
.cartbar__btn {
  pointer-events: auto; width: 100%; max-width: 640px; margin: 0 auto; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 10px;
  border-radius: var(--pill); border: 0; background: var(--terra); color: #fff; font-weight: 600; font-size: 17px; box-shadow: 0 12px 32px rgba(10, 60, 70, .38);
}
.cartbar__btn:hover { background: var(--terra-deep); }
.cartbar__n { min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--pill); background: var(--flame); color: #fff; display: grid; place-items: center; font-weight: 700; }
.cartbar__n.bump { animation: pop .4s var(--ease); }
.cartbar__l { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar__s { font-weight: 500; opacity: .88; }
.cartbar__p { font-variant-numeric: tabular-nums; }

/* Toasts */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
body.has-cartbar .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
.toast { pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast__ico { display: grid; flex: none; }
.toast--ok .toast__ico { color: #b8d3a6; }
.toast--error { background: var(--danger); }
.toast__msg { flex: 1; min-width: 0; }
.toast__act { pointer-events: auto; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: var(--pill); min-height: 40px; padding: 0 14px; font-weight: 600; flex: none; }

/* ───────── Feuilles (dialog) ───────── */
dialog.sheet { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; margin: 0; overflow: hidden; color: var(--ink); }
dialog.sheet::backdrop { background: rgba(23, 48, 51, 0); transition: background-color .25s; }
dialog.sheet.in::backdrop { background: rgba(23, 48, 51, .5); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .32s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
dialog.sheet.in .sheet__panel { transform: none; }
dialog.sheet.out .sheet__panel { transform: translateY(100%); transition-duration: .22s; }
.sheet__panel:focus { outline: none; }
.sheet__grab { position: sticky; top: 0; z-index: 4; height: 0; }
.sheet__grab::before { content: ""; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(23, 48, 51, .25); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* Fiche produit */
.pd { position: relative; }
.pd__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.pd__img, .pd__media .ph { width: 100%; height: 100%; object-fit: cover; }
.pd__media .ph__ico { width: 84px; height: 84px; }
.pd__media .ph__ico svg { width: 44px; height: 44px; }
.pd__body { padding: 20px 20px 8px; }
.pd__name { display: flex; align-items: center; gap: 8px; outline: none; }
.pd__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pd__desc { color: var(--ink-soft); margin: 12px 0 0; font-size: 16.5px; }
.pd__foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line-soft); box-shadow: 0 -8px 20px -14px rgba(23, 48, 51, .4); }
.pd__add { flex: 1; min-width: 0; white-space: nowrap; padding: 0 16px; }
.opt { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.opt__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 10px; padding: 0; }
.opt__hint { font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }

/* Choix (radio / case) */
.choice { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; cursor: pointer; background: var(--white); transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--terra); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9aa6a0; flex: none; display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.choice__box::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); transform: scale(0); transition: transform .2s var(--ease); }
.choice--check .choice__box { border-radius: 7px; }
.choice--check .choice__box::after { width: 12px; height: 7px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2.6px 2.6px; transform: rotate(-45deg) scale(0); margin-top: -3px; }
.choice input:checked + .choice__box { border-color: var(--terra); }
.choice input:checked + .choice__box::after { transform: scale(1); }
.choice--check input:checked + .choice__box { background: var(--terra); }
.choice--check input:checked + .choice__box::after { transform: rotate(-45deg) scale(1); }
.choice:has(input:checked) { border-color: var(--terra); background: var(--terra-tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--terra); outline-offset: 2px; }
.choice__l { flex: 1; min-width: 0; }
.choice__p { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

/* Confirmation */
.confirm { padding: 30px 22px 22px; }
.confirm__t { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 8px; }
.confirm__p { color: var(--ink-soft); margin: 0 0 20px; font-size: 17px; }
.confirm__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Feuille « Où et quand » */
.where-sheet { padding: 26px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.where-sheet__t { margin-top: 6px; }
.pickup-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--terra-tint); color: var(--ink); margin-top: 14px; }
.pickup-card .ico { color: var(--terra); flex: none; margin-top: 2px; }
.pickup-card div { display: grid; gap: 2px; }

/* ───────── Formulaires ───────── */
.field { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.label { font-weight: 600; font-size: 16px; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid #cfc6b2; background: var(--white); font-size: 16px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.input { resize: vertical; min-height: 64px; line-height: 1.45; }
.input::placeholder { color: #8a948e; }
.input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(15, 84, 96, .14); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint); }
.input--code { font-size: 26px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.field__msg:empty { display: none; }
.field__msg { margin-top: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; }
.msg .ico { flex: none; margin-top: 1px; }
.msg--ok { background: var(--olive-tint); color: #3d5530; }
.msg--err { background: var(--danger-tint); color: #8a3322; }
.msg--warn { background: #f6ead2; color: #6d4a10; }
.msg--info { background: var(--terra-tint); color: var(--terra-deep); }
.msg--block div { display: grid; gap: 4px; }
.msg__btn { margin-top: 10px; justify-self: start; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; }
.check__box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #9aa6a0; flex: none; display: grid; place-items: center; color: transparent; background: var(--white); transition: background-color .2s, border-color .2s; }
.check input:checked + .check__box { background: var(--terra); border-color: var(--terra); color: #fff; }
.check input:focus-visible + .check__box { outline: 3px solid var(--terra); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 16px; cursor: pointer; font-weight: 600; min-height: 48px; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 54px; height: 32px; border-radius: var(--pill); background: #c9c2b2; position: relative; flex: none; transition: background-color .2s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--olive); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--terra); outline-offset: 2px; }

/* Autocomplétion d'adresse */
.combo { position: relative; }
.combo__box { position: relative; display: flex; align-items: center; }
.combo__box > .ico { position: absolute; left: 14px; color: var(--terra); pointer-events: none; }
.combo__in { padding-left: 44px; padding-right: 48px; }
.combo__clear { position: absolute; right: 4px; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); max-height: 320px; overflow: auto; }
.combo__opt { display: grid; gap: 2px; padding: 12px; border-radius: 12px; cursor: pointer; min-height: 48px; }
.combo__opt:hover, .combo__opt.is-active { background: var(--terra-tint); }
.combo__l { font-weight: 600; }
.combo__z { font-size: 14.5px; color: var(--ink-soft); }
.combo__empty { padding: 12px; color: var(--ink-soft); }
.saved { margin-top: 12px; }
.saved:empty { display: none; }
.saved__t { margin: 0 0 6px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.saved__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--addr { max-width: 100%; }
.chip--addr span { overflow: hidden; text-overflow: ellipsis; }
.chip--addr .ico { color: var(--terra); flex: none; }

/* Heure */
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radios--col { grid-template-columns: 1fr; gap: 0; }
.rcard { display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 72px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); text-align: left; transition: border-color .2s, background-color .2s; }
.rcard .ico { color: var(--terra); flex: none; }
.rcard > span { display: grid; min-width: 0; }
.rcard > span span { color: var(--ink-soft); font-size: 15px; }
.rcard.is-on { border-color: var(--terra); background: var(--terra-tint); box-shadow: inset 0 0 0 1px var(--terra); }
.days { display: flex; gap: 8px; overflow-x: auto; margin: 14px -20px 0; padding: 2px 20px 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days .chip { flex-direction: column; gap: 0; min-height: 56px; line-height: 1.2; padding: 6px 16px; }
.days .chip small { font-weight: 500; font-size: 13.5px; opacity: .8; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; display: grid; place-items: center; line-height: 1.1; transition: background-color .2s, border-color .2s; }
.slot:hover:not(:disabled) { border-color: var(--terra); }
.slot.is-on { background: var(--terra); color: #fff; border-color: var(--terra); }
.slot:disabled { background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(23, 48, 51, .05) 6px 12px); color: #8a948e; text-decoration: line-through; }
.slot small { font-size: 12.5px; font-weight: 500; text-decoration: none; }
.slots--sk .sk--slot { height: 52px; border-radius: 14px; }

/* ───────── Checkout ───────── */
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.co__main > * + * { margin-top: 14px; }
.co__side > * + * { margin-top: 14px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "m t t" "m s p"; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.line__media { grid-area: m; align-self: start; }
.line .stepper { grid-area: s; justify-self: start; }
.line:last-child { border-bottom: 0; }
.line__img, .line__media .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.line__media .ph__ico { width: 34px; height: 34px; }
.line__media .ph__ico svg { width: 20px; height: 20px; }
.line__t { display: grid; min-width: 0; }
.line__o { color: var(--ink-soft); font-size: 14.5px; }
.line__t { grid-area: t; }
.line__p { grid-area: p; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 17px; }
.upsell { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 18px 0 18px 20px; }
.upsell .card__head { padding-right: 20px; }
.upsell__row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 6px 0; scrollbar-width: thin; }
.mini { flex: none; width: 148px; position: relative; display: grid; gap: 2px; background: var(--white); border-radius: 16px; padding: 8px 8px 12px; box-shadow: var(--shadow-sm); }
.mini__img, .mini .ph { width: 100%; height: 96px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; }
.mini__n { font-weight: 600; font-size: 15px; line-height: 1.3; padding-right: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__p { color: var(--ink-soft); font-size: 15px; }
.mini__add { position: absolute; top: 76px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--terra); box-shadow: 0 3px 10px rgba(23, 48, 51, .2); display: grid; place-items: center; }
.mini__add:hover { background: var(--terra); color: #fff; }
.co__addr .field { margin-top: 14px; }
.loy { display: grid; gap: 8px; }
.loy__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.gauge { height: 12px; border-radius: var(--pill); background: var(--paper-2); overflow: hidden; }
.gauge span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--olive), #7d9a69); transition: width .6s var(--ease); }
.gauge--light { background: rgba(255, 255, 255, .22); }
.gauge--light span { background: #f1dfb8; }
.sum { margin: 0; display: grid; gap: 10px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--ink-soft); }
.sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sum__total { padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 4px; }
.sum__total dt { color: var(--ink); font-weight: 600; font-size: 18px; }
.sum__total dd { font-size: 22px; font-family: var(--serif); }
.sum + .msg { margin-top: 14px; }
.sum__pts { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; }
.sum--sm { font-size: 15.5px; margin-top: 12px; }
.co__cta { margin-top: 16px; }
.reassure { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--olive-tint); color: #3d5530; font-size: 15.5px; line-height: 1.45; }
.reassure .ico { flex: none; margin-top: 2px; }
.legal { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 0; }
#tPay .ico { color: var(--olive); }

/* Paiement */
.testbadge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 14px; border-radius: var(--pill); background: rgba(200, 144, 47, .2); color: #6d4a10; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; border: 1.5px dashed rgba(200, 144, 47, .7); }
.fakecard { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15px; overflow: hidden; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #cfc6b2; background: var(--paper); color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.fakecard span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card-container { min-height: 92px; }
.sk--card { height: 92px; border-radius: 14px; }
.wallets { display: grid; gap: 10px; margin-bottom: 8px; }
.wallet { min-height: 48px; border-radius: 12px; overflow: hidden; }
.wallet--apple { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black; border: 0; width: 100%; height: 48px; }
.wallets__or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 15px; margin: 6px 0; }
.wallets__or::before, .wallets__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ───────── Suivi ───────── */
.trk__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.trk__main > * + * { margin-top: 14px; }
.trk__main > :empty { display: none; }
.trk__hero { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 30px 20px 26px; }
.trk__hero--fail .halo { background: var(--danger-tint); color: var(--danger); }
.trk__hero--done .halo { background: var(--olive-tint); color: var(--olive); }
.trk__ht { display: grid; justify-items: center; gap: 8px; }
.trk__title { font-size: clamp(27px, 6vw, 36px); }
.trk__sub { margin: 0; color: var(--ink-soft); font-size: 17px; max-width: 520px; }
.trk__count { margin: 4px 0 0; color: var(--ink-soft); }
.trk__count strong, .propose__cd strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.trk__count.is-urgent strong { color: var(--danger); }
.trk__hero .btn { margin-top: 8px; }
.halo { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--terra-tint); color: var(--terra); display: grid; place-items: center; }
.halo--anim::before, .halo--anim::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(15, 84, 96, .3); animation: halo 2.4s var(--ease) infinite; }
.halo--anim::after { animation-delay: 1.2s; }
@keyframes halo { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.halo--anim svg { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.eta { display: inline-grid; justify-items: center; margin: 6px 0 0; padding: 10px 26px; border-radius: var(--radius); background: var(--paper); }
.eta span { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.eta strong { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--terra); font-variant-numeric: tabular-nums; }
.staffmsg { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--terra-tint); color: var(--terra-deep); text-align: left; }
.propose { position: relative; overflow: hidden; padding: 24px 20px 20px; border-radius: var(--radius-lg); background: var(--terra-deep); color: #fff; box-shadow: 0 18px 44px rgba(10, 60, 70, .35); animation: arrive .5s var(--ease); }
.propose::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none; }
@keyframes arrive { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.propose__k { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .14); font-weight: 600; font-size: 14.5px; }
.propose__t { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 6vw, 32px); line-height: 1.2; margin: 14px 0 0; }
.propose__t em { font-style: italic; font-weight: 600; color: #f1dfb8; white-space: nowrap; }
.propose__d { margin: 6px 0 0; opacity: .9; }
.propose__m { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-style: italic; }
.propose__btns { display: grid; gap: 10px; margin-top: 20px; }
.propose .btn--primary { background: #fff; color: var(--terra-deep); box-shadow: none; }
.propose .btn--primary:hover:not(:disabled) { background: #f1dfb8; }
.propose .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.propose .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.propose__cd { text-align: center; margin: 14px 0 0; opacity: .95; }
.propose__cd .ico { vertical-align: -3px; margin-right: 4px; }
.propose__cd strong { color: #fff; }
.propose__cd.is-urgent strong { color: #ffd3c4; }
.propose .msg--err { background: #fff; }

.card.trk__mapcard { padding: 0; overflow: hidden; }
.trk__map { height: 300px; background: #e9e4d6; z-index: 0; }
.trk__map .leaflet-tile-pane { filter: saturate(.5) sepia(.15) brightness(1.03) contrast(.95); }
.trk__mapinfo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 14px 18px; font-weight: 600; }
.trk__mapinfo span { display: inline-flex; align-items: center; gap: 8px; }
.trk__mapinfo .ico { color: var(--terra); }
.live { color: var(--olive); }
.live .ico { color: var(--olive) !important; }
.mk { display: grid; place-items: center; }
.mk--resto img { width: 44px; height: 44px; border-radius: 12px; border: 3px solid #fff; box-shadow: var(--shadow); }
.mk--dest { color: #fff; }
.mk--dest svg { width: 40px; height: 40px; padding: 8px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--terra); box-shadow: var(--shadow); }
.mk--dest svg > * { transform: rotate(45deg); transform-origin: 12px 12px; }
.mk--driver { width: 46px; height: 46px; border-radius: 50%; background: var(--flame); color: #fff; border: 3px solid #fff; box-shadow: var(--shadow); position: relative; }
.mk__pulse { position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--flame); animation: halo 2s var(--ease) infinite; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 12px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; min-height: 52px; color: var(--ink-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -14px; width: 2px; background: var(--line); }
.step.is-done:not(:last-child)::after { background: var(--olive); }
.step__dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; color: #fff; z-index: 1; transition: background-color .3s, border-color .3s; }
.step.is-done { color: var(--ink); }
.step.is-done .step__dot { background: var(--olive); border-color: var(--olive); }
.step.is-active { color: var(--ink); font-weight: 600; }
.step.is-active .step__dot { border-color: var(--terra); box-shadow: 0 0 0 0 rgba(15, 84, 96, .4); animation: ring 1.8s infinite; }
.step.is-active .step__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); }
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(15, 84, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 84, 96, 0); } }
.step__t { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 500; }
.trk__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trk__actions .btn { flex: 1 1 200px; }
.pill-ok { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 16px; min-height: 48px; border-radius: var(--pill); background: var(--olive-tint); color: #3d5530; font-weight: 600; flex: 1 1 200px; justify-content: center; }
.rate { display: grid; gap: 12px; }
.stars { display: flex; gap: 4px; justify-content: center; }
.star { width: 56px; height: 56px; border: 0; background: none; color: var(--gold); display: grid; place-items: center; border-radius: 50%; transition: transform .15s var(--ease); }
.star:hover { transform: scale(1.1); }
.rate__done { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-weight: 600; }
.rate__done .ico { color: var(--gold); }
.recap__mode { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; }
.recap__mode .ico { color: var(--terra); flex: none; margin-top: 3px; }
.recap__mode small { display: block; color: var(--ink-soft); }
.recap { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.recap li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
.rq { font-weight: 700; color: var(--terra); }
.rn small { display: block; color: var(--ink-soft); font-size: 14.5px; }
.rp { font-variant-numeric: tabular-nums; }
#tRecap .muted { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }

/* ───────── Compte ───────── */
.acc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.acc__fid { order: -1; }
.acc__main > * + * { margin-top: 14px; }
.acc__side { display: grid; gap: 14px; align-content: start; }
.acc__side > p { margin: 0; }
.fid { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--terra) 0%, var(--terra-deep) 100%); display: grid; gap: 12px; }
.fid::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: radial-gradient(circle at 50% 50%, transparent 36%, #fff 37%, #fff 40%, transparent 41%), conic-gradient(from 45deg, #fff 0 25%, transparent 0 50%, #fff 0 75%, transparent 0); background-size: 36px 36px; mask-image: linear-gradient(115deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 100%); }
.fid > * { position: relative; }
.fid__top { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.fid__top img { border-radius: 10px; border: 2px solid rgba(255, 255, 255, .7); }
.fid__pts { margin: 6px 0 0; font-size: 18px; }
.fid__pts strong { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; margin-right: 6px; }
.fid__next { margin: 0; opacity: .95; }
.fid__explain { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist__i { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.hist__i:last-child { border-bottom: 0; }
.hist__t { display: grid; gap: 2px; min-width: 0; }
.hist__l { color: var(--ink-soft); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist__b { display: flex; gap: 8px; flex-wrap: wrap; }
.status-chip { justify-self: start; margin-top: 4px; padding: 3px 12px; border-radius: var(--pill); font-size: 14px; font-weight: 600; background: var(--terra-tint); color: var(--terra-deep); }
.status-chip--ok { background: var(--olive-tint); color: #3d5530; }
.status-chip--off { background: rgba(23, 48, 51, .08); color: var(--ink-soft); }
.addrs { list-style: none; margin: 0; padding: 0; }
.addrs li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.addrs li:last-child { border-bottom: 0; }
.addrs li > .ico { color: var(--terra); flex: none; }
.addrs span { flex: 1; min-width: 0; }
.addrs small { display: block; color: var(--ink-soft); }
#fProfile .btn { margin-top: 18px; }
.acc__links { display: grid; gap: 10px; }
form .btn[type=submit] { margin-top: 16px; }

/* ───────── Page texte ───────── */
.prose-page { max-width: 760px; margin: 0 auto; }
.prose .lead { font-size: 18px; margin-top: 0; }
.prose .h3 { margin: 22px 0 6px; }
.prose p { margin: 0 0 10px; }

/* Pied de page */
.foot { display: grid; gap: 22px; margin-top: 40px; padding: 26px 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-soft); }
.foot p { margin: 6px 0 0; }
.week { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.week li { display: flex; justify-content: space-between; gap: 12px; }
.week li span:first-child { text-transform: capitalize; font-weight: 500; }
.week li span:last-child { color: var(--ink-soft); text-align: right; }
.foot__legal { color: var(--ink-soft); font-size: 15px; }

/* ───────── Squelettes ───────── */
.sk { background: linear-gradient(90deg, rgba(23, 48, 51, .06) 0%, rgba(23, 48, 51, .11) 40%, rgba(23, 48, 51, .06) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk--l { height: 22px; width: 60%; margin-bottom: 10px; }
.sk--m { height: 16px; width: 85%; margin-bottom: 8px; }
.sk--s { height: 16px; width: 30%; }
.sk--hero { aspect-ratio: 16 / 7; border-radius: var(--radius-lg); }
.sk--hero2 { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto; }
.sk--bar { height: 64px; border-radius: var(--radius); margin-top: 14px; }
.sk--chip { width: 110px; height: 48px; border-radius: var(--pill); flex: none; }
.hero--sk { background: none; border: 0; box-shadow: none; }
.chips--sk { display: flex; gap: 8px; padding: 18px 16px 8px; overflow: hidden; position: static; }

/* ───────── Responsive ───────── */
@media (min-width: 600px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .hist__i { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .hist__b { justify-content: flex-end; }
  .trk__map { height: 360px; }
}
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__in { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "brand seg where acc"; padding: 12px 20px; gap: 16px; }
  .seg--top { justify-self: start; }
  .where { max-width: 460px; justify-self: end; }
  .topbar { position: sticky; top: 0; }
  .chips { top: 73px; }
  html { scroll-padding-top: 150px; }
  .view { padding: 0 20px 40px; }
  .chips { margin: 18px -20px 0; }
  .chips__in { padding: 0 20px; }
  .hero__cover { aspect-ratio: 16 / 5; }
  .hero__body { padding: 0 26px 24px; }
  .hero__logo { width: 104px; height: 104px; margin-top: -52px; border-radius: 22px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; margin: 0; }
  /* Feuilles centrées */
  .sheet__panel { left: 50%; top: 50%; bottom: auto; right: auto; width: min(560px, calc(100vw - 48px)); max-height: min(88vh, 860px); border-radius: var(--radius-lg); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .3s var(--ease), opacity .25s; }
  dialog.sheet.in .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  dialog.sheet.out .sheet__panel { transform: translate(-50%, -46%) scale(.97); opacity: 0; }
  .sheet__grab { display: none; }
  .sheet--confirm .sheet__panel { width: min(440px, calc(100vw - 48px)); }
  .pd__foot { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
@media (min-width: 1024px) {
  .home { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .side { display: block; }
  body.has-cartbar { padding-bottom: 0; }
  .cartbar { display: none; }
  body.has-cartbar .toasts { bottom: 24px; }
  .co__grid, .trk__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .co__side, .trk__side { position: sticky; top: 92px; }
  .acc__grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; gap: 20px; align-items: start; }
  .acc__grid > .card, .acc__grid > .acc__main { grid-column: 1; grid-row: 1 / span 2; }
  .acc__fid { grid-column: 2; grid-row: 1; order: 0; }
  .acc__side--links { grid-column: 2; grid-row: 2; }
  .acc__grid > .acc__side:not(.acc__side--links) { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 92px; }
  .card { padding: 24px; }
  .trk__map { height: 400px; }
}

/* Petits écrans */
@media (max-width: 699px) {
  .where { min-height: 56px; border-radius: 18px; }
  .where__txt { display: grid; line-height: 1.25; white-space: normal; }
  .where__a, .where__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .where__t { font-size: 15px; }
  .where__sep { display: none; }
}
@media (max-width: 520px) {
  .brand__name { display: none; }
  .hero__body { display: block; }
  .hero__txt { padding-top: 10px; }
}
@media (max-width: 380px) {
  .pcard { grid-template-columns: minmax(0, 1fr) 100px; }
  .pcard__media, .pcard__img, .pcard__media .ph { width: 100px; height: 100px; }
  .radios { grid-template-columns: 1fr; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .view { transform: none; }
}
