/* ===================================================================
   CHOKODENT — Design tokens from Brand Guide v1.3 (approved direction)
   =================================================================== */
:root {
  /* Famille Chocolat (fonctionnelle) */
  --dark-chocolate: #3A1108;
  --signature: #551A0D;
  --milk-chocolate: #7B3F12;
  --soft-cocoa: #B99868;
  --cream: #F3E8DC;

  /* Coeur + Joie */
  --sunshine: #F6C65B;
  --pink: #F4A6A6;
  --mint: #A9DDC8;
  --blue: #4FA3C4;

  /* Pressable-button base shadows (darker variants for the tactile CTA effect) */
  --sunshine-shadow: #D1A13C;
  --signature-shadow: #220A04;

  /* Mega-menu category label colors (darkened for AA text contrast on cream) */
  --label-blue-dark: #2d6a85;
  --label-sunshine-dark: #9a7412;
  --label-rose-dark: #b5595e;

  /* Storybook Jour */
  --sb-creme-chaude: #FEF5EC;
  --sb-blush: #FCEFE9;
  --sb-rose-tendre: #F3BEC4;
  --sb-corail: #EEA18D;
  --sb-corail-profond: #C3685A;
  --sb-or-doux: #F6B978;
  --sb-sauge: #94AE8E;

  /* Storybook Nuit */
  --sb-creme-nuit: #FDF5EB;
  --sb-rose-poudre: #F6D8DF;
  --sb-mauve: #DEBEDA;
  --sb-lavande: #B6A5D6;
  --sb-pervenche: #989BC8;
  --sb-bleu-nuit: #6180B3;
  --sb-ciel-doux: #D8EDFD;
  --sb-poussiere-doree: #F3BF93;

  /* Typography scale */
  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Helvetica Neue', Arial, sans-serif;

  --text-2xs: 0.65rem;
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-sm-plus: 0.95rem;
  --text-base: 1rem;
  --text-md: 1.1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.8rem;
  --text-2xl: 2.6rem;
  --text-display: 4rem;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 32px -12px rgba(58, 17, 8, 0.18);
  --shadow-card: 0 8px 20px -10px rgba(58, 17, 8, 0.14);

  --max-width: 1240px;
  --grid-columns: 12;
  --grid-gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark-chocolate);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--signature);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }
h3 { font-size: var(--text-lg); font-weight: 500; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

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

/* Shared 12-column page grid — every multi-column section below is built on this,
   at every breakpoint (columns stay 12, only each item's `grid-column: span N` changes),
   so spacing/alignment is consistent across sections instead of ad-hoc per component. */
.grid-12 { display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); gap: var(--grid-gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--milk-chocolate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--sunshine);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-base);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Solid buttons get real pressable depth: a darker "base" shadow that compresses on press,
   instead of a flat pill with only a hover lift. Ghost/outline buttons keep the plain lift —
   there's no filled face to give physical depth to. */
