/* ==========================================================================
   SANTÉ VERTE+ — Feuille de style principale
   Sommaire
   01. Variables & reset          09. Catégories
   02. Utilitaires & boutons      10. Produits
   03. Topbar                     11. Pourquoi Santé Verte
   04. Header & navigation        12. Blog
   05. Hero                       13. Appel à l'action
   06. Barre de confiance         14. Footer
   07. Titres de section          15. Panneaux (recherche, panier, modal, toasts)
   08. Médias (images + repli)    16. Animations & responsive
   ========================================================================== */


/* ==========================================================================
   01. VARIABLES & RESET
   ========================================================================== */
:root {
  /* Palette de marque */
  --g-950: #06281a;
  --g-900: #0b3d26;
  --g-800: #0f5132;
  --g-700: #157347;
  --g-600: #1e8e4e;
  --g-500: #2fa84f;
  --g-400: #6cc04a;
  --g-300: #a8d98a;
  --g-200: #cfe9c1;
  --g-100: #e8f4e4;
  --g-50:  #f4faf2;

  --gold:      #c99a1f;
  --gold-soft: #f3e4b0;

  --ink:   #17261e;
  --muted: #5b6b62;
  --line:  #e0ebe2;
  --white: #ffffff;
  --surface: #ffffff;
  --bg:    #fbfdfb;
  --danger:#b3382c;

  /* Typographie */
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Mise en page */
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Formes & ombres */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 38, .06);
  --shadow-md: 0 10px 30px rgba(11, 61, 38, .10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 38, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--g-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .7rem 1rem;
  background: var(--g-800);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Un élément « hidden » reste caché même si une classe lui donne un display */
[hidden] { display: none !important; }


/* ==========================================================================
   02. UTILITAIRES & BOUTONS
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--g-700);
  background: var(--g-100);
  border: 1px solid var(--g-200);
  border-radius: 999px;
}
.eyebrow .icon { width: 1.05em; height: 1.05em; }
.eyebrow--plain { padding: 0; background: none; border: 0; color: var(--g-600); }
.eyebrow--light { color: var(--g-300); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow, .btn:hover .icon:last-child { transform: translateX(2px); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--g-600), var(--g-800));
  box-shadow: 0 8px 20px rgba(21, 115, 71, .28);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(21, 115, 71, .38); }

.btn--outline { color: var(--g-800); background: var(--surface); border-color: var(--g-300); }
.btn--outline:hover { border-color: var(--g-600); background: var(--g-50); }

.btn--light { color: var(--g-900); background: var(--surface); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }

.btn-text {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover { color: var(--danger); }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--g-900);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--g-100); color: var(--g-700); }
.icon-btn .icon { width: 1.35rem; height: 1.35rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--g-700);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
a:hover > .link-arrow .icon,
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--lg { font-size: 1rem; }

.tag {
  display: inline-block;
  padding: .25rem .7rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--g-700);
  background: var(--g-100);
  border-radius: 999px;
}


/* ==========================================================================
   03. TOPBAR
   ========================================================================== */
.topbar { background: var(--g-900); color: rgba(255, 255, 255, .86); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__msg { display: flex; align-items: center; gap: .5rem; }
.topbar__msg .icon { color: var(--g-300); width: 1rem; height: 1rem; }
.topbar__links { display: flex; gap: 1.4rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar__links a:hover { color: var(--g-300); }
.topbar__links .icon { width: 1rem; height: 1rem; }


/* ==========================================================================
   04. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 61, 38, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header__inner { min-height: 64px; }

/* Marque */
.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--g-500), var(--g-800));
  box-shadow: 0 4px 14px rgba(21, 115, 71, .28);
  transition: width .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled .brand__mark { width: 46px; height: 46px; }
.brand__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.brand__fallback { color: #fff; width: 1.6rem; height: 1.6rem; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; color: var(--g-900); }
.brand__text em { font-style: normal; color: var(--g-500); }
.brand__text sup { font-size: .75em; color: var(--g-600); margin-left: 1px; }
.brand__text small { margin-top: 3px; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text em, .brand--light .brand__text sup { color: var(--g-400); }
.brand--light .brand__text small { color: rgba(255, 255, 255, .6); }

/* Navigation (desktop) */
.nav { display: flex; align-items: center; margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative;
  display: block;
  padding: .6rem .95rem;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--g-500);
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--g-700); }
.nav__link:hover::after, .nav__link.is-active::after { width: 18px; }
.nav__link.is-active { color: var(--g-700); font-weight: 600; }
.nav__extra { display: none; }

/* Actions */
.header__actions { display: flex; align-items: center; gap: .15rem; flex: none; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--g-600);
  border: 2px solid #fff;
  border-radius: 999px;
  transition: transform .3s var(--ease);
}
.cart-count.is-bump { animation: bump .45s var(--ease); }
.icon-btn--burger { display: none; }
.icon-btn--burger .icon--close { display: none; }
.icon-btn--burger[aria-expanded="true"] .icon--close { display: block; }
.icon-btn--burger[aria-expanded="true"] .icon--menu { display: none; }


