/*
 * Rigolettres — page d'accueil.
 *
 * Cette feuille vivait dans le contenu de la page (base de données), avec sa
 * propre palette et la police Kalam. Elle est désormais servie par le thème
 * (chargée uniquement sur l'accueil) et consomme les tokens de style.css :
 * mêmes couleurs, mêmes polices, mêmes boutons que le reste du site.
 * Le <style> d'origine est retiré du contenu au rendu par
 * includes/contenu-nettoyage-css-herite.php.
 *
 * En-tête, pied de page, boutons, champs : définis dans style.css.
 */

/* Alias locaux → tokens globaux (les sections ci-dessous utilisent ces noms) */
.rigol-preview-root {
  --bg: var(--rigo-cream);
  --bg-alt: var(--rigo-paper);
  --bg-warm: var(--rigo-cream-warm);
  --ink: var(--rigo-ink);
  --ink-soft: var(--rigo-ink-soft);
  --muted: var(--rigo-muted);
  --border: var(--rigo-border);

  --primary: var(--rigo-action);
  --primary-dark: var(--rigo-action-dark);
  --primary-soft: var(--rigo-action-soft);

  --accent: #8BC84B;            /* vert vif : décor uniquement */
  --accent-dark: var(--rigo-green-dark);
  --accent-soft: var(--rigo-green-soft);

  --warm: var(--rigo-warm);
  --warm-soft: #F7E9D8;

  --red: var(--rigo-accent);
  --yellow: #F39C12;
  --yellow-bright: var(--rigo-yellow);

  --shadow-sm: var(--rigo-sh-1);
  --shadow-md: var(--rigo-sh-2);
  --shadow-lg: var(--rigo-sh-3);
  --shadow-card: 0 12px 28px rgba(42,29,15,.10), 0 4px 10px rgba(42,29,15,.05);

  --radius-sm: var(--rigo-r-sm);
  --radius-md: var(--rigo-r-md);
  --radius-lg: var(--rigo-r-lg);
  --radius-xl: 32px;

  --ease: var(--rigo-ease);

  width: 100%;
  display: block;
  overflow-x: clip;   /* décors inclinés et nuages : pas de défilement horizontal */
  color: var(--rigo-ink);
}