.btn-primary {
  background: var(--sunshine);
  color: var(--dark-chocolate);
  box-shadow: 0 4px 0 var(--sunshine-shadow), 0 10px 20px -12px rgba(58,17,8,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.18s ease;
}
.btn-primary:hover { background: #f5bd3f; transform: translateY(-2px); box-shadow: 0 6px 0 var(--sunshine-shadow), 0 12px 22px -10px rgba(58,17,8,0.42); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sunshine-shadow), 0 4px 10px -8px rgba(58,17,8,0.35); }

.btn-secondary {
  background: var(--dark-chocolate);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--signature-shadow), 0 10px 20px -12px rgba(58,17,8,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.18s ease;
}
.btn-secondary:hover { background: var(--signature); transform: translateY(-2px); box-shadow: 0 6px 0 var(--signature-shadow), 0 12px 22px -10px rgba(58,17,8,0.42); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--signature-shadow), 0 4px 10px -8px rgba(58,17,8,0.35); }

.btn-ghost {
  background: #fff;
  color: var(--signature);
  border: 2px solid transparent;
  padding: 10px 24px;
  box-shadow: 0 4px 0 rgba(85,26,13,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.18s ease;
}
.btn-ghost:hover { background: rgba(85, 26, 13, 0.06); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(85,26,13,0.18); }
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(85,26,13,0.18); }
.btn-sm {
  padding: 10px 20px; font-size: var(--text-sm-plus); min-height: 40px;
}
.btn-sm.btn-primary, .btn-sm.btn-secondary { box-shadow: 0 3px 0 var(--sunshine-shadow), 0 7px 14px -10px rgba(58,17,8,0.4); }
.btn-sm.btn-secondary { box-shadow: 0 3px 0 var(--signature-shadow), 0 7px 14px -10px rgba(58,17,8,0.4); }
.btn-sm.btn-primary:active, .btn-sm.btn-secondary:active { transform: translateY(2px); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 232, 220, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(85, 26, 13, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(58,17,8,0.2); }
.site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.scrolled .logo-link img { height: 32px; }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  transition: padding 0.25s ease;
  gap: 32px;
}
.logo-link { display: flex; align-items: center; position: relative; flex-shrink: 0; }
.logo-link img {
  height: 40px;
  width: auto;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), height 0.25s ease;
}
.logo-link.winking img { transform: scaleY(0.72) rotate(-3deg); }
.logo-smile {
  position: absolute; top: 2px; right: -34px; width: 34px; height: auto;
  color: var(--milk-chocolate);
  transform: scale(0.4) rotate(-8deg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.logo-link:hover .logo-smile, .logo-link:focus-visible .logo-smile {
  opacity: 1; transform: scale(1) rotate(-8deg);
}

.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: var(--text-sm-plus);
  text-decoration: none;
  color: var(--dark-chocolate);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1.5px transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.nav-link:hover, .nav-link:focus-visible {
  background: #fff;
  box-shadow: 0 3px 0 rgba(85, 26, 13, 0.14);
}
.nav-sparkle {
  position: absolute; width: 9px; height: 9px; pointer-events: none;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.nav-sparkle.s1 { top: -3px; left: -2px; color: var(--sunshine); }
.nav-sparkle.s2 { bottom: -3px; right: -2px; color: var(--pink); }
.nav-link:hover .nav-sparkle, .nav-link:focus-visible .nav-sparkle { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .nav-sparkle { transition: opacity 0.15s ease; transform: none; }
}
.nav-link.emphasis {
  background: var(--dark-chocolate); color: var(--cream); font-weight: 600;
}
.nav-link.emphasis:hover { background: var(--signature); }
.dropdown .num { color: var(--milk-chocolate); font-weight: 700; margin-right: 4px; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 8px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.94);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(.34,1.56,.64,1), visibility 0.18s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--text-sm-plus);
  color: var(--dark-chocolate);
}
.dropdown a:hover { background: var(--cream); }
.dropdown-icon { flex-shrink: 0; color: var(--milk-chocolate); transition: color 0.15s ease; }
.dropdown a:hover .dropdown-icon { color: var(--signature); }
.dropdown.mega {
  min-width: 900px; display: grid; grid-template-columns: repeat(4, 1fr) 250px; grid-template-rows: auto auto; gap: 0; padding: 16px; align-items: start;
}
.mega-col-brossage { grid-column: 1; grid-row: 1; position: relative; z-index: 4; }
.mega-col-jouer { grid-column: 2; grid-row: 1; }
.mega-col-livres { grid-column: 3; grid-row: 1; }
.mega-col-lily { grid-column: 4; grid-row: 1; }
.dropdown.mega .mega-feature { grid-column: 5; grid-row: 1; border-radius: var(--radius-md); }
.dropdown.mega .mega-col { padding: 6px 14px 10px; border-radius: var(--radius-md); }
.dropdown.mega .mega-col-title {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  padding: 6px 8px 10px; margin-bottom: 4px;
}
.dropdown.mega .mega-icon { margin-top: 1px; }
.dropdown.mega .mega-icon { flex-shrink: 0; }
.dropdown.mega a {
  position: relative;
  font-size: var(--text-sm); padding: 7px 8px; border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background 0.15s ease;
}
.dropdown.mega a:hover { transform: translateX(3px); }

.mega-col-brossage .mega-col-title { color: var(--label-blue-dark); }
.mega-col-jouer .mega-col-title { color: var(--label-sunshine-dark); }
.mega-col-livres .mega-col-title { color: var(--milk-chocolate); }
.mega-col-lily .mega-col-title { color: var(--label-rose-dark); }

.mega-col-brossage a:hover { background: rgba(45,106,133,0.12); }
.mega-col-jouer a:hover { background: rgba(154,116,18,0.12); }
.mega-col-livres a:hover { background: rgba(123,63,18,0.12); }
.mega-col-lily a:hover { background: rgba(181,89,94,0.12); }

.mega-feature {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius-md);
  overflow: hidden; background: linear-gradient(180deg, var(--sb-rose-poudre) 0%, var(--cream) 68%); position: relative; height: auto;
}
.mega-feature img {
  width: 100%; height: 250px; object-fit: contain; object-position: bottom center; padding-top: 10px; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.mega-feature-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--label-rose-dark); color: var(--cream);
  font-size: var(--text-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.mega-feature-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm-plus); color: var(--dark-chocolate); padding: 10px 14px 0; }
.mega-feature-desc { font-size: var(--text-xs); line-height: 1.4; color: var(--milk-chocolate); padding: 4px 14px 0; }
.mega-feature-cta {
  display: flex; align-items: center; gap: 4px; font-size: var(--text-sm); font-weight: 700; color: var(--label-rose-dark);
  padding: 6px 14px 12px; margin-top: auto;
}
.mega-feature:hover .mega-feature-cta { gap: 8px; }
.mega-feature-cta svg { transition: transform 0.15s ease; }

.mega-mascot-strip {
  grid-column: 1 / 6; grid-row: 2;
  position: relative; height: 108px; margin: 10px -16px -16px -16px; overflow: visible;
}
.mega-mascot-cloud-left { position: absolute; left: 0; bottom: 0; width: 45%; height: 115px; border-bottom-left-radius: var(--radius-md); object-fit: cover; object-position: left bottom; }
.mega-mascot-cloud-right { position: absolute; right: -1px; bottom: -1px; width: 62%; height: 109px; }
.mega-mascot { position: absolute; bottom: 0; pointer-events: none; }
.mega-mascot-captain { left: -185px; bottom: 34px; height: 300px; z-index: 1; filter: drop-shadow(0 10px 14px rgba(58,17,8,0.2)); }
.mega-mascot-lady { left: 30%; bottom: 0; height: 150px; z-index: 3; }
.mega-mascot-lily { right: 1%; bottom: 0; height: 90px; z-index: 2; }

.header-utility { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; font-size: var(--text-sm); font-weight: 700; }
.lang-switch button, .lang-switch a {
  background: none; border: none; padding: 6px 7px; color: var(--milk-chocolate);
  border-radius: 6px; text-decoration: none; display: inline-block;
}
.lang-switch button[aria-current="true"], .lang-switch a[aria-current="true"] { background: var(--dark-chocolate); color: var(--cream); }
.lang-switch a:hover { background: rgba(58,17,8,0.08); }
.icon-btn {
  background: none; border: none; padding: 8px; border-radius: var(--radius-pill);
  display: flex; color: var(--dark-chocolate); position: relative;
}
.icon-btn:hover { background: rgba(85, 26, 13, 0.06); }
.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--sunshine);
  color: var(--dark-chocolate); font-size: var(--text-2xs); font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.header-cta { white-space: nowrap; }

.hamburger {
  display: none;
  background: none; border: none; padding: 10px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center; border-radius: var(--radius-sm);
  color: var(--dark-chocolate);
}
.hamburger:hover { background: rgba(85,26,13,0.06); }
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  padding: 78px 16px 16px;
  align-items: flex-start; justify-content: center;
}
.mobile-menu.open { display: flex; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(58,17,8,0.42); backdrop-filter: blur(2px); }

