/* Page d'accueil publique (avant l'app) : fond blanc, aérée, couleurs et police de l'app. */
body:not(.in-app):not(.gated) {
  background: #fff;
}
#app > .lp-top,
#app > .lp,
#app > .lp-foot {
  --g: #27402f;
  --ink: #1f3326;
  --muted: #5f6b5c;
  --soft: #f4f6ef;
  --line: #e6ebe0;
  --lime: #e2e580;
  color: var(--ink);
}
.lp-wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.lp-narrow {
  max-width: 760px;
}
.lp-center {
  text-align: center;
}
.lp h1,
.lp h2,
.lp h3,
.lp p {
  margin: 0;
}
.lp h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.lp h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.2;
}
.lp-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px !important;
}

/* ---------- barre du haut */
.lp-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.lp-top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.lp-logo img {
  display: block;
  height: 34px;
  width: auto;
}
.lp-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.lp-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.8;
}
.lp-nav a:hover {
  opacity: 1;
}
.lp-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-link {
  background: none;
  border: 0;
  padding: 6px 2px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 51, 38, 0.25);
  text-underline-offset: 4px;
}
.lp-link-light {
  color: rgba(255, 255, 255, 0.85);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

/* ---------- boutons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  border: 0;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.lp-btn:hover {
  transform: translateY(-1px);
}
.lp-btn-lime {
  background: var(--lime);
  color: var(--g);
  box-shadow: 0 10px 24px rgba(160, 165, 40, 0.28);
}
.lp-btn-dark {
  background: var(--g);
  color: #fff;
}
.lp-btn-ghost {
  background: var(--soft);
  color: var(--ink);
}
.lp-btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

/* ---------- accroche */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 96px;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 26px !important;
}
.lp-hero h1 {
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.lp-hl {
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lp-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 24px !important;
  max-width: 540px;
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.lp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.lp-proof strong {
  color: var(--ink);
  font-size: 18px;
  margin-right: 4px;
}
.lp-hero-art {
  position: relative;
  aspect-ratio: 1 / 1.08;
}
.lp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.lp-blob-a {
  inset: 8% 6% 18% 10%;
  background: radial-gradient(circle at 40% 40%, rgba(226, 229, 128, 0.75), rgba(226, 229, 128, 0) 68%);
}
.lp-blob-b {
  inset: 34% -4% 0 26%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 226, 190, 0.7), rgba(196, 226, 190, 0) 66%);
}
.lp-shot {
  position: absolute;
  display: block;
  height: auto;
  background: #fff;
  border-radius: 26px;
  box-shadow:
    0 30px 70px rgba(39, 64, 47, 0.14),
    0 3px 10px rgba(39, 64, 47, 0.06);
}
.lp-hero-card {
  width: 84%;
  left: 8%;
  top: 22%;
  border-radius: 30px;
}
.lp-hero-stats {
  width: 76%;
  left: 18%;
  top: 70%;
  padding: 10px;
}
.lp-plate {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(39, 64, 47, 0.22));
}
.lp-hero-p1 {
  width: 30%;
  right: -4%;
  top: 2%;
}
.lp-hero-p2 {
  width: 24%;
  left: -6%;
  top: 62%;
}
.lp-bubble {
  position: absolute;
  left: 4%;
  top: 6%;
  background: #fff;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 20px 50px rgba(39, 64, 47, 0.14);
  white-space: nowrap;
}
.lp-caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--g);
  margin-left: 4px;
  vertical-align: -3px;
  animation: lp-blink 1.1s steps(1) infinite;
}
.lp-toast {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--g);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 18px 40px rgba(39, 64, 47, 0.28);
  white-space: nowrap;
}
.lp-toast b {
  background: var(--lime);
  color: var(--g);
  border-radius: 999px;
  padding: 1px 10px;
}
.lp-tick {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--lime);
  position: relative;
}
.lp-tick::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--g);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.lp-hero-toast {
  right: 0;
  bottom: 4%;
}

