/* ==========================================================================
   Base : reset, typographie, layout global, header/footer/drawer (mobile-first)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh; display: flex; flex-direction: column;
}
body.no-scroll { overflow: hidden; }
.main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-tight); margin: 0 0 var(--s-4); letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s-4); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: var(--gutter); background: var(--c-black); color: #fff; padding: var(--s-3) var(--s-4); z-index: 200; font-family: var(--font-label); }
.skip-link:focus { top: var(--s-3); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 800px; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--c-black); color: #fff; }
.section__head { margin-bottom: var(--s-6); }
.section__head .eyebrow { margin-bottom: var(--s-2); }
.eyebrow { font-family: var(--font-label); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: var(--fs-lg); color: var(--fg-muted); max-width: 60ch; }

/* ---------- Annonce ---------- */
.announce { background: var(--c-black); color: #fff; font-family: var(--font-label); font-size: var(--fs-xs); letter-spacing: 0.04em; text-align: center; }
.announce p { margin: 0; padding: var(--s-2) var(--gutter); line-height: 1.4; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { height: var(--header-h); display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; gap: var(--s-3); }
.brand { display: flex; align-items: center; justify-content: center; min-height: var(--tap); }
.brand__logo { height: 34px; width: auto; }
.nav { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--fg); position: relative; transition: background var(--t-fast); }
.icon-btn:hover { background: var(--c-surface-3); color: var(--fg); }
.icon-btn .icon { width: 24px; height: 24px; }
.header__cart { justify-self: end; }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px; background: var(--accent); color: #fff; font-family: var(--font-label); font-size: 11px; line-height: 18px; text-align: center; }
.cart-badge[hidden] { display: none; }
.cart-badge.bump { animation: bump 0.35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

@media (min-width: 900px) {
  .header__inner { grid-template-columns: auto 1fr auto; gap: var(--s-6); }
  .header__menu { display: none; }
  .brand { justify-content: flex-start; }
  .brand__logo { height: 44px; }
  .nav { display: block; }
  .nav__list { display: flex; justify-content: center; gap: var(--s-6); }
  .nav__list a { font-family: var(--font-label); font-size: var(--fs-sm); letter-spacing: 0.02em; padding: var(--s-2) 0; position: relative; display: inline-block; }
  .nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
  .nav__list a:hover::after, .nav__list a[aria-current='page']::after { transform: scaleX(1); }
  .nav__list a:hover { color: var(--fg); }
}

/* ---------- Drawer (menu mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; pointer-events: none; }
.drawer[aria-hidden='false'] { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity var(--t-med); }
.drawer[aria-hidden='false'] .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform var(--t-med) var(--ease); padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; }
.drawer[aria-hidden='false'] .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.drawer__head .brand__logo { height: 32px; }
.drawer__list a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--s-5); font-family: var(--font-display); font-size: var(--fs-lg); border-bottom: 1px solid var(--line); }
.drawer__list a[aria-current='page'] { color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.drawer__cats { padding: var(--s-4) var(--s-5); }
.drawer__cats h4 { font-family: var(--font-label); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--s-2); }
.drawer__cats a { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); font-size: var(--fs-md); }
.drawer__cats a span { color: var(--fg-muted); font-size: var(--fs-sm); }
.drawer__foot { margin-top: auto; padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-4); border-top: 1px solid var(--line); }
.social { display: flex; gap: var(--s-2); }
.social a { display: inline-flex; width: var(--tap); height: var(--tap); align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong, var(--c-line-strong)); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social .icon { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--c-black); color: #cfcfcf; margin-top: var(--s-8); padding-top: var(--s-7); padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: var(--s-6); }
.footer__brand img { width: 170px; height: auto; margin-bottom: var(--s-4); }
.footer__brand p { font-size: var(--fs-sm); max-width: 36ch; }
.footer h3 { font-family: var(--font-label); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-3); }
.footer__col li { padding: 6px 0; }
.footer__col a { font-size: var(--fs-sm); }
.footer__col a:hover { color: var(--accent); }
.footer .social a { border-color: #333; color: #fff; }
.footer__pay { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); }
.footer__pay .icon { color: var(--accent); margin-top: 3px; }
.footer__bottom { border-top: 1px solid #262626; margin-top: var(--s-6); padding-top: var(--s-4); font-size: var(--fs-xs); color: #8a8a8a; }
.footer__bottom p { margin: 0; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; left: 50%; bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: var(--s-2); width: min(calc(100% - 2 * var(--gutter)), 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--c-black); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); animation: toast-in 0.3s var(--ease); border-left: 4px solid var(--accent); }
.toast a { color: var(--accent); font-family: var(--font-label); margin-left: auto; white-space: nowrap; }
.toast .icon { color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