.mm-sheet {
  position: relative; width: min(360px, 100%); max-height: min(600px, calc(100vh - 100px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px rgba(58,17,8,0.45);
  overflow: hidden; display: flex; flex-direction: column;
}
.mm-panel-root { position: relative; display: flex; flex-direction: column; min-height: 0; transition: transform .32s cubic-bezier(.4,0,.2,1); }
.mm-panel-sub {
  position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.mm-sheet.sub-open .mm-panel-root { transform: translateX(-100%); }
.mm-panel-sub.active { transform: translateX(0); }

.mm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 14px 6px; flex-shrink: 0; }
.mm-panel-head-spacer { width: 36px; height: 36px; flex-shrink: 0; }
.mm-panel-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--dark-chocolate); margin: 0; }
.mm-back, .mm-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; background: none; border: none; color: var(--milk-chocolate);
}
.mm-back:hover, .mm-close:hover, .mm-back:active, .mm-close:active { background: rgba(85,26,13,0.06); color: var(--signature); }

.mm-list { display: flex; flex-direction: column; padding: 4px 10px 10px; overflow-y: auto; flex: 1; min-height: 0; }
.mm-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 12px;
  border-radius: var(--radius-md); text-decoration: none; color: var(--dark-chocolate);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-base);
  background: none; border: none; width: 100%; text-align: left; cursor: pointer; min-height: 44px;
}
.mm-row:hover, .mm-row:active { background: rgba(85,26,13,0.05); }
.mm-row-icon { display: flex; flex-shrink: 0; color: var(--signature); }
.mm-row-label { flex: 1; }
.mm-row-chevron { color: var(--milk-chocolate); flex-shrink: 0; }

.mm-sheet .mobile-lang { padding: 6px 20px 18px; flex-shrink: 0; }

.mm-plain { display: flex; flex-direction: column; padding: 14px 20px 4px; }
.mm-plain a { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--text-base); color: var(--dark-chocolate); text-decoration: none; }
.mm-plain a:hover, .mm-plain a:active { color: var(--signature); }

.mobile-lang { display: flex; gap: 8px; padding: 14px 20px 4px; }
.mobile-lang button, .mobile-lang a {
  flex: 1; min-height: 44px; border-radius: var(--radius-sm); border: 1.5px solid rgba(85,26,13,0.15);
  background: #fff; font-weight: 700; font-size: var(--text-sm); color: var(--milk-chocolate);
  text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.mobile-lang button[aria-current="true"], .mobile-lang a[aria-current="true"] { background: var(--dark-chocolate); color: var(--cream); border-color: var(--dark-chocolate); }

/* This pair switches at 1040px, not the more usual ~900px: the Boutique mega-dropdown
   itself needs min-width:900px plus its ~56px offset from the header edge to fit without
   forcing horizontal page scroll, so desktop nav mode has to wait until there's room for it. */
@media (max-width: 1040px) {
  .main-nav, .lang-switch { display: none; }
  .header-cta span { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
}
@media (min-width: 1041px) {
  .hamburger, .mobile-menu { display: none !important; }
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sunshine) 0%, var(--pink) 100%);
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--signature); }
.hero-copy .eyebrow::before { background: var(--dark-chocolate); }
.hero-copy h2 { color: var(--dark-chocolate); }
.hero-copy p.lead { font-size: var(--text-md); max-width: 46ch; color: var(--signature); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 10px; }
.hero-microcopy { font-size: var(--text-sm); color: var(--signature); opacity: 0.85; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.hero-visual img.choky { width: 220px; z-index: 3; position: relative; filter: drop-shadow(0 18px 24px rgba(58,17,8,0.25)); }
.smile-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.sparkle { position: absolute; color: #fff; opacity: 0.9; }

/* ===================================================================
   Magic hero (landing banner — "Le sourire, c'est magique !")
   =================================================================== */
.magic-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF9F1 0%, #FBE7D2 100%);
  min-height: calc(100vh - 67px); display: flex; align-items: center; padding: 56px 0;
}
.magic-hero .smile-path { z-index: 1; }
.magic-hero .sparkle { color: var(--pink); opacity: 0.55; }
.magic-hero .sparkle.big { color: var(--sunshine); opacity: 0.4; filter: blur(1.5px); }
.hero-cloud {
  position: absolute; z-index: 1; pointer-events: none; background: #fff;
  border-radius: 50%; filter: blur(24px);
}
@media (max-width: 700px) { .hero-cloud { display: none; } }

/* Wave divider — sits at the bottom edge of a section, filled with the NEXT
   section's color, so color-contrast boundaries get a soft curve instead of a
   hard line. Only used where two adjacent sections actually differ in color. */
.section-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; display: block; z-index: 1; pointer-events: none; }
@media (max-width: 700px) { .section-wave { height: 36px; } }
.magic-hero-grid {
  position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
}
.magic-hero-visual { position: relative; min-height: 300px; }
.magic-hero-corner { position: absolute; right: -36px; bottom: -34px; height: 260px; width: auto; pointer-events: none; z-index: 3; filter: drop-shadow(0 14px 18px rgba(58,17,8,0.22)); }
.magic-hero-copy h1 { font-size: clamp(2rem, 4vw, 2.7rem); color: var(--dark-chocolate); margin: 0 0 14px; text-wrap: balance; }
.magic-hero-copy .lead { font-size: var(--text-md); color: var(--milk-chocolate); max-width: 44ch; margin: 0; }
.magic-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px) {
  .magic-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .magic-hero-copy .lead { margin-left: auto; margin-right: auto; }
  .magic-hero-ctas { justify-content: center; }
  .magic-hero-visual { min-height: 0; height: 140px; margin-bottom: -20px; }
  .magic-hero-corner { height: 170px; right: 6px; bottom: -14px; }
}

