/* ============================================================
   MEMO — Site vitrine
   Design system extrait de l'app iOS (DesignSystem.swift / MemoTheme.swift)
   ============================================================ */

:root {
  /* Palette « vert clair MEMO » : le site reste dominé par le mint pastel
     de l'app, avec un vert frais et vif (#0E7A31, AA sur mint) pour les
     accents, et le dégradé du widget (#2F7053 → #40835D) pour les sections
     sombres — plus aucun bloc vert-noir. */
  --green-deep: #0E7A31;        /* titres et accents — vert frais lisible */
  --green-primary: #0E7A31;
  --green-soft: #2F7053;        /* ton du widget — accents secondaires */
  --green-secondary: #128A3C;   /* relais vif du dégradé CTA */
  --green-accent: #56B16F;      /* classicAccent */
  --widget-grad: linear-gradient(160deg, #2F7053, #40835D); /* fond du widget de l'app */
  --green-bright: #00AB2B;
  --green-check: #1F9E42;
  --mint-top: #EDF7F1;
  --mint-bottom: #E6F3EA;
  --cream: #F0F7F2;
  --forest: #05331A;            /* thème "Inversé" de l'app */
  --gold-1: #F4D06F;
  --gold-2: #C89B2C;
  --gold-text: #8a6a12; /* or lisible sur fond mint (contraste AA) */
  --ink: #14241B;
  --ink-soft: rgba(20, 36, 27, 0.72);

  --grad-primary: linear-gradient(135deg, #0E7A31, #128A3C);
  --grad-accent: linear-gradient(90deg, var(--green-secondary), var(--green-accent));
  --grad-gold: linear-gradient(135deg, var(--gold-1), var(--gold-2));

  /* Surfaces */
  --page-bg: linear-gradient(160deg, var(--mint-top), var(--mint-bottom));
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-line-a: rgba(255, 255, 255, 0.85);
  --glass-line-b: rgba(255, 255, 255, 0.25);
  --card-shadow: 0 18px 40px rgba(14, 122, 49, 0.10);
  --card-shadow-soft: 0 8px 24px rgba(14, 122, 49, 0.08);
  --cta-shadow: 0 10px 24px rgba(14, 122, 49, 0.26);

  /* Typo */
  --font-display: ui-rounded, "Nunito", "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;

  /* Rythme (échelle de l'app : 4/8/16/24/32/48) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px;
  --r-md: 16px; --r-lg: 20px; --r-xl: 26px; --r-pill: 999px;
  --container: 1140px;
  --header-h: 72px;
}

@font-face {
  font-family: "Nunito";
  src: url("../assets/vendor/nunito-var-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mint-top);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* dégradé plein viewport sur une couche fixe (background-attachment: fixed
   force un re-raster à chaque frame sur mobile et est ignoré par iOS Safari) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: var(--page-bg);
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-primary); text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(86, 177, 111, 0.35); }

/* Titres en encre neutre : le vert n'apparaît qu'en rappels
   (trait sous les titres, boutons, chips, formes décoratives) */
h1, h2, h3, .display { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.08; font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.14; font-weight: 900; }
h3 { font-size: 1.25rem; font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
section { padding-block: clamp(72px, 9vw, 120px); position: relative; }

/* Formes décoratives : halos verts très doux qui rythment la page */
#etapes::before, #histoires::before, #premium::before {
  content: "";
  position: absolute; z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
#etapes::before {
  width: 460px; height: 460px;
  background: rgba(86, 177, 111, 0.20);
  top: -60px; right: -140px;
}
#histoires::before {
  width: 420px; height: 420px;
  background: rgba(86, 177, 111, 0.16);
  bottom: 40px; left: -160px;
}
#premium::before {
  width: 380px; height: 380px;
  background: rgba(244, 208, 111, 0.18);
  top: 0; right: -100px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: var(--s-3); }

/* Rappel de vert : petit trait arrondi sous les titres de section */
.section-head h2::after,
.feature-copy h2::after,
.premium-card h2::after {
  content: "";
  display: block;
  width: 52px; height: 5px; border-radius: 3px;
  background: var(--grad-primary);
  margin: 16px auto 0;
}
.feature-copy h2::after, .premium-card h2::after { margin-inline: 0; }
.final-cta h2::after, .contact-card h2::after { display: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 800;
  color: var(--green-primary); text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(86, 177, 111, 0.14);
  padding: 7px 16px; border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}

/* ---------- Verre dépoli (recette de l'app : ultraThinMaterial + liseré) ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--r-xl);
  box-shadow: var(--card-shadow);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-line-a), var(--glass-line-b));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--r-md);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.btn:active, .btn:active:hover { transform: scale(0.95); }
.btn-primary {
  color: #fff; background: var(--grad-primary);
  box-shadow: var(--cta-shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 122, 49, 0.33); }
.btn-ghost {
  color: var(--green-primary);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--card-shadow-soft);
}
.btn-ghost:hover { transform: translateY(-2px); }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges img { height: 52px; width: auto; }
.store-badges a { transition: transform 0.25s ease, filter 0.25s ease; display: block; }
.store-badges a:hover { transform: translateY(-2px) scale(1.02); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(237, 247, 241, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgba(31, 95, 58, 0.08);
}
.nav {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  color: var(--green-deep); letter-spacing: 0.01em;
}
.nav-logo img { width: 34px; height: auto; }
.nav-links { display: flex; gap: clamp(16px, 2.5vw, 32px); }
.nav-links a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green-deep); }
.nav-cta { padding: 10px 22px; font-size: 0.95rem; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span {
  width: 20px; height: 2.5px; border-radius: 2px;
  background: var(--green-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(237, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4);
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-menu.open {
  opacity: 1; pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--green-deep);
}
body.menu-open { overflow: hidden; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(56px, 7vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .accent {
  background: linear-gradient(135deg, #0E7A31, #1F9E42);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { max-width: 34em; margin-bottom: var(--s-5); }
.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: var(--s-4);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-trust .stars { color: var(--gold-text); letter-spacing: 2px; }
.hero-trust strong { color: var(--green-deep); }

/* Décor de fond du hero */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hero-orbs i {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
}
.hero-orbs i:nth-child(1) { width: 420px; height: 420px; background: rgba(86, 177, 111, 0.35); top: -120px; right: 8%; }
.hero-orbs i:nth-child(2) { width: 340px; height: 340px; background: rgba(244, 208, 111, 0.28); bottom: -80px; left: -60px; }

/* ---------- iPhone (fait main — ratio 393/852, coins 55pt) ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: 6% 12%;
  background: radial-gradient(closest-side, rgba(86, 177, 111, 0.4), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.iphone {
  position: relative; z-index: 1;
  container-type: inline-size;
  width: min(330px, 78vw);
  /* cadrage marketing : un peu plus court que le vrai 393/852, moins longiligne */
  aspect-ratio: 393 / 780;
  border-radius: 13.5% / 6.8%;
  background: #0d0d0f;
  padding: 1.9%;
  box-shadow:
    inset 0 0 0 1.5px #3f3f42,
    0 26px 52px -14px rgba(5, 51, 26, 0.4);
}
.iphone .island {
  position: absolute; top: 3.4%; left: 50%; translate: -50% 0;
  width: 27%; aspect-ratio: 126 / 37;
  background: #000; border-radius: var(--r-pill);
  z-index: 4;
}
.iphone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 12% / 6.1%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mint-top), var(--mint-bottom));
}
/* la mascotte qui dépasse derrière l'iPhone */
.phone-mascot {
  position: absolute; z-index: 2;
  width: clamp(96px, 10vw, 132px);
  right: max(-26px, -3vw); bottom: -14px;
  filter: drop-shadow(0 10px 18px rgba(5, 51, 26, 0.28));
}

