/* Omniboss : noir pur comme le logo. Barre langue/devise, en-tête avec recherche,
   boutons Hommes / Femmes bien visibles, grille de produits, panier en tiroir latéral. */
:root {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface-2: #181818;
  --line: #2a2a2a;
  --fg: #f4f4f2;
  --muted: #9b9b97;
  --accent: #ffffff;
  --on-accent: #000000;
  --danger: #ff6b5e;
  --font-display: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Barre langue et devise */
.util { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; }
.util .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 8px; }
.util .note { color: var(--muted); min-width: 0; }
.util .prefs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: auto; }
.util label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.util select { background: var(--bg); border: 1px solid var(--line); padding: 4px 6px; border-radius: 2px; font-size: 12px; max-width: 170px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 10px; }
.brand {
  font-family: var(--font-display); font-weight: 300; font-size: 26px; order: 1;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--fg);
}
.search { order: 2; flex: 1; min-width: 0; margin-inline: auto; max-width: 520px; }
.search input { width: 100%; background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; border-radius: 2px; }
.search input::placeholder { color: var(--muted); }
.cart-btn {
  order: 3; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 0; padding: 10px 14px;
  font-weight: 700; letter-spacing: 0.04em; border-radius: 2px; white-space: nowrap;
}
.cart-btn .count {
  background: var(--on-accent); color: var(--accent); min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; font-family: var(--font-mono);
}

/* Boutons Tout / Hommes / Femmes */
.shop-by { border-bottom: 1px solid var(--line); }
.shop-by .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 0; }
.seg {
  background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 16px 8px;
  font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.seg:hover { color: var(--fg); }
.seg[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); }

/* Boutons Vêtements / Chaussures / Accessoires */
.cat-bar { border-bottom: 1px solid var(--line); }
.cat-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 12px; }
.chip {
  background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 12px 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip .num { color: var(--muted); margin-left: 4px; }
.chip[aria-pressed="true"] .num { color: var(--on-accent); opacity: 0.6; }

/* Suggestion de langue */
[hidden] { display: none !important; }
.suggest { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; }
.suggest .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-align: left; }