/* ==========================================================================
   05. HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem); }
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(108, 192, 74, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(30, 142, 78, .12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--g-50) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--g-900);
}
.hero__title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--g-600), var(--g-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2rem; font-size: .9rem; font-weight: 500; color: var(--g-800); }
.hero__points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__points .icon { width: 1.1rem; height: 1.1rem; padding: 2px; color: #fff; background: var(--g-500); border-radius: 50%; stroke-width: 3; }

.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 540px; }
.hero__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, transparent 55%),
    linear-gradient(145deg, var(--g-100), var(--g-200));
  box-shadow: var(--shadow-lg), inset 0 0 0 10px rgba(255, 255, 255, .55);
  animation: morph 14s ease-in-out infinite alternate;
}
.hero__art, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.1rem .7rem .75rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: .9rem; line-height: 1.2; color: var(--g-900); }
.float-chip small { display: block; font-size: .75rem; color: var(--muted); }
.float-chip__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--g-500), var(--g-700));
  border-radius: 12px;
}
.float-chip--a { left: -4%; top: 14%; }
.float-chip--b { right: -3%; bottom: 12%; animation-delay: -3s; }


/* ==========================================================================
   06. BARRE DE CONFIANCE
   ========================================================================== */
.trust { position: relative; z-index: 2; margin-top: clamp(-4rem, -5vw, -2.5rem); }
.trust__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.trust__item {
  display: flex;
  align-items: center;
  position: relative;
}
.trust__link {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  height: 100%;
  padding: 1.35rem 1.25rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border-radius: inherit;
  transition: background .25s;
}
.trust__link:hover { background: var(--g-50); }
.trust__link:focus-visible { outline: 2px solid var(--g-600); outline-offset: -3px; }
.trust__item + .trust__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line);
}
.trust__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  color: var(--g-700);
  background: var(--g-100);
  border-radius: 50%;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.trust__link:hover .trust__icon { color: #fff; background: var(--g-600); transform: scale(1.06); }
.trust__item strong { display: block; font-size: .92rem; line-height: 1.25; color: var(--g-900); }
.trust__item small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.3; color: var(--muted); }


/* ==========================================================================
   07. TITRES DE SECTION
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section--tint { background: linear-gradient(180deg, var(--g-50), #fff); }

.section__head { max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section__head--row { max-width: none; margin-inline: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; text-align: left; }
.section__title {
  margin-top: .5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: var(--g-900);
}
.section__title--light { color: #fff; }
.section__lead { margin-top: .85rem; color: var(--muted); font-size: 1.05rem; }


/* ==========================================================================
   08. MÉDIAS (image + repli visuel si l'image est absente)
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, var(--g-100), #d3eacb 55%, #b9dcab);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e8e4e' stroke-width='.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.9-5.5 6-6.5 3-.7 5-2.5 6-5'/%3E%3C/svg%3E") center / 34% no-repeat;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
img.is-broken { display: none; }


/* ==========================================================================
   09. CATÉGORIES
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--g-300); }
.cat-card:hover .media img { transform: scale(1.07); }

.cat-card__media { aspect-ratio: 16 / 10; }
.cat-card__body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem 1.5rem; }
.cat-card__icon {
  position: absolute;
  top: -26px;
  left: 1.5rem;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(135deg, var(--g-500), var(--g-800));
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.cat-card:hover .cat-card__icon { transform: rotate(-8deg) scale(1.08); }
.cat-card h3 { font-size: 1.2rem; color: var(--g-900); }
.cat-card p { margin: .5rem 0 1.1rem; font-size: .94rem; color: var(--muted); }
.cat-card .link-arrow { margin-top: auto; }


/* ==========================================================================
   10. PRODUITS
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 2.25rem; }
.filter-chip {
  padding: .55rem 1.1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--g-800);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.filter-chip:hover { border-color: var(--g-400); background: var(--g-50); }
.filter-chip.is-active { color: #fff; background: var(--g-700); border-color: var(--g-700); box-shadow: 0 6px 16px rgba(21, 115, 71, .25); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.product-card {
  --tone: var(--g-600);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--g-300); }
.product-card.is-flash { animation: flash 1.6s ease; }

.product-media { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 35%, #fff, var(--g-100)); }
.product-media::before { display: none; }
.product-media .jar { position: absolute; inset: 14% 24%; width: 52%; height: 72%; z-index: 0; filter: drop-shadow(0 14px 18px rgba(11, 61, 38, .18)); }
.product-media img { position: absolute; inset: 0; z-index: 1; background: var(--surface); }
.product-card:hover .product-media img, .product-card:hover .product-media .jar { transform: scale(1.05); }
.product-media .jar { transition: transform .6s var(--ease); }

.badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
  padding: .3rem .7rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--g-600);
  border-radius: 999px;
}
.badge--new { background: var(--gold); }
.badge--sale { left: auto; right: .85rem; background: var(--g-900); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.15rem 1.25rem; }
.product-card__cat { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g-600); }
.product-card h3 { margin-top: .3rem; font-size: 1.05rem; line-height: 1.3; color: var(--g-900); }
.product-card__desc { margin-top: .4rem; font-size: .88rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1rem; }
.price strong { font-size: 1.2rem; font-weight: 700; color: var(--g-800); }
.price s { font-size: .86rem; color: #94a39a; }
.price strong.price__ask { font-size: .98rem; font-weight: 600; color: var(--g-700); }
.modal__info .price strong.price__ask { font-size: 1.15rem; }

.product-card__actions { display: flex; flex-direction: column; gap: .5rem; margin-top: auto; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--g-300);
  border-radius: var(--r-md);
}
.notice .icon { margin-top: 2px; color: var(--g-600); }

.empty-state { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--muted); }

.products__more { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 2.5rem; }
.products__count { font-size: .88rem; color: var(--muted); }


/* ==========================================================================
   11. POURQUOI SANTÉ VERTE
   ========================================================================== */