/* ---- Démo "Aujourd'hui" dans l'écran ---- */
.demo-top {
  position: absolute; top: 9%; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  z-index: 3;
}
.demo-date {
  /* pill du vrai écran : 34pt bold rounded, radius 28, à l'échelle du mock */
  font-family: var(--font-display); font-weight: 800; font-size: clamp(21px, 8.6cqw, 29px);
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 10px 26px; border-radius: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.demo-crown { font-size: 15px; animation: crown-bob 1.5s ease-in-out infinite; }
@keyframes crown-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.1); } }

.demo-stories { position: absolute; inset: 0; }
/* Pager vertical plein écran, comme dans l'app : les positions et
   transitions sont pilotées en JS (translateY en % de l'écran),
   les deux histoires glissent ensemble pendant le geste. */
.demo-story {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24% 10% 16%;
  visibility: hidden; pointer-events: none;
  transform: translateY(105%);
  will-change: transform;
}
.demo-story.active { visibility: visible; pointer-events: auto; }
.demo-story.peek { visibility: visible; }
.demo-title {
  /* mode illustré de l'app : titre réduit, l'image vient dessous */
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(15px, 5.8cqw, 19px); line-height: 1.3;
  color: var(--green-deep);
  margin-bottom: 12px;
  transition: font-size 0.3s ease;
}
/* œil fermé → l'image se replie et le titre reprend le grand format (comme l'app) */
.demo-story.no-img .demo-title { font-size: clamp(19px, 7.6cqw, 25px); margin-bottom: 22px; }
.demo-story.no-img .demo-figure { display: none; }
.demo-figure { width: 82%; margin: 0 auto; }
.demo-figure img {
  width: 100%; height: auto;
  max-height: 168px; object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  display: block;
}
.demo-caption {
  font-size: 9.5px; font-style: italic;
  color: rgba(20, 36, 27, 0.62);
  margin: 7px 0 12px;
  line-height: 1.35;
}
.demo-more {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.demo-more::after { content: " ⌄"; }
.demo-actions { display: flex; gap: 34px; color: var(--green-deep); }
.demo-actions svg { width: 22px; height: 22px; display: block; }
.demo-actions .heart.on svg path { fill: var(--green-deep); }
.demo-actions button { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.demo-actions button:active { transform: scale(0.85); }
/* la zone d'histoires se glisse au doigt, à la souris ou à la molette,
   comme dans l'app (« Glisse vers le haut ») */
.demo-stories { cursor: grab; touch-action: none; }
.demo-stories.dragging { cursor: grabbing; }
.demo-actions .heart { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.demo-story.liked .heart { transform: scale(1.2); }
.demo-swipe {
  position: absolute; bottom: 4.5%; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  color: rgba(14, 122, 49, 0.9);
  animation: swipe-hint 2s ease-in-out infinite;
  z-index: 3;
}
@keyframes swipe-hint { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(-5px); opacity: 1; } }
.demo-dots {
  position: absolute; right: 4.5%; top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; gap: 6px; z-index: 3;
}
.demo-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(31, 95, 58, 0.25);
  transition: background 0.3s ease, height 0.3s ease;
}
.demo-dots i.on { background: var(--green-primary); height: 14px; border-radius: 3px; }

/* ---------- Bandeau de confiance ---------- */
.trust-band { padding-block: 0; margin-top: -12px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 40px);
  gap: var(--s-3);
  text-align: center;
}
.trust-item .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green-primary);
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.trust-item .num .star { color: var(--gold-text); font-size: 0.75em; }
.trust-item .cap { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Étapes ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.step-card { padding: var(--s-5) var(--s-4) var(--s-4); text-align: center; overflow: hidden; }
.step-card .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--cta-shadow);
  margin-bottom: var(--s-3);
}
.step-card img {
  width: min(220px, 70%);
  margin: var(--s-3) auto 0;
}
.step-card h3 { margin-bottom: var(--s-2); }
.step-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Sections features alternées ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(32px, 5vw, 80px);
}
.feature-row + .feature-row { margin-top: clamp(72px, 8vw, 110px); }
.feature-row.reverse .feature-media { order: 2; }
.feature-copy .eyebrow { margin-bottom: var(--s-3); }
.feature-copy h2 { margin-bottom: var(--s-3); }
.feature-copy p { color: var(--ink-soft); margin-bottom: var(--s-3); }
.feature-copy ul { display: grid; gap: 10px; margin-top: var(--s-3); }
.feature-copy li {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 500;
}
.feature-copy li::before {
  content: "✓";
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: rgba(31, 158, 66, 0.14);
  color: var(--green-check);
  font-size: 0.8rem; font-weight: 800;
}
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media > img { width: min(400px, 100%); }
.media-float {
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* Streak : flamme + rangée de jours (recreation de la sheet de l'app) */
.streak-demo {
  padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  width: min(420px, 100%);
}
.streak-flame { width: 110px; height: 110px; }
.streak-count {
  font-family: var(--font-display); font-weight: 900; font-size: 2.2rem;
  color: var(--green-deep); line-height: 1;
}
.streak-label { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.streak-week {
  display: flex; gap: 12px;
  background: rgba(5, 20, 12, 0.78);
  padding: 14px 20px; border-radius: 14px;
  box-shadow: 0 18px 36px rgba(5, 51, 26, 0.28);
}
.streak-week .day { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.streak-week .day span {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; color: #fff;
}
.streak-week .day i {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-style: normal; color: transparent;
}
.streak-week .day.done i { background: var(--green-check); color: #fff; }
.streak-badges { display: flex; gap: 4px; margin-top: var(--s-2); }
.streak-badges img { width: 72px; }

/* Mini-quiz interactif */
.quiz-demo { padding: var(--s-5) var(--s-4); width: min(440px, 100%); }
.quiz-q {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--ink);
  text-align: center; margin-bottom: var(--s-3);
}
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left;
  padding: 13px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(31, 95, 58, 0.12);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.quiz-opt:hover { transform: scale(1.015); border-color: rgba(31, 95, 58, 0.35); }
.quiz-demo.answered .quiz-opt { pointer-events: none; }
.quiz-opt.correct { background: rgba(31, 158, 66, 0.16); border-color: var(--green-check); }
.quiz-opt.wrong { background: rgba(255, 84, 92, 0.12); border-color: rgba(255, 84, 92, 0.5); }
.quiz-why {
  margin-top: var(--s-3);
  font-size: 0.92rem; color: var(--ink-soft);
  background: rgba(86, 177, 111, 0.12);
  padding: 12px 16px; border-radius: 12px;
  display: none;
}
.quiz-demo.answered .quiz-why { display: block; }
.quiz-why strong { color: var(--green-deep); }

/* ---------- Catégories ---------- */
.cats { text-align: center; }
.cats-cloud {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; max-width: 860px; margin-inline: auto;
}
.cat-chip {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--green-primary);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--card-shadow-soft);
  padding: 12px 22px; border-radius: var(--r-pill);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cat-chip:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Histoires (cartes scroll-snap) ---------- */
.stories-rail-wrap { position: relative; }
.stories-rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(320px, 82vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 8px 28px;
  scrollbar-width: none;
}
.stories-rail::-webkit-scrollbar { display: none; }
.story-card {
  scroll-snap-align: center;
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: 12px;
  text-align: center;
  border-radius: var(--r-lg);
}
.story-card .meta {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 800;
}
.story-card .meta .domain {
  color: var(--green-primary);
  background: rgba(86, 177, 111, 0.16);
  padding: 4px 12px; border-radius: var(--r-pill);
}
.story-card .meta .ago {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 12px; border-radius: var(--r-pill);
}
.story-card h3 { font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.story-card p { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }
.stories-nav { display: flex; justify-content: center; gap: 12px; }
.stories-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--card-shadow-soft);
  color: var(--green-primary); font-size: 1.2rem; font-weight: 800;
  transition: transform 0.2s ease;
}
.stories-nav button:hover { transform: scale(1.08); }

/* ---------- Avis ---------- */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card { padding: var(--s-4); border-radius: var(--r-lg); }
.review-card .stars { color: var(--gold-text); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.review-card p { font-size: 0.97rem; margin-bottom: 14px; }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .who .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-primary);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.review-card .who .name { font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; color: var(--ink); }
.reviews-note {
  text-align: center; margin-top: var(--s-5);
  font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
}
.reviews-note strong { color: var(--green-deep); }

/* ---------- Premium ---------- */
.premium { position: relative; }
.premium-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
}
.premium-mascot { text-align: center; }
.premium-mascot img { width: min(300px, 80%); margin-inline: auto; }
.premium-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: #6b4d00;
  background: linear-gradient(135deg, rgba(244, 208, 111, 0.5), rgba(200, 155, 44, 0.35));
  border: 1px solid rgba(200, 155, 44, 0.4);
  padding: 7px 16px; border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}