.mega-feature-halo {
  position: absolute; inset: 0 0 auto 0; height: 62%;
  background: radial-gradient(ellipse at 50% 40%, rgba(244,166,166,0.3), rgba(246,198,91,0.18) 55%, transparent 75%);
  filter: blur(14px); pointer-events: none; z-index: 0;
}
.mega-feature-sparkle { position: absolute; z-index: 2; pointer-events: none; }

/* ===================================================================
   Sections general
   =================================================================== */
.section { padding: 76px 0; }
.section-cream {
  background-color: var(--cream);
  background-image: conic-gradient(rgba(244,166,166,0.16) 90deg, transparent 90deg 180deg, rgba(244,166,166,0.16) 180deg 270deg, transparent 270deg);
  background-size: 22px 22px;
}

/* Checker accent — small decorative patch, opt-in per element, never full-bleed
   (site-wide texture above is separate: this is the "washi-tape corner" version) */
.checker-accent {
  position: absolute; width: 52px; height: 52px; pointer-events: none; z-index: 0;
  background-image: conic-gradient(var(--pink) 90deg, transparent 90deg 180deg, var(--pink) 180deg 270deg, transparent 270deg);
  background-size: 13px 13px; border-radius: 8px; opacity: 0.85; transform: rotate(8deg);
}
@media (max-width: 700px) { .checker-accent { display: none; } }
.section-white { background: #fffdfa; }
.section-header { max-width: 640px; margin-bottom: 40px; }
.section-header p.lead { font-size: var(--text-base); color: var(--milk-chocolate); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Faits produit chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: #fff;
  border: 1.5px solid rgba(85,26,13,0.12);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--text-sm-plus);
  display: flex; align-items: center; gap: 8px;
}
.chip.accent { background: var(--dark-chocolate); color: var(--cream); border-color: var(--dark-chocolate); }

/* 2-Minutes teaser (Brossage/Routine mode: sky blue, bubbles) */
.section-routine {
  background: linear-gradient(160deg, #E4F3FC 0%, var(--blue) 100%);
  color: var(--dark-chocolate);
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}
.section-routine .section-header h2, .section-routine .eyebrow { color: var(--dark-chocolate); }
.section-routine h2 { margin-bottom: 12px; }
.routine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.routine-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.bubble {
  position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9), rgba(255,255,255,0.15) 70%);
  border: 1px solid rgba(255,255,255,0.6);
}
.timer-dial {
  position: relative; width: 240px; height: 240px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; z-index: 2;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.7), 0 20px 40px -18px rgba(30,80,110,0.35);
}
.timer-dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; }
.timer-dial-time { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--dark-chocolate); }
.timer-dial-tooth { position: absolute; bottom: 34px; color: var(--blue); }

.price-row { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; }
.price { font-family: var(--font-display); font-weight: 600; color: var(--signature); }
.price-row .price { font-size: var(--text-xl); }
.price-tbd { font-size: var(--text-sm-plus); color: var(--milk-chocolate); font-style: italic; }
.usage-note { font-size: var(--text-sm); color: var(--milk-chocolate); margin-top: 14px; }

/* La boutique CHOKODENT (landing teaser row) */
.boutique-teaser-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.boutique-teaser-intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; }
.boutique-teaser-intro p { color: var(--milk-chocolate); margin: 0 0 20px; }
.boutique-teaser-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.boutique-teaser-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--bt-bg); text-decoration: none; color: var(--dark-chocolate);
  padding: 22px 18px; border-radius: 32% 32% 30% 30% / 20% 20% 24% 24%;
  min-height: 200px; box-shadow: 0 10px 24px -16px rgba(58,17,8,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.boutique-teaser-card:hover, .boutique-teaser-card:focus-visible {
  transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(58,17,8,0.32);
}
.boutique-teaser-icon {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center; color: var(--dark-chocolate); flex-shrink: 0;
}
.boutique-teaser-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm-plus); margin: 0; }
.boutique-teaser-card p { font-size: var(--text-sm); color: var(--milk-chocolate); margin: 0; line-height: 1.4; }
@media (max-width: 980px) {
  .boutique-teaser-grid { grid-template-columns: 1fr; text-align: center; }
  .boutique-teaser-intro { max-width: 56ch; margin: 0 auto; }
  .boutique-teaser-row { grid-template-columns: repeat(3, 1fr); }
  .boutique-teaser-card { align-items: center; text-align: center; }
}
@media (max-width: 600px) {
  .boutique-teaser-row { grid-template-columns: repeat(2, 1fr); }
}

/* Worlds grid */
.worlds-grid { display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); gap: var(--grid-gutter); }
.worlds-grid > * { grid-column: span 3; }
.worlds-grid-3 { max-width: 900px; margin: 0 auto; }
.worlds-grid-3 > * { grid-column: span 4; }
.world-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.world-card { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease; }
.world-card:hover, .world-card:focus-within { transform: translateY(-10px) scale(1.03); box-shadow: var(--shadow-soft); }
.world-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.world-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.world-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.world-card h3 { margin-bottom: 4px; }
.world-card p { font-size: var(--text-sm-plus); color: var(--milk-chocolate); flex: 1; }
.world-card .btn { align-self: flex-start; }

.world-card-lily { position: relative; cursor: pointer; }
.world-card-lily .lily-title { transition: color 0.25s ease; }
.world-card-lily:hover .lily-title, .world-card-lily:focus-visible .lily-title { color: var(--signature); }
.world-card-lily::after {
  content: ""; position: absolute; inset: 0; background: var(--pink); opacity: 0;
  transition: opacity 0.4s ease; pointer-events: none; mix-blend-mode: multiply;
}
.world-card-lily.lily-active { transform: scale(1.08) translateY(-10px); box-shadow: var(--shadow-soft); z-index: 5; }
.world-card-lily.lily-active::after { opacity: 0.4; }

