/* ============================================================
   NUTRIFACT — LANDING (DESIGN TOKENS + STYLES)
   DA marque : fond corail vif · typo crème chunky arrondie + script
   Mobile-first, colonne unique, cartes arrondies empilées.
   ============================================================ */

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

:root {
  /* ── COULEURS ── */
  --coral:       #FF6F61;   /* corail vif — fond marque */
  --coral-bg:    #FF7C6E;   /* fond de page (un poil plus clair/vivant) */
  --coral-deep:  #E8503F;   /* corail profond — boutons / cartes accent */
  --coral-soft:  #FFB3A7;   /* corail clair — détails */
  --page-bg:     #FFFFFF;   /* fond de page blanc pur */

  --cream:       #FFF4E8;   /* crème — texte sur corail + cartes claires */
  --cream-2:     #FFEEDD;   /* crème variante carte */

  --text:        #4A2C28;   /* brun chaud — texte sur crème */
  --text-soft:   rgba(74,44,40,0.62);
  --text-faint:  rgba(74,44,40,0.42);

  --on-coral:        #FFF4E8;            /* texte sur corail */
  --on-coral-soft:   rgba(255,244,232,0.72);

  --border-cream: rgba(74,44,40,0.10);
  --border-coral: rgba(255,244,232,0.22);

  /* ── TYPO ── */
  --font-display: 'Fredoka', system-ui, sans-serif;   /* chunky arrondie */
  --font-body:    'Nunito', system-ui, sans-serif;     /* rondouillarde lisible */
  --font-script:  'Caveat', cursive;                   /* accent manuscrit */

  /* ── DIVERS ── */
  --r:   24px;   /* rayon cartes */
  --gap: 10px;   /* espace entre cartes */
  --pad: 24px;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

/* ─── PAGE ─── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ─── CARTES ─── */
.card { border-radius: var(--r); overflow: hidden; }
.card-cream { background: var(--cream); color: var(--text); }
.card-coral { background: var(--coral-deep); color: var(--on-coral); }
.p { padding: var(--pad); }

/* ─── HERO ─── */
.hero { padding: 0; }
.hero-img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 14px;
  text-align: center;
}

/* ─── PLACEHOLDERS MÉDIA ─── */
.ph {
  width: 100%;
  background: rgba(255,244,232,0.12);
  border: 2px dashed rgba(255,244,232,0.35);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: rgba(255,244,232,0.7);
}
.card-cream .ph {
  background: rgba(74,44,40,0.05);
  border-color: rgba(74,44,40,0.18);
  color: var(--text-faint);
}
.ph-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ph-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ph-43       { aspect-ratio: 4/3; }
.ph-portrait { aspect-ratio: 1080/1508; border-radius: 0; }
.bloc { width: 100%; }
.bloc .ph { border-radius: 0; border: none; }
.bloc img, .bloc video {
  width: 100%; display: block; object-fit: cover;
}

/* ─── EN-TÊTE PRODUIT ─── */
.product-header { padding: 10px 8px 4px; color: var(--text); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 8px;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.product-title .script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.05em;
  color: var(--coral-deep);
  white-space: nowrap;
}
.product-title .heart { color: var(--coral); font-family: var(--font-body); }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.price-now { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.price-was {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  opacity: 0.6; text-decoration: line-through;
}
.badge-offer {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 900; letter-spacing: 0.04em;
  color: var(--cream); background: var(--coral-deep);
  padding: 4px 10px; border-radius: 999px;
}
.urgency-bar { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.urgency-emoji { font-size: 18px; line-height: 1; }
.urgency-label {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 800; color: var(--coral-deep);
}
.urgency-cd { font-variant-numeric: tabular-nums; }
.stars-row { display: flex; align-items: center; gap: 10px; }
.stars-avatars { display: flex; }
.stars-avatars span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral-soft); border: 2px solid var(--coral-deep);
  margin-left: -8px; display: block;
}
.stars-avatars span:first-child { margin-left: 0; }
.stars-text { font-size: 13px; font-weight: 600; color: var(--on-coral-soft); }
.stars-text strong { color: var(--cream); }

/* ─── TYPO SECTION ─── */
.s-eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
}
.s-eyebrow.on-coral { color: var(--on-coral-soft); }
.s-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 6vw, 29px);
  font-weight: 600; line-height: 1.18;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.s-desc { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-soft); }

