/* ============================================================
   JaZeline — landing.css : page publique (vitrine).
   Feuille DÉDIÉE et légère (l'app charge styles.css, pas la vitrine).
   Aucune dépendance externe (CSP default-src 'self'), polices système.
   Identité : bleu marine #16305a. Thème clair par défaut + variante sombre
   via prefers-color-scheme. Responsive dès 360 px, focus visible, animations
   respectueuses de prefers-reduced-motion.
   ============================================================ */

:root {
  --lp-navy: #16305a;
  --lp-navy-2: #1e3f74;
  --lp-accent: #2f6df0;
  --lp-bg: #f6f8fc;
  --lp-surface: #ffffff;
  --lp-ink: #16223a;
  --lp-ink-soft: #4b5a72;
  --lp-line: #e3e8f2;
  --lp-radius: 16px;
  --lp-shadow: 0 1px 2px rgba(22, 48, 90, .06), 0 8px 24px rgba(22, 48, 90, .06);
  --lp-maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lp-bg: #0d1526;
    --lp-surface: #141f36;
    --lp-ink: #eef2fb;
    --lp-ink-soft: #a9b6ce;
    --lp-line: #24334f;
    --lp-accent: #6ea0ff;
    --lp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--lp-ink);
  background: var(--lp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lp-wrap { width: 100%; max-width: var(--lp-maxw); margin: 0 auto; padding: 0 20px; }

/* --- Lien d'évitement (accessibilité clavier) --- */
.lp-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lp-navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .15s ease;
}
.lp-skip:focus { top: 12px; }

