/* Almade snkrs : style luxe validé par le client (maquette Claude Design), recodé léger. */
:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201e1d;
  --line: #d7d3d3;
  --muted: #605d5d;
  --muted-2: #444141;
  --soft: #d7d3d3;
  --promo: #ae1800; /* rouge foncé : contraste 7:1 (l'ancien #ec3013 ne passait pas) */
  --focus: #201e1d;
  --pad: clamp(16px, 4vw, 56px);
  --head: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.announce :focus-visible, .drop :focus-visible, footer.foot :focus-visible, .hero :focus-visible, .tile:focus-visible, .btn.dark:focus-visible { outline-color: #f3f2f2; }
.pay-choice { display: flex; flex-direction: column; gap: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1600px; margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; height: 52px; padding: 0 26px; border: 1px solid var(--text); background: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.dark:hover { background: var(--muted-2); }
.btn.light { background: #fff; color: var(--text); border-color: #fff; }
.btn.light:hover { background: var(--soft); }
.btn.block { width: 100%; justify-content: space-between; }
.btn[disabled] { background: var(--muted); border-color: var(--muted); color: var(--bg); cursor: not-allowed; }
.link { min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.icon-btn svg, .cart-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* Bandeau + en-tête */
.announce { background: var(--text); color: var(--bg); min-height: 34px; display: flex; align-items: center; padding: 6px var(--pad); overflow: hidden; }
.announce span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
header.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 2px solid var(--text); }
.bar { height: var(--head); display: flex; align-items: center; gap: 2px; padding: 0 clamp(4px, 3vw, 48px); max-width: 1600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 4px; min-height: 44px; flex: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: clamp(12px, 3.2vw, 14px); font-weight: 600; letter-spacing: .2em; white-space: nowrap; }
.nav { display: none; margin-left: clamp(8px, 1.6vw, 40px); }
.nav button { height: var(--head); padding: 0 clamp(6px, .8vw, 12px); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.nav button:hover, .nav button[aria-current="page"] { border-bottom-color: var(--text); }
.spacer { flex: 1; }
.cart-btn { height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; display: flex; align-items: center; gap: 5px; flex: none; }
.cart-btn b { font-size: 14px; font-weight: 600; }
.only-wide { display: none !important; }
@media (min-width: 1000px) { .nav { display: flex; } .only-narrow { display: none !important; } .only-wide { display: flex !important; } }

/* Menus déroulants */
.drop-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--bg); border-bottom: 2px solid var(--text); max-height: calc(100svh - var(--head) - 34px); overflow-y: auto; overscroll-behavior: contain; animation: down .2s ease-out; }
.menu-list button.big { width: 100%; min-height: 60px; padding: 0 20px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 26px; letter-spacing: -.01em; }
.menu-sub { padding: 20px 20px 28px; display: flex; flex-direction: column; }
.row-btn { min-height: 44px; padding: 0; background: none; border: 0; text-align: left; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.row-btn small { font-size: 14px; color: var(--muted); }
.brands-in { padding: 16px var(--pad) 32px; display: flex; flex-direction: column; gap: 22px; max-width: 1600px; margin: 0 auto; }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head .t { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; flex: 1; }
.field { height: 52px; padding: 0 16px; border: 1px solid var(--text); border-radius: 0; background: var(--bg); font-size: 16px; width: 100%; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat button { min-height: 76px; padding: 12px 14px; background: var(--bg); border: 0; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.feat button:hover { background: var(--surface); }
.feat b { font-size: 20px; font-weight: 500; }
.feat small, .az small { font-size: 14px; color: var(--muted); }
.az { column-count: 2; column-gap: 36px; }
.az > div { break-inside: avoid; padding-bottom: 16px; }
.az .l { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; border-bottom: 1px solid var(--text); padding-bottom: 6px; margin-bottom: 2px; }
@media (min-width: 700px) { .feat { grid-template-columns: repeat(3, minmax(0, 1fr)); } .az { column-count: 3; } }
@media (min-width: 1100px) { .feat { grid-template-columns: repeat(6, minmax(0, 1fr)); } .az { column-count: 5; } }

/* Diaporama */
.hero { position: relative; height: clamp(520px, calc(100svh - 98px), 880px); overflow: hidden; background: var(--text); touch-action: pan-y; user-select: none; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
.slide.on { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%); }
.slide-txt { position: absolute; left: 0; right: 0; bottom: 76px; z-index: 2; padding: 0 clamp(20px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: #fff; }
.slide-txt h2 { margin: 0; font-weight: 400; font-size: clamp(46px, 9vw, 124px); line-height: .92; letter-spacing: -.03em; max-width: 12ch; text-wrap: balance; }
.slide-txt p { margin: 0; font-size: 17px; line-height: 1.45; max-width: 36ch; }
.slide-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.slide-cta .p { font-size: 17px; font-weight: 600; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; padding: 0 clamp(20px, 4vw, 56px); display: flex; align-items: center; gap: 14px; color: #fff; }
.bars { flex: 1; display: flex; gap: 6px; }
.bars button { flex: 1; height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; }
.bars i { display: block; height: 2px; width: 100%; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.bars .done i::after { width: 100%; }
.bars .on i::after { animation: prog 6s linear forwards; }
.hero.paused .bars .on i::after { animation: none; width: 100%; }
.hero-ctrl .count { font-size: 14px; font-weight: 600; letter-spacing: .1em; flex: none; }
.hero-ctrl .icon-btn { color: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; color: #fff; display: none; }
.hero-arrow.prev { left: 8px; } .hero-arrow.next { right: 8px; }
@media (min-width: 1000px) { .hero-arrow { display: flex; } }

/* Sections */
.sec { border-bottom: 2px solid var(--text); }
.sec-in { max-width: 1600px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--pad); }
.sec-in.flush { padding-left: 0; padding-right: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.flush .sec-head { padding: 0 var(--pad); }
.h-xl { margin: 0; font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.03em; }
.h-l { margin: 0; font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.03em; }
.sub { font-size: 16px; color: var(--muted-2); margin: 8px 0 0; }

/* Rail de marques */
.brand-rail-head { padding: 24px var(--pad) 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1600px; margin: 0 auto; }
.hscroll { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.brand-rail { border-top: 1px solid var(--line); max-width: 1600px; margin: 0 auto; }
.brand-rail button { flex: none; min-width: 150px; min-height: 96px; padding: 16px 20px; border: 0; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; }
.brand-rail button:hover { background: var(--surface); }
.brand-rail b { font-size: 22px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand-rail small { font-size: 14px; color: var(--muted); }

/* Rails et grilles de cartes */
.rail { gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail > * { flex: 0 0 min(46vw, 260px); scroll-snap-align: start; background: var(--bg); }
.rail > .card { height: auto; }
@media (min-width: 700px) { .rail > * { flex-basis: min(31vw, 280px); } }
@media (min-width: 1100px) { .rail > * { flex-basis: 19.5%; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.grid > * { background: var(--bg); outline: 1px solid var(--line); min-width: 0; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Carte paire */
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; position: relative; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.card-img img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s; }
.card-img img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-img img.alt { opacity: 1; } .card:hover .card-img img.alt + img, .card:hover .card-img img.first { opacity: 0; } }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 12px 14px; }
.ph span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ph b { font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1; color: #9b9797; }
.tag { position: absolute; left: 10px; top: 10px; background: var(--bg); color: var(--text); padding: 5px 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.tag.red { background: var(--promo); color: #fff; }
.fav { position: absolute; right: 2px; top: 2px; z-index: 2; }
.fav svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fav[aria-pressed="true"] svg { fill: var(--text); }
.card-body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-body .m { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw { display: flex; align-items: center; gap: 5px; min-height: 16px; }
.sw span { width: 14px; height: 14px; border: 1px solid #9b9797; display: block; flex: none; }
.sw small { font-size: 14px; color: var(--muted); margin-left: 2px; }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: auto; padding-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.price b { font-weight: 600; }
.price b.red { color: var(--promo); }
.price s { font-size: 14px; color: var(--muted); }

/* La collection, types, regards */
.colls { display: grid; grid-template-columns: 1fr; gap: 2px; margin-bottom: 40px; }
@media (min-width: 700px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; border: 0; padding: 0; background: var(--text); overflow: hidden; text-align: left; color: #fff; display: block; width: 100%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75) 100%); }
.tile .tt { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.tile .tt b { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.tile .tt small { font-size: 14px; font-weight: 600; }
.colls .tile { aspect-ratio: 4 / 3; }
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { flex: none; height: 48px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--text); color: var(--text); }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 900px) { .types { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.types .tile { aspect-ratio: 1 / 1; }
@media (min-width: 900px) { .types .tile { aspect-ratio: 4 / 3; } }
.types .tile.noimg { background: var(--surface); color: var(--text); }
.types .tile.noimg::after { display: none; }
.looks { gap: 2px; padding: 0 var(--pad); }
.look { flex: 0 0 min(62vw, 300px); scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; background: none; text-align: left; }
.look .im { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); width: 100%; }
.look .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look figcaption { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.look figcaption span { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Lancement, maison, étapes, boutique, aide */
.drop { background: var(--text); color: var(--bg); }
.two { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
@media (min-width: 900px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 520px; border-top: 1px solid #7d7979; }
.timer div { padding: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timer b { font-size: clamp(40px, 5vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.timer span { color: var(--soft); }
.maison p { margin: 0; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.015em; max-width: 24ch; }
.steps { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--text); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > div { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.steps b { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted-2); max-width: 36ch; }
.shop { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-img { position: relative; min-height: 380px; background: var(--text); overflow: hidden; }
.shop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-img .ex { position: absolute; left: 16px; bottom: 16px; background: var(--bg); padding: 6px 10px; font-size: 14px; font-weight: 600; }
.shop-txt { padding: clamp(40px, 6vw, 96px) clamp(20px, 4vw, 72px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.kv { width: 100%; max-width: 480px; border-top: 1px solid var(--text); }
.kv > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv .label { padding-top: 3px; }
.kv .empty { color: var(--muted); }
.acc { border-top: 1px solid var(--text); }
.acc > div { border-bottom: 1px solid var(--line); }
.acc button { width: 100%; min-height: 64px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; text-align: left; font-size: 17px; }
.acc button span { font-size: 22px; font-weight: 300; flex: none; }
.acc p { margin: 0; padding: 0 0 22px; max-width: 60ch; color: var(--muted-2); }
.acc.small button { min-height: 56px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Pied de page */
footer.foot { background: var(--text); color: var(--bg); }
.foot-in { max-width: 1600px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px) 28px; display: flex; flex-direction: column; gap: 48px; }
.foot-in .lead { margin: 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; max-width: 26ch; }
.sitemap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--muted); padding-top: 32px; }
@media (min-width: 900px) { .sitemap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sitemap div { display: flex; flex-direction: column; min-width: 0; }
.sitemap .label { color: var(--soft); margin-bottom: 8px; }
.sitemap button, .sitemap a { min-height: 40px; padding: 0; border: 0; background: none; color: var(--bg); text-align: left; font-size: 15px; text-decoration: none; display: flex; align-items: center; }
.sitemap button:hover, .sitemap a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bigname { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.bigname img { width: clamp(80px, 11vw, 150px); height: auto; }
.bigname span { font-size: clamp(34px, 8vw, 124px); font-weight: 600; letter-spacing: .08em; line-height: .9; font-stretch: 112%; }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--soft); border-top: 1px solid var(--muted); padding-top: 16px; }

/* Catalogue */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; min-height: 36px; }
.crumbs button { min-height: 36px; padding: 0; border: 0; background: none; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--muted); }
.banner { position: relative; overflow: hidden; border-bottom: 2px solid var(--text); background: var(--text); color: var(--bg); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,18,.62); }
.banner .in { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--pad) clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.banner h1 { margin: 0; font-weight: 400; font-size: clamp(48px, 9vw, 128px); line-height: .92; letter-spacing: -.03em; }
.stock-in { max-width: 1600px; margin: 0 auto; padding: 14px clamp(12px, 4vw, 56px) 72px; }
.toolbar { position: sticky; top: var(--head); z-index: 20; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 12px 0; margin-top: 12px; border-bottom: 1px solid var(--line); }
.toolbar .n { font-size: 15px; font-weight: 600; flex: 1; }
.btn.sm { height: 44px; padding: 0 16px; }
.sortsel { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 14px; border: 1px solid var(--text); font-size: 14px; }
.sortsel select { border: 0; background: none; height: 40px; font-size: 14px; font-weight: 600; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 12px 0 4px; }
.pill { min-height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--text); background: var(--bg); font-size: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stock-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; margin-top: 16px; }
@media (min-width: 1000px) { .stock-grid { grid-template-columns: 260px minmax(0, 1fr); } .stock-grid aside { position: sticky; top: 136px; max-height: calc(100vh - 152px); overflow-y: auto; padding-right: 6px; } }
@media (min-width: 1000px) and (min-width: 1100px) { .stock-grid .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .stock-grid .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.filters { border-top: 2px solid var(--text); }
.filters > div { border-bottom: 1px solid var(--line); }
.filters .fh { width: 100%; min-height: 56px; padding: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; }
.filters .fh .label { flex: 1; min-width: 0; }
.filters .fh em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--promo); }
.filters .fh span:last-child { font-size: 22px; font-weight: 300; width: 16px; }
.chips { padding: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid #bab6b6; background: var(--bg); font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .dot { width: 16px; height: 16px; border: 1px solid #9b9797; display: block; flex: none; }
.chip small { font-size: 13px; color: inherit; opacity: .75; }
.empty-box { padding: 40px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 560px; }
.empty-box p { margin: 0; font-size: 22px; line-height: 1.35; }
.more { padding: 32px 0 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 420px; }
.more .track { height: 2px; width: 100%; background: var(--line); }
.more .track i { display: block; height: 2px; background: var(--text); }
.more .btn { width: 100%; }

/* Fenêtres (fiche, panier, recherche, filtres, guide) */
.veil { position: fixed; inset: 0; z-index: 70; background: rgba(32,30,29,.45); animation: fade .2s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; max-height: 90svh; background: var(--bg); border-top: 2px solid var(--text); display: flex; flex-direction: column; animation: up .24s cubic-bezier(.3,.7,.2,1); }
.sheet-head { flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { flex: none; padding: 12px 20px 16px; border-top: 2px solid var(--text); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 71; display: flex; flex-direction: column; animation: sheet .26s cubic-bezier(.3,.7,.2,1); border-left: 2px solid var(--text); }
.drawer-head { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 22px; }
.drawer-foot { flex: none; padding: 16px 22px 20px; border-top: 2px solid var(--text); display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .im { width: 76px; aspect-ratio: 4 / 5; background: var(--surface); position: relative; }
.line .im img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.line .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.line .t small { font-size: 14px; color: var(--muted); }
.line .link { min-height: 32px; font-size: 14px; }
.tot { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 600; }
.note { font-size: 14px; color: var(--muted-2); margin: 0; }
.btn.wa { background: #1a7f45; border-color: #1a7f45; color: #fff; justify-content: center; }
.btn.wa:hover { background: #146536; }
.btn.wave-pay { background: #1dc8ff; border-color: #1dc8ff; color: #06263a; justify-content: space-between; }
.btn.wave-pay { height: 64px; padding-left: 10px; }
.btn.wave-pay .wv { display: flex; align-items: center; gap: 12px; }
.btn.wave-pay .wv img { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.btn.wave-pay:hover { background: #0fb3ea; border-color: #0fb3ea; }

.fiche { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: fade .2s ease-out; }
.fiche-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 4px; padding: 0 clamp(4px, 3vw, 48px); }
.back { height: 44px; padding: 0 8px; border: 0; background: none; display: flex; align-items: center; gap: 8px; }
.back svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.fiche-grid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .fiche-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .fiche-info { position: sticky; top: 60px; } }
.gal { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; touch-action: pan-y; user-select: none; }
.gal img { position: absolute; left: 5%; top: 5%; width: 90%; height: 90%; object-fit: contain; mix-blend-mode: multiply; transition: transform .22s ease-out; }
.gal.zoom img { transform: scale(1.8); cursor: zoom-out; }
.gal .cnt { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; background: var(--bg); padding: 4px 8px; }
.thumbs { display: flex; gap: 2px; padding: 2px 0; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 72px; height: 90px; padding: 0; border: 0; background: var(--surface); overflow: hidden; opacity: .55; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--text); outline-offset: -2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fiche-info { min-width: 0; padding: clamp(20px, 3vw, 48px) clamp(16px, 4vw, 64px) 0; display: flex; flex-direction: column; gap: 22px; }
.fiche-info h1 { margin: 0; font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.fp { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.fp b { font-size: 22px; font-weight: 600; }
.fp b.red { color: var(--promo); }
.fp s { font-size: 16px; color: var(--muted); }
.fp em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--promo); }
.flag { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.flag::before { content: ""; width: 7px; height: 7px; background: var(--promo); display: block; }
.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 1px 0 0 1px; }
.sizes button { height: 52px; border: 1px solid var(--line); margin: -1px 0 0 -1px; background: var(--bg); font-size: 16px; font-variant-numeric: tabular-nums; }
.sizes button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.sizes button:disabled { color: #9b9797; text-decoration: line-through; cursor: not-allowed; }
.add-zone { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 999px) { .add-zone { position: sticky; bottom: 0; z-index: 6; background: var(--bg); padding: 12px 0 10px; border-top: 1px solid var(--line); margin: 0 calc(-1 * clamp(16px, 4vw, 64px)); padding-left: clamp(16px, 4vw, 64px); padding-right: clamp(16px, 4vw, 64px); } }
.added { border: 1px solid var(--text); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.added .duo { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .added .duo { grid-template-columns: 1fr 1fr; } }
.added .duo .btn { justify-content: center; padding: 0 10px; height: 48px; }
.related { max-width: 1600px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) 0 40px; }
.related h2 { margin: 0 var(--pad) 20px; font-weight: 400; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.02em; }

.search { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; animation: fade .15s ease-out; }
.search-bar { position: sticky; top: 0; background: var(--bg); border-bottom: 2px solid var(--text); display: flex; align-items: center; gap: 6px; padding: 8px clamp(8px, 3vw, 48px); }
.search-bar input { flex: 1; height: 52px; border: 0; background: none; font-size: clamp(20px, 3vw, 28px); padding: 0 8px; min-width: 0; }
.search-in { max-width: 1600px; margin: 0 auto; padding: 20px var(--pad) 60px; display: flex; flex-direction: column; gap: 24px; }
.res { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.res .im { width: 64px; aspect-ratio: 4 / 5; background: var(--surface); position: relative; }
.res .im img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.res small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.res mark { background: none; font-weight: 700; color: inherit; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }

.guide { position: fixed; inset: 0; z-index: 95; background: rgba(32,30,29,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease-out; }
.guide > div { width: 100%; max-width: 560px; max-height: 88svh; overflow-y: auto; background: var(--bg); border-top: 2px solid var(--text); padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; animation: up .24s ease-out; }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.guide th { text-align: left; padding: 10px 0; font-size: 13px; letter-spacing: .14em; border-bottom: 2px solid var(--text); }
.guide td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.guide tr.sel { background: var(--surface); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; background: var(--text); color: var(--bg); padding: 14px 18px; font-size: 15px; max-width: calc(100% - 32px); animation: fade .2s ease-out; }

@keyframes prog { from { width: 0; } to { width: 100%; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateX(100%); } to { transform: none; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

.fiche:focus, .drawer:focus, .sheet:focus, .search:focus { outline: none; }

/* Écran de chargement (le temps de lire les paires dans Supabase) */
.boot { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted-2); font-size: 15px; }
.boot img { animation: boot 1.2s ease-in-out infinite alternate; }
@keyframes boot { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boot img { animation: none; } }

