/* ===== Midori — Design system =====
   Polices chargées via <link> dans le <head> (preconnect + display=swap). */
:root {
  /* Verts */
  --green-deep: #1f3d2b;      /* fond hero / footer / sections sombres */
  --green-deep-2: #285234;    /* dégradé */
  --green: #5c7f3a;           /* vert matcha mid (accents, liens) */
  --green-light: #c7e8a8;     /* gros titres sur fond sombre */
  --green-mint: #eaf1de;      /* crème teinté menthe (sections alt) */
  /* Neutres */
  --cream: #f4f7ec;           /* fond clair principal */
  --white: #ffffff;
  --ink: #16201a;             /* titres bold sur fond clair */
  --text: #364038;            /* corps */
  --text-light: #6c7a6a;      /* secondaire */
  --border: #dde5d0;
  /* Accents chauds */
  --sand: #e6d6b0;            /* tags type "Calm Essence" */
  --coral: #e07856;           /* arcs / illustrations déco */
  --sale: #c0492b;
  --success: #4a7c3f;
  /* Typo (fallbacks métriquement proches pour limiter le saut au chargement) */
  --font-display: 'Anton', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --font-main: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* ease-out fort (entrées, hovers) */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);  /* mouvement sur écran */
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  /* Divers */
  --shadow-sm: 0 2px 10px rgba(31,61,43,0.06);
  --shadow-md: 0 8px 24px rgba(31,61,43,0.10);
  --shadow-lg: 0 16px 48px rgba(31,61,43,0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --nav-height: 76px;
  --max-width: 1240px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.65;
  background: var(--cream);
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { line-height: 1.1; color: var(--ink); }

/* Accessibilité : focus visible cohérent */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(244,247,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
}
.navbar__logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity var(--dur) var(--ease-out);
}
.navbar__logo:hover img { opacity: 0.82; }

.navbar__links {
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.navbar__links a {
  /* inline-flex + line-height:normal pour que la pilule des liens se peigne
     exactement comme celle du <button> du dropdown. En display:inline, la boîte
     inline débordait de 4,1 px vers le haut hors de son <li> et le bouton
     paraissait décalé vers le bas. Hauteur inchangée (34,88 px). */
  display: inline-flex;
  align-items: center;
  line-height: normal;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--pill);
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.navbar__links a:hover,
.navbar__links a.active {
  background: var(--green-deep);
  color: var(--green-light);
}

.navbar__links a:active { transform: scale(0.96); }

/* ---- Menu déroulant Boutique (Thé / Beauté) ----
   Porté depuis Veriane (ecommerce/veriane/style.css) et re-tokenisé pour Midori.
   CSS pur : ouverture au survol ET au clavier via :focus-within. */
.navbar__links > li { position: relative; }

.navbar__dropdown-toggle {
  font-family: inherit;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}

.navbar__dropdown-toggle::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease-out);
}

.navbar__dropdown-toggle:hover,
.navbar__dropdown-toggle.active,
.navbar__dropdown:hover .navbar__dropdown-toggle,
.navbar__dropdown:focus-within .navbar__dropdown-toggle {
  background: var(--green-deep);
  color: var(--green-light);
}

.navbar__dropdown:hover .navbar__dropdown-toggle::after,
.navbar__dropdown:focus-within .navbar__dropdown-toggle::after {
  transform: rotate(-135deg) translateY(2px);
}

.navbar__dropdown-menu {
  position: absolute;
  /* +14px : dégage le padding de la pilule .navbar__links */
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 0 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  /* au-dessus du widget de chat et des product-card */
  z-index: 1002;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-col__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  padding: 4px 12px 8px;
  margin: 0;
}

