/* =====================================================================
   Discount42 — maquette interactive
   Direction artistique : noir, blanc, orange (logo d42).
   ===================================================================== */
:root {
  --ink: #161616;
  --ink-2: #242424;
  --ink-3: #3a3a3a;
  --orange: #ff7a00;          /* orange du logo : accents, icônes, badges */
  --orange-btn: #f06400;      /* fond des boutons (texte blanc plus lisible) */
  --orange-hover: #d85800;
  --orange-50: #fff5ec;
  --orange-100: #ffe7d1;
  --red: #e0261b;
  --red-50: #fdecea;
  --green: #18924a;
  --green-50: #e6f6ec;
  --blue: #1f6fd1;
  --blue-50: #e8f1fc;

  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --line: #e7e7e7;
  --line-2: #d5d5d5;
  --text: #161616;
  --text-2: #555555;
  --text-3: #8a8a8a;

  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 4px rgba(0, 0, 0, .06);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tabbar-h: 62px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.ex {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #8a4b00; background: var(--orange-50); border: 1px dashed #f0a35a; border-radius: 999px;
  padding: 0 7px; line-height: 18px; vertical-align: middle; margin-left: 6px; white-space: nowrap;
}

/* ---------- Bandeau supérieur ---------- */
.topbar { background: var(--ink); color: #e9e9e9; font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 36px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar svg { width: 17px; height: 17px; }
.topbar .tb-right { margin-left: auto; display: flex; gap: 18px; }
.topbar a:hover { color: var(--orange); }
.demo-pill { background: var(--orange); color: #fff; font-weight: 700; border-radius: 999px; padding: 1px 9px; font-size: 11px; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-main { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 58px; width: auto; }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search form { display: flex; }
.search input {
  width: 100%; height: 46px; border: 1px solid var(--line-2); border-right: 0; border-radius: 8px 0 0 8px;
  padding: 0 14px; background: var(--surface-2); color: var(--text); font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--orange); background: #fff; }
.search button[type=submit] {
  width: 52px; border: 0; background: var(--orange-btn); color: #fff; border-radius: 0 8px 8px 0;
  display: grid; place-items: center;
}
.search button[type=submit]:hover { background: var(--orange-hover); }
.search button svg { width: 22px; height: 22px; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-2); overflow: hidden; z-index: 60; border: 1px solid var(--line);
}
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.suggest a:hover, .suggest a.active { background: var(--orange-50); }
.suggest img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex-shrink: 0; }
.suggest .s-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.suggest .s-meta { font-size: 12.5px; color: var(--text-2); }
.suggest .s-price { margin-left: auto; font-weight: 800; white-space: nowrap; }
mark, .hl { background: var(--orange-100); color: inherit; border-radius: 3px; padding: 0 2px; }
.suggest .s-foot { display: block; padding: 11px 12px; font-size: 13.5px; font-weight: 700; color: var(--orange-hover); background: var(--surface-2); border: 0; }
.suggest .s-empty { padding: 14px; font-size: 14px; color: var(--text-2); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.hbtn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: 10px; color: var(--ink); background: none; border: 0; font-size: 12px; font-weight: 500;
}
.hbtn:hover { background: var(--surface-2); }
.hbtn svg { width: 26px; height: 26px; }
.hbtn .heart { color: var(--red); }
.badge-count {
  position: absolute; top: 0; right: 6px; min-width: 19px; height: 19px; border-radius: 10px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; padding: 0 5px;
  border: 2px solid #fff; box-sizing: content-box;
}
.badge-count:empty, .badge-count[data-n="0"] { display: none; }
.nav-cats { border-top: 1px solid var(--line); background: #fff; }
.nav-cats ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.nav-cats li { position: relative; }
.nav-cats > .wrap > ul > li > a {
  display: flex; align-items: center; gap: 9px; padding: 13px 10px 12px; font-size: 14.5px; font-weight: 600;
  color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav-cats svg { width: 22px; height: 22px; }
.nav-cats > .wrap > ul > li > a:hover, .nav-cats > .wrap > ul > li > a.on { border-bottom-color: var(--orange); }
.nav-cats a.deal { color: var(--orange-btn); }
.mega {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-2); padding: 8px; z-index: 70;
}
.mega a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.mega a:hover { background: var(--orange-50); color: var(--orange-hover); }
.mega a.all { font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 11px; }
.nav-cats li:hover .mega, .nav-cats li:focus-within .mega { display: block; }
.menu-toggle, .m-cart { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: 16px; text-align: center;
  transition: background .15s, transform .05s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--orange-btn); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-apple { background: #000; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--orange-btn); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 16px; height: 16px; }
.link:hover { color: var(--orange-hover); text-decoration: underline; }
.iconbtn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; display: inline-grid; place-items: center; color: var(--ink); }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- Accueil : héros ---------- */
.hero { background: #0d0d0d; color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: 47%; width: 34px;
  background: var(--orange); transform: rotate(24deg); box-shadow: 64px 0 0 -10px rgba(255, 122, 0, .55);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; min-height: 340px; }
.hero h1 { font-size: 46px; line-height: 1.06; margin: 0 0 16px; letter-spacing: -.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 18px; color: #eaeaea; margin: 0 0 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .lead i { font-style: normal; color: var(--orange); }
.hero-visual { position: relative; height: 340px; }
.hero-visual .hv {
  position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); background: #222;
  border: 3px solid #1f1f1f;
}
.hero-visual .hv img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hv span {
  position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.hv1 { width: 46%; height: 72%; left: 6%; top: 14%; transform: rotate(-3deg); z-index: 2; }
.hv2 { width: 38%; height: 56%; left: 50%; top: 6%; transform: rotate(4deg); }
.hv3 { width: 36%; height: 50%; left: 56%; top: 48%; transform: rotate(-2deg); z-index: 3; }
.hero-dots { display: flex; gap: 6px; margin-top: 26px; }
.hero-dots i { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.hero-dots i.on { background: var(--orange); width: 22px; border-radius: 4px; }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--text-2); justify-content: center; }
.trust svg { width: 34px; height: 34px; color: var(--ink); flex-shrink: 0; }
.trust b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }

.section { padding: 30px 0 4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; margin: 0; letter-spacing: -.01em; font-weight: 700; }
.section-head p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }
.section-head .link { white-space: nowrap; font-size: 14px; }

