/* tokens.css */
/* police de secours aux proportions proches de Manrope : le texte ne « saute » pas quand Manrope arrive */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 107%; ascent-override: 100%; descent-override: 28%; line-gap-override: 0%; }
:root {
  --forest: #063B2C;
  --green: #087F5B;
  --green-light: #DFF2E9;
  --white: #FFFFFF;
  --bg: #F7F9F7;
  --text: #102A24;
  --text-2: #64746E;
  --border: #E1E8E4;
  --danger: #B3261E;

  --font: "Manrope", "Manrope Fallback", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 5rem;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(6, 59, 44, .08);
  --shadow-md: 0 8px 24px rgba(6, 59, 44, .10);
  --container: 1280px;
  --header-h: 72px;
  --bottom-nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* base.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6;
  color: var(--text); background: var(--bg); overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--sp-3); }
p { margin: 0 0 var(--sp-4); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 1024px) { .container { padding-inline: var(--sp-6); } }
.section { padding-block: var(--sp-7); }
@media (min-width: 1024px) { .section { padding-block: var(--sp-8); } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-xl); margin: 0; }
.section-head p { color: var(--text-2); margin: var(--sp-1) 0 0; }
.link-more { color: var(--green); font-weight: 700; }
.link-more:hover { text-decoration: underline; }