.navbar__dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.navbar__dropdown-menu a:hover {
  background: var(--green-mint);
  color: var(--ink);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar__cart {
  color: var(--green-deep);
  font-size: 1.25rem;
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.navbar__cart:hover { background: var(--green-mint); }
.navbar__cart:active { transform: scale(0.93); }

.navbar__cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.navbar__menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  width: 44px; height: 44px;
  color: var(--green-deep);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.navbar__menu-toggle:active { transform: scale(0.93); }

/* ===== Hero (type-led) ===== */
.hero {
  background: radial-gradient(120% 130% at 80% -10%, var(--green-deep-2) 0%, var(--green-deep) 55%);
  color: var(--cream);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(199,232,168,0.12);
  border: 1px solid rgba(199,232,168,0.3);
  padding: 7px 16px;
  border-radius: var(--pill);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 22px;
}

.hero__title span { color: var(--cream); }

.hero__wave { display: block; width: 280px; max-width: 60%; margin: -6px 0 26px; color: var(--green-light); }

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(244,247,236,0.78);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero__cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__media {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero__media img { width: 100%; display: block; }

.hero__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(244,247,236,0.18);
}

.hero__info-item { font-size: 0.92rem; color: rgba(244,247,236,0.8); }
.hero__info-item strong { display: block; color: var(--green-light); font-weight: 600; margin-bottom: 2px; }

/* Entrée du hero au chargement (neutralisée par prefers-reduced-motion plus bas) */
.hero__eyebrow { animation: midori-rise 700ms var(--ease-out) both; }
.hero__title { animation: midori-rise 700ms var(--ease-out) 60ms both; }
.hero__wave { animation: midori-rise 700ms var(--ease-out) 130ms both; }
.hero__subtitle { animation: midori-rise 700ms var(--ease-out) 190ms both; }
.hero__cta { animation: midori-rise 700ms var(--ease-out) 250ms both; }
.hero__media { animation: midori-rise 800ms var(--ease-out) 320ms both; }
.hero__info { animation: midori-rise 800ms var(--ease-out) 400ms both; }

@keyframes midori-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--pill);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  gap: 8px;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--cream); color: var(--green-deep); }
.btn--primary:hover { background: var(--green-light); }

.btn--dark { background: var(--green-deep); color: var(--green-light); }
.btn--dark:hover { background: var(--green-deep-2); }

.btn--outline { background: transparent; color: var(--cream); border-color: rgba(244,247,236,0.5); }
.btn--outline:hover { background: var(--cream); color: var(--green-deep); border-color: var(--cream); }

.btn--outline-dark { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn--outline-dark:hover { background: var(--green-deep); color: var(--green-light); }

.btn--lg { padding: 16px 38px; font-size: 1.02rem; }
.btn--full { width: 100%; }
.btn--added { background: var(--success) !important; color: var(--cream) !important; }

/* Panier vide */
.cart-empty { text-align: center; padding: 50px 0 60px; }

/* ===== Section ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--green-mint); }
.section--dark { background: var(--green-deep); color: var(--cream); }

.section__header { max-width: 720px; margin-bottom: 44px; }
.section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
/* Le widget Tolk injecte sa barre « Ask a question » + ses suggestions dans le
   header de section. Sans contexte d'empilement dédié, le dropdown de suggestions
   passe SOUS les .product-card (positionnées, plus loin dans le DOM). z-index < 1000
   (navbar fixe) pour ne rien masquer d'autre. */
.section__header--center { position: relative; z-index: 50; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--pill);
  margin-bottom: 18px;
}

.section--dark .eyebrow { color: var(--green-light); background: rgba(199,232,168,0.12); border-color: rgba(199,232,168,0.28); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 14px;
}

.section--dark .section__title { color: var(--green-light); }

.section__subtitle { color: var(--text-light); font-size: 1.08rem; }
.section--dark .section__subtitle { color: rgba(244,247,236,0.75); }

