/*
  Onifide — feuille de style de la landing (2026-08-29).
  Reprend l'ossature de la landing TallUp (memes noms de classes, meme
  decoupage en sections) mais avec la palette et la typo d'Onifide.

  Difference assumee avec TallUp : ici il n'y a PAS de theme clair.
  L'app est "dark-mode-dominant by design" (CLAUDE.md section 3 : les reves se
  notent au reveil), la marque EST le bleu nuit -- une landing qui bascule en
  blanc chez la moitie des visiteurs raconterait autre chose que le produit.
  Meme logique que la bande sombre fixe de TallUp, poussee a toute la page.

  Les 3 couleurs de marque viennent de branding.json et ne sont ecrites qu'ici
  (--night / --sky / --violet) : ne jamais les recopier ailleurs en dur.
*/
:root {
  --night: #0B1230;        /* branding.json colorPalette.nightBlue */
  --sky: #AFCBFF;          /* branding.json colorPalette.skyPastel */
  --violet: #7C5CFC;       /* branding.json colorPalette.violetAccent */

  /* Tokens d'interface (pas des couleurs de marque) — alignes sur
     mobile/src/theme/useTheme.ts pour que le site et l'app se ressemblent. */
  --night-2: #131A42;
  --night-3: #080D24;
  --surface: rgba(255,255,255,.05);
  --surface-strong: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.10);
  --text: #F2F1F8;
  --text-muted: #8991BD;
  --text-faint: #6A72A0;
  --violet-soft: rgba(124,92,252,.16);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--sky); }
img { max-width: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  margin: 0 0 14px;
  letter-spacing: .01em;
}

/* ── Header ── */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
/* Logotype : capitales espacees en Marcellus, jamais du gras — meme regle que
   mobile/src/components/Wordmark.tsx (le rendre en police d'interface le fait
   lire comme un titre de section, pas comme une marque). */
.wordmark {
  font-family: "Marcellus", Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding-left: .2em;
  line-height: 1;
}
.brand .wordmark { font-size: 17px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--sky); color: var(--sky); }
.lang-switch summary::after { content: "▾"; font-size: 10px; }
.lang-switch nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--night-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.6);
  z-index: 30;
}
.lang-switch nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.lang-switch nav a:hover { background: var(--surface-strong); }
.lang-switch nav a.current { color: var(--violet); font-weight: 800; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Hero ── */
section.hero {
  position: relative;
  background: radial-gradient(120% 140% at 50% -10%, var(--night-2) 0%, var(--night) 58%);
  padding: 46px 24px 60px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 500px;
  background: radial-gradient(closest-side, rgba(124,92,252,.34), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(32px, 5.4vw, 50px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 .accent-word { color: var(--sky); }
.hero-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 28px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #9A80FF, var(--violet));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 16px 34px -12px rgba(124,92,252,.6);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  padding: 15px 22px;
  border-radius: 14px;
}
.cta-note { color: var(--text-faint); font-size: 12.5px; margin: 0 0 42px; }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* ── Maquettes d'ecran ──
   Ce ne sont PAS des captures d'ecran : l'app n'a pas encore tourne sur un
   vrai telephone (docs/device-testing-checklist.md). Ce sont des maquettes
   HTML/CSS construites avec les vrais tokens de useTheme.ts, a remplacer par
   de vraies captures avant publication -- il suffit de remplacer le bloc
   <div class="mock"> par <img src="/screenshots/xx.jpg"> dans chaque .screen. */
.phone {
  position: relative;
  /* --phone-w est SANS UNITE : la maquette interieure est mise a l'echelle par
     transform: scale(), qui exige un nombre. Ecrire `calc((190px - 14px)/236)`
     produit une longueur (0.745px), la regle entiere devient invalide et la
     maquette s'affiche en taille reelle, debordant du telephone. */
  width: calc(var(--phone-w, 250) * 1px);
  aspect-ratio: 250 / 486;
  border-radius: 34px;
  padding: 7px;
  background: #05091C;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px -28px rgba(0,0,0,.85), 0 4px 20px rgba(0,0,0,.5);
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: var(--night);
  position: relative;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone .notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 17px;
  background: #05091C;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 236px;
  height: 472px;
  transform-origin: top left;
  transform: scale(calc((var(--phone-w, 250) - 14) / 236));
  background: var(--night);
  padding: 26px 14px 14px;
  font-size: 9px;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
  overflow: hidden;
}
.mock .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock .wordmark { font-size: 11px; color: var(--text); }
.mock .m-dot { width: 16px; height: 16px; border-radius: 999px; background: var(--surface-strong); }
.mock .m-title { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 3px; }
.mock .m-sub { color: var(--text-muted); font-size: 8.5px; margin: 0 0 12px; }
.mock .m-label { color: var(--sky); font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 7px; }
.mock .m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 8px;
}
.mock .m-card b { display: block; font-size: 9.5px; font-weight: 800; margin-bottom: 2px; }
.mock .m-card p { margin: 0; color: var(--text-muted); font-size: 8.5px; }
.mock .m-date { color: var(--text-faint); font-size: 7.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mock .m-cta {
  display: block;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  font-size: 9.5px;
  text-align: center;
  padding: 9px;
  border-radius: 11px;
  margin: 10px 0;
}
.mock .m-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.mock .m-chip {
  background: var(--violet-soft);
  border: 1px solid rgba(124,92,252,.35);
  color: var(--sky);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 7.5px;
  font-weight: 700;
}
.mock .m-chip.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.mock .m-note { color: var(--text-faint); font-size: 7px; margin: 8px 0 0; }
.mock .m-bar { height: 5px; border-radius: 999px; background: var(--surface-strong); margin-top: 4px; overflow: hidden; }
.mock .m-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--sky)); }
.mock .m-row { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; margin-top: 9px; }
.mock .m-row span { color: var(--text-muted); }
.mock .m-row b { font-size: 8.5px; }
.mock .m-art {
  height: 74px;
  border-radius: 12px;
  background:
    radial-gradient(60% 80% at 30% 25%, rgba(175,203,255,.45), transparent 70%),
    radial-gradient(70% 90% at 75% 70%, rgba(124,92,252,.55), transparent 72%),
    linear-gradient(160deg, #1A2154, #0A1030);
  border: 1px solid var(--border);
  margin-bottom: 9px;
}

/* ── Bande de chiffres ── */
section.stats { background: var(--night-2); padding: 40px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat b { display: block; font-size: clamp(26px, 6vw, 36px); font-weight: 800; color: var(--sky); letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ── Features ── */
section.features { max-width: 1080px; margin: 0 auto; padding: 72px 24px 40px; }
.section-head { text-align: center; max-width: 580px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.feature-card .emoji {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--violet-soft);
  border: 1px solid rgba(124,92,252,.28);
  border-radius: 14px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 14.5px; }

/* ── Les 7 courants ── */
section.courants { max-width: 1080px; margin: 40px auto 0; padding: 40px 24px; }
.courant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.courant {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}
.courant b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.courant span { color: var(--text-muted); font-size: 13px; }
.courant.sci { border-color: rgba(175,203,255,.28); background: rgba(175,203,255,.06); }
.courant-note { color: var(--text-faint); font-size: 13px; text-align: center; margin: 22px auto 0; max-width: 640px; }

/* ── Galerie ── */
section.gallery { max-width: 1080px; margin: 60px auto; padding: 0 24px; }
.gallery-panel {
  background: linear-gradient(165deg, var(--night-2), var(--night-3));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px 0 36px;
}
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 28px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 999px; }
.gallery-item { flex: 0 0 auto; scroll-snap-align: start; width: 190px; text-align: center; }
.gallery-item .phone { --phone-w: 190; }
.gallery-item .caption { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--sky); }

/* ── Sections alternees ── */
section.dive { max-width: 1080px; margin: 0 auto; padding: 30px 24px; }
.dive-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.dive-row.reverse .dive-copy { order: 2; }
.dive-row.reverse .dive-visual { order: 1; }
@media (max-width: 800px) {
  .dive-row, .dive-row.reverse { grid-template-columns: 1fr; text-align: center; }
  .dive-row.reverse .dive-copy, .dive-row .dive-copy { order: 2; }
  .dive-row.reverse .dive-visual, .dive-row .dive-visual { order: 1; }
}
.dive-copy h2 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 800px) { .checklist { text-align: left; max-width: 400px; margin: 0 auto; } }
.checklist li { display: flex; gap: 10px; color: var(--text-muted); font-size: 15px; }
.checklist li::before { content: "✦"; color: var(--violet); font-weight: 900; flex-shrink: 0; }
.dive-visual { display: flex; justify-content: center; }
.dive-visual .phone { --phone-w: 230; }