/* Floating motif field — small brand glyphs scattered behind content, distinct accent colors */
.motif-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.motif-field .motif { position: absolute; opacity: 0.8; }
.motif-field .motif.blur { filter: blur(1.5px); opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .motif-field .motif.drift { animation: motif-drift 11s ease-in-out infinite; }
  .motif-field .motif.drift-slow { animation: motif-drift 15s ease-in-out infinite; animation-delay: -4s; }
}
@keyframes motif-drift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(5deg); } }
@media (max-width: 700px) { .motif-field .motif.hide-mobile { display: none; } }

/* Parents section (Confiance parents mode: calm, whitespace) */
.section-parents { background: #fffdfa; }
.parents-grid { display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); gap: var(--grid-gutter); }
.parents-grid > * { grid-column: span 3; }
.parent-card {
  display: block; background: var(--cream); border-radius: var(--radius-md); padding: 26px;
  border-left: 4px solid var(--blue); text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.parent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.parent-card h3 { font-size: var(--text-base); }
.parent-card p { font-size: var(--text-sm-plus); color: var(--milk-chocolate); margin-bottom: 0; }
.center-cta { text-align: center; margin-top: 36px; }

/* Founder */
.founder-section { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.founder-portrait {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); background: var(--sb-rose-poudre);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.founder-credentials { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.founder-credentials span {
  background: #fff; border-radius: var(--radius-pill); padding: 6px 14px; font-size: var(--text-sm); font-weight: 600;
  box-shadow: var(--shadow-card);
}

/* Dark accent section — used for boutique CTAs and the final CTA, breaking up
   the long cream/white run of sections above it */
.section-boutique-dark { background: var(--signature); color: var(--cream); }
.section-boutique-dark .eyebrow { color: var(--sunshine); }
.section-boutique-dark .eyebrow::before { background: var(--sunshine); }
.section-boutique-dark h2 { color: #fff; }
.section-boutique-dark .lead { color: rgba(243,232,220,0.85); }
.section-boutique-dark .btn-ghost { color: var(--signature); border-color: transparent; background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,0.25); }
.section-boutique-dark .btn-ghost:hover { background: var(--cream); }

/* Prevention */
.section-prevention {
  background: var(--dark-chocolate); color: var(--cream);
}
.section-prevention .eyebrow { color: var(--sunshine); }
.section-prevention .eyebrow::before { background: var(--sunshine); }
.section-prevention h2 { color: #fff; }
.section-prevention .lead { color: rgba(243,232,220,0.85); max-width: 60ch; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--dark-chocolate); color: rgba(243,232,220,0.88); padding: 64px 0 28px; }
.audio-player-card {
  display: inline-flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius-lg);
  padding: 14px 24px 14px 14px; margin: 28px auto; box-shadow: var(--shadow-card);
}
.audio-play-btn {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--sunshine); border: none;
  display: flex; align-items: center; justify-content: center; color: var(--dark-chocolate); cursor: pointer;
  box-shadow: 0 4px 0 var(--sunshine-shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.audio-play-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sunshine-shadow); }
.audio-play-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sunshine-shadow); }
.audio-track-info { text-align: left; }
.audio-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--dark-chocolate); margin: 0; }
.audio-subtitle { font-size: var(--text-sm); color: var(--milk-chocolate); margin: 0; }

.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;
}
.footer-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(243,232,220,0.15);
}
.footer-brand { flex: 1; min-width: 240px; max-width: 360px; }
.footer-brand-logo { height: 34px; display: block; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(0.95); }
.footer-tagline { font-family: var(--font-display); font-size: var(--text-base); line-height: 1.55; color: rgba(243,232,220,0.9); margin: 0; }

.footer-newsletter { flex: 1; min-width: 280px; max-width: 400px; }
.footer-newsletter-copy { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-newsletter-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(244,166,166,0.18); color: var(--pink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-newsletter-copy h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); color: var(--cream); margin: 0; line-height: 1.35; }
.nl-fields { display: flex; gap: 8px; }
.nl-fields input {
  min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  background: #fff; color: var(--dark-chocolate); font-family: var(--font-body); font-size: var(--text-sm); flex: 1; min-width: 0;
}
.nl-fields input::placeholder { color: var(--milk-chocolate); }
.nl-fields input:focus-visible { outline: 2px solid var(--sunshine); outline-offset: 2px; }
.nl-fields .btn-sm { min-height: 42px; padding: 0 20px; font-size: var(--text-sm); flex-shrink: 0; }
.nl-microcopy { font-size: var(--text-xs); color: rgba(243,232,220,0.72); margin: 10px 2px 0; }
.nl-success { font-size: var(--text-sm); font-weight: 600; color: var(--mint); margin: 0; }
@media (max-width: 700px) {
  .footer-hero { flex-direction: column; }
  .footer-brand, .footer-newsletter { max-width: none; text-align: center; }
  .footer-brand-logo { margin-left: auto; margin-right: auto; }
  .footer-newsletter-copy { justify-content: center; }
  .nl-fields { flex-direction: column; }
}

.footer-grid { display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); gap: var(--grid-gutter); }
.footer-grid > .footer-col { grid-column: span 4; text-align: left; }
.footer-col-head { margin: 0; }
.footer-col-head .footer-col-trigger {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; margin-bottom: 18px;
  background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: default;
}
.footer-col-icon { display: none; }
.footer-col-icon-mint { background: var(--mint); color: var(--dark-chocolate); }
.footer-col-icon-pink { background: var(--pink); color: var(--dark-chocolate); }
.footer-col-icon-gold { background: var(--sunshine); color: var(--dark-chocolate); }
.footer-col-title { color: var(--cream); font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm-plus); }
.footer-col-chevron { display: none; margin-left: auto; color: rgba(243,232,220,0.5); flex-shrink: 0; }
.footer-col-panel { display: flex; flex-direction: column; }
.footer-col a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(243,232,220,0.9); text-decoration: none; font-size: var(--text-sm-plus); padding: 7px 0;
}
.footer-col a .chev { display: none; }
.footer-col a:hover { color: var(--sunshine); }
@media (max-width: 700px) {
  .footer-col-trigger { cursor: pointer; }
  .footer-col-chevron { display: block; }
  .footer-col-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .footer-col-panel.open { max-height: 400px; }
}

