/*
 * Nestor — Landing page
 * Style Sanctuary : warm, organic, family-friendly avec touche pro Linear
 * Palette : #F5F1EA bg, #FFFDF9 card, #00649b primary, #35322f text
 * Fonts : Plus Jakarta Sans (titles), Be Vietnam Pro (body)
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f1ea;
  color: #35322f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────
 * Typography
 * ───────────────────────────────────────── */
h1, h2, h3, .section-title, .feature__title, .how__title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #35322f;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 64px;
}

/* ─────────────────────────────────────────
 * Header
 * ───────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(53, 50, 47, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #35322f;
}

.logo__img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo__text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: #55524f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms ease;
}

.nav__link:hover {
  color: #00649b;
}

@media (max-width: 720px) {
  .nav__link:not(.btn) { display: none; }
}

/* ─────────────────────────────────────────
 * Buttons
 * ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: #00649b;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 100, 155, 0.25);
}

.btn--primary:hover {
  background: #004f7d;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 100, 155, 0.35);
}

.btn--secondary {
  background: transparent;
  color: #35322f;
  border: 1.5px solid rgba(53, 50, 47, 0.15);
}

.btn--secondary:hover {
  border-color: #35322f;
  background: rgba(53, 50, 47, 0.04);
}

.btn--ghost {
  background: transparent;
  color: #35322f;
  border: 1px solid rgba(53, 50, 47, 0.12);
  padding: 8px 16px;
  font-size: 14px;
}

.btn--ghost:hover {
  background: #ffffff;
  border-color: rgba(53, 50, 47, 0.2);
}

/* ─────────────────────────────────────────
 * Hero
 * ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 100, 155, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #00649b;
  border: 1px solid rgba(0, 100, 155, 0.15);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.hero__title--accent {
  background: linear-gradient(135deg, #00649b 0%, #00a3a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00649b;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: #55524f;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__cta { justify-content: center; }
}

.hero__trust {
  font-size: 13px;
  color: #7a7570;
}

/* ─────────────────────────────────────────
 * Phone frame mockup — PORTRAIT, contour BD ligne claire Hergé
 * Réduit pour tenir une section par viewport (~85vh).
 * ───────────────────────────────────────── */
.phone-frame {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 390 / 844;
  max-height: 80vh;
  margin: 0 auto;
  background: #1a1817;
  border-radius: 44px;
  padding: 11px;
  /* Contour épais BD + ombre cartoon (offset, pas blur fade) */
  border: 3px solid #1a1817;
  box-shadow:
    8px 8px 0 #1a1817,
    0 24px 60px rgba(0, 0, 0, 0.18);
  transform: perspective(1400px) rotateY(-4deg);
  transition: transform 600ms ease;
}

.phone-frame:hover {
  transform: perspective(1400px) rotateY(0deg) translateY(-12px) scale(1.02);
}

.phone-frame--floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: perspective(1400px) rotateY(-4deg) translateY(0px); }
  50% { transform: perspective(1400px) rotateY(-4deg) translateY(-12px); }
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a1817;
  border-radius: 14px;
  z-index: 2;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 32px;
  background: #f5f1ea;
  object-fit: cover;
  object-position: top;
}

/* Phone wrapper qui contient mockup + élément animé (swipe card, curseur, etc.) */
.phone-wrapper {
  position: relative;
  display: inline-block;
  perspective: 1200px;
}

/* Reverse phone frame on alternated features */
.feature--reverse .phone-frame {
  transform: perspective(1200px) rotateY(6deg);
}

.feature--reverse .phone-frame:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-12px) scale(1.02);
}

/* ─────────────────────────────────────────
 * Animation : Swipe card (hero meal suggestions)
 * Une carte fantôme qui glisse vers la droite en boucle
 * ───────────────────────────────────────── */
.swipe-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 38%;
  background: linear-gradient(135deg, rgba(0, 100, 155, 0.96), rgba(0, 163, 163, 0.96));
  border-radius: 24px;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none;
  box-shadow: 0 24px 60px rgba(0, 100, 155, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 16px;
  animation: swipeCard 5s ease-in-out infinite;
  opacity: 0;
  z-index: 5;
  overflow: hidden;
}