/* ── Parti pris editorial (remplace la section "fondateur" de TallUp) ── */
section.stance {
  max-width: 1080px;
  margin: 40px auto;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--night-2), var(--night-3));
  border: 1px solid var(--border);
  border-radius: 28px;
}
.stance-inner { max-width: 640px; margin: 0 auto; text-align: center; }
section.stance h2 { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
section.stance p { color: var(--text-muted); font-size: 15px; }
.stance-figures { display: flex; gap: 16px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.stance-figures div { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 16px; padding: 16px 26px; text-align: center; }
.stance-figures b { display: block; font-size: 24px; font-weight: 800; color: var(--sky); }
.stance-figures span { font-size: 12px; color: var(--text-muted); }

/* ── Tarifs ── */
section.pricing { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; }
.tier.featured { border-color: rgba(124,92,252,.5); background: var(--violet-soft); }
.tier h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.tier .tier-line { color: var(--sky); font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier li { color: var(--text-muted); font-size: 14px; display: flex; gap: 8px; }
.tier li::before { content: "·"; color: var(--violet); font-weight: 900; }

/* ── FAQ ── */
section.faq { max-width: 760px; margin: 20px auto 0; padding: 40px 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.faq-item p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ── Bande "ce que l'app n'est pas" ── */
section.trust { max-width: 820px; margin: 20px auto 0; padding: 32px 24px; text-align: center; }
section.trust .emoji { font-size: 26px; margin-bottom: 10px; }
section.trust h2 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
section.trust p { color: var(--text-muted); font-size: 14px; max-width: 620px; margin: 0 auto 10px; }
section.trust p:last-child { margin-bottom: 0; }

/* ── CTA final ── */
section.closing { max-width: 1080px; margin: 40px auto; padding: 0 24px; }
.closing-panel {
  background: radial-gradient(120% 160% at 50% 0%, var(--night-2), var(--night-3));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
}
.closing-panel h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.closing-panel p { color: var(--text-muted); margin: 0 0 26px; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