.why { position: relative; padding: var(--section-y) 0; color: #fff; background: var(--g-900); overflow: hidden; }
.why__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(108, 192, 74, .22), transparent 60%),
    radial-gradient(600px 420px at 0% 100%, rgba(30, 142, 78, .35), transparent 60%),
    linear-gradient(160deg, var(--g-900), var(--g-950));
}
.why__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why__lead { margin-top: 1rem; max-width: 36rem; color: rgba(255, 255, 255, .78); font-size: 1.05rem; }

.why__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.why__stats strong { display: block; font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--g-300); }
.why__stats span { display: block; margin-top: .45rem; font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.why__mission { max-width: 36rem; margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--gold); font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.why__mission strong { color: #fff; }

.why__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.25rem; }
.why-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.why-card:hover { background: rgba(255, 255, 255, .11); border-color: rgba(168, 217, 138, .5); transform: translateY(-4px); }
.why-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; color: var(--g-900); background: linear-gradient(135deg, var(--g-300), var(--g-400)); border-radius: 12px; }
.why-card h3 { font-size: 1.02rem; }
.why-card p { margin-top: .4rem; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .7); }

.why__visual { position: relative; }
.why__media { aspect-ratio: 4 / 5; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .1); }
.why__badge {
  position: absolute;
  left: -1.5rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 18rem;
  padding: .9rem 1.2rem .9rem .9rem;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
}
.why__badge strong { display: block; font-size: .92rem; line-height: 1.25; color: var(--g-900); }
.why__badge small { display: block; font-size: .75rem; color: var(--muted); }
.why__badge-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: #fff; background: var(--g-600); border-radius: 50%; }


/* ==========================================================================
   12. BLOG
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card:hover .media img { transform: scale(1.06); }
.blog-card__media { aspect-ratio: 16 / 10; }
.blog-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.blog-card h3 { margin-top: .8rem; font-size: 1.15rem; line-height: 1.3; color: var(--g-900); }
.blog-card p { margin: .6rem 0 1.2rem; font-size: .92rem; color: var(--muted); }
.blog-card .link-arrow { margin-top: auto; }


/* ==========================================================================
   13. APPEL À L'ACTION
   ========================================================================== */
.cta { padding: 0 0 var(--section-y); }
.cta__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(168, 217, 138, .35), transparent 60%),
    linear-gradient(135deg, var(--g-700), var(--g-900));
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 340px;
  height: 340px;
  opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.9-5.5 6-6.5 3-.7 5-2.5 6-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta__box::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.cta__text { position: relative; max-width: 36rem; }