/* Halo coloré très léger derrière la page */
body.home {
  background-image:
    radial-gradient(1200px 600px at 85% -10%, #FDF6E3 0%, transparent 55%),
    radial-gradient(900px 500px at -5% 40%, #F0F9FD 0%, transparent 60%),
    radial-gradient(700px 500px at 105% 80%, #F5F9EC 0%, transparent 55%);
}

/* Resets limités à la page, à spécificité nulle (ne battent aucun composant) */
:where(.rigol-preview-root) *,
:where(.rigol-preview-root) *::before,
:where(.rigol-preview-root) *::after { box-sizing: border-box; }
:where(.rigol-preview-root) img { max-width: 100%; height: auto; display: block; }
:where(.rigol-preview-root) a { color: inherit; text-decoration: none; }
:where(.rigol-preview-root) > section { position: relative; }

/* Titre et pied Blocksy inutiles sur l'accueil */
body.home .entry-header, body.home .hero-section, body.home .ct-breadcrumbs,
body.home aside.sidebar, body.home #offcanvas { display: none; }

body.home [class*="ct-container"], body.home .entry-content,
body.home article.post, body.home article.page,
body.home .ct-container, body.home .ct-container-full,
body.home main#main, body.home .ct-main-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home .content-area { padding: 0 !important; }
/* Kill Gutenberg is-layout-constrained child constraint */
body.home .is-layout-constrained > .rigol-preview-root,
body.home .is-layout-constrained > .alignfull,
body.home .entry-content > .rigol-preview-root,
body.home .rigol-preview-root {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.home article.page,
body.home article.post,
body.home .entry-content,
body.home .ct-container-full,
body.home main#main,
body.home .site-main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Paper grain overlay
   ========================================================================== */

/* Grain papier : au-dessus du contenu, sous l'en-tête et les tiroirs */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0 0.10 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Floating ambient clouds behind everything */
.floaties {
  position: absolute; inset: 0 0 auto 0; height: 1200px;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.floatie { position: absolute; }
.cloud-1 { width: 220px; top: 260px; left: -40px; animation: drift 38s linear infinite; }
.cloud-2 { width: 160px; top: 140px; left: 52%; animation: drift 52s linear infinite; animation-delay: -12s; }
.cloud-3 { width: 280px; top: 700px; left: 80%; animation: drift 44s linear infinite; animation-delay: -20s; }

@keyframes drift {
  0% { transform: translateX(-5vw); }
  100% { transform: translateX(5vw); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin: 0 0 20px;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-title {
  font-family: var(--rigo-serif);
  font-weight: 700;
  font-size: var(--rigo-fs-display);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 20px;
  color: var(--ink);
}
/* « en s'amusant. » : seul passage manuscrit du titre, signature de la marque */
.hero-title-accent {
  position: relative;
  display: inline-block;
  color: var(--primary-dark);
  font-family: var(--rigo-script);
  font-size: 1.16em;
  letter-spacing: 0;
  line-height: .95;
}
.underline-squiggle {
  position: absolute;
  bottom: -12px; left: 0;
  width: 100%; height: 18px;
  overflow: visible;
}
.underline-squiggle path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawSquiggle 1.4s var(--ease) 1.2s forwards;
}
@keyframes drawSquiggle {
  to { stroke-dashoffset: 0; }
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-sub strong { color: var(--ink); font-weight: 800; }
.hero-sub em { font-style: normal; font-weight: 800; color: var(--primary-dark); }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 32px;
}

.hero-trust {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-trust svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }

/* ===== Hero stage (illustrated sky) ===== */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.sky {
  position: absolute; inset: 0;
  border-radius: 36px;
  background: linear-gradient(180deg, #AEDEF2 0%, #CDEAF4 45%, #DDEEF4 75%, #F5F0D9 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 -2px 0 rgba(255,255,255,.6);
  border: 3px solid var(--bg-alt);
}
.sun {
  position: absolute;
  width: 28%; top: 7%; right: 10%;
  animation: sunspin 24s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(255, 217, 102, .6));
}
@keyframes sunspin {
  to { transform: rotate(360deg); }
}
/* Sun face & mouth should counter-rotate so the face stays upright, implemented by giving them their own animation */
.sun > g > g { transform-origin: 70px 70px; animation: suncounter 24s linear infinite; }
@keyframes suncounter {
  to { transform: rotate(-360deg); }
}
/* Actually simpler: let the whole sun rotate slowly (pick rotation so face looks lively). Override with a very slow version. */
.sun { animation-duration: 80s; }
.sun > g > g { animation-duration: 80s; }

.sky-cloud { position: absolute; }
.sky-cloud-a { width: 30%; top: 18%; left: 6%; animation: float 8s ease-in-out infinite; }
.sky-cloud-b { width: 22%; top: 42%; left: 60%; animation: float 10s ease-in-out infinite; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sparkle {
  position: absolute;
  width: 24px; height: 24px;
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle-1 { top: 30%; left: 24%; animation-delay: 0s; }
.sparkle-2 { top: 20%; right: 40%; animation-delay: .7s; width: 18px; height: 18px; }
.sparkle-3 { top: 55%; left: 18%; animation-delay: 1.3s; width: 16px; height: 16px; }

@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

.pato {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  filter: drop-shadow(0 12px 24px rgba(42,29,15,.25));
  animation: bounce 3.2s ease-in-out infinite;
  z-index: 3;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.hill {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 28%;
  z-index: 2;
}

.flower {
  position: absolute;
  z-index: 3;
  width: 36px; height: 36px;
  animation: sway 3s ease-in-out infinite;
  transform-origin: bottom center;
}
.flower-1 { bottom: 8%; left: 10%; animation-delay: 0s; }
.flower-2 { bottom: 6%; right: 12%; animation-delay: -1.5s; }

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.speech-bubble {
  position: absolute;
  top: 10%; right: -6%;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 20px;
  font-family: var(--rigo-script);
  font-weight: 700;
  font-size: 22px;
  box-shadow: var(--shadow-md);
  transform: rotate(6deg);
  animation: wobble 4s ease-in-out infinite;
  z-index: 5;
}
.speech-bubble .bubble-tail {
  position: absolute;
  bottom: -14px; left: 24px;
  width: 28px; height: 14px;
  filter: drop-shadow(0 2px 2px rgba(42,29,15,.08));
}
@keyframes wobble {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-4px); }
}

/* Scroll hint */
.scroll-hint {
  margin: 48px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--rigo-script);
  color: var(--ink-soft);
  font-size: 14px;
  opacity: .7;
}
.scroll-hint svg {
  width: 22px; height: 22px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ==========================================================================
   Reveal animation (used by app.js)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="1"] { transition-delay: .05s; }
[data-reveal="2"] { transition-delay: .15s; }
[data-reveal="3"] { transition-delay: .25s; }
[data-reveal="4"] { transition-delay: .35s; }
[data-reveal="5"] { transition-delay: .45s; }
[data-reveal="6"] { transition-delay: .2s; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-wrap {
  background: var(--ink);
  color: #FBF8F1;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  transform: rotate(-1.2deg);
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(42,29,15,.15);
  border-top: 2px solid rgba(255,255,255,.08);
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.marquee { width: 100%; overflow: hidden; }
.marquee-track {
  display: inline-flex; gap: 32px; align-items: center;
  font-family: var(--rigo-script);
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
  padding-left: 100%;
  animation: scrollx 40s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; }
.marquee-track .dot { color: var(--yellow-bright); font-size: 10px; }
@keyframes scrollx {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Surtitre de section : même gabarit que .rigo-eyebrow (script, vert) */
.section-number {
  font-family: var(--rigo-script);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--rigo-green-dark);
  margin: 0 0 8px;
  text-transform: lowercase;
}
.section-number::first-letter { text-transform: uppercase; }
.section-title {
  font-family: var(--rigo-serif);
  font-weight: 700;
  font-size: var(--rigo-fs-h2-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.title-swash {
  color: var(--primary-dark);
  position: relative;
  white-space: nowrap;
}
.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 40px;
}
.section-intro { margin-bottom: 48px; }
.section-intro-center { text-align: center; }
.section-intro-center .section-lead { margin-left: auto; margin-right: auto; }

.highlight-yellow {
  background: linear-gradient(180deg, transparent 62%, #FFE78A 62%, #FFE78A 92%, transparent 92%);
  padding: 0 2px;
}

/* ==========================================================================
   Brigitte story
   ========================================================================== */

.story {
  padding: 80px 0;
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: .95fr 1.05fr; gap: 80px; }
}

.story-visual {
  position: relative;
  min-height: 520px;
  padding: 24px;
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 56px;
  box-shadow: var(--shadow-card);
  border-radius: 4px;
  width: 320px;
  max-width: 90%;
  transition: transform .4s var(--ease);
  z-index: 1;
}
.polaroid-tilt-left {
  transform: rotate(-4deg);
  margin-left: 0;
}
.polaroid-tilt-left:hover { transform: rotate(-2deg) translateY(-4px); }

.polaroid-tilt-right {
  position: absolute;
  bottom: 24px; right: 12px;
  transform: rotate(5deg);
  width: 220px;
  z-index: 2;
}
.polaroid-tilt-right:hover { transform: rotate(3deg) translateY(-4px); }

.polaroid-mini { padding: 10px 10px 40px; }

.polaroid-photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: var(--bg-warm);
  border-radius: 2px;
  overflow: hidden;
  display: grid; place-items: center;
}
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-placeholder {
  background: linear-gradient(135deg, #D9A066 0%, #E7C49A 100%);
}
.portrait-stub { width: 60%; opacity: .85; }

.polaroid-caption {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--rigo-script);
  font-size: 16px;
  color: var(--ink-soft);
}
.polaroid-mini .polaroid-caption { font-size: 13px; bottom: 10px; }

.sticker {
  position: absolute;
  top: 10px; right: 30px;
  z-index: 3;
  animation: pop 3s ease-in-out infinite;
}
.sticker-heart svg { width: 44px; filter: drop-shadow(0 3px 6px rgba(231, 76, 60, .3)); }
@keyframes pop {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.12) rotate(-12deg); }
}

.handwritten-note {
  position: absolute;
  bottom: 10px;
  left: 40px;
  font-family: var(--rigo-script);
  font-weight: 700;
  font-size: 28px;
  color: var(--primary-dark);
  transform: rotate(-4deg);
  max-width: 260px;
  line-height: 1.1;
  margin: 0;
  z-index: 2;
  text-align: center;
}

.story-copy { position: relative; }
.story-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 20px;
}
.story-lead strong { color: var(--primary-dark); }
.story-copy p { margin: 0 0 16px; color: var(--ink-soft); }
.story-closing {
  font-family: var(--rigo-script);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 28px !important;
}

.signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.signature-name {
  font-family: var(--rigo-script);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.signature-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Product gamme
   ========================================================================== */

.gamme {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-warm) 40%, var(--bg-warm) 100%);
  position: relative;
}

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.product-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
  border: 1px solid rgba(231, 226, 213, .6);
}
.rotate-left { transform: rotate(-.6deg); }
.rotate-right { transform: rotate(.6deg); }
.product-card:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
  padding: 6px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(17,115,154, .3);
}
/* Texte blanc : fonds assez foncés pour 4.5:1 */
.badge-green { background: var(--rigo-green-dark); box-shadow: none; }
.badge-warm { background: var(--rigo-warm-dark); box-shadow: none; }
.badge-red { background: var(--rigo-accent); box-shadow: none; }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #C8EDF9 100%);
  overflow: hidden;
  display: grid; place-items: center;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}
.product-media-book {
  background: linear-gradient(135deg, var(--warm-soft) 0%, #F2DFC2 100%);
}
.rotate-right .product-media { background: linear-gradient(135deg, var(--accent-soft) 0%, #DAEFBC 100%); }
.rotate-left:nth-of-type(3) .product-media { background: linear-gradient(135deg, var(--warm-soft) 0%, #F2DFC2 100%); }

.product-mascot {
  position: absolute;
  bottom: -10px; right: 14px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  font-size: 32px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg);
}
.mascot-pato img { width: 90%; height: 90%; object-fit: contain; }

.product-body {
  padding: 24px 22px 22px;
  display: flex; flex-direction: column;
  flex: 1;
}
.product-eyebrow {
  font-family: var(--rigo-script);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--rigo-warm-dark);
  margin: 0 0 4px;
}
.product-title {
  font-family: var(--rigo-sans);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.product-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.product-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}
/* Cart toast */
.cart-toast {
  position: fixed;
  top: 96px;
  right: 24px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 48px 14px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  max-width: 340px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.cart-toast.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cart-toast svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent-dark); }
.cart-toast a { color: var(--primary-dark); font-weight: 700; margin-left: 6px; text-decoration: underline; }
.cart-toast.error { border-left-color: var(--red); }
.cart-toast.error svg { color: var(--red); }

.btn[data-add-to-cart][aria-busy="true"] { opacity: .7; cursor: wait; }
.btn[data-add-to-cart].is-added { background: var(--rigo-green-dark) !important; border-color: var(--rigo-green-dark) !important; }

.product-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  outline: none;
}
.product-link:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px 22px;
  margin-top: auto;
  border-top: 1px dashed var(--border);
}
.product-price {
  font-family: var(--rigo-sans);
  font-weight: 800;
  font-size: 1.625rem;
  color: var(--ink);
  line-height: 1;
}
.product-price small { font-size: .8em; font-weight: 800; color: inherit; margin-left: 1px; }

/* Bundle card */
.bundle-card {
  background: linear-gradient(145deg, var(--ink) 0%, #5a3b20 100%);
  color: #fff;
  padding: 36px 28px;
  justify-content: center;
  text-align: center;
  align-items: center;
  transform: rotate(-.3deg);
}
.bundle-card:hover { transform: rotate(0deg) translateY(-8px); }
.bundle-stars {
  display: inline-flex; gap: 6px;
  margin-bottom: 14px;
}
.bundle-stars svg {
  width: 24px; height: 24px;
  animation: twinkle 2.4s ease-in-out infinite;
}
.bundle-stars svg:nth-child(2) { animation-delay: .4s; }
.bundle-stars svg:nth-child(3) { animation-delay: .8s; }
/* h3 : Nunito, comme tous les titres de niveau 3 du site */
.bundle-title {
  font-family: var(--rigo-sans);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  color: #fff;
}
.bundle-desc {
  color: rgba(255,255,255,.78);
  margin: 0 0 22px;
  font-size: 15px;
}
.bundle-card .btn-ghost {
  color: #fff; border-color: #fff;
}
.bundle-card .btn-ghost:hover {
  background: #fff; color: var(--ink);
}
.bundle-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  font-style: italic;
}

/* ==========================================================================
   Méthode
   ========================================================================== */

.methode { padding: 96px 0; }

.methode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 72px;
}

