@import url("tokens.css");

/* ============================================================
   1. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--surface-2);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   2. UTILITAIRES DE MISE EN PAGE
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.grow { flex: 1; }
.section { padding-block: var(--sp-10); }
.section--tight { padding-block: var(--sp-6); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.section-title {
  font-size: var(--fs-2xl); font-weight: var(--fw-black);
  line-height: var(--lh-tight); letter-spacing: -.02em;
}
.section-sub { color: var(--ink-2); font-size: var(--fs-base); margin-top: var(--sp-1); }
.link-more {
  font-weight: var(--fw-semi); color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* ============================================================
   3. BOUTONS / PASTILLES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: var(--fw-semi); font-size: var(--fs-base);
  border: 1px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: var(--brand-contrast); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--quiet { background: var(--surface-3); color: var(--ink); }
.btn--quiet:hover { background: var(--line); }
.btn--sm { padding: 6px 14px; font-size: var(--fs-sm); }
.btn--lg { padding: 14px 28px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .04em;
}
.badge--sale { background: var(--accent); color: #fff; }
.badge--points { background: var(--highlight); color: var(--highlight-ink); }
.badge--bio { background: var(--brand-light); color: var(--brand-dark); }
.badge--local { background: #eaf1fb; color: #1c4f8f; }
.badge--new { background: var(--ink); color: #fff; }

/* ============================================================
   4. EN-TETE
   ============================================================ */
.header { position: sticky; top: 0; z-index: var(--z-header); background: var(--surface); box-shadow: var(--shadow-1); }

.header-top {
  background: var(--ink); color: #fff;
  font-size: var(--fs-sm); min-height: var(--header-top-h);
  display: flex; align-items: center;
}
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.header-top a { opacity: .85; }
.header-top a:hover { opacity: 1; text-decoration: underline; }
.header-top-links { display: flex; align-items: center; gap: var(--sp-5); }
.header-top-promo { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-medium); }

.header-main { min-height: var(--header-main-h); display: flex; align-items: center; }
.header-main .container { display: flex; align-items: center; gap: var(--sp-5); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--brand); color: var(--brand-contrast);
  display: grid; place-items: center;
  font-weight: var(--fw-black); font-size: var(--fs-lg); letter-spacing: -.03em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-size: var(--fs-lg); font-weight: var(--fw-black); letter-spacing: -.02em; }
.logo-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }

.store-pick {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); font-size: var(--fs-sm); transition: var(--transition);
}
.store-pick:hover { border-color: var(--ink); background: var(--surface-2); }
.store-pick strong { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.store-pick span { color: var(--ink-3); font-size: var(--fs-xs); }

.search { flex: 1; position: relative; max-width: 620px; }
.search input {
  width: 100%; padding: 11px 46px 11px 18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface-2); transition: var(--transition);
}
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.search button:hover { background: var(--brand-dark); }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
  overflow: hidden; display: none;
}
.search-suggest.is-open { display: block; }
.search-suggest li a {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: var(--fs-base);
}
.search-suggest li a:hover, .search-suggest li a:focus { background: var(--brand-light); }
.search-suggest img { width: 30px; height: 30px; object-fit: contain; border-radius: var(--r-sm); }
.search-suggest .sg-price { margin-left: auto; font-weight: var(--fw-bold); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: var(--r-md); position: relative;
  font-size: var(--fs-xs); color: var(--ink-2); transition: var(--transition);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .count {
  position: absolute; top: 0; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent); color: #fff;
  font-size: 10px; font-weight: var(--fw-bold);
  display: grid; place-items: center;
}
.icon-btn .count[hidden] { display: none; }

.cart-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; font-weight: var(--fw-semi);
  position: relative; transition: var(--transition);
}
.cart-btn:hover { background: var(--brand-dark); }
.cart-btn .cart-total { font-variant-numeric: tabular-nums; }

/* -- Barre de navigation + mega-menu -- */
.header-nav { border-top: 1px solid var(--line); min-height: var(--header-nav-h); position: relative; }
.header-nav .container { display: flex; align-items: center; gap: var(--sp-1); }
.nav-list { display: flex; align-items: center; gap: var(--sp-1); }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px; font-size: var(--fs-base); font-weight: var(--fw-medium);
  border-bottom: 3px solid transparent; transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav-link.is-current { color: var(--brand); border-bottom-color: var(--brand); font-weight: var(--fw-semi); }