.swipe-overlay__emoji {
  font-size: 56px;
  margin-bottom: 12px;
}

.swipe-overlay__label {
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes swipeCard {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  55% {
    opacity: 1;
    transform: translate(0%, -50%) rotate(12deg);
  }
  75% {
    opacity: 0;
    transform: translate(50%, -50%) rotate(20deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* ─────────────────────────────────────────
 * Animation : Tap pointer (curseur qui clique)
 * ───────────────────────────────────────── */
.tap-pointer {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 10;
}

.tap-pointer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 100, 155, 0.4);
  border: 2px solid rgba(0, 100, 155, 0.85);
  animation: tapPulse 2.5s ease-out infinite;
}

.tap-pointer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #00649b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px white, 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes tapPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Tap pointer désactivé sur Budget / Calendrier / Santé — remplacé par
 * des floating emojis Sanctuary autour du phone (style "majordome BD"
 * Steve 2026-05-04 19h45) */
.tap-pointer--budget,
.tap-pointer--calendar,
.tap-pointer--health {
  display: none;
}

/* ─────────────────────────────────────────
 * Floating emojis autour des phones — style "majordome BD"
 * Container clampé au phone-wrapper pour ne JAMAIS sortir du cadre
 * sur petit écran (Steve : "les emojis sortent du cadre").
 * ───────────────────────────────────────── */
.floating-emojis {
  position: absolute;
  inset: -24px;
  pointer-events: none;
  z-index: 1;
  contain: layout;
}

.floating-emoji {
  position: absolute;
  font-size: clamp(28px, 4.2vw, 44px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  animation: floatEmoji 8s ease-in-out infinite;
}

/* Positions sur les BORDS du wrapper uniquement (jamais sur le phone)
 * pour que les emojis ressemblent à des stickers BD collés autour. */
.floating-emoji:nth-child(1) { top: 4%; right: 0%; animation-delay: 0s; }
.floating-emoji:nth-child(2) { top: 38%; right: 0%; animation-delay: 2.5s; }
.floating-emoji:nth-child(3) { bottom: 8%; right: 0%; animation-delay: 5s; }
.floating-emoji:nth-child(4) { top: 18%; left: 0%; animation-delay: 1.5s; }
.floating-emoji:nth-child(5) { bottom: 22%; left: 0%; animation-delay: 3.8s; }

/* Pour les features reverse, mirror sur les axes opposés */
.feature--reverse .floating-emoji:nth-child(1) { left: 0%; right: auto; }
.feature--reverse .floating-emoji:nth-child(2) { left: 0%; right: auto; }
.feature--reverse .floating-emoji:nth-child(3) { left: 0%; right: auto; }
.feature--reverse .floating-emoji:nth-child(4) { right: 0%; left: auto; }
.feature--reverse .floating-emoji:nth-child(5) { right: 0%; left: auto; }

/* Mobile : réduire à 2 emojis discrets pour éviter le bruit visuel */
@media (max-width: 700px) {
  .floating-emojis {
    inset: -8px;
  }
  .floating-emoji {
    font-size: 26px;
  }
  .floating-emoji:nth-child(n+3) {
    display: none;
  }
}

@keyframes floatEmoji {
  0%, 100% {
    transform: translate(0, 0) rotate(-5deg);
  }
  50% {
    transform: translate(8px, -16px) rotate(5deg);
  }
}

/* ─────────────────────────────────────────
 * Mascotte Majordome (Hero)
 * ───────────────────────────────────────── */
.mascot {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, #00649b, #00a3a3);
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 100, 155, 0.35);
  animation: mascotBounce 4s ease-in-out infinite;
  z-index: 5;
}

.mascot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00649b, #00a3a3);
  opacity: 0.3;
  filter: blur(12px);
  z-index: -1;
  animation: mascotGlow 4s ease-in-out infinite;
}

@keyframes mascotBounce {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  25% {
    transform: translateY(-8px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
  75% {
    transform: translateY(-4px) rotate(0deg);
  }
}

@keyframes mascotGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* Speech bubble du majordome */
.mascot-bubble {
  position: absolute;
  top: -90px;
  right: -40px;
  background: white;
  padding: 12px 18px;
  border-radius: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #35322f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  z-index: 6;
  animation: bubbleAppear 4s ease-in-out infinite;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
}

@keyframes bubbleAppear {
  0%, 30%, 100% { opacity: 0; transform: translateY(10px) scale(0.95); }
  10%, 20% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────────────────────────────────
 * Gradient mesh background pour features
 * ───────────────────────────────────────── */
.feature {
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 100, 155, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  pointer-events: none;
  z-index: 0;
}

.feature:nth-of-type(1)::before { right: -150px; }
.feature:nth-of-type(2)::before { left: -150px; background: radial-gradient(circle, rgba(0, 163, 163, 0.1) 0%, transparent 70%); }
.feature:nth-of-type(3)::before { right: -150px; background: radial-gradient(circle, rgba(255, 175, 80, 0.08) 0%, transparent 70%); }
.feature:nth-of-type(4)::before { left: -150px; background: radial-gradient(circle, rgba(120, 90, 200, 0.08) 0%, transparent 70%); }
.feature:nth-of-type(5)::before { right: -150px; background: radial-gradient(circle, rgba(255, 100, 130, 0.08) 0%, transparent 70%); }
.feature:nth-of-type(6)::before { left: -150px; background: radial-gradient(circle, rgba(100, 200, 130, 0.1) 0%, transparent 70%); }

.feature__inner {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
 * Animation : Checkbox qui se coche en succession (Liste de courses)
 * ───────────────────────────────────────── */
.checklist-overlay {
  position: absolute;
  top: 32%;
  left: 16%;
  right: 16%;
  pointer-events: none;
  z-index: 5;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  opacity: 0.5;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  color: #35322f;
  background: rgba(255, 253, 249, 0.85);
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.checklist-item__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #00649b;
  position: relative;
  flex-shrink: 0;
  transition: background 300ms ease;
}

.checklist-item.is-checked .checklist-item__check {
  background: #00649b;
}

.checklist-item.is-checked .checklist-item__check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.checklist-item.is-checked {
  opacity: 1;
}

.checklist-item.is-checked .checklist-item__label {
  text-decoration: line-through;
  color: #7a7570;
}

/* Animation séquentielle de cochage */
.checklist-item:nth-child(1) {
  animation: checkAppear 8s ease-in-out infinite 0s;
}
.checklist-item:nth-child(2) {
  animation: checkAppear 8s ease-in-out infinite 1s;
}
.checklist-item:nth-child(3) {
  animation: checkAppear 8s ease-in-out infinite 2s;
}
.checklist-item:nth-child(4) {
  animation: checkAppear 8s ease-in-out infinite 3s;
}

@keyframes checkAppear {
  0%, 12%, 90%, 100% { background: rgba(255, 253, 249, 0.85); }
  20%, 80% { background: rgba(0, 100, 155, 0.12); }
}

/* ─────────────────────────────────────────
 * Manifesto
 * ───────────────────────────────────────── */
.manifesto {
  padding: 80px 0;
  text-align: center;
}

.manifesto__quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.4;
  color: #35322f;
  max-width: 800px;
  margin: 0 auto;
}

.manifesto__caption {
  margin-top: 24px;
  color: #7a7570;
  font-size: 15px;
  font-style: italic;
}

/* ─────────────────────────────────────────
 * Features (alternating layout)
 * ───────────────────────────────────────── */
.features {
  padding: 80px 0;
}

.feature {
  padding: 64px 0;
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature--reverse .feature__inner {
    direction: ltr;
  }
}

.feature--reverse .feature__inner {
  direction: rtl;
}

.feature--reverse .feature__content {
  direction: ltr;
}

.feature--reverse .feature__visual {
  direction: ltr;
}

.feature__tag {
  display: inline-block;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #00649b;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 100, 155, 0.15);
}

.feature__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.feature__description {
  font-size: 17px;
  color: #55524f;
  margin-bottom: 24px;
  line-height: 1.7;
}

.feature__bullets {
  list-style: none;
  padding: 0;
}

.feature__bullets li {
  font-size: 15px;
  color: #35322f;
  margin-bottom: 8px;
  padding-left: 0;
}

/* ─────────────────────────────────────────
 * How it works
 * ───────────────────────────────────────── */
.how {
  padding: 120px 0;
  background: #fffdf9;
  border-radius: 48px 48px 0 0;
  margin-top: 60px;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .how__steps { grid-template-columns: 1fr; }
}

.how__step {
  text-align: center;
  padding: 32px 24px;
}

.how__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00649b, #00a3a3);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.how__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.how__desc {
  color: #55524f;
  font-size: 15px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
 * FAQ
 * ───────────────────────────────────────── */
.faq {
  padding: 120px 0;
  background: #fffdf9;
}

.faq .container {
  max-width: 720px;
}

.faq__item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid rgba(53, 50, 47, 0.06);
  transition: all 200ms ease;
}

.faq__item:hover {
  border-color: rgba(0, 100, 155, 0.2);
}

.faq__item summary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #35322f;
}

.faq__item summary::after {
  content: '+';
  font-size: 24px;
  color: #00649b;
  transition: transform 300ms ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  margin-top: 16px;
  color: #55524f;
  font-size: 15px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
 * Waitlist CTA
 * ───────────────────────────────────────── */
.waitlist {
  padding: 120px 0;
  background: linear-gradient(135deg, #00649b 0%, #00a3a3 100%);
  color: white;
  border-radius: 48px 48px 0 0;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.waitlist__inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.waitlist__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.waitlist__desc {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
}

.waitlist__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}

.waitlist__input {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  border-radius: 9999px;
  border: none;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  background: white;
  color: #35322f;
  outline: none;
}

.waitlist__form .btn {
  background: #35322f;
  color: white;
  padding: 16px 28px;
}

.waitlist__form .btn:hover {
  background: #1a1817;
}

.waitlist__hint {
  font-size: 14px;
  opacity: 0.8;
}

.waitlist__hint a {
  color: white;
  text-decoration: underline;
}

/* ─────────────────────────────────────────
 * Footer
 * ───────────────────────────────────────── */
.footer {
  padding: 64px 0;
  background: #1a1817;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer .logo__text {
  color: white;
}

.footer__tagline {
  font-size: 15px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.footer__legal {
  font-size: 13px;
  opacity: 0.6;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer__legal a:hover {
  color: white;
}

/* ─────────────────────────────────────────
 * Scroll-triggered reveal animations
 * ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--right {
  transform: translateY(0) translateX(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Stagger animations for repeated elements */
.feature.reveal {
  transition-delay: 100ms;
}

.how__step.reveal:nth-child(1) { transition-delay: 0ms; }
.how__step.reveal:nth-child(2) { transition-delay: 150ms; }
.how__step.reveal:nth-child(3) { transition-delay: 300ms; }

.faq__item.reveal:nth-child(1) { transition-delay: 0ms; }
.faq__item.reveal:nth-child(2) { transition-delay: 80ms; }
.faq__item.reveal:nth-child(3) { transition-delay: 160ms; }
.faq__item.reveal:nth-child(4) { transition-delay: 240ms; }
.faq__item.reveal:nth-child(5) { transition-delay: 320ms; }
.faq__item.reveal:nth-child(6) { transition-delay: 400ms; }

/* ─────────────────────────────────────────
 * OCR animation : flash photo + aliments qui sortent du ticket vers le stock
 * ───────────────────────────────────────── */
.ocr-flash {
  position: absolute;
  inset: 14px;
  border-radius: 42px;
  background: white;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
  animation: ocrFlash 5s ease-in-out infinite;
}

@keyframes ocrFlash {
  0%, 30% { opacity: 0; }
  32% { opacity: 0.95; }
  40%, 100% { opacity: 0; }
}

.ocr-flying-foods {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.ocr-food {
  position: absolute;
  top: 38%;
  left: 50%;
  font-size: 36px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: ocrFlyFood 5s ease-out infinite;
}

.ocr-food:nth-child(1) { animation-delay: 0.4s; --fly-x: -120px; --fly-y: 320px; }
.ocr-food:nth-child(2) { animation-delay: 0.55s; --fly-x: -60px; --fly-y: 360px; }
.ocr-food:nth-child(3) { animation-delay: 0.7s; --fly-x: 0px; --fly-y: 380px; }
.ocr-food:nth-child(4) { animation-delay: 0.85s; --fly-x: 60px; --fly-y: 360px; }
.ocr-food:nth-child(5) { animation-delay: 1s; --fly-x: 120px; --fly-y: 320px; }
.ocr-food:nth-child(6) { animation-delay: 1.15s; --fly-x: 30px; --fly-y: 400px; }

@keyframes ocrFlyFood {
  0%, 35% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  42% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4) rotate(0deg);
  }
  70% {
    opacity: 1;
    transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y) * 0.7)) scale(1.1) rotate(180deg);
  }
  92%, 100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) scale(0.5) rotate(360deg);
  }
}

