/* ==========================================================================
   Maison Green — système visuel
   Blanc dominant · vert sapin · anthracite · étiquettes d'épicerie fine
   ========================================================================== */

@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Variable.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Italic-Variable.woff') format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* Couleurs */
  --paper: #ffffff;
  --canvas: #fafaf8;
  --stone: #f3f2ee;
  --line: #e8e6e0;
  --line-strong: #d9d6ce;
  --ink: #17181a;
  --ink-2: #45484d;
  --ink-3: #62656a; /* ≥ 4,9:1 sur tous les fonds (WCAG AA) */
  --green: #1e3b2f;
  --green-hover: #162d24;
  --green-2: #3d6b54;
  --green-tint: #eef3ef;
  --warn: #8a5a12;
  --warn-tint: #fbf4e6;
  --danger: #a3332a;
  --danger-tint: #fbefed;
  --focus: #3d6b54;

  /* Teintes d'étiquettes (une par catégorie) */
  --tone-sage: #e8eee6;   --tone-sage-ink: #2f4a3c;
  --tone-sand: #f3ede2;   --tone-sand-ink: #5b4a2e;
  --tone-blush: #f4e9e4;  --tone-blush-ink: #6a3d32;
  --tone-sky: #e7edf0;    --tone-sky-ink: #2e4652;
  --tone-butter: #f5efdb; --tone-butter-ink: #5e4e1c;
  --tone-stone: #eeede9;  --tone-stone-ink: #3e4044;

  /* Typographie */
  --serif: 'Lora', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Espacements, rayons */
  --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 20px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--sans); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga';
}
@media (min-width: 768px) { body { font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
.num, .price { font-variant-numeric: tabular-nums; }
::selection { background: var(--green-tint); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--s, 16px); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }

/* Titres ------------------------------------------------------------------ */
.display { font-family: var(--serif); font-weight: 450; font-size: clamp(34px, 7.4vw, 64px); line-height: 1.04; letter-spacing: -0.022em; }
.display em { font-style: italic; font-weight: 400; color: var(--green); }
.h1 { font-family: var(--serif); font-weight: 480; font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.018em; }
.h2 { font-family: var(--serif); font-weight: 480; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.15; letter-spacing: -0.015em; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
@media (min-width: 768px) { .lede { font-size: 19px; } }

/* Boutons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { color: var(--ink); background: var(--stone); }
.btn-danger { background: var(--paper); border-color: #e4c4bf; color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--green) 35%, transparent); }
.link:hover { text-decoration-color: var(--green); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Formulaires ------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 16px; /* 16px : pas de zoom iOS */
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2345484d' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:hover, .select:hover, .textarea:hover { border-color: #bfbcb3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-2) 16%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error-text { font-size: 13px; color: var(--danger); display: flex; gap: 6px; align-items: flex-start; }
.grid-2 { display: grid; gap: 14px; align-items: start; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .span-2 { grid-column: 1 / -1; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; margin: 0; cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(16px); }

/* Alertes / badges ------------------------------------------------------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.45; background: var(--stone); color: var(--ink-2); }
.notice .icon { margin-top: 1px; }
.notice-success { background: var(--green-tint); color: var(--green); }
.notice-warn { background: var(--warn-tint); color: var(--warn); }
.notice-error { background: var(--danger-tint); color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--stone); color: var(--ink-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-received { background: #edf1f7; color: #2d4a73; }
.b-confirmed { background: #eef0f6; color: #3e4577; }
.b-preparing { background: var(--warn-tint); color: var(--warn); }
.b-ready { background: #eaf4f2; color: #1f5f55; }
.b-assigned { background: #eaf2ed; color: #2f5d44; }
.b-out_for_delivery { background: var(--green); color: #fff; }
.b-delivered { background: var(--stone); color: var(--ink-2); }
.b-cancelled { background: var(--danger-tint); color: var(--danger); }
.b-awaiting_payment { background: var(--stone); color: var(--ink-3); }
.b-cash { background: #fff4d6; color: #6a4d00; }
.b-paid { background: var(--green-tint); color: var(--green); }
.b-failed { background: var(--danger-tint); color: var(--danger); }

.flash { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(20, 24, 22, .12); animation: flash-in .35s var(--ease); }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ==========================================================================
   Marque : logo, étiquettes
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-word { font-family: var(--serif); font-weight: 520; font-size: 19px; letter-spacing: -0.01em; line-height: 1; }
.logo-word span { color: var(--green); }
@media (min-width: 768px) { .logo-mark { width: 34px; height: 34px; } .logo-word { font-size: 21px; } }

/* Étiquette : signature visuelle des produits sans photo */
.tag {
  --t-bg: var(--tone-stone); --t-ink: var(--tone-stone-ink);
  position: relative; aspect-ratio: 1 / 1; background: var(--t-bg); color: var(--t-ink);
  display: grid; place-items: center; padding: 11%; overflow: hidden; border-radius: var(--r-lg);
}
.tag-card {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: color-mix(in srgb, #fff 62%, var(--t-bg)); border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ink) 22%, transparent), inset 0 0 0 4px color-mix(in srgb, #fff 62%, var(--t-bg)), inset 0 0 0 5px color-mix(in srgb, var(--t-ink) 14%, transparent);
  padding: 10%; gap: 6%;
}
.tag-cat { font-size: clamp(9px, 1.9vw, 10.5px); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.tag-name { font-family: var(--serif); font-weight: 500; font-size: clamp(15px, 3.6vw, 21px); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.tag-rule { width: 22%; height: 1px; background: currentColor; opacity: .35; }
.tag-unit { font-size: clamp(10.5px, 2.2vw, 12px); font-style: italic; font-family: var(--serif); opacity: .85; }
.tag.photo { padding: 0; background: var(--stone); }
.tag.photo img { width: 100%; height: 100%; object-fit: cover; }
.tone-sage { --t-bg: var(--tone-sage); --t-ink: var(--tone-sage-ink); }
.tone-sand { --t-bg: var(--tone-sand); --t-ink: var(--tone-sand-ink); }
.tone-blush { --t-bg: var(--tone-blush); --t-ink: var(--tone-blush-ink); }
.tone-sky { --t-bg: var(--tone-sky); --t-ink: var(--tone-sky-ink); }
.tone-butter { --t-bg: var(--tone-butter); --t-ink: var(--tone-butter-ink); }
.tone-stone { --t-bg: var(--tone-stone); --t-ink: var(--tone-stone-ink); }

/* ==========================================================================
   Boutique : en-tête
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--stone); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--stone); }
.icon-btn .icon { width: 21px; height: 21px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; }
.cart-btn:hover { background: #000; }
.cart-btn .icon { width: 18px; height: 18px; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.cart-btn.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.07); } }
.search-toggle { display: inline-grid; }
@media (min-width: 900px) { .nav { display: flex; } }

.status-strip { background: var(--green); color: #e9f0eb; font-size: 13.5px; }
.status-strip .wrap { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding-top: 7px; padding-bottom: 7px; }
.status-strip.closed { background: var(--stone); color: var(--ink-2); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #8fd1a6; box-shadow: 0 0 0 3px rgba(143, 209, 166, .22); flex: none; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .display { max-width: 11.5em; }
.hero-copy .lede { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--green-2); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shelf .tag { border-radius: 12px; }
.shelf .tag:nth-child(2) { transform: translateY(18px); }
.shelf .tag:nth-child(5) { transform: translateY(18px); }
.shelf .tag-name { font-size: clamp(13px, 2.9vw, 19px); }
.shelf .tag-cat { display: none; }
.shelf .tag { padding: 9%; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .shelf { gap: 14px; }
  .shelf .tag:nth-child(2), .shelf .tag:nth-child(5) { transform: translateY(28px); }
}

/* Sections ---------------------------------------------------------------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--canvas); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head p { margin-top: 8px; color: var(--ink-3); max-width: 36em; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section-head { margin-bottom: 36px; } }

/* Catégories (accueil) */
.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; padding: 16px; border-radius: var(--r-lg); background: var(--t-bg); color: var(--t-ink); text-decoration: none; transition: transform .2s var(--ease); }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile .cat-name { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.cat-tile .cat-count { font-size: 13px; opacity: .8; display: flex; justify-content: space-between; align-items: center; }
@media (min-width: 900px) { .cat-rail { grid-auto-columns: 1fr; overflow: visible; margin: 0; padding: 0; } .cat-tile { min-height: 168px; padding: 20px; } }

/* Grille produits --------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; } }
.product { position: relative; display: flex; flex-direction: column; }
.product-media { position: relative; display: block; text-decoration: none; }
.product-media .tag { transition: transform .35s var(--ease); }
.product-media:hover .tag { transform: scale(1.012); }
.product-flag { position: absolute; left: 8px; top: 8px; z-index: 1; background: rgba(255,255,255,.94); color: var(--ink-2); font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 99px; }
.product-flag.low { color: var(--warn); }
.product-body { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; flex: 1; }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-decoration: none; }
.product-name:hover { text-decoration: underline; }
.product-unit { font-size: 13.5px; color: var(--ink-3); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-price { font-size: 16px; font-weight: 650; }
.product.soldout .tag { opacity: .55; filter: grayscale(.4); }
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s var(--ease); }
.add-btn:hover { border-color: var(--ink); }
.add-btn .icon { width: 16px; height: 16px; stroke-width: 2; }
.add-btn .add-label { display: none; }
@media (min-width: 480px) { .add-btn .add-label { display: inline; } }
.stepper { display: inline-flex; align-items: center; height: 36px; border-radius: 99px; background: var(--green); color: #fff; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 99px; }
.stepper button:hover { background: rgba(255,255,255,.1); }
.stepper .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.stepper output { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.stepper.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.stepper.light button:hover { background: var(--stone); }

/* Étapes livraison */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; }
.step-n { font-family: var(--serif); font-size: 15px; color: var(--green-2); font-style: italic; padding-top: 2px; }
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step p { grid-column: 2; color: var(--ink-3); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .step { grid-template-columns: 1fr; border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 28px 8px; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step p { grid-column: 1; }
  .step-n { font-size: 17px; margin-bottom: 18px; }
}

/* Zones de livraison */
.zones-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .zones-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.zone-list { border-top: 1px solid var(--line); }
.zone-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.zone-row .zone-name { font-weight: 600; }
.zone-row .zone-codes { font-size: 13.5px; color: var(--ink-3); }
.zone-row .zone-fee { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.zone-row .zone-min { text-align: right; font-size: 13.5px; color: var(--ink-3); }
.checker { padding: 22px; border-radius: var(--r-lg); background: var(--canvas); border: 1px solid var(--line); }
.checker form { display: flex; gap: 8px; margin-top: 14px; }
.checker .input { flex: 1; }
.checker-result { margin-top: 12px; min-height: 22px; font-size: 14.5px; }
.hours { margin-top: 22px; font-size: 14.5px; }
.hours div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours div.today { font-weight: 650; }

/* Avantages */
.perks { display: grid; gap: 28px; }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
@media (min-width: 1080px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.012em; margin-bottom: 8px; }
.perk p { color: var(--ink-3); font-size: 15px; }
.perk .rule { width: 28px; height: 2px; background: var(--green); margin-bottom: 18px; }

/* Pied de page */
.site-footer { background: var(--green); color: #d6e1da; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 36px; padding: 56px 0 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 72px 0 56px; } }
.footer-brand .logo { color: #fff; }
.site-footer .logo-mark > path:first-child { fill: #f3f2ee; }
.site-footer .logo-mark > path:nth-child(2) { stroke: #1E3B2F; opacity: .35; }
.site-footer .logo-mark text { fill: #1E3B2F; }
.footer-brand .logo-word span { color: #b9d3c3; }
.footer-brand p { margin-top: 16px; max-width: 26em; font-size: 14.5px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: #a9bcb1; }

/* ==========================================================================
   Catalogue
   ========================================================================== */
.shop-head { padding-top: 28px; padding-bottom: 8px; }
.shop-tools { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.shop-tools .wrap { display: grid; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.search { position: relative; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 40px; background: var(--stone); border-color: transparent; }
.search .input:focus { background: var(--paper); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .shop-tools .wrap { grid-template-columns: 320px 1fr; align-items: center; gap: 20px; } .chips { margin: 0; padding: 0; } }
.chips-sub { grid-column: 1 / -1; }
.chips-sub .chip { height: 32px; padding: 0 12px; font-size: 13px; background: var(--stone); border-color: transparent; }
.chips-sub .chip[aria-current="true"] { background: var(--ink); color: #fff; }
.cat-block { padding-top: 36px; scroll-margin-top: 140px; }
.cat-block h2 { margin-bottom: 20px; }
.empty { text-align: center; padding: 64px 16px; }
.empty .h2 { margin-bottom: 10px; }
.empty p { color: var(--ink-3); margin-bottom: 20px; }

/* Fiche produit */
.pdp { display: grid; gap: 28px; padding: 24px 0 56px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0 96px; align-items: start; } }
.pdp .tag { border-radius: var(--r-xl); }
.pdp .tag-name { font-size: clamp(24px, 5vw, 38px); }
.pdp .tag-unit { font-size: 16px; }
.pdp .tag-cat { font-size: 12px; }
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-price { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pdp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.facts { border-top: 1px solid var(--line); font-size: 14.5px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.crumbs { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ==========================================================================
   Panier (tiroir)
   ========================================================================== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(18, 22, 20, .32); z-index: 60; opacity: 0; transition: opacity .25s var(--ease); }
.drawer { position: fixed; z-index: 61; background: var(--paper); display: flex; flex-direction: column;
  inset: auto 0 0 0; max-height: 92dvh; border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .32s var(--ease); }
@media (min-width: 700px) { .drawer { inset: 0 0 0 auto; width: 440px; max-height: none; border-radius: 0; transform: translateX(100%); } }
.drawer.open { transform: none; }
.drawer-backdrop.open { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head::before { content: ''; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); transform: translateX(-50%); }
@media (min-width: 700px) { .drawer-head::before { display: none; } }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: var(--paper); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .tag { border-radius: 8px; padding: 0; }
.line .tag-card { display: none; }
.line .tag::after { content: attr(data-initial); font-family: var(--serif); font-size: 20px; }
.line .tag.photo::after { display: none; }
.line-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.line-meta { font-size: 13px; color: var(--ink-3); }
.line-right { display: grid; justify-items: end; gap: 6px; }
.line-total { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.line .stepper { height: 32px; }
.line .stepper button { width: 32px; height: 32px; }
.totals { display: grid; gap: 6px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 17px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .muted span:last-child { font-variant-numeric: tabular-nums; }
.progress { height: 4px; border-radius: 4px; background: var(--stone); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green-2); border-radius: 4px; transition: width .4s var(--ease); }

/* Barre panier mobile */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35; display: none; }
.cart-bar button { width: 100%; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 18px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(30, 59, 47, .28); }
.cart-bar .pill { background: rgba(255,255,255,.14); height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.has-cart .cart-bar { display: block; }
@media (min-width: 900px) { .has-cart .cart-bar { display: none; } }
.has-cart main { padding-bottom: 76px; }
@media (min-width: 900px) { .has-cart main { padding-bottom: 0; } }

/* ==========================================================================
   Commande (checkout)
   ========================================================================== */
.checkout { display: grid; gap: 28px; padding: 24px 0 64px; }
@media (min-width: 1000px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding: 40px 0 96px; align-items: start; } }
.co-section { padding: 24px 0; border-top: 1px solid var(--line); }
.co-section:first-of-type { border-top: 0; padding-top: 8px; }
.co-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.co-title .n { font-family: var(--serif); font-style: italic; color: var(--green-2); font-size: 16px; }
.co-title h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.012em; }
.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--paper); }
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary .line { grid-template-columns: 44px 1fr auto; padding: 10px 0; }
.summary .line .tag::after { font-size: 16px; }
.qty-dot { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.days::-webkit-scrollbar { display: none; }
.day-btn { flex: none; display: grid; gap: 1px; justify-items: start; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; text-align: left; }
.day-btn .d { font-weight: 600; font-size: 14.5px; }
.day-btn .s { font-size: 12.5px; color: var(--ink-3); }
.day-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot label { display: grid; gap: 1px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s; }
.slot label .t { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.slot label .r { font-size: 12.5px; color: var(--ink-3); }
.slot label:hover { border-color: var(--line-strong); }
.slot input:checked + label { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-tint); }
.slot input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.slot input:disabled + label { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pay-options { display: grid; gap: 10px; }
.pay { position: relative; }
.pay input { position: absolute; opacity: 0; }
.pay label { display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; }
.pay label::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); margin-top: 1px; grid-row: span 2; transition: all .15s; }
.pay input:checked + label { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pay input:checked + label::before { border: 5.5px solid var(--green); }
.pay input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.pay .t { font-weight: 650; }
.pay .d { grid-column: 2 / 4; font-size: 13.5px; color: var(--ink-3); }
.pay .brands { display: flex; gap: 4px; }
.pay .brands span { font-size: 10px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; color: var(--ink-2); }
.zone-hint { font-size: 13.5px; margin-top: 8px; min-height: 20px; }
.zone-hint.ok { color: var(--green-2); }
.zone-hint.ko { color: var(--danger); }
.mobile-pay { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 8px; z-index: 5; }
@media (min-width: 1000px) { .mobile-pay { position: static; border: 0; padding: 0; } }
.saved-addr { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.saved-addr button { flex: none; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font-size: 13.5px; max-width: 240px; }
.saved-addr button strong { display: block; font-size: 14px; }
.saved-addr button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ==========================================================================
   Suivi de commande
   ========================================================================== */
.track { display: grid; gap: 32px; padding: 28px 0 72px; }
@media (min-width: 960px) { .track { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding: 48px 0 96px; align-items: start; } }
.track-status { font-family: var(--serif); font-weight: 480; font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.track-sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.tl { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; }
.tl::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--green-2); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line-strong); }
.tl.done .tl-dot { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.tl.current .tl-dot { border-color: var(--green); background: var(--paper); }
.tl.current .tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .6; } }
.tl-dot .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.tl-label { padding-top: 3px; }
.tl-label strong { display: block; font-weight: 600; font-size: 15.5px; }
.tl-label span { font-size: 13.5px; color: var(--ink-3); }
.tl.todo .tl-label strong { color: var(--ink-3); font-weight: 500; }
.info-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.info-card + .info-card { margin-top: 12px; }
.info-card h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.driver-chip { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--green-tint); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; flex: none; }

/* ==========================================================================
   Pages compte / auth / légales
   ========================================================================== */
.auth { max-width: 420px; margin: 0 auto; padding: 48px 0 80px; }
.auth .h1 { margin-bottom: 8px; }
.auth form { margin-top: 28px; display: grid; gap: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; }
.tabs a { flex: none; padding: 12px 4px; margin-right: 18px; text-decoration: none; color: var(--ink-3); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.list-rows { border-top: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row-link:hover .row-title { text-decoration: underline; }
.row-title { font-weight: 600; }
.row-meta { font-size: 13.5px; color: var(--ink-3); }
.prose { max-width: 720px; padding: 40px 0 80px; }
.prose h1 { margin-bottom: 20px; }
.prose h2 { font-family: var(--serif); font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px; }

/* ==========================================================================
   Espace pro (admin & livreur)
   ========================================================================== */
.pro { background: var(--canvas); min-height: 100dvh; }
.pro-shell { display: grid; min-height: 100dvh; }
@media (min-width: 1000px) { .pro-shell { grid-template-columns: 240px minmax(0, 1fr); } }
.sidebar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; }
.sidebar-top .logo-word { font-size: 17px; }
.sidebar-top .logo-mark { width: 28px; height: 28px; }
.pro-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.side-nav { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-nav a { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.side-nav a:hover { background: var(--stone); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav .icon { width: 17px; height: 17px; }
.side-nav .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--green); color: #fff; border-radius: 99px; padding: 1px 7px; }
.side-foot { display: none; }
@media (min-width: 1000px) {
  .sidebar { height: 100dvh; border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
  .sidebar-top { padding: 22px 20px 20px; }
  .side-nav { flex-direction: column; overflow: visible; padding: 0 12px; gap: 2px; }
  .side-nav a { padding: 9px 12px; }
  .side-foot { display: grid; gap: 4px; margin-top: auto; padding: 16px 12px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
  .side-foot a { color: var(--ink-3); text-decoration: none; padding: 6px 12px; border-radius: var(--r-sm); }
  .side-foot a:hover { background: var(--stone); color: var(--ink); }
}
.pro-main { min-width: 0; padding: 20px var(--gutter) 64px; }
@media (min-width: 1000px) { .pro-main { padding: 32px 40px 80px; } }
.pro-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 24px; }
.pro-head .h1 { font-size: clamp(26px, 3.4vw, 32px); }
.pro-head p { color: var(--ink-3); margin-top: 4px; font-size: 14.5px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.panel-body { padding: 20px; }
.panel + .panel, .panels > * + * { margin-top: 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--paper); padding: 16px 18px; display: grid; gap: 4px; align-content: start; text-decoration: none; }
a.kpi:hover { background: var(--canvas); }
.kpi .k-label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.kpi .k-value { font-size: clamp(22px, 3vw, 28px); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .k-sub { font-size: 12.5px; color: var(--ink-3); }
.kpi.accent .k-value { color: var(--green); }
.kpi.cash { background: #fffaf0; }
.dash-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--canvas); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--canvas); }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 600; }
.table tr.new-row { animation: newrow 2.4s var(--ease); }
@keyframes newrow { 0%, 40% { background: var(--green-tint); } }
.table .thumb { width: 40px; }
.table .thumb .tag { width: 40px; border-radius: 6px; padding: 0; }
.table .thumb .tag-card { display: none; }
.table .thumb .tag::after { content: attr(data-initial); font-family: var(--serif); font-size: 16px; }
.table .thumb .tag.photo::after { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters .search { flex: 1 1 220px; max-width: 360px; }
.filters .search .input { background: var(--paper); border-color: var(--line); min-height: 40px; }
.seg { display: inline-flex; background: var(--stone); border-radius: var(--r); padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg a { flex: none; padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.seg a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.seg .n { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 28px; background: var(--green-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar.today i { background: var(--green); }
.bar span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank li:last-child { border-bottom: 0; }
.rank .pos { font-family: var(--serif); font-style: italic; color: var(--ink-3); }
.rank .meter { grid-column: 2 / 4; height: 3px; background: var(--stone); border-radius: 3px; overflow: hidden; margin-top: -4px; }
.rank .meter i { display: block; height: 100%; background: var(--green-2); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.order-layout { display: grid; gap: 16px; }
@media (min-width: 1100px) { .order-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.events { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.events li { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.events li:last-child { border: 0; }
.events time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .select, .inline-form .input { min-height: 40px; width: auto; flex: 1 1 160px; font-size: 15px; padding-top: 8px; padding-bottom: 8px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }
.notif-panel { position: absolute; right: 0; top: 48px; width: min(360px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(20, 24, 22, .12); z-index: 50; overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-panel ul { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.notif-panel li a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13.5px; }
.notif-panel li a:hover { background: var(--canvas); }
.notif-panel li.unread a { background: #f7faf8; }
.notif-panel li strong { display: block; font-size: 14px; }
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 16px; border-radius: var(--r-lg); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: flash-in .3s var(--ease); display: grid; gap: 2px; text-decoration: none; }
.toast strong { font-size: 14.5px; }
.form-grid { display: grid; gap: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 8px; }
.hours-table .hrow { display: grid; grid-template-columns: 110px 64px 1fr 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table .hrow:last-child { border: 0; }
.hours-table .input { min-height: 40px; padding: 7px 10px; font-size: 15px; }
@media (max-width: 560px) { .hours-table .hrow { grid-template-columns: 1fr auto; } .hours-table .hrow .input { grid-column: span 1; } }
.slot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--paper); }
.slot-chip.off { opacity: .5; text-decoration: line-through; }
.slot-chip button { border: 0; background: var(--stone); border-radius: 99px; width: 22px; height: 22px; cursor: pointer; display: grid; place-items: center; }
.slot-chip button .icon { width: 12px; height: 12px; }
.slot-day { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.slot-day .chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.image-drop { display: grid; gap: 12px; }
.image-drop .tag { max-width: 220px; }

/* Livreur ------------------------------------------------------------------ */
.driver-app { max-width: 640px; margin: 0 auto; min-height: 100dvh; background: var(--canvas); }
.driver-top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.driver-top .who { font-size: 13px; color: var(--ink-3); line-height: 1.2; }
.driver-top .who strong { display: block; color: var(--ink); font-size: 15px; }
.driver-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 65px; z-index: 19; }
.driver-tabs a { text-align: center; padding: 12px 4px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-3); border-bottom: 2px solid transparent; }
.driver-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.driver-tabs .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; font-size: 11px; background: var(--green); color: #fff; border-radius: 99px; margin-left: 4px; padding: 0 5px; }
.driver-list { padding: 16px; display: grid; gap: 12px; }
.run { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.run-link { display: block; padding: 16px; text-decoration: none; }
.run-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.run-num { font-weight: 700; font-size: 15px; }
.run-addr { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.run-meta { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.run-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--canvas); }
.cash-banner { background: #1b1b1b; color: #fff; border-radius: var(--r-lg); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cash-banner .l { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffd66b; }
.cash-banner .v { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cash-mini { font-weight: 750; color: #6a4d00; background: #fff4d6; padding: 3px 8px; border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.paid-mini { font-weight: 600; color: var(--green); font-size: 13px; }
.driver-detail { padding: 16px; display: grid; gap: 12px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.big-addr { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.instr { background: var(--warn-tint); color: #5c3d0b; border-radius: var(--r); padding: 12px 14px; font-size: 15px; }
.instr strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.map-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.driver-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 640px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); z-index: 25; }
.driver-cta .btn { height: 56px; font-size: 17px; border-radius: 14px; }

/* Utilitaires -------------------------------------------------------------- */
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: initial; } .hide-md { display: none; } }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

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

/* Fiche produit : bouton d'ajout principal */
.pdp .add-btn { height: 50px; padding: 0 26px; background: var(--green); border-color: var(--green); color: #fff; font-size: 16px; }
.pdp .add-btn:hover { background: var(--green-hover); border-color: var(--green-hover); }
.pdp .add-btn .add-label { display: inline; }
.pdp .stepper { height: 50px; }
.pdp .stepper button { width: 50px; height: 50px; }
.pdp .stepper output { min-width: 32px; font-size: 16px; }
.checkout > *, .track > *, .pdp > *, .order-layout > *, .dash-grid > *, .zones-grid > *, .hero-grid > * { min-width: 0; }
.sum-details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sum-details > summary::-webkit-details-marker { display: none; }
.sum-peek { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.sum-peek::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sum-details[open] .sum-peek::after { transform: rotate(-135deg) translateY(-2px); }
@media (max-width: 999px) { .checkout .summary { order: -1; padding: 14px 16px; } }
@media (min-width: 1000px) { .sum-peek { display: none; } .sum-details > summary { cursor: default; pointer-events: none; } }
.co-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-top: 24px; }
@media (min-width: 1000px) { .co-head { padding-top: 40px; } .co-head + .checkout { padding-top: 24px; } }
.co-head + .checkout { padding-top: 16px; }
.sidebar-top .logo-word { white-space: nowrap; }
@media (min-width: 1000px) { .sidebar .pro-tag { display: none; } }
.input[type="file"] { padding: 8px; font-size: 14px; min-height: 0; }
.input[type="file"]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 8px; padding: 7px 12px; margin-right: 12px; cursor: pointer; }

/* Écrans tactiles : cibles d'au moins 44 px pour le doigt (recommandation Apple / WCAG 2.5.5). */
@media (pointer: coarse) {
  .add-btn, .chip, .btn-sm { height: 44px; min-height: 44px; }
  .add-btn { min-width: 44px; }
  .stepper { height: 44px; }
  .stepper button { width: 44px; height: 44px; }
  .line .stepper { height: 40px; }
  .line .stepper button { width: 40px; height: 40px; }
  .seg a { padding: 11px 14px; }
  .slot-chip button { width: 32px; height: 32px; }
}

/* Rappel « Suivre ma commande » (client sans compte : lien gardé sur le téléphone) */
.track-reminder { background: var(--paper); border-bottom: 1px solid var(--line); }
.track-reminder .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; padding-bottom: 6px; }
.track-reminder a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green); font-weight: 600; font-size: 15px; text-decoration: none; }
.track-reminder a:hover span:first-child { text-decoration: underline; }

/* Accueil : un seul bouton principal, le lien secondaire reste discret */
.hero-cta { align-items: center; gap: 12px 24px; }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.hero-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Bandeau d'information cookies (aucun traceur : information, pas de consentement à recueillir) */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--ink); color: #eef2ef; border-radius: var(--r); box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 14px; line-height: 1.45; }
.cookie-note a { color: #fff; text-decoration: underline; }
.cookie-note button { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
body:has(.cart-bar:not([hidden])) .cookie-note { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* Champ piège anti-spam : hors de l'écran, ignoré par les lecteurs d'écran */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Statistiques : trois tableaux alignés */
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.stats-grid > .panel { margin: 0; }

/* Admin sur téléphone : bouton « Menu » qui déplie toutes les rubriques (au lieu d'une bande qui défile de côté) */
.mobile-nav { display: none; }
@media (max-width: 999.98px) {
  .side-nav { display: none; }
  .mobile-nav { display: block; padding: 0 12px 10px; }
  .mobile-nav summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-weight: 600; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary .current { margin-left: auto; color: var(--ink-3); font-weight: 500; }
  .mobile-nav summary .icon { width: 18px; height: 18px; }
  .mobile-nav summary .icon:last-child { transition: transform .15s var(--ease); transform: rotate(90deg); }
  .mobile-nav[open] summary .icon:last-child { transform: rotate(-90deg); }
  .mobile-nav nav { display: grid; gap: 2px; margin-top: 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); max-height: calc(100dvh - 140px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .mobile-nav nav a, .mobile-nav nav button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font: inherit; font-weight: 500; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
  .mobile-nav nav a[aria-current="page"] { background: var(--ink); color: #fff; }
  .mobile-nav nav .icon { width: 18px; height: 18px; }
  .mobile-nav nav .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--green); color: #fff; border-radius: 99px; padding: 1px 7px; }
  .mobile-nav nav form { margin: 0; border-top: 1px solid var(--line); padding-top: 2px; }
}

/* Mention légale d'un rayon (alcool, CBD…) */
.legal-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); background: var(--stone); border-radius: var(--r-sm); padding: 10px 12px; }
.legal-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Fiche produit : choix du format (variantes) */
.variants { display: grid; gap: 8px; margin: 18px 0 4px; }
.variants-label { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.variants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 88px; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.2; }
.variant:hover { border-color: var(--ink); }
.variant[aria-current="true"] { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
.variant .v-label { font-weight: 700; font-size: 15px; }
.variant .v-price { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.variant.out { opacity: .55; }
.variant .v-out { font-size: 12px; color: var(--danger); }
.product-price .from { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-right: 2px; }
a.add-btn { text-decoration: none; }

/* ==========================================================================
   Refonte visuelle v2 : photos alignées, cartes produit, accueil
   ========================================================================== */
/* Photos produit : le produit est toujours centré, entier (jamais rogné) et à la même échelle,
   quel que soit le cadrage de la photo d'origine. Le fond blanc des photos se fond dans la vignette. */
.tag { min-height: 0; }
.tag.photo { padding: 0; background: var(--stone); isolation: isolate; }
.tag.photo img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.line .tag.photo img, .table .thumb .tag.photo img { inset: 6%; width: 88%; height: 88%; }
.pdp .tag.photo img { inset: 8%; width: 84%; height: 84%; }

/* Cartes produit : même hauteur de titre et de sous-titre, prix et bouton toujours sur la même ligne */
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 8px 8px 12px; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.product .tag { border-radius: 14px; }
.product-body { padding: 12px 4px 0; }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }
.product-unit { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-foot { padding-top: 12px; }
.product-media:hover .tag { transform: none; }
.product-media .tag.photo img { transition: transform .4s var(--ease); }
@media (hover: hover) {
  .product:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px -14px rgba(23, 24, 26, .22); transform: translateY(-2px); }
  .product:hover .tag.photo img { transform: scale(1.04); }
}
@media (min-width: 700px) { .product { padding: 10px 10px 14px; } .product-body { padding: 14px 6px 0; } }
@media (prefers-reduced-motion: reduce) { .product, .product .tag.photo img { transition: none; } .product:hover { transform: none; } }

/* Accueil : fond doux, vitrine de produits alignée (plus de décalage d'une case sur deux) */
.hero { background: radial-gradient(120% 90% at 100% 0%, var(--green-tint) 0%, rgba(238, 243, 239, 0) 60%), var(--paper); }
.shelf .tag:nth-child(n) { transform: none; }
.shelf .tag { border-radius: 18px; box-shadow: 0 1px 0 var(--line), 0 12px 28px -18px rgba(23, 24, 26, .25); }
.shelf .tag.photo { background: #fff; }
@media (min-width: 900px) { .shelf .tag:nth-child(2), .shelf .tag:nth-child(5) { transform: none; } }

/* Offre de bienvenue affichée en haut de l'accueil */
.welcome-offer { background: var(--green); color: #fff; }
.welcome-offer .wrap { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.welcome-offer-copy { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; line-height: 1.3; }
.welcome-offer-copy strong { font-weight: 700; }
.welcome-offer-copy span { color: rgba(255,255,255,.82); font-size: 13px; }
.welcome-offer-link { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 650; text-decoration: none; }
.welcome-offer-link .icon { width: 15px; height: 15px; }
@media (max-width: 520px) { .welcome-offer .wrap { align-items: flex-start; flex-direction: column; gap: 6px; } }

/* Avis clients */
.review-stars { color: #b27a12; letter-spacing: 1px; white-space: nowrap; }
.review-rating-options { display: flex; flex-wrap: wrap; gap: 8px; }
.review-rating-option { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.review-rating-option:has(input:checked) { border-color: var(--green); background: var(--green-tint); }

/* Rayons : léger relief au survol */
.cat-tile { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ink) 8%, transparent); }
@media (hover: hover) { .cat-tile:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ink) 16%, transparent), 0 10px 24px -16px rgba(23, 24, 26, .3); } }

/* Étoiles dorées : variétés CBD puissantes */
.stars { display: inline-block; margin-left: 6px; color: #d9a521; font-size: .8em; letter-spacing: 1px; white-space: nowrap; text-shadow: 0 0 1px rgba(160,110,0,.35); vertical-align: 1px; }
.pdp .stars { font-size: .55em; margin-left: 10px; }