.nav-link--rayons { background: var(--brand); color: #fff; border-radius: var(--r-md); border-bottom: 0; margin-right: var(--sp-3); }
.nav-link--rayons:hover, .nav-link--rayons[aria-expanded="true"] { background: var(--brand-dark); color: #fff; border-bottom-color: transparent; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-3); z-index: var(--z-mega);
  display: none; padding-block: var(--sp-6);
}
.mega.is-open { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6) var(--sp-8); }
.mega-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-base); font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line);
}
.mega-col-title .emoji { font-size: var(--fs-lg); }
.mega-col li a { display: block; padding: 5px 0; color: var(--ink-2); font-size: var(--fs-base); }
.mega-col li a:hover { color: var(--brand); text-decoration: underline; }
.mega-promo {
  grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-5);
  background: var(--brand-light); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
}
.mega-promo img { width: 130px; border-radius: var(--r-md); }
.mega-promo h4 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.mega-promo p { color: var(--ink-2); margin-top: 2px; }

.burger { display: none; font-size: 22px; padding: 6px 10px; }

/* ============================================================
   5. HEROS / BANNIERES
   ============================================================ */
.hero { padding-top: var(--sp-6); }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-4); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--sp-4); }

.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); }
.slides { display: flex; transition: transform 420ms cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 420px; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.38) 48%, rgba(0,0,0,0) 78%);
}
.slide-body {
  position: absolute; left: 0; bottom: 0; padding: var(--sp-8);
  max-width: 580px; color: #fff; z-index: 1;
}
.slide-kicker {
  display: inline-block; background: var(--highlight); color: var(--highlight-ink);
  padding: 4px 12px; border-radius: var(--r-sm); font-size: var(--fs-xs);
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: var(--sp-3);
}
.slide-title { font-size: var(--fs-3xl); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: -.02em; }
.slide-text { margin-top: var(--sp-2); font-size: var(--fs-md); opacity: .92; }
.slide .btn { margin-top: var(--sp-5); }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-2); z-index: 2;
}
.slider-nav:hover { background: #fff; }
.slider-nav--prev { left: var(--sp-4); }
.slider-nav--next { right: var(--sp-4); }
.slider-dots { position: absolute; bottom: var(--sp-4); right: var(--sp-6); display: flex; gap: 8px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.slider-dots button.is-active { background: #fff; width: 26px; border-radius: var(--r-pill); }

.tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  display: block; box-shadow: var(--shadow-1); transition: var(--transition);
  min-height: 202px;
}
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.05)); }
.tile-body {
  position: absolute; inset: 0; z-index: 1; padding: var(--sp-5); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tile h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.tile p { font-size: var(--fs-sm); opacity: .9; margin-top: 4px; }

/* -- Bande de services -- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.service {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4); transition: var(--transition);
}
.service:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.service .ic { font-size: 26px; }
.service strong { display: block; font-size: var(--fs-base); font-weight: var(--fw-semi); }
.service span { font-size: var(--fs-sm); color: var(--ink-3); }

/* -- Rayons ronds -- */
.dept-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: var(--sp-3); }
.dept { text-align: center; }
.dept-img {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--surface-3); margin-bottom: var(--sp-2);
  border: 2px solid transparent; transition: var(--transition);
}
.dept:hover .dept-img { border-color: var(--brand); transform: translateY(-3px); }
.dept-img img { width: 100%; height: 100%; object-fit: cover; }
.dept span { font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: var(--lh-snug); display: block; }

/* ============================================================
   6. CARTE PRODUIT
   ============================================================ */
.product-rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr);
  gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2); scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-nav {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface);
  box-shadow: var(--shadow-2); display: grid; place-items: center; z-index: 3;
}
.rail-nav:hover { background: var(--surface-2); }
.rail-nav--prev { left: -14px; }
.rail-nav--next { right: -14px; }
.rail-nav[hidden] { display: none; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: var(--sp-3);
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-3); display: flex; flex-direction: column;
  position: relative; transition: var(--transition); height: 100%;
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card-media { position: relative; aspect-ratio: 1; margin-bottom: var(--sp-2); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-flags { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.card-fav {
  position: absolute; top: 0; right: 0; width: 30px; height: 30px;
  border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1);
  display: grid; place-items: center; font-size: 15px; color: var(--ink-3);
}
.card-fav:hover, .card-fav.is-on { color: var(--accent); }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: var(--fs-xl); font-weight: var(--fw-black); letter-spacing: -.02em; }
.price-now.is-sale { color: var(--accent); }
.price-was { font-size: var(--fs-sm); color: var(--ink-3); text-decoration: line-through; }
.price-save { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent); }
.card-unit { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.card-name {
  font-size: var(--fs-base); line-height: var(--lh-snug); margin-top: var(--sp-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-name b { font-weight: var(--fw-semi); }
.card-foot { margin-top: auto; padding-top: var(--sp-3); }

.qty {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--r-pill); background: var(--brand); color: #fff; padding: 3px;
}
.qty button {
  width: 30px; height: 30px; border-radius: 50%; color: inherit;
  display: grid; place-items: center; font-size: var(--fs-lg); line-height: 1;
}
.qty button:hover { background: rgba(255,255,255,.22); }
.qty output { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }

/* ============================================================
   7. TIROIR PANIER
   ============================================================ */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity var(--transition); z-index: var(--z-drawer);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface); z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%); transition: transform 260ms cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-3);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); }