.compare { width: 100%; border-collapse: collapse; margin-block: var(--s-3); }
.compare th, .compare td { padding: 11px 8px; text-align: center; font-size: 0.95rem; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare thead th {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  border-bottom: 2px solid rgba(14, 122, 49, 0.15);
}
.compare tbody tr + tr { border-top: 1px solid rgba(31, 95, 58, 0.08); }
.compare .no { color: rgba(20, 36, 27, 0.55); }
.compare .yes { color: var(--green-check); font-weight: 800; }
.compare .gold { font-family: var(--font-display); font-weight: 800; color: #8a6a12; }
.premium-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: var(--s-3); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { border-radius: var(--r-lg); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(86, 177, 111, 0.15);
  color: var(--green-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--ink-soft); font-size: 0.97rem; }
.faq-item .faq-body a { font-weight: 700; }

/* ---------- CTA final (thème "Inversé" de l'app : forêt profonde) ---------- */
#telecharger { padding-top: clamp(8px, 2vw, 24px); }
#contact { padding-top: clamp(24px, 4vw, 56px); }
.final-cta {
  /* clair, avec la vallée cartoon de l'app en rappel de vert au bas */
  background:
    linear-gradient(180deg, rgba(237, 247, 241, 0.97) 34%, rgba(237, 247, 241, 0.55) 62%, rgba(237, 247, 241, 0.05) 100%),
    url("../assets/bg/vallee.webp") bottom center / cover no-repeat,
    var(--mint-top);
  border-radius: clamp(24px, 3vw, 40px);
  box-shadow: var(--card-shadow);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 72px) clamp(120px, 16vw, 190px);
  text-align: center;
  position: relative; overflow: hidden;
}
.final-cta > * { position: relative; }
.final-cta .wordmark { margin: 0 auto var(--s-4); }
.final-cta h2 { color: var(--ink); margin-bottom: var(--s-3); }
.final-cta .lead { color: var(--ink-soft); max-width: 34em; margin: 0 auto var(--s-5); }
.final-cta .store-badges { justify-content: center; }
.final-cta .qr {
  margin: var(--s-5) auto 0;
  width: 132px;
  padding: 10px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 12px 28px rgba(14, 122, 49, 0.20);
}
.final-cta .qr-cap {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--ink-soft);
}
.final-cta .trial-note {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--green-primary);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 18px; border-radius: var(--r-pill);
  box-shadow: var(--card-shadow-soft);
}
/* Wordmark thémable : le PNG blanc sert de pochoir, la couleur suit le thème */
.wordmark {
  display: block;
  width: min(240px, 55%);
  aspect-ratio: 985 / 250;
  background: var(--green-primary);
  -webkit-mask: url("../assets/brand/wordmark.webp") center / contain no-repeat;
  mask: url("../assets/brand/wordmark.webp") center / contain no-repeat;
}

