/* ==========================================================================
   BRIE BOIS EALET (boischezmoi.com) — feuille de style unique.
   Organisation : 1 jetons · 2 base · 3 utilitaires · 4 en-tête · 5 accueil
   6 catalogue · 7 fiche produit · 8 panier & caisse · 9 contenu · 10 pied
   11 responsive · 12 impression.
   Aucune dépendance, aucune police distante : tout est local.
   ========================================================================== */

/* --- 1. Jetons de design ------------------------------------------------- */
:root {
  /* Couleurs. Le brun-braise est la couleur d'action ; le vert forêt sert
     aux signaux positifs (stock, livraison confirmée). */
  --brand:        #8B2F14;
  --brand-dark:   #6E2410;
  --brand-light:  #C4552B;
  --brand-wash:   #FBF1EC;
  --ember:        #E2761B;
  --forest:       #2C5241;
  --forest-light: #3E7359;

  --ink:          #211D1A;
  --ink-2:        #4A433D;
  --ink-3:        #756C64;
  --line:         #E3DCD2;
  --line-strong:  #CFC5B8;
  --bg:           #FFFFFF;
  --bg-2:         #FAF7F2;
  --bg-3:         #F3EDE4;
  --bg-dark:      #1E1A17;

  --ok:           #2F7D4F;
  --ok-bg:        #EAF5EE;
  --warn:         #A66A00;
  --warn-bg:      #FDF4E3;
  --err:          #B3261E;
  --err-bg:       #FDECEA;

  /* Typographie fluide : une seule échelle, pas de media query pour le texte. */
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", var(--font);
  --fs-xs:  .75rem;
  --fs-sm:  .8438rem;
  --fs-md:  .9375rem;
  --fs-lg:  1.0625rem;
  --fs-xl:  clamp(1.15rem, 1.02rem + .5vw, 1.4rem);
  --fs-2xl: clamp(1.4rem, 1.2rem + .9vw, 1.95rem);
  --fs-3xl: clamp(1.75rem, 1.4rem + 1.7vw, 2.8rem);

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

  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(33,29,26,.06), 0 1px 3px rgba(33,29,26,.05);
  --sh-2: 0 2px 6px rgba(33,29,26,.07), 0 8px 24px rgba(33,29,26,.06);
  --sh-3: 0 12px 40px rgba(33,29,26,.14);
  --wrap: 1280px;
  --head-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Thèmes clair et sombre.
   Le visiteur choisit avec le bouton soleil/lune de l'en-tête ; son choix est
   gardé dans son navigateur. Sans choix, le site suit le réglage de l'appareil
   (assets/js/theme.js pose data-theme sur <html> avant l'affichage). */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F2EDE7; --ink-2: #CFC6BC; --ink-3: #9C9289;
  --bg: #17140F; --bg-2: #1E1A15; --bg-3: #262019;
  --line: #342D25; --line-strong: #453C31;
  --brand: #D9663C; --brand-dark: #C4552B; --brand-light: #E88755; --brand-wash: #2A1B14;
  --ok-bg: #16281D; --warn-bg: #2A2110; --err-bg: #2B1512;
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 4px 18px rgba(0,0,0,.45);
  --sh-3: 0 16px 48px rgba(0,0,0,.6);
}
/* Éléments qui utilisent l'encre comme fond : couleurs inversées en sombre. */
:root[data-theme="dark"] .btn-dark,
:root[data-theme="dark"] .toast { background: #F2EDE7; color: #17140F; }
:root[data-theme="dark"] .btn-dark:hover { background: #FFFFFF; color: #17140F; }
:root[data-theme="dark"] .topbar { background: #0E0C09; border-bottom: 1px solid #2A241D; }
:root[data-theme="dark"] .fb-top { background: #3A322A; }
:root[data-theme="dark"] img { filter: brightness(.92); }

/* Bouton de changement de thème */
.theme-toggle { border: 0; background: none; cursor: pointer; font: inherit; }
.theme-toggle .i { width: 1.45rem; height: 1.45rem; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* --- 2. Base ------------------------------------------------------------- */
*, *::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 { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--fs-md)/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 var(--sp-3); letter-spacing: -.012em; }
h1 { font-size: var(--fs-3xl); } h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); } h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
small { font-size: var(--fs-sm); }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brand);
  color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* --- 3. Utilitaires et composants transverses ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 var(--fs-md)/1 var(--font); padding: .82em 1.35em; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .16s var(--ease), color .16s, border-color .16s, transform .08s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-block { white-space: normal; line-height: 1.3; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-lg { font-size: var(--fs-lg); padding: .95em 1.7em; }
.btn-sm { font-size: var(--fs-sm); padding: .6em 1em; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: .35em; font-size: var(--fs-xs);
  font-weight: 700; padding: .28em .62em; border-radius: var(--r-full);
  letter-spacing: .02em; text-transform: uppercase;
}
.badge-sale { background: var(--brand); color: #fff; }
.badge-new  { background: var(--forest); color: #fff; }
.badge-top  { background: var(--ember); color: #24170a; }
.badge-out  { background: var(--bg-3); color: var(--ink-3); }

.tag { display: inline-block; font-size: var(--fs-xs); background: var(--bg-3);
       color: var(--ink-2); padding: .25em .6em; border-radius: var(--r-sm); }

.flash {
  border-radius: var(--r); padding: .9rem 1.1rem; margin: var(--sp-4) 0;
  border: 1px solid var(--line); background: var(--bg-2); font-weight: 500;
}
.flash-ok  { background: var(--ok-bg);  border-color: #B7DDC5; color: #1D5637; }
.flash-err { background: var(--err-bg); border-color: #F1C2BE; color: #8A1B15; }
.flash-warn{ background: var(--warn-bg);border-color: #EBD6A5; color: #7A4E00; }

.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
        padding: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
.note-hint { border-left: 3px solid var(--ember); }

.stars { color: var(--ember); letter-spacing: .04em; font-size: .95em; }
.stars .star { color: var(--line-strong); }
.stars .star.on { color: var(--ember); }
.stars-n { color: var(--ink-3); font-size: var(--fs-sm); margin-left: .35em; }

.price { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.28rem; letter-spacing: -.02em; }
.price-old { color: var(--ink-3); text-decoration: line-through; font-weight: 400; font-size: .9rem; margin-right: .45em; }
.price-base { color: var(--ink-3); font-size: var(--fs-xs); }
.price-vat { color: var(--ink-3); font-size: var(--fs-xs); }

.field { margin-bottom: var(--sp-4); }
.field > label, .lbl { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .35rem; }
.field .help { font-size: var(--fs-xs); color: var(--ink-3); margin: .3rem 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=search],
input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; font: var(--fs-md)/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: .72rem .85rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); outline: none;
}
input[aria-invalid=true], .is-error input { border-color: var(--err); }
textarea { min-height: 7.5rem; resize: vertical; }
select { appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23756C64' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1.1em; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--brand); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.g-street { display: grid; grid-template-columns: 3fr 1fr; gap: var(--sp-3); }
.g-plz { display: grid; grid-template-columns: 1fr 2.2fr; gap: var(--sp-3); }

.section { padding: var(--sp-7) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.section-head p { color: var(--ink-3); margin: .2rem 0 0; }
.section-head .more { font-weight: 600; white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-xs);
           font-weight: 700; color: var(--brand); margin: 0 0 .4rem; }

/* --- 4. En-tête ---------------------------------------------------------- */
.topbar { background: #211D1A; color: #F3EEE8; font-size: var(--fs-xs); }
.topbar a, .topbar .tb-item { color: #F3EEE8; }
.topbar-in { display: flex; gap: var(--sp-5); align-items: center; height: 34px; overflow: hidden; }
.tb-item { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.tb-item .i { opacity: .9; color: #F3EEE8; }
.tb-phone { margin-left: auto; color: #fff; font-weight: 600; }
.tb-phone:hover { text-decoration: none; color: var(--ember); }

.site-head { position: sticky; top: 0; z-index: 60; background: var(--bg);
             border-bottom: 1px solid var(--line); }
.site-head.is-stuck { box-shadow: var(--sh-2); }
.head-row { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem;
              letter-spacing: -.02em; text-transform: uppercase; }
.brand-claim { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }

.searchbox { position: relative; flex: 1 1 auto; max-width: 620px; display: flex; }
.searchbox input {
  width: 100%; padding: .72rem 3rem .72rem 1rem; border-radius: var(--r-full);
  background: var(--bg-2); border: 1px solid var(--line);
}
.searchbox button {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px;
  border: 0; border-radius: var(--r-full); background: var(--brand); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.searchbox button:hover { background: var(--brand-dark); }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.suggest a { display: flex; gap: .75rem; align-items: center; padding: .6rem .85rem; color: var(--ink); }
.suggest a:hover, .suggest a.is-active { background: var(--bg-3); text-decoration: none; }
.suggest img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-3); }
.suggest .s-name { font-weight: 600; font-size: var(--fs-sm); }
.suggest .s-meta { font-size: var(--fs-xs); color: var(--ink-3); }
.suggest .s-price { margin-left: auto; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.suggest .s-all { display: block; text-align: center; padding: .65rem; font-weight: 600;
                  font-size: var(--fs-sm); background: var(--bg-2); }

.head-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex: none; }
.hd-btn { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
          padding: .45rem .6rem; border-radius: var(--r); color: var(--ink); position: relative; }
.hd-btn:hover { background: var(--bg-3); text-decoration: none; }
.hd-btn .i { width: 1.45rem; height: 1.45rem; }
.hd-btn-label { font-size: var(--fs-xs); font-weight: 600; }
.cart-count {
  position: absolute; top: .1rem; right: .25rem; min-width: 19px; height: 19px;
  background: var(--brand); color: #fff; border-radius: var(--r-full);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
}
.cart-count.is-zero { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.burger, .burger::before, .burger::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s var(--ease), opacity .15s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
[aria-expanded=true] .burger { background: transparent; }
[aria-expanded=true] .burger::before { transform: translateY(7px) rotate(45deg); }
[aria-expanded=true] .burger::after  { transform: translateY(-7px) rotate(-45deg); }

.mainnav { border-top: 1px solid var(--line); background: var(--bg); }
.nav-row { display: flex; align-items: center; gap: .3rem; height: 48px; }
.nav-row > a { color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm);
               padding: .55rem .8rem; border-radius: var(--r); white-space: nowrap; }
.nav-row > a:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.nav-row > a[aria-current=page] { color: var(--brand); }
.nav-hot { color: var(--brand) !important; }
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: .45rem; height: 36px; padding: 0 1rem;
  background: var(--brand); color: #fff; border: 0; border-radius: var(--r);
  font: 700 var(--fs-sm)/1 var(--font); cursor: pointer; margin-right: .5rem;
}
.nav-drop-btn:hover { background: var(--brand-dark); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: min(92vw, 680px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: .6rem; display: none;
  grid-template-columns: 1fr 1fr; gap: .2rem;
}
.nav-drop.is-open .nav-panel { display: grid; }
.nav-cat { display: flex; gap: .7rem; align-items: center; padding: .55rem; border-radius: var(--r); color: var(--ink); }
.nav-cat:hover { background: var(--bg-3); text-decoration: none; }
.nav-cat-img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-3); }
.nav-cat strong { display: block; font-size: var(--fs-sm); }
.nav-cat em { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }

.crumbs { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.crumbs .wrap { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .55rem 0; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }

/* --- 5. Accueil ---------------------------------------------------------- */
.hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,16,12,.94) 8%, rgba(20,16,12,.72) 44%, rgba(20,16,12,.25) 100%); }
.hero-in { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 6rem) 0; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero p.lead { font-size: var(--fs-lg); color: #E8E0D6; margin-bottom: var(--sp-5); }
.hero .eyebrow { color: var(--ember); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6); }
.hero-points li { list-style: none; display: flex; gap: .5rem; align-items: center;
                  font-size: var(--fs-sm); color: #E8E0D6; }
.hero-points .i { color: var(--ember); }
.hero-points ul { margin: 0; padding: 0; }

.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-4); }
.cat-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
            background: var(--bg-3); color: #fff; aspect-ratio: 4/3; box-shadow: var(--sh-1); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card:hover { text-decoration: none; }
.cat-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,14,10,.88) 6%, rgba(18,14,10,.15) 62%); }
.cat-card-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--sp-4); }
.cat-card-txt strong { display: block; font-size: var(--fs-lg); font-family: var(--font-head); }
.cat-card-txt span { font-size: var(--fs-xs); opacity: .85; }

.usp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
           gap: var(--sp-4); background: var(--bg-2); border-block: 1px solid var(--line);
           padding: var(--sp-5) 0; }
.usp { display: flex; gap: .8rem; align-items: flex-start; }
.usp .i { width: 1.9rem; height: 1.9rem; color: var(--brand); flex: none; }
.usp strong { display: block; font-size: var(--fs-md); }
.usp span { font-size: var(--fs-xs); color: var(--ink-3); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.tick { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.tick li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; font-size: var(--fs-md); }
.tick .i { color: var(--ok); margin-top: .18em; }

.trust-band { background: var(--forest); color: #fff; padding: var(--sp-6) 0; }
.trust-band .num { font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: 800; display: block; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-5); text-align: center; }
.trust-grid span.lbl { font-size: var(--fs-sm); opacity: .82; }

/* --- 6. Catalogue -------------------------------------------------------- */
/* Filtres en bandeau au-dessus de la liste de produits */
.catalog { display: block; }
.filters { position: static; background: var(--bg-2); border: 1px solid var(--line);
           border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); }
.filters form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-4) var(--sp-6); }
.filters h3 { flex-basis: 100%; font-size: var(--fs-md); margin: 0; }
.f-group { border: 0; padding: 0; margin: 0; min-width: 150px; }
.f-group > strong { display: block; font-size: var(--fs-sm); margin-bottom: .5rem; }
.f-group-opts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; max-width: 520px; }
.f-opt { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); margin: 0; color: var(--ink-2); white-space: nowrap; }
.f-opt input { accent-color: var(--brand); }
.f-opt .n { color: var(--ink-3); font-size: var(--fs-xs); }
.f-actions { margin-left: auto; align-self: flex-end; display: flex; align-items: center; gap: var(--sp-3); }
.f-actions .btn { width: auto; }
.f-price { display: grid; grid-template-columns: 90px 90px; gap: .5rem; }
.f-price input { padding: .5rem; font-size: var(--fs-sm); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
           margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.toolbar .count { color: var(--ink-3); font-size: var(--fs-sm); }
.toolbar form { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.toolbar select { width: auto; font-size: var(--fs-sm); padding: .5rem 2.2rem .5rem .7rem; }
.filter-toggle { display: none; }

.products { display: grid; gap: var(--sp-4);
            grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.products.is-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: var(--line-strong); }
.card-media { position: relative; display: block; aspect-ratio: 1/1; background: var(--bg-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-flags { position: absolute; top: .55rem; left: .55rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-4); gap: .35rem; }
.card-cat { font-size: var(--fs-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card h3, .card-title { font-size: var(--fs-md); line-height: 1.35; margin: 0; font-weight: 700; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card-meta { font-size: var(--fs-xs); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.card-price { margin-top: auto; padding-top: var(--sp-3); }
.card-stock { font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; gap: .3em; }
.card-stock.ok   { color: var(--ok); }
.card-stock.low  { color: var(--warn); }
.card-stock.out  { color: var(--ink-3); }
.card-stock .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card-actions { display: flex; gap: .5rem; padding: 0 var(--sp-4) var(--sp-4); }
.card-actions .btn { flex: 1; }

.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center;
              align-items: center; margin: var(--sp-6) 0 0; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 .7rem; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-sm);
  color: var(--ink-2); font-weight: 600;
}
.pagination a:hover { background: var(--bg-3); text-decoration: none; }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; }

.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--ink-3); }
.empty-state .i { width: 3rem; height: 3rem; color: var(--line-strong); margin: 0 auto var(--sp-3); }

/* --- 7. Fiche produit ---------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: var(--sp-6); align-items: start; }
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
                overflow: hidden; background: var(--bg-3); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-3); cursor: pointer;
}
.gallery-thumbs button[aria-current=true] { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { position: sticky; top: calc(var(--head-h) + 58px); border: 1px solid var(--line);
          border-radius: var(--r-lg); padding: var(--sp-5); background: var(--bg-2); box-shadow: var(--sh-1); }
.buybox .price { font-size: 2rem; display: block; }
.pdp h1 { font-size: var(--fs-2xl); margin-bottom: .4rem; }
.pdp-sub { color: var(--ink-2); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.pdp-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: var(--fs-xs);
            color: var(--ink-3); margin-bottom: var(--sp-4); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
       border-radius: var(--r); overflow: hidden; background: var(--bg); }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; color: var(--ink);
              font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--bg-3); }
.qty input { width: 56px; height: 44px; border: 0; border-inline: 1px solid var(--line);
             text-align: center; font-weight: 700; border-radius: 0; padding: 0; background: var(--bg); }
.buy-row { display: flex; gap: .6rem; margin: var(--sp-4) 0; }
.buy-row .btn { flex: 1; }
.tiers { width: 100%; font-size: var(--fs-sm); margin: var(--sp-3) 0; }
.tiers th, .tiers td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.tiers tr.is-best td { background: var(--brand-wash); font-weight: 700; }
.ship-check { margin-top: var(--sp-4); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.ship-check .row { display: flex; gap: .5rem; }
.ship-check input { flex: 1; }
.ship-result { font-size: var(--fs-sm); margin-top: .6rem; }

.tabs { margin-top: var(--sp-7); }
.tab-btns { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tab-btns button {
  border: 0; background: none; padding: .8rem 1.1rem; font: 700 var(--fs-md)/1 var(--font);
  color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tab-btns button[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { padding: var(--sp-5) 0; }
.tab-panel[hidden] { display: none; }
.sum-row[hidden] { display: none; }
.nav-mobile-only { display: none; }

/* Preuve de paiement (confirmation et suivi de commande) */
.proof-card { margin-bottom: var(--sp-4); border: 1px solid var(--line-strong); }
.proof-intro { margin: .2rem 0 var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); }
.proof-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: .45rem; }
.proof-list li { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); flex-wrap: wrap;
                 background: var(--ok-bg); border-radius: var(--r); padding: .55rem .75rem; }