.drawer-foot { border-top: 1px solid var(--line); padding: var(--sp-4) var(--sp-5); background: var(--surface-2); }
.close-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.close-x:hover { background: var(--surface-3); }

.line-item { display: grid; grid-template-columns: 60px 1fr auto; gap: var(--sp-3); padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.line-item img { width: 60px; height: 60px; object-fit: contain; background: var(--surface-2); border-radius: var(--r-sm); }
.line-item .li-name { font-size: var(--fs-sm); line-height: var(--lh-snug); }
.line-item .li-meta { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.line-item .li-price { font-weight: var(--fw-bold); text-align: right; white-space: nowrap; }
.line-item .qty { margin-top: var(--sp-2); max-width: 118px; background: var(--surface-3); color: var(--ink); }
.line-item .qty button:hover { background: rgba(0,0,0,.08); }
.li-remove { font-size: var(--fs-xs); color: var(--ink-3); text-decoration: underline; margin-top: 6px; display: inline-block; }
.li-remove:hover { color: var(--danger); }

.totals { font-size: var(--fs-base); }
.totals .t-row { display: flex; justify-content: space-between; padding-block: 4px; }
.totals .t-row--grand { font-size: var(--fs-lg); font-weight: var(--fw-black); border-top: 1px solid var(--line-strong); margin-top: var(--sp-2); padding-top: var(--sp-3); }
.totals .t-save { color: var(--accent); font-weight: var(--fw-semi); }

.empty-state { text-align: center; padding: var(--sp-10) var(--sp-4); color: var(--ink-3); }
.empty-state .ic { font-size: 44px; margin-bottom: var(--sp-3); }

/* ============================================================
   8. PIED DE PAGE
   ============================================================ */
.newsletter { background: var(--brand); color: var(--brand-contrast); padding-block: var(--sp-8); }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.newsletter h2 { font-size: var(--fs-2xl); font-weight: var(--fw-black); letter-spacing: -.02em; }
.newsletter p { opacity: .9; margin-top: 4px; }
.newsletter form { display: flex; gap: var(--sp-2); flex: 1; min-width: 300px; max-width: 460px; }
.newsletter input { flex: 1; padding: 12px 18px; border-radius: var(--r-pill); border: 0; }
.newsletter .msg { font-size: var(--fs-sm); margin-top: var(--sp-2); min-height: 20px; }

.footer { background: var(--ink); color: #d8d8d8; padding-block: var(--sp-12) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--sp-8); }
.footer h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); color: #fff; margin-bottom: var(--sp-3); }
.footer li a { display: block; padding: 4px 0; font-size: var(--fs-base); color: #b9b9b9; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer .logo-name { color: #fff; }
.footer .logo-tag { color: #9a9a9a; }
.footer-about { font-size: var(--fs-sm); color: #9a9a9a; margin-top: var(--sp-3); max-width: 34ch; }
.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--brand); }
.footer-bottom {
  margin-top: var(--sp-10); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-sm); color: #9a9a9a;
}
.footer-bottom nav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

/* ============================================================
   9. NOTIFICATIONS
   ============================================================ */
.toaster { position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); z-index: var(--z-modal); display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-3); font-size: var(--fs-base); display: flex; align-items: center; gap: 10px;
  animation: toast-in 220ms cubic-bezier(.4,0,.2,1);
}
.toast .ok { color: #6ee7a0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   10. PAGES INTERIEURES
   ============================================================ */
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-3); padding-block: var(--sp-4); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.page-head { padding-block: var(--sp-2) var(--sp-6); }
.page-title { font-size: var(--fs-3xl); font-weight: var(--fw-black); letter-spacing: -.025em; line-height: var(--lh-tight); }
.page-lead { color: var(--ink-2); margin-top: var(--sp-2); max-width: 70ch; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-6); align-items: start; padding-bottom: var(--sp-12); }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); position: sticky; top: 130px; }
.filter-group + .filter-group { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.filter-group h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.filter-group label { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: var(--fs-base); cursor: pointer; }
.filter-group label:hover { color: var(--brand); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }
.filter-count { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); }
.filter-group input[type="range"] { width: 100%; accent-color: var(--brand); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap; margin-bottom: var(--sp-4);
}
.shop-toolbar select { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); }
.result-count { color: var(--ink-2); font-size: var(--fs-base); }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--r-pill); background: var(--brand-light); color: var(--brand-dark);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.chip button { color: inherit; font-size: var(--fs-md); line-height: 1; }

