/* Little Jungle — site vitrine. Couleurs et formes reprises de l'app. */
:root {
  --bg: #EDF1E6;
  --bg-deep: #E2E9D8;
  --card: #FBFCF7;
  --paper: #F6F8F0;
  --ink: #15281D;
  --muted: #5F6F60;
  --line: #D3DCC8;
  --forest: #173A2A;
  --forest-2: #1F4A33;
  --moss: #4D7A49;
  --sage: #C9D8BD;
  --sage-soft: #DCE6D2;
  --water: #2F72B0;
  --water-soft: #DCE9F4;
  --pollen: #E1B13D;
  --pollen-soft: #FBEFC4;
  --pollen-ink: #2A2205;
  --rust: #B4532F;
  --radius: 28px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px -24px rgba(23, 58, 42, .35);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--moss); }
:focus-visible { outline: 3px solid var(--pollen); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, .round { font-family: var(--round); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; max-width: 36rem; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 241, 230, .78);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--round); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; opacity: .8; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--forest); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pollen); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-family: var(--round); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-pollen { background: var(--pollen); color: var(--pollen-ink); box-shadow: 0 10px 26px -12px rgba(225, 177, 61, .9); }
.btn-pollen:hover { color: var(--pollen-ink); box-shadow: 0 16px 30px -12px rgba(225, 177, 61, .95); }
.btn-forest { background: var(--forest); color: #EAF2E4; }
.btn-forest:hover { color: #fff; background: var(--forest-2); }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid rgba(23, 58, 42, .25); }
.btn-ghost:hover { border-color: var(--forest); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0d1611; color: #fff; text-decoration: none;
  padding: 11px 22px 11px 18px; border-radius: 16px;
  transition: transform .2s, background .2s;
}
.store:hover { color: #fff; background: #000; transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store strong { display: block; font-family: var(--round); font-size: 1.12rem; line-height: 1.15; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- Héros ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--forest); }
.hero h1 .soft { color: var(--moss); }
.hero .lead { margin-top: 22px; }
.hero .cta-row { margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-art svg.scene { width: 100%; height: 100%; overflow: visible; }

.float-card {
  position: absolute;
  background: rgba(251, 252, 247, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 20px; padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.35;
  display: flex; gap: 12px; align-items: center;
}
.float-card b { font-family: var(--round); }
.float-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.fc-notif { top: 7%; left: -4%; max-width: 290px; }
.fc-notif .ic { background: var(--forest); }
.fc-ai { bottom: 15%; right: -3%; }
.fc-ai .ic { background: var(--pollen-soft); }
.fc-dose { bottom: 2%; left: 6%; }
.fc-dose .ic { background: var(--water-soft); }

/* ---------- Bandeau de promesses ---------- */
.promises { padding: 30px 0 10px; }
.promises ul { list-style: none; margin: 0; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.promises li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.promises li span { font-size: 1.3rem; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0; }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.section-head p { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* Étapes (séquence réelle : 1, 2, 3) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest); color: #EAF2E4; font-family: var(--round); font-weight: 800; font-size: 1.25rem; margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Fonctionnalités : téléphone + texte, en alternance */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 50px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-media { order: 2; }
.feature-text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--forest); }
.feature-text > p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 31rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23173A2A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.tag { display: inline-block; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--pollen-soft); color: #7A5A06; margin-bottom: 16px; }
.tag.free { background: var(--sage-soft); color: var(--forest); }

.feature-media { position: relative; display: grid; place-items: center; }
.feature-media::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--sage) 0%, rgba(201, 216, 189, 0) 70%);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(300px, 78vw);
  border-radius: 46px; padding: 11px;
  background: #0E1712;
  box-shadow: 0 40px 80px -30px rgba(23, 58, 42, .55), inset 0 0 0 2px #2a3a30;
}
.phone img { width: 100%; height: auto; border-radius: 36px; background: var(--sage-soft); aspect-ratio: 1170 / 2532; object-fit: cover; }

/* Petits atouts */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.extra { background: var(--card); border-radius: 22px; padding: 24px; }
.extra .emo { font-size: 1.7rem; }
.extra h3 { font-size: 1.12rem; margin: 10px 0 6px; }
.extra p { color: var(--muted); font-size: .97rem; }
.extra.dark { background: var(--forest); color: #EAF2E4; }
.extra.dark p { color: #B9CFB2; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.plan h3 { font-size: 1.4rem; }
.price { margin: 18px 0 4px; font-family: var(--round); font-weight: 800; font-size: 2.6rem; color: var(--forest); line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: .95rem; min-height: 2.8em; }
.plan .ticks { margin-bottom: 28px; font-size: .97rem; }
.plan .btn { margin-top: auto; }
.plan.best { background: var(--forest); color: #EAF2E4; transform: translateY(-10px); }
.plan.best .price, .plan.best h3 { color: #fff; }
.plan.best .price small, .plan.best .sub { color: #B9CFB2; }
.plan.best .ticks li::before { background-color: var(--pollen); }
.ribbon { align-self: flex-start; font-size: .8rem; font-weight: 800; background: var(--pollen); color: var(--pollen-ink); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.fine { margin-top: 26px; font-size: .88rem; color: var(--muted); max-width: 60rem; }

table.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare th { font-family: var(--round); background: var(--sage-soft); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--moss); font-weight: 800; }
.no { color: #A8B3A6; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details { background: var(--card); border-radius: 20px; padding: 0 24px; transition: background .2s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-family: var(--round); font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--moss); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }
.faq-group { margin-top: 46px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 18px; }

/* Bandeau final */
.final {
  position: relative; overflow: hidden;
  background: var(--forest); color: #EAF2E4;
  border-radius: 40px; padding: 80px 40px; text-align: center;
}
.final h2 { color: #fff; }
.final p { color: #B9CFB2; margin: 18px auto 34px; max-width: 34rem; font-size: 1.15rem; }
.final .cta-row { justify-content: center; }
.final .store { background: #fff; color: var(--ink); }
.final .store:hover { background: var(--pollen); color: var(--pollen-ink); }
.final .leaf { position: absolute; opacity: .16; pointer-events: none; }

/* Pages de texte (concept, confidentialité…) */
.page-hero { padding: 80px 0 30px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--forest); }
.page-hero .lead { margin-top: 18px; }
.prose { max-width: 46rem; padding-bottom: 90px; }
.prose h2 { font-size: 1.6rem; margin: 46px 0 14px; color: var(--forest); }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: #2c3d31; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose .box { background: var(--card); border-radius: 22px; padding: 22px 24px; margin-top: 20px; }

/* Concept : schéma du calcul */
.formula { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.formula div { background: var(--card); border-radius: 20px; padding: 18px; }
.formula b { display: block; font-family: var(--round); margin: 6px 0 4px; }
.formula span { font-size: .92rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
footer { padding: 70px 0 40px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot h4 { font-family: var(--round); margin: 0 0 12px; font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--forest); }
.foot .brand { margin-bottom: 12px; }
.legal { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--muted); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.phone.reveal { transform: translateY(60px) scale(.94) rotate(-2deg); }
.feature:nth-of-type(even) .phone.reveal { transform: translateY(60px) scale(.94) rotate(2deg); }
.phone.reveal.in { transform: none; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.fade-in { opacity: 0; animation: fade 1s ease forwards; animation-delay: var(--d, .6s); }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bob { animation: bob 6s ease-in-out infinite; }
.bob.b2 { animation-duration: 7s; animation-delay: -2s; }
.bob.b3 { animation-duration: 8s; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.sway.s2 { animation-duration: 9s; animation-delay: -3s; }
@keyframes sway { 50% { transform: rotate(2.4deg); } }
.drop { animation: drop 3.2s cubic-bezier(.5, 0, .9, .6) infinite; transform-box: fill-box; }
@keyframes drop { 0% { transform: translateY(-30px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(150px); opacity: 1; } 78%, 100% { transform: translateY(160px); opacity: 0; } }
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3.2s ease-out infinite; opacity: 0; }
@keyframes ripple { 0%, 70% { transform: scale(.2); opacity: 0; } 74% { opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .phone.reveal, .hero h1 .w, .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .steps, .plans, .extras { grid-template-columns: 1fr; }
  .plan.best { transform: none; }
  .formula { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--card); padding: 8px 20px 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav .btn-sm { display: none; }
  .fc-notif { left: 0; top: 0; }
  .fc-ai { right: 0; bottom: 6%; }
  .fc-dose { display: none; }
  .compare th, .compare td { padding: 12px 10px; font-size: .9rem; }
  .final { padding: 60px 22px; border-radius: 30px; }
  .foot { grid-template-columns: 1fr; }
}