.pillar {
  position: relative;
  padding: 40px 28px 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(231, 226, 213, .8);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.pillar-num {
  position: absolute;
  top: -20px; left: 24px;
  font-family: var(--rigo-serif);
  font-size: 78px;
  font-weight: 700;
  color: var(--ink);
  opacity: .22;
  line-height: 1;
  letter-spacing: -.02em;
  z-index: 0;
}
.pillar-icon {
  position: relative; z-index: 1;
  width: 68px; height: 68px;
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--rigo-sans);
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pillar p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 8px;
  padding: 40px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  align-items: center;
  justify-items: center;
  border: 1px solid var(--border);
}
.stat {
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: var(--rigo-serif);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--primary-dark);
  letter-spacing: -.02em;
}
.stat-num small {
  font-size: .5em;
  color: var(--ink-soft);
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 160px;
  line-height: 1.35;
}
.stat-sep {
  width: 1px; height: 60px;
  background: var(--border);
  display: none;
}

/* ==========================================================================
   Peek
   ========================================================================== */

.peek { padding: 72px 0 96px; }
.peek-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .peek-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

.peek-list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.peek-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.peek-list li::before {
  content: "✦";
  position: absolute;
  left: 0; top: -2px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.peek-list strong { color: var(--ink); font-weight: 800; }

.peek-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-lg);
  border: 8px solid #fff;
  transition: transform .4s var(--ease);
}
.peek-visual:hover { transform: rotate(0deg); }
.peek-visual img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.peek-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(42,29,15,.15) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Press / testimonials
   ========================================================================== */

