/* MUSES — feuille de style (thème sombre, jaune de la marque) */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #000000;
  --yellow: #fff200;   /* jaune de la marque */
  --dim: #b3a900;      /* jaune atténué : infos secondaires */
  --line: #2b2a1a;
  --panel: #0d0d0d;
  --flag: #fff200;     /* surlignage des textes à compléter */
  --error: #ff5a4f;

  --pad: clamp(14px, 2.4vw, 32px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --wide: 125%;        /* largeur des titres */
  --semi: 112%;        /* largeur du texte courant */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--yellow);
  font-family: var(--font);
  font-stretch: var(--semi);
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; font-stretch: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--bg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--pad); top: -60px; z-index: 100;
  background: var(--yellow); color: var(--bg); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ── Bandeau + en-tête ───────────────────────────────────── */
.announce {
  background: var(--yellow); color: var(--bg);
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px var(--pad);
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.mark img { width: clamp(104px, 14vw, 150px); height: auto; }

.menu-toggle {
  justify-self: start;
  width: 44px; height: 44px; display: grid; align-content: center; gap: 7px;
}
.menu-toggle span { display: block; height: 5px; border-radius: 3px; background: var(--yellow); }

.cart-toggle {
  justify-self: end; position: relative;
  display: inline-grid; place-items: center; width: 48px; height: 44px;
}
.cart-count {
  position: absolute; top: 0; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--bg);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { transform: scale(1.3); }

/* ── Barre collection + filtres (aplat jaune) ────────────── */
.shop-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  margin: clamp(8px, 1.5vw, 16px) var(--pad) clamp(28px, 4vw, 48px);
  padding: 12px 18px;
  background: var(--yellow); color: var(--bg);
}
.shop-bar .collection { font-size: 14px; font-weight: 800; font-stretch: var(--wide); letter-spacing: .02em; }
.shop-bar .collection span { font-weight: 500; font-stretch: var(--semi); margin-left: 10px; opacity: .65; }
.filters { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.filters button {
  font-size: 13px; font-weight: 700; letter-spacing: .03em; padding: 6px 12px;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.filters button:hover { border-color: var(--bg); }
.filters button[aria-pressed="true"] { background: var(--bg); color: var(--yellow); }

/* ── Grille produits ─────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  padding: 0 var(--pad) clamp(56px, 8vw, 104px);
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  text-decoration: none; display: block;
  background: var(--panel); padding: clamp(10px, 1.4vw, 18px);
  transition: background .2s, color .2s;
}
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .16));
  transition: opacity .25s, transform .4s var(--ease);
}
.card-media .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover { background: var(--yellow); color: var(--bg); }
  .card:hover .card-media img { transform: scale(1.04); filter: none; }
  .card:hover .badge-out { color: var(--bg); opacity: .6; }
  .card:hover .card-media .alt, .card:focus-visible .card-media .alt { opacity: 1; }
  .card:hover .card-media img:not(.alt):has(+ .alt) { opacity: 0; }
}
.card-info { padding: 14px 2px 0; display: grid; gap: 4px; }
.card-name { font-size: clamp(12.5px, 1.25vw, 15.5px); line-height: 1.3; font-weight: 800; font-stretch: var(--wide); letter-spacing: .01em; }
.card-name .color { white-space: nowrap; font-weight: 500; font-stretch: var(--semi); }
.card-price { font-size: clamp(12.5px, 1.2vw, 14.5px); font-weight: 600; font-variant-numeric: tabular-nums; }
.badge-out { color: var(--dim); }

/* ── Fiche produit ───────────────────────────────────────── */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  padding: 0 var(--pad);
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.gallery.single { grid-template-columns: 1fr; max-width: 680px; justify-self: center; width: 100%; }
.gallery figure { margin: 0; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .16)); }
.gallery-count { display: none; }

.buy {
  position: sticky; top: calc(var(--header-h) + 24px);
  align-self: start;
  padding: 24px 0 48px;
  display: grid; gap: 24px;
}
.back { font-size: 13px; color: var(--dim); text-decoration: none; }
.back::before { content: '← '; }
.back:hover { color: var(--yellow); }
.buy h1 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.05; font-weight: 900; font-stretch: var(--wide); letter-spacing: -.01em; }
.buy .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; gap: 16px; }
.buy .meta .color { font-size: 14px; }
.buy .meta .price { font-size: 20px; font-variant-numeric: tabular-nums; }