/* --- Focus visible partout --- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lp-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ EN-TÊTE ============ */
.lp-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--lp-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-header__row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lp-ink); font-weight: 800; }
.lp-brand__mark { flex: none; border-radius: 8px; }
.lp-brand__name { font-size: 19px; letter-spacing: -.01em; }
.lp-nav { display: flex; gap: 4px; margin-left: 8px; }
.lp-nav a {
  color: var(--lp-ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px;
}
.lp-nav a:hover { color: var(--lp-ink); background: color-mix(in srgb, var(--lp-navy) 8%, transparent); }
.lp-nav a[aria-current="true"] { color: var(--lp-navy); background: color-mix(in srgb, var(--lp-navy) 12%, transparent); }
@media (prefers-color-scheme: dark) {
  .lp-nav a[aria-current="true"] { color: #fff; }
}
.lp-header__cta { display: flex; gap: 10px; margin-left: auto; align-items: center; }
/* Bouton de langue : discret, à gauche des CTA. Reste visible même sur mobile. */
.lp-lang {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  padding: 0; cursor: pointer; border-radius: 9px;
  border: 1px solid var(--lp-line); background: var(--lp-surface);
  transition: border-color .12s ease, transform .12s ease;
}
.lp-lang:hover { border-color: color-mix(in srgb, var(--lp-navy) 40%, var(--lp-line)); transform: translateY(-1px); }
.lp-lang svg { display: block; border-radius: 2px; }

/* ============ BOUTONS ============ */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.lp-btn--primary { background: var(--lp-navy); color: #fff; box-shadow: var(--lp-shadow); }
.lp-btn--primary:hover { background: var(--lp-navy-2); transform: translateY(-1px); }
.lp-btn--ghost { background: transparent; color: var(--lp-ink); border-color: var(--lp-line); }
.lp-btn--ghost:hover { background: var(--lp-surface); border-color: color-mix(in srgb, var(--lp-navy) 30%, var(--lp-line)); }
.lp-btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }

/* ============ HERO ============ */
.lp-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.lp-hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--lp-navy) 16%, transparent), transparent 70%);
}
.lp-beta {
  display: inline-block; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--lp-navy) 10%, transparent);
  color: var(--lp-navy); font-size: 13px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--lp-navy) 18%, transparent);
}
@media (prefers-color-scheme: dark) { .lp-beta { color: #cfe0ff; } }
.lp-hero__title { margin: 0 0 18px; font-size: clamp(30px, 6vw, 54px); line-height: 1.1; letter-spacing: -.02em; font-weight: 850; }
.lp-hero__lede { margin: 0 0 30px; max-width: 640px; font-size: clamp(16px, 2.4vw, 20px); color: var(--lp-ink-soft); }
.lp-hero__lede a { color: var(--lp-accent); text-decoration: underline; text-underline-offset: 3px; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ SECTIONS ============ */
.lp-section { padding: 56px 0; scroll-margin-top: 80px; }
.lp-section:focus { outline: none; }
.lp-section__title { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; font-weight: 800; }
.lp-section__lede { margin: 0 0 28px; color: var(--lp-ink-soft); font-size: 17px; }

/* --- Cartes (problème / usages) --- */
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-card {
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius);
  padding: 18px; box-shadow: var(--lp-shadow); display: flex; gap: 12px; align-items: flex-start;
  color: var(--lp-ink);
}
.lp-card__ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--lp-navy) 10%, transparent); color: var(--lp-navy); font-size: 17px;
}
@media (prefers-color-scheme: dark) { .lp-card__ic { color: #cfe0ff; } }
.lp-cards--use .lp-card { flex-direction: column; gap: 6px; }
.lp-cards--use .lp-card strong { font-size: 16px; }
.lp-cards--use .lp-card span { color: var(--lp-ink-soft); font-size: 14.5px; }

.lp-quote {
  margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--lp-navy);
  background: var(--lp-surface); border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  font-size: clamp(17px, 2.6vw, 22px); font-weight: 600; color: var(--lp-ink);
}

/* --- Méthode (7 étapes) --- */
.lp-method { background: var(--lp-surface); border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.lp-step { background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 20px; }
.lp-step__n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  background: var(--lp-navy); color: #fff; border-radius: 10px; font-weight: 800; font-size: 16px;
}
.lp-step h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.lp-step p { margin: 0; color: var(--lp-ink-soft); font-size: 15px; }

/* --- Exemple concret --- */
.lp-demo {
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 20px;
  padding: 24px; box-shadow: var(--lp-shadow); display: grid; gap: 18px;
}
.lp-demo__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--lp-ink-soft); font-weight: 700; margin-bottom: 4px; }
.lp-demo__title { font-size: clamp(20px, 3.4vw, 26px); letter-spacing: -.01em; }
.lp-demo__goal p, .lp-demo__next p { margin: 0; font-size: 16px; }
.lp-demo__goal { padding: 14px 16px; background: color-mix(in srgb, var(--lp-navy) 6%, transparent); border-radius: 12px; }
.lp-demo__next { padding: 14px 16px; background: color-mix(in srgb, var(--lp-accent) 10%, transparent); border-radius: 12px; border: 1px solid color-mix(in srgb, var(--lp-accent) 22%, transparent); }
.lp-ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-ranks li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.lp-rank {
  flex: none; min-width: 34px; text-align: center; padding: 3px 8px; border-radius: 8px; font-weight: 800; font-size: 13px;
  background: color-mix(in srgb, var(--lp-navy) 12%, transparent); color: var(--lp-navy);
}
@media (prefers-color-scheme: dark) { .lp-rank { color: #cfe0ff; } }
.lp-rank--1 { background: var(--lp-navy); color: #fff; }
.lp-diff { margin: 26px 0 0; font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; color: var(--lp-ink); }

/* --- Vue d'ensemble (arborescence, capture haute centrée) --- */
.lp-showcase { text-align: center; margin-bottom: 48px; }
.lp-showcase__text { max-width: 640px; margin: 0 auto 24px; }
.lp-showcase__text h3 { margin: 10px 0 12px; font-size: clamp(20px, 3vw, 26px); letter-spacing: -.01em; }
.lp-showcase__text p { margin: 0; color: var(--lp-ink-soft); font-size: 16px; }
.lp-frame--tall { max-width: 640px; margin: 0 auto; }

/* --- En images (captures réelles encadrées) --- */
.lp-shot {
  display: grid; gap: 30px; align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 22px 0;
}
.lp-shot + .lp-shot { margin-top: 14px; border-top: 1px solid var(--lp-line); padding-top: 40px; }
.lp-shot--rev .lp-shot__text { order: 2; }
.lp-shot--rev .lp-frame { order: 1; }
.lp-shot__kicker {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--lp-accent) 14%, transparent); color: var(--lp-accent);
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}
.lp-shot__text h3 { margin: 0 0 12px; font-size: clamp(19px, 2.8vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.lp-shot__text p { margin: 0 0 16px; color: var(--lp-ink-soft); font-size: 16px; }
.lp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-facts li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--lp-ink); }
.lp-facts li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--lp-accent); font-weight: 800; }
.lp-frame {
  margin: 0; border-radius: 16px; overflow: hidden; background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  box-shadow: 0 2px 6px rgba(22, 48, 90, .10), 0 24px 60px rgba(22, 48, 90, .16);
}
@media (prefers-color-scheme: dark) {
  .lp-frame { box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 30px 70px rgba(0, 0, 0, .5); }
}
.lp-frame img { display: block; width: 100%; height: auto; }