.footer-trust-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(243,232,220,0.15);
}
.footer-payment { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-lang { display: flex; align-items: center; gap: 10px; }
.footer-lang-label {
  display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700;
  color: rgba(243,232,220,0.65); text-transform: uppercase; letter-spacing: .04em;
}
.footer-lang-pills { display: flex; gap: 6px; }
.footer-lang-pills a {
  min-width: 34px; min-height: 30px; padding: 0 8px; border-radius: var(--radius-sm); border: none;
  background: rgba(255,255,255,0.06); color: rgba(243,232,220,0.75); font-weight: 700; font-size: var(--text-xs);
  display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease;
}
.footer-lang-pills a[aria-current="true"] { background: var(--cream); color: var(--dark-chocolate); box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.footer-lang-pills a:hover { background: rgba(255,255,255,0.14); color: var(--cream); }
@media (max-width: 700px) {
  .footer-trust-row { flex-direction: column; align-items: flex-start; }
}

.footer-mascot-row {
  margin-top: 48px; padding: 36px 0 4px; border-top: 1px solid rgba(243,232,220,0.15);
  display: flex; align-items: center; justify-content: center; min-height: 100px;
}
.footer-social { text-align: center; }
.footer-social-label { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--cream); margin: 0 0 12px; }
.footer-social .social-row { justify-content: center; }

.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(243,232,220,0.15);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--text-xs); color: rgba(243,232,220,0.72);
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  color: rgba(243,232,220,0.82); display: flex; padding: 6px; border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover, .social-row a:focus-visible { color: var(--sunshine); background: rgba(246,198,91,0.15); transform: translateY(-2px); }

.footer-legal-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; font-size: var(--text-xs);
}
.footer-legal-row a, .footer-legal-row .footer-link-btn {
  color: rgba(243,232,220,0.75); text-decoration: none; background: none; border: none; padding: 4px 2px;
  font-size: var(--text-xs); font-family: var(--font-body); cursor: pointer; min-height: 32px; display: inline-flex; align-items: center;
}
.footer-legal-row a:hover, .footer-legal-row a:focus-visible,
.footer-legal-row .footer-link-btn:hover, .footer-legal-row .footer-link-btn:focus-visible { color: var(--sunshine); text-decoration: underline; }
.footer-legal-row span[aria-hidden] { color: rgba(243,232,220,0.4); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid, .routine-grid, .founder-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 260px; }
  /* 12-col grid stays 12 columns at every breakpoint — only the span per item changes (3/12 -> 6/12 -> 12/12) */
  .worlds-grid > *, .parents-grid > * { grid-column: span 6; }
}
@media (max-width: 700px) {
  .footer-grid { gap: 32px; }
  .footer-grid > .footer-col { grid-column: span 12; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .worlds-grid > *, .parents-grid > * { grid-column: span 12; }
  .hero-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================================================================
   Personnages page — character cards
   =================================================================== */
.characters-grid {
  display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); gap: 22px;
}
.characters-grid > * { grid-column: span 4; }
.char-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 3/4; box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
  perspective: 1200px;
}
.char-card .face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  backface-visibility: hidden; transition: transform 0.5s cubic-bezier(.4,.2,.2,1);
}
.char-card .front { background-size: cover; background-position: top center; }
.char-card .front img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.char-card .front .char-carousel { height: 70%; }
.char-card .front .char-carousel .carousel-main {
  aspect-ratio: unset; height: 100%; border-radius: 0; box-shadow: none; background: transparent;
}
.char-card .front .char-carousel .carousel-track > div { padding: 0; }
.char-card .front .char-carousel .carousel-track img { max-width: 100%; max-height: 100%; object-fit: cover; object-position: top center; width: 100%; height: 100%; }
.char-card .front .char-carousel .carousel-nav { width: 30px; height: 30px; }
.char-card .front .char-carousel .carousel-nav.prev { left: 6px; }
.char-card .front .char-carousel .carousel-nav.next { right: 6px; }
.char-card .front .char-carousel.img-lower .carousel-track img { transform: scale(1.45) translateY(15%); }
.char-card .front .trio-row { display: flex; width: 100%; height: 100%; gap: 0; }
.char-card .front .trio-row .trio-slot { flex: 1; height: 100%; position: relative; overflow: hidden; }
.char-card .front .char-carousel .carousel-track .trio-row img {
  position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  width: auto; max-width: none; height: 148%; object-fit: contain;
}
.char-card .front .label {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: #fff; text-align: center; padding: 10px;
}
.char-card .back {
  background: var(--dark-chocolate); color: var(--cream); padding: 22px; justify-content: center;
  transform: rotateY(180deg); text-align: left;
}
.char-card .back h3 { color: var(--sunshine); margin-bottom: 6px; }
.char-card .back p { font-size: var(--text-sm); margin-bottom: 8px; color: rgba(243,232,220,0.9); }
.char-card.flipped .front { transform: rotateY(180deg); }
.char-card.flipped .back { transform: rotateY(360deg); }
.char-card:focus-visible { outline-offset: 4px; }
.char-card:hover, .char-card:focus-visible { transform: translateY(-8px) scale(1.035); box-shadow: var(--shadow-soft); }

/* ===================================================================
   Boutique page
   =================================================================== */