.field-label { font-size: 13px; margin-bottom: 10px; display: flex; justify-content: space-between; letter-spacing: .04em; }
.field-label span { color: var(--dim); }

.variants { display: flex; gap: 8px; }
.variants a {
  width: 64px; aspect-ratio: 4 / 5; border: 1px solid var(--line); display: block; padding: 4px;
  transition: border-color .15s;
}
.variants a:hover { border-color: var(--dim); }
.variants a[aria-current="true"] { border-color: var(--yellow); }
.variants img { width: 100%; height: 100%; object-fit: contain; }

.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sizes.one { grid-template-columns: 1fr; }
.sizes button {
  height: 48px; border: 1px solid var(--dim); font-size: 14px; font-weight: 700;
  transition: border-color .15s, background .15s, color .15s;
}
.sizes button:hover:not(:disabled) { border-color: var(--yellow); }
.sizes button[aria-pressed="true"] { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }
.sizes button:disabled { color: #5c5700; border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }
.size-error { color: var(--error); font-size: 13px; margin-top: 8px; }
.stock-note { font-size: 13px; margin-top: 6px; }
.stock-note:empty, .size-error:empty { display: none; }

.btn {
  font-stretch: var(--wide);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 56px; padding: 0 20px;
  background: var(--yellow); color: var(--bg);
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); }
.btn .sep { opacity: .5; }

.reassure { display: grid; gap: 4px; font-size: 12.5px; color: var(--dim); }

.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; justify-content: space-between; font-size: 14px; font-weight: 700;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; font-size: 18px; line-height: 1; }
.details details[open] summary::after { content: '−'; }
.details .content { padding: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: var(--dim); max-width: 60ch; display: grid; gap: 8px; text-transform: none; }
.details .content a { color: var(--yellow); }

.related { padding: clamp(56px, 7vw, 96px) 0 0; }
.related h2 { padding: 0 var(--pad) 24px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; font-stretch: var(--wide); letter-spacing: -.01em; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; padding: 0; }
  .gallery, .gallery.single {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: start; padding: 0 12%; }
  .gallery-wrap { position: relative; }
  .gallery-count {
    display: block; position: absolute; right: 14px; bottom: 10px;
    border: 1px solid var(--dim); padding: 2px 9px; font-size: 12px; font-variant-numeric: tabular-nums;
  }
  .buy { position: static; padding: 20px var(--pad) 32px; }
  .sticky-buy {
    position: sticky; bottom: 0; z-index: 20;
    margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
  }
}

/* ── Pages texte (légal, livraison, contact) ─────────────── */
.page { padding: clamp(32px, 6vw, 72px) var(--pad) clamp(56px, 8vw, 112px); max-width: 800px; margin: 0 auto; }
.page h1 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 900; font-stretch: var(--wide); line-height: 1; margin-bottom: 28px; letter-spacing: -.02em; }
.page h2 { font-size: 15px; font-weight: 800; font-stretch: var(--wide); margin: 32px 0 8px; letter-spacing: .04em; }
.page p, .page li { font-size: 14.5px; line-height: 1.7; text-transform: none; }
.page p + p { margin-top: 10px; }
.page ul { padding-left: 1.2em; margin: 8px 0; }
.page .lead { font-size: 16px; }
.page .note { margin-top: 32px; font-size: 13px; color: var(--dim); }
.todo { background: var(--flag); color: var(--bg); padding: 0 .25em; }
.contact-list { display: grid; gap: 14px; margin-top: 18px; }
.contact-list a { font-size: 18px; font-weight: 700; }

.thanks .btn { max-width: 320px; margin-top: 28px; }