/* -- Fiche produit -- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); padding-block: var(--sp-4) var(--sp-12); align-items: start; }
.pdp-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-8); position: relative; }
.pdp-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pdp-thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.pdp-thumbs img { width: 68px; height: 68px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; cursor: pointer; }
.pdp-thumbs img:hover { border-color: var(--brand); }
.pdp-brand { color: var(--ink-3); font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .06em; }
.pdp h1 { font-size: var(--fs-2xl); font-weight: var(--fw-black); line-height: var(--lh-tight); margin-top: 4px; letter-spacing: -.02em; }
.pdp-price { display: flex; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }
.pdp-price .price-now { font-size: var(--fs-4xl); }
.pdp-buy { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-6); }
.pdp-buy .qty { min-width: 140px; }
.pdp-facts { margin-top: var(--sp-8); border-top: 1px solid var(--line); }
.pdp-facts details { border-bottom: 1px solid var(--line); }
.pdp-facts summary { padding: var(--sp-4) 0; font-weight: var(--fw-semi); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp-facts summary::-webkit-details-marker { display: none; }
.pdp-facts summary::after { content: "+"; font-size: var(--fs-lg); color: var(--ink-3); }
.pdp-facts details[open] summary::after { content: "\2212"; }
.pdp-facts .body { padding-bottom: var(--sp-4); color: var(--ink-2); }
.nutri-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.nutri-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.nutri-table td:last-child { text-align: right; font-weight: var(--fw-semi); }

/* -- Panier pleine page -- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-6); align-items: start; padding-bottom: var(--sp-12); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); }
.panel + .panel { margin-top: var(--sp-4); }
.panel h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.summary { position: sticky; top: 130px; }
.slot-picker { display: grid; gap: var(--sp-2); }
.slot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.slot:hover { border-color: var(--brand); }
.slot input { accent-color: var(--brand); }
.slot .slot-price { margin-left: auto; font-weight: var(--fw-semi); }

/* -- Circulaire / recettes / magasins -- */
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); padding-bottom: var(--sp-12); }
.flyer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: var(--transition); }
.flyer-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.flyer-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--surface-3); }
.flyer-card .body { padding: var(--sp-4); }
.flyer-card h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.flyer-card p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); padding-bottom: var(--sp-12); }
.recipe-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: var(--transition); display: block; }
.recipe-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.recipe-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.recipe-card .body { padding: var(--sp-4); }
.recipe-card h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.recipe-meta { display: flex; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--sp-2); }

.stores-layout { display: grid; grid-template-columns: 380px 1fr; gap: var(--sp-5); padding-bottom: var(--sp-12); align-items: start; }
.store-list { display: grid; gap: var(--sp-3); max-height: 620px; overflow-y: auto; }
.store-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); cursor: pointer; transition: var(--transition); }
.store-card:hover, .store-card.is-active { border-color: var(--brand); box-shadow: var(--shadow-1); }
.store-card h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.store-card .addr { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 4px; }
.store-card .open { font-size: var(--fs-sm); color: var(--success); font-weight: var(--fw-semi); margin-top: 6px; }
.map-slot { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); position: sticky; top: 130px; }
.map-slot img { width: 100%; height: 620px; object-fit: cover; }

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .dept-strip { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .header-nav { display: none; }
  .burger { display: grid; place-items: center; }
  .header-top-links { display: none; }
  .store-pick { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .stores-layout { grid-template-columns: 1fr; }
  .map-slot { position: static; }
  .map-slot img { height: 320px; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --fs-3xl: 1.75rem; --fs-2xl: 1.375rem; --sp-10: 28px; --sp-12: 36px; }
  .header-main .container { flex-wrap: wrap; row-gap: var(--sp-3); }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .dept-strip { grid-template-columns: repeat(4, 1fr); }
  .slide img { height: 320px; }
  .slide-body { padding: var(--sp-5); }
  .hero-side { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .rail-track { grid-auto-columns: minmax(160px, 1fr); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cart-btn span:not(.cart-total) { display: none; }
  .icon-btn span { display: none; }
}

/* -- Menu mobile hors-canevas -- */
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88%);
  background: var(--surface); z-index: calc(var(--z-drawer) + 1);
  transform: translateX(-100%); transition: transform 260ms cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-3);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav .body { overflow-y: auto; padding: var(--sp-4); }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { padding: 12px 4px; font-weight: var(--fw-semi); cursor: pointer; }
.mobile-nav .sub a { display: block; padding: 8px 4px 8px 18px; color: var(--ink-2); }
.mobile-nav > .head { padding: var(--sp-4); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

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

/* Masquage universel : bat les display:grid/flex des composants */
[hidden] { display: none !important; }
