/* Fluff, site vitrine. Refonte complète : futuriste, vivant, premium.
   Palette de l'app : crème, vert sapin, sable. Crème sur sombre en haut,
   sapin sur crème ensuite. Animations en transform/opacity uniquement. */

:root {
  --creme: #f6f1e6;
  --carte: #fffcf5;
  --encre: #17191c;
  --encre-douce: #4a4d52;
  --sapin: #1f4d2e;
  --sapin-sombre: #153622;
  --sapin-clair: #2a6a3e;
  --sable: #d9b96f;
  --sable-sombre: #b8933f;
  --sur-sapin: #fbf8f0;
  --nuit: #0a100c;
  --rayon: 20px;
  --rayon-petit: 14px;
  --ombre: 0 1px 2px rgba(23, 25, 28, 0.08), 0 6px 18px rgba(23, 25, 28, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--creme);
  color: var(--encre);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============ Accroche sombre ============ */

.accroche {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 56px 24px 72px;
  background: linear-gradient(180deg, var(--sapin-sombre) 0%, #101f14 55%, var(--nuit) 100%);
  color: var(--creme);
  overflow: hidden;
}

/* Lueur radiale sable qui respire derrière le centre */
.accroche::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 52%, rgba(217, 185, 111, 0.20) 0%, rgba(217, 185, 111, 0.06) 32%, transparent 62%);
  animation: lueur-respire 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lueur-respire {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.accroche > * { position: relative; }

.tagline {
  font-size: clamp(2.4rem, 11vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--creme);
  max-width: 560px;
}

/* ---------- L'orbe, comme dans l'app ---------- */

.orbe {
  width: min(52vw, 210px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 34% 28%, var(--sapin-clair) 0%, var(--sapin) 48%, var(--sapin-sombre) 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 90px rgba(217, 185, 111, 0.18),
              inset 0 2px 12px rgba(255, 255, 255, 0.20);
  animation: orbe-respire 5.2s ease-in-out infinite;
  will-change: transform;
}
.orbe::before,
.orbe::after {
  content: "";
  position: absolute;
  inset: -5%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  will-change: transform, border-radius;
}
.orbe::before { background: radial-gradient(circle at 62% 68%, rgba(122, 178, 139, 0.65), rgba(46, 94, 64, 0) 68%); }
.orbe::after { background: radial-gradient(circle at 32% 26%, rgba(246, 241, 230, 0.40), rgba(46, 94, 64, 0) 62%); }

@keyframes orbe-respire {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.orbe.parle { animation: orbe-parle 1.7s ease-in-out infinite; }
.orbe.parle::before { opacity: 1; animation: orbe-onde-a 2.3s ease-in-out infinite; }
.orbe.parle::after { opacity: 1; animation: orbe-onde-b 3.1s ease-in-out infinite; }
.orbe.fort { animation: orbe-parle 0.9s ease-in-out infinite; }
.orbe.fort::before { opacity: 1; animation: orbe-onde-a 1.2s ease-in-out infinite; }
.orbe.fort::after { opacity: 1; animation: orbe-onde-b 1.6s ease-in-out infinite; }

@keyframes orbe-parle {
  0%, 100% { transform: scale(1); border-radius: 50%; }
  30% { transform: scale(1.06); border-radius: 46% 54% 52% 48% / 52% 47% 53% 48%; }
  65% { transform: scale(0.965); border-radius: 53% 47% 45% 55% / 48% 54% 46% 52%; }
}
@keyframes orbe-onde-a {
  0%, 100% { transform: rotate(0deg) scale(1); border-radius: 48% 52% 55% 45% / 55% 46% 54% 45%; }
  50% { transform: rotate(160deg) scale(1.1); border-radius: 55% 45% 42% 58% / 45% 57% 43% 55%; }
}
@keyframes orbe-onde-b {
  0%, 100% { transform: rotate(0deg) scale(1.02); border-radius: 52% 48% 44% 56% / 47% 55% 45% 53%; }
  50% { transform: rotate(-140deg) scale(0.94); border-radius: 44% 56% 58% 42% / 56% 44% 57% 43%; }
}

/* ---------- La phrase qui s'écrit ---------- */

.parole {
  min-height: 4.6em;
  max-width: 460px;
  font-size: 1.08rem;
  font-weight: 700;
  color: rgba(246, 241, 230, 0.92);
}
.parole .curseur {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--sable);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: curseur-cligne 1s steps(1) infinite;
}
@keyframes curseur-cligne { 50% { opacity: 0; } }

/* ---------- Boutons de l'accroche ---------- */

.bouton {
  display: inline-block;
  background: linear-gradient(120deg, var(--sapin-clair) 0%, var(--sapin) 45%, var(--sable-sombre) 130%);
  color: var(--sur-sapin);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 18px 34px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(21, 54, 34, 0.45);
  transition: box-shadow 250ms ease, transform 250ms ease;
}
.bouton:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 34px rgba(21, 54, 34, 0.5),
              0 0 34px rgba(217, 185, 111, 0.45);
  transform: translateY(-2px);
}
.bouton:active { transform: translateY(1px); }

#btn-ecoute {
  display: none; /* montré par le script si l'extrait audio existe */
  align-items: center;
  gap: 10px;
  background: none;
  border: 1.5px solid rgba(246, 241, 230, 0.4);
  color: var(--creme);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
#btn-ecoute.visible { display: inline-flex; }
#btn-ecoute:hover { border-color: var(--sable); box-shadow: 0 0 24px rgba(217, 185, 111, 0.3); }
#btn-ecoute svg { width: 14px; height: 14px; }

.defiler {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.5);
  text-decoration: none;
  animation: defiler-flotte 2.4s ease-in-out infinite;
}
@keyframes defiler-flotte {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ============ Sections claires ============ */

main { max-width: 640px; margin: 0 auto; padding: 0 22px; }
section { padding: 104px 0; }
section + section { border-top: 1px solid rgba(23, 25, 28, 0.07); }

h2 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--sable);
  margin-bottom: 14px;
}
p { color: var(--encre-douce); }

/* Apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Trois temps : cartes de verre ---------- */

.intro { margin: -6px 0 34px; max-width: 460px; }
.temps { display: grid; gap: 20px; }
.temp {
  background: rgba(255, 252, 245, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(23, 25, 28, 0.08);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 28px 24px 26px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.temp:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(23, 25, 28, 0.08), 0 16px 34px rgba(23, 25, 28, 0.14);
}
.temp .numero {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--sable-sombre);
  margin-bottom: 16px;
  transition: letter-spacing 250ms ease;
}
.temp:hover .numero { letter-spacing: 0.3em; }
.temp .picto { width: 34px; height: 34px; display: block; color: var(--sapin); margin-bottom: 16px; }
.temp h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 6px; }

/* ---------- Verbatims ---------- */

.verbatims { display: grid; gap: 52px; }
blockquote {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--encre);
  padding-left: 6px;
}
blockquote::before {
  content: "«";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  line-height: 0.65;
  color: var(--sable-sombre);
  margin-bottom: 12px;
}
.verbatims .reveal:nth-child(2) { transition-delay: 180ms; }
.verbatims .reveal:nth-child(3) { transition-delay: 360ms; }
.source { font-size: 0.85rem; color: var(--encre-douce); margin-top: 26px; }

/* ---------- Prix : carte sapin avec lueur ---------- */

