/* =====================================================================
   Boutique publique
   Direction : l'étiquette de prix et la fiche technique d'un vendeur d'informatique.
   Bleu nuit pour la structure, bleu boutique (réglable) pour la navigation,
   jaune étiquette réservé aux prix soldés, vert WhatsApp pour commander.
   ===================================================================== */
:root {
  --navy: #14233d;
  --navy-2: #1d3152;
  --ink: #18243a;
  --ink-2: #4a5568;
  --ink-3: #7a8496;
  --bg: #eef1f5;
  --card: #ffffff;
  --line: #dde3ea;
  --line-2: #c9d2dd;
  --yellow: #ffd23f;
  --yellow-2: #ffe27a;
  --red: #d62f2b;
  --green: #15803d;
  --green-2: #116a32;
  --wa: #25d366;
  --brand: #0094ff;
  --brand-dark: #006fbf;
  --brand-soft: #e6f4ff;
  --f-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gap: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; color: var(--navy); margin: 0 0 .5rem; letter-spacing: .005em; }
p { margin: 0 0 .8rem; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); } .small { font-size: .875rem; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.flex-row { display: flex; gap: 10px; flex-wrap: wrap; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i.sm { width: 15px; height: 15px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.15; text-align: center; text-decoration: none !important; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn .i { width: 19px; height: 19px; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--yellow); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-icon { width: 44px; padding: 0; background: #fff; border-color: var(--line-2); color: var(--navy); }
.btn-icon:hover { border-color: var(--navy); background: var(--bg); }
.btn-lg { min-height: 52px; font-size: 1.02rem; padding: 0 22px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.btn-block { width: 100%; white-space: normal; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); }
.icon-btn .i { width: 24px; height: 24px; }

/* ---------- Bandeau du haut et en-tête ---------- */
.util { background: var(--navy); color: #c8d2e0; font-size: .84rem; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.util-msg { margin: 0; color: #fff; font-weight: 500; }
.util-links { display: flex; gap: 18px; }
.util-links a, .util-links span { display: inline-flex; align-items: center; gap: 6px; color: #c8d2e0; }
.util-links .i { width: 15px; height: 15px; }
.util-open { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 700; background: rgba(214, 47, 43, .25); color: #ffb3b0; }
.util-open.is-open { background: rgba(21, 128, 61, .3); color: #86efac; }
.util-links .util-open-long, .util-ticker-hours { display: none; }
.util-links a, .util-links .util-hours { white-space: nowrap; }
.head { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { font-family: var(--f-head); font-weight: 700; font-size: 1.75rem; color: var(--navy); line-height: 1; flex-shrink: 0; max-width: 260px; text-decoration: none !important; }
.brand img { max-height: 50px; width: auto; }
.burger { display: none; margin-left: -8px; }
.search { position: relative; flex: 1; display: flex; max-width: 620px; height: 48px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; }
.search input { border-radius: 8px 0 0 8px; }
.search button { border-radius: 0 7px 7px 0; }
.suggest { position: absolute; top: calc(100% + 6px); left: -2px; right: -2px; z-index: 60; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 35, 61, .2); overflow: hidden; }
.suggest a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.suggest a:hover, .suggest a:focus { background: var(--bg); outline: none; }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #f6f7f9; border-radius: 6px; padding: 3px; }
.suggest span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.suggest b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest small { color: var(--ink-3); font-size: .8rem; }
.suggest strong { font-family: var(--f-head); font-size: 1.1rem; color: var(--navy); white-space: nowrap; }
.suggest strong.is-promo { color: var(--red); }
.suggest .sg-label { display: block; padding: 8px 12px 4px; font-size: .78rem; font-weight: 700; color: var(--ink-3); background: #fafbfc; border-bottom: 1px solid var(--line); }
.suggest a.sg-rayon { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 7px 12px; }
.suggest .sg-rayon .i { width: 20px; height: 20px; color: var(--brand-dark); justify-self: center; }
.suggest .sg-rayon small { font-size: .8rem; }
.suggest .sg-rayon em { font-style: normal; font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.suggest .sg-empty { padding: 12px; color: var(--ink-2); font-size: .92rem; }
.suggest picture { display: contents; }
.suggest .suggest-all { display: block; padding: 10px 12px; font-weight: 700; color: var(--brand-dark); border-bottom: 0; background: #fafbfc; }
.search input { flex: 1; width: 0; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--brand-soft); }
.search button { width: 56px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; }
.search button .i { width: 22px; height: 22px; }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.head-wa { display: flex; align-items: center; gap: 10px; color: var(--navy); padding: 6px 10px; border-radius: 8px; text-decoration: none !important; }
.head-wa:hover { background: var(--bg); }
.head-wa .i { width: 30px; height: 30px; color: var(--green); }
.head-wa span { display: flex; flex-direction: column; line-height: 1.15; }
.head-wa small { font-size: .78rem; color: var(--ink-3); }
.head-wa b { font-size: .95rem; }
.head-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none !important; }
.head-cart:hover { background: var(--navy-2); }
.head-cart .i { width: 23px; height: 23px; }
.head-cart .count[hidden] { display: none; }
.head-cart .count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--yellow); color: var(--navy); font-size: .78rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* Navigation */
.nav { background: var(--brand); }
.nav-row { display: flex; align-items: stretch; gap: 2px; height: 48px; }
.nav-link, .nav-all { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #fff; font-weight: 600; font-size: .96rem; height: 100%; white-space: nowrap; text-decoration: none !important; }
.nav-link:hover, .nav-link.on, .dd:hover > .nav-link { background: rgba(0, 0, 0, .16); }
.nav-all { background: var(--brand-dark); border: 0; margin-right: 6px; padding: 0 18px; }
.nav-all .i { width: 19px; height: 19px; }
.nav-deals { margin-left: auto; color: var(--navy); background: var(--yellow); }
.nav-deals:hover, .nav-deals.on { background: var(--yellow-2) !important; }
.nav-deals .i { width: 17px; height: 17px; }
.dd { position: relative; display: flex; }
.dd-menu, .mega { display: none; position: absolute; top: 100%; left: 0; z-index: 50; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px rgba(20, 35, 61, .18); }
.dd:hover > .dd-menu, .dd:focus-within > .dd-menu, .dd:hover > .mega, .dd:focus-within > .mega, .dd.open > .mega { display: block; }
.dd-menu { min-width: 230px; padding: 8px 0; }
.dd-menu a { display: block; padding: 9px 18px; color: var(--ink); font-weight: 500; }
.dd-menu a:hover { background: var(--bg); text-decoration: none; }
.dd-menu .dd-all-link { margin-top: 6px; border-top: 1px solid var(--line); font-weight: 700; color: var(--brand-dark); }
.mega { width: min(940px, 92vw); padding: 22px 26px; display: none; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
.dd:hover > .mega, .dd:focus-within > .mega, .dd.open > .mega { display: grid; }
.mega-col a { display: block; padding: 3px 0; color: var(--ink-2); }
.mega-col .mega-title { font-family: var(--f-head); font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }

/* Menu mobile */
.drawer { display: none; }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { display: flex; position: fixed; inset: 0; z-index: 100; }
.drawer-panel { width: min(340px, 88vw); background: #fff; overflow-y: auto; padding: 0 0 20px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-head); font-size: 1.3rem; color: var(--navy); }
.drawer-panel > a { display: flex; align-items: center; gap: 8px; padding: 12px 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-panel a.drawer-main { font-weight: 700; }
.drawer-panel a.drawer-sub { padding-left: 34px; color: var(--ink-2); font-size: .95rem; }
.drawer-panel .btn { margin: 16px 18px 0; width: calc(100% - 36px); }
.drawer-bg { flex: 1; background: rgba(20, 35, 61, .5); }

/* ---------- Bloc d'accueil ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); gap: var(--gap); margin-top: 20px; }
.slider { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy); min-height: 340px; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 340px; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slide-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; min-height: 340px; padding: 36px 44px; max-width: 58%; color: #fff; }
.slide-text::before { content: ""; position: absolute; inset: 0 -40% 0 0; background: linear-gradient(90deg, rgba(10, 20, 38, .72), rgba(10, 20, 38, 0)); z-index: -1; }
.slide-text h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.02; margin-bottom: 12px; }
.slide-text p { color: #dbe4f0; font-size: 1.08rem; max-width: 420px; margin-bottom: 20px; }
.slide-nav { position: absolute; bottom: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; }
.slide-nav:hover { background: var(--yellow); }
.slide-nav.prev { right: 60px; } .slide-nav.next { right: 14px; }
.dots { position: absolute; left: 44px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .5); transition: width .2s; }
.dots button.on { width: 28px; background: var(--yellow); }
.hero-plain { border-radius: 16px; background: var(--navy); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 340px; }
.hero-plain h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.7rem); max-width: 560px; }
.hero-plain p { color: #c8d2e0; max-width: 480px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.side-tile { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 26px; border-radius: 16px; text-decoration: none !important; }
.side-tile strong { font-family: var(--f-head); font-size: 2.3rem; line-height: 1; }
.side-tile > span:not(.side-kicker):not(.side-cta) { font-size: .95rem; max-width: 280px; }
.side-kicker { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.side-kicker .i { width: 17px; height: 17px; }
.side-cta { margin-top: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.side-deals { background: var(--yellow); color: var(--navy); }
.side-deals:hover { background: var(--yellow-2); }
.side-pro { background: var(--navy); color: #fff; }
.side-pro:hover { background: var(--navy-2); }
.side-pro > span:not(.side-kicker):not(.side-cta) { color: #c8d2e0; }

/* ---------- Sections ---------- */
.block { margin-top: 40px; }
.block-head { display: flex; align-items: flex-end; gap: 6px 20px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.block-head h2 { font-size: 1.85rem; margin: 0 0 -2px; padding-bottom: 8px; border-bottom: 3px solid var(--navy); }
.block-sub { margin: 0 0 10px; color: var(--ink-2); }
.see-all { margin: 0 0 10px auto; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.subs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.subs a { padding: 4px 11px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.subs a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.subs-lg { margin-top: 12px; }
.subs-lg a { padding: 7px 14px; font-size: .95rem; }

/* Rayons */
.scroller-track.rail-track { grid-auto-columns: calc((100% - 5 * 14px) / 6); }
/* Petites flèches dans l'en-tête des rangées défilantes */
.sc-mini-group { display: inline-flex; gap: 6px; margin: 0 0 8px; }
.block-head .see-all + .sc-mini-group { margin-left: 4px; }
.block-head h2 + .sc-mini-group { margin-left: auto; }
.sc-mini { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); }
.sc-mini .i { width: 18px; height: 18px; stroke-width: 2.2; }
.sc-mini:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.sc-mini[disabled] { opacity: .35; pointer-events: none; }
[data-scroller].fits .sc-mini-group { display: none; }
/* Sous-rayons : à la suite des rayons, groupés par rayon */
.subs-rail { margin-top: 18px; }
.subs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.subs-head h3 { font-size: 1.3rem; margin: 0; }
.subs-head .sc-mini-group { margin: 0 0 0 auto; }
.scroller-track.sub-track { grid-auto-columns: 250px; gap: 10px; }
.rail-item, .sub-item { scroll-snap-align: start; }
.sub-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 10px 32px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.sub-item:hover { border-color: var(--navy); }
.sub-item.is-first:not(:first-child) { margin-left: 14px; }
.sub-item.is-first:not(:first-child)::before { content: ""; position: absolute; left: -13px; top: 18%; bottom: 18%; border-left: 2px solid var(--line-2); }
.sub-img { flex-shrink: 0; width: 58px; height: 58px; border-radius: 8px; background: #f6f7f9; padding: 6px; overflow: hidden; }
.sub-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sub-img.is-cover { padding: 0; } .sub-img.is-cover img { object-fit: cover; mix-blend-mode: normal; }
.sub-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sub-txt small { font-size: .74rem; font-weight: 700; color: var(--brand-dark); }
.sub-txt b { font-family: var(--f-head); font-size: 1.08rem; line-height: 1.12; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-txt span { font-size: .78rem; color: var(--ink-3); }
.sub-go { position: absolute; right: 10px; top: 50%; margin-top: -9px; width: 18px !important; height: 18px !important; color: var(--ink-3); }
.sub-item:hover .sub-go { color: var(--navy); }
.rail-item { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none !important; }
.rail-img { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow: hidden; transition: border-color .15s; }
.rail-img img { width: 100%; height: 100%; object-fit: contain; }
.rail-img.is-cover { padding: 0; }
.rail-img.is-cover img { object-fit: cover; }
.rail-item:hover .rail-img { border-color: var(--navy); }
.rail-name { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; line-height: 1.1; margin-top: 8px; color: var(--navy); }
.rail-nb { font-size: .82rem; color: var(--ink-3); }

/* ---------- Grilles et cartes produit ---------- */
.grid-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.grid-products.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-products.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 940px) { .grid-products, .grid-products.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-products, .grid-products.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 100%; transition: border-color .15s; }
.card:hover { border-color: var(--line-2); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: #f6f7f9; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.flag { position: absolute; font-size: .78rem; font-weight: 700; line-height: 1; padding: 6px 8px; border-radius: 6px; }
.flag-off { top: 10px; left: 10px; background: var(--red); color: #fff; font-size: .9rem; }
.flag-new { top: 10px; left: 10px; background: var(--navy); color: #fff; }
.flag-etat { bottom: 10px; left: 10px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.card-brand { margin: 0 0 2px; font-size: .82rem; font-weight: 700; color: var(--brand-dark); }
.card-name { font-family: var(--f-body); font-size: .97rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-name a { color: inherit; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0; }
.chips li { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--bg); border-radius: 5px; padding: 3px 7px; line-height: 1.2; }
.card-price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { white-space: nowrap; font-family: var(--f-head); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--navy); }
.price small, .tag-price small { font-size: .62em; font-weight: 600; }
.card-price s, .was s { color: var(--ink-3); font-size: .88rem; }
/* L'étiquette jaune : réservée aux prix soldés */
.tag-price { position: relative; display: inline-block; white-space: nowrap; font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--navy); background: var(--yellow); padding: 6px 10px 5px 18px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); border-radius: 0 4px 4px 0; }
.tag-price::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
.card-stock { margin: 8px 0 12px; font-size: .84rem; font-weight: 600; line-height: 1.35; }
.card-stock::before { content: ""; display: inline-block; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.card-stock.is-in { color: var(--green); } .card-stock.is-in::before { background: var(--green); }
.card-stock.is-out { color: #a15c00; } .card-stock.is-out::before { background: #e08a00; }
.card-stock.is-low { color: #c2410c; } .card-stock.is-low::before { background: #ea580c; }
.card-stock.is-soon { color: var(--brand-dark); } .card-stock.is-soon::before { background: var(--brand); }
.card-stock span { color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.card-actions { display: flex; gap: 6px; }
.card-actions form { flex: 1; min-width: 0; }
.card-actions .btn-wa { padding: 0 10px; }
@media (max-width: 480px) {
  .card-body { padding: 10px; }
  .card-name { font-size: .9rem; }
  .price, .tag-price { font-size: 1.3rem; }
  .chips li:nth-child(n+3) { display: none; }
  .card-actions .btn { min-height: 40px; font-size: .86rem; }
  .card-actions .btn-wa { gap: 5px; padding: 0 6px; }
  .card-actions .btn-wa .i { width: 16px; height: 16px; }
  .card-actions .btn-icon { width: 40px; }
  .card-stock span { display: block; margin-left: 0; }
  .toolbar .count { flex: 1 1 100%; order: -1; margin-bottom: -2px; }
  .sort select { max-width: 160px; }
  .panel .btn, .help-band .btn, .hero-plain .btn, .no-results .btn, .cart-empty .btn, .empty-shop .btn { white-space: normal; height: auto; padding-top: 11px; padding-bottom: 11px; }
  .panel { padding: 18px 16px; }
  .wrap { padding: 0 12px; }

  .pdp-info h1 { font-size: 1.6rem; }
  .price-lg { font-size: 2rem; }
  .tag-price-lg { font-size: 1.8rem; }
  .qty { height: 48px; }
  .sticky-buy .sb-price { font-size: 1.3rem; }
}

/* Défilement horizontal */
.scroller { position: relative; }
.scroller-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-item { scroll-snap-align: start; }
.sc-btn { position: absolute; top: 36%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(20, 35, 61, .16); }
.sc-btn:hover { border-color: var(--navy); }
.sc-btn[disabled] { opacity: 0; pointer-events: none; }
.sc-prev { left: -14px; } .sc-next { right: -14px; }
@media (max-width: 1180px) { .scroller-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); } .scroller-track.rail-track { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }
@media (max-width: 940px) { .scroller-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); } .scroller-track.rail-track { grid-auto-columns: calc((100% - 3 * 14px) / 4.3); } }
@media (max-width: 700px) { .scroller-track { grid-auto-columns: 58%; gap: 10px; } .sc-btn { display: none; } }

/* Bonnes affaires : la bande jaune */
.deals { background: var(--yellow); margin-top: 44px; padding: 26px 0 30px; }
.deals .block-head { border-bottom-color: rgba(20, 35, 61, .2); }
.deals .block-sub { color: var(--navy); font-weight: 500; }
.deals .see-all { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.deals .tag-price { background: var(--navy); color: var(--yellow); }
.deals .tag-price::before { background: var(--yellow); }

/* Marques */
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-row a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); text-decoration: none; }
.brand-row a:hover { border-color: var(--navy); }
.brand-row b { font-family: var(--f-head); font-size: 1.35rem; }
.brand-row span { color: var(--ink-3); font-size: .85rem; }

/* Livraison ou retrait : choix dans les formulaires de commande */
.recv { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.recv legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.recv-opt { display: block; cursor: pointer; }
.recv-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.recv-box { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, background-color .15s; }
.recv-box .i { width: 24px; height: 24px; color: var(--ink-3); margin-top: 1px; }
.recv-box b { display: block; color: var(--navy); line-height: 1.25; }
.recv-box small { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.recv-opt:hover .recv-box { border-color: var(--navy); }
.recv-opt input:checked + .recv-box { border-color: var(--navy); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.recv-opt input:checked + .recv-box .i { color: var(--navy); }
.recv-opt input:focus-visible + .recv-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.cart-summary .recv { margin-top: 4px; }

/* Livraison ou retrait : bande de l'accueil */
.recv-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recv-card { position: relative; padding: 24px 26px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.recv-card h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.recv-card p { color: var(--ink-2); margin-bottom: 10px; }
.recv-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--navy); }
.recv-ico .i { width: 26px; height: 26px; }
.recv-pay { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--navy) !important; }
.recv-pay .i { width: 19px; height: 19px; margin-top: 2px; }
.recv-list { list-style: none; margin: 0 0 10px; padding: 0; }
.recv-list li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-weight: 600; }
.recv-list .i { width: 18px; height: 18px; margin-top: 3px; color: var(--yellow); }
.recv-shop { background: var(--navy); border-color: var(--navy); color: #fff; }
.recv-shop h3, .recv-shop .recv-pay { color: #fff !important; }
.recv-shop p { color: #c8d2e0; }
.recv-shop .recv-ico { background: rgba(255, 255, 255, .1); color: var(--yellow); }
.recv-shop .flex-row { margin-top: 14px; }
@media (max-width: 860px) { .recv-band { grid-template-columns: minmax(0, 1fr); gap: 10px; } .recv-card { padding: 18px; } .recv-card h3 { font-size: 1.35rem; } }

/* Comment commander */
.how { margin-top: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.steps .n { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--yellow); font-family: var(--f-head); font-size: 1.3rem; font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; font-family: var(--f-head); font-size: 1.25rem; color: var(--navy); margin-bottom: 2px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; } .steps li { padding: 14px 16px; } .how { margin-top: 32px; } }

/* Bandeau d'aide */
.help-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 44px 0 0; padding: 30px 36px; background: var(--navy); color: #fff; border-radius: 16px; }
.help-band h2 { color: #fff; font-size: 2rem; }
.help-band p { color: #c8d2e0; max-width: 600px; margin: 0; }
.empty-shop { background: #fff; border-radius: 16px; padding: 40px; }

/* Vus récemment */
.recent { margin-top: 44px; }
.recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-item { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.recent-item:hover { border-color: var(--navy); }
.recent-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f7f9; border-radius: 6px; padding: 8px; mix-blend-mode: multiply; }
.recent-item .rn { font-size: .85rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-item .rp { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.recent-item .rp.is-promo { color: var(--red); }

/* Barre d'onglets du téléphone (cachée sur ordinateur) */
.tabbar { display: none; }

/* Engagements */
.assurances { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; }
.assurances-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.assurance { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; border-left: 1px solid var(--line); }
.assurance:first-child { border-left: 0; padding-left: 0; }
.assurance .i { width: 30px; height: 30px; color: var(--navy); stroke-width: 1.6; }
.assurance strong { display: block; font-family: var(--f-head); font-size: 1.2rem; color: var(--navy); }
.assurance span { font-size: .9rem; color: var(--ink-2); }

/* Pied de page */
.foot { background: var(--navy); color: #c8d2e0; padding: 40px 0 0; font-size: .95rem; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 36px; }
.foot a { color: #fff; }
.foot-cols > div > a:not(.btn) { display: block; padding: 3px 0; color: #c8d2e0; }
.foot-cols > div > a:not(.btn):hover { color: #fff; }
.foot-brand { font-family: var(--f-head); font-size: 1.7rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.foot-h { font-family: var(--f-head); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.foot-list { list-style: none; margin: 0 0 14px; padding: 0; }
.foot-list li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.foot-list .i { width: 17px; height: 17px; margin-top: 3px; color: var(--yellow); }
.pay { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.pay li { border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 4px 9px; font-size: .82rem; font-weight: 600; color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 34px; padding: 16px 20px 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: #8e9bb0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.wa-float .i { width: 32px; height: 32px; }
.to-top { position: fixed; right: 22px; bottom: 90px; z-index: 44; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(20, 35, 61, .18); transition: opacity .2s, transform .2s; }
.to-top[hidden] { display: grid; opacity: 0; transform: translateY(10px); pointer-events: none; }
.to-top:hover { border-color: var(--navy); }
.to-top .i { width: 22px; height: 22px; }

/* ---------- Catalogue ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 18px 0 6px; font-size: .88rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs > *:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs span { color: var(--ink-3); }
.list-head { padding: 6px 0 4px; }
.list-head h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 4px; }
.list-head p { color: var(--ink-2); max-width: 680px; margin: 0; }
.list-head-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.list-head-txt { min-width: 0; flex: 1 1 360px; }
.list-search { position: relative; flex: 0 1 360px; min-width: 0; display: flex; align-items: center; height: 46px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 4px; transition: border-color .15s, box-shadow .15s; }
.list-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--brand-soft); }
.list-search > .i { position: absolute; left: 13px; width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; }
.list-search input[type=search] { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 40px 0 40px; font: inherit; color: var(--ink); border-radius: 10px; }
.list-search input[type=search]:focus { outline: none; }
.ls-spin { position: absolute; right: 14px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--navy); opacity: 0; pointer-events: none; }
.is-loading .ls-spin, .list-search.is-loading .ls-spin { opacity: 1; animation: ls-spin .7s linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }
.listing .results { transition: opacity .15s; }
.listing.is-loading .results { opacity: .5; pointer-events: none; }
mark.hl { background: #fff1b8; color: inherit; border-radius: 2px; padding: 0 1px; }
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 20px; position: sticky; top: 140px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-family: var(--f-head); font-size: 1.3rem; color: var(--navy); }
.filters-close { display: none; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 10px; }
.filters legend { font-weight: 700; padding: 0 0 6px; color: var(--navy); }
.opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: .95rem; }
.opt input { width: 17px; height: 17px; accent-color: var(--navy); margin: 0; }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--ink-3); font-size: .85rem; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.price-range input, .sort select { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font: inherit; background: #fff; color: var(--ink); }
.filters .btn { margin-top: 10px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { margin: 0; color: var(--ink-2); }
.toolbar .count b { color: var(--navy); }
.filters-open { display: none; }
.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort label { font-size: .9rem; color: var(--ink-3); white-space: nowrap; }
.sort select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; }
.active-filters a.clear { background: transparent; color: var(--brand-dark); text-decoration: underline; }
.no-results { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.empty-cat { display: flex; gap: 24px; align-items: center; }
.empty-cat-img { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
@media (max-width: 700px) { .empty-cat { flex-direction: column; align-items: flex-start; padding: 20px; } .empty-cat-img { width: 100%; height: 180px; } }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Fiche produit ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; margin-top: 10px; align-items: start; }
.pdp-main { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pdp-thumbs button { width: 74px; height: 74px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pdp-thumbs button.on { border: 2px solid var(--navy); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 6px; font-size: .9rem; color: var(--ink-3); }
.pdp-meta a { font-weight: 700; }
.share { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; }
.share:hover { border-color: var(--navy); color: var(--navy); }
.pdp-info h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; margin-bottom: 14px; }
.chips-lg li { font-size: .88rem; padding: 5px 10px; background: #fff; border: 1px solid var(--line); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 18px; }
.buybox-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.price-lg { font-size: 2.6rem; }
.tag-price-lg { font-size: 2.4rem; padding: 8px 14px 6px 24px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.tag-price-lg::before { left: 9px; width: 7px; height: 7px; margin-top: -3.5px; }
.was { color: var(--ink-3); font-size: .95rem; }
.save { flex-basis: 100%; color: var(--red); font-weight: 700; font-size: .95rem; }
.facts { list-style: none; margin: 14px 0; padding: 0; }
.facts li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--ink-2); }
.facts .i { width: 20px; height: 20px; color: var(--navy); margin-top: 1px; }
.facts li.ok { color: var(--green); font-weight: 600; } .facts li.ok .i { color: var(--green); }
.facts li.wait { color: #a15c00; font-weight: 600; } .facts li.wait .i { color: #a15c00; }
.order-row { display: flex; gap: 10px; margin-bottom: 10px; }
.order-row .btn-wa { flex: 1; }
.qty { display: inline-flex; align-items: stretch; height: 52px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 40px; border: 0; background: var(--bg); color: var(--navy); display: grid; place-items: center; }
.qty input { width: 46px; border: 0; text-align: center; font: inherit; font-weight: 700; color: var(--navy); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-note { margin: 12px 0 0; font-size: .88rem; color: var(--ink-3); }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; margin-top: 40px; }
.pdp-details h2 { font-size: 1.7rem; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; background: #f7f8fa; color: var(--ink-2); font-weight: 600; }
.sticky-buy { display: none; }

/* ---------- Panier, contact, pages ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel h2 { font-size: 1.6rem; }
.panel-dark { background: var(--navy); border-color: var(--navy); color: #c8d2e0; }
.panel-dark h2 { color: #fff; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 18px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); margin-top: 18px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto 40px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 76px; height: 76px; object-fit: contain; background: #f6f7f9; border-radius: 8px; padding: 6px; }
.cart-line .name { font-weight: 600; color: var(--ink); display: block; line-height: 1.3; }
.cart-line .unit { font-size: .88rem; color: var(--ink-3); }
.cart-line .unit.out { color: #a15c00; }
.cart-line .qty { height: 40px; }
.cart-line .qty button { width: 34px; }
.cart-line .qty input { width: 40px; }
.cart-line .line-total { font-family: var(--f-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-line .rm { color: var(--ink-3); }
.cart-empty { text-align: center; padding: 28px 10px; }
.cart-summary { position: sticky; top: 140px; display: grid; gap: 10px; }
.cart-summary h2 { margin: 0; }
.sum-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.sum-total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--navy); font-size: 1.1rem; }
.sum-total b { font-family: var(--f-head); font-size: 1.8rem; }
.prose { max-width: 760px; margin-top: 10px; }
.prose h1 { font-size: 2.4rem; }
.prose h2 { font-size: 1.5rem; margin-top: 22px; }
.error-page { max-width: 640px; margin: 40px auto 0; }
.error-code { font-family: var(--f-head); font-size: 4.5rem; font-weight: 700; color: var(--brand); line-height: 1; margin: 0; }

/* ---------- Messages ---------- */
.alert { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; border: 1px solid; }
.alert-success { background: #e7f6ec; border-color: #b9e3c7; color: #0f5c2c; }
.alert-error { background: #fdecec; border-color: #f4c4c2; color: #9b1c18; }
.alert-info { background: var(--brand-soft); border-color: var(--line-2); color: var(--navy); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--yellow); }

/* ---------- Tablette et téléphone ---------- */
.hide-md { }
@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .head-wa span { display: none; }
  .mega { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; }
  body.filters-shown { overflow: hidden; }
  body.filters-shown .filters { display: block; position: fixed; inset: 0 0 0 auto; z-index: 110; width: min(360px, 92vw); border-radius: 0; overflow-y: auto; top: 0; box-shadow: -10px 0 40px rgba(0, 0, 0, .25); }
  .filters-close { display: inline-grid; }
  .filters-open { display: inline-flex; }
  .pdp, .pdp-details { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .assurances-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assurance { border-left: 0; padding-left: 0; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cart-layout, .two-col { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
}
@media (max-width: 860px) {
  /* Téléphone : l'annonce défile sur une ligne, téléphone et horaires sur la suivante */
  .util .wrap { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 5px; padding-bottom: 6px; }
  .util-msg { overflow: hidden; white-space: nowrap; font-size: .78rem; line-height: 1.5; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .util-ticker { display: inline-block; padding-left: 100%; animation: util-ticker 16s linear infinite; }
  .util-ticker::after { content: " · "; padding: 0 12px; }
  .util-ticker-hours { display: inline; }
  @keyframes util-ticker { to { transform: translateX(-100%); } }
  @media (prefers-reduced-motion: reduce) { .util-msg { white-space: normal; text-align: center; mask-image: none; -webkit-mask-image: none; } .util-ticker { padding-left: 0; animation: none; } }
  .util-links { justify-content: center; gap: 10px; flex-wrap: nowrap; font-size: .76rem; margin-top: 1px; white-space: nowrap; overflow: hidden; }
  .util-links a { font-weight: 700; color: #fff; flex-shrink: 0; }
  .util-links .util-hours { min-width: 0; }
  .util-links .util-hours > span { overflow: hidden; text-overflow: ellipsis; }
  .util-links .i { width: 13px; height: 13px; }
  .util-open { padding: 0 7px; font-size: .7rem; flex-shrink: 0; margin-left: 0; }
  .util-links .util-hours-full, .util-links .util-open-short { display: none !important; }
  .util-links .util-open-long { display: inline !important; }
  .burger { display: inline-grid; }
  .nav { display: none; }
  .head-row { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 1.45rem; flex: 1; }
  .brand img { max-height: 38px; }
  .search { order: 5; flex-basis: 100%; max-width: none; height: 46px; }
  .head-wa { display: none; }
  .head-cart { height: 42px; padding: 0 12px; }
  .hide-sm { display: none !important; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(20, 35, 61, .08); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .7rem; font-weight: 600; text-decoration: none !important; }
  .tabbar .i { width: 23px; height: 23px; }
  .tabbar .on { color: var(--brand-dark); }
  .tabbar .on::after { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .tabbar .tab-wa { color: var(--green); }
  .tabbar .count { position: absolute; top: 6px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yellow); color: var(--navy); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
  .tabbar .count[hidden] { display: none; }
  .wa-float { display: none; }
  .to-top { right: 12px; bottom: 76px; width: 42px; height: 42px; }
  body { padding-bottom: 66px; }
  .toast { bottom: 76px; }
  .page-product .tabbar { display: none; }
  .suggest a { gap: 10px; padding: 8px 10px; }
  .suggest strong { font-size: 1rem; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 14px; }
  .hero-grid { margin-top: 12px; gap: 10px; }
  .slider, .slide, .slide-text { min-height: 300px; }
  .slide img { object-position: 82% 30%; }
  .slide-text { max-width: none; justify-content: flex-end; padding: 22px 20px 44px; }
  .slide-text::before { inset: 0; background: linear-gradient(0deg, rgba(10, 20, 38, .88) 0%, rgba(10, 20, 38, .45) 55%, rgba(10, 20, 38, 0) 85%); }
  .slide-text h2 { font-size: 1.9rem; }
  .slide-text p { font-size: .95rem; margin-bottom: 14px; }
  .slide-nav { display: none; }
  .dots { left: 20px; bottom: 16px; }
  .hero-side { gap: 10px; }
  .side-tile { padding: 16px; border-radius: 12px; }
  .side-tile strong { font-size: 1.45rem; }
  .side-tile > span:not(.side-kicker):not(.side-cta) { font-size: .85rem; }
  .block { margin-top: 30px; }
  .block-head h2 { font-size: 1.55rem; }
  .block-head .subs { display: none; }
  .scroller-track.rail-track { grid-auto-columns: 112px; gap: 10px; }
  .scroller-track.sub-track { grid-auto-columns: 200px; }
  .rayons .block-head .sc-mini-group { margin-left: auto; }
  .sub-item { gap: 10px; min-height: 74px; padding: 8px 26px 8px 8px; }
  .sub-img { width: 48px; height: 48px; padding: 4px; }
  .sub-txt b { font-size: 1rem; }
  .sub-go { right: 6px; }
  .scroller-track.rail-track, .scroller-track.sub-track { margin-right: -14px; padding-right: 14px; scroll-padding-left: 0; }
  .sc-mini { width: 32px; height: 32px; }
  .rayons .block-head .see-all { display: none; }
  .subs-rail { margin-top: 14px; }
  .rail-img { padding: 12px; }
  .rail-name { font-size: 1.08rem; }
  .help-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .help-band h2 { font-size: 1.6rem; }
  .assurances-row { grid-template-columns: 1fr; }
  .assurance { padding: 14px 0; border-top: 1px solid var(--line); }
  .assurance:first-child { border-top: 0; }
  .foot-cols { grid-template-columns: 1fr; gap: 24px; }
  .toolbar { gap: 8px; }
  .toolbar .count { font-size: .92rem; }
  .sort label { display: none; }
  .sort select { max-width: 150px; height: 44px; }
  .list-head h1 { font-size: 1.7rem; }
  .list-search { flex: 1 1 100%; height: 48px; }
  .brand { font-size: 1.3rem; }
  .cart-summary .btn-lg { min-height: 50px; }
  .recent { margin-top: 32px; }
  .recent-row { grid-auto-columns: 124px; margin-right: -14px; padding-right: 14px; }
  .pdp-meta .share { margin-left: 0; }
  .pdp-main img { padding: 18px; }
  .buybox { padding: 16px; }
  .price-lg { font-size: 2.2rem; }
  .tag-price-lg { font-size: 2rem; }
  .order-row { flex-wrap: wrap; }
  .order-row .btn-wa { flex-basis: 100%; order: -1; }
  .buybox .btn-outline { white-space: normal; }
  .page-product .foot { padding-bottom: 0; }
  body.page-product { padding-bottom: 76px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty total"; row-gap: 8px; column-gap: 10px; }
  .cart-line .line-total { font-size: 1.15rem; }
  .cart-line img { grid-area: img; width: 64px; height: 64px; }
  .cart-line .info { grid-area: info; } .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line .line-total { grid-area: total; justify-self: end; } .cart-line .rm { grid-area: rm; }
  /* Barre de commande collée en bas de la fiche produit */
  .page-product .sticky-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 35, 61, .12); }
  .page-product .sticky-buy .sb-price { display: block; font-family: var(--f-head); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
  .page-product .sticky-buy s { font-size: .82rem; color: var(--ink-3); }
  .page-product .sticky-buy .btn { flex: 0 0 auto; min-height: 48px; }
  .page-product .wa-float { display: none; }
  .page-product .foot { padding-bottom: 76px; }
}

/* ---------- Images WebP ---------- */
picture { display: contents; }
picture > source { display: none; }

/* ---------- Bandeau équipe pendant la maintenance ---------- */
.mnt-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: #b42318; color: #fff; font-size: .9rem; text-align: center; }
.mnt-bar .i { width: 18px; height: 18px; }
.mnt-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Page de maintenance ---------- */
body.mnt { min-height: 100vh; background: var(--navy); background-image: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .07), transparent 45%), radial-gradient(circle at 100% 100%, rgba(0, 148, 255, .14), transparent 50%); color: #fff; }
.mnt-preview { padding: 8px 16px; background: var(--yellow); color: var(--navy); text-align: center; font-weight: 600; font-size: .9rem; }
.mnt-preview a { color: var(--navy); text-decoration: underline; }
.mnt-wrap { max-width: 980px; margin: 0 auto; padding: 48px 20px 32px; }
.mnt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mnt-name { margin: 0; font-family: var(--f-head); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.mnt-logo img { max-height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.mnt-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .9rem; }
.mnt-tag .i { width: 18px; height: 18px; }
.mnt-hero { margin: 56px 0 36px; max-width: 680px; }
.mnt-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: .98; margin-bottom: 16px; }
.mnt-hero p { color: #c8d2e0; font-size: 1.15rem; margin: 0; }
.mnt-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px !important; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; color: #fff !important; font-size: 1rem !important; }
.mnt-back .i { width: 18px; height: 18px; color: var(--yellow); }
.mnt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mnt-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.mnt-card h2 { font-size: 1.6rem; margin: 0; }
.mnt-card p { margin: 0; color: var(--ink-2); }
.mnt-tels { display: grid; gap: 8px; }
.mnt-mail { font-size: .92rem; }
.mnt-shop { background: var(--navy-2); color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.mnt-shop h2 { color: #fff; }
.mnt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mnt-list li { display: flex; gap: 12px; align-items: flex-start; }
.mnt-list .i { width: 22px; height: 22px; color: var(--yellow); margin-top: 2px; }
.mnt-list span { display: flex; flex-direction: column; color: #dbe4f0; line-height: 1.4; }
.mnt-list b { color: #fff; font-size: .82rem; text-transform: none; letter-spacing: .01em; }
.mnt-shop .btn-light { margin-top: auto; }
.mnt-foot { margin-top: 36px; color: #8e9bb0; font-size: .88rem; text-align: center; }
.mnt-foot p { margin: 4px 0; }
.mnt-foot a { color: #c8d2e0; }
.mnt-soc a { margin: 0 6px; font-weight: 600; }
.mnt-staff a { color: #6f7f96; font-size: .8rem; }
@media (max-width: 760px) {
  .mnt-wrap { padding: 24px 16px; }
  .mnt-hero { margin: 32px 0 24px; }
  .mnt-grid { grid-template-columns: minmax(0, 1fr); }
  .mnt-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) { .is-loading .ls-spin, .list-search.is-loading .ls-spin { animation-duration: 2s; } }

/* Repère pour trouver la boutique (Paramètres > indication) */
small.ind { display: block; font-size: .86em; line-height: 1.4; opacity: .82; margin-top: 2px; }
/* Barre de recherche du haut quand elle met à jour la liste (catalogue, résultats) */
.search.is-loading::after { content: ""; position: absolute; left: 12px; right: 68px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent) no-repeat; background-size: 40% 100%; animation: ls-bar .9s linear infinite; }
@keyframes ls-bar { from { background-position: -60% 0; } to { background-position: 160% 0; } }
/* Page introuvable */
.error-404 { max-width: 760px; }
.err-search { display: flex; align-items: center; gap: 8px; position: relative; margin: 18px 0 8px; }
.err-search > .i { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.err-search input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--navy); border-radius: 10px; padding: 0 14px 0 42px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.err-search input:focus { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.err-rayons { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.err-rayons a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s; }
.err-rayons a:hover { border-color: var(--brand); }
.err-rayons a .i { width: 20px; height: 20px; color: var(--brand-dark); flex-shrink: 0; }
.err-rayons a span { flex: 1; min-width: 0; }
.err-rayons a em { font-style: normal; font-size: .82rem; color: var(--ink-3); }
.err-rayons a.all { background: var(--navy); color: #fff; border-color: var(--navy); }
.err-rayons a.all .i { color: var(--yellow); }
@media (max-width: 600px) { .err-search { flex-wrap: wrap; } .err-search .btn { flex: 1 1 100%; } }
/* Devis revendeur */
.pro-quote { margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 10px; padding: 0 14px; background: #fafbfc; }
.pro-quote summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.pro-quote summary::-webkit-details-marker { display: none; }
.pro-quote summary .i { width: 20px; height: 20px; color: var(--brand-dark); }
.pro-form { padding: 0 0 14px; display: grid; gap: 10px; }
.pro-form p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.pro-form input[type=text]:not(.hp) { height: 44px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; font: inherit; }
.pro-line { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.pro-line .i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--brand-dark); }
.pro-line button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
.pro-line a { color: var(--brand-dark); }
/* Avis clients : étoiles */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { position: relative; width: 18px; height: 18px; display: inline-block; }
.star .i { position: absolute; inset: 0; width: 18px; height: 18px; fill: #e3e8ee; stroke: none; }
.star .i + .i { fill: #f5b301; clip-path: inset(0 calc(100% - var(--f, 0%)) 0 0); }
.stars-sm .star, .stars-sm .star .i { width: 14px; height: 14px; }
.stars-lg .star, .stars-lg .star .i { width: 26px; height: 26px; }
.card-rating { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 12px; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.pdp-rating b { color: var(--ink); }
.pdp-rating:hover span { text-decoration: underline; }
.reviews-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.reviews-sum { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 140px; }
.rv-big { font-family: var(--f-head); font-size: 3.4rem; font-weight: 700; line-height: 1; margin: 0 0 6px; color: var(--navy); }
.rv-big small { font-size: 1.3rem; color: var(--ink-3); margin-left: 2px; }
.reviews-sum .muted { margin: 8px 0 14px; font-size: .9rem; }
.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rv-bars li { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.rv-bars i { display: block; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.rv-bars b { display: block; height: 100%; background: #f5b301; border-radius: 4px; }
.rv-bars em { font-style: normal; text-align: right; color: var(--ink-3); }
.reviews-list { display: grid; gap: 12px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: .92rem; color: var(--ink-3); }
.review header b { color: var(--ink); }
.review header time { margin-left: auto; }
.review p { margin: 0; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); } .reviews-sum { position: static; } }
.pro-quote, .pro-form, .pro-form > * { min-width: 0; max-width: 100%; }
.pro-form input[type=text]:not(.hp), .pro-form .btn { width: 100%; box-sizing: border-box; }

/* =====================================================================
   Mise à jour 17 : avis sur l'accueil, la boutique en vrai, comparateur,
   logos des marques, photos qui glissent et visionneuse avec zoom
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Avis clients sur l'accueil ---------- */
.home-reviews .block-head { align-items: center; }
.hr-score { display: flex; align-items: center; gap: 8px; margin: 0 0 10px auto; color: var(--ink-3); font-size: .92rem; }
.hr-score b { font-family: var(--f-head); font-size: 1.45rem; color: var(--navy); }
.hr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hr-card { margin: 0; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.hr-card blockquote { margin: 0; flex: 1; }
.hr-card blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.hr-card blockquote p::before { content: "« "; color: var(--ink-3); }
.hr-card blockquote p::after { content: " »"; color: var(--ink-3); }
.hr-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.hr-card figcaption b { color: var(--navy); font-size: 1rem; }
.hr-card figcaption a { flex-basis: 100%; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 940px) { .hr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hr-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .hr-grid::-webkit-scrollbar { display: none; }
  .hr-card { scroll-snap-align: start; }
  .hr-score { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Logos des marques ---------- */
.brand-row.has-logos a { min-height: 70px; align-items: center; }
.brand-row a.has-logo { flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 132px; padding: 10px 16px 8px; }
.brand-row a.has-logo picture, .brand-row a.has-logo img { display: block; }
.brand-row a.has-logo img { height: 38px; width: auto; max-width: 120px; object-fit: contain; }
.brand-row a.has-logo span { font-size: .78rem; }

/* ---------- La boutique en vrai (accueil, Contact) ---------- */
.shop-real { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr); gap: 14px; margin-top: 14px; }
.shop-real.is-photo-only { grid-template-columns: minmax(0, 380px); }
.shop-real.is-map-only { grid-template-columns: minmax(0, 1fr); }
.shop-real.is-map-only .sr-map { min-height: 380px; }
/* Photo en portrait (3 × 4) : une photo couchée est recadrée au centre automatiquement */
.sr-photo { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--navy); }
.sr-photo picture, .sr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sr-photo img { object-fit: cover; }
.sr-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 20px 16px; color: #fff;
  background: linear-gradient(to top, rgba(10, 18, 34, .88), rgba(10, 18, 34, 0)); }
.sr-photo figcaption b { font-family: var(--f-head); font-size: 1.5rem; line-height: 1.1; }
.sr-photo figcaption span { font-size: .92rem; color: #dfe6f0; }
.sr-map { display: flex; flex-direction: column; min-height: 300px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.sr-map iframe { flex: 1; width: 100%; min-height: 240px; border: 0; display: block; }
.sr-map-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); }
.sr-map-bar > span { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font-size: .92rem; min-width: 0; flex: 1 1 220px; }
.sr-map-bar > span .i { flex-shrink: 0; margin-top: 2px; color: var(--navy); }
.page-contact .shop-real, .wrap > .shop-real { margin-top: var(--gap); }
@media (max-width: 860px) {
  .shop-real { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .sr-photo { aspect-ratio: 4 / 5; }
  .shop-real.is-photo-only { grid-template-columns: minmax(0, 1fr); }
  .shop-real.is-map-only .sr-map { min-height: 0; }
  .sr-map { min-height: 0; }
  .sr-map iframe { min-height: 0; height: 260px; flex: none; }
  .sr-map-bar .btn { flex: 1 1 100%; }
}

/* ---------- Vus récemment : comparer ---------- */
.recent-compare { display: inline-flex; align-items: center; gap: 6px; }
.recent-compare + .see-all { margin-left: 18px; }
.recent-compare .i { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .recent .block-head { flex-wrap: nowrap; gap: 6px 12px; }
  .recent .block-head h2 { min-width: 0; white-space: nowrap; }
  .recent-compare + .see-all { margin-left: 4px; }
  .rc-more { display: none; }
}

/* ---------- Comparateur ---------- */
.cmp-scroll { margin-top: 16px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-size: .95rem; }
.cmp thead th { border-top: 0; vertical-align: bottom; }
.cmp-side { width: 170px; color: var(--ink-3); font-weight: 600; font-size: .88rem !important; }
.cmp tbody th.cmp-side { position: sticky; left: 0; background: #fff; z-index: 1; }
.cmp thead th.cmp-side { position: sticky; left: 0; background: #fff; z-index: 2; }
.cmp-lrow { display: none; }
.cmp tr.is-diff td, .cmp tr.is-diff th.cmp-side { background: #fffbe6; }
.cmp tr.is-diff td { font-weight: 600; color: var(--navy); }
.cmp-head { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cmp-img { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-name { font-weight: 700; color: var(--ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 2px 0 4px; }
.cmp-price s { color: var(--ink-3); font-size: .85rem; }
.cmp-x { position: absolute; top: 6px; right: 6px; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.cmp-x:hover { border-color: var(--navy); color: var(--navy); }
.cmp-x .i { width: 16px; height: 16px; }
.cmp-note { margin-top: 12px; }
@media (max-width: 700px) {
  .cmp { min-width: 0; }
  .cmp.cmp-3 { min-width: 520px; } .cmp.cmp-4 { min-width: 680px; }
  .cmp .cmp-side { display: none; }
  .cmp-lrow { display: table-row; }
  .cmp-lrow th { padding: 10px 12px 0; border-top: 1px solid var(--line); font-size: .8rem !important; color: var(--ink-3); font-weight: 600; text-transform: none; }
  .cmp-lrow + tr td { border-top: 0; padding-top: 2px; }
  .cmp th, .cmp td { padding-left: 12px; padding-right: 12px; }
  .cmp-lrow.is-diff th { background: #fffbe6; }
  .cmp-head .btn { min-height: 42px; padding: 0 10px; font-size: .9rem; }
}

/* ---------- Fiche produit : photos qui glissent ---------- */
.pdp-main { overflow: hidden; }
.pdp-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 14px; }
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-track:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.pdp-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: #fff; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.pdp-slide picture { display: block; width: 100%; height: 100%; }
.pdp-zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--navy); font-size: .82rem; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .15s; }
.pdp-zoom-hint .i { width: 16px; height: 16px; }
.pdp-main:hover .pdp-zoom-hint { opacity: 1; }
.pdp-nav { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 2px 8px rgba(20, 35, 61, .12); opacity: 0; transition: opacity .15s; }
.pdp-prev { left: 10px; } .pdp-next { right: 10px; }
.pdp-main:hover .pdp-nav, .pdp-nav:focus-visible { opacity: 1; }
.pdp-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: none; justify-content: center; gap: 6px; pointer-events: none; }
.pdp-dots span { width: 7px; height: 7px; border-radius: 999px; background: #c5ccd6; transition: width .2s, background-color .2s; }
.pdp-dots span.on { width: 20px; background: var(--navy); }
@media (hover: none), (max-width: 900px) {
  .pdp-nav { display: none; }
  .pdp-dots { display: flex; }
  .pdp-zoom-hint { opacity: 1; bottom: auto; top: 10px; padding: 7px; }
  .pdp-zoom-hint span { display: none; }
  .pdp-main .flag-off { z-index: 2; }
}
@media (max-width: 700px) { .pdp-thumbs { display: none; } }

/* ---------- Visionneuse plein écran avec zoom ---------- */
html.zv-lock, html.zv-lock body { overflow: hidden; }
.zv { position: fixed; inset: 0; z-index: 1000; background: rgba(9, 15, 27, calc(.96 * var(--zv-fade, 1))); color: #fff; }
.zv[hidden] { display: none; }
.zv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zv.is-zoomed .zv-stage { cursor: grab; }
.zv-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; background: #fff; border-radius: 8px; transform-origin: center center; will-change: transform; -webkit-user-drag: none; }
.zv-img.is-anim { transition: transform .22s ease-out; }
.zv-btn { position: absolute; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; }
.zv-btn:hover { background: rgba(255, 255, 255, .22); }
.zv-btn[hidden] { display: none; }
.zv-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.zv-prev { left: 12px; top: 50%; margin-top: -23px; }
.zv-next { right: 12px; top: 50%; margin-top: -23px; }
.zv-count { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-weight: 700; font-size: .95rem; pointer-events: none; }
.zv-hint { position: absolute; top: max(20px, env(safe-area-inset-top)); left: 16px; right: 70px; margin: 0; font-size: .88rem; color: #cfd8e4; pointer-events: none; transition: opacity .4s; }
.zv-hint.is-gone { opacity: 0; }
@media (hover: none) { .zv-prev, .zv-next { display: none; } }

/* Ouvert / fermé maintenant (horaires des Paramètres) */
.open-now { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .86rem; font-weight: 700; color: #f2b8b5; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.open-now.is-open { color: #7ee2a0; }
.panel .open-now { color: var(--red); }
.panel .open-now.is-open { color: var(--green); }

/* =====================================================================
   Finitions téléphone (360 à 480 px : la majorité des téléphones au Bénin)
   ===================================================================== */
/* Panier : quantité et total sur la même ligne */
.cart-line .line-foot { display: contents; }
@media (max-width: 700px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) 36px; grid-template-areas: "img info rm" "img foot foot"; align-items: start; }
  .cart-line .line-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .cart-line .qty, .cart-line .line-total { grid-area: auto; justify-self: auto; }
  .cart-line .name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
  .cart-line .rm { justify-self: end; }
}

@media (max-width: 700px) {
  /* Pastille du panier : reste visible quand l'en-tête est collé en haut */
  .head-cart .count { top: -4px; right: -4px; min-width: 20px; height: 20px; font-size: .72rem; }
  /* Bouton « remonter » plus discret */
  .to-top { width: 40px; height: 40px; right: 10px; opacity: .94; }
  .to-top .i { width: 19px; height: 19px; }
  /* Titres de fiche produit moins envahissants */
  .pdp-info h1 { font-size: 1.6rem; line-height: 1.1; }
  /* Marques : une ligne qui défile au doigt */
  .brand-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; padding-bottom: 2px; scroll-snap-type: x proximity; }
  .brand-row::-webkit-scrollbar { display: none; }
  .brand-row a { flex: none; scroll-snap-align: start; }
  /* « Commander, c'est simple » plus compact */
  .steps { gap: 8px; }
  .steps li { padding: 12px 14px; gap: 12px; }
  .steps .n { width: 30px; height: 30px; font-size: 1.1rem; }
  .steps strong { font-size: 1.1rem; }
  .steps p { font-size: .9rem; }
  /* Accueil : moins d'articles dans les grilles (« Voir tout » mène à la suite) */
  .page-home section[aria-labelledby="h-phares"] .grid-products > :nth-child(n+7),
  .page-home section[aria-labelledby="h-new"] .grid-products > :nth-child(n+5) { display: none; }
  /* Pied de page : Rayons et Aide côte à côte, sans répéter l'indication */
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 16px; }
  .foot-cols > div:nth-child(-n+2) { grid-column: 1 / -1; }
  .foot-list small.ind { display: none; }
  /* 404 : loupe bien placée dans le champ */
  .err-search > .i { top: 14px; }
  /* Vus récemment : prix sur une ligne */
  .recent-item .rp { font-size: 1rem; white-space: nowrap; }
}

@media (max-width: 480px) {
  /* Cartes produit sur 2 colonnes : « Commander » en pleine largeur, le panier en pastille sur la photo */
  .card-actions .btn-icon { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; min-height: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 8px rgba(20, 35, 61, .14); }
  .card-actions .btn-icon .i { width: 18px; height: 18px; }
  .card-actions .btn-wa { gap: 6px; padding: 0 8px; font-size: .9rem; }
  .card-actions .btn-wa .i { width: 17px; height: 17px; }
  /* Tuiles « Bonnes affaires » et « Revendeurs » sous le diaporama : l'essentiel seulement */
  .side-tile { padding: 14px; gap: 2px; }
  .side-tile > span:not(.side-kicker):not(.side-cta) { display: none; }
  .side-kicker { font-size: .8rem; }
  .side-tile strong { font-size: 1.35rem; margin: 2px 0; }
  .side-cta { margin-top: 6px; font-size: .9rem; }
}

@media (max-width: 420px) {
  .recent .block-head h2 { font-size: 1.4rem; }
  .recent-compare .i { display: none; }
  .recent .see-all { font-size: .9rem; }
  .slide-text h2 { font-size: 1.7rem; }
}

/* Menu du téléphone : appeler et horaires en bas */
.drawer-panel .drawer-call { margin-top: 10px; }
.drawer-hours { display: flex; gap: 8px; align-items: flex-start; margin: 16px 18px 0; font-size: .9rem; color: var(--ink-2); }
.drawer-hours .i { flex-shrink: 0; margin-top: 2px; color: var(--navy); }
.drawer-hours .open-now { color: var(--red); } .drawer-hours .open-now.is-open { color: var(--green); }
@media (max-width: 700px) { .head-cart .count { top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .7rem; border-width: 1.5px; } }

/* =====================================================================
   Mise à jour 21 : finitions de design (ombres douces, relief au survol,
   cohérence des coins, en-têtes de section, boutons, retours au toucher)
   ===================================================================== */
:root { --shadow-sm: 0 1px 2px rgba(20, 35, 61, .05), 0 1px 3px rgba(20, 35, 61, .06); --shadow-md: 0 8px 24px rgba(20, 35, 61, .1); --radius: 12px; }

/* Cartes produit : un léger relief, qui se soulève au survol (ordinateur) */
.card, .rail-img, .sub-item, .panel, .recv-card, .steps li, .hr-card, .recent-item, .cmp-scroll, .buybox { box-shadow: var(--shadow-sm); }
.card { border-radius: var(--radius); transition: border-color .15s, box-shadow .2s, transform .2s; }
@media (hover: hover) {
  .card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .rail-item:hover .rail-img, .sub-item:hover, .recent-item:hover { box-shadow: var(--shadow-md); }
}
.card-img { background: #fff; }
.card-img::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: .7; }
.card-img img { padding: 14px; }
.card-body { padding: 12px 14px 14px; gap: 0; }
.card-name { font-size: .95rem; }
.chips li { background: #f3f5f8; color: var(--ink-2); border-radius: 6px; }
.card-stock { margin: 6px 0 12px; }
.flag { border-radius: 7px; box-shadow: 0 2px 6px rgba(20, 35, 61, .15); letter-spacing: .01em; }
.flag-etat { box-shadow: none; }
.tag-price { box-shadow: none; }

/* Boutons : retour visuel au toucher et au clic */
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-wa { box-shadow: 0 2px 0 var(--green-2); }
.btn-wa:active { box-shadow: none; transform: translateY(1px) scale(.99); }
.btn-dark, .head-cart { box-shadow: 0 2px 0 #0a1324; }
.btn-dark:active, .head-cart:active { box-shadow: none; transform: translateY(1px); }
.btn-outline:hover { background: var(--bg); }

/* En-têtes de section : trait court sous le titre, ligne fine en dessous */
.block-head { border-bottom-color: var(--line); }
.block-head h2 { border-bottom-width: 3px; letter-spacing: -.01em; }
.see-all { display: inline-flex; align-items: center; gap: 4px; }
.see-all:not(.link-btn):not(.recent-compare)::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .15s; }
.see-all:hover { text-decoration: none; }
.see-all:hover::after { transform: translateX(3px); }

/* Diaporama de l'accueil : coins et points plus nets, ombre */
.slider { box-shadow: var(--shadow-md); }
.dots button { height: 6px; width: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.dots button.on { width: 24px; }
.side-tile { box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, background-color .15s; }
@media (hover: hover) { .side-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } }
.side-cta { text-decoration-thickness: 2px; }

/* Rayons : image sur fond blanc avec un très léger dégradé */
.rail-img { border-radius: var(--radius); background: linear-gradient(180deg, #fff, #f6f8fb); }
.sub-item { border-radius: var(--radius); }
.sub-img { border-radius: 10px; }

/* Bonnes affaires : bande jaune avec un motif d'étiquettes discret */
.deals { position: relative; overflow: hidden; }
.deals::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 35, 61, .18) 1px, transparent 0); background-size: 22px 22px; }
.deals > .wrap { position: relative; }

/* Fiche produit : galerie et bloc d'achat plus nets */
.pdp-main { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pdp-thumbs button { border-radius: 10px; transition: border-color .15s, transform .15s; }
.pdp-thumbs button:hover { transform: translateY(-1px); }
.buybox { border-radius: var(--radius); }
.buybox-price { background: linear-gradient(180deg, #fafbfd, #fff); margin: -22px -22px 16px; padding: 22px 22px 16px; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 700px) { .buybox-price { margin: -16px -16px 14px; padding: 16px 16px 12px; } }
.recv-box { transition: border-color .15s, background-color .15s, box-shadow .15s; }
.recv-opt input:checked + .recv-box { box-shadow: 0 0 0 3px var(--brand-soft); }

/* Avis clients : guillemets en couleur, cartes aérées */
.hr-card blockquote p::before, .hr-card blockquote p::after { color: var(--brand); font-family: var(--f-head); font-weight: 700; }
.hr-card { border-radius: var(--radius); }

/* Pied de page : séparateur doux, liens plus lisibles */
.foot { border-top: 4px solid var(--brand); }
.foot-cols > div > a:not(.btn) { transition: color .15s, padding-left .15s; }
.foot-cols > div > a:not(.btn):hover { padding-left: 4px; text-decoration: none; }

/* Suggestions de recherche et menus : coins cohérents */
.suggest, .dd-menu, .mega { border-radius: var(--radius); }
.dd-menu, .mega { border-radius: 0 0 var(--radius) var(--radius); }

/* Barre d'onglets du téléphone : un peu plus haute, icône active remplie d'un fond doux */
@media (max-width: 900px) {
  .tabbar a, .tabbar button { height: 60px; }
  .tabbar .on .i { background: var(--brand-soft); border-radius: 8px; padding: 2px; width: 27px; height: 27px; }
  .tabbar a:active, .tabbar button:active { background: var(--bg); }
}

/* Images produit : fond blanc, sans halo gris autour des vraies photos */
.card-img img, .recent-item img, .sub-img img, .cart-line img, .suggest img { mix-blend-mode: normal; background: #fff; }
.recent-item { border-radius: var(--radius); }
.recent-item img { border-radius: 8px; }

/* Focus clavier cohérent sur les cartes et les liens */
.card a:focus-visible, .rail-item:focus-visible, .sub-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Chargement des images : apparition en fondu (pas de carré blanc qui saute) */
.card-img img, .rail-img img, .pdp-slide img { animation: img-in .25s ease-out; }
@keyframes img-in { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card-img img, .rail-img img, .pdp-slide img { animation: none; } }