.family-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.family-nav a {
  background: #fff; border-radius: var(--radius-pill); padding: 10px 18px; text-decoration: none;
  font-weight: 500; font-size: var(--text-sm-plus); color: var(--dark-chocolate); box-shadow: var(--shadow-card);
}
.family-nav a:hover { background: var(--sunshine); }
.family-block { margin-bottom: 64px; }
.family-block h2 { display: flex; align-items: center; gap: 12px; }
.family-block .count { font-size: var(--text-sm-plus); font-weight: 400; color: var(--milk-chocolate); font-family: var(--font-body);}
.products-grid { display: grid; grid-template-columns: repeat(var(--grid-columns), 1fr); gap: 22px; margin-top: 24px; }
.products-grid > * { grid-column: span 3; }
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; transition: transform 0.2s ease;
}
.product-card { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.product-card:hover, .product-card:focus-within { transform: translateY(-8px) scale(1.025); }
.product-card .thumb { aspect-ratio: 1/1; background: var(--cream); display: flex; align-items: center; justify-content: center; padding: 20px; }
.product-card .thumb img { max-height: 100%; }
.product-card .info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: var(--text-base); margin-bottom: 0; }
.product-card p.desc { font-size: var(--text-sm); color: var(--milk-chocolate); flex: 1; margin-bottom: 8px; }
.product-card .price-line { display: flex; justify-content: space-between; align-items: center; }
.product-card .price-line .price { font-family: var(--font-display); font-weight: 600; color: var(--signature); }
.badge-free { background: var(--mint); color: var(--dark-chocolate); font-size: var(--text-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); }
.stock-line { font-size: var(--text-xs); color: var(--sb-sauge); font-weight: 600; }

@media (max-width: 980px) {
  .characters-grid > *, .products-grid > * { grid-column: span 6; }
}
@media (max-width: 600px) {
  .characters-grid > *, .products-grid > * { grid-column: span 6; }
}

/* ===================================================================
   Accordion (product info sections)
   =================================================================== */
.accordion { border-top: 1px solid rgba(85,26,13,0.12); }
.accordion-item { border-bottom: 1px solid rgba(85,26,13,0.12); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 18px 4px; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-base); color: var(--signature);
  min-height: 44px;
}
.accordion-trigger .chevron {
  flex-shrink: 0; margin-left: 12px; transition: transform 0.3s ease; color: var(--milk-chocolate);
}
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-panel {
  overflow: hidden; max-height: 0; transition: max-height 0.4s cubic-bezier(.25,.8,.35,1);
}
.accordion-panel.open { max-height: 600px; }
.accordion-panel-inner { padding: 0 4px 20px; font-size: var(--text-sm-plus); color: var(--dark-chocolate); }
.accordion-panel-inner dl.facts { margin-top: 4px; }

/* ===================================================================
   Product image carousel
   =================================================================== */
.carousel { position: relative; }
.carousel-main {
  position: relative; aspect-ratio: 1/1; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex;
}
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.4s cubic-bezier(.4,0,.2,1); }
.carousel-track > div { min-width: 100%; display: flex; align-items: center; justify-content: center; padding: 30px; }
.carousel-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: #EFE8E0; border: none; display: flex; align-items: center; justify-content: center;
  color: var(--signature); box-shadow: var(--shadow-card); transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-nav:hover { background: var(--sunshine); transform: translateY(-50%) scale(1.06); }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.carousel-thumbs button {
  width: 64px; height: 64px; border-radius: var(--radius-sm); border: 2px solid transparent;
  background: #fff; padding: 6px; box-shadow: var(--shadow-card);
}
.carousel-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.carousel-thumbs button[aria-current="true"] { border-color: var(--sunshine); }

.fav-heart {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: none; display: flex; align-items: center; justify-content: center;
  color: var(--milk-chocolate); box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), color 0.2s ease;
}
.fav-heart:hover { transform: scale(1.08); }
.fav-heart[aria-pressed="true"] { color: var(--pink); }
.fav-heart[aria-pressed="true"] svg { fill: var(--pink); }
.fav-heart.pop { animation: fav-pop 0.4s ease; }
@keyframes fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.product-card { position: relative; }
.product-card .fav-heart { top: 8px; right: 8px; width: 34px; height: 34px; }
.product-card .fav-heart svg { width: 16px; height: 16px; }

.header-fav-count {
  position: relative; display: inline-flex;
}
.header-fav-count .fav-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: var(--radius-pill); background: var(--pink); color: var(--dark-chocolate); font-size: var(--text-2xs); font-weight: 700;
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.header-fav-count .fav-badge.show { display: flex; }

/* ===================================================================
   Quantity stepper
   =================================================================== */
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid rgba(85,26,13,0.18);
  border-radius: var(--radius-pill); overflow: hidden;
}
.qty-stepper button {
  width: 40px; height: 44px; background: #fff; border: none; font-size: var(--text-md); font-weight: 700;
  color: var(--signature); display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: var(--cream); }
.qty-stepper .qty-value {
  width: 36px; text-align: center; font-family: var(--font-body); font-weight: 700; font-size: var(--text-base);
}
.pdp-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 8px; }

/* ===================================================================
   2-Minutes ritual page
   =================================================================== */
.ritual-hero {
  background: linear-gradient(160deg, var(--mint) 0%, var(--blue) 100%);
  padding: 60px 0 90px; text-align: center;
}
.big-timer {
  width: 300px; height: 300px; border-radius: 50%; margin: 30px auto 0;
  background: rgba(255,255,255,0.5); position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.55);
}
.big-timer .time { font-family: var(--font-display); font-size: var(--text-display); font-weight: 600; color: var(--dark-chocolate); }