.prix-carte {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #245b36 0%, var(--sapin) 50%, var(--sapin-sombre) 100%);
  color: var(--sur-sapin);
  border-radius: var(--rayon);
  box-shadow: 0 2px 4px rgba(21, 54, 34, 0.25), 0 20px 44px rgba(21, 54, 34, 0.35);
  text-align: center;
  padding: 48px 28px 40px;
  max-width: 440px;
  margin: 0 auto;
}
.prix-carte::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto;
  height: 90%;
  background: radial-gradient(circle at 50% 0%, rgba(217, 185, 111, 0.28), transparent 60%);
  pointer-events: none;
}
.prix-carte > * { position: relative; }
.prix-titre { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 18px; }
.prix-montant {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.prix-montant small {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0;
  margin-left: 6px;
}
.prix-benefices {
  list-style: none;
  text-align: left;
  margin: 30px auto 24px;
  max-width: 330px;
  display: grid;
  gap: 12px;
}
.prix-benefices li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.prix-benefices li::before { content: "✓"; flex: none; color: var(--sable); font-weight: 900; }
.prix-micro { font-size: 0.83rem; color: rgba(251, 248, 240, 0.75); }

/* ---------- Formulaire ---------- */

form { display: grid; gap: 18px; }
form .bouton { width: 100%; text-align: center; }
label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"] {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
  border: 1.5px solid rgba(23, 25, 28, 0.16);
  border-radius: var(--rayon-petit);
  background: var(--carte);
  color: var(--encre);
  box-shadow: var(--ombre);
}
input:focus { outline: 2.5px solid var(--sapin); outline-offset: 1px; }
#champs-facultatifs { border: none; background: none; }
#champs-facultatifs > summary {
  list-style: none;
  cursor: pointer;
  color: var(--sapin);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
#champs-facultatifs > summary::-webkit-details-marker { display: none; }
#champs-facultatifs[open] > summary { display: none; }
#champs-facultatifs > div { display: grid; gap: 18px; }
.consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--encre-douce);
}
.consentement input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--sapin); }
.consentement a { color: var(--sapin); font-weight: 700; }
.pot-de-miel { position: absolute; left: -9999px; opacity: 0; }
#form-message { font-weight: 700; min-height: 24px; }
#form-message.succes { color: var(--sapin); }
#form-message.erreur { color: #a33; }
#preuve-sociale { text-align: center; font-weight: 800; color: var(--sapin); margin-top: 18px; }

/* ---------- FAQ : accordéons animés ---------- */

.faq .question {
  background: var(--carte);
  border: 1px solid rgba(23, 25, 28, 0.07);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq .question > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: var(--encre);
  text-align: left;
  padding: 18px;
  min-height: 56px;
}
.faq .chevron {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--sapin);
  border-bottom: 2.5px solid var(--sapin);
  transform: rotate(45deg);
  transition: transform 300ms ease;
  margin-top: -4px;
}
.faq .question.ouverte .chevron { transform: rotate(225deg); margin-top: 4px; }
.faq .reponse-faq {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease;
}
.faq .question.ouverte .reponse-faq { grid-template-rows: 1fr; }
.faq .reponse-faq > p { overflow: hidden; padding: 0 18px; }
.faq .question.ouverte .reponse-faq > p { padding-bottom: 18px; }

/* ---------- Pied de page sombre ---------- */

footer {
  background: linear-gradient(180deg, var(--nuit) 0%, var(--sapin-sombre) 160%);
  color: rgba(246, 241, 230, 0.75);
  text-align: center;
  font-size: 0.85rem;
  padding: 56px 22px calc(56px + env(safe-area-inset-bottom));
  margin-top: 104px;
}
footer strong { color: var(--creme); }
footer a { color: var(--sable); font-weight: 700; }
.partenaire {
  margin: 22px auto 0;
  width: 180px;
  height: 64px;
  border: 1.5px dashed rgba(246, 241, 230, 0.3);
  border-radius: var(--rayon-petit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(246, 241, 230, 0.55);
}

@media (min-width: 560px) {
  .temps { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Moins de mouvement : tout se calme ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accroche::before, .orbe, .orbe::before, .orbe::after,
  .defiler, .parole .curseur { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .temp, .temp .numero, .bouton, .faq .chevron, .faq .reponse-faq { transition: none; }
}
