/* =====================================================================
   Dossia — page de présentation publique
   Mise en page : en-tête collant, héros en deux colonnes (texte + exemple
   de rapport), sections alternées, bandeau final indigo.
   ===================================================================== */

:root {
  --ink: #161a2e;
  --ink-2: #3b4158;
  --muted: #646b82;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --brand: #2b3175;
  --brand-dark: #1f2459;
  --brand-soft: #eceefb;
  --brand-ring: rgba(43, 49, 117, .25);
  --spark: #ffd166;
  --critical: #c8283a;
  --warning: #b45309;
  --info: #2563eb;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 750; margin-bottom: 1.1rem; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .45rem; }
p { margin: 0 0 1rem; }

.lp-wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }

/* ------------------------------------------------------------------ boutons */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .72rem 1.25rem; border-radius: 10px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: 650 .95rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.lp-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.lp-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.lp-btn-ghost { background: transparent; color: var(--ink); border-color: #cdd2e1; }
.lp-btn-ghost:hover { background: var(--bg-alt); border-color: #b7bdd0; color: var(--ink); }
.lp-btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.lp-btn-light:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }

/* ------------------------------------------------------------------ en-tête */

.lp-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.lp-header-in { display: flex; align-items: center; gap: 2rem; min-height: 66px; }
.lp-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.lp-brand svg { display: block; }
.lp-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.lp-nav a { color: var(--ink-2); font-size: .93rem; font-weight: 550; text-decoration: none; }
.lp-nav a:hover { color: var(--brand); }
.lp-header .lp-btn { padding: .5rem 1rem; font-size: .9rem; }
@media (max-width: 860px) { .lp-nav { display: none; } .lp-header .lp-btn { margin-left: auto; } }

/* ------------------------------------------------------------------ héros */

.lp-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 78%); border-bottom: 1px solid var(--line); }
.lp-hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 3.5rem; align-items: center; padding-block: 4.5rem 4rem; }
.lp-hero-text { min-width: 0; }
.lp-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: #fff; border: 1px solid #d8dcf3; border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.4rem; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.35rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.lp-lead { font-size: 1.13rem; color: var(--ink-2); max-width: 36rem; }
.lp-lead-sm { color: var(--ink-2); max-width: 44rem; margin-bottom: 1.6rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

/* Exemple de rapport */
.lp-demo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(31, 36, 89, .35), 0 2px 6px rgba(31, 36, 89, .06); overflow: hidden; min-width: 0; }
.lp-demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); }
.lp-demo-head strong { display: block; font-size: .98rem; }
.lp-demo-head span { display: block; font-size: .8rem; color: var(--muted); }
.lp-pill { flex: none; font-size: .74rem; font-weight: 700; color: #166534; background: #e8f7ee; padding: .18rem .6rem; border-radius: 999px; }
.lp-points { list-style: none; margin: 0; padding: .4rem 0; }
.lp-points li { display: grid; grid-template-columns: 6.6rem 1fr auto; gap: .9rem; align-items: start; padding: .8rem 1.25rem; border-left: 3px solid transparent; }
.lp-points li + li { border-top: 1px solid #f0f2f7; }
.lp-points strong { display: block; font-size: .9rem; line-height: 1.35; }
.lp-points div span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.lp-points code { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: .12rem .4rem; white-space: nowrap; }
.lp-sev { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding-top: .15rem; }
.sev-critical { border-left-color: var(--critical) !important; } .sev-critical .lp-sev { color: var(--critical); }
.sev-warning { border-left-color: #e3a008 !important; } .sev-warning .lp-sev { color: var(--warning); }
.sev-info { border-left-color: #93a9f5 !important; } .sev-info .lp-sev { color: var(--info); }
.lp-demo figcaption { font-size: .74rem; color: var(--muted); padding: .6rem 1.25rem; background: var(--bg-alt); border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .lp-hero-in { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
}
@media (max-width: 520px) {
  .lp-points li { grid-template-columns: 1fr; gap: .3rem; }
  .lp-points code { justify-self: start; }
}

/* ------------------------------------------------------------------ garanties */

.lp-trust { border-bottom: 1px solid var(--line); }
.lp-trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2rem; }
.lp-trust-in > div { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; color: var(--muted); min-width: 0; }
.lp-trust-in svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: .1rem; }
.lp-trust-in strong { display: block; color: var(--ink); font-size: .93rem; }
@media (max-width: 900px) { .lp-trust-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lp-trust-in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ sections */

.lp-section { padding-block: 5rem; }
.lp-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.lp-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.lp-steps li { counter-increment: step; position: relative; padding-top: 3.4rem; color: var(--ink-2); font-size: .97rem; }
.lp-steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 750; font-variant-numeric: tabular-nums;
}
.lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.2rem; left: 3.2rem; right: -1.2rem; height: 1px; background: #d3d7e6; }
.lp-steps h3 { color: var(--ink); }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } .lp-steps li::after { display: none; } }

.lp-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.lp-split > * { min-width: 0; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.lp-checks li { display: flex; gap: .65rem; color: var(--ink-2); font-size: .97rem; }
.lp-checks svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: .2rem; }
.lp-agents { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lp-agents article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; position: relative; }
.lp-agents article:first-child { border-color: #c9cef0; box-shadow: 0 0 0 3px var(--brand-soft); }
.lp-agents p { font-size: .9rem; color: var(--muted); margin: 0; }
.lp-tag { display: inline-block; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); background: var(--spark); border-radius: 6px; padding: .12rem .45rem; margin-bottom: .6rem; }
@media (max-width: 960px) { .lp-split { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .lp-agents { grid-template-columns: 1fr; } }

.lp-audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.lp-audiences article { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.lp-audiences svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: .9rem; }
.lp-audiences p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .lp-audiences { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ tarifs */

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; }
.lp-plans article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; display: flex; flex-direction: column; }
.lp-plans article.is-featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring), 0 24px 50px -30px rgba(31, 36, 89, .45); }
.lp-price { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 1.1rem; font-variant-numeric: tabular-nums; }
.lp-price small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-plans ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; font-size: .93rem; color: var(--ink-2); flex: 1; }
.lp-plans li { padding-left: 1.4rem; position: relative; }
.lp-plans li::before { content: ""; position: absolute; left: .1rem; top: .5rem; width: .7rem; height: .38rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.lp-plans li:first-letter { text-transform: uppercase; }

/* ------------------------------------------------------------------ FAQ */

.lp-faq { max-width: 820px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--ink-2); margin: .7rem 0 0; font-size: .97rem; }

/* ------------------------------------------------------------------ bandeau final + pied */

.lp-final { background: var(--brand); color: #fff; }
.lp-final-in { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-block: 4rem; }
.lp-final h2 { color: #fff; margin-bottom: .6rem; }
.lp-final p { color: #c9cdf2; margin: 0; max-width: 36rem; }
.lp-contact { display: grid; gap: .8rem; justify-items: start; }
.lp-contact p { font-size: .92rem; }

.lp-footer { border-top: 1px solid var(--line); }
.lp-footer-in { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.6rem; font-size: .85rem; color: var(--muted); }
.lp-footer-in p { margin: 0; }
.lp-footer .lp-brand { font-size: 1rem; }
.lp-footer nav { margin-left: auto; display: flex; gap: 1.2rem; }
.lp-footer nav a { color: var(--muted); text-decoration: none; }
.lp-footer nav a:hover { color: var(--brand); }