/* ─── CHECKLIST ─── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.checklist strong { font-weight: 800; }
.chk {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--coral); color: var(--cream);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; margin-top: 1px;
}

/* ─── AVIS ─── */
.avis { padding: 4px 0 16px; border-bottom: 1px solid var(--border-coral); margin-bottom: 16px; }
.avis:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.avis-text { font-size: 16px; line-height: 1.5; font-weight: 600; font-style: italic; }
.avis-name { font-size: 13px; font-weight: 700; color: var(--on-coral-soft); margin-top: 8px; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; margin-top: 14px; }
.faq-item { border-bottom: 1px solid var(--border-cream); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 0; cursor: pointer; color: inherit;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  line-height: 1.3;
}
.faq-icon { flex-shrink: 0; font-size: 20px; transition: transform 0.22s; opacity: 0.5; }
.faq-item.open .faq-icon { transform: rotate(180deg); opacity: 0.9; }
.faq-a { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); padding-bottom: 16px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ─── COUNTDOWN ─── */
.cd-wrap { text-align: center; margin-bottom: 22px; }
.cd-title { font-family: var(--font-script); font-size: 26px; font-weight: 700; margin-bottom: 12px; color: var(--cream); }
.cd-row { display: flex; align-items: center; justify-content: center; }
.cd-grp { display: flex; gap: 4px; }
.odo-cell {
  width: 40px; height: 50px;
  background: rgba(255,244,232,0.14);
  border: 1px solid rgba(255,244,232,0.28);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.odo-sep { font-size: 24px; font-weight: 700; padding: 0 6px; opacity: 0.4; align-self: center; }

/* Section offre = compte à rebours seul, fond corail spécifique */
#offre { background: #ef4656; }

/* ─── PRICING / CTA ─── */
.pricing-block {
  background: rgba(255,244,232,0.10);
  border: 1px solid var(--border-coral);
  border-radius: 18px; padding: 22px;
}
.pricing-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pricing-desc { font-size: 13px; font-weight: 600; color: var(--on-coral-soft); margin-bottom: 14px; }
.pricing-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.price-now.on-coral, .price-was.on-coral { color: var(--cream); }

.cta-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--cream); color: var(--coral-deep);
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  padding: 18px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:active { transform: scale(0.98); }
/* Variante verte (comme le bouton freebie) — pour bien signaler "c'est un bouton" */
.cta-btn.cta-green {
  background: #5DBB34; color: #ffffff;
  box-shadow: 0 10px 26px -8px rgba(93,187,52,0.55);
}
.cta-btn.cta-green:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* Conteneur du checkout Whop embarqué (iframe en thème clair) */
.checkout-wrap {
  background: var(--cream);
  border-radius: 18px;
  padding: 10px;
  margin-top: 18px;
  min-height: 440px;
  overflow: hidden;
}
.checkout-wrap iframe { width: 100% !important; border: 0; border-radius: 12px; }

.trust-bar {
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--on-coral-soft); margin-top: 14px; line-height: 1.7;
}

/* ─── CAPTURE FREEBIE (page desserts.html) ─── */
.capture { text-align: center; }
.capture-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.capture-input {
  width: 100%; text-align: center;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--text);
  background: var(--cream);
  border: 2px solid rgba(74,44,40,0.12);
  border-radius: 999px; padding: 16px 18px; outline: none;
  transition: border-color 0.15s ease;
}
.capture-input::placeholder { color: var(--text-faint); font-weight: 600; }
.capture-input:focus { border-color: var(--coral-deep); }
.capture-btn {
  display: block; width: 100%; cursor: pointer; border: none;
  background: #5DBB34; color: #ffffff;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  padding: 17px 20px; border-radius: 999px;
  box-shadow: 0 10px 26px -8px rgba(93,187,52,0.55);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.capture-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.capture-btn:active { transform: scale(0.98); }
.capture-note { font-size: 12.5px; font-weight: 600; color: var(--on-coral-soft); margin-top: 12px; line-height: 1.6; }
.capture-success {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--cream); margin-top: 14px; line-height: 1.5;
}
/* sur carte corail, la pastille check passe en crème (jamais corail sur corail) */
.checklist.on-coral .chk { background: var(--cream); color: var(--coral-deep); }

/* exemples d'échange (page echanges.html) — sur carte crème */
.swap-ex { background: rgba(74,44,40,0.04); border: 1px solid var(--border-cream); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.swap-ex-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-body); font-weight: 800; font-size: 15px; line-height: 1.3; }
.swap-ex-from { color: var(--text-soft); text-decoration: line-through; }
.swap-ex-arrow { color: var(--coral-deep); font-size: 18px; }
.swap-ex-to { color: var(--text); }
.swap-ex-benefit { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-top: 6px; line-height: 1.5; }
.swap-more { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--coral-deep); margin-top: 16px; }

/* annotation manuscrite « c'est Camille » + flèche pointillés (page freebie) */
.camille-wrap { position: relative; }
.annot-camille {
  position: absolute; top: 10px; left: 16px; z-index: 3;
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(26px, 7.5vw, 36px); color: var(--cream);
  line-height: 1; transform: rotate(-6deg);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  pointer-events: none;
}
.annot-arrow {
  position: absolute; top: 44px; left: 30px; z-index: 3;
  width: 30%; max-width: 140px; height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  pointer-events: none;
}