/* ─────────────────────────────────────────
 * Style BD ligne claire — Hergé / Tintin
 * Halftone dots, action lines, speech bubbles, comic borders
 * ───────────────────────────────────────── */

/* Trame halftone radial gradient (points BD) */
.halftone-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 24, 23, 0.15) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.halftone-bg--soft {
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(0, 100, 155, 0.18) 1px, transparent 1.2px);
  background-size: 14px 14px;
}

.hero { position: relative; overflow: hidden; }
.manifesto { position: relative; overflow: hidden; }
.how { position: relative; overflow: hidden; }
.waitlist { position: relative; overflow: hidden; }
/* Empêche tout débordement (emojis, action lines, mascotte) hors de chaque feature */
.features { overflow: hidden; }
.feature { position: relative; overflow: hidden; }
.feature__visual { position: relative; }
/* phone-wrapper : on garde overflow:visible pour les emojis et la mascotte
 * mais les positions internes sont clampées, et la section parent fait barrage */
.phone-wrapper { max-width: 100%; }

.hero > .container,
.manifesto > .container,
.how > .container,
.waitlist > .container {
  position: relative;
  z-index: 1;
}

/* Lignes d'action BD (rayons qui partent du phone) */
.action-lines {
  position: absolute;
  width: 320px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    transparent 60%,
    transparent 60.5%
  );
  opacity: 0.4;
  z-index: 0;
}
.action-lines::before,
.action-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 0deg,
      #1a1817 0deg 1.2deg,
      transparent 1.2deg 12deg
    );
  -webkit-mask-image: radial-gradient(closest-side, transparent 38%, black 42%, black 70%, transparent 75%);
  mask-image: radial-gradient(closest-side, transparent 38%, black 42%, black 70%, transparent 75%);
  animation: actionLinesSpin 30s linear infinite;
}
.action-lines::after {
  animation-direction: reverse;
  animation-duration: 45s;
  opacity: 0.5;
}
.action-lines--top-right {
  top: 10%;
  right: -60px;
}