/* ===== Product Grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Product Card ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--green-mint);
}

.product-card__image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 13px;
  border-radius: var(--pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge--new { background: var(--green-deep); color: var(--green-light); }
.badge--sale { background: var(--sale); color: var(--white); }
.badge--bestseller { background: var(--sand); color: var(--ink); }
/* Rubrique Beauté : sable clair, pour distinguer les soins de la gamme Thé */
.badge--beaute { background: var(--cream); color: var(--ink); border: 1px solid var(--sand); }

.product-card__body { padding: 18px 20px 22px; }

.product-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.product-card__name { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.product-card__desc { font-size: 0.86rem; color: var(--text-light); margin-bottom: 12px; }
.product-card__price { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.product-card__price--old { text-decoration: line-through; color: var(--text-light); font-weight: 400; font-size: 0.9rem; margin-right: 8px; }
.product-card__price-unit { font-size: 0.78rem; font-weight: 400; color: var(--text-light); margin-left: 6px; }

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  padding: 32px 0 8px;
}

.product-detail__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--green-mint);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.product-detail__image img { width: 100%; display: block; }

.product-detail__info { padding: 8px 0; }

.product-detail__cat {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}

.product-detail__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.product-detail__price { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.product-detail__price--old { font-size: 1.15rem; text-decoration: line-through; color: var(--text-light); font-weight: 400; margin-right: 12px; }
.product-detail__price-unit { font-size: 0.9rem; font-weight: 400; color: var(--text-light); margin-left: 8px; }

.product-detail__desc { color: var(--text); font-size: 1.02rem; line-height: 1.75; margin-bottom: 28px; }

.product-detail__label {
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Format selector */
.format-selector { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }

.format-selector__btn {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.format-selector__btn:hover { border-color: var(--green-deep); }
.format-selector__btn:active { transform: scale(0.96); }
.format-selector__btn.active { background: var(--green-deep); color: var(--green-light); border-color: var(--green-deep); }

/* Quantity */
.quantity-selector {
  display: flex; align-items: center;
  margin-bottom: 26px;
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  width: fit-content;
  overflow: hidden;
}

.quantity-selector button {
  width: 46px; height: 46px;
  border: none; background: transparent;
  font-size: 1.2rem; cursor: pointer; color: var(--text);
  transition: background-color var(--dur) var(--ease-out);
}

.quantity-selector button:hover { background: var(--green-mint); }
.quantity-selector button:active { background: var(--border); }

.quantity-selector input {
  width: 52px; height: 46px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center; font-size: 1rem; font-weight: 600;
  font-family: var(--font-main);
  background: var(--white);
}

/* Specs table */
.spec-table { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); width: 100%; border-collapse: collapse; }
.spec-table th { text-align: left; font-weight: 600; color: var(--ink); padding: 9px 0; font-size: 0.9rem; width: 38%; vertical-align: top; }
.spec-table td { padding: 9px 0; color: var(--text-light); font-size: 0.9rem; }
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid var(--border); }

.trust-list { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-light); }
.trust-list p { margin-bottom: 6px; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 18px 0; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); transition: color var(--dur) var(--ease-out); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__separator { color: var(--border); }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.feature {
  padding: 34px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.feature__icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature__text { color: var(--text-light); font-size: 0.92rem; }

/* ===== Editorial cards ===== */
.editorial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.editorial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.editorial-card__media { aspect-ratio: 4/3; background: var(--green-mint); overflow: hidden; }
.editorial-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.editorial-card__body { padding: 18px 20px 22px; }
.editorial-card__date { font-size: 0.76rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.editorial-card__title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* ===== Wellness band ===== */
.wellness {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.wellness__quote { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; color: var(--ink); margin-bottom: 20px; }
.wellness__text { color: var(--text-light); margin-bottom: 26px; max-width: 460px; }
.wellness__art { color: var(--coral); }
.wellness__art svg { width: 100%; height: auto; }

/* ===== Newsletter ===== */
.newsletter { background: var(--green-deep); color: var(--cream); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.newsletter__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; color: var(--green-light); margin-bottom: 10px; }
.newsletter__text { color: rgba(244,247,236,0.7); margin-bottom: 28px; }
.newsletter__form { display: flex; max-width: 500px; margin: 0 auto; gap: 12px; }
.newsletter__input { flex: 1; padding: 15px 22px; border: none; border-radius: var(--pill); font-size: 0.95rem; font-family: var(--font-main); outline: none; }

/* ===== Footer ===== */
.footer { background: var(--green-deep); color: rgba(244,247,236,0.7); padding: 64px 0 0; }
/* 5 colonnes depuis la V2 : marque + Thé + Beauté + Informations + Légal */
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand { display: inline-block; margin-bottom: 16px; }
.footer__brand img { height: 48px; width: auto; display: block; }
.footer__desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(244,247,236,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 0.85rem; font-weight: 600;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.footer__social a:hover { background: var(--green-light); color: var(--green-deep); }
.footer__social a:active { transform: scale(0.92); }
.footer__heading { font-size: 0.85rem; font-weight: 700; color: var(--cream); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 0.9rem; transition: color var(--dur) var(--ease-out); }
.footer__links a:hover { color: var(--green-light); }
.footer__bottom { border-top: 1px solid rgba(244,247,236,0.12); padding: 22px 0; text-align: center; font-size: 0.85rem; }
.footer__managed { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.footer__managed a { display: inline-flex; align-items: center; transition: opacity var(--dur) var(--ease-out); }
.footer__managed a:hover { opacity: 0.7; }
.footer__managed-logo { height: 22px; width: auto; display: block; }

/* ===== Catalogue ===== */
.catalogue-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 24px 0 56px; }
.filter-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); align-self: start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__title { font-size: 0.82rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--green-mint); }
.filter-group label { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 0.9rem; cursor: pointer; color: var(--text); transition: color var(--dur) var(--ease-out); }
.filter-group label:hover { color: var(--green); }
.filter-group input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }

/* ===== About ===== */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-story__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.about-story__text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.about-story__text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card { padding: 34px 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.value-card__icon { font-size: 2.2rem; margin-bottom: 16px; }
.value-card__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.value-card__text { color: var(--text-light); font-size: 0.92rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--green-mint); }
.team-card__body { padding: 20px; }
.team-card__name { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.team-card__role { font-size: 0.85rem; color: var(--green); font-weight: 600; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font-main); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); outline: none; background: var(--white); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(92,127,58,0.15); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-info-card { background: var(--green-mint); border-radius: var(--radius); padding: 32px; margin-bottom: 20px; }
.contact-info-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.contact-info-item__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* ===== Contact — bloc « Posez une question » (chat Tolk embarqué) ===== */
.ask { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }

.ask__copy { max-width: 520px; }
.ask__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 16px;
}
.ask__lead { color: var(--text); font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }
.ask__lead strong { color: var(--ink); font-weight: 700; }
.ask__hint { font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-bottom: 12px; }