.lyrics-display {
  max-width: 440px; margin: 24px auto 0; padding: 18px 22px; background: rgba(255,255,255,0.55);
  border-radius: var(--radius-md); font-family: var(--font-display); text-align: center;
  min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.lyric-line { line-height: 1.4; }
.lyric-line-now { font-size: var(--text-lg); }
.lyric-line-next { font-size: var(--text-sm-plus); opacity: 0.4; }
.lyric-line-next .lyric-word { color: var(--dark-chocolate); }
.lyric-word {
  display: inline-block; color: rgba(58,17,8,0.35); transition: color 0.2s ease, transform 0.15s ease;
}
.lyric-word.sung { color: var(--dark-chocolate); }
.lyric-word.active {
  color: var(--signature); font-weight: 700; transform: scale(1.08);
  text-shadow: 0 0 0 transparent;
}
.lyric-word[data-speaker="lady"].active { color: var(--blue); }
.lyric-word[data-speaker="lily"].active { color: var(--label-rose-dark); }
.lyric-word[data-speaker="tous"].active { color: var(--signature); }
@media (prefers-reduced-motion: reduce) { .lyric-word { transition: none; } }
.timer-controls { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.timer-controls button {
  background: #fff; border: none; border-radius: var(--radius-pill); padding: 12px 22px;
  font-weight: 600; box-shadow: var(--shadow-card); font-family: var(--font-body); min-height: 44px;
}
.timer-controls button:hover { background: var(--sunshine); }
.pretimer-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px; max-width: 520px; margin: -50px auto 0;
  box-shadow: var(--shadow-soft); text-align: center; position: relative; z-index: 5;
}
.confetti-burst { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 1; }
.confetti-burst span { z-index: 1; }
#endCard > *:not(.confetti-burst) { position: relative; z-index: 2; }

/* ===================================================================
   Cookie consent banner + preference center
   =================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--dark-chocolate); color: var(--cream); padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cookie-banner p { margin: 0; font-size: var(--text-sm); max-width: 60ch; color: rgba(243,232,220,0.9); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-sm { min-height: 44px; }

.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(58,17,8,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  padding: 32px; max-height: 85vh; overflow-y: auto;
}
.cookie-modal h2 { margin-bottom: 6px; }
.cookie-modal .cookie-cat {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  border-top: 1px solid rgba(85,26,13,0.1); padding: 16px 0;
}
.cookie-modal .cookie-cat h3 { font-size: var(--text-base); margin-bottom: 4px; }
.cookie-modal .cookie-cat p { font-size: var(--text-sm); color: var(--milk-chocolate); margin: 0; }
.cookie-toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.cookie-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-toggle .track {
  position: absolute; inset: 0; background: rgba(85,26,13,0.2); border-radius: 999px; transition: background 0.2s ease;
}
.cookie-toggle .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .track { background: var(--sb-sauge); }
.cookie-toggle input:checked + .track::after { transform: translateX(18px); }
.cookie-toggle input:disabled + .track { background: var(--milk-chocolate); opacity: 0.5; }
.cookie-toggle input:focus-visible + .track { outline: 2px solid var(--signature); outline-offset: 2px; }
.cookie-modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   Accessible star rating (used in review forms)
   =================================================================== */
.star-rating {
  display: inline-flex; flex-direction: row-reverse; gap: 4px; border: none; padding: 0; margin: 0;
}
.star-rating input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.star-rating label {
  cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: rgba(85,26,13,0.25); transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating label svg { width: 28px; height: 28px; fill: currentColor; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked + label:hover,
.star-rating input:checked + label:hover ~ label {
  color: var(--sunshine);
}
.star-rating input:focus-visible + label { outline: 2px solid var(--signature); outline-offset: 2px; border-radius: 6px; }
.star-rating label:hover { transform: scale(1.1); }

/* ===================================================================
   PDP trust block, sticky add-to-cart, avis section, gallery counter
   =================================================================== */
.pdp-trust-block {
  display: flex; flex-direction: column; gap: 10px; background: var(--cream); border-radius: var(--radius-md);
  padding: 16px 18px; margin: 18px 0; font-size: var(--text-sm);
}
.pdp-trust-block .trust-row { display: flex; align-items: center; gap: 10px; color: var(--dark-chocolate); }
.pdp-trust-block .trust-row svg { flex-shrink: 0; color: var(--sb-sauge); }
.pending-tag {
  display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--signature); background: var(--sb-blush); border-radius: var(--radius-pill); padding: 3px 10px;
  white-space: nowrap; flex-shrink: 0;
}
.pdp-trust-block .pending-tag { margin: 0; }
.pdp-trust-block a { text-decoration: underline; color: var(--signature); }
.pdp-trust-block .payment-row { flex-wrap: wrap; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badge {
  display: flex; align-items: center; justify-content: center; height: 26px; min-width: 40px; padding: 0 8px;
  background: #fff; border: 1px solid rgba(85,26,13,0.12); border-radius: 5px; color: var(--dark-chocolate);
}
.pay-badge.pay-twint { font-size: var(--text-2xs); font-weight: 800; color: #fff; background: #1a1a1a; letter-spacing: 0.02em; }
.pay-badge.pay-visa { font-size: var(--text-2xs); font-weight: 800; font-style: italic; color: #1a1f71; }
.pay-badge.pay-card { color: var(--milk-chocolate); }

.pdp-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff;
  box-shadow: 0 -6px 20px rgba(58,17,8,0.14); padding: 12px 16px;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
}
.pdp-sticky-cta.show { display: flex; }
.pdp-sticky-cta .sticky-price { font-family: var(--font-display); font-weight: 600; color: var(--signature); font-size: var(--text-base); }
.pdp-sticky-cta .btn { flex-shrink: 0; }
@media (min-width: 900px) { .pdp-sticky-cta { display: none !important; } }

.gallery-count {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: rgba(58,17,8,0.72); color: var(--cream); font-size: var(--text-xs); font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill);
}

.pdp-avis-section { border-top: 1px solid rgba(85,26,13,0.1); padding: 48px 0; }
.pdp-avis-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.pdp-review-form { background: var(--cream); border-radius: var(--radius-md); padding: 24px; margin-top: 24px; display: none; }
.pdp-review-form.open { display: block; }

/* Shared form field styles (also used by contact.html, avis-temoignages.html, professionnels.html,
   which each still carry a page-scoped copy of these same rules — safe duplication, not a conflict). */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 680px; margin: 0 auto; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: var(--text-sm-plus); margin-bottom: 6px; color: var(--signature); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid rgba(85,26,13,0.18);
  font-family: var(--font-body); font-size: var(--text-base); background: #fff; min-height: 44px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; }
.consent-field input[type="checkbox"] { width: 20px; height: 20px; min-height: auto; margin-top: 2px; flex-shrink: 0; }
.consent-field label { font-weight: 500; font-size: var(--text-sm); color: var(--dark-chocolate); }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
