/* Mobyia · page produit. Couleurs de l'app (Assets.xcassets), un seul vert, aucun dégradé. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
}

:root {
  --page: #f6f7f2;
  --card: #ffffff;
  --ink: #16201b;
  --muted: #5b655f;
  --faint: #8a938d;
  --line: #e1e4dc;
  --accent: #244e40;
  --accent-ink: #ffffff;
  --soft: #e7efdf;
  --band: #244e40;
  --band-ink: #f4f7f2;
  --band-muted: rgba(244, 247, 242, 0.72);
  --band-line: rgba(244, 247, 242, 0.16);
  --phone: #121614;
  --shadow: 0 40px 80px -40px rgba(22, 32, 27, 0.45), 0 18px 36px -24px rgba(22, 32, 27, 0.3);
  --radius: 18px;
  --gutter: 24px;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111713;
    --card: #19211c;
    --ink: #eceeea;
    --muted: #a3aca6;
    --faint: #78817b;
    --line: #27302a;
    --accent: #acd6bb;
    --accent-ink: #10231a;
    --soft: #1f2b22;
    --band: #19211c;
    --band-ink: #eceeea;
    --band-muted: #a3aca6;
    --band-line: #2c3630;
    --phone: #050706;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 18px 36px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--page); text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Typographie */

h1, h2, h3 { font-weight: 650; color: var(--ink); text-wrap: balance; }