/* --- Parcours guidé (encart mis en avant) --- */
.lp-journey__box {
  background: linear-gradient(160deg, var(--lp-navy), var(--lp-navy-2));
  color: #fff; border-radius: 22px; padding: clamp(26px, 5vw, 48px);
  box-shadow: var(--lp-shadow);
}
.lp-journey__box .lp-section__title { color: #fff; }
.lp-journey__box .lp-section__lede { color: rgba(255, 255, 255, .82); max-width: 720px; }
.lp-journey__box .lp-shot__kicker { background: rgba(255, 255, 255, .16); color: #fff; }
.lp-journey__steps {
  list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: jn;
}
.lp-journey__steps li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px; font-size: 14.5px; font-weight: 600; line-height: 1.35;
}
.lp-journey__n {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  background: #fff; color: var(--lp-navy); border-radius: 9px; font-weight: 800; font-size: 15px;
}

/* --- Ensemble (espaces partagés) --- */
.lp-together__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.lp-together__head .lp-section__title,
.lp-together__head .lp-section__lede { margin-bottom: 0; }
.lp-together__head .lp-section__title { margin-bottom: 6px; }
.lp-together__ic {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--lp-navy) 12%, transparent); color: var(--lp-navy);
}
@media (prefers-color-scheme: dark) { .lp-together__ic { color: #cfe0ff; } }

/* --- Confiance --- */
.lp-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-trust__list li {
  position: relative; padding: 14px 16px 14px 44px; background: var(--lp-surface);
  border: 1px solid var(--lp-line); border-radius: 12px; font-size: 15.5px;
}
/* La coche s'aligne sur la PREMIÈRE LIGNE du texte (et non au centre du bloc) : sinon, dès que
   le texte passe sur deux lignes — écrans étroits — elle flotte au milieu, décalée du texte. */
.lp-trust__list li::before {
  content: "✓"; position: absolute; left: 14px; top: 14px;
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px;
  background: color-mix(in srgb, var(--lp-navy) 12%, transparent); color: var(--lp-navy); font-weight: 800; font-size: 13px;
}
@media (prefers-color-scheme: dark) { .lp-trust__list li::before { color: #cfe0ff; } }

/* --- CTA final --- */
.lp-final { text-align: center; padding: 72px 0; }
.lp-final__title { margin: 0 auto 14px; max-width: 760px; font-size: clamp(24px, 4.2vw, 36px); letter-spacing: -.02em; font-weight: 850; }
.lp-final__text { margin: 0 auto 30px; max-width: 560px; color: var(--lp-ink-soft); font-size: 18px; }
.lp-final .lp-hero__actions { justify-content: center; }

/* --- Pied --- */
.lp-footer { border-top: 1px solid var(--lp-line); padding: 28px 0; background: var(--lp-surface); }
.lp-footer__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.lp-footer__brand { color: var(--lp-ink-soft); font-size: 14.5px; }
.lp-footer__nav { display: flex; gap: 16px; }
.lp-footer__nav a { color: var(--lp-ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.lp-footer__nav a:hover { color: var(--lp-ink); }

/* ============ CONTACT / DEMANDE D'ACCÈS (liste blanche, 2026-07-20) ============ */
.lp-contact__form { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.lp-contact__choices { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--lp-ink); cursor: pointer; font-size: 15px; }
.lp-choice input { accent-color: var(--lp-accent); width: 16px; height: 16px; }
.lp-contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.lp-contact__form input[type="text"], .lp-contact__form input[type="email"], .lp-contact__form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--lp-line); border-radius: 12px;
  background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: 15px;
}
.lp-contact__form input:focus, .lp-contact__form textarea:focus { outline: 2px solid var(--lp-accent); outline-offset: 1px; border-color: transparent; }
.lp-contact__form textarea { resize: vertical; min-height: 96px; }
/* Piège anti-robots : champ retiré visuellement ET du parcours clavier — un humain ne le remplit jamais. */
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lp-contact__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-contact__hint { font-size: 14.5px; color: var(--lp-ink-soft); }
.lp-contact__hint.is-ok { color: #1f9d55; font-weight: 600; }
.lp-contact__hint.is-err { color: #d64545; font-weight: 600; }
@media (max-width: 640px) {
  .lp-contact__grid { grid-template-columns: 1fr; }
}

/* ============ RESPONSIVE ============ */
/* Nav d'ancres masquée dès la tablette (l'en-tête devient trop serré, les liens se coupaient) : les CTA restent. */
@media (max-width: 900px) {
  .lp-nav { display: none; }
}
@media (max-width: 760px) {
  .lp-header__cta { margin-left: auto; }
  .lp-hero { padding: 48px 0 28px; }
  .lp-section { padding: 44px 0; }
  .lp-together__head { flex-direction: column; gap: 12px; }
}
/* Captures texte+image : on empile dès la tablette (2 colonnes trop serrées en dessous de 900 px). */
@media (max-width: 900px) {
  .lp-shot { grid-template-columns: 1fr; gap: 20px; }
  .lp-shot__text { order: 1; }
  .lp-shot .lp-frame { order: 2; }   /* image toujours SOUS le texte, quel que soit le sens */
}
@media (max-width: 400px) {
  .lp-wrap { padding: 0 15px; }
  .lp-brand__name { font-size: 17px; }
  .lp-btn { padding: 9px 14px; }
  .lp-header__cta { gap: 8px; }
  /* Header trop étroit pour 2 boutons : on ne garde que « Commencer » (Se connecter reste
     dispo dans le hero secondaire, le CTA final et le pied de page). Évite le débordement à 360 px. */
  .lp-header__cta .lp-btn--ghost { display: none; }
  .lp-hero__actions .lp-btn { flex: 1 1 100%; }   /* CTA pleine largeur, pas de débordement à 360 px */
}