.press { padding: 80px 0; background: var(--bg-warm); }

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 56px;
}

.testimonial {
  position: relative;
  background: var(--bg-alt);
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 0;
  border: 1px solid rgba(231, 226, 213, .8);
  transition: transform .3s var(--ease);
}
.testimonial-1 { transform: rotate(-1deg); }
.testimonial-2 { transform: rotate(.5deg); }
.testimonial-3 { transform: rotate(-.5deg); margin-top: 12px; }
.testimonial:hover { transform: rotate(0deg) translateY(-4px); }

.testimonial .quote {
  width: 36px; height: 28px;
  margin-bottom: 14px;
  opacity: .7;
}
.testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
  font-weight: 400;
}
.testimonial blockquote em {
  font-style: normal;
  font-weight: 800;
  color: var(--primary-dark);
}
.testimonial figcaption {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.person-name {
  font-family: var(--rigo-sans);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.person-role {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Press logos */
.press-logos {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 16px 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.press-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.press-item {
  font-family: var(--rigo-serif);
  font-size: 22px;
  color: var(--ink-soft);
  opacity: .65;
  transition: opacity .2s;
}
.press-item:hover { opacity: 1; }
.press-1 { font-style: italic; }
.press-2 { font-family: var(--rigo-sans); font-weight: 700; font-size: 24px; }
.press-3 { letter-spacing: .04em; text-transform: uppercase; font-size: 16px; font-family: var(--rigo-sans); font-weight: 800; }
.press-4 { font-style: italic; font-size: 18px; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 217, 102, .15) 0%, transparent 40%);
  pointer-events: none;
}
.newsletter-wrap {
  position: relative;
  max-width: 720px;
  text-align: center;
}
.newsletter-doodle {
  width: 140px; height: auto;
  margin: 0 auto 20px;
  opacity: .6;
}
.newsletter-eyebrow {
  font-family: var(--rigo-script);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 10px;
  opacity: .85;
}
.newsletter h2 {
  font-family: var(--rigo-serif);
  font-weight: 700;
  color: #fff;
  font-size: var(--rigo-fs-h2-display);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 14px;
}
.newsletter-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 540px;
  margin: 0 auto 28px;
}
.newsletter-form {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form .btn-primary {
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.newsletter-form .btn-primary:hover { background: #111827; }
.newsletter-form .success {
  flex-basis: 100%;
  margin: 14px 0 0;
  font-weight: 700;
  color: var(--yellow-bright);
  opacity: 0;
  transform: translateY(6px);
  transition: all .3s var(--ease);
}
.newsletter-form .success.show { opacity: 1; transform: translateY(0); }
.newsletter-tiny {
  margin: 18px 0 0;
  font-size: 12.5px;
  opacity: .7;
}

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

@media (max-width: 767px) {
  .hero-stage { max-width: 400px; }
  .speech-bubble { font-size: 18px; padding: 10px 14px; }
  .story-visual { min-height: 460px; padding: 12px; }
  .polaroid { width: 280px; }
  .polaroid-tilt-right { width: 180px; right: 0; }
  .sticker-heart svg { width: 36px; }
  .handwritten-note { font-size: 22px; left: 20px; }
  .marquee-track { font-size: 18px; gap: 22px; }
  .press-logos { gap: 12px 24px; }
  .press-item { font-size: 16px !important; }
  .press-2 { font-size: 20px !important; }
}

/* ==========================================================================
   Harmonisation avec le design system du site
   ========================================================================== */

/* Le hero s'affiche sans attendre le JavaScript (l'ancien état initial
   opacity:0 laissait l'écran vide tant que le script n'avait pas tourné). */
.hero [data-reveal] {
  opacity: 1;
  transform: none;
  animation: rigoRise .7s var(--ease) both;
}
.hero [data-reveal="2"] { animation-delay: .08s; }
.hero [data-reveal="3"] { animation-delay: .16s; }
.hero [data-reveal="4"] { animation-delay: .24s; }
.hero [data-reveal="5"] { animation-delay: .32s; }
.hero [data-reveal="6"] { animation-delay: .2s; }
@keyframes rigoRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Flèche des boutons */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Carte « pack » sur fond sombre : contour clair */
.bundle-card .btn-ghost { color: #fff; border-color: #fff; }
.bundle-card .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--rigo-ink); }
.bundle-card, .newsletter { --rigo-focus: var(--rigo-yellow); }

/* Newsletter : champ et bouton alignés sur les composants du site */
.newsletter-form input[type=email] {
  flex: 1 1 240px;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: var(--rigo-r-pill);
  padding: 12px 20px;
}
.newsletter-form .btn-primary,
.newsletter-form .btn-primary:hover {
  background: var(--rigo-ink);
  border-color: var(--rigo-ink);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

@media (max-width: 767px) {
  .grain { display: none; }   /* calque fixe en fusion : coûteux au défilement sur mobile */
  .hero { padding: 32px 0 48px; }
  .hero-grid { gap: 32px; }
  .hero-sub { font-size: var(--rigo-fs-lead); margin-bottom: 24px; }
  .hero-ctas { gap: 12px; margin-bottom: 24px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-trust { gap: 10px 20px; }
  .scroll-hint { display: none; }
  .story, .press, .newsletter { padding: var(--rigo-section-y) 0; }
  .gamme { padding: var(--rigo-section-y) 0; }
  .methode { padding: var(--rigo-section-y) 0; }
  .peek { padding: var(--rigo-section-y) 0; }
  .section-intro { margin-bottom: 32px; }
  .section-lead { font-size: var(--rigo-fs-body); margin-bottom: 24px; }
  .story-lead { font-size: var(--rigo-fs-lead); }
  .products { gap: 20px; }
  .product-foot { padding: 14px 18px 18px; }
  .product-body { padding: 20px 18px 16px; }
}

/* Tablette : le hero passe en deux colonnes dès 768 px (au lieu d'une pile
   « mobile agrandi » jusqu'à 1024 px). */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero-ctas .btn { flex: 0 1 auto; }
  .story-visual { max-width: 560px; margin: 0 auto; }
}

/* Mobile : la note manuscrite passait sous le second polaroid et se
   superposait à sa légende. Elle se place sous les photos. */
@media (max-width: 767px) {
  .story-visual { min-height: 0; padding-bottom: 0; }
  .polaroid-tilt-right { bottom: 72px; }
  .handwritten-note {
    position: relative;
    bottom: auto; left: auto;
    max-width: none;
    margin: 28px 0 0;
    text-align: left;
  }
}

/* Ajout au panier depuis une carte : le tiroir de confirmation suffit.
   La notification en haut d'écran ne reste que pour signaler une erreur. */
.cart-toast:not(.error) { display: none; }
.cart-toast { z-index: var(--rigo-z-toast); }
