/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #10192B;
  --navy-deep: #0A1220;
  --navy-soft: #1C2A44;
  --orange: #F4712B;
  --orange-light: #FF9457;
  --cream: #FBF7F1;
  --cream-card: #FFFFFF;
  --ink: #1B2436;
  --ink-muted: #55607A;
  --line: #E7E1D8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -20px rgba(16, 25, 43, 0.25);
  --container: 1160px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fredoka', 'Inter', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(244, 113, 43, 0.6), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(244, 113, 43, 0.7), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: var(--navy);
  border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 20px -14px rgba(16,25,43,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,255,255,0.75); }
.btn-large { padding: 15px 30px; font-size: 1rem; }
.btn-small { padding: 10px 20px; font-size: 0.88rem; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 25, 43, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700; font-size: 1.25rem;
  color: #fff;
}
.logo-mark {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.logo-word {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem; font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--orange-light); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  cursor: pointer; padding: 10px 12px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top right, var(--navy-soft), var(--navy) 60%, var(--navy-deep));
  color: #fff;
  padding: 84px 0 100px;
  overflow: hidden;
}

/* ===================== WAVE DIVIDERS ===================== */
.wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-to-cream { color: var(--cream); }
.wave-to-navy { color: var(--navy-soft); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(244, 113, 43, 0.14);
  color: var(--orange-light);
  border: 1px solid rgba(244, 113, 43, 0.3);
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
/* Variante glass sombre : boutons ghost posés sur fond navy (header, hero) */
.site-header .btn-ghost, .hero .btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 8px 20px -14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.14);
}
.site-header .btn-ghost:hover, .hero .btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--orange-light);
  color: var(--orange-light);
}
.hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Mockup hero : aperçu de l'app plutôt qu'illustration abstraite */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone-mockup {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  z-index: 2;
  background: var(--navy-deep);
  border-radius: 42px;
  padding: 14px;
  box-shadow:
    0 40px 70px -25px rgba(0,0,0,0.55),
    inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-mockup { animation: none; }
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 22px;
  background: var(--navy-deep);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
}
.phone-slide {
  position: absolute;
  inset: 0;
  padding: 34px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: phone-slide-cycle 9s infinite;
}
.phone-slide-1 { animation-delay: 0s; }
.phone-slide-2 { animation-delay: 3s; }
.phone-slide-3 { animation-delay: 6s; }
@keyframes phone-slide-cycle {
  0%, 100% { opacity: 0; }
  3% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-slide { animation: none; opacity: 0; }
  .phone-slide-1 { opacity: 1; }
}

/* Points cliquables : passent le carrousel en mode manuel (l'utilisateur
   choisit l'écran) au lieu du défilement automatique. */
.phone-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.phone-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.phone-dot:hover { background: rgba(255,255,255,0.5); }
.phone-dot.is-active { background: var(--orange-light); transform: scale(1.15); }

