/* =========================================================================
   PIZZERIA LA VENDETTA — UI commande façon Uber Eats / eats.ch
   Thème clair, propre, appétissant
   ========================================================================= */

/* ---------- Police auto-hébergée (Plus Jakarta Sans, variable) ----------
   Auto-hébergée pour la conformité nLPD/RGPD (pas d'appel à Google) et la perf.
   Fichier variable unique par sous-ensemble → couvre les graisses 400→800. */
@font-face{
  font-family:"Plus Jakarta Sans";
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url("../fonts/pjs-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Plus Jakarta Sans";
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url("../fonts/pjs-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --bg:        #ffffff;
  --bg-soft:   #f6f6f7;
  --bg-soft-2: #f0eff0;
  --ink:       #18130f;
  --ink-2:     #57514b;
  --muted:     #8b847c;
  --line:      #ececec;
  --line-2:    #e2e0dd;

  --brand:     #e8472b;   /* tomate / eats */
  --brand-dark:#c5371f;
  --brand-tint:#fdeee9;
  --green:     #1a9d4f;
  --green-tint:#e7f6ec;
  --gold:      #f0a32e;
  --star:      #f5a623;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow:    0 4px 16px rgba(20,16,12,.06);
  --shadow-md: 0 8px 28px rgba(20,16,12,.10);
  --shadow-lg: 0 20px 48px rgba(20,16,12,.16);

  --ff: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --top-h: 68px;
  --cat-h: 60px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:var(--ff);
  background:var(--bg-soft);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip;               /* pas hidden : évite les à-coups Lenis en bas de page */
  -webkit-tap-highlight-color:transparent;
}
body.no-scroll{ overflow:hidden; }
img{ display:block; max-width:100%; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
input,textarea,select{ font-family:inherit; font-size:1rem; }
::selection{ background:var(--brand); color:#fff; }

.wrap{ width:min(100% - 2rem, var(--maxw)); margin-inline:auto; }
html.lenis,html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }

/* ---------- boutons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:700; font-size:.95rem; border-radius:999px; padding:.8rem 1.4rem;
  transition:transform .2s var(--ease), box-shadow .25s, background .2s, color .2s, border-color .2s; white-space:nowrap; }
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-dark); }
.btn-primary:disabled{ background:var(--line-2); color:var(--muted); cursor:not-allowed; }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:#000; }
.btn-ghost{ background:var(--bg-soft); color:var(--ink); border:1px solid var(--line-2); }
.btn-ghost:hover{ background:var(--bg-soft-2); }
.btn-block{ width:100%; }
.btn-lg{ padding:1rem 1.5rem; font-size:1rem; }

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader{ position:fixed; inset:0; z-index:2000; background:var(--bg); display:grid; place-items:center;
  transition:opacity .5s ease, visibility .5s; }
#preloader.done{ opacity:0; visibility:hidden; }
.pre-inner{ text-align:center; }
.pre-pizza{ width:74px; height:74px; margin:0 auto 18px; border-radius:50%;
  border:3px solid var(--brand-tint); border-top-color:var(--brand); animation:spin 1s linear infinite; position:relative; }
.pre-pizza::after{ content:"🍕"; position:absolute; inset:0; display:grid; place-items:center; font-size:30px; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.pre-word{ font-size:1.35rem; font-weight:800; letter-spacing:-.02em; }
.pre-word b{ color:var(--brand); }
.pre-sub{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-top:5px; }

/* =========================================================================
   TOP BAR
   ========================================================================= */
.top{ position:sticky; top:0; z-index:200; height:var(--top-h); background:var(--bg);
  border-bottom:1px solid var(--line); display:flex; align-items:center; }
.top-inner{ width:min(100% - 2rem, var(--maxw)); margin-inline:auto; display:flex; align-items:center; gap:1.2rem; }
.brand{ display:flex; align-items:center; gap:.55rem; font-weight:800; font-size:1.25rem; letter-spacing:-.02em; flex:none; }
.brand .mark{ width:36px; height:36px; border-radius:10px; background:var(--brand); display:grid; place-items:center; font-size:19px; }
.brand b{ color:var(--brand); }
.brand small{ display:block; font-size:.58rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-top:-3px; }

.search{ flex:1; max-width:420px; display:flex; align-items:center; gap:.6rem; background:var(--bg-soft);
  border:1px solid transparent; border-radius:999px; padding:.6rem 1rem; transition:.2s; }
.search:focus-within{ background:#fff; border-color:var(--line-2); box-shadow:var(--shadow); }
.search svg{ width:18px; height:18px; color:var(--muted); flex:none; }
.search input{ border:none; background:none; outline:none; width:100%; font-size:.95rem; color:var(--ink); }
.search input::placeholder{ color:var(--muted); }

.top-actions{ margin-left:auto; display:flex; align-items:center; gap:.7rem; }
.status-pill{ display:inline-flex; align-items:center; gap:.45rem; padding:.45rem .8rem; border-radius:999px;
  font-size:.8rem; font-weight:700; background:var(--bg-soft); color:var(--ink-2); white-space:nowrap; }
.status-pill[hidden]{ display:none; }
.status-pill .dot{ width:8px; height:8px; border-radius:50%; background:var(--muted); flex:none; }
.status-pill.open{ color:var(--green); background:var(--green-tint); }
.status-pill.open .dot{ background:var(--green); animation:pulseDot 2.2s infinite; }
.status-pill.closed .dot{ background:var(--brand); }
@keyframes pulseDot{ 0%{box-shadow:0 0 0 0 rgba(26,157,79,.5);} 70%{box-shadow:0 0 0 6px rgba(26,157,79,0);} 100%{box-shadow:0 0 0 0 rgba(26,157,79,0);} }

.cart-btn{ position:relative; display:inline-flex; align-items:center; gap:.5rem; background:var(--ink); color:#fff;
  padding:.65rem 1.1rem; border-radius:999px; font-weight:700; font-size:.92rem; transition:.2s; }
.cart-btn:hover{ background:#000; }
.cart-btn svg{ width:18px; height:18px; }
.cart-btn .cc{ background:rgba(255,255,255,.22); border-radius:999px; min-width:22px; height:22px; padding:0 6px;
  display:grid; place-items:center; font-size:.78rem; font-weight:800; }
.cart-btn.bump{ animation:bump .4s var(--ease); }
@keyframes bump{ 0%{transform:scale(1);} 40%{transform:scale(1.06);} 100%{transform:scale(1);} }

/* =========================================================================
   BANNER RESTAURANT
   ========================================================================= */
.banner{ position:relative; }
.banner-cover{ height:clamp(180px,26vw,300px); overflow:hidden; position:relative; }
.banner-cover img{ width:100%; height:100%; object-fit:cover; }
.banner-cover::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }

.resto-card{ width:min(100% - 2rem, var(--maxw)); margin:-46px auto 0; position:relative; z-index:2;
  background:var(--bg); border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--shadow-md);
  padding:clamp(1.2rem,3vw,1.8rem) clamp(1.2rem,3vw,2rem); }
.resto-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.resto-name{ font-size:clamp(1.6rem,4vw,2.3rem); font-weight:800; letter-spacing:-.025em; }
.resto-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .9rem; margin-top:.5rem; color:var(--ink-2); font-size:.92rem; font-weight:600; }
.resto-meta .rate{ display:inline-flex; align-items:center; gap:.3rem; color:var(--ink); }
.resto-meta .rate svg{ width:16px; height:16px; color:var(--star); }
.resto-meta .sep{ width:4px; height:4px; border-radius:50%; background:var(--line-2); }
.resto-meta .tag{ color:var(--ink-2); }
.resto-badges{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
.rb{ display:inline-flex; align-items:center; gap:.5rem; background:var(--bg-soft); border-radius:12px; padding:.6rem .85rem; font-size:.86rem; font-weight:700; }
.rb svg{ width:17px; height:17px; color:var(--brand); }
.rb b{ font-weight:800; }
.rb small{ color:var(--muted); font-weight:600; }

/* mode toggle */
.seg{ display:inline-flex; padding:4px; background:var(--bg-soft); border-radius:999px; gap:3px; flex:none; }
.seg button{ padding:.55rem 1.1rem; border-radius:999px; font-weight:700; font-size:.86rem; color:var(--ink-2); transition:.2s; display:inline-flex; align-items:center; gap:.4rem; }
.seg button svg{ width:16px; height:16px; }
.seg button.active{ background:var(--bg); color:var(--ink); box-shadow:var(--shadow); }

/* =========================================================================
   CATEGORY BAR (sticky)
   ========================================================================= */
.cat-bar{ position:sticky; top:var(--top-h); z-index:150; background:var(--bg); border-bottom:1px solid var(--line); }
.cat-scroll{ width:min(100% - 2rem, var(--maxw)); margin-inline:auto; display:flex; gap:.4rem; overflow-x:auto; padding:.7rem 0; scrollbar-width:none; }
.cat-scroll::-webkit-scrollbar{ display:none; }
.cat-tab{ flex:none; display:inline-flex; align-items:center; gap:.45rem; padding:.55rem 1rem; border-radius:999px;
  font-weight:700; font-size:.9rem; color:var(--ink-2); background:var(--bg-soft); transition:.2s; }
.cat-tab svg{ width:16px; height:16px; }
.cat-tab .num{ font-size:.7rem; opacity:.65; font-weight:800; }
.cat-tab:hover{ background:var(--bg-soft-2); color:var(--ink); }
.cat-tab.active{ background:var(--ink); color:#fff; }
.cat-tab.active .num{ opacity:.8; }

/* =========================================================================
   SHELL (menu + cart sidebar)
   ========================================================================= */
.shell{ width:min(100% - 2rem, var(--maxw)); margin:1.6rem auto 3rem; display:grid; grid-template-columns:1fr 350px; gap:2rem; align-items:start; }
.menu-col{ min-width:0; }

/* ---------- Section populaires ---------- */
.pop-sec{ margin-bottom:2rem; }
.sec-title{ font-size:1.35rem; font-weight:800; letter-spacing:-.02em; margin-bottom:.3rem; display:flex; align-items:center; gap:.5rem; }
.sec-title svg{ width:20px; height:20px; color:var(--brand); }
.sec-sub{ color:var(--muted); font-size:.9rem; margin-bottom:1rem; }
.pop-row{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(180px,1fr); gap:.9rem; overflow-x:auto; padding-bottom:.5rem; scrollbar-width:none; scroll-snap-type:x mandatory; }
.pop-row::-webkit-scrollbar{ display:none; }
.pop-card{ scroll-snap-align:start; background:var(--bg); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; cursor:pointer; transition:.2s; display:flex; flex-direction:column; }
.pop-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.pop-card .pc-img{ position:relative; aspect-ratio:16/11; }
.pop-card .pc-img img{ width:100%; height:100%; object-fit:cover; }
.pop-add{ position:absolute; right:8px; bottom:8px; width:32px; height:32px; border-radius:50%; background:var(--bg); box-shadow:var(--shadow-md); display:grid; place-items:center; color:var(--brand); transition:.2s; }
.pop-add:hover{ background:var(--brand); color:#fff; transform:scale(1.08); }
.pop-add svg{ width:18px; height:18px; }
.pop-card .pc-body{ padding:.7rem .8rem .9rem; }
.pop-card .pc-name{ font-weight:700; font-size:.95rem; }
.pop-card .pc-price{ color:var(--ink-2); font-size:.88rem; font-weight:700; margin-top:.2rem; }

/* ---------- Menu sections (panels) ---------- */
.menu-panel[hidden]{ display:none; }
.panel-in{ animation:panelIn .4s var(--ease); }
@keyframes panelIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.menu-panel{ margin-bottom:1.4rem; }
.panel-head{ margin-bottom:.4rem; }
.panel-title{ font-size:1.5rem; font-weight:800; letter-spacing:-.02em; }
.panel-sub{ color:var(--muted); font-size:.9rem; margin-bottom:.8rem; }

/* filters */
.filters{ display:flex; flex-wrap:wrap; gap:.5rem; margin:.4rem 0 1rem; }
.chip{ padding:.45rem .9rem; border-radius:999px; border:1px solid var(--line-2); font-size:.84rem; font-weight:700; color:var(--ink-2); background:var(--bg); transition:.2s; }
.chip:hover{ border-color:var(--ink); color:var(--ink); }
.chip.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* ---------- Dish row (style Uber Eats) ---------- */
.dish-list{ display:flex; flex-direction:column; }
.dish{ display:flex; gap:1rem; padding:1.1rem 0; border-top:1px solid var(--line); cursor:pointer; transition:background .15s; }
.dish:first-child{ border-top:none; }
.dish:hover{ background:linear-gradient(90deg, rgba(0,0,0,.012), transparent); }
.dish-info{ flex:1; min-width:0; }
.dish-name{ font-weight:700; font-size:1.02rem; display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.dish-badge{ font-size:.64rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding:.18rem .45rem; border-radius:6px; }
.dish-badge.sig{ background:var(--ink); color:#fff; }
.dish-badge.hot{ background:var(--brand-tint); color:var(--brand-dark); }
.dish-badge.veg{ background:var(--green-tint); color:var(--green); }
.dish-badge.pop{ background:#fff3e0; color:#c77b18; }
.dish-desc{ color:var(--ink-2); font-size:.9rem; margin-top:.3rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dish-price{ font-weight:700; font-size:.96rem; margin-top:.55rem; }
.dish-price .from{ color:var(--muted); font-weight:600; font-size:.82rem; }
.dish-media{ position:relative; width:124px; height:124px; flex:none; border-radius:14px; overflow:hidden; background:var(--bg-soft); }
.dish-media img{ width:100%; height:100%; object-fit:cover; }
.dish-media--none{ display:grid; place-items:center; color:var(--brand); }
.dish-media--none svg{ width:42px; height:42px; opacity:.7; }
.dish-add{ position:absolute; right:8px; bottom:8px; width:34px; height:34px; border-radius:50%; background:var(--bg);
  box-shadow:var(--shadow-md); display:grid; place-items:center; color:var(--brand); transition:.18s; }
.dish-add:hover{ background:var(--brand); color:#fff; transform:scale(1.1); }
.dish-add svg{ width:19px; height:19px; }
.dish-add.added{ background:var(--green); color:#fff; }
.dish:not(:has(.dish-media)) .dish-add{ position:static; } /* fallback */

/* no-result */
.no-res{ padding:3rem 1rem; text-align:center; color:var(--muted); }
.no-res .em{ font-size:38px; }

/* =========================================================================
   CART (sidebar desktop · drawer mobile)
   ========================================================================= */
.cart-col{ position:sticky; top:calc(var(--top-h) + var(--cat-h) + 16px); }
.cart{ background:var(--bg); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow); display:flex; flex-direction:column; max-height:calc(100vh - var(--top-h) - var(--cat-h) - 40px); overflow:hidden; }
.cart-head{ padding:1.1rem 1.2rem; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.cart-head h3{ font-size:1.15rem; font-weight:800; }
.cart-close{ display:none; width:36px; height:36px; border-radius:50%; background:var(--bg-soft); place-items:center; }
.cart-close svg{ width:18px; height:18px; }
.cart-mode{ padding:.9rem 1.2rem 0; }
.cart-mode .seg{ width:100%; }
.cart-mode .seg button{ flex:1; justify-content:center; }
.cart-items{ flex:1; overflow-y:auto; padding:1rem 1.2rem; display:flex; flex-direction:column; gap:.9rem; }
.cart-empty{ flex:1; display:grid; place-content:center; text-align:center; color:var(--muted); gap:.6rem; padding:2.5rem 1rem; }
.cart-empty .em{ font-size:40px; }

.ci{ display:flex; gap:.7rem; }
.ci-q{ flex:none; min-width:26px; height:26px; padding:0 6px; border-radius:8px; background:var(--brand-tint); color:var(--brand-dark); font-weight:800; font-size:.82rem; display:grid; place-items:center; }
.ci-main{ flex:1; min-width:0; }
.ci-name{ font-weight:700; font-size:.92rem; }
.ci-opts{ font-size:.78rem; color:var(--muted); margin-top:1px; line-height:1.35; }
.ci-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:.4rem; }
.ci-price{ font-weight:700; font-size:.9rem; }
.qty{ display:inline-flex; align-items:center; gap:.1rem; border:1px solid var(--line-2); border-radius:999px; padding:2px; }
.qty button{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:var(--ink); font-size:1.05rem; transition:.15s; }
.qty button:hover{ background:var(--bg-soft); color:var(--brand); }
.qty span{ min-width:22px; text-align:center; font-weight:700; font-size:.85rem; }
.ci .rm{ color:var(--muted); font-size:.78rem; text-decoration:underline; }
.ci .rm:hover{ color:var(--brand); }

.cart-foot{ border-top:1px solid var(--line); padding:1.1rem 1.2rem 1.2rem; }
.cart-row{ display:flex; justify-content:space-between; font-size:.9rem; color:var(--ink-2); margin-bottom:.4rem; }
.cart-row.total{ font-size:1.1rem; color:var(--ink); font-weight:800; margin:.6rem 0 .9rem; padding-top:.7rem; border-top:1px solid var(--line); }
.cart-note{ font-size:.76rem; color:var(--muted); text-align:center; margin-top:.6rem; }
.min-warn{ font-size:.82rem; color:var(--brand-dark); background:var(--brand-tint); border-radius:10px; padding:.55rem .75rem; margin-bottom:.8rem; text-align:center; display:none; }
.min-warn.show{ display:block; }

/* scrim + drawer mobile */
.scrim{ position:fixed; inset:0; z-index:300; background:rgba(20,16,12,.45); opacity:0; visibility:hidden; transition:.3s; }
.scrim.open{ opacity:1; visibility:visible; }

/* mobile bottom bar */
.cart-bar{ position:fixed; left:50%; bottom:calc(14px + env(safe-area-inset-bottom)); transform:translateX(-50%) translateY(140%); z-index:180;
  width:min(100% - 1.4rem, 520px); background:var(--brand); color:#fff; border-radius:999px; padding:.8rem 1rem .8rem 1.3rem;
  display:flex; align-items:center; justify-content:space-between; box-shadow:var(--shadow-lg); transition:transform .35s var(--ease); cursor:pointer; }
.cart-bar.show{ transform:translateX(-50%) translateY(0); }
.cart-bar .cb-left{ display:flex; align-items:center; gap:.6rem; font-weight:700; }
.cart-bar .cb-count{ background:rgba(255,255,255,.25); border-radius:999px; min-width:24px; height:24px; display:grid; place-items:center; font-size:.82rem; padding:0 6px; font-weight:800; }
.cart-bar .cb-total{ font-weight:800; }

/* =========================================================================
   MODAL — personnalisation pizza & checkout
   ========================================================================= */
.modal{ position:fixed; inset:0; z-index:400; display:grid; place-items:center; padding:1rem; opacity:0; visibility:hidden; transition:.25s; }
.modal.open{ opacity:1; visibility:visible; }
.modal-bg{ position:absolute; inset:0; background:rgba(20,16,12,.5); }
.modal-card{ position:relative; width:min(540px,100%); max-height:92vh; overflow:hidden; display:flex; flex-direction:column;
  background:var(--bg); border-radius:var(--r-xl); box-shadow:var(--shadow-lg); transform:translateY(16px) scale(.98); transition:transform .3s var(--ease); }
.modal.open .modal-card{ transform:none; }
.modal-hero{ position:relative; height:180px; flex:none; }
.modal-hero img{ width:100%; height:100%; object-fit:cover; }
.modal-hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%, rgba(0,0,0,.5)); }
.modal-x{ position:absolute; top:12px; right:12px; z-index:3; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.92); display:grid; place-items:center; color:var(--ink); box-shadow:var(--shadow); }
.modal-x svg{ width:18px; height:18px; }
.modal-title{ position:absolute; bottom:14px; left:18px; right:18px; z-index:2; color:#fff; }
.modal-title h3{ font-size:1.5rem; font-weight:800; letter-spacing:-.02em; }
.modal-title p{ font-size:.85rem; opacity:.9; }
.modal-body{ overflow-y:auto; padding:1.3rem 1.4rem; }
.modal-foot{ flex:none; padding:1rem 1.4rem 1.3rem; border-top:1px solid var(--line); }

.opt-label{ font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); font-weight:800; margin:1.2rem 0 .7rem; display:flex; align-items:center; justify-content:space-between; }
.opt-label:first-child{ margin-top:0; }
.opt-label small{ text-transform:none; letter-spacing:0; font-weight:600; }

.size-grid{ display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
.size-opt{ border:2px solid var(--line); border-radius:var(--r); padding:.9rem; text-align:left; transition:.18s; position:relative; background:var(--bg); }
.size-opt:hover{ border-color:var(--ink-2); }
.size-opt.sel{ border-color:var(--brand); background:var(--brand-tint); }
.size-opt .sz{ font-weight:800; font-size:1.05rem; }
.size-opt .dia{ font-size:.78rem; color:var(--muted); }
.size-opt .pp{ font-weight:700; margin-top:.3rem; }
.size-opt .check{ position:absolute; top:9px; right:9px; width:20px; height:20px; border-radius:50%; border:2px solid var(--line); display:grid; place-items:center; opacity:0; transition:.15s; }
.size-opt.sel .check{ opacity:1; background:var(--brand); border-color:var(--brand); }
.size-opt .check svg{ width:12px; height:12px; color:#fff; }

.supp-grp{ margin-bottom:1rem; }
.supp-grp h5{ font-size:.85rem; font-weight:700; margin-bottom:.5rem; }
.supp-grp h5 span{ color:var(--muted); font-weight:600; }
.supp-wrap{ display:flex; flex-wrap:wrap; gap:.45rem; }
.supp{ display:inline-flex; align-items:center; gap:.4rem; padding:.5rem .8rem; border-radius:999px; border:1px solid var(--line-2); font-size:.85rem; font-weight:600; color:var(--ink-2); background:var(--bg); transition:.15s; }
.supp:hover{ border-color:var(--ink); color:var(--ink); }
.supp.sel{ background:var(--brand-tint); border-color:var(--brand); color:var(--brand-dark); }
.supp .pl{ width:16px; height:16px; border-radius:50%; background:var(--bg-soft); display:grid; place-items:center; font-size:.85rem; line-height:1; }
.supp.sel .pl{ background:var(--brand); color:#fff; }
.supp .pr{ color:var(--ink); font-weight:700; font-size:.8rem; }

/* accordéon suppléments (garder le modal épuré) */
.acc-toggle{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-top:1.3rem;
  padding:.95rem 1.1rem; border:1.5px solid var(--line-2); border-radius:var(--r); background:var(--bg-soft);
  font-weight:700; font-size:.96rem; color:var(--ink); transition:.15s; }
.acc-toggle:hover{ background:var(--bg-soft-2); border-color:var(--ink-2); }
.acc-toggle small{ color:var(--muted); font-weight:500; margin-left:.4rem; }
.acc-meta{ display:flex; align-items:center; gap:.55rem; color:var(--muted); font-size:.84rem; font-weight:700; }
.acc-meta #suppCount{ color:var(--brand); }
.acc-toggle .chev{ width:18px; height:18px; transition:transform .25s var(--ease); flex:none; }
.acc-toggle.open .chev{ transform:rotate(180deg); }
.acc-toggle.open{ border-color:var(--brand); }
#suppBox{ margin-top:.9rem; }

.modal-add{ display:flex; align-items:center; gap:1rem; }
.modal-add .qty{ transform:scale(1.05); }
.modal-add .btn{ flex:1; }

/* paiement */
.pay-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; }
.pay-opt{ border:2px solid var(--line); border-radius:var(--r); padding:.85rem .4rem; text-align:center; font-weight:700; font-size:.92rem; background:var(--bg); transition:.15s; }
.pay-opt:hover{ border-color:var(--ink-2); }
.pay-opt.sel{ border-color:var(--brand); background:var(--brand-tint); color:var(--brand-dark); }

.field{ margin-bottom:.9rem; }
.field label{ display:block; font-size:.84rem; font-weight:600; color:var(--ink-2); margin-bottom:.35rem; }
.field input,.field textarea{ width:100%; padding:.8rem .95rem; background:var(--bg); border:1px solid var(--line-2); border-radius:var(--r-sm); color:var(--ink); transition:.15s; }
.field input:focus,.field textarea:focus{ outline:none; border-color:var(--brand); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:.7rem; }
.summary-line{ display:flex; justify-content:space-between; font-size:.9rem; color:var(--ink-2); padding:.3rem 0; }
.summary-line.big{ font-size:1.1rem; color:var(--ink); font-weight:800; border-top:1px solid var(--line); padding-top:.6rem; margin-top:.4rem; }

/* fly to cart */
.fly{ position:fixed; z-index:500; width:52px; height:52px; border-radius:50%; overflow:hidden; pointer-events:none; box-shadow:var(--shadow-md); }
.fly img{ width:100%; height:100%; object-fit:cover; }

/* toast */
.toast{ position:fixed; bottom:88px; left:50%; transform:translateX(-50%) translateY(16px); z-index:600;
  background:var(--ink); color:#fff; padding:.75rem 1.2rem; border-radius:999px; font-weight:600; font-size:.9rem;
  opacity:0; visibility:hidden; transition:.25s; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:.5rem; }
.toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.toast svg{ width:18px; height:18px; color:#5ee08a; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer{ background:var(--bg); border-top:1px solid var(--line); padding:2.5rem 0 2rem; }
.footer-grid{ width:min(100% - 2rem, var(--maxw)); margin:0 auto 1.8rem; display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:2rem; }
.footer .brand{ margin-bottom:.8rem; }
.footer p{ color:var(--muted); font-size:.9rem; max-width:30em; }
.footer h4{ font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink); font-weight:800; margin-bottom:.8rem; }
.footer-links li{ margin-bottom:.5rem; }
.footer-links a{ color:var(--ink-2); font-size:.9rem; }
.footer-links a:hover{ color:var(--brand); }
.footer-map{ width:min(100% - 2rem,var(--maxw)); margin:0 auto 1.6rem; border-radius:var(--r); overflow:hidden; border:1px solid var(--line); aspect-ratio:24/7; }
.footer-map iframe{ width:100%; height:100%; border:0; }
.footer-bottom{ width:min(100% - 2rem,var(--maxw)); margin:0 auto; border-top:1px solid var(--line); padding-top:1.3rem; display:flex; flex-wrap:wrap; justify-content:space-between; gap:.8rem; color:var(--muted); font-size:.82rem; }
.footer-bottom b{ color:var(--brand); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width:980px){
  .shell{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .search{ display:none; }
  .status-pill{ display:none; }
  .resto-top .seg{ width:100%; }
  .field-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .brand small{ display:none; }
  /* cibles tactiles footer plus confortables */
  .footer-links a{ display:inline-block; padding:.35rem 0; }
}

/* drawer mobile : on réutilise #cart en panneau coulissant */
@media (max-width:980px){
  .mcart{ position:fixed; top:0; right:0; bottom:0; z-index:350; width:min(420px,92vw); transform:translateX(100%);
    transition:transform .35s var(--ease); }
  .mcart.open{ transform:none; }
  .mcart .cart{ height:100%; max-height:none; border-radius:0; border:none; }
  .mcart .cart-foot{ padding-bottom:calc(1.2rem + env(safe-area-inset-bottom)); }
  .cart-close{ display:grid; }
}
@media (min-width:981px){ .cart-bar{ display:none; } .scrim{ display:none; } }

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.05ms !important; }
}

/* =========================================================================
   SITE VITRINE (index.html)
   ========================================================================= */
.reveal{ opacity:0; transform:translateY(28px); }
.reveal.in{ opacity:1; transform:none; transition:opacity .7s var(--ease), transform .7s var(--ease); }
.eyebrow{ display:inline-flex; align-items:center; gap:.5rem; font-size:.78rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--brand); }
.eyebrow::before{ content:""; width:24px; height:2px; background:var(--brand); border-radius:2px; }
.sec{ padding:clamp(3.5rem,8vw,6rem) 0; }
.sec-head{ max-width:640px; margin-bottom:2.4rem; }
.sec-head.center{ margin-inline:auto; text-align:center; }
.sec-head h2{ font-size:clamp(1.9rem,4.4vw,3rem); font-weight:800; letter-spacing:-.03em; margin:.7rem 0 .6rem; }
.sec-head p{ color:var(--ink-2); font-size:1.05rem; }

/* nav vitrine */
.hnav{ position:fixed; top:0; left:0; right:0; z-index:200; height:74px; display:flex; align-items:center; transition:background .3s, box-shadow .3s, border-color .3s; border-bottom:1px solid transparent; }
.hnav.solid{ background:rgba(255,255,255,.92); backdrop-filter:blur(12px); border-bottom-color:var(--line); }
.hnav-inner{ width:min(100% - 2rem,var(--maxw)); margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.hnav .brand{ color:#fff; transition:color .3s; }
.hnav.solid .brand{ color:var(--ink); }
.hnav .brand small{ color:rgba(255,255,255,.7); }
.hnav.solid .brand small{ color:var(--muted); }
.hnav-links{ display:flex; align-items:center; gap:2rem; }
.hnav-links a{ font-weight:600; font-size:.95rem; color:rgba(255,255,255,.92); transition:color .2s; }
.hnav.solid .hnav-links a{ color:var(--ink-2); }
.hnav-links a:hover{ color:#fff; }
.hnav.solid .hnav-links a:hover{ color:var(--brand); }
.hnav-actions{ display:flex; align-items:center; gap:.7rem; }
.hburger{ display:none; width:44px; height:44px; border-radius:12px; border:1px solid rgba(255,255,255,.4); flex-direction:column; gap:5px; align-items:center; justify-content:center; }
.hnav.solid .hburger{ border-color:var(--line-2); }
.hburger span{ width:20px; height:2px; background:#fff; transition:.3s; }
.hnav.solid .hburger span{ background:var(--ink); }

/* hero vitrine */
.hhero{ position:relative; min-height:96svh; display:flex; align-items:center; padding:120px 0 60px; overflow:hidden; }
.hhero-bg{ position:absolute; inset:0; z-index:0; }
.hhero-bg img{ width:100%; height:100%; object-fit:cover; }
.hhero-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(18,14,11,.82) 0%, rgba(18,14,11,.6) 45%, rgba(18,14,11,.25) 100%); }
.hhero-inner{ position:relative; z-index:2; width:min(100% - 2rem,var(--maxw)); margin-inline:auto; color:#fff; }
.hhero .rate-chip{ display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.14); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.18); padding:.45rem .9rem; border-radius:999px; font-size:.85rem; font-weight:700; }
.hhero .rate-chip svg{ width:15px; height:15px; color:var(--star); }
.hhero h1{ font-size:clamp(2.6rem,6.4vw,5rem); font-weight:800; letter-spacing:-.035em; line-height:1.02; margin:1.2rem 0 1.1rem; max-width:14ch; }
.hhero h1 em{ font-style:normal; color:var(--brand); }
.hhero-lead{ font-size:clamp(1.05rem,1.6vw,1.25rem); color:rgba(255,255,255,.85); max-width:34ch; }
.hhero-cta{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2rem; }
.hhero-meta{ display:flex; flex-wrap:wrap; gap:2.2rem; margin-top:2.6rem; }
.hhero-meta b{ display:block; font-size:1.8rem; font-weight:800; letter-spacing:-.02em; }
.hhero-meta span{ font-size:.82rem; color:rgba(255,255,255,.7); }
.hscroll{ position:absolute; bottom:24px; left:50%; transform:translateX(-50%); z-index:3; color:rgba(255,255,255,.7); font-size:.68rem; letter-spacing:.22em; text-transform:uppercase; display:flex; flex-direction:column; align-items:center; gap:8px; }
.hscroll .ln{ width:1px; height:36px; background:linear-gradient(#fff,transparent); animation:hcue 1.8s ease-in-out infinite; transform-origin:top; }
@keyframes hcue{ 0%,100%{ transform:scaleY(.3); opacity:.4; } 50%{ transform:scaleY(1); opacity:1; } }

/* trust strip */
.trust{ background:var(--bg); border-bottom:1px solid var(--line); }
.trust-row{ width:min(100% - 2rem,var(--maxw)); margin-inline:auto; display:grid; grid-template-columns:repeat(4,1fr); }
.trust-item{ padding:1.6rem 1rem; text-align:center; border-left:1px solid var(--line); }
.trust-item:first-child{ border-left:none; }
.trust-item b{ display:block; font-size:1.5rem; font-weight:800; letter-spacing:-.02em; }
.trust-item span{ font-size:.84rem; color:var(--muted); }

/* signature */
.signature{ background:var(--bg); }
.sig-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.2rem; }
.sig-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; transition:transform .25s var(--ease), box-shadow .25s; display:flex; flex-direction:column; }
.sig-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.sig-img{ aspect-ratio:4/3; overflow:hidden; }
.sig-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.sig-card:hover .sig-img img{ transform:scale(1.06); }
.sig-body{ padding:1.1rem 1.1rem 1.2rem; display:flex; flex-direction:column; flex:1; }
.sig-name{ font-weight:800; font-size:1.1rem; }
.sig-desc{ font-size:.86rem; color:var(--ink-2); margin:.3rem 0 .9rem; flex:1; }
.sig-foot{ display:flex; align-items:center; justify-content:space-between; }
.sig-price{ font-weight:800; }
.sig-price small{ color:var(--muted); font-weight:600; font-size:.78rem; }

/* story */
.story{ background:var(--bg-soft); }
.story-grid{ width:min(100% - 2rem,var(--maxw)); margin-inline:auto; display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
.story-pics{ position:relative; }
.story-pics img{ border-radius:var(--r-lg); width:100%; box-shadow:var(--shadow); }
.story-pics .p2{ position:absolute; width:46%; right:-6%; bottom:-12%; border:6px solid var(--bg); }
.story-badge{ position:absolute; top:-20px; left:-20px; width:104px; height:104px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-content:center; text-align:center; box-shadow:var(--shadow-md); z-index:2; }
.story-badge b{ font-size:1.7rem; font-weight:800; line-height:1; }
.story-badge span{ font-size:.6rem; letter-spacing:.1em; text-transform:uppercase; }
.story h2{ font-size:clamp(1.9rem,4.2vw,2.8rem); font-weight:800; letter-spacing:-.03em; margin:.7rem 0 1rem; }
.story p{ color:var(--ink-2); margin-bottom:1rem; max-width:36ch; }
.story-list{ display:grid; gap:.7rem; margin-top:1.4rem; }
.story-list li{ display:flex; gap:.7rem; align-items:flex-start; font-size:.94rem; }
.story-list .ic{ flex:none; width:26px; height:26px; border-radius:8px; background:var(--green-tint); color:var(--green); display:grid; place-items:center; }
.story-list .ic svg{ width:15px; height:15px; }

/* steps */
.steps{ background:var(--bg); }
.steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
.step{ background:var(--bg-soft); border-radius:var(--r-lg); padding:1.8rem; position:relative; }
.step .n{ width:42px; height:42px; border-radius:12px; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:800; font-size:1.1rem; margin-bottom:1rem; }
.step h3{ font-size:1.15rem; font-weight:800; margin-bottom:.4rem; }
.step p{ color:var(--ink-2); font-size:.92rem; }

/* gallery */
.gallery{ background:var(--bg-soft); }
.gal-grid{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:200px; gap:.9rem; }
.gal-grid figure{ border-radius:var(--r); overflow:hidden; }
.gal-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.gal-grid figure:hover img{ transform:scale(1.07); }
.gal-grid .tall{ grid-row:span 2; }
.gal-grid .wide{ grid-column:span 2; }

/* reviews */
.reviews{ background:var(--bg); }
.rev-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
.rev-card{ background:var(--bg-soft); border-radius:var(--r-lg); padding:1.6rem; }
.rev-stars{ display:flex; gap:2px; color:var(--star); margin-bottom:.8rem; }
.rev-stars svg{ width:18px; height:18px; }
.rev-card p{ font-size:1rem; color:var(--ink); line-height:1.6; margin-bottom:1.1rem; }
.rev-who{ display:flex; align-items:center; gap:.7rem; }
.rev-av{ width:40px; height:40px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:800; }
.rev-who b{ display:block; font-size:.92rem; }
.rev-who span{ font-size:.8rem; color:var(--muted); }

/* cta band */
.cta-band{ position:relative; overflow:hidden; }
.cta-band-bg{ position:absolute; inset:0; z-index:0; }
.cta-band-bg img{ width:100%; height:100%; object-fit:cover; }
.cta-band-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(18,14,11,.78), rgba(18,14,11,.72)); }
.cta-band-inner{ position:relative; z-index:2; width:min(100% - 2rem,var(--maxw)); margin-inline:auto; text-align:center; color:#fff; padding:clamp(3.5rem,8vw,6rem) 0; }
.cta-band h2{ font-size:clamp(2rem,5vw,3.4rem); font-weight:800; letter-spacing:-.03em; margin-bottom:.8rem; }
.cta-band p{ color:rgba(255,255,255,.85); font-size:1.1rem; max-width:40ch; margin:0 auto 2rem; }

/* infos vitrine */
.home-infos{ background:var(--bg); }
.hi-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; }
.hi-card{ background:var(--bg-soft); border-radius:var(--r-lg); padding:1.8rem; }
.hi-card h3{ font-size:1.3rem; font-weight:800; margin-bottom:1.1rem; display:flex; align-items:center; gap:.6rem; }
.hi-card h3 svg{ width:20px; height:20px; color:var(--brand); }
.hi-hours{ display:flex; justify-content:space-between; padding:.6rem 0; border-bottom:1px solid var(--line); font-size:.94rem; }
.hi-hours:last-child{ border-bottom:none; }
.hi-hours span:first-child{ color:var(--ink-2); }
.hi-hours span:last-child{ font-weight:600; }
.hi-line{ display:flex; gap:.8rem; align-items:center; padding:.6rem 0; }
.hi-line .ic{ width:40px; height:40px; flex:none; border-radius:11px; background:var(--bg); display:grid; place-items:center; color:var(--brand); box-shadow:var(--shadow); }
.hi-line .ic svg{ width:19px; height:19px; }
.hi-line b{ display:block; } .hi-line small{ color:var(--muted); }
.hi-map{ margin-top:1rem; border-radius:var(--r); overflow:hidden; aspect-ratio:16/8; border:1px solid var(--line); }
.hi-map iframe{ width:100%; height:100%; border:0; }

/* mobile nav panel */
.hnav-links.open{ display:flex; position:fixed; inset:74px 0 auto 0; flex-direction:column; gap:0; background:var(--bg); border-bottom:1px solid var(--line); padding:.6rem 1.2rem 1.4rem; }
.hnav-links.open a{ color:var(--ink) !important; padding:.9rem 0; border-bottom:1px solid var(--line); }

@media (max-width:980px){
  .sig-grid{ grid-template-columns:repeat(2,1fr); }
  .steps-grid{ grid-template-columns:1fr; }
  .rev-grid{ grid-template-columns:1fr; }
  .story-grid{ grid-template-columns:1fr; }
  .story-pics{ max-width:440px; margin-bottom:2rem; }
  .story-pics .p2{ right:0; width:44%; }   /* évite le débordement horizontal sur petit écran */
  .hi-grid{ grid-template-columns:1fr; }
  .gal-grid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:160px; }
  .trust-row{ grid-template-columns:repeat(2,1fr); }
  .trust-item:nth-child(-n+2){ border-bottom:1px solid var(--line); }
  .trust-item:nth-child(3){ border-left:none; }
}
@media (max-width:760px){
  .hnav-links{ display:none; }
  .hburger{ display:flex; }
  .hnav .hnav-actions .btn-ghost{ display:none; }
  .hide-sm{ display:none; }
  .hnav .btn-primary{ padding:.7rem 1rem; font-size:.88rem; }
  .sig-grid{ grid-template-columns:1fr; }
  .hhero-meta{ gap:1.4rem; }
  .hhero-meta b{ font-size:1.4rem; }
}