/* Accueil */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-block: 32px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 5.5vw, 58px);
  line-height: 1.04; letter-spacing: 0.02em; margin: 0 0 14px; text-wrap: balance;
}
.hero p { margin: 0 0 18px; color: var(--muted); max-width: 52ch; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero .logo { width: 180px; max-width: 100%; aspect-ratio: 1; mix-blend-mode: lighten; display: block; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: flex-end; padding-block: 16px 8px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { background: var(--surface); border: 1px solid var(--line); padding: 7px 10px; border-radius: 2px; color: var(--fg); }
.result-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; padding-bottom: 12px; }

/* Grille */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 16px; padding-bottom: 64px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .initials { font-family: var(--font-display); font-weight: 300; font-size: 56px; letter-spacing: 0.08em; color: rgba(255,255,255,0.16); }
.tile .sku { position: absolute; left: 8px; top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.tile.p0 { background-image: repeating-linear-gradient(45deg, #151515 0 2px, #1b1b1b 2px 14px); }
.tile.p1 { background-image: repeating-linear-gradient(-45deg, #161616 0 2px, #202020 2px 18px); }
.tile.p2 { background-image: linear-gradient(160deg, #222 0%, #121212 100%); }
.tile.p3 { background-image: repeating-linear-gradient(0deg, #151515 0 1px, #1d1d1d 1px 10px); }
.card h3 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.3; }
.card .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-mono); font-size: 14px; }
.card select { background: var(--surface); border: 1px solid var(--line); padding: 5px 6px; border-radius: 2px; font-size: 13px; }
.add {
  width: 100%; background: transparent; border: 1px solid var(--fg); padding: 9px 10px; border-radius: 2px;
  font-weight: 700; letter-spacing: 0.04em; font-size: 13px; transition: background 0.15s, color 0.15s;
}
.add:hover { background: var(--accent); color: var(--on-accent); }
.empty { grid-column: 1 / -1; padding: 48px 0; color: var(--muted); text-align: center; }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Tiroir panier */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 50;
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; }
.drawer-head .sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.icon-btn { background: none; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 2px; display: grid; place-items: center; font-size: 18px; line-height: 1; flex: none; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .thumb { position: relative; overflow: hidden; width: 56px; aspect-ratio: 4 / 5; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; color: rgba(255,255,255,0.25); }
.line .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line .info { min-width: 0; }
.line .name { font-weight: 500; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.line .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; }
.stepper button { background: none; border: 0; width: 30px; height: 30px; font-size: 16px; }
.stepper span { min-width: 30px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.line .end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line .rm { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.sum { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.sum.total { color: var(--fg); font-size: 17px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.ship-hint, .fine { font-size: 12px; color: var(--muted); }
.ship-bar { height: 3px; background: var(--line); }
.ship-bar i { display: block; height: 100%; background: var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; padding: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; width: 100%; }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.btn-ghost { background: none; border: 1px solid var(--line); padding: 10px; border-radius: 2px; width: 100%; font-size: 13px; }
.cart-empty { padding: 48px 8px; text-align: center; color: var(--muted); }
.err-box { color: var(--danger); font-size: 13px; border: 1px solid var(--danger); padding: 10px 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 2px; font-weight: 700; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Page de confirmation */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.thanks img { width: 160px; mix-blend-mode: lighten; }
.thanks h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 5vw, 44px); margin: 16px 0 8px; }
.thanks p { color: var(--muted); max-width: 46ch; margin: 0 auto 24px; }
.thanks a { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 12px 22px; font-weight: 700; text-decoration: none; border-radius: 2px; }

/* Avis clients */
.stars { position: relative; display: inline-block; font-size: 14px; letter-spacing: 2px; line-height: 1; white-space: nowrap; vertical-align: middle; }
.stars-bg { color: #3a3a3a; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--fg); }
.rv-link { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; text-align: left; color: var(--muted); font-size: 12px; }
.rv-link:hover { color: var(--fg); }
.rv-link > span:not(.stars):not(.sr) { text-decoration: underline; text-underline-offset: 3px; }
.modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.78); }
.modal-box { position: relative; width: min(640px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.06em; line-height: 1.25; overflow-wrap: anywhere; }
.rv-summary { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-height: 18px; }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 20px; }
.rv { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.rv-top time { color: var(--muted); margin-left: auto; font-size: 12px; }
.rv p { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: #d6d6d2; }
.rv-empty { padding: 28px 0; color: var(--muted); text-align: center; }
.rv-form { display: grid; gap: 14px; padding-top: 22px; }
.rv-form h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.rv-form .field { display: grid; gap: 4px; }
.rv-form label, .rv-rating legend { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rv-form input[type="text"], .rv-form textarea { background: var(--bg); border: 1px solid var(--line); padding: 11px 12px; border-radius: 2px; width: 100%; font: inherit; color: var(--fg); }
.rv-form textarea { resize: vertical; min-height: 110px; }
.rv-rating { border: 0; padding: 0; margin: 0; min-width: 0; }
.rv-rating legend { padding: 0; margin-bottom: 4px; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 32px; line-height: 1; color: #3a3a3a; cursor: pointer; padding: 2px 3px; letter-spacing: 0; text-transform: none; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--fg); }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-msg { font-size: 13px; }
.rv-msg.bad { color: var(--danger); border: 1px solid var(--danger); padding: 10px 12px; }
.rv-msg.ok { color: var(--fg); }
.rv-done { display: grid; gap: 16px; padding-top: 28px; }
.rv-done p { margin: 0; }
.rv-form .fine { margin: 0; }

/* Pages légales et contact */
.legal-top { justify-content: space-between; }
.back-link { margin-left: auto; order: 3; color: var(--muted); text-decoration: none; font-size: 13px; }
.back-link:hover { color: var(--fg); text-decoration: underline; }
.legal { max-width: 760px; padding-block: 40px 72px; }
.legal h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.02em; margin: 0 0 6px; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin: 0 0 28px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.06em; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 15px; font-weight: 700; margin: 22px 0 6px; }
.legal p, .legal li { color: #d6d6d2; }
.legal p { margin: 0 0 14px; max-width: 68ch; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; max-width: 68ch; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--fg); text-underline-offset: 3px; }
.legal strong { color: var(--fg); }
.legal .btn-link { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 12px 22px; font-weight: 700; text-decoration: none; border-radius: 2px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--fg); text-decoration: underline; }
.cform { display: grid; gap: 16px; margin-top: 24px; max-width: 560px; }
.cform .field { display: grid; gap: 4px; }
.cform label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cform input, .cform select, .cform textarea { background: var(--surface); border: 1px solid var(--line); padding: 11px 12px; border-radius: 2px; width: 100%; font: inherit; color: var(--fg); }
.cform textarea { resize: vertical; min-height: 120px; }
.cform .fine { margin: 0; }
.cform .fine a { color: var(--fg); }

@media (max-width: 640px) {
  .brand { font-size: 20px; }
  .cart-btn { margin-left: auto; }
  .search { order: 4; flex: 1 1 100%; max-width: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 24px; }
  .hero .logo { width: 120px; order: -1; }
  .seg { font-size: 16px; letter-spacing: 0.1em; }
  .cat-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .tile .initials { font-size: 44px; }
  .util .prefs { margin-left: 0; }
  .modal { padding: 0; }
  .modal-box { width: 100%; height: 100%; max-height: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .overlay, .toast, .add { transition: none; }
}

/* Choix de couleur */
.colors { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--sw, #888); border: 1px solid var(--line); padding: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
.swatch:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.color-name { font-size: 12px; color: var(--muted); margin-left: 4px; }
