/* ============================================
   PAGE DE RÉSERVATION EN LIGNE (clients finaux)
   ============================================
   En-tête du magasin, onglets, vélos à gauche, panneau « Vos dates » + panier
   à droite (en haut sur téléphone), page « Finaliser ma réservation ».
   Identité Izald « Épure » (30/11) : fond gris clair, noir doux, Inter (Inter Tight pour les
   titres), boutons en pilule, cartes arrondies. Toutes les couleurs passent par :root ;
   --accent = couleur du loueur (posée par book.js). */
:root {
  --accent: #1f4d3f;
  --accent-ink: #ffffff;        /* texte posé sur la couleur d'accent */
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73;
  --off: #c7c7cc;               /* jours et textes désactivés */
  --bg: #f5f5f7;                /* fond gris clair (identité Épure, 30/11) */
  --card: #ffffff;
  --surface-2: #f5f5f7;         /* encadrés, champs secondaires */
  --line: #e5e5ea; --line-strong: #d1d1d6;
  --soft: #ececf0; --soft-ink: #424245;   /* onglet actif, pastilles */
  --hatch: #e5e5ea;             /* hachures des jours fermés */
  --full-bg: #efeff2;           /* jours complets */
  --ok: #1d7a4a; --ok-bg: #e3f2e8;
  --bad: #b3261e; --bad-bg: #fce6e4; --bad-bd: #e58c84; --bad-soft: #fff4f2;
  --hot: #a8431b; --hot-bg: #fff0e6; --hot-bd: #f0c2a4;
  --warn-bg: #fff0dd; --warn-bd: #f0a24a; --warn-ink: #8a4300;
  --scrim: #0000004d;
  --shadow: 0 1px 2px #0000000a, 0 4px 14px #00000008;
  --shadow-lg: 0 20px 60px #0000002e;
  --radius: 18px; --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, b, strong { letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-head); letter-spacing: -.02em; }
/* Icônes au trait : <svg class="i"><use href="#i-nom"/></svg> */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--accent); }