.cat-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px 14px; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--orange); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.cat-tile .ct-ico { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--ink); }
.cat-tile .ct-ico svg { width: 28px; height: 28px; }
.cat-tile b { display: block; font-size: 14px; font-weight: 600; }
.cat-tile span { font-size: 12px; color: var(--text-3); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }

/* ---------- Carte produit ---------- */
.pcard {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s;
}
.pcard:hover { box-shadow: var(--shadow-2); }
.pcard .pc-img { position: relative; aspect-ratio: 1; background: #fff; }
.pcard .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.pcard .fav { position: absolute; top: 8px; right: 8px; }
.pcard .pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .pc-title { font-size: 14px; font-weight: 600; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.pcard .pc-ref { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pc-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.etat { font-size: 12px; color: var(--text-3); }
.unique { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--red); }
.unique::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.instock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.instock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pnew { font-size: 12px; color: var(--text-3); }
.pcard .add-mini { width: 40px; height: 40px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.pcard .add-mini:hover { background: var(--orange-btn); }
.pcard .add-mini svg { width: 21px; height: 21px; }
.pcard .add-mini.in { background: var(--green); }
.pcard.sold .pc-img img { filter: grayscale(1); opacity: .5; }
.sold-ribbon { position: absolute; inset: auto 0 0 0; background: rgba(22, 22, 22, .88); color: #fff; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .1em; padding: 6px; text-transform: uppercase; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; line-height: 1.35; }
.b-new { background: var(--orange); color: #fff; }
.b-deal { background: var(--red); color: #fff; }
.b-occ { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.b-neuf { background: var(--green-50); color: var(--green); }
.b-recond { background: var(--blue-50); color: var(--blue); }
.b-dark { background: var(--ink); color: #fff; }

.fav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; }
.fav svg { width: 22px; height: 22px; }
.fav.on { color: var(--red); }
.fav.on svg { fill: currentColor; }

/* ---------- Bandes d'univers ---------- */
.univers-band { display: grid; grid-template-columns: 290px 1fr; gap: 14px; }
.univers-intro {
  border-radius: 14px; padding: 22px; color: #fff; position: relative; overflow: hidden; background: #111;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px;
}
.univers-intro img.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.univers-intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .9) 100%); }
.univers-intro > * { position: relative; z-index: 1; }
.univers-intro .u-k { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.univers-intro .u-k svg { width: 20px; height: 20px; }
.univers-intro h3 { margin: 6px 0 6px; font-size: 24px; }
.univers-intro ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.univers-intro li a { display: inline-block; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.univers-intro li a:hover { background: var(--orange); }
.deal-band { background: #111; border-radius: 14px; padding: 18px; color: #fff; }
.deal-band .section-head h2 { color: #fff; }
.deal-band .section-head p { color: #cfcfcf; }
.deal-band .section-head h2 span { color: var(--orange); }

/* ---------- Listes ---------- */
.page-head { padding: 18px 0 6px; }
.crumbs { font-size: 13px; color: var(--text-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.crumbs a:hover { color: var(--orange-hover); text-decoration: underline; }
.crumbs span.sep { color: var(--line-2); }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.cat-hero { border-radius: 14px; overflow: hidden; position: relative; background: #111; color: #fff; padding: 26px; margin: 8px 0 6px; }
.cat-hero::before { content: ""; position: absolute; top: -50%; bottom: -50%; right: 18%; width: 26px; background: var(--orange); transform: rotate(24deg); }
.cat-hero > * { position: relative; }
.cat-hero h1 { margin: 0 0 4px; font-size: 30px; }
.cat-hero p { margin: 0; color: #d8d8d8; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 20px; padding: 14px 0 40px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 14px; position: sticky; top: 146px; }
.filters h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 16px 0 8px; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.filters label span.n { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.filters input[type=checkbox], .filters input[type=radio] { width: 18px; height: 18px; accent-color: var(--orange-btn); }
.filters .f-head { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-open { display: none; }
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--text-2); }
.empty h3 { color: var(--text); margin: 0 0 6px; }
.ref-hit { display: flex; gap: 12px; align-items: center; background: var(--green-50); border: 1px solid #b6e2c6; color: #11532b; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.ref-hit svg { width: 24px; height: 24px; flex-shrink: 0; }
.ref-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.ref-box label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.ref-box .rb-row { display: flex; gap: 10px; }
.ref-box input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 14px; font-family: var(--mono); font-size: 16px; }
.ref-box input:focus { outline: none; border-color: var(--orange); }
.ref-box p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; padding: 6px 0 24px; align-items: start; }
.gallery { display: grid; grid-template-columns: 74px 1fr; gap: 12px; position: sticky; top: 140px; }
.g-thumbs { display: flex; flex-direction: column; gap: 8px; }
.g-thumbs button { width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: #fff; }
.g-thumbs button.on { border-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.g-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.g-track::-webkit-scrollbar { display: none; }
.g-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; background: #fff; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95); display: grid; place-items: center; }
.g-nav svg { width: 20px; height: 20px; }
.g-prev { left: 10px; } .g-next { right: 10px; }
.g-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: none; justify-content: center; gap: 6px; }
.g-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .25); }
.g-dots i.on { background: var(--orange); }
.g-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.p-info h1 { font-size: 27px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.p-title-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.p-title-row .fav { flex-shrink: 0; border: 1px solid var(--line-2); width: 44px; height: 44px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 6px 10px; margin: 14px 0; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 500; }
.refcard { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; margin: 14px 0; background: #fff; }
.refcard .rc-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: block; }
.refcard .rc-val { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: .02em; word-break: break-all; }
.refcard .rc-tag { background: var(--orange); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 800; padding: 2px 7px; text-transform: uppercase; letter-spacing: .06em; }
.refcard .rc-other { font-size: 12.5px; color: var(--text-2); width: 100%; }
.refcard .rc-other span { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; margin: 3px 4px 0 0; display: inline-block; }
.copy { margin-left: auto; }
.p-price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 0; }
.p-compare { font-size: 13.5px; color: var(--text-2); }
.stockline { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 10px 0 14px; font-size: 14.5px; color: var(--green); }
.stockline::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.stockline.sold { color: var(--text-3); }
.stockline.sold::before { background: var(--text-3); }
.buyrow { display: flex; gap: 12px; align-items: center; }
.buyrow .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; height: 48px; background: #fff; }
.qty button { width: 40px; height: 100%; border: 0; background: #fff; font-size: 18px; }
.qty button:disabled { color: var(--line-2); cursor: not-allowed; }
.qty span { min-width: 32px; text-align: center; font-weight: 700; }
.qty.sm { height: 34px; }
.qty.sm button { width: 32px; }
.uniq-note { font-size: 12.5px; color: var(--text-2); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.uniq-note svg { width: 16px; height: 16px; color: var(--orange); }
.paylogos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.pl { height: 30px; min-width: 46px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.pl-visa { color: #1a1f71; font-style: italic; font-size: 14px; letter-spacing: .02em; }
.pl-cb { background: linear-gradient(135deg, #0a7a3e, #1a4c9a); color: #fff; border: 0; }
.pl-mc i { width: 15px; height: 15px; border-radius: 50%; display: inline-block; }
.pl-mc i:first-child { background: #eb001b; }
.pl-mc i:last-child { background: #f79e1b; margin-left: -6px; opacity: .9; }
.pl-apple, .pl-gpay { gap: 3px; font-size: 13px; font-weight: 600; }
.pl-apple svg { width: 13px; height: 13px; }
.pl-gpay b { color: #4285f4; font-weight: 700; }
.secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.secure svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.ship { border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; padding: 12px 14px; display: grid; gap: 9px; font-size: 14px; background: #fff; }
.ship div { display: flex; gap: 10px; align-items: flex-start; }
.ship svg { width: 22px; height: 22px; color: var(--ink); flex-shrink: 0; margin-top: 1px; }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 12px 0; font-weight: 600; color: var(--text-2); border-bottom: 3px solid transparent; white-space: nowrap; font-size: 15px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--orange); }
.tabpanel { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 18px; }
.desc p { margin: 0 0 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--text-2); font-weight: 500; background: var(--surface-2); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.compat { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; }
.compat svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.compat.ok { background: var(--green-50); color: #11532b; border: 1px solid #b6e2c6; }
.compat.unk { background: var(--surface-2); color: var(--text-2); border: 1px dashed var(--line-2); }
.compat b { display: block; color: var(--text); }
.sticky-buy { display: none; }

/* ---------- Panier ---------- */
.cart { display: grid; grid-template-columns: 1fr 370px; gap: 20px; padding: 6px 0 40px; align-items: start; }
.cart-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.cart-line .cl-title { font-weight: 600; line-height: 1.3; }
.cart-line .cl-title:hover { color: var(--orange-hover); }
.cart-line .cl-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.cart-line .cl-price { font-weight: 800; font-size: 17px; margin-top: 6px; }
.trash { width: 38px; height: 38px; border: 0; background: none; border-radius: 8px; color: var(--text-2); display: grid; place-items: center; }
.trash:hover { background: var(--red-50); color: var(--red); }
.trash svg { width: 20px; height: 20px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: sticky; top: 140px; }
.summary h2 { margin: 0 0 12px; font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 800; }
.cart-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.cart-trust div { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-2); }
.cart-trust b { display: block; color: var(--ink); font-size: 12.5px; }
.cart-trust svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink); }
.note { font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.note.warn { background: var(--orange-50); color: #7a3c00; }
.note.ok { background: var(--green-50); color: #11532b; }

/* ---------- Commande ---------- */
.steps { display: flex; gap: 8px; margin: 4px 0 18px; padding: 0; counter-reset: st; flex-wrap: wrap; }
.steps li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-3); padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.steps li::before { counter-increment: st; content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12.5px; }
.steps li.on { color: var(--ink); border-color: var(--ink); }
.steps li.on::before { background: var(--orange); color: #fff; }
.steps li.done { color: var(--green); }
.steps li.done::before { content: "✓"; background: var(--green-50); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.form-card h2 { margin: 0 0 14px; font-size: 19px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.field input, .field select { width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px var(--orange-100); }
.field.full { grid-column: 1 / -1; }
.opt { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--orange); background: var(--orange-50); }
.opt input { width: 20px; height: 20px; accent-color: var(--orange-btn); flex-shrink: 0; }
.opt .o-ico { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.opt .o-ico svg { width: 24px; height: 24px; }
.opt .o-main { flex: 1; }
.opt .o-main b { display: block; }
.opt .o-main span { font-size: 13px; color: var(--text-2); }
.opt .o-price { font-weight: 800; white-space: nowrap; }
.relais { margin: -2px 0 12px 32px; display: grid; gap: 6px; }
.relais label { display: flex; gap: 10px; font-size: 13.5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; align-items: flex-start; }
.relais label.on { border-color: var(--orange); }
.relais input { accent-color: var(--orange-btn); margin-top: 2px; }
.paytabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.paytab { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; min-height: 76px; justify-content: center; }
.paytab.on { border-color: var(--orange); background: var(--orange-50); }
.paytab .pl { border: 0; background: none; height: auto; }
.cardform { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.cardform .field input { background: #ededed; color: var(--text-3); }
.stripe-tag { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.stripe-tag svg { width: 15px; height: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange-btn); flex-shrink: 0; }
.check a { text-decoration: underline; }
.confirm-hero { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 20px; text-align: center; }
.confirm-hero .ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.confirm-hero .ok-ico svg { width: 34px; height: 34px; }
.confirm-hero h1 { margin: 0 0 6px; font-size: 26px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 28px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 19px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t-time { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 16px; }
.block h2 { font-size: 18px; margin: 0 0 12px; }

/* ---------- Modales, tiroirs, toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 18px; max-width: 420px; width: 100%; padding: 24px; box-shadow: var(--shadow-2); text-align: center; }
.modal h3 { margin: 6px 0 8px; }
.modal .bank { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 6px; }
.modal .bank svg { width: 30px; height: 30px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--orange-100); border-top-color: var(--orange); animation: spin .8s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-2); z-index: 300; display: flex; gap: 14px; align-items: center;
  transition: transform .25s ease; max-width: calc(100% - 32px); font-size: 14px;
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--orange); font-weight: 700; white-space: nowrap; }
.drawer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 150; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 160; overflow-y: auto; box-shadow: var(--shadow-2); animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 40px; }
.drawer-head button { background: none; border: 0; padding: 6px; }
.drawer-head svg { width: 26px; height: 26px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 24px; height: 24px; }
.drawer summary::after { content: "›"; margin-left: auto; font-size: 22px; color: var(--text-3); transition: transform .2s; }
.drawer details[open] summary::after { transform: rotate(90deg); }
.drawer details a { display: block; padding: 10px 16px 10px 52px; font-size: 14.5px; }
.drawer details a:hover { background: var(--orange-50); }
.drawer .d-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer .d-links svg { width: 22px; height: 22px; }
.drawer .d-links a.deal { color: var(--orange-btn); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; margin-top: 40px; font-size: 14px; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; padding: 36px 20px 22px; }
.site-footer img { height: 52px; margin-bottom: 10px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a:hover { color: var(--orange); }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 20px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 840px; }
.prose h2 { font-size: 18px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--text-2); }
.tabbar { display: none; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1180px) {
  .nav-cats > .wrap > ul > li > a { padding-left: 6px; padding-right: 6px; font-size: 14px; gap: 7px; }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .topbar .wrap { gap: 18px; }
}
@media (max-width: 980px) {
  .topbar .tb-hide { display: none; }
  .nav-cats ul { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .nav-cats li:hover .mega { display: none; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 34px; padding-bottom: 34px; }
  .hero::before { left: 78%; }
  .hero-visual { display: none; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li { justify-content: flex-start; }
  .univers-band { grid-template-columns: 1fr; }
  .univers-intro { min-height: 180px; }
  .listing { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; max-height: 82vh; overflow-y: auto; z-index: 170; border-radius: 18px 18px 0 0;
    transform: translateY(105%); transition: transform .25s; padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .filters.open { transform: none; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
  .filters .f-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 0; }
  .filter-open { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.has-sticky-buy { padding-bottom: calc(var(--tabbar-h) + 74px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .header-main { height: auto; display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; padding-top: 8px; padding-bottom: 10px; }
  .menu-toggle, .m-cart { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; position: relative; color: var(--ink); }
  .menu-toggle svg, .m-cart svg { width: 28px; height: 28px; }
  .m-cart .badge-count { top: 2px; right: 0; }
  .logo { justify-self: center; }
  .logo img { height: 44px; }
  .header-actions { display: none; }
  .search { grid-column: 1 / -1; max-width: none; margin: 0; }
  .search input { height: 44px; font-size: 16px; }
  .nav-cats { display: none; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 15px; margin-bottom: 18px; }
  .hero::before { left: 86%; width: 22px; }
  .hero .btn { width: 100%; }
  .trust ul { gap: 12px; padding: 14px 0; }
  .trust li { gap: 10px; font-size: 12px; }
  .trust b { font-size: 13px; }
  .trust svg { width: 26px; height: 26px; }
  .section { padding-top: 22px; }
  .section-head h2 { font-size: 20px; }
  .section-head p { font-size: 13px; }
  .cat-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 2px; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { padding: 10px 4px; border-radius: 10px; }
  .cat-tile .ct-ico { width: 42px; height: 42px; }
  .cat-tile .ct-ico svg { width: 24px; height: 24px; }
  .cat-tile b { font-size: 12px; }
  .cat-tile span { display: none; }
  .rail { grid-auto-columns: 47%; gap: 10px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard .pc-body { padding: 8px 10px 10px; }
  .pcard .pc-title { font-size: 13px; }
  .pcard .pc-ref { font-size: 11px; }
  .price { font-size: 17px; }
  .unique, .instock { font-size: 11px; }
  .pcard .add-mini { width: 36px; height: 36px; }
  .pcard .fav { width: 32px; height: 32px; }
  .pcard .fav svg { width: 19px; height: 19px; }
  .badge { font-size: 10.5px; padding: 2px 7px; }
  .deal-band { margin: 0 -16px; border-radius: 0; padding: 18px 16px; }
  .cat-hero { padding: 20px; }
  .cat-hero h1 { font-size: 24px; }
  .page-head h1 { font-size: 23px; }
  .gallery { grid-template-columns: 1fr; margin: 0 -16px; }
  .g-thumbs { display: none; }
  .g-main { border-radius: 0; border-left: 0; border-right: 0; }
  .g-nav { display: none; }
  .g-dots { display: flex; }
  .p-info h1 { font-size: 21px; }
  .kv { grid-template-columns: 100px 1fr; }
  .refcard .rc-val { font-size: 18px; }
  .p-price { font-size: 30px; }
  .tabs { gap: 18px; }
  .tabpanel { padding: 14px; }
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; z-index: 90;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .07);
  }
  .sticky-buy .price { font-size: 21px; }
  .sticky-buy .btn { flex: 1; }
  .cart-box { padding: 2px 12px; }
  .cart-line { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line .cl-qty { grid-column: 2; }
  .cart-line .trash { grid-column: 3; grid-row: 1; align-self: start; }
  .cart-trust { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .paytabs { gap: 6px; }
  .paytab { font-size: 12px; padding: 10px 4px; }
  .steps li { font-size: 12.5px; padding-right: 10px; }
  .site-footer .f-grid { grid-template-columns: 1fr; gap: 18px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: #fff; border-top: 1px solid var(--line); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-2); background: none; border: 0; }
  .tabbar svg { width: 25px; height: 25px; }
  .tabbar .on { color: var(--orange-btn); }
  .tabbar .badge-count { top: 4px; right: calc(50% - 24px); }
  .toast { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
  body.has-sticky-buy .toast { bottom: calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom)); }
}

/* ============================== ADMIN ============================== */
body.is-admin { background: #f3f3f3; padding-bottom: 0; }
body.is-admin .topbar, body.is-admin .site-header, body.is-admin .site-footer, body.is-admin .tabbar { display: none; }
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.a-side { background: #111; color: #d6d6d6; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.a-side .a-logo { display: block; padding: 0 10px 18px; }
.a-side .a-logo img { height: 50px; }
.a-nav { display: grid; gap: 3px; }
.a-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.a-nav a svg { width: 19px; height: 19px; }
.a-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.a-nav a.on { background: var(--orange-btn); color: #fff; font-weight: 600; }
.a-nav .sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #8a8a8a; margin: 16px 12px 4px; font-weight: 700; }
.a-side .back { margin-top: auto; font-size: 13px; color: var(--orange); padding: 12px; display: flex; gap: 8px; align-items: center; }
.a-side .back svg { width: 16px; height: 16px; }
.a-main { padding: 18px 26px 40px; min-width: 0; }
.a-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.a-search { flex: 1; max-width: 520px; position: relative; }
.a-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 38px; background: #fff; font-size: 14px; }
.a-search svg { position: absolute; left: 11px; top: 10px; width: 19px; height: 19px; color: var(--text-3); }
.a-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.a-user i { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.a-top h1 { margin: 0; font-size: 24px; }
.a-top p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; }
.kpi .k-label { font-size: 13px; color: var(--text-2); }
.kpi .k-val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.kpi .k-sub { font-size: 12.5px; color: var(--text-3); }
.kpi .k-sub.up { color: var(--green); font-weight: 700; }
.kpi .k-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-btn); flex-shrink: 0; }
.kpi .k-ico svg { width: 24px; height: 24px; }
.a-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.panel h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel h2 .link { font-size: 13px; }
.panel + .panel { margin-top: 14px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fcfcfc; }
.tbl .thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.tbl .t-title { font-weight: 600; max-width: 330px; line-height: 1.3; }
.tbl .t-title a:hover { color: var(--orange-hover); }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-ok { background: var(--green-50); color: var(--green); }
.st-warn { background: var(--orange-50); color: #a14600; }
.st-off { background: #eee; color: var(--text-2); }
.st-err { background: var(--red-50); color: var(--red); }
.st-info { background: var(--blue-50); color: var(--blue); }
.chan { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 5px; border-radius: 6px; font-size: 10.5px; font-weight: 800; margin-right: 3px; }
.ch-d42 { background: var(--ink); color: var(--orange); }
.ch-lbc { background: #ec5a13; color: #fff; }
.ch-ebay { background: #fff; border: 1px solid var(--line-2); color: #0064d2; }
.ch-gg { background: #fff; border: 1px solid var(--line-2); color: #188038; }
.ch-off { opacity: .28; filter: grayscale(1); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; background: var(--ink-3); border-radius: 3px 3px 0 0; min-height: 3px; }
.bars div:hover { background: var(--ink); }
.bars div.today { background: var(--orange); }
.bars-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 74px; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 9px; }
.hbar .track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--ink-3); border-radius: 6px; }
.hbar .fill.acc { background: var(--orange); }
.hbar b { text-align: right; }
.arrivals { display: grid; gap: 4px; }
.arrivals a { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.arrivals a:hover { background: var(--surface-2); }
.arrivals img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.arrivals .ar-t { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.arrivals .ar-m { font-size: 12px; color: var(--text-3); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: pp; }
.pp-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; position: relative; transition: border-color .2s, background .2s; }
.pp-step::before { counter-increment: pp; content: counter(pp); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 12px; margin-bottom: 6px; }
.pp-step b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.pp-step.done { border-color: #b6e2c6; background: var(--green-50); }
.pp-step.done::before { background: var(--green); color: #fff; content: "✓"; }
.pp-step.run { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-100); }
.pp-step.run::before { background: var(--orange); color: #fff; }
.pp-step .who { display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.drop { border: 2px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; background: var(--surface-2); cursor: pointer; display: block; }
.drop:hover { border-color: var(--orange); background: var(--orange-50); }
.drop svg { width: 34px; height: 34px; color: var(--orange-btn); margin: 0 auto 6px; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.previews img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-field { position: relative; }
.ai-tag { font-size: 10.5px; font-weight: 800; color: var(--orange-btn); background: var(--orange-50); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
textarea.ta { width: 100%; min-height: 110px; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; resize: vertical; font-size: 15px; }
.src-list { display: grid; gap: 6px; font-size: 13.5px; }
.src-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: var(--surface-2); border-radius: 8px; }
.src-list div.res { background: var(--orange-50); font-weight: 700; }
.toggles { display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--orange-btn); }
.toggle .t-sub { font-size: 12.5px; color: var(--text-2); display: block; }
pre.code { background: #141414; color: #e3e3e3; border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.5; overflow: auto; max-height: 420px; margin: 0; white-space: pre; }
pre.code .k { color: #ffb366; }
.checks { display: grid; gap: 6px; font-size: 13.5px; }
.checks div { display: flex; gap: 8px; align-items: flex-start; }
.checks .ok::before { content: "✓"; color: var(--green); font-weight: 800; width: 12px; }
.checks .ko::before { content: "!"; color: #a14600; font-weight: 800; width: 12px; text-align: center; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--ink); color: #fff; }
.a-mobile-top, .a-tabs { display: none; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

@media (max-width: 1150px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .a-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .a-side { display: none; }
  .a-bar { display: none; }
  .a-main { padding: 0 14px calc(84px + env(safe-area-inset-bottom)); }
  .a-mobile-top { display: flex; align-items: center; justify-content: space-between; background: #111; color: #fff; margin: 0 -14px 14px; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .a-mobile-top img { height: 36px; }
  .a-mobile-top a { font-size: 13px; color: var(--orange); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
  .a-mobile-top a svg { width: 16px; height: 16px; }
  .a-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff; border-top: 1px solid var(--line); overflow-x: auto; padding-bottom: env(safe-area-inset-bottom); scrollbar-width: none; }
  .a-tabs::-webkit-scrollbar { display: none; }
  .a-tabs a { flex: 1 0 auto; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; font-size: 10.5px; font-weight: 600; color: var(--text-2); }
  .a-tabs a svg { width: 22px; height: 22px; }
  .a-tabs a.on { color: var(--orange-btn); }
  .a-top h1 { font-size: 21px; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px; }
  .kpi .k-val { font-size: 22px; }
  .kpi .k-ico { width: 34px; height: 34px; }
  .kpi .k-ico svg { width: 20px; height: 20px; }
  .add-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .hbar { grid-template-columns: 92px 1fr 64px; }
  .tbl .hide-m { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.univers-band .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
.unique, .instock { white-space: nowrap; }
.hv2 span { bottom: auto; top: 8px; }
@media (max-width: 1180px) { .univers-band .rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 720px) { .univers-band .rail { grid-auto-columns: 47%; } }
.paytab .pl.pl-cb { background: linear-gradient(135deg, #0a7a3e, #1a4c9a); color: #fff; height: 26px; }
.paytab .pl.pl-apple { background: #000; color: #fff; height: 26px; padding: 0 8px; }
.paytab .pl.pl-gpay { border: 1px solid var(--line); background: #fff; height: 26px; }
@media (max-width: 720px) {
  .menu-toggle { grid-row: 1; grid-column: 1; }
  .logo { grid-row: 1; grid-column: 2; }
  .m-cart { grid-row: 1; grid-column: 3; }
  .search { grid-row: 2; }
}
.toast { opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .2s; }
.toast.show { opacity: 1; pointer-events: auto; }
@media (max-width: 720px) {
  .cat-tiles { grid-auto-columns: 92px; }
  .cat-tile b { font-size: 11.5px; line-height: 1.25; }
}
.admin { grid-template-columns: 236px minmax(0, 1fr); }
.a-grid > *, .a-main, .panel, .add-grid > *, .cart > *, .product > *, .listing > * { min-width: 0; }
@media (max-width: 820px) { .admin { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .pipeline { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; padding-bottom: 6px; }
}
.toast { width: max-content; max-width: min(560px, calc(100vw - 32px)); }

/* =================== Livraison (point relais / domicile) =================== */
.free-banner { display: flex; gap: 12px; align-items: center; background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.free-banner svg { width: 28px; height: 28px; color: var(--orange-btn); flex-shrink: 0; }
.free-banner b { display: block; font-size: 15px; }
.free-banner span { font-size: 12.5px; color: var(--text-2); }
.free-banner.compact { padding: 10px 12px; }
.free-banner.compact b { font-size: 14px; }
.ship .free-banner { margin: 0; }
.free-progress { margin-top: 12px; font-size: 14px; }
.fp-track { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 6px; overflow: hidden; }
.fp-track i { display: block; height: 100%; background: var(--orange); border-radius: 4px; transition: width .3s; }
.modes { display: grid; gap: 10px; }
.modes .opt { margin: 0; align-items: flex-start; }
.modes .opt .o-main span { display: block; }
.opt.disabled { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.o-free { color: var(--green); font-weight: 800; }
.o-price s { display: block; text-align: right; }
.o-na { color: var(--text-3); font-weight: 600; font-size: 13px; }
.co-h3 { font-size: 16px; margin: 20px 0 10px; }
.co-nav { display: flex; gap: 10px; margin-top: 16px; }
.co-nav .btn-primary { flex: 1; }
.note.err { background: var(--red-50); color: #8f1a12; border: 1px solid #f5c2bd; }
.field.has-err input, .field.has-err select { border-color: var(--red); background: #fffafa; }
.ferr { display: block; color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.relay-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.relay-search { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: end; }
.relay-search .field { margin: 0; }
.relay-search .btn { height: 48px; }
.relay-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 12px; margin-top: 14px; }
.relay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 430px; overflow-y: auto; }
.rl-item { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13.5px; }
.rl-item.focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-100); }
.rl-item.current { background: var(--green-50); border-color: #b6e2c6; }
.rl-item .btn { grid-column: 2; justify-self: start; }
.rl-pin, .map-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.rl-body b { display: block; }
.rl-body span { display: block; }
.rl-body details, .relay-picked details { margin-top: 4px; font-size: 13px; }
.rl-body summary, .relay-picked summary { cursor: pointer; color: var(--orange-hover); font-weight: 600; }
.rl-body ul, .relay-picked ul { margin: 4px 0; padding-left: 18px; color: var(--text-2); }
.relay-map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); min-height: 280px; }
.relay-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; transform: translate(-50%, -100%) rotate(-45deg); border: 2px solid #fff; cursor: pointer; padding: 0; }
.map-pin.focus { background: var(--orange); width: 32px; height: 32px; z-index: 2; }
.map-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(22, 22, 22, .8); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.relay-picked { border: 2px solid var(--green); background: var(--green-50); border-radius: 12px; padding: 12px 14px; display: grid; gap: 3px; font-size: 14px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.rp-k { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.rp-k svg { width: 18px; height: 18px; }
.mr-host { min-height: 120px; }
.recap { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.recap-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.recap-row:last-child { border-bottom: 0; }
.rc-k { display: block; font-weight: 700; margin-bottom: 2px; }
.recap-dest, .sum-dest { display: grid; gap: 1px; font-size: 13.5px; color: var(--text-2); margin: 2px 0 4px; }
.sum-dest { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.sum-dest b { color: var(--ink); }
.sum-hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.sum-row.promo { color: var(--green); }
.promo-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.promo-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.promo-form .rb-row { display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; text-transform: uppercase; }
.note.resa { margin: 0 0 14px; }
.dlv { display: grid; gap: 4px; font-size: 14px; }
.dlv-mode { display: flex; align-items: center; gap: 8px; }
.dlv-mode svg { width: 20px; height: 20px; color: var(--orange-btn); }
.acc-order { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ao-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.steps li a { color: inherit; }
@media (max-width: 720px) {
  .relay-search { grid-template-columns: 1fr 1fr; }
  .relay-search .btn { grid-column: 1 / -1; }
  .relay-results { grid-template-columns: 1fr; }
  .relay-map { order: -1; min-height: 200px; }
  .relay-list { max-height: none; }
  .recap-row { flex-direction: column; gap: 4px; }
  .co-nav { flex-direction: column-reverse; }
}
/* Administration : commandes et réglages livraison */
.o-detail td { background: var(--surface-2) !important; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 6px 2px; }
.od-grid h3 { font-size: 14px; margin: 0 0 8px; }
.od-kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; font-size: 13px; margin: 0 0 10px; }
.od-kv dt { color: var(--text-3); }
.od-kv dd { margin: 0; }
.od-form { display: grid; gap: 8px; max-width: 360px; }
.od-form .field input, .od-form .field select { height: 40px; }
.cfg-tbl input.num { width: 84px; height: 34px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; }
@media (max-width: 820px) { .od-grid { grid-template-columns: 1fr; } }
.rl-pin, .map-pin { border-radius: 50%; }
.map-pin { transform: translate(-50%, -50%); }
.map-pin.focus { box-shadow: 0 0 0 4px var(--orange-100); }
@media (max-width: 720px) {
  .modes .o-ico { display: none; }
  .modes .opt { padding: 12px; gap: 10px; }
  .modes .opt .o-main span { font-size: 12.5px; }
  .free-banner span { font-size: 12px; }
}

/* Bannière d'accueil : principe de vente selon les arrivages */
.nowrap { white-space: nowrap; }
.hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: 44px; line-height: 1.08; margin: 0 0 10px; max-width: 560px; }
.hero-tag { color: var(--orange); font-size: 26px; line-height: 1.2; font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; }
.hero-text { color: #e4e4e4; font-size: 16.5px; line-height: 1.55; max-width: 520px; margin: 0 0 24px; }
@media (max-width: 1180px) {
  .hero h1 { font-size: 40px; }
  .hero-tag { font-size: 23px; }
}
@media (max-width: 720px) {
  .hero .wrap { padding-top: 26px; padding-bottom: 28px; }
  .hero h1 { font-size: 28px; line-height: 1.12; }
  .hero-tag { font-size: 19px; margin-bottom: 10px; }
  .hero-text { font-size: 15px; line-height: 1.5; margin-bottom: 20px; max-width: none; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
  .hero-tag { font-size: 18px; }
  .hero-text { font-size: 14.5px; }
}
@media (max-width: 720px) {
  /* Sur mobile, la bande diagonale passerait derrière le texte : remplacée par un liseré orange */
  .hero::before { display: none; }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); }
}

/* Bannière compacte : les articles apparaissent plus vite */
.hero .wrap { min-height: 0; padding-top: 24px; padding-bottom: 24px; gap: 20px; }
.hero h1 { font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
.hero-tag { font-size: 20px; margin-bottom: 8px; }
.hero-text { font-size: 15px; line-height: 1.5; margin-bottom: 16px; max-width: 520px; }
.hero .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.hero-visual { height: 230px; }
@media (max-width: 1180px) {
  .hero h1 { font-size: 31px; }
  .hero-tag { font-size: 19px; }
}
@media (max-width: 720px) {
  .hero .wrap { padding-top: 16px; padding-bottom: 18px; }
  .hero h1 { font-size: 22px; line-height: 1.15; margin-bottom: 4px; }
  .hero-tag { font-size: 16px; margin-bottom: 6px; }
  .hero-text { font-size: 13.5px; line-height: 1.45; margin-bottom: 12px; }
  .hero .btn { width: auto; min-height: 40px; font-size: 14.5px; padding: 0 16px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 21px; }
  .hero-tag { font-size: 15.5px; }
  .hero-text { font-size: 13px; }
}

/* Accueil : nouveaux arrivages juste sous la bannière */
.first-section { padding-top: 20px; }
.trust-below { margin-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .first-section { padding-top: 14px; }
  .trust-below { margin-top: 18px; }
  /* Bandeau de réassurance compact : une seule ligne défilante */
  .trust ul { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .trust ul::-webkit-scrollbar { display: none; }
  .trust li { flex: 0 0 auto; max-width: 260px; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 11.5px; line-height: 1.3; scroll-snap-align: start; justify-content: flex-start; }
  .trust b { font-size: 12.5px; }
  .trust svg { width: 22px; height: 22px; }
}
/* Mention « Visuels fabricant » */
.vis-tag { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(22, 22, 22, .82); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.vis-note { margin: 0 0 10px; font-size: 12.5px; }
@media (max-width: 720px) { .vis-tag { bottom: 30px; } }

/* Quantité modifiable dans Administration → Produits */
.stk { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.stk .btn-sm { width: 30px; height: 30px; padding: 0; justify-content: center; }
.stk input.num { width: 52px; height: 30px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 4px; text-align: center; font-weight: 600; }

/* Bannière d'accueil réduite, sans photos : texte à gauche, bouton à droite */
.hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.hero .wrap > div { max-width: 760px; }
.hero h1 { font-size: 26px; line-height: 1.15; margin: 0 0 2px; max-width: none; }
.hero-tag { font-size: 16px; margin: 0 0 4px; }
.hero-text { font-size: 13.5px; line-height: 1.45; margin: 0; max-width: 680px; }
.hero .btn { flex-shrink: 0; min-height: 42px; font-size: 14.5px; position: relative; z-index: 1; }
.hero::before { left: 74%; width: 22px; box-shadow: 44px 0 0 -6px rgba(255, 122, 0, .55); }
@media (max-width: 1180px) {
  .hero h1 { font-size: 24px; }
  .hero-tag { font-size: 15px; }
}
@media (max-width: 720px) {
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 14px; }
  .hero h1 { font-size: 19px; }
  .hero-tag { font-size: 14px; margin-bottom: 4px; }
  .hero-text { font-size: 12.5px; }
  .hero .btn { min-height: 38px; font-size: 13.5px; padding: 0 14px; width: auto; }
}

/* Rangées Auto / Moto / Vélo : titre avec icône orange + grille de 4 articles */
.cat-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.band-simple .section-head { align-items: center; }
.band-simple h2 { display: flex; align-items: center; gap: 10px; }
.band-simple .bs-ico { color: var(--orange); display: inline-flex; }
.band-simple .bs-ico svg { width: 30px; height: 30px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .band-simple h2 { font-size: 19px; gap: 8px; }
  .band-simple .bs-ico svg { width: 24px; height: 24px; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
}

/* Bandeau de réassurance : en bas de l'accueil, centré */
.trust-bottom { margin-top: 40px; border-top: 1px solid var(--line); }
.trust-bottom ul { max-width: 1100px; margin: 0 auto; justify-items: center; }
.trust-bottom li { justify-content: center; text-align: left; }
@media (max-width: 720px) { .trust-bottom ul { justify-content: center; flex-wrap: wrap; overflow: visible; } .trust-bottom li { flex: 1 1 calc(50% - 8px); max-width: none; } }
@media (max-width: 720px) { .trust-bottom ul { padding-left: 16px; padding-right: 16px; } }

/* Admin > Produits : miniature photo toujours visible pour reconnaître l'article */
.tbl .thumb { width: 64px; height: 64px; min-width: 64px; max-width: none; object-fit: contain; background: #fff; border: 1px solid var(--line); display: block; }
.tbl td:has(> .thumb) { width: 64px; min-width: 64px; padding-right: 6px; }
@media (max-width: 720px) { .tbl .thumb { width: 56px; height: 56px; min-width: 56px; } .tbl td:has(> .thumb) { width: 56px; min-width: 56px; } }

/* Tuiles catégories illustrées (modèle de Yamin du 18/10/2026) */
.cat-tile-img { padding: 16px 10px 14px; border-radius: 14px; border-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cat-tile-img .ct-img { display: block; width: 100%; max-width: 124px; height: 74px; object-fit: contain; margin: 0 auto 12px; }
.cat-tile-img b { font-size: 14px; }
.cat-tile-img span { display: block; margin-top: 2px; }
@media (max-width: 720px) {
  .cat-tile-img { padding: 12px 6px 10px; }
  .cat-tile-img .ct-img { height: 46px; margin-bottom: 8px; }
  .cat-tile-img b { font-size: 12px; }
  .cat-tile-img span { display: block; font-size: 11px; }
}

/* Bandeau d'accueil légèrement agrandi (demande de Yamin, 18/10/2026) */
.hero .wrap { padding-top: 26px; padding-bottom: 26px; }
.hero h1 { font-size: 31px; margin-bottom: 4px; }
.hero-tag { font-size: 19px; margin-bottom: 6px; }
.hero-text { font-size: 15px; }
.hero .btn { min-height: 46px; font-size: 15.5px; padding: 0 20px; }
@media (max-width: 1100px) { .hero h1 { font-size: 28px; } .hero-tag { font-size: 17.5px; } }
@media (max-width: 720px) {
  .hero .wrap { padding-top: 16px; padding-bottom: 18px; }
  .hero h1 { font-size: 22px; }
  .hero-tag { font-size: 15.5px; }
  .hero-text { font-size: 13.5px; }
  .hero .btn { min-height: 42px; font-size: 14.5px; }
}

/* Bannière d'accueil v2 (demande de Yamin, 18/10/2026) : accroche sur deux lignes, diagonales affinées */
.hero.hero-v2 .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 30px; padding-bottom: 30px; min-height: 0; }
.hero.hero-v2 .wrap > div { max-width: 700px; position: relative; z-index: 1; }
.hero-v2 .hero-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a8a8a8; }
.hero.hero-v2 h1 { font-size: 34px; line-height: 1.16; letter-spacing: -.015em; font-weight: 800; margin: 0 0 12px; max-width: none; }
.hero-v2 h1 .h-l1, .hero-v2 h1 .h-l2 { display: block; }
.hero-v2 h1 .h-l1 { color: #fff; }
.hero-v2 h1 .h-l2 { color: var(--orange); }
.hero.hero-v2 .hero-text { font-size: 15.5px; line-height: 1.55; color: #cfcfcf; margin: 0; max-width: 560px; }
.hero.hero-v2 .btn { flex-shrink: 0; position: relative; z-index: 1; }
.hero.hero-v2::before { display: block; left: 76%; width: 10px; top: -40%; bottom: -40%; box-shadow: 30px 0 0 -3px rgba(255, 122, 0, .45); }
.hero.hero-v2::after { display: none; }
@media (max-width: 1100px) { .hero.hero-v2 h1 { font-size: 30px; } .hero.hero-v2::before { left: 80%; } }
@media (max-width: 720px) {
  .hero.hero-v2 .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 18px; padding-bottom: 20px; }
  .hero-v2 .hero-eyebrow { font-size: 11px; margin-bottom: 8px; }
  .hero.hero-v2 h1 { font-size: 23px; line-height: 1.18; margin-bottom: 8px; }
  .hero.hero-v2 .hero-text { font-size: 13.5px; line-height: 1.5; }
  .hero.hero-v2 .btn { width: auto; min-height: 42px; }
  .hero.hero-v2::before { left: 88%; width: 6px; box-shadow: 18px 0 0 -2px rgba(255, 122, 0, .45); }
}
@media (max-width: 720px) {
  .hero.hero-v2 .wrap > div { max-width: 88%; }
  .hero.hero-v2::before { top: 52%; bottom: -30%; left: 90%; }
}
@media (max-width: 720px) {
  .hero.hero-v2 .wrap > div { max-width: none; }
  .hero.hero-v2 h1 { font-size: 22px; }
  .hero.hero-v2 .hero-text { max-width: 86%; }
}
@media (max-width: 360px) { .hero.hero-v2 h1 { font-size: 20px; } }

/* Liens réservés à l'administrateur connecté */
.adm-only { display: none !important; }
body.is-adm .adm-only { display: inline-flex !important; }
body.is-adm li.adm-only { display: list-item !important; }

/* ===== Comptes clients, connexion et espace client (mise en ligne) ===== */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 340px); gap: 18px; align-items: start; margin-bottom: 40px; }
.auth-card { margin: 0; }
.auth-alt { background: var(--surface-2); }
.auth-alt h2 { margin-top: 0; }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }
.ferr[data-err]:empty { display: none; }
.ferr[data-err] { display: block; margin: 8px 0; }
.co-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; }
.co-who svg { width: 18px; height: 18px; }
.co-who .link { margin-left: auto; }
.saved-addr { display: grid; gap: 8px; margin: 0 0 14px; }
.addr-chip { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 13.5px; cursor: pointer; }
.addr-chip svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.addr-chip.on { border-color: var(--orange); background: var(--orange-50); }
.acc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 40px; }
.acc-tabs { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.acc-tabs a, .acc-out { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.acc-tabs a svg, .acc-out svg { width: 18px; height: 18px; }
.acc-tabs a.on { background: var(--orange-50); font-weight: 600; }
.acc-out { color: var(--text-2); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 12px; }
.acc-order-link { display: block; text-decoration: none; color: inherit; }
.acc-order-link:hover { border-color: var(--orange); }
.addr-line { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.addr-line:last-child { border-bottom: 0; }
.off-line { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
@media (max-width: 860px) {
  .auth-wrap, .acc-layout { grid-template-columns: minmax(0, 1fr); }
  .acc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-out { grid-column: 1 / -1; }
}

/* Pages légales */
.todo { color: var(--orange); font-weight: 600; }
.legal-box { border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 16px; background: var(--surface-2); margin: 10px 0; }
.legal-box p { font-size: 14px; }