.proof-list li .i { color: var(--ok); flex: none; }
.proof-list li span { font-weight: 600; overflow-wrap: anywhere; }
.proof-list li small { color: var(--ink-3); margin-left: auto; }
.proof-form .lbl { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .4rem; }
.proof-input { display: block; width: 100%; max-width: 100%; font: var(--fs-sm)/1.4 var(--font); color: var(--ink-2);
               padding: .6rem; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg-2);
               cursor: pointer; }
.proof-input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.proof-input::file-selector-button { font: 600 var(--fs-sm)/1 var(--font); margin-right: .8rem; padding: .7rem 1rem;
               border: 0; border-radius: var(--r); background: var(--brand); color: #fff; cursor: pointer; }
.proof-form .btn { margin-top: var(--sp-3); }
.proof-safe { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; }
.proof-safe .i { width: 1rem; height: 1rem; color: var(--ok); flex: none; }

/* Total en direct sur la fiche produit */
.buy-total { margin: .7rem 0 0; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
             font-size: var(--fs-md); color: var(--ink-2); }
.buy-total strong { font-size: var(--fs-lg); color: var(--ink); }

/* Boutons « Copier » des coordonnées bancaires */
.bank-list dd { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.bank-val { font-variant-numeric: tabular-nums; word-break: break-all; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; flex: none; cursor: pointer;
            font: 600 var(--fs-xs)/1 var(--font); padding: .45rem .7rem; border-radius: var(--r-full);
            border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.copy-btn .i { width: 1rem; height: 1rem; }
.copy-btn:hover { background: var(--bg-3); }
.copy-btn.is-copied { background: var(--ok); border-color: var(--ok); color: #fff; }
.spec-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-table td:first-child { color: var(--ink-3); width: 42%; }

.review { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.review-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.review-head strong { font-size: var(--fs-md); }
.review .verified { font-size: var(--fs-xs); color: var(--ok); font-weight: 700;
                    display: inline-flex; align-items: center; gap: .25em; }
.review .date { color: var(--ink-3); font-size: var(--fs-xs); margin-left: auto; }
.rating-summary { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center;
                  background: var(--bg-2); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.rating-big { font-size: 2.4rem; font-family: var(--font-head); font-weight: 800; line-height: 1; }
.rating-bars { flex: 1; min-width: 200px; }
.rating-bar { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); }
.rating-bar .track { flex: 1; height: 7px; background: var(--bg-3); border-radius: var(--r-full); overflow: hidden; }
.rating-bar .fill { height: 100%; background: var(--ember); }

/* --- 8. Panier et caisse ------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: var(--sp-6); align-items: start; }
.cart-lines { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--sp-4);
             padding: var(--sp-4); border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); background: var(--bg-3); }
.cart-line .name { font-weight: 700; font-size: var(--fs-md); }
.cart-line .name a { color: var(--ink); }
.cart-line .meta { font-size: var(--fs-xs); color: var(--ink-3); }
.cart-line .line-right { text-align: right; display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.cart-line .qty { transform: scale(.88); transform-origin: right center; }
.line-remove { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: var(--fs-xs);
               display: inline-flex; align-items: center; gap: .3em; padding: 0; }
.line-remove:hover { color: var(--err); }

.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5);
           background: var(--bg-2); position: sticky; top: calc(var(--head-h) + 58px); }
.sum-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: .42rem 0; font-size: var(--fs-sm); }
.sum-row.total { border-top: 1px solid var(--line-strong); margin-top: .6rem; padding-top: .8rem;
                 font-size: var(--fs-lg); font-weight: 800; font-family: var(--font-head); }
.sum-row .muted { color: var(--ink-3); }
.sum-row.discount { color: var(--ok); font-weight: 600; }
.progress { height: 8px; background: var(--bg-3); border-radius: var(--r-full); overflow: hidden; margin: .5rem 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--brand)); }
.coupon-row { display: flex; gap: .4rem; margin: var(--sp-3) 0; }
.coupon-row input { flex: 1; text-transform: uppercase; }

.steps { display: flex; gap: .5rem; margin-bottom: var(--sp-5); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
           background: var(--bg-3); color: var(--ink-3); font-size: var(--fs-xs); font-weight: 800; }
.step.is-active { color: var(--ink); }
.step.is-active .n { background: var(--brand); color: #fff; }
.step.is-done .n { background: var(--ok); color: #fff; }
.step::after { content: "›"; margin-left: .5rem; color: var(--line-strong); }
.step:last-child::after { content: ""; }

.pay-list { display: grid; gap: .6rem; }
.pay-opt { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line);
           border-radius: var(--r); padding: var(--sp-4); cursor: pointer; background: var(--bg); }
.pay-opt:hover { border-color: var(--line-strong); }
.pay-opt input { margin-top: .2rem; accent-color: var(--brand); }
.pay-opt.is-sel { border-color: var(--brand); background: var(--brand-wash); }
.pay-opt strong { display: block; font-size: var(--fs-md); }
.pay-opt span { font-size: var(--fs-xs); color: var(--ink-3); }

.done-hero { text-align: center; padding: var(--sp-7) 0 var(--sp-5); }
.done-hero .tick-circle { width: 74px; height: 74px; border-radius: 50%; background: var(--ok-bg);
  color: var(--ok); display: grid; place-items: center; margin: 0 auto var(--sp-4); }
.done-hero .tick-circle .i { width: 2.4rem; height: 2.4rem; }
.order-no { font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 800;
            background: var(--bg-3); display: inline-block; padding: .4rem 1rem; border-radius: var(--r); }
.bank-box { background: var(--bg-2); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
            padding: var(--sp-5); margin: var(--sp-5) 0; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: var(--fs-sm); }
.bank-box dt { color: var(--ink-3); } .bank-box dd { margin: 0; font-weight: 700; }

.timeline { list-style: none; padding: 0; margin: var(--sp-4) 0; }
.timeline li { position: relative; padding: 0 0 var(--sp-4) var(--sp-5); border-left: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.timeline li.is-done::before { background: var(--ok); border-color: var(--ok); }
.timeline li:last-child { border-left-color: transparent; }
.timeline strong { display: block; font-size: var(--fs-md); }
.timeline span { font-size: var(--fs-xs); color: var(--ink-3); }

/* --- 9. Contenu éditorial ------------------------------------------------ */
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4rem; }
.prose table { margin: var(--sp-4) 0; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; }
.prose th { background: var(--bg-2); }
.prose blockquote { margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
                    border-left: 3px solid var(--brand); background: var(--bg-2); border-radius: 0 var(--r) var(--r) 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: var(--sp-4) 2rem var(--sp-4) 0;
         font: 700 var(--fs-md)/1.4 var(--font); color: var(--ink); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
                font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq-q[aria-expanded=true]::after { content: "−"; }
.faq-a { padding: 0 0 var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); }
.faq-a[hidden] { display: none; }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.zone-chip { display: block; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r);
             font-size: var(--fs-sm); color: var(--ink-2); background: var(--bg); }
.zone-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.zone-chip strong { display: block; color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-6); align-items: start; }
.info-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.info-card dl { display: grid; gap: .2rem; margin: 0 0 var(--sp-4); }
.info-card dt { font-size: var(--fs-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.info-card dd { margin: 0 0 .7rem; font-weight: 600; }

/* --- 10. Pied de page ---------------------------------------------------- */
.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: var(--sp-8); }
.foot-usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-6); padding: var(--sp-6) 0; }
.foot-col h2 { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.foot-col h2.mt { margin-top: var(--sp-5); }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a { color: var(--ink-2); font-size: var(--fs-sm); }
.foot-col a:hover { color: var(--brand); }
.foot-brand p { font-size: var(--fs-sm); color: var(--ink-3); }
.foot-brand address { font-style: normal; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--sp-3); }
.foot-contact a { display: inline-flex; gap: .4em; align-items: center; margin-bottom: .2rem; }
.foot-rating { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-xs); color: var(--ink-3); }
.nl-form { display: flex; flex-wrap: wrap; gap: .4rem; }
.nl-form input { flex: 1; min-width: 150px; font-size: var(--fs-sm); padding: .6rem .7rem; }
.nl-form button { background: var(--brand); color: #fff; border: 0; border-radius: var(--r);
                  padding: 0 1.1rem; font-weight: 700; cursor: pointer; }
