/* ============================================================
   Bambino — Landing
   Aligné sur le design system de l'app mobile :
   - Palette exacte (mobile/src/theme/colors.ts)
   - EB Garamond comme dans l'app (logo + UI)
   - Border-radius 10/16/24, ombres douces
   - Sobre, chaleureux, app-native
   ============================================================ */

:root {
  /* Palette identique à mobile/src/theme/colors.ts */
  --primary:        #8A6851;
  --primary-dark:   #6B4F3D;
  --primary-light:  #F5EDE7;
  --secondary:      #D8BF9F;
  --secondary-light:#F0E6D8;

  --bg:             #EEE6D9;
  --surface:        #FFFFFF;
  --border:         #D9CEBC;
  --border-light:   #E8DED0;
  --disabled:       #C4B8A8;

  --text:           #1A1A1A;
  --text-secondary: #5C4A3A;
  --text-tertiary:  #8A7A6A;
  --text-inverse:   #FFFFFF;

  --success:        #4CAF50;
  --warning:        #FF9800;

  /* Typo — EB Garamond comme l'app */
  --serif:          'EB Garamond', Georgia, 'Times New Roman', serif;

  /* Espacements (alignés sur mobile/src/theme/spacing.ts) */
  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;

  /* Radius identiques à l'app */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Ombres douces */
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.04), 0 1px 1px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 22, 18, 0.06), 0 2px 4px rgba(26, 22, 18, 0.04);
  --shadow-lg: 0 18px 40px rgba(26, 22, 18, 0.10), 0 6px 14px rgba(26, 22, 18, 0.06);

  --max: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem;
  background: var(--primary); color: var(--text-inverse);
  padding: var(--sm) var(--md);
  border-radius: var(--r-md);
  z-index: 100;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  padding-top: var(--md);
  padding-bottom: var(--md);
}
.header .brand img { height: 28px; width: auto; }
.nav {
  display: flex;
  gap: var(--lg);
  align-items: center;
}
.nav a {
  color: var(--text-secondary);
  font-size: 16px;
}
.nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
/* Halo subtil derrière le mockup */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--primary-light) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-style: italic;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--lg);
  border: 1px solid var(--border-light);
}
.eyebrow .pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 var(--lg);
  color: var(--text);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 38ch;
  margin: 0 0 var(--xl);
  line-height: 1.55;
  text-wrap: pretty;
}

/* CTAs — fidèles aux boutons de l'app */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-disabled {
  background: var(--disabled);
  color: var(--text-inverse);
  cursor: not-allowed;
  opacity: 0.85;
}
.btn-disabled:hover { transform: none; box-shadow: none; }
.btn .glyph { font-size: 18px; line-height: 1; }

.hero .note {
  margin-top: var(--lg);
  font-size: 14px;
  font-style: italic;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
}
.hero .note .live {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ---------- Mockup téléphone ---------- */
.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
}
/* Wrapper non transformé : porte les ombres et le scale au hover */
.phone-stage .phone-wrap {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  filter:
    drop-shadow(0 24px 32px rgba(26, 22, 18, 0.22))
    drop-shadow(0 10px 16px rgba(26, 22, 18, 0.18))
    drop-shadow(0 4px 6px rgba(26, 22, 18, 0.12));
  transform: scale(1);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1),
              filter    .4s cubic-bezier(.22, 1, .36, 1);
}
.phone-wrap:hover {
  transform: scale(1.01);
  filter:
    drop-shadow(0 32px 40px rgba(26, 22, 18, 0.26))
    drop-shadow(0 14px 20px rgba(26, 22, 18, 0.20))
    drop-shadow(0 5px 8px rgba(26, 22, 18, 0.14));
}
.phone {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  background: var(--text);
  border-radius: 44px;
  padding: 10px;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #FFFFFF;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .phone-stage .phone-wrap { max-width: 220px; }
  .phone { border-radius: 34px; padding: 8px; }
  .phone-screen { border-radius: 26px; }
}

/* Petite étiquette flottante "nouveauté" sur le téléphone */
.phone-tag {
  position: absolute;
  top: 24px;
  right: -16px;
  background: var(--primary);
  color: var(--text-inverse);
  font-style: italic;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  z-index: 4;
}

