/* =====================================================================
   MISTER DISCOUNT V2 — Feuille de style du site public
   Rouge : actions / promos — Bleu : navigation / réassurance
   ===================================================================== */
:root {
  --red: #E3141B;
  --red-d: #C10F15;
  --blue: #0B3A8C;
  --blue-2: #1F5FC9;
  --ink: #16181D;
  --ink-2: #3D424D;
  --muted: #7A808C;
  --line: #E8EAEE;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --wa: #25D366;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow-h: 0 4px 10px rgba(16, 24, 40, .06), 0 12px 28px rgba(16, 24, 40, .08);
  --container: 1320px;
  --side: 268px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 .75em; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.xs { width: 12px; height: 12px; }
.ic.xl { width: 56px; height: 56px; stroke-width: 1.3; }
.only-mobile { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; transition: background .15s, transform .1s, box-shadow .15s; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #082d6e; }
.btn-white { background: #fff; color: var(--ink); height: 38px; padding: 0 16px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd3da; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb956; }
.btn-wa .ic { width: 20px; height: 20px; }
.btn-lg { height: 50px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.btn.sq { width: 46px; padding: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.icon-btn:hover { background: var(--bg-soft); }
.badge-wrap { position: relative; display: inline-flex; }
.badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff; box-sizing: content-box; }
.icon-btn .badge { top: 3px; right: 1px; }
.pill { font-style: normal; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--red); color: #fff; font-size: 12.5px; }
.topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 36px; gap: 16px; }
.tb-left { display: flex; align-items: center; gap: 8px; }
.tb-left .ic { width: 18px; height: 18px; }
.tb-center { font-weight: 500; text-align: center; }
.tb-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.tb-right a { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.tb-right .ic { width: 17px; height: 17px; }

/* ---------- 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: 32px; height: 84px; }
.logo { display: flex; flex-direction: column; flex: none; line-height: .95; }
.logo img { height: 56px; width: auto; }
.logo-text { font-weight: 800; letter-spacing: -.5px; font-size: 25px; transform: rotate(-2deg); }
.logo-text .l1 { color: var(--red); }
.logo-text .l2 { color: var(--blue); padding-left: 10px; }
.logo-sm.logo-text { font-size: 20px; }
.search { position: relative; flex: 1; max-width: 640px; display: flex; height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s; }
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; background: transparent; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 54px; margin: 3px; border-radius: 6px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.search button:hover { background: var(--red-d); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.account-link { display: flex; align-items: center; gap: 10px; }
.account-link span { display: flex; flex-direction: column; line-height: 1.2; }
.account-link strong { font-size: 13px; font-weight: 500; }
.account-link small { font-size: 12px; color: var(--muted); }
.account-link .ic, .cart-link .ic, .header-actions .icon-btn .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.cart-link { display: flex; align-items: center; gap: 14px; }
.cart-amount { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Autocomplétion */
.ac-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(16, 24, 40, .18); z-index: 60; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.ac-sec { padding: 8px 0; }
.ac-sec + .ac-sec { border-top: 1px solid var(--line); }
.ac-sec h6 { margin: 4px 16px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.ac-item:hover, .ac-item.on { background: var(--bg-soft); }
.ac-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--bg-soft); flex: none; }
.ac-item .ac-n { flex: 1; min-width: 0; font-size: 13.5px; }
.ac-item .ac-n small { display: block; color: var(--muted); font-size: 12px; }
.ac-item .ac-p { font-weight: 600; color: var(--red); white-space: nowrap; font-size: 13px; text-align: right; }
.ac-item .ac-p del { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.ac-cat { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13.5px; }
.ac-cat:hover, .ac-cat.on { background: var(--bg-soft); }
.ac-cat .ic { color: var(--blue); width: 18px; height: 18px; }
.ac-cat small { color: var(--muted); margin-left: auto; }
.ac-all { display: block; padding: 12px 16px; text-align: center; font-weight: 600; color: var(--blue); border-top: 1px solid var(--line); }
.ac-empty { padding: 18px 16px; color: var(--muted); text-align: center; }
.ac-panel mark { background: none; color: var(--red); font-weight: 600; }

/* Barre de navigation */
.nav-bar { border-top: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 52px; }
.cat-trigger { position: relative; width: var(--side); flex: none; align-self: stretch; }
.cat-btn { width: 100%; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--blue); color: #fff; font-weight: 600; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.cat-btn span { flex: 1; text-align: left; }
.cat-dropdown { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: var(--shadow-h); border-radius: 0 0 var(--radius-sm) var(--radius-sm); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 40; }
.cat-trigger:hover .cat-dropdown, .cat-trigger:focus-within .cat-dropdown, .cat-trigger.open .cat-dropdown { opacity: 1; visibility: visible; transform: none; }
.main-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.main-menu a { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 12px; font-size: 13.5px; font-weight: 500; position: relative; white-space: nowrap; }
.main-menu a:hover { color: var(--red); }
.main-menu a.active { color: var(--red); }
.main-menu a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--red); }
.mi-ic { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; color: var(--red); }
.mi-ic .ic { width: 17px; height: 17px; }
.main-menu li:nth-child(3) .mi-ic, .main-menu li:nth-child(4) .mi-ic { color: var(--blue); }
.nav-contacts { display: flex; gap: 24px; }
.nav-contacts a { display: flex; align-items: center; gap: 8px; }
.nav-contacts .ic { color: var(--red); width: 22px; height: 22px; }
.nav-contacts span { display: flex; flex-direction: column; line-height: 1.2; }
.nav-contacts strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nav-contacts small { font-size: 11.5px; color: var(--muted); }

/* Menu catégories */
.cat-menu { list-style: none; margin: 0; padding: 6px 0; }
.cat-menu > li { position: static; }
.cat-menu > li > a { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 16px; height: 34px; font-size: 13px; color: var(--ink-2); }
.cat-menu > li > a:hover, .cat-menu > li:hover > a { color: var(--red); background: #FFF5F5; }
.cm-ic { display: inline-flex; color: var(--ink-2); }
.cm-ic .ic { width: 19px; height: 19px; stroke-width: 1.5; }
.cat-menu > li:hover .cm-ic { color: var(--red); }
.cm-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-chev { color: #b5bac3; }
.cat-flyout { position: absolute; top: 0; left: 100%; min-height: 100%; width: 760px; max-width: calc(100vw - var(--side) - 48px); background: #fff; box-shadow: var(--shadow-h); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; display: none; z-index: 45; }
.cat-menu > li.has-kids:hover > .cat-flyout { display: block; }
.cf-head { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cf-head a { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.cf-head small { font-size: 12.5px; color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.cf-cols { columns: 3 200px; column-gap: 28px; }
.cf-col { break-inside: avoid; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.cf-col a { font-size: 13px; color: var(--ink-2); }
.cf-col a:hover { color: var(--red); }
.cf-col .cf-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.cf-col .cf-more { color: var(--blue); font-size: 12.5px; }

/* ---------- Hero / slider ---------- */
.home-hero { padding-top: 0; }
.hero-grid { display: grid; gap: 16px; }
.hero-grid.with-cats { grid-template-columns: var(--side) 1fr; gap: 28px; }
.hero-cats { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); position: relative; z-index: 30; align-self: start; }
.hero-cats .cat-flyout { min-height: 100%; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 14px; aspect-ratio: 1000 / 350; width: 100%; min-width: 0; background: var(--bg-soft); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 0 40px 0 48px; background: var(--sbg, #FDE8E8); color: var(--stc, var(--ink)); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; overflow: hidden; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-deco { position: absolute; right: -8%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.slide-text { position: relative; z-index: 2; }
.slide-text h2 { font-size: clamp(22px, 3vw, 40px); font-weight: 800; line-height: 1.12; text-transform: uppercase; letter-spacing: -.5px; margin-bottom: 12px; }
.slide-text mark { background: none; color: var(--red); }
.slide-text p { font-size: clamp(14px, 1.4vw, 19px); color: var(--ink-2); margin-bottom: 22px; }
.slide-text .btn { height: 48px; padding: 0 22px; font-size: 16px; }
.slide-img { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 22px 0; }
.slide-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .12)); }
.slide.image-only { display: block; padding: 0; }
.slide.image-only .slide-img { padding: 0; }
.slide.image-only .slide-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; filter: none; }
.sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.slider:hover .sl-arrow { opacity: 1; }
.sl-arrow.prev { left: 14px; } .sl-arrow.next { right: 14px; }
.sl-dots { position: absolute; left: 48px; bottom: 20px; z-index: 3; display: flex; gap: 6px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 5px; background: rgba(0, 0, 0, .18); transition: .25s; }
.sl-dots button.on { width: 26px; background: var(--red); }

/* ---------- Réassurance ---------- */
.reassure { margin-top: 18px; }
.reassure-in { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; }
.is-home .reassure-in { margin-left: calc(var(--side) + 28px); }
.rs-item { display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.rs-item + .rs-item { border-left: 1px solid var(--line); }
.rs-ic { color: var(--blue); display: inline-flex; }
.rs-ic .ic { width: 34px; height: 34px; stroke-width: 1.5; }
.rs-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.rs-item small { color: var(--muted); font-size: 12px; }

/* ---------- Blocs ---------- */
.block { margin-top: 40px; }
.block-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.block-head h2 { font-size: 22px; font-weight: 600; position: relative; }
.block-head .more { margin-left: auto; color: var(--blue); font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.block-head .more:hover { color: var(--red); }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 7px 16px; border-radius: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--red); color: #fff; font-weight: 500; }

/* Défilement horizontal */
.scroller { position: relative; }
.sc-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-h); display: flex; align-items: center; justify-content: center; z-index: 5; transition: opacity .2s; }
.sc-arrow.prev { left: -14px; } .sc-arrow.next { right: -14px; }
.sc-arrow[disabled] { opacity: 0; pointer-events: none; }
.cat-row, .prod-row { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; }
.cat-row::-webkit-scrollbar, .prod-row::-webkit-scrollbar { display: none; }
.cat-row { grid-auto-columns: calc((100% - 6 * 14px) / 7.3); }
.prod-row { grid-auto-columns: calc((100% - 5 * 14px) / 6); }
.cat-row > *, .prod-row > * { scroll-snap-align: start; }
.empty-row { display: block; padding: 32px; text-align: center; color: var(--muted); }

/* Cartes catégories */
.cat-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.cc-img { aspect-ratio: 1 / .95; background: linear-gradient(160deg, #FBF3EA, #F3F4F7); display: flex; align-items: center; justify-content: center; padding: 10px; }
.cat-card:nth-child(4n+2) .cc-img { background: linear-gradient(160deg, #FFF4DF, #F6F1EA); }
.cat-card:nth-child(4n+3) .cc-img { background: linear-gradient(160deg, #EEF1F6, #F6F6F6); }
.cat-card:nth-child(4n) .cc-img { background: linear-gradient(160deg, #FDECEC, #F7F2F2); }
.cc-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cc-name { text-align: center; padding: 10px 8px 12px; font-size: 13px; font-weight: 500; }

/* Bannières */
.banner-grid { display: grid; gap: 16px; }
.banner-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.banner-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.banner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 150px; border-radius: var(--radius); overflow: hidden; background: var(--bbg); color: var(--btc); padding: 22px 0 22px 28px; isolation: isolate; }
.banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 140% at 85% 50%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%); z-index: -1; }
.bn-text h3 { font-size: clamp(18px, 1.9vw, 26px); font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.bn-text p { opacity: .9; margin-bottom: 14px; font-size: 14px; }
.bn-text .btn { color: var(--bbg); }
.bn-img { height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.bn-img img { max-height: 140px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .2)); background: #fff; border-radius: 10px; padding: 6px; }

/* ---------- Carte produit ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow-h); border-color: transparent; }
.pc-img { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 12px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.pcard:hover .pc-img img { transform: scale(1.04); }
.pc-view { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); background: rgba(22, 24, 29, .86); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 999px; opacity: 0; transition: .2s; white-space: nowrap; }
.pcard:hover .pc-view { opacity: 1; transform: translate(-50%, 0); }
.pc-badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; z-index: 2; }
.pc-badge.lg { font-size: 14px; padding: 5px 10px; top: 14px; left: 14px; }
.pc-badge-out { background: #5c6270; }
.pc-fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; color: var(--ink-2); z-index: 2; transition: color .15s, transform .15s; }
.pc-fav .ic { width: 19px; height: 19px; }
.pc-fav:hover { color: var(--red); }
.pc-fav.on { color: var(--red); }
.pc-fav.on .ic { fill: var(--red); }
.pc-fav.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.25); } }
.pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.pc-name { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc-name a:hover { color: var(--red); }
.pc-cat { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.pc-price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pc-price strong { color: var(--blue); font-size: 15px; font-weight: 700; white-space: nowrap; }
.pc-price del { color: var(--muted); font-size: 12px; }
.pcard:has(.pc-badge:not(.pc-badge-out)) .pc-price strong { color: var(--red); }
.pc-cart { width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s; }
.pc-cart:hover { background: var(--red-d); }
.pc-cart .ic { width: 20px; height: 20px; }
.pc-cart.done { background: #16a34a; }
.pcard.is-out .pc-img img { opacity: .55; }
.stars { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.st-bg { position: relative; color: #d9dce1; letter-spacing: 1px; }
.st-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #F5A623; white-space: nowrap; }
.stars small { color: var(--muted); font-size: 11px; }

/* ---------- Fil d'Ariane / listes ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 18px 0 8px; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-current] { color: var(--ink); }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 18px; }
.listing-head h1 { font-size: 26px; font-weight: 700; }
.listing-head .lead { color: var(--ink-2); margin: 6px 0 0; max-width: 720px; }
.listing-head .count { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.cat-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.cat-banner img { width: 100%; max-height: 260px; object-fit: cover; }
.subcats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.subcat { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 500; background: #fff; flex: none; }
.subcat:hover { border-color: var(--red); color: var(--red); }
.sc-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); overflow: hidden; flex: none; }
.sc-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.listing-body { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.f-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-group:first-of-type { padding-top: 0; }
.f-group h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.f-scroll { max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.f-radio, .f-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 5px 0; cursor: pointer; }
.f-radio input, .f-check input { width: 17px; height: 17px; accent-color: var(--red); margin: 0; flex: none; }
.f-check small, .f-link small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.f-link { display: flex; font-size: 13px; padding: 5px 0; color: var(--ink-2); }
.f-link:hover { color: var(--red); }
.f-price { display: flex; align-items: center; gap: 8px; }
.f-price input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; font-size: 13px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.chip:hover { border-color: var(--red); color: var(--red); }
.f-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 14px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 34px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--ink); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 14px; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); font-weight: 600; }
.pagination .dots { border: 0; }
.empty { text-align: center; padding: 56px 16px; max-width: 560px; margin: 0 auto; color: var(--ink-2); }
.empty .ic.xl { color: #c3c7cf; margin: 0 auto 14px; }
.empty h1, .empty h2 { font-size: 21px; margin-bottom: 8px; color: var(--ink); }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.big404 { font-size: 96px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.search-404 { margin: 18px auto 0; max-width: 460px; }

/* Toutes les catégories */
.all-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ac-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.ac-top { display: flex; align-items: center; gap: 14px; }
.ac-top:hover strong { color: var(--red); }
.ac-img { width: 64px; height: 64px; border-radius: 10px; background: var(--bg-soft); flex: none; padding: 4px; }
.ac-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ac-top strong { display: block; font-size: 15px; }
.ac-top small { color: var(--muted); }
.ac-kids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ac-kids a { font-size: 12px; padding: 4px 10px; background: var(--bg-soft); border-radius: 999px; color: var(--ink-2); }
.ac-kids a:hover { color: var(--red); }

/* ---------- Fiche produit ---------- */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin-top: 8px; }
.pp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pp-main { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pp-zoom { aspect-ratio: 1; overflow: hidden; cursor: zoom-in; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pp-zoom img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.pp-zoom.zoomed img { transform: scale(2); }
.pp-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.pp-thumbs button { width: 76px; height: 76px; flex: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 4px; background: #fff; }
.pp-thumbs button.on { border-color: var(--red); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pp-cat { color: var(--blue); font-size: 13px; font-weight: 500; }
.pp-info h1 { font-size: 26px; font-weight: 600; margin: 6px 0 10px; line-height: 1.3; }
.pp-meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.pp-meta strong { color: var(--ink); font-weight: 500; }
.pp-meta .stock { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.pp-meta .stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: #16a34a; } .stock.out { color: var(--red); } .stock.low { color: #d97706; } .stock.back { color: var(--blue-2); }
.pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp-price strong { font-size: 30px; font-weight: 700; color: var(--red); }
.pp-price del { color: var(--muted); font-size: 17px; }
.pp-price .save { background: #FDECEC; color: var(--red); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pp-deadline { display: flex; align-items: center; gap: 6px; color: #d97706; font-size: 13px; margin: 10px 0 0; }
.pp-short { margin-top: 16px; color: var(--ink-2); }
.pp-variants { margin-top: 16px; }
.pp-variants .lbl { font-weight: 600; font-size: 13px; display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; }
.chip-radio input:checked + span { border-color: var(--red); color: var(--red); font-weight: 500; }
.pp-buy { display: flex; gap: 10px; align-items: center; margin: 20px 0 10px; }
.pp-buy .btn-red { flex: 1; }
.qty { display: flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.qty button { width: 40px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-weight: 600; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 40px; }
.qty.sm button { width: 34px; }
.qty.sm input { width: 38px; }
.fav-lg { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); position: static; background: #fff; }
.fav-lg .ic { width: 22px; height: 22px; }
.pp-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.pp-assure > div { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px; font-size: 12px; color: var(--muted); }
.pp-assure .ic { color: var(--blue); width: 24px; height: 24px; }
.pp-assure strong { display: block; color: var(--ink); font-weight: 600; font-size: 12.5px; }
.pp-tabs { margin-top: 44px; }
.pt-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pt-nav button { padding: 12px 18px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pt-nav button.on { color: var(--ink); border-color: var(--red); }
.pt-pane { padding: 22px 0; max-width: 860px; }
.rte { color: var(--ink-2); line-height: 1.7; }
.rte h2, .rte h3, .rte h4 { color: var(--ink); margin: 1.2em 0 .5em; font-size: 17px; }
.rte ul, .rte ol { padding-left: 20px; }
.rte li { margin-bottom: 4px; }
.rte a { color: var(--blue); text-decoration: underline; }
.rte table { border-collapse: collapse; width: 100%; }
.rte td, .rte th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.spec { border-collapse: collapse; width: 100%; max-width: 640px; }
.spec th, .spec td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; }
.spec th { width: 40%; color: var(--muted); font-weight: 500; background: var(--bg-soft); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; gap: 10px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.sticky-buy > div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.sticky-buy strong { color: var(--red); font-size: 17px; }
.sticky-buy del { color: var(--muted); font-size: 12px; }
.sticky-buy .btn { height: 46px; }

/* ---------- Panier ---------- */
.cart-page h1 { font-size: 26px; font-weight: 700; margin: 4px 0 20px; }
.cart-page h1 small { font-size: 15px; color: var(--muted); font-weight: 400; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cart-line { width: 100%; display: grid; grid-template-columns: 84px 1fr auto 110px 44px; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: opacity .2s; }
.cart-line.removing { opacity: 0; }
.cl-img { width: 84px; height: 84px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); padding: 4px; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-name { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-name:hover { color: var(--red); }
.cl-unit { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cl-unit del { font-size: 12px; }
.cl-warn { color: var(--red); font-size: 12px; margin-top: 4px; }
.cl-total { font-weight: 700; text-align: right; white-space: nowrap; }
.cl-del { color: var(--muted); }
.cl-del:hover { color: var(--red); background: #FDECEC; }
.cart-summary { position: sticky; top: 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.cart-summary h2 { font-size: 18px; margin-bottom: 6px; }
.cs-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cs-row.muted span:last-child { color: var(--muted); font-size: 12.5px; text-align: right; }
.cs-row.total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 16px; margin-bottom: 8px; }
.cs-row.total strong { font-size: 22px; color: var(--red); }
.cs-warn { color: #d97706; font-size: 13px; margin: 0; }
.cs-assure { list-style: none; padding: 12px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cs-assure li { display: flex; gap: 8px; align-items: center; }
.cs-assure .ic { color: var(--blue); }

/* ---------- Pages ---------- */
.page-content { padding-bottom: 20px; }
.page-grid { display: grid; gap: 32px; max-width: 880px; }
.page-grid.with-aside { grid-template-columns: 1fr 360px; max-width: none; }
.page-grid h1 { font-size: 28px; font-weight: 700; margin: 6px 0 18px; }
.page-img { border-radius: var(--radius); margin-bottom: 18px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.contact-card h2 { font-size: 18px; }
.contact-card p { display: flex; gap: 12px; margin: 0; font-size: 13.5px; }
.contact-card p .ic { color: var(--red); }
.contact-card strong { display: block; font-weight: 600; }
.text-block { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.text-block.centered { text-align: center; }
.text-block h2 { font-size: 22px; margin-bottom: 10px; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 28px 32px; flex-wrap: wrap; }
.newsletter h2 { font-size: 22px; margin-bottom: 4px; }
.newsletter p { margin: 0; opacity: .85; }
.newsletter form { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.newsletter input { flex: 1; height: 46px; border: 0; border-radius: var(--radius-sm); padding: 0 14px; min-width: 0; }

/* ---------- Pied de page ---------- */
.foot-band { background: var(--blue); color: #fff; margin-top: 56px; }
.fb-in { display: flex; align-items: center; gap: 24px; min-height: 92px; padding-top: 14px; padding-bottom: 14px; }
.fb-item { display: flex; align-items: center; gap: 14px; flex: 1; font-size: 13px; line-height: 1.35; }
.fb-item + .fb-item { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 24px; }
.fb-item strong { display: block; font-weight: 600; font-size: 13.5px; }
.fb-item span { opacity: .85; }
.fb-ic { width: 36px; height: 36px; stroke-width: 1.4; }
.foot-band .btn { height: 46px; flex: none; }
.site-footer { background: #0A1A3A; color: #C9D1E0; font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.site-footer a { display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.foot-about p { margin-top: 14px; line-height: 1.65; }
.logo-foot.logo-text .l1 { color: #fff; } .logo-foot.logo-text .l2 { color: #FF6B70; }
.foot-social { display: flex; gap: 8px; margin-top: 14px; }
.foot-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; padding: 0; }
.foot-social a:hover { background: var(--red); }
.foot-social .ic { width: 18px; height: 18px; }
.foot-contact p { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic { width: 18px; height: 18px; color: #FF6B70; margin-top: 2px; }
.foot-contact a { display: inline; padding: 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 12.5px; color: #8E99B0; }

/* WhatsApp flottant */
.wa-float { position: fixed; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; border-radius: 999px; padding: 0 18px 0 14px; height: 54px; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); font-weight: 600; font-size: 13.5px; transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-right { right: 24px; } .wa-left { left: 24px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13.5px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); animation: toastIn .25s ease; }
.toast a { color: #FF8F93; font-weight: 600; white-space: nowrap; }
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 30, .45); }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: #fff; display: flex; flex-direction: column; animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.drawer-tabs button { padding: 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.drawer-tabs button.on { color: var(--red); border-color: var(--red); }
.drawer-body { overflow-y: auto; flex: 1; padding: 6px 0 24px; }
.dcat { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #f1f2f4; }
.dcat > a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.dc-ic .ic { width: 20px; height: 20px; color: var(--blue); }
.dc-toggle { width: 48px; height: 46px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.dc-toggle.open .ic { transform: rotate(180deg); }
.dc-sub { width: 100%; padding: 0 16px 10px 48px; display: flex; flex-direction: column; }
.dc-sub a { padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.dcat-all { display: flex; align-items: center; gap: 6px; padding: 14px 16px; color: var(--blue); font-weight: 600; }
.dlink { display: block; padding: 13px 16px; border-bottom: 1px solid #f1f2f4; font-weight: 500; }
.drawer-contact { padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.drawer-contact a, .drawer-contact span { display: flex; align-items: center; gap: 8px; }
.drawer-contact .ic { color: var(--red); width: 18px; height: 18px; }

/* Navigation basse mobile */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(5, 1fr); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--ink-2); }
.bottom-nav a .ic { width: 23px; height: 23px; stroke-width: 1.6; }
.bottom-nav a.on { color: var(--red); }
.bottom-nav .badge { top: -5px; right: -9px; }

.mobile-search { display: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1460px) {
  .nav-contacts a:last-child { display: none; }
}
@media (max-width: 1240px) {
  .prod-row { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .grid-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  :root { --side: 240px; }
  .header-main { gap: 20px; }
  .nav-contacts { display: none; }
  .main-menu a { padding: 0 9px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-row { grid-auto-columns: calc((100% - 5 * 14px) / 6.2); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .fb-in { flex-wrap: wrap; }
  .fb-item { flex: 1 1 40%; }
  .fb-item + .fb-item { border-left: 0; padding-left: 0; }
  .foot-band .btn { width: 100%; }
}
@media (max-width: 960px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-flex !important; }
  .bottom-nav.only-mobile { display: grid !important; }
  .sticky-buy.only-mobile { display: flex !important; }
  .f-head.only-mobile { display: flex !important; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.page-produit { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .topbar-in { grid-template-columns: 1fr; height: 32px; justify-items: center; }
  .tb-center, .tb-right { display: none; }
  .header-main { height: 60px; gap: 6px; }
  .header-main > .search { display: none; }
  .logo { margin-right: auto; }
  .logo-text { font-size: 20px; }
  .logo img { height: 42px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn .ic, .account-link .ic, .cart-link .ic { width: 24px; height: 24px; }
  .account-link, .cart-link { width: 44px; height: 44px; justify-content: center; }
  .cart-link .badge { top: -4px; right: -7px; }
  .mobile-search { display: block; padding-bottom: 10px; }
  .mobile-search .search { max-width: none; height: 42px; }
  .mobile-search .search button { width: 46px; }
  .site-header.search-hidden .mobile-search { display: none; }
  .hero-grid.with-cats { grid-template-columns: minmax(0, 1fr); }
  .slider { aspect-ratio: 16 / 9; min-height: 0; margin-top: 8px; }
  .slide { padding: 0 16px 0 22px; grid-template-columns: 1.15fr 1fr; }
  .slide-text h2 { font-size: clamp(17px, 4.6vw, 30px); margin-bottom: 6px; }
  .slide-text p { font-size: 12.5px; margin-bottom: 12px; }
  .slide-text .btn { height: 36px; font-size: 12.5px; padding: 0 12px; }
  .slide-img { padding: 14px 0; }
  .sl-dots { left: 50%; transform: translateX(-50%); bottom: 10px; }
  .sl-arrow { display: none; }
  .is-home .reassure-in { margin-left: 0; }
  .reassure-in { grid-template-columns: repeat(4, 1fr); padding: 12px 0; border: 0; }
  .rs-item { flex-direction: column; text-align: center; gap: 6px; padding: 0 4px; }
  .rs-item + .rs-item { border: 0; }
  .rs-ic .ic { width: 28px; height: 28px; }
  .rs-item strong { font-size: 11.5px; font-weight: 500; }
  .rs-item small { display: none; }
  .block { margin-top: 28px; }
  .block-head { gap: 10px; margin-bottom: 12px; }
  .block-head h2 { font-size: 18px; }
  .block-head .tabs { order: 3; width: 100%; }
  .sc-arrow { display: none; }
  .cat-row { grid-auto-columns: 30%; gap: 10px; }
  .prod-row { grid-auto-columns: 44%; gap: 10px; }
  .banner-grid.cols-2, .banner-grid.cols-3 { grid-template-columns: 1fr; }
  .banner { min-height: 130px; padding-left: 20px; }
  .listing-body { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0; z-index: 95; background: #fff; max-height: none; padding: 0 16px 24px; transform: translateX(-100%); transition: transform .25s; top: 0; }
  .filters.open { transform: none; }
  .f-head { justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: sticky; top: 0; background: #fff; z-index: 2; }
  .toolbar { justify-content: space-between; }
  .grid, .grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pp-info h1 { font-size: 21px; }
  .pp-price strong { font-size: 26px; }
  .pp-assure { grid-template-columns: 1fr; }
  .pp-buy .btn-lg { min-width: 0; padding: 0 12px; font-size: 14px; }
  .pp-buy .qty button { width: 34px; }
  .pp-buy .qty input { width: 36px; }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .page-grid.with-aside { grid-template-columns: 1fr; }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); height: 52px; width: 52px; padding: 0; justify-content: center; }
  .wa-right { right: 14px; } .wa-left { left: 14px; }
  .wa-label { display: none; }
  body.page-produit .wa-float { bottom: calc(146px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .foot-band { margin-top: 36px; }
}
@media (max-width: 640px) {
  .grid, .grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-head h1 { font-size: 21px; }
  .cart-line { grid-template-columns: 72px 1fr auto; grid-template-areas: "img info del" "img qty total"; gap: 8px 12px; }
  .cl-img { grid-area: img; width: 72px; height: 72px; }
  .cl-info { grid-area: info; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cl-total { grid-area: total; }
  .cl-del { grid-area: del; width: 36px; height: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-contact { grid-column: 1 / -1; }
  .fb-item { flex: 1 1 100%; }
  .newsletter { padding: 22px; }
  .newsletter form { flex-direction: column; max-width: none; width: 100%; }
  .slide { grid-template-columns: 1.2fr 1fr; }
  .pc-body { padding: 8px 10px 10px; }
  .pc-cart { width: 34px; height: 34px; }
  .pc-price strong { font-size: 14px; }
}
@media (min-width: 961px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 960px) {
  .hide-mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   COMMANDE / SUIVI
   ===================================================================== */
.checkout-page h1 { font-size: 26px; font-weight: 700; margin: 4px 0 14px; }
.co-steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: st; }
.co-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-right: 14px; }
.co-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.co-steps li.done::before { content: '✓'; background: #DCFCE7; color: #166534; }
.co-steps li.on { color: var(--ink); font-weight: 600; }
.co-steps li.on::before { background: var(--red); color: #fff; }
.co-alert { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px; }
.co-alert ul { margin: 6px 0 0; padding-left: 18px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.co-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: #fff; }
.co-card h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.co-card h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; margin-bottom: 14px; color: var(--ink-2); }
.co-field small { font-weight: 400; color: var(--muted); }
.co-field input, .co-field select, .co-field textarea { height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font-size: 14px; background: #fff; color: var(--ink); font-weight: 400; transition: border-color .15s; width: 100%; }
.co-field textarea { height: auto; padding: 10px 14px; resize: vertical; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { outline: 0; border-color: var(--blue); }
.co-field.has-err input, .co-field.has-err select { border-color: var(--red); }
.f-err { color: var(--red) !important; font-size: 12px; }
.co-hint { color: var(--blue-2) !important; }
.co-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.co-opt { position: relative; cursor: pointer; }
.co-opt input { position: absolute; opacity: 0; }
.co-opt > span { display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; height: 100%; transition: border-color .15s, background .15s; }
.co-opt .ic { grid-row: span 2; color: var(--blue); }
.co-opt strong { font-size: 13.5px; font-weight: 600; }
.co-opt small { font-size: 12px; color: var(--muted); grid-column: 2; }
.co-opt input:checked + span { border-color: var(--red); background: #FFF6F6; }
.co-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(227, 20, 27, .2); }
.co-summary { position: sticky; top: 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.co-summary h2 { font-size: 18px; }
.co-items { list-style: none; margin: 0 0 6px; padding: 0 0 10px; border-bottom: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.co-items li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.ci-img { position: relative; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.ci-img b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink-2); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.ci-n { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-items strong { white-space: nowrap; }
.co-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.co-note .ic { color: var(--blue); flex: none; margin-top: 2px; }
.co-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done-box { max-width: 680px; margin: 30px auto 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; color: #16a34a; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.done-ic .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.done-ref { font-size: 16px; }
.done-ref strong { color: var(--red); font-size: 20px; letter-spacing: .5px; }
.done-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; text-align: left; }
.done-grid > div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; font-size: 13px; }
.done-grid small { color: var(--muted); }
.done-items { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.done-items td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.done-items .r { text-align: right; white-space: nowrap; }
.done-items .tot td { font-weight: 700; font-size: 15px; border: 0; }
.done-items .tot .r { color: var(--red); }
.track-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; max-width: 720px; }
.track-form .co-field { flex: 1; min-width: 200px; margin: 0; }
.track-form .btn { height: 46px; }
.track-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 820px; }
.tc-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.tc-head small { display: block; color: var(--muted); font-size: 12px; }
.tc-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tc-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--muted); position: relative; }
.tc-steps li span { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.tc-steps li:not(:last-child)::after { content: ''; position: absolute; top: 17px; left: 50%; width: 100%; height: 3px; background: var(--line); }
.tc-steps li.done span { background: #16a34a; color: #fff; }
.tc-steps li.done:not(:last-child)::after { background: #16a34a; }
.tc-steps li.on { color: var(--ink); font-weight: 600; }
.tc-steps li.on span { background: var(--red); color: #fff; }
.tc-info { margin: 18px 0 0; background: #EFF6FF; color: #1E40AF; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; }
.tc-cancel { color: var(--red); margin: 0; }
@media (max-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { position: static; }
  .co-row { grid-template-columns: 1fr; gap: 0; }
  .done-grid, .tc-head { grid-template-columns: 1fr; }
  .tc-steps { font-size: 11px; }
  .tc-steps li { font-size: 10.5px; }
}