@keyframes actionLinesSpin {
  to { transform: rotate(360deg); }
}

/* Speech bubble BD (manifesto + autres) */
.speech-bubble {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 48px 40px;
  background: #FFFDF9;
  border: 3px solid #1a1817;
  border-radius: 32px;
  box-shadow: 8px 8px 0 #1a1817;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 80px;
  width: 50px;
  height: 36px;
  background: #FFFDF9;
  border-right: 3px solid #1a1817;
  border-bottom: 3px solid #1a1817;
  transform: skewY(-12deg) rotate(8deg);
  z-index: -1;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 92px;
  width: 28px;
  height: 22px;
  background: #FFFDF9;
  z-index: 1;
}

/* Boutons style comic — bordure noire épaisse + ombre offset */
.btn--primary,
.btn--secondary {
  border: 3px solid #1a1817 !important;
  box-shadow: 5px 5px 0 #1a1817 !important;
  transition: transform 120ms ease, box-shadow 120ms ease !important;
}
.btn--primary:hover,
.btn--secondary:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 7px 7px 0 #1a1817 !important;
}
.btn--primary:active,
.btn--secondary:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0 #1a1817 !important;
}

/* Badge BD (hero) */
.badge {
  border: 2.5px solid #1a1817 !important;
  box-shadow: 3px 3px 0 #1a1817;
  background: #FFFDF9 !important;
  font-weight: 700;
}