/* ---------- Contact ---------- */
.contact-card { max-width: 620px; margin-inline: auto; padding: clamp(28px, 4vw, 44px); }
.contact-card form { display: grid; gap: 14px; margin-top: var(--s-4); }
.contact-card input, .contact-card textarea {
  font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(31, 95, 58, 0.12);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color 0.2s ease;
  width: 100%;
}
.contact-card input:focus, .contact-card textarea:focus {
  outline: none; border-color: var(--green-secondary);
}
.contact-card textarea { min-height: 130px; resize: vertical; }
.contact-alt { text-align: center; margin-top: var(--s-3); font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(48px, 6vw, 80px);
  background: rgba(86, 177, 111, 0.10);
  border-top: 1px solid rgba(14, 122, 49, 0.12);
  color: var(--ink-soft);
  padding: clamp(40px, 5vw, 64px) 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.footer-brand .wordmark { width: 130px; margin: 0 0 var(--s-3); }
.footer-brand p { font-size: 0.92rem; max-width: 30em; }
.site-footer h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--ink); margin-bottom: var(--s-3);
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--green-primary); font-weight: 600; font-size: 0.93rem; transition: color 0.2s ease; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(14, 122, 49, 0.12);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.footer-credits {
  margin-top: 14px;
  font-size: 0.75rem; color: rgba(20, 36, 27, 0.55);
  max-width: 60em;
}

/* ---------- Barre CTA mobile ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 20px;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta .t {
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  color: var(--green-deep); line-height: 1.25;
}
.mobile-cta .t small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.75rem; }
.mobile-cta .btn { padding: 10px 18px; font-size: 0.9rem; flex: none; }

/* ---------- Reveal on scroll ----------
   Visible par défaut : seul js/main.js (chargé, et hors reduced-motion)
   masque les éléments avant de les révéler — jamais de contenu bloqué
   si le script échoue. */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .store-badges, .hero-trust { justify-content: center; }
  .phone-wrap { margin-top: var(--s-4); }
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .feature-row { grid-template-columns: 1fr; text-align: center; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-copy ul { max-width: 420px; margin-inline: auto; text-align: left; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .premium-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .compare th, .compare td { font-size: 0.88rem; padding: 9px 4px; }
}

/* ---------- Mode sombre (thème "Inversé"/"Nuit" de l'app) ---------- */
/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 3px solid var(--green-accent); outline-offset: 3px; border-radius: 6px; }