.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 0.88rem;
  text-align: left;
  color: var(--green-deep);
  background: var(--green-mint);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: var(--pill);
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.ask-chip::after {
  content: "→";
  font-size: 0.95em;
  opacity: 0.5;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.ask-chip:active { transform: scale(0.96); }
.ask-chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* La « fenêtre » du chat — frame type app, qui intrigue */
.ask-window {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ask-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.ask-window__dots { display: flex; gap: 7px; }
.ask-window__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(244,247,236,0.32); }
.ask-window__dot:first-child { background: var(--coral); }
.ask-window__dot:nth-child(2) { background: var(--sand); }
.ask-window__dot:nth-child(3) { background: var(--green-light); }
.ask-window__body { position: relative; background: var(--white); }
/* Le widget Tolk (template "fullscreen") s'injecte ici et remplit le conteneur.
   Hauteur fixe pour un cadre stable (le contenu du chat scrolle à l'intérieur).
   ⚠️ Règles SCOPÉES à .ask-window__body (page Contact) : sur les autres pages, le
   widget flottant crée lui-même un <div id="lightchat-container"> ajouté au <body>.
   Si ces règles n'étaient pas scopées, elles forçaient son iframe à 100% de l'écran
   → couche plein écran qui bloquait tous les clics sur toute la page. */
.ask-window__body #lightchat-container {
  width: 100%;
  height: 480px;
  display: block;
}
.ask-window__body #lightchat-container iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }

/* ===== Récap commande (page commande + confirmation) ===== */
.co-line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.95rem; }
.co-line--total { border-top: 2px solid var(--green-deep); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.co-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.co-item:last-child { border-bottom: none; }
.co-item__img { width: 46px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--green-mint); flex-shrink: 0; }
.co-item__info { flex: 1; min-width: 0; }
.co-item__name { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.co-item__meta { font-size: 0.8rem; color: var(--text-light); }
.co-item__price { font-weight: 700; color: var(--ink); font-size: 0.9rem; white-space: nowrap; }
#checkout-items, #order-items { margin-bottom: 10px; }

/* ===== Page Header ===== */
.page-header { background: radial-gradient(120% 140% at 80% -20%, var(--green-deep-2) 0%, var(--green-deep) 60%); color: var(--cream); padding: 56px 0; }
.page-header__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; letter-spacing: 0.5px; color: var(--green-light); }
.page-header__subtitle { color: rgba(244,247,236,0.7); margin-top: 8px; }

/* ===== V2 — Ligne Beauté =====
   Mêmes tokens que la gamme Thé, dominante crème/sable pour distinguer
   la rubrique sans rompre l'unité de marque. */

/* Bloc d'accroche Beauté sur l'accueil */
.beauty-intro { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.beauty-intro__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.beauty-intro__title { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); }
.beauty-intro__text { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.65; color: var(--text); margin: 16px 0 24px; }
.beauty-intro__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.beauty-intro__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Onglets des pages produit Beauté (Description / Ingrédients / Routine) */
.product-tabs { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-tabs__nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.product-tabs__btn {
  font-family: inherit; font-size: 0.86rem; font-weight: 600; color: var(--text-light);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--pill);
  padding: 9px 18px; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.product-tabs__btn:hover { background: var(--green-mint); color: var(--ink); }
.product-tabs__btn.active { background: var(--green-deep); border-color: var(--green-deep); color: var(--green-light); }
.product-tabs__panel { display: none; animation: midori-rise 380ms var(--ease-out) both; }
.product-tabs__panel.active { display: block; }
.product-tabs__panel p { color: var(--text); line-height: 1.7; }
.product-tabs__panel p + p { margin-top: 12px; }

/* Liste d'actifs — surface principale de démo pour l'agent */
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list strong { display: block; color: var(--ink); font-size: 0.94rem; font-weight: 700; margin-bottom: 3px; }
.ingredient-list span { display: block; color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
.ingredient-list__inci { margin-top: 18px; font-size: 0.78rem; color: var(--text-light); line-height: 1.6; font-style: italic; }

/* Étapes de routine (pages Routines + onglet Routine conseillée) */
.routine-steps { list-style: none; counter-reset: routine; margin: 0; padding: 0; }
.routine-steps li { counter-increment: routine; position: relative; padding: 0 0 22px 52px; }
.routine-steps li::before {
  content: counter(routine);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-deep); color: var(--green-light);
  font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.routine-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px;
  width: 1px; background: var(--border);
}
.routine-steps strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.routine-steps span { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; }

/* Cross-sell « Complétez votre rituel » */
.cross-sell { margin-top: 28px; padding: 22px; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); }
.cross-sell__title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 14px; }
.cross-sell__items { display: grid; gap: 10px; }
.cross-sell__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border); transition: border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.cross-sell__item:hover { border-color: var(--green); transform: translateX(3px); }
.cross-sell__item img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cross-sell__name { display: block; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.cross-sell__why { display: block; color: var(--text-light); font-size: 0.82rem; line-height: 1.5; margin-top: 2px; }
.cross-sell__price { margin-left: auto; color: var(--ink); font-weight: 700; font-size: 0.92rem; white-space: nowrap; }

/* ===== Intro au chargement — cohérente sur toutes les pages =====
   Le contenu glisse depuis le bas (même esprit que le hero de l'accueil).
   fill-mode "backwards" : pas de transform résiduel -> position:sticky préservée. */
.page-header__title { animation: midori-rise 700ms var(--ease-out) backwards; }
.page-header__subtitle { animation: midori-rise 700ms var(--ease-out) 90ms backwards; }
.breadcrumb { animation: midori-rise 600ms var(--ease-out) 150ms backwards; }
.catalogue-layout { animation: midori-rise 760ms var(--ease-out) 230ms backwards; }
.product-detail { animation: midori-rise 720ms var(--ease-out) 220ms backwards; }
.contact-grid { animation: midori-rise 720ms var(--ease-out) 210ms backwards; }
.ask__copy { animation: midori-rise 720ms var(--ease-out) 210ms backwards; }
.ask-window { animation: midori-rise 760ms var(--ease-out) 320ms backwards; }
.about-story { animation: midori-rise 720ms var(--ease-out) 210ms backwards; }

/* ===== Hovers gated (souris uniquement, jamais sur tactile) ===== */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
  .product-card:hover .product-card__image-wrapper img { transform: scale(1.06); }
  .editorial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .editorial-card:hover .editorial-card__media img { transform: scale(1.05); }
  .feature:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
  .value-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
  .team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .ask-chip:hover { background: var(--green-light); border-color: var(--green-light); }
  .ask-chip:hover::after { transform: translateX(3px); opacity: 1; }
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn:active { transform: scale(0.97); box-shadow: none; }
}

