/* ============================================================
   landing.css — Page publique /accueil (AOScore) — AOSCORE-090
   Fichier séparé et autonome (n'importe PAS tarifs.css).
   Palette --l-* dupliquée depuis tarifs.css (--t-*) pour isolation.
   Dette CSS acceptée : pas de tokens centralisés (voir AOSCORE-090).
   ============================================================ */

:root {
  --l-primary: #2563eb;
  --l-primary-dark: #1d4ed8;
  --l-primary-light: #dbeafe;
  --l-ink: #0f172a;
  --l-body: #334155;
  --l-muted: #64748b;
  --l-border: #e2e8f0;
  --l-bg: #f8fafc;
  --l-surface: #ffffff;
  --l-ok: #16a34a;
  --l-radius: 14px;
  --l-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --l-shadow-hover: 0 10px 30px rgba(37, 99, 235, .12);
  /* Spécifiques landing */
  --l-hero-bg: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  --l-section-padding: 5rem 2rem;
  --l-early-bg: #eff6ff;
}

* { box-sizing: border-box; }

body.landing-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--l-body);
  background: var(--l-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--l-primary); text-decoration: none; }

/* ---------- Bandeau promo sticky ---------- */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--l-primary);
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 500;
}
.promo-banner strong { font-weight: 700; }
.promo-banner .promo-code {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  padding: .05rem .45rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ---------- Header ---------- */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--l-border);
}
.landing-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.landing-header .logo img { height: 32px; display: block; }
.landing-nav { display: flex; align-items: center; gap: .5rem; }

/* ---------- Boutons (repris de tarifs.css) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.15rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { color: var(--l-body); }
.btn-ghost:hover { color: var(--l-primary); background: var(--l-primary-light); }
.btn-primary { background: var(--l-primary); color: #fff; }
.btn-primary:hover { background: var(--l-primary-dark); }
.btn-outline { border-color: var(--l-border); color: var(--l-ink); background: #fff; }
.btn-outline:hover { border-color: var(--l-primary); color: var(--l-primary); }
.btn-white { background: #fff; color: var(--l-primary); }
.btn-white:hover { background: var(--l-primary-light); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; border-radius: 12px; }

/* `hidden` doit l'emporter sur les `display` déclarés ci-dessus. Une règle
   d'auteur bat toujours la feuille de l'agent utilisateur, quelle que soit la
   spécificité : sans cette ligne, `element.hidden = true` sur un `.btn` ne
   masque rien — c'était le bug du header (« Se connecter » et « Accéder à mon
   tableau de bord » affichés en même temps pour un visiteur anonyme). */
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.l-hero {
  background: var(--l-hero-bg);
  border-bottom: 1px solid var(--l-border);
}
.l-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 3rem;
  align-items: center;
}
.l-hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  color: var(--l-ink);
  margin: 0 0 1.25rem;
  letter-spacing: -.5px;
}
.l-hero-sub {
  font-size: 1.15rem;
  color: var(--l-muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}
.l-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1rem;
}
.l-hero-microcopy {
  font-size: .9rem;
  color: var(--l-muted);
  margin: 0;
}

/* ============================================================
   Reproduction d'un rapport d'analyse (hero)

   Valeurs reprises de static/css/style.css et de app.js
   (renderEliminatoiresCard / renderCertifMatchCard) pour que l'exemple
   ressemble à l'application et non à une illustration.

   L'app pose `html { font-size: 15px }` : `.l-report` rétablit cette base et
   tout l'intérieur est exprimé en `em`, donc le bloc entier se met à l'échelle
   d'une seule déclaration — c'est ce qui le rend lisible à 375px.
   ============================================================ */
.l-hero-visual { display: flex; justify-content: center; }

