/* ==========================================================================
   Les Mignardise de Mantee — douceurs indiennes faites maison, La Réunion
   ========================================================================== */

:root {
  --cream: #FAF4E9;
  --cream-2: #F5ECDB;
  --white: #FFFFFF;
  --ink: #3B2D22;
  --ink-soft: #5C4B3B;
  --muted: #7C6A55;
  --gold: #B9892F;
  --gold-deep: #9A711F;
  --gold-soft: #E9D9B4;
  --gold-line: #DCC892;
  --olive: #5C6B37;
  --olive-deep: #49562B;
  --pink: #D66E8F;
  --pink-deep: #C2557A;
  --blush: #FBECEF;
  --amber: #E3A33C;
  --amber-deep: #CF8A25;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 45px -18px rgba(89, 63, 30, 0.22);
  --shadow-card: 0 10px 30px -14px rgba(89, 63, 30, 0.18);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --font-script: "Great Vibes", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: #EAD9AE; color: var(--ink); }

[id] { scroll-margin-top: 96px; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- typographic atoms ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

.eyebrow::before {
  content: "❁";
  font-size: 13px;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.h-script { font-family: var(--font-script); font-weight: 400; }

.accent-pink { color: var(--pink); }

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 14px;
}

.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.ornament::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Reflet qui balaie le bouton au survol */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.btn:hover::after { transform: translateX(130%); }

.btn:hover { transform: translateY(-2px); }

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

.btn-gold {
  background: linear-gradient(135deg, #C99A3F, #AD7D24);
  color: #FFF9EE;
  box-shadow: 0 12px 26px -12px rgba(173, 125, 36, 0.65);
}

.btn-olive {
  background: linear-gradient(135deg, #66763E, #4C5A2C);
  color: #F4F7EA;
  box-shadow: 0 12px 26px -12px rgba(76, 90, 44, 0.6);
}

.btn-pink {
  background: linear-gradient(135deg, #DD7E9D, #C2557A);
  color: #FFF6F8;
  box-shadow: 0 12px 26px -12px rgba(194, 85, 122, 0.55);
}

.btn-white {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 12px 26px -14px rgba(70, 45, 10, 0.45);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow:hover { color: var(--gold-deep); border-color: var(--gold); }

.wa-ico { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #FFFDF8;
  border-bottom: 1px solid rgba(185, 137, 47, 0.14);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 10px 32px -16px rgba(89, 63, 30, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-inner { padding: 9px 0; }

.brand-mark { transition: width 0.3s ease, height 0.3s ease; }

.site-header.scrolled .brand-mark { height: 42px; width: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Le monogramme n'est pas carré (394×320) : on pilote la hauteur et on laisse
   la largeur suivre, sinon l'image est écrasée. */
.brand-mark { height: 50px; width: auto; flex: none; }

/* Lockup complet au pied de page, en version crème sur fond sombre */
.footer-logo {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.05;
}

.brand-name .h-script {
  display: block;
  font-size: 20px;
  color: var(--gold);
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover { color: var(--gold-deep); }

.main-nav a.active { color: var(--gold-deep); }

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.btn-header-wa { padding: 11px 20px; font-size: 14px; }

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: #FFFDF7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cart-btn:hover { border-color: var(--gold); transform: translateY(-1px); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.is-empty { display: none; }

@keyframes count-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.cart-count.pop,
[data-cart-total].pop { animation: count-pop 0.35s ease; display: inline-block; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--gold-soft);
  background: #FFFDF7;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: #FFFDF7;
  border-bottom: 1px solid rgba(185, 137, 47, 0.16);
  padding: 10px 0 22px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(185, 137, 47, 0.1);
}

.mobile-nav .btn { margin-top: 16px; width: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-copy > * { animation: rise 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) backwards; }
.hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.19s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.33s; }

.hero-media img { animation: hero-zoom 1.6s cubic-bezier(0.22, 0.7, 0.3, 1) backwards; }

/* Le badge utilise `translate` (et non `transform`) pour ne pas casser son centrage */
@keyframes badge-in {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes badge-bob {
  50% { translate: 0 -7px; }
}

.hero-badge {
  animation:
    badge-in 0.8s 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) backwards,
    badge-bob 5s 1.5s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: 640px;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 8% 70px;
}

.hero-flourish {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-copy .eyebrow { margin-bottom: 26px; }

.hero-title {
  font-size: clamp(38px, 4.6vw, 58px);
  margin-bottom: 22px;
}

.hero-copy .ornament { justify-content: center; margin-bottom: 26px; }

.hero-sub {
  max-width: 420px;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-media {
  position: relative;
  min-height: 420px;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: -66px;
  top: 50%;
  transform: translateY(-50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #F7E3B5;
  border: 1px solid rgba(154, 113, 31, 0.35);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  color: #7A5A17;
  padding: 14px;
  z-index: 3;
}

.hero-badge .heart { color: var(--pink); margin-top: 4px; font-size: 15px; }

/* ---------- trust strip ---------- */

.trust {
  background: var(--cream);
  border-top: 1px solid rgba(185, 137, 47, 0.12);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.trust-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: #FFFDF6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex: none;
}

.trust-icon svg { width: 24px; height: 24px; }

.trust-item p {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 130px;
}

/* ---------- section scaffolding ---------- */

.section { padding: 96px 0; }

.section-head { max-width: 430px; }

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  margin-bottom: 18px;
}

.section-head .heart { color: var(--pink); font-size: 0.75em; vertical-align: middle; }

/* ---------- best sellers ---------- */

.bestsellers { background: var(--white); }

.bestsellers-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid #F0E6D2;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #E4D0A0;
  box-shadow: var(--shadow-card);
}

.product-card figure {
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: var(--cream-2);
}

.product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover figure img { transform: scale(1.05); }

/* Confirmation visuelle à l'ajout au panier */
@keyframes card-added {
  0% { box-shadow: 0 0 0 0 rgba(102, 118, 62, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(102, 118, 62, 0); }
}

.product-card.just-added {
  border-color: #9BAE6F;
  animation: card-added 0.7s ease-out;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 { font-size: 18px; margin-bottom: 5px; }

.product-body .desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Pastille « Plus sur commande » / minimum de commande */
.tag-more {
  align-self: flex-start;
  background: #FBF3E2;
  border: 1px solid var(--gold-soft);
  /* var(--gold-deep) ne donnait que 4,00:1 sur #FBF3E2 : sous le 4,5:1 exige en AA */
  color: #8D6819;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Composition : uniquement les ingrédients donnés par Mantee, jamais devinés. */
.compo {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 12px;
}

.compo strong { color: var(--ink-soft); font-weight: 600; }

/* Paliers de prix (briani) : affichés sous le prix, pas dans la pastille */
.tiers {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #FBF3E2;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tiers b { color: var(--gold-deep); font-weight: 700; }

/* Libellé réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Choix de parfum (alouda) */
.variant {
  width: 100%;
  margin: 0 0 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  cursor: pointer;
}

.variant:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* Carreau ornemental quand nous n'avons pas encore la vraie photo du produit */
.no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 45%, #FBF3E2 0%, #F4E9D3 70%);
  color: var(--gold-deep);
}

.no-photo svg { width: 54px; height: 54px; opacity: 0.55; }

.no-photo span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price { font-weight: 700; color: var(--gold-deep); font-size: 16px; }

/* L'unité ne doit jamais se couper en deux (« 7,00 € / » puis « plat ») */
.price .unit { font-weight: 500; color: var(--muted); font-size: 13px; white-space: nowrap; }

.add-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #66763E, #4C5A2C);
  color: #F4F7EA;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: none;
}

.add-btn:hover { transform: scale(1.08); box-shadow: 0 8px 18px -8px rgba(76, 90, 44, 0.7); }

.add-btn:active { transform: scale(0.92); }

.add-btn svg { width: 18px; height: 18px; }

/* ---------- story ---------- */

.story { background: var(--white); padding: 0 0 96px; }

.story-panel {
  position: relative;
  background: linear-gradient(160deg, #FBF5E9, #F7EDDC);
  border: 1px solid rgba(185, 137, 47, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 68px 56px 56px;
}

.story-motif {
  position: absolute;
  right: -70px;
  top: -60px;
  width: 260px;
  color: var(--gold);
  opacity: 0.12;
  pointer-events: none;
}

.story-text {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.story-text .eyebrow { margin-bottom: 16px; }

.story-text h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 22px; }

.story-text p { color: var(--ink-soft); font-size: 16px; }

.signature {
  font-family: var(--font-script);
  font-size: 44px;
  line-height: 1.2;
  color: var(--olive);
  margin-top: 22px;
}

.story-points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(185, 137, 47, 0.22);
}

.story-point {
  display: flex;
  align-items: center;
  gap: 13px;
}

.story-point .trust-icon { width: 46px; height: 46px; }

.story-point .trust-icon svg { width: 21px; height: 21px; }

.story-point p { font-size: 14px; font-weight: 500; color: var(--ink-soft); line-height: 1.45; }

/* ---------- traiteur ---------- */

.traiteur { background: var(--white); padding-top: 0; }

.traiteur-panel {
  position: relative;
  background: linear-gradient(150deg, #FBECEF, #F9E3E8);
  border-radius: var(--radius-lg);
  padding: 64px 58px;
  overflow: hidden;
}

.traiteur-motif {
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 280px;
  opacity: 0.16;
  pointer-events: none;
}

.traiteur-grid {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.traiteur-copy .eyebrow { color: var(--amber-deep); margin-bottom: 14px; }

.traiteur-copy h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }

.traiteur-copy p { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }

.traiteur-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.traiteur-card figure {
  aspect-ratio: 1 / 0.86;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream-2);
}

.traiteur-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.traiteur-card:hover figure img { transform: scale(1.05); }

.traiteur-card figcaption {
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- steps ---------- */

.steps { background: var(--white); padding: 0 0 96px; }

.steps-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 60px;
  row-gap: 44px;
  align-items: center;
}

.steps-grid .section-head { grid-column: 1; grid-row: 1; }

.steps-list {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.steps-grid .steps-aside { grid-column: 1 / -1; grid-row: 2; }

.step { text-align: center; padding: 0 4px; }

.step-icon {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #FBF3E2;
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}

.step-icon svg { width: 34px; height: 34px; }

.step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C99A3F, #AD7D24);
  color: #FFF9EE;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 19px; margin-bottom: 8px; white-space: nowrap; }

.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

.steps-aside {
  background: #F2F5EA;
  border: 1px solid rgba(92, 107, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.steps-aside .wa-round {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(92, 107, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}

.aside-copy { flex: 1; min-width: 0; }

.steps-aside h3 { font-size: 19px; margin-bottom: 3px; }

.steps-aside p { font-size: 14.5px; color: var(--ink-soft); }

.steps-aside .btn { flex: none; padding: 13px 24px; font-size: 14.5px; }

/* ---------- testimonials ---------- */

.avis { background: var(--white); padding: 0 0 96px; }

.avis-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}

.avis-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.avis-card {
  background: #FDFAF3;
  border: 1px solid #F0E6D2;
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avis-card .quote-mark {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.6;
  color: var(--gold);
}

.avis-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }

.stars { color: #E0952F; letter-spacing: 3px; font-size: 15px; }

.who-row { display: flex; align-items: center; gap: 11px; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EAD9AE, #D9BE7F);
  color: #6B5014;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.avis-card .who { font-weight: 600; font-size: 14px; color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--white); padding-top: 0; padding-bottom: 96px; }

.cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, #E8AC45, #D08A24);
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 30px;
  padding: 54px 58px;
}

.cta-mandala {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  opacity: 0.16;
  pointer-events: none;
}

.cta-copy { position: relative; }

.cta-copy h2 {
  color: #FFF9ED;
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 12px;
  max-width: 480px;
}

.cta-copy p { color: rgba(255, 249, 237, 0.85); font-size: 15px; margin-bottom: 26px; max-width: 420px; }

.cta-note { display: block; margin-top: 12px; font-size: 13px; color: rgba(255, 249, 237, 0.8); }

.cta-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(70, 40, 0, 0.5);
  aspect-ratio: 1 / 0.85;
  background: #C98F2E;
}

.cta-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */

.site-footer {
  background: #2F241A;
  color: #E9DFCF;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(233, 223, 207, 0.14);
}

.footer-brand .brand-name { color: #E9C87B; }

.footer-brand .brand-name .h-script { color: #D9B65E; }

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(233, 223, 207, 0.75);
  max-width: 300px;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #F3E9D8;
  margin-bottom: 18px;
}

.footer-links { list-style: none; display: grid; gap: 10px; }

.footer-links a {
  font-size: 14px;
  color: rgba(233, 223, 207, 0.78);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: #E9C87B; }

.footer-links li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(233, 223, 207, 0.78); }

.footer-links svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: #C9A75B; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(233, 223, 207, 0.55);
}

.footer-bottom a { color: rgba(233, 223, 207, 0.75); }

.footer-bottom a:hover { color: #E9C87B; }

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, 0.6);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, bottom 0.3s ease;
}

/* Apparition élastique une fois le hero dépassé */
.js .wa-float { transform: scale(0); opacity: 0; pointer-events: none; }

.js .wa-float.show { transform: scale(1); opacity: 1; pointer-events: auto; }

.wa-float:hover,
.js .wa-float.show:hover { transform: scale(1.08); }

.wa-float svg { width: 30px; height: 30px; }

/* ---------- cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 30, 16, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  background: #FFFDF7;
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(60, 40, 15, 0.18);
}

.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid #F0E6D2;
}

.cart-head h3 { font-size: 21px; }

.cart-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #EADFC8;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
  color: var(--ink-soft);
}

.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; }

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 46px 12px;
  font-size: 15px;
}

.cart-empty .h-script { display: block; font-size: 30px; color: var(--gold); margin-bottom: 8px; }

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F4ECDB;
}

.cart-item img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
}

/* Vignette de repli pour les produits dont nous n'avons pas encore la photo */
.cart-item .ci-noimg {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FBF3E2;
  color: var(--gold-deep);
}

.cart-item .ci-noimg svg { width: 28px; height: 28px; opacity: 0.6; }

.cart-item .ci-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }

.cart-item .ci-price { font-size: 13px; color: var(--gold-deep); font-weight: 600; margin-top: 3px; }

.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E5D9BE;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ci-min {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.qty-val { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }

.ci-remove {
  border: none;
  background: none;
  color: #C77;
  cursor: pointer;
  font-size: 12.5px;
  text-decoration: underline;
  justify-self: end;
}

.cart-foot {
  padding: 20px 24px 26px;
  border-top: 1px solid #F0E6D2;
  background: #FBF6EA;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.cart-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.cart-foot .btn { width: 100%; }

/* ---------- boutique page ---------- */

.page-hero {
  background: var(--cream);
  text-align: center;
  padding: 70px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero .eyebrow { margin-bottom: 14px; }

.page-hero h1 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 16px; }

.page-hero p { max-width: 520px; margin: 0 auto; color: var(--ink-soft); }

.cat-block { padding: 64px 0 8px; }

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.cat-head h2 { font-size: clamp(24px, 2.6vw, 32px); }

.cat-head .cat-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-soft), transparent); }

.boutique-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.boutique-note {
  background: #FBF3E2;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 70px 0 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.boutique-note svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; margin-top: 2px; }

/* ==========================================================================
   Animations — apparition au scroll
   Tout est gated par `.js` : sans JavaScript, la page reste entièrement visible.
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.js .reveal.visible { opacity: 1; transform: none; }

/* Les enfants d'une grille apparaissent en cascade */
.js .stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.js .stagger.visible > * { opacity: 1; transform: none; }

/* Un conteneur `reveal stagger` ne s'anime pas lui-même : seuls ses enfants bougent.
   Le double marquage est volontaire — il garantit que la grille reste révélée même
   si un app.js mis en cache par le CDN n'observe que `.reveal`. */
.js .reveal.stagger { opacity: 1; transform: none; transition: none; }

.js .stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.js .stagger.visible > *:nth-child(2) { transition-delay: 0.11s; }
.js .stagger.visible > *:nth-child(3) { transition-delay: 0.18s; }
.js .stagger.visible > *:nth-child(4) { transition-delay: 0.25s; }
.js .stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.js .stagger.visible > *:nth-child(6) { transition-delay: 0.39s; }
.js .stagger.visible > *:nth-child(7) { transition-delay: 0.46s; }
.js .stagger.visible > *:nth-child(8) { transition-delay: 0.53s; }

/* Le filet doré des titres de rayon se trace */
.js .cat-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s 0.15s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.js .reveal.visible .cat-line { transform: scaleX(1); }

/* La fleur des sur-titres pivote en place */
.js .reveal .eyebrow::before,
.js .stagger .eyebrow::before {
  rotate: -110deg;
  opacity: 0;
  transition: rotate 0.7s 0.15s cubic-bezier(0.22, 0.7, 0.3, 1), opacity 0.5s 0.15s ease;
}

.js .reveal.visible .eyebrow::before,
.js .stagger.visible .eyebrow::before { rotate: 0deg; opacity: 1; }

/* Les images arrivent en fondu une fois chargées (pas de « pop ») */
.fade-img { opacity: 0; transition: opacity 0.55s ease; }
.fade-img.loaded { opacity: 1; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .stagger > * { opacity: 1; transform: none; }
  .js .cat-line { transform: scaleX(1); }
  .js .reveal .eyebrow::before,
  .js .stagger .eyebrow::before { rotate: 0deg; opacity: 1; }
  .fade-img { opacity: 1; }
  .js .wa-float { transform: scale(1); opacity: 1; pointer-events: auto; }
  .hero-badge { animation: none; }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #FBF4E6;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 12px 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 95;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 460px);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast-action {
  flex: none;
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  background: #55663A;
  color: #F4F7EA;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toast-action:hover { background: #66763E; }

/* ---------- barre panier mobile ---------- */

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 72;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #FFFDF8;
  border-top: 1px solid rgba(185, 137, 47, 0.2);
  box-shadow: 0 -12px 30px -18px rgba(89, 63, 30, 0.4);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.cart-bar.show { transform: none; }

.cart-bar-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #66763E, #4C5A2C);
  color: #F4F7EA;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.cart-bar-btn .cb-left { display: flex; align-items: center; gap: 9px; }

.cart-bar-btn .cb-left > span { display: inline; }

.cart-bar-btn svg { width: 19px; height: 19px; flex: none; }

.cart-bar-btn .cb-right { display: flex; align-items: center; gap: 8px; opacity: 0.95; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .btn-header-wa { display: none; }

  .products-row { grid-template-columns: repeat(3, 1fr); }
  .bestsellers-grid,
  .avis-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .steps-grid .section-head,
  .steps-grid .steps-list,
  .steps-grid .steps-aside { grid-column: 1; grid-row: auto; }
  .story-panel { padding: 56px 40px 44px; }
  .story-points { grid-template-columns: repeat(2, 1fr); gap: 22px 30px; }
  .traiteur-grid { grid-template-columns: 1fr; gap: 34px; }
  .boutique-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 54px 7% 44px; }
  .hero-title { font-size: 35px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { gap: 18px; width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-media { min-height: 300px; }
  .hero-flourish { width: 170px; opacity: 0.4; }
  .hero-badge {
    left: auto;
    right: 16px;
    top: -38px;
    transform: none;
    width: 104px;
    height: 104px;
    font-size: 11.5px;
    padding: 10px;
  }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 26px 0; }
  .trust-item { justify-content: flex-start; gap: 11px; }
  .trust-icon { width: 46px; height: 46px; }
  .trust-icon svg { width: 21px; height: 21px; }
  .trust-item p { font-size: 13px; }

  .products-row { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .product-body { padding: 14px 14px 16px; }
  .product-body h3 { font-size: 16.5px; }
  .product-body .desc { font-size: 13px; }
  .product-foot { flex-wrap: wrap; row-gap: 10px; }
  .price { font-size: 15.5px; }

  .story-panel { padding: 44px 24px 36px; }
  .story-motif { width: 190px; right: -50px; top: -40px; }
  .story-text h2 { font-size: 27px; }
  .story-text p { font-size: 15px; }
  .signature { font-size: 38px; }
  .story-points {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
    padding-top: 30px;
    text-align: left;
  }

  .traiteur-panel { padding: 42px 26px; }
  .traiteur-cards { grid-template-columns: 1fr; gap: 24px; }

  .steps-list { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 18px; text-align: left; align-items: center; }
  .step-icon { width: 68px; height: 68px; margin: 0; grid-row: 1 / span 2; }
  .step-icon svg { width: 28px; height: 28px; }
  .step h3 { font-size: 18px; margin-bottom: 4px; align-self: end; }
  .step p { font-size: 14px; align-self: start; }
  .steps-aside {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 26px 22px;
  }
  .steps-aside .btn { width: 100%; }
  .step h3 { white-space: normal; }
  .story { padding-bottom: 64px; }
  .steps { padding-bottom: 64px; }
  .avis { padding-bottom: 64px; }
  .cta-band { padding-bottom: 64px; }

  .avis-track { grid-template-columns: 1fr; }

  .cta-panel { grid-template-columns: 1fr; padding: 40px 26px; }
  .cta-copy h2 { font-size: 28px; }
  .cta-media { max-width: 380px; }

  .boutique-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .cat-block { padding: 44px 0 4px; }
  .page-hero { padding: 52px 0 40px; }
  .boutique-note { margin: 48px 0 12px; padding: 20px 20px; font-size: 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* La barre panier n'existe que sur mobile */
  .cart-bar { display: block; }
  body.has-cart-bar .wa-float { bottom: 96px; }
  body.has-cart-bar .toast { bottom: 166px; }

  /* Le toast s'étire sur toute la largeur pour éviter les retours à la ligne */
  .toast {
    left: 14px;
    right: 14px;
    bottom: 88px;
    max-width: none;
    border-radius: 16px;
    justify-content: space-between;
    padding: 12px 12px 12px 18px;
    transform: translateX(0) translateY(16px);
  }
  .toast.show { transform: translateX(0) translateY(0); }
  .toast [data-toast-msg] { font-size: 13.5px; line-height: 1.35; }
}

/* ==========================================================================
   Page mentions légales / confidentialité
   ========================================================================== */

.legal { background: var(--white); padding: 0 0 96px; }

.legal-body {
  width: min(760px, 92%);
  color: var(--ink-soft);
}

.legal-body h2 {
  font-size: 23px;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-soft);
}

.legal-body h2:first-of-type { margin-top: 8px; }

.legal-body p { margin-bottom: 14px; font-size: 15px; line-height: 1.7; }

.legal-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

.legal-body a:hover { color: var(--ink); }

/* Bandeau d'avertissement tant que les champs obligatoires ne sont pas remplis */
.legal-todo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FDF1E3;
  border: 1px solid #E8C79A;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #6B4A22;
}

.legal-todo svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: #B57324; }

.legal-todo strong { display: block; color: #5C3D18; margin-bottom: 3px; }

.todo {
  display: inline-block;
  background: #B57324;
  color: #FFF8EE;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  white-space: nowrap;
}

/* Fiche d'identité de l'éditeur */
.legal-dl {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 10px 22px;
  margin: 4px 0 8px;
  font-size: 15px;
}

.legal-dl dt { font-weight: 600; color: var(--ink); }

.legal-dl dd { margin: 0; }

.legal-updated {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--gold-soft);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .legal { padding-bottom: 64px; }
  .legal-body h2 { font-size: 20px; margin-top: 34px; }
  .legal-dl { grid-template-columns: 1fr; gap: 3px 0; }
  .legal-dl dd { margin-bottom: 12px; }
}

/* Lien d'évitement clavier, visible seulement au focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #FFF8EC;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  left: 0;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