/* ===== Reveal au scroll (progressif : seulement si supporté + mouvement autorisé) ===== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section__header, .feature, .value-card,
    .wellness, .contact-info-card, .product-card {
      animation: midori-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
    /* Les cartes interactives : opacité seule (le translate est réservé au hover) */
    .editorial-card, .product-card { animation-name: midori-fade; }

    @keyframes midori-reveal {
      from { opacity: 0; transform: translateY(26px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes midori-fade {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-layout { grid-template-columns: 210px 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero__info { grid-template-columns: 1fr; gap: 14px; }

  .navbar__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 16px; right: 16px;
    flex-direction: column;
    padding: 14px;
    gap: 6px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  .navbar__links.open { display: flex; animation: midori-rise 280ms var(--ease-out) both; }
  .navbar__links a { text-align: center; }
  .navbar__menu-toggle { display: block; }

  /* Le dropdown se déplie à plat dans le burger : plus de survol sur mobile. */
  .navbar__dropdown-toggle { width: 100%; justify-content: center; }
  .navbar__dropdown-toggle::after { display: none; }
  .navbar__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    grid-template-columns: 1fr;
    gap: 0;
    border: none;
    box-shadow: none;
    padding: 4px 0 8px;
    background: transparent;
  }
  .navbar__dropdown:hover .navbar__dropdown-menu,
  .navbar__dropdown:focus-within .navbar__dropdown-menu { transform: none; }
  .navbar__dropdown-menu a { text-align: center; white-space: normal; }
  .navbar__dropdown-col__title { text-align: center; padding-top: 10px; }

  .beauty-intro__head { grid-template-columns: 1fr; gap: 28px; }

  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__image { position: static; }
  .features, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .contact-grid, .about-story, .wellness { grid-template-columns: 1fr; }
  .ask { grid-template-columns: 1fr; gap: 36px; }
  .ask__copy { max-width: none; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .product-grid, .product-grid--4 { grid-template-columns: 1fr; }
}

/* ===== Accessibilité : réduire le mouvement ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
