/* Animalerie.tn — feuille de styles du site public
   Identité « Nature » : vert forêt, orange abricot, fond vert pâle ; arcs en signature. */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunitosans.woff") format("woff"); font-weight: 300 900; font-display: swap; }

:root {
  --blue: #047857;
  --blue-deep: #065F46;
  --ink: #0F3D2E;
  --ink-2: #3F5F52;
  --muted: #5E7A6E;
  --line: #D3E7DB;
  --sky: #EEF7F1;
  --sky-2: #D5ECDF;
  --sun: #F97316;
  --sun-soft: #FFEDD5;
  --white: #FFFFFF;
  --ok: #1B7F4E;
  --ok-soft: #E2F4EA;
  --off: #7A8399;
  --off-soft: #EFF1F5;
  --red: #C8323C;
  --red-soft: #FDECEC;
  --radius: 14px;
  --radius-sm: 10px;
  --arch: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 8px 24px -12px rgba(15, 61, 46, .18);
  --f-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: 0; font-weight: 600; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { background: var(--off-soft); color: var(--off); cursor: not-allowed; transform: none; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #EA580C; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--sky); color: var(--ink); border-color: var(--sky-2); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #0C1529; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--sky); color: var(--ink); }
.count-dot { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.count-dot:empty, .count-dot[data-n="0"] { display: none; }

/* ------------------------------------------------------------- Annonce et en-tête */
.announce { background: var(--ink); color: #fff; font-size: .875rem; text-align: center; padding: 7px var(--gutter); }
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { height: 40px; width: auto; }
.logo-mark { width: 34px; height: 40px; flex: none; }
.logo-text { font-family: var(--f-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; }
.logo-text span { color: var(--blue); }
.search { flex: 1; position: relative; max-width: 560px; margin-inline: auto; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 2px solid var(--sky-2); background: var(--sky); padding: 0 48px 0 18px; font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--blue); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; display: none; max-height: 70vh; overflow: auto; z-index: 50; }
.suggest.is-open { display: block; }
.suggest h4 { font-family: var(--f-body); font-size: .78rem; color: var(--muted); font-weight: 700; margin: 8px 10px 4px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--sky); }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--sky); }
.suggest .s-price { margin-left: auto; font-weight: 700; white-space: nowrap; font-size: .92rem; }
.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.menu-toggle { display: none; }

.main-nav { border-top: 1px solid var(--line); background: #fff; }
.main-nav > .wrap { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.main-nav > .wrap::-webkit-scrollbar { display: none; }
.nav-item { position: static; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.is-open > .nav-link { background: var(--sky); color: var(--ink); }
.nav-link .sp-ic { width: 22px; height: 22px; color: var(--blue); }
.nav-link.is-extra { color: var(--ink-2); font-weight: 600; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; flex: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(15, 61, 46, .3); display: none; padding: 26px 0 30px; }
.nav-item.is-open .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; }
.mega h3, .mega .mega-h { font-size: 1rem; margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; }
.mega h3 a, .mega .mega-h a { color: var(--ink); text-decoration: none; }
.mega h3 a:hover, .mega .mega-h a:hover { color: var(--blue); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.mega li a:hover { color: var(--blue); }
.mega-all { margin-top: 18px; }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 61, 46, .45); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: #fff; overflow-y: auto; padding: 14px 16px 90px; animation: slidein .2s ease-out; }
.drawer-panel.right { left: auto; right: 0; animation-name: slideinr; }
@keyframes slidein { from { transform: translateX(-30px); opacity: 0; } }
@keyframes slideinr { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-head strong { font-family: var(--f-display); font-size: 1.2rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 2px; font-weight: 700; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic:last-child { margin-left: auto; transition: transform .2s; }
.acc[open] > summary .ic:last-child { transform: rotate(180deg); }
.acc .acc { border: 0; margin-left: 8px; }
.acc .acc summary { font-weight: 600; padding: 10px 2px; }
.acc ul { list-style: none; padding: 0 0 10px 12px; margin: 0; }
.acc li a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.drawer-links { padding: 14px 2px; display: grid; gap: 4px; }
.drawer-links a { padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 600; }

/* Barre d'onglets mobile (F-05) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); display: none; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; color: var(--ink-2); text-decoration: none; font-size: .72rem; font-weight: 650; background: none; border: 0; position: relative; cursor: pointer; }
.tabbar .is-current { color: var(--blue); }
.tabbar .count-dot { top: 4px; right: calc(50% - 22px); }

/* ------------------------------------------------------------- Fil d'Ariane, titres */
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.page-head { padding: 6px 0 18px; }
.page-head h1 { margin-bottom: 6px; }
.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 72ch; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head .more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------- Accueil */
.hero { background: var(--sky); padding: 34px 0 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .18), rgba(249, 115, 22, 0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 22px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.02; max-width: 15ch; margin-bottom: 12px; }
.hero p { font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.door { --radius: 12px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-decoration: none; color: var(--ink); aspect-ratio: 3 / 4; border-radius: var(--arch); background: #fff; border: 2px solid var(--sky-2); padding: 14px 10px 16px; transition: border-color .15s, transform .15s; overflow: hidden; }
.door:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.door svg.animal { width: 64%; height: auto; color: var(--blue); margin: auto 0 10px; }
.door img { width: 100%; height: 72%; object-fit: cover; border-radius: var(--arch); margin-bottom: 10px; }
.door strong { font-family: var(--f-display); font-size: clamp(.86rem, .7rem + .8vw, 1.2rem); text-align: center; line-height: 1.1; }
.door span { font-size: .74rem; color: var(--muted); text-align: center; }
@media (max-width: 599px) { .door { padding: 8px 4px 10px; } .door span { display: none; } .door::before { inset: 4px; } .hero { padding: 22px 0 26px; } }
.door::before { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1.5px dashed var(--sky-2); pointer-events: none; }
.door:nth-child(2) { background: var(--sun-soft); }
.door:nth-child(3) { background: #F0F8F3; }
.door:nth-child(4) { background: #FBF6EC; }
.reassure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.reassure > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.reassure .ic { color: var(--blue); margin-top: 2px; }
.reassure strong { display: block; font-size: .95rem; line-height: 1.25; }
.reassure span { font-size: .82rem; color: var(--muted); line-height: 1.3; display: block; }
.strip { border-bottom: 1px solid var(--line); padding: 16px 0; }

.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 92%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; position: relative; display: grid; grid-template-columns: 1fr; align-items: end; min-height: 210px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; background: var(--blue); padding: 22px; isolation: isolate; }
.banner.t-accent, .banner.t-jaune { background: var(--sun); color: var(--ink); }
.banner.t-encre { background: var(--ink); }
.banner picture, .banner > img { position: absolute; inset: 0; z-index: -1; }
.banner picture img, .banner > img { width: 100%; height: 100%; object-fit: cover; }
.banner.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 61, 46, 0) 30%, rgba(15, 61, 46, .72)); z-index: -1; }
.banner h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); max-width: 18ch; margin-bottom: 6px; }
.banner p { margin: 0 0 14px; opacity: .92; }
.banner .btn { background: #fff; color: var(--ink); }
.banner.t-jaune .btn { background: var(--ink); color: #fff; }
.banner .arch-deco { position: absolute; right: -30px; bottom: -40px; width: 220px; height: 260px; border-radius: 999px 999px 0 0; border: 18px solid rgba(255, 255, 255, .16); z-index: -1; }
.banner.t-accent .arch-deco, .banner.t-jaune .arch-deco { border-color: rgba(15, 61, 46, .08); }

.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--sky); color: var(--ink); text-decoration: none; font-weight: 700; min-height: 76px; }
.cat-tile:hover { background: var(--sky-2); color: var(--ink); }
.cat-tile small { display: block; font-weight: 500; color: var(--muted); }
.cat-tile .tile-ic { width: 46px; height: 46px; border-radius: 999px 999px 10px 10px; background: #fff; display: grid; place-items: center; color: var(--blue); flex: none; }
.home-text { max-width: 78ch; color: var(--ink-2); }
.brand-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brand-chip { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; text-align: center; line-height: 1.15; }
.brand-chip img { max-height: 40px; width: auto; }
.brand-chip:hover { border-color: var(--blue); color: var(--blue); }
.flash-timer { display: inline-flex; align-items: center; gap: 6px; background: var(--red-soft); color: var(--red); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .9rem; }

/* ------------------------------------------------------------- Vignettes produits */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1.08; border-radius: var(--arch); background: var(--sky); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14% 10% 8%; mix-blend-mode: multiply; transition: transform .25s; }
.card:hover .card-media img { transform: scale(1.04); }
.card.is-off .card-media img { opacity: .55; filter: grayscale(.4); }
.badges { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 750; background: #fff; color: var(--ink); line-height: 1.3; }
.badge-promo { background: var(--sun); color: var(--ink); }
.badge-flash { background: var(--red); color: #fff; }
.badge-une { background: var(--blue); color: #fff; }
.badge-vet { background: #fff; color: var(--red); border: 1px solid var(--red-soft); }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.fav-btn:hover { color: var(--red); }
.fav-btn.is-on { color: var(--red); }
.fav-btn.is-on svg { fill: currentColor; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-brand { font-size: .78rem; font-weight: 700; color: var(--blue); }
.card-title { font-size: .95rem; line-height: 1.3; font-weight: 600; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--blue); }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.card-price .price { font-size: 1.12rem; }
.card-price .from { font-size: .74rem; color: var(--muted); display: block; line-height: 1; }
.card-price s { font-size: .82rem; color: var(--muted); margin-left: 4px; }
.card-unit { font-size: .74rem; color: var(--muted); }
.add-btn { position: relative; z-index: 2; width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.add-btn:hover { background: var(--blue-deep); }
.add-btn.is-done { background: var(--ok); }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail.on { color: var(--ok); }
.avail.off { color: var(--off); }
.stars { display: inline-flex; gap: 1px; color: var(--sun); }
.stars .ic { fill: currentColor; }

.price { font-family: var(--f-display); font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.price-dec { font-size: .62em; font-weight: 500; }

/* ------------------------------------------------------------- Pages rayon */
.listing-head { display: grid; gap: 10px; padding-bottom: 8px; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--sky); color: var(--ink); text-decoration: none; font-weight: 650; white-space: nowrap; border: 1.5px solid transparent; }
.pill:hover { background: var(--sky-2); color: var(--ink); }
.pill.is-on { background: var(--ink); color: #fff; }
.pill small { color: var(--muted); font-weight: 600; }
.pill.is-on small { color: rgba(255, 255, 255, .7); }
.listing { display: grid; grid-template-columns: 1fr; gap: 24px; }
.toolbar { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0 14px; position: sticky; top: var(--header-h); background: #fff; z-index: 5; }
.toolbar .count { color: var(--muted); font-size: .92rem; }
.toolbar select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 34px 0 14px; 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='%230F3D2E' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-weight: 600; max-width: 52vw; }
.filters-btn { display: inline-flex; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--ink); font-size: .86rem; font-weight: 650; text-decoration: none; }
.chip:hover { background: var(--sun); color: var(--ink); }
.chip.clear { background: none; text-decoration: underline; padding-left: 4px; }
.filters { display: none; }
.filters form { display: grid; gap: 4px; }
.f-group { border-bottom: 1px solid var(--line); padding: 4px 0; }
.f-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 750; padding: 10px 0; cursor: pointer; }
.f-group summary::-webkit-details-marker { display: none; }
.f-group[open] summary .ic { transform: rotate(180deg); }
.f-opts { display: grid; gap: 2px; padding-bottom: 10px; max-height: 260px; overflow-y: auto; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: .95rem; }
.f-opt input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.f-opt small { margin-left: auto; color: var(--muted); }
.f-price { display: flex; gap: 8px; align-items: center; padding-bottom: 12px; }
.f-price input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; }
.filters-apply { position: sticky; bottom: 0; background: #fff; padding: 12px 0; display: flex; gap: 8px; }
.empty { text-align: center; padding: 40px 16px; border-radius: var(--radius); background: var(--sky); }
.empty h2 { font-size: 1.3rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 26px 0 8px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; min-width: 20px; }
.cat-intro { color: var(--ink-2); max-width: 78ch; }
.cat-intro p:last-child { margin-bottom: 0; }
.cat-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; max-width: 80ch; color: var(--ink-2); }
.cat-bottom h2 { color: var(--ink); font-size: 1.3rem; margin-top: 1.2em; }

/* ------------------------------------------------------------- Fiche produit */
.product { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 20px; }
.gallery { position: relative; }
.g-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--arch); background: var(--sky); overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.g-main img { width: 100%; height: 100%; object-fit: contain; padding: 12% 8% 6%; mix-blend-mode: multiply; transition: transform .2s; cursor: zoom-in; }
.g-main.is-zoom img { transform: scale(1.9); cursor: zoom-out; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.g-thumbs button { width: 66px; height: 66px; border-radius: 12px; border: 2px solid transparent; background: var(--sky); padding: 4px; cursor: pointer; flex: none; }
.g-thumbs button.is-on { border-color: var(--blue); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.p-brand { font-weight: 750; color: var(--blue); text-decoration: none; }
.p-title { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.1rem); margin: 4px 0 8px; }
.p-rating { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.p-rating a { color: var(--muted); }
.p-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.p-badges .badge { background: var(--sky); }
.buybox { border-radius: 20px; border: 1.5px solid var(--line); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.p-price .price { font-size: 2rem; color: var(--ink); }
.p-price s { color: var(--muted); }
.p-price .badge { align-self: center; }
.p-unit { color: var(--muted); font-size: .9rem; margin-top: -8px; }
.opt-label { font-weight: 750; margin-bottom: 8px; display: flex; justify-content: space-between; }
.opt-label span { color: var(--muted); font-weight: 600; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.v-btn { position: relative; min-height: 46px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; line-height: 1.2; font-weight: 650; }
.v-btn small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.v-btn:hover { border-color: var(--blue); }
.v-btn.is-on { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.v-btn.is-off { color: var(--off); background: var(--off-soft); border-style: dashed; }
.v-btn.is-off small { text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 46px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 750; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; min-width: 0; padding-inline: 12px; white-space: normal; line-height: 1.15; }
.stock-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.stock-line.on { color: var(--ok); }
.stock-line.off { color: var(--off); }
.notify { background: var(--off-soft); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.notify form { display: flex; gap: 8px; }
.notify input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 14px; }
.vet-warn { display: flex; gap: 10px; align-items: flex-start; background: var(--red-soft); color: #7A1D24; border-radius: var(--radius); padding: 12px 14px; font-weight: 600; }
.p-reassure { display: grid; gap: 10px; font-size: .92rem; }
.p-reassure div { display: flex; gap: 10px; align-items: flex-start; }
.p-reassure .ic { color: var(--blue); }
.p-reassure select { border: 0; border-bottom: 1.5px dashed var(--blue); background: none; color: var(--blue); font-weight: 700; padding: 0 2px; }
.tabs { margin-top: 26px; }
.tab-list { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { padding: 12px 16px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-list button[aria-selected="true"] { color: var(--ink); border-color: var(--blue); }
.tab-panel { padding: 20px 0; max-width: 80ch; }
.tab-panel[hidden] { display: none; }
.prose { color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--sky); }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 10px 10px 0; }
.prose img { border-radius: var(--radius); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.dl dt { font-weight: 700; color: var(--ink); }
.dl dd { margin: 0; }
.ration-calc { background: var(--sky); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; margin: 16px 0; }
.ration-calc label { font-weight: 700; }
.ration-calc .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ration-calc input { width: 110px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; }
.ration-out { font-size: 1.05rem; }
.ration-out strong { font-family: var(--f-display); font-size: 1.3rem; }
.reviews { display: grid; gap: 14px; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.review .who { font-size: .85rem; color: var(--muted); }
.review .reply { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--sky); font-size: .92rem; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 58px; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); display: none; align-items: center; gap: 12px; box-shadow: 0 -10px 30px -20px rgba(15, 61, 46, .5); }
.sticky-buy.is-on { display: flex; }
.sticky-buy .price { font-size: 1.25rem; }
.sticky-buy .btn { flex: 1; }

/* ------------------------------------------------------------- Formulaires */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=number], .field input[type=date], .field select, .field textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 10px 14px; font-size: 1rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4, 120, 87, .14); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field .err { color: var(--red); font-size: .85rem; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.choice .c-body { flex: 1; display: grid; gap: 2px; }
.choice .c-price { font-weight: 600; font-family: var(--f-display); white-space: nowrap; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--ok-soft); color: #0F5133; }
.alert-err { background: var(--red-soft); color: #7A1D24; }
.alert-info { background: var(--sky); color: var(--ink); }
.alert-warn { background: var(--sun-soft); color: #5C4300; }
.card-box { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.card-box h2 { font-size: 1.2rem; }

/* ------------------------------------------------------------- Panier et commande */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 120px; }
.cart-line { display: grid; grid-template-columns: auto 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .thumb { width: 76px; height: 76px; border-radius: 999px 999px 10px 10px / 50% 50% 10px 10px; background: var(--sky); overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.cart-line .l-name { font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.3; display: block; }
.cart-line .l-var { font-size: .85rem; color: var(--muted); }
.cart-line .l-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-line.is-unchecked { opacity: .55; }
.cart-line .l-warn { color: var(--red); font-size: .85rem; font-weight: 650; }
.summary { display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; border-top: 1px solid var(--line); padding-top: 10px; }
.summary .saving { color: var(--ok); font-weight: 700; }
.freebar { background: var(--sky); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; font-size: .92rem; }
.freebar .bar { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.freebar .bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s; }
.freebar.is-done .bar i { background: var(--ok); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; text-transform: uppercase; }
.paybar { position: fixed; left: 0; right: 0; bottom: 58px; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paybar .t { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.paybar small { display: block; color: var(--muted); font-weight: 500; font-family: var(--f-body); font-size: .78rem; }
.checkout { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 40px; }
.step { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.step h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.step h2 .n { width: 30px; height: 30px; border-radius: 999px 999px 8px 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.mini-lines { display: grid; gap: 10px; }
.mini-line { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.mini-line img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--sky); padding: 4px; mix-blend-mode: multiply; }
.mini-line .q { color: var(--muted); }
.mini-line .p { margin-left: auto; font-weight: 700; white-space: nowrap; }
.thanks { text-align: center; padding: 30px 0 10px; }
.thanks .arch-ok { width: 88px; height: 100px; margin: 0 auto 16px; border-radius: 999px 999px 18px 18px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding-bottom: 16px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; margin: 5px 0 0 4px; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.is-current { color: var(--ink); font-weight: 700; }
.timeline li.is-current::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky-2); }

/* ------------------------------------------------------------- Compte */
.account { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 30px; }
.acc-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.acc-nav a { white-space: nowrap; }
.auth { max-width: 460px; margin: 0 auto; padding: 10px 0 40px; }
.list-rows { display: grid; gap: 10px; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.row-card:hover { border-color: var(--blue); color: var(--ink); }
.row-card .grow { flex: 1; min-width: 0; }
.status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 750; background: var(--sky); color: var(--ink); white-space: nowrap; }
.status.s-ok { background: var(--ok-soft); color: var(--ok); }
.status.s-off { background: var(--off-soft); color: var(--off); }
.status.s-warn { background: var(--sun-soft); color: #6B4E00; }
.status.s-err { background: var(--red-soft); color: var(--red); }
.pet-card { display: flex; gap: 12px; align-items: center; }
.pet-ic { width: 52px; height: 60px; border-radius: 999px 999px 12px 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }

/* ------------------------------------------------------------- Conseils, marques, pages */
.articles { display: grid; grid-template-columns: 1fr; gap: 18px; }
.article-card { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.article-card .a-img { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--sky); }
.article-card .a-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3, .article-card h2 { margin: 0; font-size: 1.12rem; }
.article-card:hover h3 { color: var(--blue); }
.article-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.article { max-width: 760px; margin: 0 auto; padding-bottom: 30px; }
.article .a-hero { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; margin: 10px 0 20px; background: var(--sky); }
.article .a-hero img { width: 100%; height: 100%; object-fit: cover; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.article .prose { font-size: 1.06rem; line-height: 1.7; }
.brands-az { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brand-head { display: flex; gap: 16px; align-items: center; }
.brand-head .logo-box { width: 92px; height: 92px; border-radius: 999px 999px 16px 16px; border: 1px solid var(--line); display: grid; place-items: center; padding: 12px; flex: none; }
.content-page { max-width: 780px; padding-bottom: 40px; }

/* ------------------------------------------------------------- Pied de page */
.site-footer { background: var(--ink); color: #C9D2E6; margin-top: 50px; padding: 40px 0 110px; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--sun); }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 999px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #97A3BF; font-size: .85rem; }
.pay-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-chips span { border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 3px 8px; font-size: .78rem; }

/* ------------------------------------------------------------- Bandeau cookies, toast */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 70px; z-index: 70; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px -20px rgba(15, 61, 46, .5); border: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; max-width: 520px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.cookie .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 650; z-index: 80; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: var(--sun); }
.toast.err { background: var(--red); }
.preview-bar { background: var(--sun); color: var(--ink); text-align: center; padding: 8px; font-weight: 700; }
.err-page { text-align: center; padding: 40px 0 20px; max-width: 620px; margin: 0 auto; }
.err-page .big { font-family: var(--f-display); font-size: 5rem; font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: 10px; }

/* ------------------------------------------------------------- Écrans plus larges */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  .rail { grid-auto-columns: 30%; }
  .doors { grid-template-columns: repeat(4, 1fr); }
  .reassure { grid-template-columns: repeat(4, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .brand-row { grid-template-columns: repeat(6, 1fr); }
  .brands-az { grid-template-columns: repeat(4, 1fr); }
  .banners { grid-auto-columns: 70%; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cookie { left: 20px; bottom: 20px; }
}
@media (min-width: 960px) {
  :root { --gutter: 24px; --header-h: 76px; }
  body { font-size: 16.5px; }
  .tabbar, .sticky-buy, .paybar { display: none !important; }
  .toast { bottom: 28px; }
  .site-footer { padding-bottom: 40px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
  .listing .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 60px) / 5); overflow-x: auto; }
  .hero { padding: 54px 0 60px; }
  .hero-grid { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 40px; }
  .banners { grid-auto-columns: calc(50% - 6px); }
  .banner { min-height: 260px; padding: 30px; }
  .cat-tiles { grid-template-columns: repeat(6, 1fr); }
  .cat-tile { flex-direction: column; align-items: flex-start; min-height: 120px; }
  .brand-row { grid-template-columns: repeat(9, 1fr); }
  .brands-az { grid-template-columns: repeat(6, 1fr); }
  .listing { grid-template-columns: 250px 1fr; gap: 32px; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 60px); align-self: start; max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 6px; }
  .filters-btn { display: none; }
  .filters-apply { display: none; }
  .product { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 64px); }
  .cart-layout { grid-template-columns: 1fr 380px; gap: 40px; padding-bottom: 40px; }
  .cart-aside { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; }
  .checkout { grid-template-columns: 1fr 380px; gap: 32px; }
  .checkout-aside { position: sticky; top: calc(var(--header-h) + 64px); align-self: start; }
  .account { grid-template-columns: 230px 1fr; gap: 36px; }
  .acc-nav { flex-direction: column; }
  .acc-nav a { justify-content: flex-start; }
  .articles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
}
@media (max-width: 959px) {
  .tabbar { display: grid; }
  body { padding-bottom: 58px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions .hide-m { display: none; }
  .header-row { flex-wrap: wrap; height: auto; padding: 8px 0 10px; row-gap: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo { margin-right: auto; }
  .site-header { position: sticky; }
  .toolbar { top: 0; }
  .filters.is-open { display: block; position: fixed; inset: 0; z-index: 65; background: #fff; overflow-y: auto; padding: 16px var(--gutter) 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .tabbar, .announce, .cookie, .no-print { display: none !important; }
  body { padding: 0; }
}
.stars .ic.off { fill: none; color: var(--line); }
.filters .drawer-head { display: none !important; }
@media (max-width: 959px) { .filters.is-open .drawer-head { display: flex !important; } }
@media (min-width: 1200px) { .listing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card .fav-btn { top: 12%; right: 8px; }
[hidden] { display: none !important; }
.product > *, .listing > *, .cart-layout > *, .checkout > *, .account > * { min-width: 0; }

/* Garde-fous petits écrans (360 px) : aucun contenu ne doit élargir la page */
.toolbar > * { min-width: 0; }
.toolbar form { flex: 0 1 auto; }
.toolbar select { max-width: 100%; }
.cat-tile, .brand-chip { min-width: 0; overflow-wrap: anywhere; }
.buybox > * { min-width: 0; }

.gallery .fav-btn { top: 16%; right: 14px; box-shadow: 0 4px 14px -6px rgba(15, 61, 46, .35); }

/* T-34 : zones tactiles d'au moins 44 px ; récapitulatif du panier sans débordement */
.btn-sm { min-height: 44px; }
.fav-btn { width: 44px; height: 44px; }
.search button { min-width: 44px; min-height: 44px; }
.qty { height: 46px; }
.qty button { width: 44px; min-height: 44px; }
.cart-line select, .l-var select { min-height: 44px; }
.subcats a, .chip { min-height: 44px; }
.chip { padding-top: 0; padding-bottom: 0; }
.summary { grid-template-columns: minmax(0, 1fr); }
.summary .line { flex-wrap: wrap; }
.summary .line > :last-child { margin-left: auto; text-align: right; }
.cart-aside, .card-box { min-width: 0; }
@media (max-width: 380px) { .qty input { width: 28px; } }
.add-btn { min-width: 44px; min-height: 44px; }
.toolbar select, select.input, .cart-line select { min-height: 44px; }
.link-btn { min-height: 44px; display: inline-flex; align-items: center; }
.section-head .more, a.more { min-height: 44px; display: inline-flex; align-items: center; }
.card-title { display: block; min-height: 44px; }
.logo { min-height: 44px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-footer li { margin: 0; }
select[data-gov] { min-height: 44px; }