/* ---------- histoire */
.lp-story {
  padding: 40px 0 120px;
}
.lp-story h2 {
  margin-top: 0;
}
.lp-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.lp-tile {
  background: var(--soft);
  border-radius: 30px;
  padding: 34px 30px;
}
.lp-tile p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px !important;
  font-size: 16px;
}
.lp-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 22px;
}
.lp-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--g);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- étapes */
.lp-how {
  padding: 40px 0 60px;
}
.lp-step {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
}
.lp-step-rev .lp-step-copy {
  order: 2;
}
.lp-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--g);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 22px;
}
.lp-step h3 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.lp-step-copy p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 16px !important;
}
.lp-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.lp-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  font-size: 16px;
}
.lp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--lime);
}
.lp-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--g);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.lp-stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 40px;
  overflow: hidden;
}
.lp-tint-lime {
  background: radial-gradient(circle at 30% 20%, #f3f5c6, #f6f8ee 70%);
}
.lp-tint-mint {
  background: radial-gradient(circle at 70% 30%, #dcedd6, #f4f7f1 70%);
}
.lp-tint-sand {
  background: radial-gradient(circle at 30% 70%, #f6ecd3, #f8f6ef 70%);
}
.lp-tint-peach {
  background: radial-gradient(circle at 60% 30%, #f9e1d1, #faf5f0 70%);
}
.lp-tint-dark {
  background: radial-gradient(circle at 30% 20%, #35553f, #1d2e23 75%);
}
/* placement des captures dans chaque scène */
.lp-s1a {
  width: 74%;
  left: 6%;
  top: 8%;
  padding: 8px;
}
.lp-s1b {
  width: 80%;
  left: 14%;
  top: 30%;
  padding: 10px;
}
.lp-s1c {
  width: 70%;
  left: 8%;
  top: 76%;
  padding: 8px;
}
.lp-s2a {
  width: 80%;
  left: 10%;
  top: 6%;
  padding: 10px;
}
.lp-s2b {
  width: 74%;
  left: 6%;
  top: 31%;
}
.lp-s2c {
  width: 74%;
  left: 20%;
  top: 61%;
}
.lp-list-card {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8%;
  background: #fff;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(39, 64, 47, 0.14);
}
.lp-list-card img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-rows {
  margin-top: 6px;
}
.lp-row {
  position: relative;
}
.lp-row.is-done::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}
.lp-row.is-done::after {
  content: "";
  position: absolute;
  left: 2.6%;
  top: 50%;
  width: 4.6%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 25%;
  background: var(--g)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e580' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 72% no-repeat;
}
.lp-scan {
  position: absolute;
  left: 6%;
  top: 6%;
  width: 46%;
  aspect-ratio: 1 / 0.82;
  background: #0f1611;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.lp-scan-frame {
  position: relative;
  width: 72%;
  aspect-ratio: 2 / 1;
  border: 3px solid var(--lime);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lp-barcode {
  width: 70%;
  height: 62%;
  background: #fff repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px)
    content-box;
  padding: 8px 10px;
  border-radius: 6px;
}
.lp-beam {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 3px;
  background: var(--lime);
  box-shadow: 0 0 14px 3px rgba(226, 229, 128, 0.8);
  animation: lp-beam 1.8s ease-in-out infinite alternate;
}
.lp-s4a {
  width: 76%;
  right: 6%;
  top: 47%;
  padding: 6px;
}
.lp-s4b {
  width: 76%;
  right: 6%;
  top: 59%;
  padding: 8px;
}
.lp-s4t {
  right: 6%;
  top: 24%;
}
.lp-s5a {
  width: 52%;
  left: 5%;
  top: 6%;
}
.lp-s5b {
  width: 62%;
  right: 5%;
  top: 44%;
  padding: 8px;
  z-index: 1;
}

.lp-s6a {
  width: 80%;
  left: 10%;
  top: 6%;
  padding: 10px;
}
.lp-s6b {
  width: 66%;
  left: 6%;
  top: 50%;
  padding: 8px;
}
.lp-s6c {
  width: 70%;
  right: 6%;
  top: 70%;
  border-radius: 30px;
}

/* ---------- fonctionnalités */
.lp-features {
  padding: 100px 0;
  background: linear-gradient(#fff, var(--soft) 30%, var(--soft) 70%, #fff);
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.lp-feat {
  background: #fff;
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: 0 1px 0 var(--line);
}
.lp-feat h3 {
  font-size: 18px;
}
.lp-feat p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 8px !important;
}

/* ---------- recettes */
.lp-recipes {
  padding: 110px 0 60px;
  overflow: hidden;
}
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lp-recipe-facts {
  display: grid;
  gap: 14px;
}
.lp-recipe-facts .lp-shot {
  position: static;
  width: 100%;
  padding: 8px;
}
.lp-marquee {
  margin-top: 64px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: lp-scroll 60s linear infinite;
}
.lp-track img {
  width: 210px;
  height: auto;
  align-self: flex-start;
  border-radius: 24px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(39, 64, 47, 0.1);
}

/* ---------- régimes, ustensiles, magasins */
.lp-fit {
  padding: 60px 0;
}
.lp-fit-card {
  background: var(--soft);
  border-radius: 40px;
  padding: 56px;
}
.lp-fit-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 34px;
}
.lp-fit h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-chips span {
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- FAQ */
.lp-faq {
  padding: 90px 0;
}
.lp-faq h2 {
  margin-bottom: 30px;
}
.lp-faq details {
  border-bottom: 1px solid var(--line);
}
.lp-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.2s;
}
.lp-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.lp-faq details p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  padding: 0 44px 24px 0;
}

/* ---------- appel final */
.lp-final {
  padding: 20px 0 90px;
}
.lp-final-card {
  position: relative;
  overflow: hidden;
  background: var(--g);
  color: #fff;
  border-radius: 44px;
  padding: 96px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lp-final-card h2 {
  color: #fff;
  position: relative;
}
.lp-final-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-width: 460px;
  position: relative;
}
.lp-final-card .lp-btn {
  margin-top: 12px;
  position: relative;
}
.lp-final-p1 {
  width: 260px;
  left: -60px;
  top: -40px;
}
.lp-final-p2 {
  width: 230px;
  right: -50px;
  bottom: -50px;
}

/* ---------- pied de page */
.lp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding: 36px 0 60px;
  border-top: 1px solid #e6ebe0;
  color: #5f6b5c;
  font-size: 15px;
}
.lp-foot img {
  height: 28px;
  width: auto;
}
.lp-foot p {
  margin: 0;
}
.lp-foot-links {
  flex-wrap: wrap;
  display: flex;
  gap: 20px;
  margin-left: auto;
}

/* ---------- mouvements doux */
.lp-f1 {
  animation: lp-float 7s ease-in-out infinite;
}
.lp-f2 {
  animation: lp-float 8s ease-in-out -2s infinite;
}
.lp-f3 {
  animation: lp-float 9s ease-in-out -4s infinite;
}
.lp-spin {
  animation: lp-spin 40s linear infinite;
}
.lp-spin-r {
  animation: lp-spin 46s linear infinite reverse;
}
@keyframes lp-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes lp-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes lp-blink {
  50% {
    opacity: 0;
  }
}
@keyframes lp-beam {
  from {
    top: 18%;
  }
  to {
    top: 80%;
  }
}
@keyframes lp-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-f1,
  .lp-f2,
  .lp-f3,
  .lp-spin,
  .lp-spin-r,
  .lp-track,
  .lp-beam,
  .lp-caret {
    animation: none;
  }
}

/* ---------- tablette et téléphone */
@media (max-width: 960px) {
  .lp-nav {
    display: none;
  }
  .lp-top-actions {
    margin-left: auto;
  }
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 28px 0 72px;
  }
  .lp-hero-art {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .lp-trio,
  .lp-split,
  .lp-fit-cols {
    grid-template-columns: 1fr;
  }
  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-step {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }
  .lp-step-rev .lp-step-copy {
    order: 0;
  }
  .lp-stage {
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .lp-top-in {
    height: 62px;
    gap: 12px;
  }
  .lp-logo img {
    height: 28px;
  }
  .lp-top-actions .lp-link {
    display: none;
  }
  .lp-hero h1 {
    font-size: 44px;
  }
  .lp-lead {
    font-size: 18px;
  }
  .lp-cta-row .lp-btn {
    width: 100%;
  }
  .lp-bubble {
    font-size: 14px;
    padding: 12px 18px;
  }
  .lp-toast {
    font-size: 13px;
    padding: 10px 16px;
  }
  .lp-grid {
    grid-template-columns: 1fr;
  }
  .lp-stage {
    border-radius: 30px;
    aspect-ratio: 1 / 1.05;
  }
  .lp-fit-card {
    padding: 36px 24px;
    border-radius: 30px;
  }
  .lp-final-card {
    padding: 72px 22px;
    border-radius: 32px;
  }
  .lp-final-p1 {
    width: 170px;
    left: -60px;
    top: -50px;
  }
  .lp-final-p2 {
    width: 140px;
    right: -60px;
    bottom: -80px;
  }
  .lp-scan span {
    font-size: 12px;
    text-align: center;
    padding: 0 8px;
  }
  .lp-foot-links {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .lp-story,
  .lp-recipes {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .lp-features,
  .lp-faq {
    padding: 70px 0;
  }
  .lp-track img {
    width: 160px;
  }
  .lp-scan {
    width: 40%;
  }
  .lp-s4t {
    top: 39%;
    right: 6%;
  }
  .lp-s4a {
    top: 51%;
  }
  .lp-s4b {
    top: 62%;
  }
}

/* App installée ou lien direct vers l'app : la page publique ne s'affiche jamais, même un instant. */
@media (display-mode: standalone) {
  #app > .lp-top,
  #app > .lp,
  #app > .lp-foot {
    display: none;
  }
}
#app:target > .lp-top,
#app:target > .lp,
#app:target > .lp-foot {
  display: none;
}