/* ── Tiroirs (menu + panier) ─────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .25s;
}
.scrim.open { opacity: 1; }
.cart, .menu {
  position: fixed; top: 0; bottom: 0; z-index: 50;
  width: min(440px, 100%);
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto;
  transition: transform .32s var(--ease);
}
.cart { right: 0; transform: translateX(100%); border-left: 1px solid var(--line); }
.menu { left: 0; transform: translateX(-100%); border-right: 1px solid var(--line); grid-template-rows: auto 1fr; }
.cart.open, .menu.open { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--header-h); padding: 0 var(--pad); border-bottom: 1px solid var(--line);
}
.menu .drawer-head { justify-content: flex-end; }
.drawer-head h2 { font-size: 16px; font-weight: 900; font-stretch: var(--wide); letter-spacing: .06em; }
.drawer-close { font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; }

.menu-links { padding: 24px var(--pad); display: grid; gap: 6px; align-content: start; overflow-y: auto; }
.menu-links a { font-size: 26px; font-weight: 900; font-stretch: var(--wide); line-height: 1.1; text-decoration: none; padding: 6px 0; letter-spacing: .04em; }
.menu-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-links .sub { font-size: 15px; font-weight: 500; font-stretch: var(--semi); color: var(--dim); padding-left: 2px; }
.menu-links .sub:hover { color: var(--yellow); }
.menu-links hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; width: 100%; }

.cart-body { overflow-y: auto; padding: 8px var(--pad); }
.cart-empty { padding: 48px 0; display: grid; gap: 20px; }
/* Écran peu haut : tout le panier défile d'un bloc, pour que les articles restent visibles */
@media (max-height: 820px) {
  .cart { overflow-y: auto; grid-template-rows: auto auto auto; }
  .cart-body { overflow: visible; }
}

.line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.line img { width: 84px; aspect-ratio: 4 / 5; object-fit: contain; }
.line-name { font-weight: 700; font-size: 13px; line-height: 1.4; }
.line-name a { text-decoration: none; }
.line-meta { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.line-price { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--dim); margin-top: 12px; }
.qty button { width: 34px; height: 34px; font-size: 16px; }
.qty button:hover:not(:disabled) { background: var(--yellow); color: var(--bg); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line-remove { display: block; margin-top: 10px; font-size: 12px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

.cart-foot { padding: 16px var(--pad) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.delivery { padding: 20px 0 8px; display: grid; gap: 10px; }
.delivery h3 { margin: 0; font-size: 14px; font-weight: 900; font-stretch: var(--wide); letter-spacing: .02em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--dim); }
.seg button { min-height: 40px; padding: 4px 8px; font-size: 12.5px; font-weight: 700; transition: background .15s, color .15s; }
.seg button + button { border-left: 1px solid var(--dim); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--bg); background: var(--dim); }
.seg button[aria-pressed="true"] { background: var(--yellow); color: var(--bg); }
.relay-search label { display: block; font-size: 12.5px; margin-bottom: 6px; }
.relay-row { display: grid; grid-template-columns: 1fr auto; }
.relay-row input {
  min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--dim); border-right: 0; border-radius: 0;
  background: transparent; color: var(--yellow); font: inherit; font-size: 16px; letter-spacing: .08em;
}
.relay-row input::placeholder { color: #5c5700; }
.relay-row button { padding: 0 16px; background: var(--yellow); color: var(--bg); font-size: 13px; font-weight: 800; }
.relay-msg { font-size: 12.5px; color: var(--dim); text-transform: none; }
.relay-msg:empty { display: none; }
.relay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.relay-list button {
  width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line);
  display: grid; gap: 2px; transition: border-color .15s, background .15s, color .15s;
}
.relay-list button:hover { border-color: var(--yellow); }
.relay-carrier { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--dim); }
.relay-name { font-size: 13px; font-weight: 800; }
.relay-addr { font-size: 12px; text-transform: none; color: var(--dim); }
.relay-chosen { border: 2px solid var(--yellow); padding: 12px 14px; display: grid; gap: 2px; }
.relay-chosen details { margin-top: 6px; font-size: 12px; }
.relay-chosen summary { cursor: pointer; }
.relay-hours { margin-top: 4px; color: var(--dim); text-transform: none; font-size: 12px; line-height: 1.6; }
.relay-change { justify-self: start; margin-top: 8px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ship-progress { font-size: 12.5px; }
.ship-bar { height: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--yellow); transition: width .4s var(--ease); }
.totals { display: grid; gap: 4px; font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 16px; font-weight: 700; }
.totals span:last-child { font-variant-numeric: tabular-nums; }
.cart-note { font-size: 11.5px; color: var(--dim); text-align: center; }
.cart-msg { font-size: 13px; border: 1px solid var(--dim); padding: 12px 14px; text-transform: none; }

/* ── Pied de page ────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--yellow); color: var(--bg);
  padding: clamp(36px, 5vw, 56px) var(--pad) 24px;
  display: grid; gap: 28px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: 11.5px; font-weight: 500; opacity: .7; }
.site-footer :focus-visible { outline-color: var(--bg); }

/* ── Mouvement réduit ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