.l-report {
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  width: 100%;
  max-width: 460px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.l-rc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.l-rc-head {
  padding: .75em 1.25em;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.l-rc-head h3 {
  font-size: .95em;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.l-rc-sub { font-size: .75em; color: #7b341e; }
.l-rc-body { padding: 1.25em; }

/* Encart éliminatoires */
.l-rc-card-elim .l-rc-head { background: #fff3cd; border-left: 4px solid #c0392b; }
.l-rc-card-elim .l-rc-head h3 { color: #c0392b; }
.l-rc-list { list-style: none; padding: 0; margin: 0; }
.l-rc-list li {
  padding: .5em;
  background: #fff5f5;
  border-radius: 4px;
  font-size: .88em;
}
.l-rc-badge {
  display: inline-block;
  background: #fee;
  color: #c0392b;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: .7em;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}

/* Encart couverture certifications */
.l-rc-card-ok .l-rc-head { background: #f0fdf4; border-left: 4px solid #16a34a; }
.l-rc-card-ok .l-rc-head h3 { color: #15803d; }
.l-rc-covered { font-size: .8em; color: #555; margin: 0; }

/* Informations du marché */
.l-rc-info { display: flex; flex-direction: column; gap: .5em; }
.l-rc-row {
  display: flex;
  gap: 1em;
  padding: .35em 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .88em;
}
.l-rc-row:last-child { border-bottom: none; }
.l-rc-label {
  min-width: 100px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}
.l-rc-value { flex: 1; }

.l-report-caption {
  font-size: .8em;
  color: var(--l-muted);
  text-align: center;
  margin: 0;
}

/* ---------- Sections génériques ---------- */
.l-section { padding: var(--l-section-padding); }
.l-section-inner { max-width: 1200px; margin: 0 auto; }
.l-narrow { max-width: 780px; }
.l-section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--l-ink);
  margin: 0 0 2.5rem;
  letter-spacing: -.3px;
}

/* ---------- Section problème ---------- */
.l-problem { text-align: center; background: var(--l-bg); }
.l-problem h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--l-ink);
  margin: 0 0 1rem;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.l-problem p {
  font-size: 1.1rem;
  color: var(--l-muted);
  margin: 0;
}

/* ---------- Grilles 3 colonnes ---------- */
.l-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ---------- Features ---------- */
.l-feature {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--l-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--l-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.l-feature:hover { transform: translateY(-3px); box-shadow: var(--l-shadow-hover); }
.l-feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.l-feature h3 {
  font-size: 1.15rem;
  color: var(--l-ink);
  margin: 0 0 .6rem;
}
.l-feature p { font-size: .95rem; color: var(--l-body); margin: 0; }

/* ---------- Comment ça marche ---------- */
.l-how { background: var(--l-bg); }
.l-step {
  text-align: center;
  padding: 1rem;
}
.l-step-num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--l-primary);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-step h3 { font-size: 1.15rem; color: var(--l-ink); margin: 0 0 .5rem; }
.l-step p { font-size: .95rem; color: var(--l-body); margin: 0; }

/* ---------- Early adopters ---------- */
.l-early { background: var(--l-early-bg); }
.l-early-inner { text-align: center; }
.l-early h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--l-ink);
  margin: 0 0 .75rem;
  letter-spacing: -.3px;
}
.l-early p {
  font-size: 1.1rem;
  color: var(--l-body);
  margin: 0 0 1.75rem;
}
.l-early .l-code,
.l-code {
  display: inline-block;
  background: var(--l-primary-light);
  color: var(--l-primary-dark);
  padding: .05rem .5rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ---------- FAQ (repris de tarifs.css) ---------- */
.l-faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.l-faq h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--l-ink);
  margin: 0 0 2rem;
}
.faq-item {
  border: 1px solid var(--l-border);
  border-radius: 12px;
  background: var(--l-surface);
  margin-bottom: .85rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--l-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--l-primary);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--l-body);
  font-size: .95rem;
}

/* ---------- CTA final ---------- */
.l-cta-final {
  background: var(--l-primary);
  color: #fff;
}
.l-cta-final-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}
.l-cta-final h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .85rem;
  letter-spacing: -.3px;
}
.l-cta-final p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 2rem;
}

/* ---------- Footer (repris de tarifs.css) ---------- */
.landing-footer {
  border-top: 1px solid var(--l-border);
  background: var(--l-surface);
  padding: 2rem 1.5rem;
}
.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--l-muted);
  font-size: .875rem;
}
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.landing-footer nav a { color: var(--l-muted); }
.landing-footer nav a:hover { color: var(--l-primary); }

/* ============================================================
   Responsive : desktop → tablet → mobile
   ============================================================ */
@media (max-width: 1024px) {
  .l-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .l-grid-3 { grid-template-columns: 1fr; }
  .l-section { padding: 3.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .l-hero-inner { padding: 2.5rem 1.25rem 3rem; }
  .l-hero-cta .btn { flex: 1 1 auto; }
  /* Lisibilité à 375px : une seule déclaration met tout le rapport à
     l'échelle, et les paires label/valeur s'empilent plutôt que de comprimer
     l'objet du marché sur deux mots par ligne. */
  .l-report { font-size: 13px; }
  .l-rc-row { flex-direction: column; gap: .15em; }
  .l-rc-label { min-width: 0; }
  .landing-header-inner { padding: .75rem 1rem; }
  .promo-banner { font-size: .8rem; }
  .landing-nav .btn-ghost { display: none; } /* garder l'inscription visible sur très petit écran */
}