.nl-help { width: 100%; font-size: var(--fs-xs); color: var(--ink-3); margin: .4rem 0 0; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
               align-items: center; padding: var(--sp-4) 0; border-top: 1px solid var(--line);
               font-size: var(--fs-xs); color: var(--ink-3); }
.pay-chip { display: inline-block; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
            padding: .2rem .55rem; margin-left: .3rem; background: var(--bg); }

/* Boutons flottants en bas à gauche : e-mail, WhatsApp, retour en haut */
.float-bar { position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
             display: flex; align-items: flex-end; gap: .55rem; }
.fb-stack  { display: flex; flex-direction: column; gap: .55rem; }
.fb-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
          display: grid; place-items: center; color: #fff; box-shadow: var(--sh-2);
          transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .25s ease; }
.fb-btn .i { width: 1.55rem; height: 1.55rem; }
.fb-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-3); color: #fff; }
.fb-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fb-mail { background: #8B2F14; }
.fb-wa   { background: #25D366; }
.fb-wa .i { width: 1.8rem; height: 1.8rem; }
.fb-top  { background: #211D1A; color: #FFFFFF; width: 44px; height: 44px; opacity: 0; pointer-events: none; transform: translateY(8px); }
.fb-top .i { width: 1.35rem; height: 1.35rem; color: #FFFFFF; fill: #FFFFFF; }
.fb-top:hover { color: #FFFFFF; background: #000; }
.fb-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.fb-top.is-on:hover { transform: translateY(-2px); }
@media (max-width: 520px) {
  .float-bar { left: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); gap: .45rem; }
  .fb-btn { width: 46px; height: 46px; }
  .fb-top { width: 40px; height: 40px; }
  .fb-stack { gap: .45rem; }
}
@media (prefers-reduced-motion: reduce) { .fb-btn { transition: none; } }

.consent { position: fixed; inset: auto 0 0 0; z-index: 120; background: var(--bg);
           border-top: 1px solid var(--line-strong); box-shadow: var(--sh-3); padding: var(--sp-4) 0; }
.consent-in { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; display: flex;
              flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; }
.consent p { margin: 0; font-size: var(--fs-sm); max-width: 62ch; }
.consent-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Tiroir panier latéral */
.drawer { position: fixed; inset: 0; z-index: 130; display: none; }
.drawer.is-open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15,12,9,.5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(94vw, 400px);
  background: var(--bg); box-shadow: var(--sh-3); display: flex; flex-direction: column;
  animation: slideIn .24s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between;
               padding: var(--sp-4); border-bottom: 1px solid var(--line); }
.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 { border-top: 1px solid var(--line); padding: var(--sp-4); background: var(--bg-2); }
.drawer-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem;
               padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-3); }
.drawer-line .n { font-size: var(--fs-sm); font-weight: 600; }
.drawer-line .m { font-size: var(--fs-xs); color: var(--ink-3); }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: .3rem; }
.icon-btn:hover { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600; z-index: 200; box-shadow: var(--sh-3);
  transition: transform .3s var(--ease); max-width: 90vw; }
