/* =====================================================================
   SantéFlow — site public (accueil, conditions, confidentialité)
   Aucun framework : feuille autonome. Thème clair / sombre par jetons.
   ===================================================================== */

:root {
  --brand: #007C91;
  --brand-dark: #005B66;
  --brand-light: #e0f4f7;
  --mint: #00BFA6;
  --mint-ink: #00806f;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --ink: #0d1b24;
  --ink-2: #3a4b57;
  --muted: #5b6b77;
  --line: #dfe7ec;
  --ring: 0 0 0 3px rgba(0, 124, 145, .35);
  --shadow-sm: 0 1px 2px rgba(13, 27, 36, .06), 0 2px 8px rgba(13, 27, 36, .05);
  --shadow: 0 10px 30px rgba(13, 27, 36, .08), 0 2px 6px rgba(13, 27, 36, .05);
  --shadow-lg: 0 30px 80px rgba(0, 60, 72, .18);
  --header-bg: rgba(255, 255, 255, .82);
  --hero-a: #e6f7f9;
  --hero-b: #f1fbf8;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --container: 1200px;
  --ok: #15803d; --ok-bg: #dcfce7;
  --info: #0369a1; --info-bg: #e0f2fe;
  --warn: #a16207; --warn-bg: #fef3c7;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2bb3c4;
    --brand-dark: #7fd6e1;
    --brand-light: #0f3440;
    --mint: #2fd6bd;
    --mint-ink: #5ee6d0;
    --bg: #0b1720;
    --bg-alt: #0f1f2a;
    --surface: #122431;
    --surface-2: #162b3a;
    --ink: #e9f1f5;
    --ink-2: #c3d2da;
    --muted: #9fb2bd;
    --line: #23394a;
    --header-bg: rgba(11, 23, 32, .82);
    --hero-a: #0c2430;
    --hero-b: #0b1c24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
    --ok: #4ade80; --ok-bg: #0f2e1d;
    --info: #7dd3fc; --info-bg: #0c2a3d;
    --warn: #fcd34d; --warn-bg: #3a2c0a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2bb3c4;
  --brand-dark: #7fd6e1;
  --brand-light: #0f3440;
  --mint: #2fd6bd;
  --mint-ink: #5ee6d0;
  --bg: #0b1720;
  --bg-alt: #0f1f2a;
  --surface: #122431;
  --surface-2: #162b3a;
  --ink: #e9f1f5;
  --ink-2: #c3d2da;
  --muted: #9fb2bd;
  --line: #23394a;
  --header-bg: rgba(11, 23, 32, .82);
  --hero-a: #0c2430;
  --hero-b: #0b1c24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  --ok: #4ade80; --ok-bg: #0f2e1d;
  --info: #7dd3fc; --info-bg: #0c2a3d;
  --warn: #fcd34d; --warn-bg: #3a2c0a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body.lp { overflow-x: clip; } }
.lp img, .lp video { max-width: 100%; height: auto; display: block; }
.lp h1, .lp h2, .lp h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.01em; }
.lp p { margin: 0 0 1rem; }
.lp a { color: var(--brand); text-underline-offset: 3px; }
.lp a:hover { color: var(--brand-dark); }
.lp :focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.lp ::selection { background: var(--brand); color: #fff; }
.lp-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .lp-container { padding: 0 24px; } }

.lp-ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
svg use { pointer-events: none; }