body { padding-bottom: var(--bottom-nav-h); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* place réservée à l'en-tête (injecté par JavaScript) : la page ne se décale pas à son arrivée */
#app-header:empty { display: block; min-height: 64px; }
@media (min-width: 1024px) { #app-header:empty { min-height: calc(var(--header-h) + 37px); } }

/* components.css */
/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--radius-sm); font-weight: 700; transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--forest); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { border: 1.5px solid var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-light); }
.btn-block { width: 100%; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn:hover { background: var(--green-light); }
.icon-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge-count:empty, .badge-count[data-n="0"] { display: none; }

/* ---------- Header ---------- */
.topbar { background: var(--forest); color: #fff; font-size: var(--fs-xs); display: none; }
.topbar .container { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: 8px; }
.topbar ul { display: flex; gap: var(--sp-5); }
@media (min-width: 1024px) { .topbar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: var(--sp-2); }
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: center; }
.logo svg { width: 34px; height: 34px; }
.logo b { display: block; font-size: 1.2rem; font-weight: 800; color: var(--forest); letter-spacing: .02em; line-height: 1; }
.logo small { display: none; color: var(--text-2); font-size: 11px; }
.header-actions { display: flex; justify-content: end; align-items: center; }
.header-left { display: flex; align-items: center; }
.main-nav { display: none; }
.desktop-only { display: none; }
@media (min-width: 1024px) {
  .header-main { grid-template-columns: auto 1fr auto; height: var(--header-h); gap: var(--sp-6); }
  .logo { justify-self: start; }
  .logo small { display: block; }
  .main-nav { display: block; }
  .main-nav > ul { display: flex; gap: var(--sp-5); justify-content: center; }
  .main-nav a { font-weight: 600; font-size: var(--fs-sm); padding-block: var(--sp-2); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
  .header-left { display: none; }
  .menu-toggle { display: none; }
  .desktop-only { display: grid; }
}
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -12px; min-width: 240px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: var(--sp-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); }
.sub a:hover { background: var(--green-light); }

/* ---------- Drawer mobile / panier ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6,59,44,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(92vw, 400px); background: #fff; z-index: 100; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4); border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: var(--fs-lg); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-3) var(--sp-4); }
.drawer-foot { padding: var(--sp-4); border-top: 1px solid var(--border); display: grid; gap: var(--sp-3); }
.mobile-links a { display: flex; align-items: center; min-height: 56px; font-size: 1.125rem; font-weight: 700; border-bottom: 1px solid var(--border); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--sp-3); padding-block: var(--sp-3); border-bottom: 1px solid var(--border); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--green-light); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qty button { width: 36px; height: 36px; font-size: 1.1rem; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.125rem; }
.empty { text-align: center; color: var(--text-2); padding: var(--sp-7) var(--sp-4); }

/* ---------- Bottom nav mobile ---------- */
.bottom-nav { position: fixed; inset: auto 0 0 0; height: var(--bottom-nav-h); background: #fff; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.bottom-nav a[aria-current="page"] { color: var(--green); }
.bottom-nav svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav .badge-count { top: 6px; right: calc(50% - 24px); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 78svh; display: flex; align-items: flex-end; background: var(--forest) center/cover no-repeat; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,59,44,.35), rgba(6,59,44,.78)); z-index: 0; }
.hero .container { position: relative; z-index: 1; padding-block: var(--sp-7); }
.hero .eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; color: var(--green-light); margin-bottom: var(--sp-3); }
.hero h1 { font-size: var(--fs-2xl); max-width: 14ch; }
.hero p { max-width: 46ch; font-size: 1.0625rem; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-cta .btn { flex: 1 1 220px; }
.hero-badge { display: inline-flex; margin-top: var(--sp-5); padding: 6px 14px; border-radius: 999px; background: var(--green-light); color: var(--forest); font-weight: 800; font-size: var(--fs-xs); }
@media (min-width: 1024px) { .hero { min-height: 620px; align-items: center; } .hero-cta .btn { flex: 0 0 auto; } .hero::before { background: linear-gradient(90deg, rgba(6,59,44,.8), rgba(6,59,44,.15)); } }

/* ---------- Réassurance ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--border); }
.trust ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); padding-block: var(--sp-5); }
.trust li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.trust svg { flex: none; width: 32px; height: 32px; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; font-size: var(--fs-sm); }
.trust span { font-size: var(--fs-xs); color: var(--text-2); display: block; line-height: 1.4; }
@media (min-width: 1024px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes catégories ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.cat-card { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #0b0b0b; color: #fff; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img, .cat-card .cat-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0b0b; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 80%); pointer-events: none; }
.cat-card__body { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 62%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: var(--sp-5); }
.cat-card h3 { margin: 0; color: #fff; font-size: clamp(1.3rem, 5vw, 1.9rem); line-height: 1.15; }
.cat-card p { margin: 0; color: #e8e8e8; font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card__btn { margin-top: 8px; background: #F25C05; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: var(--fs-sm); border-radius: 999px; padding: 12px 24px; }
.cat-card:hover .cat-card__btn { background: #d94f00; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes produits ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }
.p-card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.p-media { position: relative; display: block; aspect-ratio: 1; background: var(--green-light); }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--green-light); color: var(--forest); }
.tag-promo { background: var(--forest); color: #fff; }
.fav { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .15s; }
.fav:active { transform: scale(.88); }
.fav svg { width: 20px; height: 20px; stroke: var(--forest); fill: none; stroke-width: 1.9; }
.fav[aria-pressed="true"] svg { fill: var(--green); stroke: var(--green); }
.p-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-title { font-size: var(--fs-sm); font-weight: 800; margin: 0; line-height: 1.3; }
.p-format { font-size: var(--fs-xs); color: var(--text-2); }
.rating { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); }
.stars { --pct: 0%; position: relative; display: inline-block; font-size: 14px; letter-spacing: 2px; color: #C9D6D0; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: var(--green); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-2); }
.price b { font-size: 1.25rem; font-weight: 800; color: var(--forest); }
.price s { color: var(--text-2); font-size: var(--fs-xs); }
.price em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--green); }
.p-actions { padding: 0 var(--sp-3) var(--sp-3); }
.p-actions .btn { min-height: 44px; width: 100%; padding: 0 var(--sp-3); font-size: var(--fs-sm); }
.btn.is-added { background: var(--forest); animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.04); } }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #E8EFEB 25%, #F3F7F5 50%, #E8EFEB 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 16px); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 380px); }
@media (min-width: 1024px) { .toasts { bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast { background: var(--forest); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-weight: 600; animation: toast-in .25s var(--ease); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #D5E6DE; padding-top: var(--sp-7); margin-top: var(--sp-7); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-3); }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding-block: 5px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo b { color: #fff; }
.site-footer .logo small { display: block; color: #A9C7BA; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: var(--sp-6); padding-block: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between; font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.pay-list span { background: #fff; color: var(--forest); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 800; }

/* ---------- Recherche (modale), cookies, newsletter, utilitaires partagés ---------- */
.search-modal { position: fixed; z-index: 120; top: 0; left: 0; right: 0; background: #fff; padding: var(--sp-4); max-height: 85vh; overflow: auto; box-shadow: var(--shadow-md); }
.search-modal[hidden] { display: none; }
@media (min-width: 768px) { .search-modal { left: 50%; transform: translateX(-50%); width: min(640px, 94vw); top: 12vh; border-radius: var(--radius); } }
.search-modal form { display: flex; gap: 8px; align-items: center; }
.search-modal input[type="search"] { flex: 1; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.search-modal input[type="search"]:focus { border-color: var(--green); outline: 3px solid var(--green-light); }
#search-results { margin-top: var(--sp-3); }
#search-results h3 { font-size: var(--fs-sm); color: var(--text-2); margin: var(--sp-3) 0 var(--sp-2); text-transform: uppercase; letter-spacing: .04em; }
#search-results ul { list-style: none; margin: 0; padding: 0; }
#search-results li a { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: var(--radius-sm); }
#search-results li a:hover { background: var(--green-light); }
.sr-products li a span:nth-last-child(2) { flex: 1; display: grid; }
.sr-products small { color: var(--text-2); }
.sr-products img, .sr-ph { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--green-light); }
.muted { color: var(--text-2); }
.todo { background: #FFF4CC; color: #7A5B00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.newsletter { display: grid; gap: var(--sp-3); padding: var(--sp-5) 0 var(--sp-4); border-top: 1px solid rgba(255,255,255,.15); margin-top: var(--sp-5); }
.newsletter h3 { margin: 0 0 4px; }
.newsletter p { margin: 0; }
.nl-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-fields input[type="email"] { flex: 1 1 220px; min-height: 46px; padding: 0 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font: inherit; color: var(--text); background: #fff; }
.nl-consent { font-size: var(--fs-xs); }
.nl-msg { min-height: 1.2em; font-size: var(--fs-sm); font-weight: 600; }
.nl-msg.is-ok { color: var(--green-light); }
.nl-msg.is-err { color: #FFD7D2; }
.newsletter--light { border: 0; background: #fff; border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.newsletter--light .nl-msg.is-ok { color: var(--green); }
.newsletter--light .nl-msg.is-err { color: var(--danger); }
@media (min-width: 768px) { .newsletter { grid-template-columns: 1fr 1fr; align-items: center; } .newsletter .nl-consent, .newsletter .nl-msg { grid-column: 2; } }

.consent-banner { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 12px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: var(--sp-4); display: grid; gap: var(--sp-3); border: 1px solid var(--border); }
.consent-banner p { margin: 0; font-size: var(--fs-sm); }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 auto; min-height: 44px; }
@media (min-width: 1024px) { .consent-banner { left: auto; right: 20px; bottom: 20px; max-width: 460px; } }
.consent-modal { position: fixed; inset: 0; z-index: 210; background: rgba(6,59,44,.55); display: grid; place-items: center; padding: var(--sp-4); }
.consent-box { background: #fff; border-radius: var(--radius); padding: var(--sp-5); width: min(520px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: var(--sp-3); }
.consent-box h2 { margin: 0; font-size: var(--fs-lg); }
.consent-row { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; padding-block: var(--sp-2); border-bottom: 1px solid var(--border); }
.consent-row p { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.consent-row input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }

.adm-link { display: none; font-size: 1.3rem; }
@media (min-width: 1024px) { .adm-link { display: grid; } }

.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-3); }
.subcats a { background: var(--green-light); color: var(--forest); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: var(--fs-sm); }
.subcats a:hover { background: var(--green); color: #fff; }


/* Menu : catégories et sous-catégories */
.mobile-links a.d1 { padding-left: 24px; font-size: .95em; font-weight: 600; }
.mobile-links a.d2 { padding-left: 44px; font-size: .9em; font-weight: 500; color: var(--text-2); }
.main-nav .sub-scroll { max-height: 70vh; overflow-y: auto; min-width: 240px; }
.main-nav .sub a.d1 { padding-left: 26px; font-size: .94em; }
.main-nav .sub a.d2 { padding-left: 42px; font-size: .9em; color: var(--text-2); }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; z-index: 85; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; }
body:has(.sticky-buy) .wa-float { bottom: calc(var(--bottom-nav-h) + 84px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .wa-float, body:has(.sticky-buy) .wa-float { bottom: 24px; right: 24px; } }
.topbar .lang-switch a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Chat en direct */
.chat-fab { position: fixed; z-index: 85; left: 16px; bottom: calc(var(--bottom-nav-h, 0px) + 16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border: 0; border-radius: 50%; background: #087F5B; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(4,35,26,.35); }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab:focus-visible { outline: 3px solid #14B885; outline-offset: 3px; }
.chat-dot { position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: #e0452b; border: 2px solid #fff; }
.chat-panel { position: fixed; z-index: 95; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h, 0px) + 84px + env(safe-area-inset-bottom, 0px)); max-width: 360px; max-height: 70vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(4,35,26,.35); }
.chat-panel[hidden] { display: none; }
.chat-panel header { background: linear-gradient(135deg, #04231A, #063B2C); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.chat-x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-log { padding: 12px; overflow-y: auto; flex: 1; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.chat-m { margin: 0; padding: 8px 12px; border-radius: 14px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.chat-m--a { background: #E4EFE9; align-self: flex-start; }
.chat-m--v { background: #087F5B; color: #fff; align-self: flex-end; }
.chat-err { background: #fde8e4; color: #8a2a1a; align-self: stretch; max-width: 100%; }
.chat-form { display: grid; gap: 6px; padding: 10px; border-top: 1px solid #E4E8E2; }
.chat-form input, .chat-form textarea { font: inherit; padding: 9px 10px; border: 1px solid #cfd9d3; border-radius: 10px; width: 100%; box-sizing: border-box; }

/* Menu mobile : photos de produits au hasard, une par catégorie */
.menu-showcase { margin-top: var(--sp-4, 16px); padding-top: var(--sp-3, 12px); border-top: 1px solid var(--border); }
.menu-showcase[hidden] { display: none; }
.menu-showcase__title { margin: 0 0 8px; font-weight: 800; color: var(--text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.menu-showcase ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.menu-showcase a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--green-light); }
.menu-showcase img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-showcase span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(transparent, rgba(4,35,26,.82)); }

/* Pied de page : rubriques repliables sur mobile */
.footer-col summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: default; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary svg { display: none; transition: transform .2s ease; color: #A9C7BA; }
.footer-col summary h3 { margin-bottom: var(--sp-3); }
@media (max-width: 767px) {
  .footer-grid { gap: 0; }
  .footer-grid > div:first-child { padding-bottom: var(--sp-5); }
  .footer-col { border-top: 1px solid rgba(255,255,255,.15); }
  .footer-col summary { cursor: pointer; padding-block: 16px; }
  .footer-col summary h3 { margin: 0; }
  .footer-col summary svg { display: block; }
  .footer-col[open] summary svg { transform: rotate(180deg); }
  .footer-col ul { padding-bottom: 14px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* bouton de chat : prend la place du bouton WhatsApp (en bas à droite) quand celui-ci est masqué (Réglages → Boutons flottants) */
body:not(:has(.wa-float)):not(:has(.consent-banner:not([hidden]))) .chat-fab { left: auto; right: 16px; }

/* pages.css */
/* Pages catalogue / catégorie / produit */
.page-head { padding-block: var(--sp-5) var(--sp-4); }
.page-head h1 { font-size: var(--fs-xl); margin: var(--sp-2) 0; }
.page-head p { color: var(--text-2); max-width: 70ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }

.cat-hero { height: 180px; background: var(--green-light) center/cover; border-radius: var(--radius); margin-bottom: var(--sp-4); }
@media (min-width: 1024px) { .cat-hero { height: 260px; } }

.shop { display: grid; gap: var(--sp-5); }
@media (min-width: 1024px) { .shop { grid-template-columns: 270px 1fr; align-items: start; } }

.filters { background: #fff; border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-4); }
.filters legend { font-weight: 800; margin-bottom: var(--sp-2); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .input { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--text); }
.field input:focus, .field select:focus, .input:focus { border-color: var(--green); outline: 3px solid var(--green-light); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.filter-toggle { width: 100%; margin-bottom: var(--sp-3); }
.filters-body { display: none; }
.filters.is-open .filters-body { display: block; }
@media (min-width: 1024px) { .filter-toggle { display: none; } .filters-body { display: block; } .filters { position: sticky; top: calc(var(--header-h) + 16px); } }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.toolbar .count { color: var(--text-2); font-size: var(--fs-sm); }
.toolbar select { width: auto; min-width: 190px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: var(--sp-6); }
.pg { min-width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: #fff; font-weight: 700; }
.pg:hover:not(:disabled) { border-color: var(--green); }
.pg.is-cur { background: var(--green); color: #fff; border-color: var(--green); }
.pg:disabled { opacity: .4; cursor: not-allowed; }

/* Produit */
.product { display: grid; gap: var(--sp-5); padding-bottom: var(--sp-6); }
@media (min-width: 1024px) { .product { grid-template-columns: 1.1fr 1fr; gap: var(--sp-7); } }
.product-info h1 { font-size: var(--fs-xl); }
.product-info .price b { font-size: 2rem; }
.product-info .price s { font-size: var(--fs-sm); }
.meta-line { display: flex; flex-wrap: wrap; gap: var(--sp-3); color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.buy-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block: var(--sp-4); align-items: center; }
.buy-row .btn { flex: 1 1 200px; }
.assurance { display: grid; gap: 6px; padding: var(--sp-4); background: #fff; border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; }
.assurance li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.specs th { width: 45%; color: var(--text-2); font-weight: 600; background: var(--bg); }
.notice { background: var(--green-light); color: var(--forest); border-radius: var(--radius); padding: var(--sp-5); text-align: center; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: var(--bottom-nav-h); background: #fff; border-top: 1px solid var(--border); padding: 10px var(--sp-4); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); z-index: 55; }
.sticky-buy b { font-size: 1.2rem; color: var(--forest); }
.sticky-buy .btn { min-height: 46px; }
@media (min-width: 1024px) { .sticky-buy { display: none; } }

/* Introduction de catégorie */
.cat-intro { display: grid; gap: var(--sp-4); margin-top: var(--sp-3); }
.cat-intro .cat-text p { margin: 0 0 var(--sp-3); }
.cat-more { max-height: 3.4em; overflow: hidden; color: var(--text-2); }
.cat-more.is-open { max-height: none; }
.cat-more p { margin: 0 0 var(--sp-3); }
.cat-toggle { font-weight: 700; text-decoration: underline; color: var(--text); margin-top: var(--sp-2); }
.cat-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); background: var(--green-light); }
@media (min-width: 560px) { .cat-intro.has-img { grid-template-columns: 1fr minmax(200px, 34%); align-items: start; } .cat-img { max-height: none; aspect-ratio: 4 / 3; } }

/* Galerie produit */
.gallery { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--green-light); border-radius: var(--radius); overflow: hidden; touch-action: pan-y; }
.gallery-main:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--forest); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.g-arrow:hover { background: #fff; }
.g-arrow svg, .g-zoom svg, .lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-prev { left: 10px; } .g-next { right: 10px; }
.g-count { position: absolute; left: 10px; bottom: 10px; background: rgba(6,59,44,.8); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.g-zoom { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--forest); display: grid; place-items: center; cursor: pointer; }
.thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--green-light); cursor: pointer; opacity: .75; }
.thumbs button[aria-current="true"] { border-color: var(--green); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: #0a1612; display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px; }
.lb-bar .g-count { position: static; margin-right: auto; background: rgba(255,255,255,.15); }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn[aria-pressed="true"] { background: var(--green); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s var(--ease); user-select: none; }
.lb-img.is-zoomed { transform: scale(2.2); cursor: zoom-out; }
.lightbox .g-arrow { background: rgba(255,255,255,.18); color: #fff; }
.lightbox .g-arrow:hover { background: rgba(255,255,255,.3); }
@media (max-width: 639px) { .g-arrow { width: 38px; height: 38px; } .lightbox .g-arrow { display: none; } }
.product > div { min-width: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; }