/* ---------- Section générique ---------- */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-head .label {
  font-style: italic;
  color: var(--primary);
  font-size: 16px;
  margin: 0 0 var(--sm);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 var(--md);
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.section-head p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Étapes : "Comment ça marche" ---------- */
.steps {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}
@media (min-width: 760px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: var(--xl); }
}
.step {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--xl);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--primary);
  margin: 0 0 var(--md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-style: normal;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 var(--sm);
  letter-spacing: -0.005em;
}
.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- Reporters : famille participe ---------- */
.reporters .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .reporters .wrap { grid-template-columns: 1fr 1fr; }
}
.reporters .copy h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 var(--md);
  line-height: 1.1;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.reporters .copy h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.reporters .copy p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 0 var(--lg);
  max-width: 42ch;
}
.reporters .roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm);
}
.reporters .roles li {
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-style: italic;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
}
.reporters .roles li::before { content: "+ "; color: var(--primary); font-style: normal; font-weight: 700; }

/* Avatar circle visual */
.circle-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.circle-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border);
  border-radius: 50%;
  opacity: 0.7;
}
.circle-stage::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px dashed var(--border);
  border-radius: 50%;
  opacity: 0.4;
}
.avatar {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: var(--serif);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.avatar:hover { transform: scale(1.06); border-color: var(--primary); }
.avatar .em { font-size: 28px; line-height: 1; }
.avatar .lab {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-style: italic;
}
.avatar.center {
  width: 120px;
  height: 120px;
  background: var(--primary);
  border-color: var(--primary-dark);
  color: var(--text-inverse);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.avatar.center:hover { transform: translate(-50%, -50%) scale(1.04); }
.avatar.center .em { font-size: 36px; }
.avatar.center .lab { color: var(--primary-light); font-style: normal; font-weight: 700; }

/* Positions des avatars autour */
.avatar.a1 { top: 4%;  left: 50%; transform: translateX(-50%); }
.avatar.a2 { top: 28%; right: 0; }
.avatar.a3 { bottom: 28%; right: 0; }
.avatar.a4 { bottom: 4%; left: 50%; transform: translateX(-50%); }
.avatar.a5 { bottom: 28%; left: 0; }
.avatar.a6 { top: 28%; left: 0; }

@media (max-width: 560px) {
  .avatar { width: 64px; height: 64px; }
  .avatar .em { font-size: 22px; }
  .avatar.center { width: 86px; height: 86px; }
  .avatar.center .em { font-size: 28px; }
}

/* ---------- Bandeau pull-quote ---------- */
.quote {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.quote blockquote {
  margin: 0 auto;
  max-width: 800px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--text);
  text-wrap: balance;
}
.quote blockquote .mark {
  color: var(--primary);
  font-style: normal;
}
.quote cite {
  display: block;
  margin-top: var(--md);
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--primary);
  color: var(--text-inverse);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(255, 255, 255, 0.07), transparent 50%);
  pointer-events: none;
}
.cta-final .wrap { position: relative; }
.cta-final .label {
  font-style: italic;
  color: var(--primary-light);
  font-size: 16px;
  margin: 0 0 var(--md);
  display: inline-block;
}
.cta-final h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 var(--md);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.cta-final h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--secondary-light);
}
.cta-final p.lede {
  color: var(--primary-light);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 auto var(--xl);
  max-width: 48ch;
}
.cta-final .cta-row { justify-content: center; }
.cta-final .btn-disabled {
  background: rgba(255, 255, 255, 0.18);
  color: var(--primary-light);
  border-color: rgba(255, 255, 255, 0.20);
}
.cta-final .btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
}
.cta-final .btn-ghost:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
  border-color: var(--secondary-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: var(--secondary-light);
  padding: var(--xl) 0 var(--lg);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--md) var(--lg);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--lg);
}
.footer a {
  color: var(--secondary-light);
  font-size: 15px;
  font-style: italic;
}
.footer a:hover { color: var(--surface); text-decoration: underline; }
.footer .copy {
  color: var(--text-tertiary);
  font-size: 14px;
  font-style: italic;
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .18s; }
  .reveal.d3 { transition-delay: .28s; }
  .reveal.d4 { transition-delay: .38s; }
}