.toast.is-on { transform: translateX(-50%) translateY(0); }

/* --- 11. Responsive ------------------------------------------------------ */
@media (max-width: 1080px) {
  .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-col:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp > * { min-width: 0; }
  .buybox { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .contact-grid { grid-template-columns: 1fr; }
  .tb-wide { display: none; }
}
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .menu-toggle { display: block; order: -1; }
  .brand-claim { display: none; }
  .hd-btn-label { display: none; }
  .searchbox { order: 3; flex-basis: 100%; max-width: none; margin-bottom: .7rem; }
  .head-row { flex-wrap: wrap; padding-top: .5rem; }
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 330px); transform: translateX(100%);
    transition: transform .25s var(--ease); z-index: 100; overflow-y: auto; box-shadow: var(--sh-3);
    border-top: 0; padding-top: var(--sp-5); }
  .mainnav.is-open { transform: none; }
  .nav-row { flex-direction: column; align-items: stretch; height: auto; gap: .1rem; padding: var(--sp-4) 0; }
  .nav-row > a { padding: .85rem 1rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
  .nav-drop-btn { width: 100%; justify-content: flex-start; height: 46px; margin: 0 0 .5rem; }
  .nav-panel { position: static; width: auto; box-shadow: none; border: 0; grid-template-columns: 1fr; padding: 0; }
  .nav-drop.is-open .nav-panel { display: block; }
  .filters { display: none; padding: var(--sp-4); }
  .filters.is-open { display: block; }
  .f-actions { margin-left: 0; width: 100%; }
  .f-group-opts { max-width: none; }
  .filter-toggle { display: inline-flex; }
  .products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
  .card-body { padding: var(--sp-3); }
  .card-actions { padding: 0 var(--sp-3) var(--sp-3); }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line img { width: 70px; height: 70px; }
  .cart-line .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between;
                           align-items: center; width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding: var(--sp-6) 0; }
  .hero-in { max-width: none; }
  .body-locked { overflow: hidden; }
}
@media (max-width: 760px) {
  /* iOS agrandit la page si un champ a une police inférieure à 16 px. */
  input[type=text], input[type=email], input[type=tel], input[type=search],
  input[type=number], input[type=password], input[type=date], select, textarea { font-size: 16px; }
  .searchbox input { font-size: 16px; }
  /* Bandeau supérieur : un seul message lisible au lieu d'un texte coupé. */
  .topbar-in { justify-content: center; gap: 0; }
  .topbar-in .tb-item:not(:first-child) { display: none; }
  /* En-tête compact pour tenir sur une ligne. */
  .head-row { gap: .5rem; }
  .brand { gap: .4rem; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 1rem; }
  .head-actions { gap: .1rem; }
  .hd-btn { padding: .45rem .4rem; }
  .nav-mobile-only { display: block; }
  /* Bandeau cookies : boutons pleine largeur. */
  .consent-in { gap: var(--sp-3); }
  .consent-btns { width: 100%; }
  .consent-btns .btn { flex: 1 1 140px; white-space: normal; line-height: 1.25; }
  /* Rien de caché sous les boutons flottants en bas de page. */
  .site-foot { padding-bottom: 130px; }
  .buy-row .btn { white-space: normal; line-height: 1.25; text-align: center; }
  .bank-box .bank-list { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .bank-box .bank-list dt { margin-top: .6rem; }
  .bank-box .bank-list dt:first-child { margin-top: 0; }
  .steps { flex-wrap: wrap; row-gap: .4rem; }
}
@media (max-width: 400px) {
  .hd-track { display: none; }
  .head-row { gap: .35rem; }
  .menu-toggle { padding: .35rem; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand-text { min-width: 0; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hd-btn { padding: .4rem .3rem; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .qty { width: 100%; justify-content: space-between; }
  .buy-row .qty input { flex: 1; }
}
@media (max-width: 420px) {
  .products { grid-template-columns: 1fr 1fr; }
  .card h3 { font-size: var(--fs-sm); }
  .price { font-size: 1.1rem; }
}

/* --- 12. Impression (facture, bon de commande) --------------------------- */
@media print {
  .topbar, .site-head, .site-foot, .consent, .float-bar, .buy-toast, .crumbs, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { width: 100%; }
  a { color: #000; text-decoration: none; }
  .invoice-doc { box-shadow: none; border: 0; padding: 0; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }
}

/* Document facture, à l'écran comme au papier */
.invoice-doc { max-width: 820px; margin-inline: auto; background: var(--bg); border: 1px solid var(--line);
               border-radius: var(--r-lg); padding: var(--sp-6); }
.invoice-head { display: flex; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
                border-bottom: 2px solid var(--ink); padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); }
.invoice-table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase;
                    letter-spacing: .05em; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: .5rem .4rem; }
.invoice-table td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: top; }
.invoice-table .num { text-align: right; white-space: nowrap; }
.invoice-totals { margin-left: auto; width: min(100%, 320px); }

/* ==========================================================================
   13. NOTIFICATION D'ACHAT (bulle en bas à droite)
   ========================================================================== */

.buy-toast {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 70;
  display: flex;
  gap: .7rem;
  align-items: center;
  width: min(330px, calc(100vw - 2 * var(--sp-4)));
  padding: .7rem .8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.buy-toast.is-open { opacity: 1; transform: none; pointer-events: auto; }
.buy-toast:hover { border-color: var(--brand); }



.buy-toast img,
.buy-toast .bt-ph {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: var(--r-sm); object-fit: cover; background: var(--bg-3);
}
.buy-toast .bt-body { min-width: 0; }
.buy-toast .bt-who { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
.buy-toast .bt-what {
  margin: .1rem 0 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.buy-toast .bt-ago { display: block; margin-top: .15rem; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.buy-toast .bt-tick { color: var(--ok); }
.buy-toast .bt-close {
  position: absolute; top: .3rem; right: .4rem;
  border: 0; background: none; color: var(--ink-3); font-size: 15px; line-height: 1;
  padding: .2rem .3rem; cursor: pointer; border-radius: 6px;
}
.buy-toast .bt-close:hover { background: var(--bg-3); color: var(--ink); }
.buy-toast .bt-demo {
  position: absolute; top: -.6rem; left: .7rem;
  background: var(--warn); color: #fff; font-size: 10px; font-weight: 700;
  padding: .1rem .4rem; border-radius: 999px; letter-spacing: .04em;
}

@media (max-width: 520px) {
  /* Sur mobile, la bulle passe au-dessus des boutons flottants de gauche. */
  .buy-toast { left: var(--sp-3); right: var(--sp-3); width: auto; bottom: calc(var(--sp-3) + 116px); }
}
@media (prefers-reduced-motion: reduce) {
  .buy-toast { transition: opacity .2s linear; transform: none; }
}
