/* Posture : landing statique. Structure et rythme repris du template « Erly » du design kit,
   identité reprise de l'app (src/theme/tokens.ts). */

@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/DMSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/DMSans_700Bold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 800; font-display: swap; src: url("/assets/fonts/DMSans_800ExtraBold.ttf") format("truetype"); }

:root {
  --bg: #ffffff;
  --surface: #f6f8f7;
  --surface-accent: #e8faee;
  --accent: #22a85a;
  --accent-deep: #116638;
  --ink: #101914;
  --ink-soft: #55625a;      /* 6,4:1 sur blanc : AA pour le texte courant */
  --line: #e3e8e5;
  --chip: #eff2f0;
  --max: 1300px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", system-ui, -apple-system, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .wrap { padding: 0 48px; } }

/* Navigation */
.nav { padding: 16px 0; }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; justify-self: start; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: none; gap: 32px; justify-self: center; }
.nav-links a { font-size: 14px; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { justify-self: end; }
@media (max-width: 639px) { .nav .nav-cta { display: none; } }
.badge img { height: 40px; width: auto; }
.badge { display: inline-block; transition: opacity .15s; }
.badge:hover { opacity: .8; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Rythme vertical d'Erly : 192 px entre les grandes sections */
.sections > * + * { margin-top: 192px; }
@media (max-width: 767px) { .sections > * + * { margin-top: 120px; } }

/* Héros */
.hero { position: relative; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto 0; height: 820px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 10%, rgba(34,168,90,.08) 0%, rgba(255,255,255,0) 70%); }
.hero .wrap { padding-top: 8px; padding-bottom: 32px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } .hero .wrap { padding-top: 0; padding-bottom: 112px; } }

.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px;
  font-size: 13px; font-weight: 700; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16,25,20,.05); }
.pill i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-accent); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
@media (min-width: 640px) { .pill { font-size: 14px; } }

h1 { text-wrap: balance; margin: 24px 0 0; font-weight: 800; font-size: 48px; line-height: 1.02; letter-spacing: -0.04em; }
@media (min-width: 640px) { h1 { font-size: 60px; } }
@media (min-width: 1024px) { h1 { font-size: 68px; } }
.lead { margin: 24px 0 0; max-width: 32rem; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 640px) { .lead { font-size: 20px; } }
.hero .badge { margin-top: 32px; }
.hero .badge img { height: 56px; }

.phones { position: relative; height: 440px; width: 100%; max-width: 560px; margin: 0 auto; }
@media (min-width: 640px) { .phones { height: 660px; } }
@media (min-width: 1024px) { .phones { margin: 0 0 0 auto; } }
.phones::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(34,168,90,.10); filter: blur(64px); }
.phones img { position: absolute; top: 50%; width: 200px; filter: drop-shadow(0 25px 25px rgba(16,25,20,.15)); }
.phones .p1 { left: 0; transform: translateY(-50%) rotate(-8deg); margin-top: 40px; }
.phones .p2 { right: 0; transform: translateY(-50%) rotate(6deg); }
@media (min-width: 640px) { .phones img { width: 320px; } .phones .p1 { margin-top: 64px; } }

/* En-têtes de section */
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.tag { display: inline-block; border-radius: 999px; background: var(--chip); padding: 4px 12px; font-size: 12px; font-weight: 700; color: var(--accent-deep); box-shadow: 0 0 0 1px var(--line); }
h2 { text-wrap: balance; margin: 24px 0 0; font-weight: 800; font-size: 36px; line-height: 1.08; letter-spacing: -0.035em; }
@media (min-width: 640px) { h2 { font-size: 48px; } }
.section-head p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* Étapes */
.steps { margin-top: 64px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .steps { margin-top: 80px; grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step-media .num { position: absolute; left: 20px; top: 20px; z-index: 1; border-radius: 999px; background: var(--ink); color: #fff; padding: 4px 10px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.step h3 { margin: 24px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.step p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* Fonctionnalités */
.features { margin-top: 64px; display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { margin-top: 80px; grid-template-columns: repeat(4, 1fr); } }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-accent); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #cdeed9; }
.ico svg { width: 20px; height: 20px; color: var(--accent-deep); }
.feature h3 { margin: 20px 0 0; font-size: 18px; font-weight: 700; }
.feature p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 48rem; margin: 0 auto; padding: 0 24px; }
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 16px; font-size: 17px; font-weight: 700; transition: background .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface); }
.faq summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-soft); transition: transform .3s ease-out; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 4px 16px 28px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 640px) { .faq summary { font-size: 18px; } }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 48px 0; }
@media (min-width: 640px) { footer { padding: 64px 0; } }
.foot { display: grid; gap: 40px; }
@media (min-width: 768px) { .foot { grid-template-columns: 1fr auto; align-items: start; gap: 64px; } }
.foot-brand p { margin: 14px 0 0; max-width: 18rem; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.foot .foot-brand .badge { display: block; width: max-content; margin-top: 20px; }
.foot .badge img { height: 48px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, auto); gap: 32px 56px; }
@media (min-width: 768px) { .foot-cols { grid-template-columns: repeat(3, auto); } }
.foot h3 { margin: 0; font-size: 15px; font-weight: 700; }
.foot ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot li a { font-size: 14px; color: var(--ink-soft); }
.foot li a:hover { color: var(--ink); }
.copy { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Pages légales */
.legal { max-width: 46rem; margin: 0 auto; padding: 48px 24px 96px; }
.legal h1 { font-size: 44px; }
.legal .updated { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.legal h2 { font-size: 24px; margin-top: 44px; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: #2e3a33; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal .box { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--surface-accent); }
.legal .box p { margin: 0; color: var(--accent-deep); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