.lp-skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--brand); color: #fff !important; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  text-decoration: none; transition: top .2s;
}
.lp-skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.lp-btn--lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.lp-btn--primary { background: #007C91; color: #fff !important; box-shadow: 0 6px 18px rgba(0, 124, 145, .28); }
.lp-btn--primary:hover { background: #005B66; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 124, 145, .35); }
.lp-btn--outline { border-color: var(--brand); color: var(--brand) !important; background: transparent; }
.lp-btn--outline:hover { background: var(--brand-light); }
.lp-btn--ghost { color: var(--ink) !important; background: transparent; }
.lp-btn--ghost:hover { background: var(--bg-alt); }
.lp-btn--light { background: #fff; color: #005B66 !important; }
.lp-btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.lp-btn--glass { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.lp-btn--glass:hover { background: rgba(255, 255, 255, .22); }

.lp-icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0;
}
.lp-icon-btn:hover { background: var(--bg-alt); }
.lp-icon-btn .lp-ico { width: 20px; height: 20px; }

/* ---------- En-tête ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.lp-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.lp-header__in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; flex: none; }
.lp-brand__mark { width: 34px; height: 34px; }
.lp-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.lp-brand__name b { color: var(--brand); font-weight: 700; }
.lp-nav { margin-left: auto; display: flex; align-items: center; }
.lp-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lp-nav__list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.lp-nav__list a:hover, .lp-nav__list a.is-active { color: var(--brand); background: var(--brand-light); }
.lp-nav__auth { display: none; }
.lp-header__tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.lp-burger { display: none; }
.lp-ico--sun { display: none; }
:root[data-theme="dark"] .lp-ico--sun { display: block; }
:root[data-theme="dark"] .lp-ico--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-ico--sun { display: block; }
  :root:not([data-theme="light"]) .lp-ico--moon { display: none; }
}
.lp-burger .lp-ico--close { display: none; }
.lp-burger[aria-expanded="true"] .lp-ico--close { display: block; }
.lp-burger[aria-expanded="true"] .lp-ico--open { display: none; }

@media (max-width: 1080px) {
  .lp-burger { display: inline-grid; }
  .lp-hide-sm { display: none !important; }
  .lp-header__tools { margin-left: auto; }
  .lp-nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0; display: block;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 16px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .lp-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .lp-nav__list { flex-direction: column; gap: 2px; }
  .lp-nav__list a { width: 100%; min-height: 48px; font-size: 1.02rem; }
  .lp-nav__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .lp-nav__auth .lp-btn--ghost { border-color: var(--line); }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .lp-nav__list a { padding: 0 9px; font-size: .9rem; }
}

/* ---------- Héros ---------- */
.lp-hero { position: relative; padding: 56px 0 40px; background: linear-gradient(160deg, var(--hero-a), var(--bg) 55%, var(--hero-b)); overflow: hidden; }
.lp-hero__bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.lp-hero__bg span:nth-child(1) { width: 420px; height: 420px; background: rgba(0, 191, 166, .25); top: -140px; right: -80px; }
.lp-hero__bg span:nth-child(2) { width: 360px; height: 360px; background: rgba(0, 124, 145, .2); bottom: -160px; left: -120px; }
.lp-hero__bg span:nth-child(3) { width: 220px; height: 220px; background: rgba(56, 189, 248, .18); top: 40%; left: 45%; }
/* minmax(0, …) : sans lui, la largeur minimale de l'illustration élargit la colonne et coupe le texte sur mobile. */
.lp-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 992px) { .lp-hero { padding: 80px 0 56px; } .lp-hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; } }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-weight: 600; font-size: .88rem;
  box-shadow: var(--shadow-sm);
}
.lp-hero__title { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; margin: 18px 0 18px !important; letter-spacing: -.025em; }
.lp-grad { background: linear-gradient(100deg, #007C91 10%, #00a892 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .lp-grad { background-image: linear-gradient(100deg, #5fd0de, #4fe3c8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-grad { background-image: linear-gradient(100deg, #5fd0de, #4fe3c8); } }
.lp-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 580px; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp-hero__cta--center { justify-content: center; }
.lp-hero__trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.lp-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero__trust .lp-ico { color: var(--mint-ink); }
@media (max-width: 480px) { .lp-hero__cta .lp-btn { width: 100%; } }

/* Maquette de l'application */
.lp-hero__visual { margin: 0; position: relative; }
.lp-app {
  position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: visible; font-size: 13px; color: var(--ink);
  animation: lp-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.lp-app__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 18px 18px 0 0; }
.lp-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.lp-app__bar i:nth-child(2) { background: #fbbf24; } .lp-app__bar i:nth-child(3) { background: #34d399; }
.lp-app__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-app__body { display: flex; min-height: 330px; }
.lp-app__side { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; border-right: 1px solid var(--line); }
.lp-app__side b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.lp-app__side b.is-on { background: var(--brand-light); color: var(--brand); }
.lp-app__side svg { width: 18px; height: 18px; }
.lp-app__main { flex: 1; min-width: 0; padding: 16px; }
.lp-app__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.lp-app__head strong { font-family: var(--font-display); font-size: 16px; }
.lp-app__head span { color: var(--muted); font-size: 12px; }
.lp-app__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.lp-app__kpis div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.lp-app__kpis small { display: block; color: var(--muted); font-size: 11px; }
.lp-app__kpis strong { display: block; font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.lp-app__kpis sup { font-size: 10px; color: var(--muted); }
.lp-app__kpis em { font-style: normal; font-size: 11px; color: var(--mint-ink); }
.lp-app__list > div { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.lp-app__list > div:last-child { border-bottom: 0; }
.lp-app__list time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; width: 62px; flex: none; }
.lp-app__list p { margin: 0; flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-app__list p small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--ok { background: #22c55e; } .dot--info { background: #0ea5e9; } .dot--warn { background: #f59e0b; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag--ok { color: var(--ok); background: var(--ok-bg); }
.tag--info { color: var(--info); background: var(--info-bg); }
.tag--warn { color: var(--warn); background: var(--warn-bg); }
.lp-app__spark { width: 100%; height: 46px; margin-top: 8px; }

.lp-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 12.5px; max-width: 250px;
}
.lp-float p { margin: 0; line-height: 1.3; }
.lp-float strong { display: block; font-size: 13px; }
.lp-float small { color: var(--muted); }
.lp-float__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e7f8f4; color: #00806f; flex: none; }
.lp-float__ico--v { background: #eef2ff; color: #4f46e5; }
.lp-float__ico--s { background: #fff4e5; color: #b45309; }
.lp-float__ico svg { width: 18px; height: 18px; }
.lp-float--pay { right: -18px; top: 70px; animation: lp-bob 6s ease-in-out infinite; }
.lp-float--vax { left: -26px; bottom: 60px; animation: lp-bob 7s ease-in-out -2s infinite; }
.lp-float--scan { right: 20px; bottom: -22px; animation: lp-bob 8s ease-in-out -4s infinite; }
@media (max-width: 1240px) { .lp-float--pay { right: -6px; } .lp-float--vax { left: -6px; } }
@media (max-width: 640px) {
  .lp-app { font-size: 12px; }
  .lp-app__side { display: none; }
  .lp-app__kpis strong { font-size: 15px; }
  .lp-float--vax { display: none; }
  .lp-float--pay { right: 8px; top: auto; bottom: -24px; }
  .lp-float--scan { display: none; }
  .lp-app__list > div:nth-child(4) { display: none; }
}
.lp-caption { margin: 34px 0 0; font-size: .82rem; color: var(--muted); text-align: right; }
.lp-caption--center { text-align: center; margin-top: 18px; }

@keyframes lp-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.lp-proof {
  list-style: none; margin: 40px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .lp-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px; } }
.lp-proof li { text-align: center; padding: 6px; }
.lp-proof strong { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--brand); }
.lp-proof span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.lp-section { padding: 72px 0; }
@media (min-width: 992px) { .lp-section { padding: 104px 0; } }
.lp-section--alt { background: var(--bg-alt); }
.lp-section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.lp-section__head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; text-align: left; }
.lp-kicker { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px !important; }
.lp-kicker--light { color: #9eeadf; }
.lp-h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px !important; }
.lp-lead { font-size: 1.08rem; color: var(--ink-2); }
.lp-center { text-align: center; }
.lp-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.lp-checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.lp-checks .lp-ico { color: #fff; background: var(--mint-ink); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
:root[data-theme="dark"] .lp-checks .lp-ico { color: #0b1720; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-checks .lp-ico { color: #0b1720; } }

/* Histoire */
.lp-story__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lp-story__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.lp-story__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--bg-alt); }
.lp-story__media img { width: 100%; height: 100%; object-fit: cover; }
.lp-video-btn {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: #0d1b24; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.lp-video-btn span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #007C91; color: #fff; }
.lp-video-btn:hover { transform: translateY(-1px); }

/* Fonctionnalités */
.lp-features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .lp-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.lp-feature h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.lp-feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.lp-feature__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.lp-feature__ico svg { width: 24px; height: 24px; }
.c1 { background: #e0f4f7; color: #007C91; } .c2 { background: #e0f2fe; color: #0369a1; } .c3 { background: #ede9fe; color: #6d28d9; }
.c4 { background: #fce7f3; color: #be185d; } .c5 { background: #dcfce7; color: #15803d; } .c6 { background: #fef3c7; color: #a16207; }
.c7 { background: #ffe4e6; color: #be123c; } .c8 { background: #e0e7ff; color: #4338ca; } .c9 { background: #ccfbf1; color: #0f766e; }
.c10 { background: #fae8ff; color: #a21caf; } .c11 { background: #f1f5f9; color: #334155; } .c12 { background: #e0f4f7; color: #005B66; }
:root[data-theme="dark"] [class^="c"].lp-feature__ico, :root[data-theme="dark"] .lp-feature__ico { background: var(--surface-2); color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-feature__ico { background: var(--surface-2); color: var(--brand); } }

/* Aperçu à onglets */
.lp-tour__tabs {
  display: flex; gap: 6px; padding: 6px; margin: 0 auto 28px; width: max-content; max-width: 100%;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.lp-tour__tabs::-webkit-scrollbar { display: none; }
.lp-tour__tabs button {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--font-display); color: var(--ink-2); background: transparent; white-space: nowrap;
}
.lp-tour__tabs button[aria-selected="true"] { background: #007C91; color: #fff; box-shadow: 0 6px 16px rgba(0, 124, 145, .3); }
.lp-tour__panel { display: grid; gap: 28px; align-items: center; animation: lp-fade .35s ease; }
.lp-tour__panel[hidden] { display: none; }
@media (min-width: 900px) { .lp-tour__panel { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.lp-tour__text h3 { font-size: 1.5rem; }
.lp-shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #111; }
.lp-shot--mock { background: var(--surface); }
@keyframes lp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lp-mock { padding: 20px; font-size: 14px; }
.lp-mock__patient { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-mock__patient small { display: block; color: var(--muted); }
.lp-mock__patient .tag { margin-left: auto; }
.lp-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #007C91, #00BFA6); color: #fff; font-weight: 700; }
.lp-mock__tabs { display: flex; gap: 6px; margin: 16px 0; overflow: hidden; flex-wrap: wrap; }
.lp-mock__tabs b { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.lp-mock__tabs b.is-on { background: var(--brand-light); color: var(--brand); }
.lp-mock__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.lp-mock__head strong { font-family: var(--font-display); font-size: 1.1rem; }
.lp-mock__head small { color: var(--muted); }
.lp-mock__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-mock__card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.lp-mock__card small { display: block; color: var(--muted); font-size: 12px; }
.lp-mock__card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mock__card em { font-style: normal; font-size: 12px; color: var(--muted); }
.lp-mock__card em.up { color: var(--mint-ink); }
.lp-mock__timeline { margin-top: 16px; border-left: 2px solid var(--brand-light); padding-left: 14px; }
.lp-mock__timeline p { margin: 0 0 10px; position: relative; }
.lp-mock__timeline p::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.lp-mock__timeline time { display: block; font-size: 12px; color: var(--muted); }
.lp-mock__bars { margin-top: 16px; display: grid; gap: 10px; }
.lp-mock__bars div { display: grid; grid-template-columns: 76px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.lp-mock__bars i { height: 10px; border-radius: 999px; background: var(--bg-alt); position: relative; overflow: hidden; }
.lp-mock__bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #007C91, #00BFA6); }
.lp-mock__bars b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .lp-mock { padding: 14px; } .lp-mock__card { padding: 9px; } .lp-mock__card strong { font-size: .98rem; } }

/* Spécialités */
.lp-specs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.lp-spec {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.lp-spec__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-light); color: var(--brand); }
.lp-spec__ico svg { width: 23px; height: 23px; }
.lp-spec h3 { font-size: 1.08rem; margin-top: 6px; }
.lp-spec p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.lp-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brand); }
.lp-spec:hover .lp-more .lp-ico { transform: translateX(3px); }
.lp-more .lp-ico { transition: transform .2s; }
/* Carte de conclusion de la grille des spécialités (13 modules + cette carte = grille complète sur 4 colonnes). */
.lp-spec--cta { background: linear-gradient(135deg, var(--brand-light), var(--surface)); border-style: dashed; }
@media (min-width: 1000px) { .lp-spec--cta { grid-column: span 3; } }

/* Étapes */
.lp-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lp-steps span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #007C91; color: #fff; font: 800 1.1rem var(--font-display); margin-bottom: 14px; }
.lp-steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lp-steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Sécurité */
.lp-security { background: radial-gradient(1200px 500px at 90% -10%, #0b6e7d 0%, transparent 60%), linear-gradient(160deg, #04323a, #06252d 60%, #071c24); color: #e7f4f6; }
.lp-security .lp-h2 { color: #fff; }
.lp-security .lp-lead { color: #c5dde2; }
.lp-security__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .lp-security__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.lp-sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-sec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-sec-list li { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.lp-sec-list > li > svg { width: 26px; height: 26px; flex: none; color: #5eead4; margin-top: 2px; }
.lp-sec-list h3 { color: #fff; font-size: 1.02rem; margin-bottom: 4px; }
.lp-sec-list p { margin: 0; color: #bcd3d8; font-size: .93rem; }

/* Tarifs */
.lp-billing { display: inline-flex; gap: 4px; padding: 5px; margin-top: 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lp-billing button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 600 .95rem var(--font-display); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.lp-billing button.is-on { background: #007C91; color: #fff; }
.lp-billing em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; }
.lp-plans { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .lp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-plans__fallback { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.lp-plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.lp-plan--featured { border: 2px solid #007C91; box-shadow: 0 24px 60px rgba(0, 124, 145, .22); }
@media (min-width: 900px) { .lp-plan--featured { transform: translateY(-10px); } }
.lp-plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: #007C91; color: #fff; font: 700 .78rem var(--font-display); white-space: nowrap; }
.lp-plan h3 { font-size: 1.35rem; }
.lp-plan__desc { color: var(--muted); font-size: .93rem; margin: 6px 0 18px; min-height: 2.8em; }
.lp-plan__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--ink); }
.lp-plan__price small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.lp-plan__per { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.lp-plan__trial { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .82rem; }
.lp-plan ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; flex: 1; }
.lp-plan li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.lp-plan li .lp-ico { color: var(--mint-ink); margin-top: 3px; }
.lp-plan .lp-btn { width: 100%; }

/* Blog & aide */
.lp-posts { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lp-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-post {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important;
  transition: transform .2s, box-shadow .2s;
}
.lp-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-post__tag { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-light); color: var(--brand); }
.lp-post h3 { font-size: 1.1rem; }
.lp-post p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.lp-post time { font-size: .85rem; color: var(--muted); }
.lp-help {
  margin-top: 28px; padding: 26px; border-radius: 22px; display: grid; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--brand-light), var(--surface)); border: 1px solid var(--line);
}
@media (min-width: 1000px) { .lp-help { grid-template-columns: 1fr 1.4fr auto; } }
.lp-help__intro { display: flex; gap: 14px; align-items: center; }
.lp-help__intro h3 { font-size: 1.2rem; }
.lp-help__intro p { margin: 2px 0 0; color: var(--muted); }
.lp-help__ico { width: 44px; height: 44px; color: var(--brand); flex: none; }
.lp-help__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-help__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.lp-help__links a:hover { border-color: var(--brand); color: var(--brand); }

/* FAQ */
.lp-faq { max-width: 860px; }
.lp-faq__list { display: grid; gap: 12px; }
.lp-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lp-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .lp-ico { transition: transform .2s; color: var(--brand); width: 20px; height: 20px; }
.lp-faq details[open] summary .lp-ico { transform: rotate(180deg); }
.lp-faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* Appel final */
.lp-cta { padding: 80px 0; background: linear-gradient(120deg, #005B66, #007C91 50%, #00a892); color: #fff; text-align: center; position: relative; overflow: hidden; }
.lp-cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -260px; right: -140px; }
.lp-cta__in { position: relative; }
.lp-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.lp-cta p { color: #e3f6f5; font-size: 1.1rem; }

/* Pied de page */
.lp-footer { background: #071a22; color: #b9ccd3; padding: 64px 0 28px; font-size: .95rem; }
.lp-footer .lp-brand { color: #fff !important; }
.lp-footer .lp-brand__name b { color: #5fd0de; }
.lp-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.lp-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .lp-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .lp-footer__brand { grid-column: auto; } }
.lp-footer__brand p { margin-top: 14px; max-width: 360px; }
.lp-footer__contact { display: grid; gap: 6px; }
.lp-footer__contact a, .lp-footer__contact span { display: inline-flex; align-items: center; gap: 8px; }
.lp-footer h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-footer a { color: #cfe0e5; text-decoration: none; }
.lp-footer ul a { display: inline-flex; align-items: center; min-height: 36px; }
.lp-footer a:hover { color: #fff; text-decoration: underline; }
.lp-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }
.lp-footer__bottom p { margin: 0; }

/* Vidéo */
.lp-dialog { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.lp-dialog::backdrop { background: rgba(4, 16, 22, .82); }
.lp-dialog video { width: 100%; border-radius: 18px; }
.lp-dialog__close { position: absolute; top: -54px; right: 0; background: #fff; color: #0d1b24; border: 0; }

/* Apparition au défilement */
.lp-js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.lp-js .lp-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .lp-js .lp-reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Pages légales (terms / privacy)
   ===================================================================== */
.lp-header__tools--end { margin-left: auto; }
.lp-legal-hero { padding: 56px 0 36px; background: linear-gradient(160deg, var(--hero-a), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.lp-legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; margin: 8px 0 10px; }
.lp-legal-hero p { color: var(--ink-2); max-width: 760px; }
.lp-legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 0 !important; }
.lp-crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 6px !important; }
.lp-crumbs a { color: var(--muted); }
.lp-legal { display: grid; gap: 40px; padding: 44px 0 80px; }
@media (min-width: 992px) { .lp-legal { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.lp-toc { align-self: start; }
@media (min-width: 992px) { .lp-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.lp-toc h2 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.lp-toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.lp-toc a:hover, .lp-toc a.is-active { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 991px) {
  .lp-toc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
  .lp-toc ol { border: 0; grid-template-columns: 1fr; }
  .lp-toc a { border: 0; padding: 8px 4px; min-height: 40px; }
}
.lp-prose { max-width: 780px; color: var(--ink-2); font-size: 1.02rem; }
.lp-prose h2 { font-size: 1.45rem; margin: 44px 0 12px; padding-top: 4px; color: var(--ink); }
.lp-prose h2:first-of-type { margin-top: 0; }
.lp-prose h3 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--ink); }
.lp-prose ul, .lp-prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.lp-prose li { margin-bottom: .4rem; }
.lp-prose strong { color: var(--ink); }
.lp-prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .95rem; }
.lp-prose th, .lp-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lp-prose th { background: var(--bg-alt); color: var(--ink); font-family: var(--font-display); }
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.lp-table-wrap table { margin: 0; }
.lp-notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; margin-bottom: 28px;
  background: var(--warn-bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.lp-notice svg { width: 22px; height: 22px; flex: none; color: var(--warn); margin-top: 2px; }
.lp-notice p { margin: 0; }
.lp-summary { padding: 20px 22px; border-radius: 16px; background: var(--brand-light); border: 1px solid var(--line); margin-bottom: 28px; }
.lp-summary h2 { margin: 0 0 8px !important; font-size: 1.1rem !important; }
.lp-summary ul { margin: 0; }
.lp-print { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }

@media print {
  .lp-header, .lp-footer, .lp-toc, .lp-print, .lp-skip { display: none !important; }
  .lp-legal { display: block; padding: 0; }
  body.lp { background: #fff; color: #000; }
}