/* ---------- en-tête du magasin ---------- */
.shop-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: 18px; }
.head-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand .mark { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 26px; flex: none; }
.brand .mark.has-logo { width: auto; min-width: 52px; max-width: 160px; background: none; }
.brand .mark img { height: 52px; max-width: 160px; object-fit: contain; display: block; }
.brand h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.brand-txt p { margin: 2px 0 0; font-size: 13.5px; }
.open-now { display: inline-block; padding: 1px 8px; border-radius: 99px; font-weight: 600; font-size: 12.5px; background: var(--ok-bg); color: var(--ok); }
.open-now.closed { background: var(--full-bg); color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.trust .i { width: 16px; height: 16px; color: var(--accent); }

/* ---------- onglets ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.tab { border: 0; background: none; height: 38px; padding: 0 16px; border-radius: 99px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab.on { color: var(--soft-ink); background: var(--soft); }

/* ---------- deux colonnes ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.side { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-card h2 { margin: 0 0 12px; font-size: 18px; }

/* ---------- barre d'outils : recherche, taille, tri, types ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar input, .toolbar select { height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: 0 12px; }
.search { flex: 1 1 220px; }
.search input { width: 100%; padding-left: 38px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2369716b' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 13px center; }
.height { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.height input { width: 84px; }
.height small { color: var(--muted); font-weight: 400; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--card); }

/* ---------- les vélos (cartes produit) ---------- */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; transition: opacity .15s; }
.shop.loading { opacity: .5; pointer-events: none; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: box-shadow .15s, border-color .15s; }
.product:hover { box-shadow: var(--shadow); }
.product.in { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.product.off { opacity: .6; }
.product .pic { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--surface-2), var(--accent-soft)); display: grid; place-items: center; }
.product .pic img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.product .ph { width: 58%; color: var(--accent); }
.product .ph svg { width: 100%; height: auto; display: block; }
.product .kind { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.product .tag { position: absolute; bottom: 10px; left: 10px; padding: 3px 10px; border-radius: 99px; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.product .tag.bad { color: var(--bad); }
.product .tag.hot { color: var(--hot); border-color: var(--hot-bd); }
.product .body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; flex: 1; }
.product .pname { font-size: 16.5px; line-height: 1.3; }
/* Groupe (1er déc.) : la taille se choisit sur la carte (Vélo enfant : 14″ · 16″ · 24″) */
.product .sizes { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 2px; }
.product .size-pill { position: relative; min-width: 62px; padding: 6px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.25; text-align: center; cursor: pointer; }
.product .size-pill b { display: block; font-size: 14px; }
.product .size-pill small { color: var(--muted); }
.product .size-pill.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.product .size-pill.off { opacity: .5; }
.product .size-pill.off b { text-decoration: line-through; }
.product .size-pill i { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.product .size-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product .size { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13px; }
.product .size .i { width: 15px; height: 15px; }
.product .desc { color: var(--muted); font-size: 13px; }
.product .price { margin-top: 8px; }
.product .price b { font-size: 20px; letter-spacing: -.01em; }
.product .combo { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.product .act { margin-top: auto; padding-top: 12px; }
.product .why { color: var(--muted); margin-top: 6px; }
.avail { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.avail-line { font-size: 12.5px; line-height: 1.35; }
.avail-line.ok { color: var(--ok); font-weight: 600; }
.avail-line.hurry { display: flex; align-items: center; gap: 4px; color: var(--hot); font-weight: 700; background: var(--hot-bg); border-radius: 6px; padding: 3px 6px; }
.avail-line.out { color: var(--muted); text-decoration: line-through; }
.avail-line.next { color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 3px 6px; }
.add { width: 100%; height: 46px; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.add:disabled { background: var(--line); color: var(--muted); cursor: default; }
.qty { display: flex; align-items: center; justify-content: space-between; height: 46px; border: 2px solid var(--accent); border-radius: 99px; overflow: hidden; }
.qty button { width: 50px; height: 100%; border: 0; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer; }
.qty button:disabled { color: var(--muted); background: transparent; cursor: default; }
.qty b { font-size: 18px; }
/* Caution mise en avant (cartes vélos, panier) et prise en charge employeur (service public) */
.product .dep-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.product .employer { display: block; color: var(--ok); font-size: 12.5px; line-height: 1.4; }
.product .employer svg, .cart .employer svg { vertical-align: -3px; margin-right: 4px; }
.dep-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dep-box > svg { flex: none; margin-top: 2px; color: var(--accent); }
.dep-box b { display: block; font-size: 14px; }
.dep-box small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.cart .employer { display: block; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ok); }
.employer-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ink); font-size: 13px; line-height: 1.45; }
.limit-note { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; font-weight: 600; }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.quote.bad { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: var(--bad-bg); border: 1px solid var(--bad-bd); margin: 0; }

/* ---------- « Vos dates » : deux portes d'entrée ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px; text-align: left; border: 2px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; }
.mode b { font-size: 14.5px; }
.mode small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.mode.on { border-color: var(--accent); background: var(--accent-soft); }
.help { margin: 0 0 8px; color: var(--ink-2); font-size: 13.5px; }

/* Agenda : un mois à la fois dans le panneau */
.cal { user-select: none; }
.month.second { display: none; }
.month .mhead { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.month .mhead b { flex: 1; text-align: center; font-size: 15px; }
.month .nav { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 18px; cursor: pointer; color: var(--ink-2); }
.wk, .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.wk span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.days { row-gap: 3px; }
.d { height: 40px; border: 0; background: none; font-size: 14.5px; font-weight: 500; cursor: pointer; position: relative; color: var(--ink); }
.d:disabled { color: var(--off); cursor: default; }
.d.today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.d:not(:disabled):hover { background: var(--accent-soft); border-radius: 10px; }
.d.in, .d.preview { background: var(--accent-soft); border-radius: 0; }
.d.start, .d.end { background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 700; }
.d.start:not(.end) { border-radius: 10px 0 0 10px; }
.d.end:not(.start) { border-radius: 0 10px 10px 0; }
.d.start.today::after, .d.end.today::after { background: var(--accent-ink); }
.d.suggest { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 10px; font-weight: 700; }
.d.closed { color: var(--off); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--hatch) 5px 7px); border-radius: 10px; }
.d.full { color: var(--off); background: var(--full-bg); border-radius: 10px; }
.d.far { color: var(--off); text-decoration: line-through; }
.cal-legend { display: flex; gap: 14px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 1px solid var(--line); }
.cal-legend .lg-closed { background: repeating-linear-gradient(135deg, var(--card) 0 3px, var(--hatch) 3px 5px); }
.cal-legend .lg-full { background: var(--full-bg); }
.stay { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; }
.stay small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.stay:empty { display: none; }
.bridge { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.bridge:empty { display: none; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
.formulas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.formula { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; text-align: left; border: 2px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; }
.formula b { font-size: 15px; }
.formula small { color: var(--muted); }
.formula.on { border-color: var(--accent); background: var(--accent-soft); }
.static { margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; }
.slot-box { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.slot-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-width: 70px; height: 40px; padding: 0 14px; border-radius: 99px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.slot.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* ---------- panier (panneau) ---------- */
.cart h3 { margin: 0 0 8px; font-size: 15px; }
.cart ul { list-style: none; margin: 0 0 6px; padding: 0; }
.cart li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart li span:first-child { flex: 1; }
.cart li small { color: var(--muted); }
.cart .x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.cart .x:hover { background: var(--surface-2); color: var(--bad); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 2px; }
.cart-total b { font-size: 18px; }
.notice { margin: 0 0 8px; color: var(--bad); font-weight: 600; font-size: 13.5px; }
.sum-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 10px; }
.sum { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sum b { display: block; font-size: 19px; }
.sum small { color: var(--muted); font-size: 12.5px; }
.bag { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); line-height: 1; }
.bag .i { width: 22px; height: 22px; }
.bag em { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 12px/20px var(--font); text-align: center; }
.cta { height: 48px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap; }
.cta:disabled { opacity: .45; cursor: default; }
.cta.big { width: 100%; height: 54px; font-size: 17px; margin-top: 6px; }
.pay-methods { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.pay-methods .pm { padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; color: var(--ink-2); }

/* ---------- infos pratiques & plan ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.info h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15.5px; }
.info h3 .i { color: var(--accent); }
.info p, .info li { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.info ul { margin: 0; padding-left: 18px; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius); background: var(--card); }
.map-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

/* ---------- finaliser la réservation ---------- */
.back { border: 0; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; padding: 4px 0; margin-bottom: 6px; }
.page-title { margin: 0 0 16px; font-size: 24px; letter-spacing: -.01em; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.box h3 { margin: 0 0 14px; font-size: 17px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.field input:focus, .field textarea:focus, .toolbar input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.phone { display: flex; }
.phone select { width: auto; min-width: 104px; border-radius: 12px 0 0 12px; border-right: 0; min-height: 46px; padding: 0 8px; border: 1px solid var(--line); background: var(--surface-2); }
.phone input { border-radius: 0 12px 12px 0; }
.switch { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch .knob { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); transition: left .15s; }
.switch input:checked + .knob { background: var(--accent); }
.switch input:checked + .knob::after { left: 21px; }
.switch input:focus-visible + .knob { outline: 3px solid var(--accent-soft); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.terms { max-height: 200px; overflow: auto; white-space: pre-wrap; font-size: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.privacy-line { font-size: 13.5px; color: var(--ink-2); }
.privacy-line .i, .recap .i, .map-card .i { width: 16px; height: 16px; color: var(--accent); }
footer .i { width: 15px; height: 15px; }
.error { color: var(--bad); font-weight: 600; margin: 12px 0; }
.recap h3 { margin: 0 0 10px; }
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: 14px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; }
.recap .line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.recap .total { display: flex; justify-content: space-between; padding-top: 10px; font-size: 18px; font-weight: 700; }
#cityHint.bad { color: var(--bad); font-weight: 600; }
#done .dep { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; text-align: left; }
.recap .dep { margin-top: 8px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); padding: 8px 10px; border-radius: 10px; }

/* ---------- fenêtre « Vos données » ---------- */
.modal-wrap { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { position: relative; background: var(--card); border-radius: var(--radius); padding: 22px 24px; width: min(560px, 100%); max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 10px; font-size: 18px; padding-right: 30px; }
.modal p { margin: 8px 0; color: var(--ink-2); }
.modal .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); cursor: pointer; font-size: 16px; }

/* ---------- confirmation ---------- */
.pay-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-ink); font-weight: 600; }
.done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; max-width: 640px; margin: 0 auto; }
.done .ok { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-size: 28px; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; max-width: 420px; margin: 18px auto; }
.done dt { color: var(--muted); }
.done dd { margin: 0; font-weight: 600; }
.dep-choices { display: grid; gap: 10px; }
.dep-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.dep-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dep-choice input { margin-top: 3px; accent-color: var(--accent); }
.dep-choice b { display: flex; align-items: center; gap: 6px; }
.dep-choice small { color: var(--ink-2); }
.done-next { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.done-next p { margin: 0 0 12px; }
.sign-card { text-align: left; }
.sign-card .sig-accept { display: block; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.sign-card .sig-accept input { float: left; margin: 3px 8px 0 0; accent-color: var(--accent); }
.sign-card .sig-accept .link { display: inline; }
.terms-pop { max-height: 220px; overflow: auto; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12.5px; }
.terms-pop h4 { margin: 10px 0 4px; font-size: 13px; }
.terms-pop h4:first-child { margin-top: 0; }
.terms-pop div { white-space: pre-wrap; }
.sign-card .sig-name { display: block; margin-bottom: 10px; }
.sign-card .sig-name span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.sign-card .sig-name input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font: inherit; }
.sig-wrap { display: block; }
.sig-wrap > span { display: block; font-size: 12px; margin-bottom: 4px; }
.sig-pad { width: 100%; height: 170px; border: 1px dashed var(--accent); border-radius: var(--radius-sm); background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sig-actions { display: flex; align-items: center; margin-top: 12px; }
.btn-ghost { height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.paid { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 700; }
footer { padding: 28px 16px 40px; font-size: 13px; text-align: center; }

/* ---------- téléphone : dates d'abord, total en barre en bas ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
  #checkoutView .side { order: 0; }
  .cart-card { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; border-radius: 16px 16px 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px #3c280a14; }
  .cart-card .cart, .cart-card .pay-methods { display: none !important; }
  .cart-card .sum-bar { margin-top: 0; }
  body { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product .body { padding: 10px 12px 12px; }
  .product .pname { font-size: 15px; }
  .trust li { font-size: 12px; padding: 4px 10px; }
  .brand h1 { font-size: 19px; }
  .height input { width: 70px; }
  .modes .mode small { display: none; }
}

/* ---------- jours fériés / fermetures exceptionnelles : bien visibles ---------- */
.d.holiday { color: var(--bad); background: var(--bad-bg); border-radius: 10px; text-decoration: line-through; font-weight: 600; }
.cal-legend .lg-holiday { background: var(--bad-bg); border-color: var(--bad-bd); }
.cal-legend { flex-wrap: wrap; }
.cal-closures { list-style: none; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--bad-soft); border: 1px solid var(--bad-bd); font-size: 12.5px; color: var(--bad); }
.cal-closures li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.cal-closures i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }

/* ---------- tarif plein / réduit ---------- */
.rate-box { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.rate-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rate-seg button { height: 40px; border-radius: 99px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.rate-seg button.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- mis en avant, accessoires ---------- */
.product.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.product .kind.featured { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.acc-title { margin: 26px 0 2px; font-size: 18px; }
.acc-sub { margin: 0 0 12px; font-size: 13.5px; }
.product.acc .pic { aspect-ratio: 16 / 9; }

/* ---------- bouton « Remarque » (période de test) ---------- */
.fb-btn { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 99px; background: var(--ink); color: var(--card); font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-lg); }
.fb-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.fb-kinds button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.fb-kinds button small { color: var(--muted); font-size: 12px; }
.fb-kinds button.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#fbModal .field { margin-bottom: 12px; }
.fb-shot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fb-file { display: inline-flex; align-items: center; }
.fb-shot img { max-height: 80px; max-width: 140px; border-radius: 8px; border: 1px solid var(--line); }
.fb-err { color: var(--bad); font-weight: 600; }
@media (max-width: 720px) {
  .fb-btn { bottom: 84px; right: 12px; height: 40px; padding: 0 12px; }
  .fb-btn span { display: none; }
  .fb-kinds { grid-template-columns: 1fr; }
}

/* ---------- icônes dans les pastilles ---------- */
.product .kind, .product .tag { display: inline-flex; align-items: center; gap: 4px; }
.product .kind .i, .product .tag .i, .avail-line .i { width: 14px; height: 14px; }
.recap .dep .i { vertical-align: -3px; margin-right: 2px; }

/* ---------- agences : choix de l'agence de retrait ---------- */
.agency-box { margin-bottom: 14px; }
.agency-box .field select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.agency-note { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13px; line-height: 1.45; }
.agency-note .i { width: 15px; height: 15px; color: var(--accent); }
.avail-line .link { font-size: inherit; }

/* ---------- présentation de la boutique : photos qui défilent + texte ---------- */
.covers { position: relative; aspect-ratio: 16 / 5; min-height: 160px; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--surface-2); }
.covers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.covers img.on { opacity: 1; }
.cover-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.cover-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #ffffff99; cursor: pointer; box-shadow: 0 1px 3px #0004; }
.cover-dots button.on { width: 22px; background: #fff; }
.about { margin: 0 0 18px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.about-text { line-height: 1.6; color: var(--ink-2); }
.about-text > :first-child { margin-top: 0; } .about-text > :last-child { margin-bottom: 0; }
.about-text h3 { font-size: 17px; color: var(--ink); margin: 12px 0 4px; } .about-text h4 { font-size: 15px; color: var(--ink); margin: 10px 0 4px; }
.about-text p { margin: 0 0 8px; } .about-text ul, .about-text ol { margin: 6px 0; padding-left: 20px; }
.about-text blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--accent); }
.about.folded .about-text { max-height: 130px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.about .link { margin-top: 8px; }
@media (max-width: 560px) { .covers { aspect-ratio: 16 / 9; } }

/* ---------- avis Google (page de confirmation) ---------- */
.review-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.review-box .i { color: var(--accent); }
.review-link { display: inline-grid; place-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.notice-note:not([hidden]) { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-ink); font-size: 13px; line-height: 1.45; }
.notice-note .i { flex: none; width: 18px; height: 18px; margin-top: 1px; }