h1 {
  font-size: clamp(2.75rem, 5.4vw + 0.6rem, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

h2 {
  font-size: clamp(2rem, 3vw + 0.9rem, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.036em;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 620;
}

.soft { color: var(--faint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

.lede, .section-lede { color: var(--muted); text-wrap: pretty; }
.lede { margin-top: 28px; font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); line-height: 1.55; max-width: 34em; }
.section-lede { margin-top: 20px; font-size: 1.1875rem; max-width: 36em; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Boutons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.button:hover { opacity: 0.92; }
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-small { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.9375rem; }

/* En-tête */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.025em; text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.mark-tile { fill: #244e40; }
.mark-glyph { stroke: #ffffff; }
.mark-dot { fill: #ffffff; }

.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.top-nav a:hover { color: var(--ink); }

/* Hero */

.hero { padding: clamp(40px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; }
.hero-copy { padding-bottom: 32px; }

.hero-visual { position: relative; height: 640px; }
.hero-visual .phone { position: absolute; }
.phone-front { width: 300px; right: 40px; top: 24px; z-index: 2; }
.phone-back { width: 262px; right: 290px; top: 96px; z-index: 1; opacity: 0.9; }

.networks-line {
  margin-top: 56px; padding: 26px 0 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9375rem;
}
.networks-line strong { color: var(--ink); font-weight: 600; }

/* Formulaire de la liste d'attente */

.signup { margin-top: 40px; max-width: 520px; }
.signup-row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup-row:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.0625rem; outline: none;
}
.signup input::placeholder { color: var(--faint); }
.signup-note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); min-height: 1.6em; }
.signup-note a { color: inherit; text-underline-offset: 3px; }
.signup.is-error .signup-row { border-color: #b3412e; }
.signup.is-error .signup-note { color: #b3412e; }
.signup.is-done .signup-row { display: none; }
.signup.is-done .signup-note { margin-top: 0; font-size: 1rem; color: var(--ink); }
.done-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 6px; }
.done-title::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700;
}
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-color-scheme: dark) {
  .signup.is-error .signup-row { border-color: #e08a78; }
  .signup.is-error .signup-note { color: #e08a78; }
}

/* Téléphone */

.phone {
  position: relative;
  aspect-ratio: 1170 / 2532;
  padding: 2.4%;
  border-radius: 14.5% / 6.7%;
  background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12.6% / 5.8%;
  background: #f5f5f1;
}
.phone::after {
  content: ""; position: absolute; left: 50%; top: 3.4%;
  width: 29%; height: 3.3%; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

/* Sections */

.section { padding: clamp(88px, 11vw, 152px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }

/* Phrases */

.phrases { padding-bottom: clamp(64px, 8vw, 112px); }
.phrase-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.phrase {
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.bubble {
  align-self: flex-end;
  max-width: 100%;
  padding: 10px 16px; border-radius: 18px 18px 6px 18px;
  background: var(--soft); color: var(--ink);
  font-size: 1.0625rem; font-weight: 520; letter-spacing: -0.01em;
}
.bubble::before { content: "«\202F"; color: var(--faint); }
.bubble::after { content: "\202F»"; color: var(--faint); }
.reading { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reading div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.reading div:last-child { border-bottom: 0; padding-bottom: 0; }
.reading dt { color: var(--muted); }
.reading dd { font-weight: 560; text-align: right; font-variant-numeric: tabular-nums; }

/* Fonctionnement : la ligne et ses arrêts, comme le « m » du logo */

.story { padding-top: clamp(64px, 8vw, 112px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
.story-media { position: relative; }
.phone-story { position: sticky; top: max(96px, calc(50vh - 325px)); width: 300px; margin: 0 auto; }
.phone-story img {
  position: absolute; inset: 2.4%; width: 95.2%; height: 95.2%;
  opacity: 0; transition: opacity 0.5s ease;
}
.phone-story img.is-active { opacity: 1; }

.line { position: relative; --rail: 7px; --lead: 22vh; --dot: 0.65rem; }
.stop {
  position: relative;
  min-height: 62vh;
  padding: var(--lead) 0 0 64px;
}
.stop::before {
  content: ""; position: absolute; left: var(--rail); top: 0; bottom: 0; width: 2px;
  background: var(--line);
}
.stop:first-child::before { top: calc(var(--lead) + var(--dot)); }
.stop-last::before { bottom: auto; height: calc(var(--lead) + var(--dot)); }
.stop::after {
  content: ""; position: absolute; left: calc(var(--rail) - 7px); top: calc(var(--lead) + var(--dot) - 8px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--page); border: 2px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.stop:first-child::after { background: var(--faint); border-color: var(--faint); }
.stop-last::after { border-width: 4px; }
.stop.is-active::after { border-color: var(--accent); }
.stop.is-active:not(.stop-last)::after { background: var(--accent); }
.stop-label {
  margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); transition: color 0.3s ease;
}
.stop.is-active .stop-label { color: var(--accent); }
.stop h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); letter-spacing: -0.03em; line-height: 1.15; max-width: 16em; }
.stop p:not(.stop-label) { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 30em; text-wrap: pretty; }
.stop-shot { display: none; }

/* Réseaux */

.networks { border-top: 1px solid var(--line); }
.network-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.network-grid li { padding: 28px 24px 8px 0; }
.network-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.network-name { font-size: 2rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.network-grid p:not(.network-name) { margin-top: 10px; color: var(--muted); }

/* Principes */

.principles { padding-top: 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { padding: 32px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.principle p { margin-top: 14px; color: var(--muted); text-wrap: pretty; }

/* Bêta */

.beta { background: var(--band); color: var(--band-ink); padding: clamp(88px, 10vw, 136px) 0; }
.beta .eyebrow { color: var(--band-muted); }
.beta h2, .beta h3 { color: var(--band-ink); }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: start; }
.beta-steps { margin-top: 48px; display: grid; gap: 28px; }
.beta-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; }
.beta-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--band-line); font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.beta-steps h3 { font-size: 1.125rem; }
.beta-steps p { margin-top: 4px; color: var(--band-muted); max-width: 30em; }

.beta-card { padding: 32px; border-radius: 22px; background: var(--page); color: var(--ink); }
.beta-card-title { font-size: 1.25rem; font-weight: 620; letter-spacing: -0.02em; }
.beta-card .signup { margin-top: 20px; }
.beta-card .signup-row { background: var(--card); }
.beta-facts { margin-top: 24px; border-top: 1px solid var(--line); }
.beta-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.beta-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.beta-facts span:first-child { color: var(--muted); }
.beta-facts span:last-child { font-weight: 560; text-align: right; }

@media (prefers-color-scheme: dark) {
  .beta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .beta-card { background: var(--page); border: 1px solid var(--line); }
}

/* Aide */

.help-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.help-head { position: sticky; top: 108px; }
.contact-card { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.contact-title { font-weight: 620; }
.contact-card p:not(.contact-title) { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.contact-mail { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; text-underline-offset: 4px; word-break: break-all; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--muted); text-wrap: pretty; }
.faq details a { color: var(--ink); text-underline-offset: 3px; }

/* Pied de page */

.foot { border-top: 1px solid var(--line); padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; }
.foot-brand p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8125rem; }
.foot-legal a { color: inherit; text-underline-offset: 3px; }

/* Tablettes */

@media (max-width: 1080px) {
  .phone-back { right: 250px; }
}

@media (max-width: 959px) {
  .top-nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { height: auto; display: flex; justify-content: center; padding: 40px 0 0; }
  .hero-visual .phone { position: relative; right: auto; top: auto; }
  .phone-front { width: min(300px, 64vw); }
  .phone-back { display: none; }
  .networks-line { margin-top: 0; }
  .hero-visual { margin-bottom: -120px; }
  .networks-line { position: relative; z-index: 3; background: var(--page); padding-top: 26px; }

  .phrase-list { grid-template-columns: 1fr; }

  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-media { display: none; }
  .line { --lead: 0px; }
  .stop { min-height: 0; padding: 0 0 72px 44px; }
  .stop-last { padding-bottom: 0; }
  .stop-shot { display: block; margin-top: 32px; }
  .stop-shot .phone { width: min(280px, 64vw); }

  .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .network-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 20px; }

  .principle-grid { grid-template-columns: 1fr; }
  .beta-grid { grid-template-columns: 1fr; gap: 48px; }
  .help-grid { grid-template-columns: 1fr; gap: 40px; }
  .help-head { position: static; }
}

/* Téléphones */

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .top-row { height: 60px; }
  .button-small { height: 36px; padding: 0 12px; font-size: 0.875rem; }
  .signup-row { flex-direction: column; padding: 6px; }
  .signup input[type="email"] { height: 48px; }
  .signup .button { width: 100%; }
  .phrase { padding: 22px; }
  .network-grid { grid-template-columns: 1fr; }
  .network-grid li, .network-grid li + li { padding: 20px 0 4px; border-left: 0; margin-top: 0; }
  .network-grid li + li { border-top: 1px solid var(--line); }
  .network-name { font-size: 1.625rem; }
  .beta-card { padding: 22px; }
  .faq summary { font-size: 1.0625rem; padding: 20px 0; }
  .faq details p { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Page introuvable */

.lost { min-height: 100vh; display: flex; align-items: center; padding: 64px 0; }
.lost-actions { margin-top: 36px; }

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