.cta__text h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
.cta__text p { margin-top: .8rem; color: rgba(255, 255, 255, .8); font-size: 1.05rem; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: .8rem; }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer { color: rgba(255, 255, 255, .72); background: var(--g-950); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.footer__col--brand p { max-width: 20rem; margin: 1.1rem 0 1.4rem; line-height: 1.6; }
.footer__col h3 { margin-bottom: 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer__col li + li { margin-top: .65rem; }
.footer__col a { transition: color .2s, padding .2s; }
.footer__col a:hover { color: var(--g-300); }

.contact-list li { display: flex; align-items: flex-start; gap: .7rem; }
.contact-list .icon { margin-top: 3px; width: 1.05rem; height: 1.05rem; color: var(--g-400); }

.socials { display: flex; gap: .6rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.socials a:hover { color: #fff; background: var(--g-600); border-color: var(--g-600); transform: translateY(-3px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding: 1.4rem 0 1.8rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .1);
}


/* ==========================================================================
   15. PANNEAUX : RECHERCHE, PANIER, MODAL, TOASTS, RETOUR EN HAUT
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6, 40, 26, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s;
}
.backdrop.is-visible { opacity: 1; }

/* Recherche */
.search-panel {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 150;
  width: min(680px, calc(100% - 1.5rem));
  margin-top: 1rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -24px);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .25s, visibility .35s;
}
.search-panel.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.search-panel__form { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem .6rem 1.25rem; }
.search-panel__form > .icon { color: var(--g-600); width: 1.4rem; height: 1.4rem; }
.search-panel__form input { flex: 1; min-width: 0; padding: .8rem 0; font-size: 1.05rem; color: var(--ink); background: none; border: 0; outline: 0; }
.search-panel__results { max-height: 52vh; overflow-y: auto; border-top: 1px solid var(--line); }
.search-panel__results:empty { display: none; }
.search-result {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: .8rem 1.25rem;
  text-align: left;
  transition: background .2s;
}
.search-result:hover, .search-result:focus-visible { background: var(--g-50); }
.search-result__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--g-700); background: var(--g-100); border-radius: 10px; }
.search-result__text { flex: 1; min-width: 0; }
.search-result__text strong { display: block; font-size: .95rem; color: var(--g-900); }
.search-result__text small { color: var(--muted); font-size: .8rem; }
.search-result__price { font-weight: 600; font-size: .9rem; color: var(--g-700); }
.search-empty { padding: 1.5rem 1.25rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* Panier */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.2rem; color: var(--g-900); }
.drawer__body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem; }
.drawer__foot { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--g-50); }
.drawer__foot[hidden] { display: none; }
.drawer__total { display: flex; justify-content: space-between; width: 100%; font-size: 1.05rem; }
.drawer__total strong { font-size: 1.25rem; color: var(--g-800); }
.drawer__sum { width: 100%; display: grid; gap: .35rem; font-size: .92rem; }
.drawer__sum div { display: flex; justify-content: space-between; gap: 1rem; }
.drawer__sum dt { color: var(--muted); }
.drawer__sum dt small { font-size: .8rem; }
.drawer__sum dd { margin: 0; font-weight: 600; color: var(--g-900); }
.drawer__free { width: 100%; padding: .5rem .75rem; font-size: .82rem; font-weight: 600; color: var(--g-800); background: var(--g-100); border-radius: 10px; }
.drawer__total { padding-top: .6rem; border-top: 1px dashed var(--line); }
.drawer__note--left { width: 100%; text-align: left; }
.drawer__note:empty { display: none; }
.drawer__note { font-size: .8rem; line-height: 1.4; text-align: center; color: var(--muted); }

.cart-empty { display: grid; place-items: center; gap: .8rem; height: 100%; padding: 2rem 0; text-align: center; color: var(--muted); }
.cart-empty .icon { width: 3rem; height: 3rem; color: var(--g-300); }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; gap: .9rem; align-items: center; padding: 1rem 0; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item__thumb { width: 64px; height: 64px; border-radius: 12px; }
.cart-item__thumb .jar { position: absolute; inset: 10% 26%; width: 48%; height: 80%; z-index: 0; }
.cart-item__thumb img { position: absolute; inset: 0; z-index: 1; }
.cart-item__info strong { display: block; font-size: .92rem; line-height: 1.3; color: var(--g-900); }
.cart-item__info span { font-size: .85rem; color: var(--g-700); font-weight: 600; }
.qty { display: inline-flex; align-items: center; margin-top: .45rem; border: 1px solid var(--line); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--g-800); }
.qty button:hover { background: var(--g-100); }
.qty button .icon { width: .95rem; height: .95rem; }
.qty output { min-width: 26px; text-align: center; font-size: .9rem; font-weight: 600; }
.cart-item__remove { align-self: start; padding: .35rem; color: #9aa89f; border-radius: 8px; }
.cart-item__remove:hover { color: var(--danger); background: #fbeceb; }

/* Détail produit */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(900px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: .75rem; right: .75rem; z-index: 3; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.modal__media { min-height: 320px; }
.modal__media .jar { position: absolute; inset: 14% 26%; width: 48%; height: 72%; z-index: 0; filter: drop-shadow(0 18px 22px rgba(11, 61, 38, .2)); }
.modal__media img { position: absolute; inset: 0; z-index: 1; object-fit: contain; background: var(--surface); }
.modal__info { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal__info h2 { margin: .5rem 0 .8rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--g-900); }
.modal__info > p { color: var(--muted); }
.modal__info .price { margin: 1.2rem 0; }
.modal__info .price strong { font-size: 1.6rem; }
.modal__list { display: grid; gap: .5rem; margin-bottom: 1.5rem; font-size: .9rem; }
.modal__list li { display: flex; gap: .55rem; align-items: center; }
.modal__list .icon { width: 1rem; height: 1rem; color: var(--g-600); stroke-width: 3; }
.modal__fine { margin-top: 1rem; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.modal__info .btn { margin-top: auto; }
.modal__info .btn + .btn { margin-top: .6rem; }

/* Notifications */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: min(380px, calc(100vw - 2.5rem));
  padding: .8rem 1.1rem .8rem .85rem;
  font-size: .9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--g-500);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in .45s var(--ease) both;
}
.toast.is-leaving { animation: toast-out .3s ease forwards; }
.toast__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: #fff; background: var(--g-500); border-radius: 50%; }
.toast__icon .icon { width: 1rem; height: 1rem; stroke-width: 3; }
.toast--info { border-left-color: var(--gold); }
.toast--info .toast__icon { background: var(--gold); }

/* Retour en haut */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--g-600), var(--g-800));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(21, 115, 71, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }


/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
/* Le contenu reste visible si JavaScript est désactivé */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph {
  0%   { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
  100% { border-radius: 54% 46% 44% 56% / 46% 54% 46% 54%; }
}
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--g-400), var(--shadow-lg); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ==========================================================================
   RESPONSIVE (approche desktop → mobile)
   ========================================================================== */

/* ----- ≤ 1280px : grands laptops ----- */
@media (max-width: 1280px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 2 / -1; }
  .nav__link { padding-inline: .75rem; }
}

/* ----- ≤ 1100px : petit laptop / tablette paysage ----- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust__list { grid-template-columns: repeat(3, 1fr); }
  .trust__item:nth-child(4)::before { display: none; }
  .trust__item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .why__inner { grid-template-columns: 1fr; }
  .why__visual { max-width: 520px; }
  .why__media { aspect-ratio: 16 / 11; }
  .why__badge { left: 1rem; }
  .cta__box { flex-direction: column; align-items: flex-start; }
}

/* ----- ≤ 1023px : tablette — navigation en panneau ----- */
@media (max-width: 1023px) {
  :root { --header-h: 68px; }

  .topbar__msg { display: none; }
  .topbar__inner { justify-content: center; }

  .icon-btn--burger { display: inline-grid; }
  .icon-btn--account { display: none; }
  .icon-btn--search { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    margin: 0;
    overflow-y: auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 61, 38, .12);
    visibility: hidden;
    opacity: 0;
    transition: max-height .4s var(--ease), opacity .3s, visibility .4s;
  }
  .nav.is-open { max-height: calc(100dvh - 68px); visibility: visible; opacity: 1; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem var(--gutter) 0; }
  .nav__link { padding: 1rem .25rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--g-700); box-shadow: inset 3px 0 0 var(--g-500); padding-left: .85rem; }
  .nav__extra { display: grid; gap: .65rem; padding: 1.25rem var(--gutter) 1.5rem; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__cta, .hero__points { justify-content: center; }
  .hero__visual { max-width: 440px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .blog-card:last-child .blog-card__media { flex: 0 0 45%; aspect-ratio: auto; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col--brand, .footer__col:last-child { grid-column: 1 / -1; }
}

/* ----- ≤ 768px : grande tablette portrait / grand mobile ----- */
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(n)::before { display: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust__item:nth-child(even) { border-left: 1px solid var(--line); }
  .trust__item:last-child { grid-column: 1 / -1; border-left: 0; }

  .why__list { grid-template-columns: 1fr 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .modal__box { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; aspect-ratio: 16 / 10; }
  .float-chip--a { left: 0; }
  .float-chip--b { right: 0; }
}

/* ----- ≤ 640px : mobile — vraie adaptation, pas une simple réduction ----- */
@media (max-width: 640px) {
  .topbar__links { gap: 1rem; }
  .topbar { font-size: .78rem; }

  .brand__text small { display: none; }
  .brand__text strong { font-size: 1.15rem; }
  .brand__mark, .site-header.is-scrolled .brand__mark { width: 44px; height: 44px; }

  .hero { padding-top: 1.75rem; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__points { flex-direction: column; align-items: flex-start; gap: .5rem; margin-inline: auto; }
  .hero__visual { max-width: 340px; }
  .float-chip { padding: .5rem .8rem .5rem .55rem; }
  .float-chip__icon { width: 34px; height: 34px; }
  .float-chip small { display: none; }

  /* Catégories : tuiles horizontales compactes */
  .cat-grid { grid-template-columns: 1fr; gap: .85rem; }
  .cat-card { flex-direction: row; align-items: stretch; }
  .cat-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 118px; }
  .cat-card__body { padding: 1rem 1rem 1rem 1.15rem; }
  .cat-card__icon { display: none; }
  .cat-card h3 { font-size: 1.05rem; }
  .cat-card p { margin: .3rem 0 .6rem; font-size: .85rem; }

  /* Produits : 2 colonnes compactes */
  .filters { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .product-card__body { padding: .85rem .8rem 1rem; }
  .product-card h3 { font-size: .95rem; }
  .product-card__desc { font-size: .76rem; line-height: 1.4; -webkit-line-clamp: 4; }
  .price { margin: .6rem 0 .8rem; }
  .price strong { font-size: 1.05rem; }
  .badge { top: .55rem; left: .55rem; padding: .22rem .55rem; font-size: .62rem; }
  .btn--sm { padding: .62rem .5rem; font-size: .8rem; white-space: normal; }

  .why__list { grid-template-columns: 1fr; }
  .why__stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .why__badge { position: static; max-width: none; margin-top: 1rem; }

  /* Blog : carrousel horizontal */
  .blog-grid { display: flex; gap: 1rem; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .blog-grid::-webkit-scrollbar { display: none; }
  .blog-card, .blog-card:last-child { flex: 0 0 82%; flex-direction: column; scroll-snap-align: center; }
  .blog-card:last-child .blog-card__media { flex: none; aspect-ratio: 16 / 10; }

  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .drawer { width: 100%; }
  .toasts { left: 1rem; right: 1rem; bottom: 5rem; align-items: stretch; }
  .toast { max-width: none; }
  .to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

/* ----- ≤ 400px : petits mobiles (360–390px) ----- */
@media (max-width: 400px) {
  :root { --gutter: .9rem; }
  .brand__text strong { font-size: 1.05rem; }
  .product-grid { gap: .7rem; }
  .product-card__cat { font-size: .64rem; }
  .trust__link { flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col:last-child { grid-column: auto; }
  .search-panel { width: calc(100% - 1rem); margin-top: .5rem; }
}

/* ----- ≥ 1700px : très grands écrans (1920px) ----- */
@media (min-width: 1700px) {
  :root { --container: 1360px; }
  html { font-size: 17px; }
}

.cart-item__line { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; font-size: .95rem; color: var(--g-900); white-space: nowrap; }
.cart-item__thumb { grid-row: 1 / span 2; }
.cart-item__info { grid-row: 1 / span 2; grid-column: 2; }
.cart-item__remove { grid-column: 3; grid-row: 1; }

/* Panier : la liste des produits garde toujours de la place, même sur écran bas */
.drawer__body { min-height: 38%; }
.drawer__foot { gap: .5rem; padding: .9rem 1.25rem 1rem; max-height: 52%; overflow-y: auto; }
.drawer__foot .drawer__note { font-size: .75rem; line-height: 1.35; }
.drawer__foot .btn { padding-block: .7rem; }
.drawer__sum { font-size: .88rem; gap: .2rem; }
.drawer__total { padding-top: .45rem; }
.drawer__total strong { font-size: 1.15rem; }
@media (max-height: 640px) {
  .drawer__body { min-height: 45%; }
  .drawer__foot { max-height: 48%; padding: .7rem 1.1rem .8rem; }
  .cart-item { padding: .7rem 0; }
}

.pay-box { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .75rem; background: var(--surface); border: 1px dashed var(--g-300); border-radius: 12px; font-size: .82rem; color: var(--muted); }
.pay-box strong { color: var(--g-900); }
.pay-box__num { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; font-weight: 700; font-size: .9rem; color: var(--g-800); background: var(--g-100); border-radius: 999px; white-space: nowrap; }
.pay-box__num:hover { background: var(--g-200, #cfe8d6); }
.pay-box__num .icon { width: .9rem; height: .9rem; }
.pay-box[hidden] { display: none; }

/* Fenêtre de paiement */
.modal__box--pay { display: block; width: min(520px, 100%); }
.paywin { padding: clamp(1.4rem, 4vw, 2.2rem); }
.paywin h2 { margin-bottom: 1rem; padding-right: 2.5rem; font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--g-900); }
.paywin__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 1rem; background: var(--g-50); border-radius: 12px; }
.paywin__total strong { font-size: 1.5rem; color: var(--g-800); }
.paywin__hint { margin: .5rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.paywin__steps { margin: 1.1rem 0; padding-left: 1.3rem; display: grid; gap: .7rem; font-size: .95rem; line-height: 1.5; }
.paywin__steps li::marker { font-weight: 700; color: var(--g-700); }
.paywin__qrs { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.paywin__qrs:empty { display: none; }
.paywin__qrs figure { display: grid; gap: .3rem; justify-items: center; font-size: .8rem; color: var(--muted); }
.paywin__qrs img { width: 120px; height: 120px; border-radius: 10px; border: 1px solid var(--line); }
.paywin__ask { margin: 1.2rem 0 .6rem; font-weight: 700; color: var(--g-900); }
.paywin__actions { display: grid; gap: .6rem; margin-bottom: .8rem; }
.paywin .btn-text { display: block; margin: .4rem auto 0; }
.paywin #payUnpriced { display: grid; gap: .8rem; }
.qr-mini { margin: 1rem 0 0; display: grid; gap: .4rem; justify-items: start; }
.qr-mini img { width: 96px; height: 96px; padding: 4px; background: var(--surface); border-radius: 10px; }
.qr-mini figcaption { max-width: 14rem; font-size: .78rem; line-height: 1.35; color: rgba(255,255,255,.7); }


/* ===== Ajouts : bandeau, WhatsApp flottant, partage, étapes, prix ===== */
.announce { position: relative; background: var(--gold, #c99a1f); color: #2a2205; text-align: center; font-size: .86rem; font-weight: 600; padding: .55rem 2.6rem; }
.announce__text { margin: 0; }
.announce__close { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.announce__close:hover { background: rgba(0,0,0,.1); }
.announce__close .icon { width: 16px; height: 16px; }

.wa-float { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 95; display: inline-flex; align-items: center; gap: .5rem; background: #25d366; color: #fff; font-weight: 700; padding: .8rem 1.15rem .8rem .95rem; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.25); text-decoration: none; transition: transform .2s; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float .icon { width: 26px; height: 26px; fill: none; stroke: #fff; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: waPulse 2.4s infinite; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }
@media (max-width: 640px) { .wa-float { left: 1rem; bottom: 1rem; padding: .8rem; } .wa-float span { display: none; } }

.share-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid #25d366; background: var(--surface); color: #128c4a; cursor: pointer; }
.share-btn:hover { background: #e9fbf0; }
.share-btn .icon { width: 18px; height: 18px; }
.product-card__actions { align-items: center; }
.btn--ghost { background: transparent; color: var(--g-800); border: 0; text-decoration: underline; }

.badge--new { background: var(--gold); }
.price__inc { flex-basis: 100%; font-size: .72rem; font-weight: 500; color: var(--muted); }
.product-card__desc { -webkit-line-clamp: 3; }

.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); counter-reset: none; }
.how__step { background: var(--surface); border: 1px solid var(--line, #e3ebe6); border-radius: 16px; padding: 1.4rem 1.2rem; text-align: center; }
.how__step h3 { margin: .6rem 0 .3rem; font-size: 1.05rem; }
.how__step p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.how__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g-700, #157347); color: #fff; font-weight: 700; font-size: 1.15rem; }
@media (max-width: 900px) { .how__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .how__steps { grid-template-columns: 1fr; } }

/* Descriptions toujours complètes sur les cartes produit */
.product-card__desc, .product-card__desc { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }


/* ===== Barre de progression, collections, fiche détaillée ===== */
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; background: linear-gradient(90deg, var(--g-500), var(--gold)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.lines { display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.1rem; padding: .3rem; width: max-content; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.line-btn { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; }
.line-btn.is-active { background: var(--g-700); color: #fff; }
@media (max-width: 480px) { .lines { width: 100%; } .line-btn { flex: 1; padding: .55rem .4rem; font-size: .8rem; } }
.spec { margin: 1rem 0; display: grid; gap: .55rem; }
.spec div { background: var(--g-50); border-radius: 10px; padding: .6rem .8rem; }
.spec dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--g-700); }
.spec dd { margin: .15rem 0 0; font-size: .9rem; line-height: 1.5; }
.icon-btn .icon { stroke: currentColor; }

/* ===== Mode sombre ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6f0ea; --muted: #a3b5ab; --line: #24382c; --bg: #0b1510; --surface: #12211a;
  --g-50: #0f1c15; --g-100: #15281d; --g-200: #1d3626; --gold-soft: #3a3010;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] h4,
:root[data-theme="dark"] .price strong, :root[data-theme="dark"] .brand__text strong, :root[data-theme="dark"] .nav__link,
:root[data-theme="dark"] .icon-btn, :root[data-theme="dark"] .filter-chip, :root[data-theme="dark"] .section__title { color: var(--ink); }
:root[data-theme="dark"] .section__title--light, :root[data-theme="dark"] .why h2, :root[data-theme="dark"] .cta h2 { color: #fff; }
:root[data-theme="dark"] .filter-chip.is-active, :root[data-theme="dark"] .btn--primary { color: #fff; }
:root[data-theme="dark"] .site-header { background: rgba(11, 21, 16, .92); }
:root[data-theme="dark"] .btn--outline { color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .share-btn { background: var(--surface); color: #5be08f; }
:root[data-theme="dark"] .media { background-color: #fff; }
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .modal__close { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 480px) { .lines { gap: .2rem; padding: .25rem; } .line-btn { font-size: .74rem; padding: .5rem .25rem; white-space: nowrap; } }


/* ===== Étapes 1-3 : petits écrans, zones tactiles, emplacement photo ===== */
.no-photo { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--g-700); background: repeating-linear-gradient(135deg, var(--g-50) 0 12px, var(--g-100) 12px 24px); border: 2px dashed var(--g-300); border-radius: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.no-photo .icon { width: 34px; height: 34px; opacity: .7; }
.cart-item__thumb .no-photo span, .search-result .no-photo span { display: none; }
.cart-item__thumb .no-photo .icon { width: 22px; height: 22px; }
:root[data-theme="dark"] .no-photo { background: repeating-linear-gradient(135deg, #0f1c15 0 12px, #15281d 12px 24px); border-color: #2a4a38; color: #8fd2a7; }

/* Débordement à 320 px : en-tête plus compact */
@media (max-width: 380px) {
  .header__inner { gap: .4rem; }
  .header__actions { gap: .15rem; }
  .icon-btn--account { display: none; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: 1.05rem; }
}

/* Zones tactiles confortables (44 px) sur écrans tactiles */
@media (pointer: coarse), (max-width: 900px) {
  .btn, .btn--sm, .line-btn, .filter-chip, .share-btn, .announce__close, .pay-box__num, .btn-text, .link-arrow { min-height: 44px; }
  .share-btn { width: 44px; height: 44px; }
  .announce__close { width: 44px; height: 44px; }
  .link-arrow, .btn-text { display: inline-flex; align-items: center; }
  .site-footer a, .footer a { display: inline-block; padding: .55rem 0; }
  .qty button { min-width: 44px; min-height: 44px; }
  .cart-item__remove { min-width: 44px; min-height: 44px; }
  .topbar__links a { display: inline-flex; align-items: center; min-height: 44px; }
}


/* ===== Étape 4 : animations de l'accueil (CSS + SVG, aucune bibliothèque) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); } 50% { transform: translate3d(14px, -22px, 0) rotate(10deg); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.06); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }

/* Entrée en cascade : texte, boutons, points (démarre tout de suite, sans attendre le défilement) */
@media (scripting: enabled) {
  .hero .reveal { opacity: 0; transform: none; transition: none; animation: rise .8s var(--ease) var(--d, 0s) both; }
  .hero .hero__visual.reveal { animation-name: rise; animation-delay: .25s; }
}

/* Feuilles décoratives qui flottent lentement, avec léger relief au défilement */
.hero__leaves { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__leaf { position: absolute; transform: translate3d(0, calc(var(--py, 0) * var(--depth, .1) * -1px), 0); will-change: transform; }
.hero__leaf .lf { display: block; height: auto; opacity: .3; animation: drift 18s ease-in-out infinite; }
.hero__leaf .lf--b { opacity: .38; animation-duration: 22s; }
.hero__leaf .lf--c { opacity: .18; animation-duration: 26s; }
.hero__leaf .lf--d { opacity: .45; animation-duration: 20s; }
.hero__inner { z-index: 1; }
.hero__visual { translate: 0 calc(var(--py, 0) * .05px); }
.hero__visual::before { content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(108, 192, 74, .35), transparent 65%); animation: glow 6s ease-in-out infinite; }

/* Bouton principal : reflet discret toutes les quelques secondes */
.hero__cta .btn--primary { position: relative; overflow: hidden; }
.hero__cta .btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shine 6s ease-in-out 2s infinite; pointer-events: none; }

/* Boutons et liens : retour visuel cohérent */
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.nav__link { position: relative; }
@media (hover: hover) { .btn--primary:hover { box-shadow: 0 10px 24px rgba(21, 115, 71, .35); } }

/* Séparateur végétal sous les titres de section */
.section__head .section__title::after { content: ""; display: block; width: 76px; height: 14px; margin: .7rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 14'%3E%3Cpath d='M0 7h28M48 7h28' stroke='%23c99a1f' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M38 1c-7 2-9 8-1 12 8-4 8-10 1-12z' fill='%231e8e4e'/%3E%3C/svg%3E") center / contain no-repeat; }
.section__head--row .section__title::after { margin-left: 0; }

@media (max-width: 640px) { .hero__leaf { display: none; } .hero__leaf:nth-child(2) { display: block; } }
@media (prefers-reduced-motion: reduce) { .hero__leaf .lf, .hero__visual::before, .hero__cta .btn--primary::after { animation: none !important; } .hero .reveal { opacity: 1 !important; animation: none !important; } }


/* ===== Étape 5 : cartes, fiche produit, panier ===== */
.product-card .product-media img { transition: transform .6s var(--ease); }
.product-card:hover .price strong { color: var(--g-600); }
.product-card .price strong { transition: color .25s; }
.product-card__actions .btn--primary { flex: 1; }
.btn.is-added { background: var(--g-500); border-color: var(--g-500); color: #fff; }

/* La fiche produit s'ouvre en douceur : le contenu monte et la photo se révèle */
@keyframes sheetUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photoIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.modal.is-open .modal__info > * { animation: sheetUp .45s var(--ease) both; }
.modal.is-open .modal__info > *:nth-child(2) { animation-delay: .05s; }
.modal.is-open .modal__info > *:nth-child(3) { animation-delay: .09s; }
.modal.is-open .modal__info > *:nth-child(4) { animation-delay: .13s; }
.modal.is-open .modal__info > *:nth-child(n+5) { animation-delay: .17s; }
.modal.is-open .modal__media img { animation: photoIn .6s var(--ease) both; }
.modal__info .price strong { font-size: 1.9rem; color: var(--g-700); }
.modal__info [data-order-one] { box-shadow: 0 8px 20px rgba(37, 211, 102, .18); }

/* Panier : les lignes apparaissent, la quantité « pulse » */
@keyframes lineIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes qtyPop { 40% { transform: scale(1.35); } }
.cart-item.is-new { animation: lineIn .35s var(--ease) both; }
.qty output.is-pop { animation: qtyPop .3s var(--ease); display: inline-block; }
.fly-ghost { position: fixed; z-index: 500; object-fit: cover; border-radius: 14px; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: reduce) { .modal.is-open .modal__info > *, .modal.is-open .modal__media img, .cart-item.is-new { animation: none !important; } }

/* Mobile : actions de carte bien rangées (ajouter / détails + partage) */
@media (max-width: 640px) {
  .product-card__actions { display: grid; grid-template-columns: 1fr 44px; gap: .5rem; }
  .product-card__actions .btn--primary { grid-column: 1 / -1; }
  .product-card__actions .btn--outline { min-width: 0; }
}

.install-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--gold); color: #2a2205; border: 0; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.install-btn[hidden] { display: none !important; }
.install-btn .icon { width: 14px; height: 14px; }