/* Tags features — pill avec contour BD */
.feature__tag {
  border: 2.5px solid #1a1817 !important;
  box-shadow: 3px 3px 0 #1a1817;
  font-weight: 700 !important;
  background: #FFFDF9 !important;
  color: #1a1817 !important;
}

/* Comment ça marche : numéros style cartoon (cercle bordure noire + offset) */
.how__num {
  border: 3px solid #1a1817 !important;
  box-shadow: 5px 5px 0 #1a1817;
  background: linear-gradient(135deg, #00649b, #00a3a3) !important;
  color: white !important;
  font-weight: 800 !important;
}

.how__step {
  border: 3px solid #1a1817 !important;
  border-radius: 24px !important;
  box-shadow: 6px 6px 0 #1a1817 !important;
  background: #FFFDF9 !important;
  padding: 32px 28px !important;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.how__step:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #1a1817 !important;
}

/* FAQ items style BD */
.faq__item {
  border: 2.5px solid #1a1817 !important;
  border-radius: 18px !important;
  box-shadow: 4px 4px 0 #1a1817 !important;
  background: #FFFDF9 !important;
  margin-bottom: 16px;
  padding: 4px 8px;
}

/* Form waitlist BD */
.waitlist__input {
  border: 3px solid #1a1817 !important;
  box-shadow: 4px 4px 0 #1a1817;
  background: #FFFDF9;
}

/* Mascotte BD : grosse bordure noire */
.mascot {
  border: 3px solid #1a1817 !important;
  box-shadow: 6px 6px 0 #1a1817 !important;
}

.mascot-bubble {
  border: 2.5px solid #1a1817 !important;
  box-shadow: 4px 4px 0 #1a1817;
  font-weight: 700;
}

/* ─────────────────────────────────────────
 * Responsive — clamp visuel BD pour ≤900px
 * Évite les débordements mascotte / action lines / emojis
 * ───────────────────────────────────────── */
@media (max-width: 900px) {
  /* Phone reduced + recadré au container */
  .phone-frame {
    width: min(280px, 72vw);
    border-radius: 36px;
    padding: 9px;
    box-shadow: 6px 6px 0 #1a1817, 0 16px 40px rgba(0, 0, 0, 0.15);
  }
  .phone-frame::before {
    top: 14px;
    width: 76px;
    height: 18px;
  }
  .phone-frame__screen {
    border-radius: 26px;
  }

  /* Mascotte plus petite + clampée DANS le wrapper */
  .mascot {
    width: 80px;
    height: 80px;
    font-size: 44px;
    top: -16px;
    right: -8px;
    box-shadow: 4px 4px 0 #1a1817 !important;
  }
  .mascot-bubble {
    top: -56px;
    right: -8px;
    font-size: 11px;
    padding: 8px 12px;
    box-shadow: 3px 3px 0 #1a1817;
  }

  /* Action lines BD : réduites pour ne pas envahir le titre */
  .action-lines {
    width: 180px;
    height: 180px;
    opacity: 0.18;
  }
  .action-lines--top-right {
    top: 5%;
    right: -80px;
  }

  /* Speech bubble manifesto : padding réduit */
  .speech-bubble {
    padding: 24px 24px 28px;
    border-radius: 24px;
    box-shadow: 5px 5px 0 #1a1817;
  }

  /* Hero stack : titre plus serré, image en-dessous, plus de chevauchement */
  .hero__inner {
    grid-template-columns: 1fr !important;
  }
  .hero__visual {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .phone-frame {
    width: min(240px, 70vw);
  }
  .mascot {
    width: 64px;
    height: 64px;
    font-size: 36px;
  }
  .mascot-bubble {
    display: none; /* trop juste sur petit écran, le mascot suffit */
  }
  .action-lines {
    display: none; /* anti-bruit visuel */
  }
  .swipe-overlay {
    font-size: 11px;
  }
  .swipe-overlay__emoji {
    font-size: 36px;
  }
  .speech-bubble {
    padding: 20px 18px 24px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