/* ─── QUIZ / BILAN (page freebie) ─── */
.quiz-card { text-align: center; min-height: 420px; background: #f0475b; }
.quiz-intro-title { font-family: var(--font-display); font-size: clamp(26px, 7vw, 34px); font-weight: 700; line-height: 1.12; color: var(--cream); margin-bottom: 12px; }
.quiz-intro-title .script { font-family: var(--font-script); font-weight: 700; color: var(--cream); }
.quiz-sub { font-size: 15px; line-height: 1.6; color: var(--cream); opacity: 0.95; margin-bottom: 22px; }
.quiz-progress { height: 8px; background: rgba(255,244,232,0.22); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress > i { display: block; height: 100%; width: 0; background: var(--cream); border-radius: 999px; transition: width 0.35s ease; }
.quiz-count { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-coral-soft); margin-bottom: 10px; }
.quiz-q { font-family: var(--font-display); font-size: clamp(21px, 5.8vw, 27px); font-weight: 600; line-height: 1.22; color: var(--cream); margin-bottom: 18px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.quiz-opt {
  width: 100%; background: var(--cream); color: var(--text);
  border: 2px solid transparent; border-radius: 16px;
  padding: 16px 18px; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.3;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.quiz-opt:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(0,0,0,0.35); }
.quiz-opt:active { transform: scale(0.99); }
.quiz-back { background: none; border: none; color: var(--on-coral-soft); font-family: var(--font-body); font-weight: 700; font-size: 13px; cursor: pointer; margin-top: 18px; }

/* ─── BILAN ANIMÉ — silhouette féminine + annotations (SVG/CSS, 100% custom) ─── */
.bilan-anim { position: relative; width: 100%; max-width: 330px; margin: 6px auto 14px; aspect-ratio: 1 / 1; }
.bilan-figure { position: absolute; left: 50%; top: 53%; transform: translate(-50%,-50%); height: 72%; width: auto; opacity: 0; animation: bilanPop .55s cubic-bezier(.2,.8,.3,1) forwards .1s; }
.bilan-figure circle, .bilan-figure path { fill: var(--cream); stroke: #ffffff; stroke-width: 6; stroke-linejoin: round; }
.bilan-figure-float { animation: bilanFloat 4.5s ease-in-out infinite; transform-origin: center; }
.bilan-tag { position: absolute; opacity: 0; max-width: 44%; }
.bilan-tag span { font-family: var(--font-script); font-weight: 700; color: var(--cream); font-size: clamp(17px, 4.8vw, 23px); line-height: 1.04; display: block; }
.bilan-tag .arr { width: 52px; height: 34px; display: block; stroke: var(--cream); stroke-width: 3; fill: none; stroke-linecap: round; }
.tag-tl { top: 1%;  left: 0;  text-align: left;  animation: tagIn .5s ease forwards .55s; }
.tag-tr { top: 1%;  right: 0; text-align: right; animation: tagIn .5s ease forwards .75s; }
.tag-bl { bottom: 1%; left: 0;  text-align: left;  animation: tagIn .5s ease forwards .95s; }
.tag-br { bottom: 1%; right: 0; text-align: right; animation: tagIn .5s ease forwards 1.15s; }
.tag-tr .arr, .tag-br .arr { margin-left: auto; }
@keyframes bilanPop { from { opacity: 0; transform: translate(-50%,-50%) scale(.8); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes tagIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bilanFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .bilan-figure, .bilan-tag { animation-duration: .01s !important; } .bilan-figure-float { animation: none; } }

/* objectif personnalisé (pilule crème sur la carte corail) */
.bilan-objectif { display: inline-block; background: var(--cream); color: var(--coral-deep); font-family: var(--font-body); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; margin: 0 0 16px; }

/* choix de plats (questions imagées) */
.quiz-plats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-plat { background: var(--cream); border: 2px solid transparent; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; transition: transform .12s ease, box-shadow .12s ease; }
.quiz-plat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.quiz-plat img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.quiz-plat span { display: block; padding: 10px 8px; font-family: var(--font-body); font-weight: 800; font-size: 13.5px; color: var(--text); line-height: 1.25; }
/* plat final personnalisé (étape capture) */
.bilan-plat { border-radius: 16px; overflow: hidden; background: var(--cream); margin: 4px 0 14px; }
.bilan-plat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.bilan-plat-info { padding: 11px 14px; text-align: center; }
.bilan-plat-info strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--text); line-height: 1.2; }
.bilan-plat-info span { font-size: 13px; font-weight: 700; color: var(--coral-deep); }
.reveal-kcal { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 9vw, 44px); color: var(--cream); line-height: 1; margin-bottom: 4px; }

/* ─── FOOTER ─── */
.footer {
  text-align: center; padding: 22px 16px 8px;
  font-size: 12px; font-weight: 600;
  color: var(--text-soft); line-height: 1.9;
}
.footer-brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--coral-deep); margin-bottom: 10px; }
.footer-legal { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.footer a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer {
  border: 1px solid var(--border-cream); border-radius: 12px;
  padding: 12px 14px; font-size: 11px; line-height: 1.6; margin-top: 10px;
}