.phone-screen.is-manual .phone-slide { animation: none; opacity: 0; }
.phone-screen.is-manual .phone-slide.is-active { opacity: 1; }
.phone-topbar { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.phone-greeting { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.phone-date { font-size: 0.68rem; color: var(--ink-muted); }
.phone-progress { margin-bottom: 6px; }
.phone-progress-track { width: 100%; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.phone-progress-fill { width: 60%; height: 100%; background: var(--orange); border-radius: 4px; }
.phone-progress-label { display: block; margin-top: 5px; font-size: 0.65rem; color: var(--ink-muted); }
.phone-task {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.phone-task-icon {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.phone-task-title { flex: 1; font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.phone-task-points { font-size: 0.65rem; font-weight: 600; color: #B4780A; }
.phone-task-status {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  background: var(--line); color: var(--ink-muted);
}
.phone-task-status-done { background: #4ECDC4; color: #fff; }
.phone-task-done .phone-task-title { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--line); }
.phone-family { display: flex; align-items: center; margin: 4px 0; }
.phone-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem; font-weight: 700;
  border: 2px solid var(--cream);
  margin-left: -8px;
}
.phone-avatar:first-child { margin-left: 0; }
.phone-avatar-inline { margin-left: 0; flex: none; }
.phone-family-label { margin-left: 8px; font-size: 0.62rem; color: var(--ink-muted); }

/* Slide 2 : classement */
.phone-rank {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 10px;
}
.phone-rank-1 { border-color: #F59E0B55; background: #FBBF521a; }
.phone-rank-num { width: 14px; font-size: 0.7rem; font-weight: 700; color: var(--ink-muted); text-align: center; }
.phone-rank-1 .phone-rank-num { color: #B4780A; }
.phone-rank-name { flex: 1; font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.phone-rank-pts { font-size: 0.68rem; font-weight: 700; color: #B4780A; }

/* Slide 3 : temps famille */
.phone-explainer { font-size: 0.66rem; color: var(--ink-muted); line-height: 1.4; margin-bottom: 2px; }
.phone-timer-card {
  display: flex; align-items: center; gap: 8px;
  background: #FF6B3512;
  border: 1px solid #FF6B3530;
  border-radius: 12px;
  padding: 8px 10px;
}
.phone-timer-copy { flex: 1; }
.phone-timer-name { font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.phone-timer-label { font-size: 0.6rem; color: var(--ink-muted); }
.phone-timer-count { font-size: 0.78rem; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.phone-emergency {
  margin-top: auto;
  text-align: center;
  font-size: 0.64rem; font-weight: 700; color: #fff;
  background: #DC2626;
  border-radius: 10px;
  padding: 8px;
}
.phone-reward {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 12px;
  padding: 10px;
}
.phone-reward-icon { font-size: 1.1rem; }
.phone-reward-copy { flex: 1; }
.phone-reward-title { font-size: 0.68rem; font-weight: 700; color: #fff; }
.phone-reward-cost { font-size: 0.6rem; color: rgba(255,255,255,0.8); }
.phone-reward-btn {
  font-size: 0.62rem; font-weight: 700; color: var(--orange);
  background: #fff; padding: 5px 9px; border-radius: 999px;
}

.blob {
  position: absolute; border-radius: 50%; filter: blur(50px);
  opacity: 0.35; z-index: 1;
}
.blob-1 { width: 260px; height: 260px; background: var(--orange); top: -40px; right: -20px; }
.blob-2 { width: 200px; height: 200px; background: #5B7FFF; bottom: -30px; left: 10px; opacity: 0.2; }

/* ===================== PROBLEM / SOLUTION ===================== */
.problem { padding: 96px 0; }
.problem h2 { text-align: center; margin-bottom: 48px; }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.problem-col {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.problem-col-solution {
  background: var(--navy);
  border-color: var(--navy);
}
.col-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.col-label-muted { color: var(--ink-muted); }
.col-label-accent { color: var(--orange-light); }
.problem-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.problem-col .problem-list li::before {
  content: "✕"; position: absolute; left: 0; top: 10px;
  color: #C9463A; font-size: 0.8rem; font-weight: 700;
}
.problem-col-solution .problem-list li {
  color: rgba(255,255,255,0.82);
}
.problem-col-solution .problem-list li::before {
  content: "✓"; color: var(--orange-light);
}

/* ===================== FEATURES ===================== */
.features { position: relative; padding: 96px 0; background: var(--cream-card); border-top: 1px solid var(--line); }
.section-eyebrow {
  color: var(--orange);
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.features h2 { max-width: 640px; margin-bottom: 48px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon-orange { background: linear-gradient(135deg, var(--orange-light), var(--orange)); }
.feature-icon-amber { background: linear-gradient(135deg, #FBBF52, #F59E0B); }
.feature-icon-teal { background: linear-gradient(135deg, #6EE0D8, #2A9D93); }
.feature-icon-blue { background: linear-gradient(135deg, #8AA0FF, #5B7FFF); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--ink-muted); font-size: 0.93rem; }

/* ===================== DIFFERENCE ===================== */
.difference {
  position: relative;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  color: #fff;
  padding: 100px 0;
}
.difference-inner { max-width: 780px; text-align: center; margin: 0 auto; }
.section-eyebrow-light { color: var(--orange-light); }
.difference h2 { margin-bottom: 26px; }
.difference-text {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.difference-text strong { color: var(--orange-light); }
.difference-text-muted { color: rgba(255,255,255,0.55); font-size: 1rem; }

/* ===================== PRICING ===================== */
.pricing { padding: 90px 0; background: var(--cream-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-head { max-width: 640px; text-align: center; margin: 0 auto; }
.pricing h2 { margin-bottom: 16px; }
.pricing-text { color: var(--ink-muted); font-size: 1.02rem; }

.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.pricing-card-featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}
.pricing-card-badge {
  align-self: flex-start;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pricing-card-name {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.pricing-card-price {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy);
}
.pricing-card-period { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1rem; color: var(--ink-muted); }
.pricing-card-equiv { font-size: 0.85rem; color: var(--ink-muted); margin-top: 4px; }
.pricing-card-savings {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803D;
  background: #E9F7EE;
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-card-features {
  list-style: none;
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pricing-card-features li {
  font-size: 0.88rem;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.pricing-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.pricing-card-cta { margin-top: auto; text-align: center; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pricing-card-featured { transform: none; }
}

/* ===================== TELECHARGEMENT / QR CODE ===================== */
.download { position: relative; padding: 90px 0; background: var(--cream-card); border-top: 1px solid var(--line); text-align: center; }
.download-inner { max-width: 560px; margin: 0 auto; }
.download h2 { margin-bottom: 14px; }
.download-text { color: var(--ink-muted); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); max-width: 260px; }
.footer-heading { color: #fff; font-weight: 600; font-size: 0.88rem; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--orange-light); }
.footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { padding: 22px 0; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ===================== SCROLL REVEAL ===================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 36px; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Texte centré sur mobile — lecture plus naturelle qu'aligné à gauche
     sur un écran étroit, comme le reste du hero. */
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .phone-mockup { width: min(230px, 62vw); }
  .blob-1 { width: 160px; height: 160px; }
  .blob-2 { width: 130px; height: 130px; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  /* Les deux boutons du header restent visibles (comme sur desktop) mais
     en version compacte, sinon logo + 2 boutons + burger ne tiennent pas
     sur un écran étroit. Wordmark masqué, l'icône seule suffit ici. */
  .header-inner { flex-wrap: wrap; row-gap: 8px; }
  .site-header .logo-word { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-small { padding: 8px 14px; font-size: 0.78rem; }

  .main-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(16, 25, 43, 0.82);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    padding: 20px 24px 26px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.is-open a { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
