/* ============================================================================
   Landing marketing (landing.html) : page SÉPARÉE de l'app.
   Chargée avec 01-tokens + 02-base + 03-shell + 17-premium, puis ce fichier.
   On RÉUTILISE les composants de l'app : `.header`, `.logo`/`.logo-accent`,
   `.switch` (thème), `.pill`/`.pill-accent`/`.pill-ghost` (boutons),
   `.prem-badge` (badge or), `.prem-cta` (CTA or). Ici : UNIQUEMENT le layout
   spécifique à la landing (hero, sections, feature rows, tarifs). Tokens réutilisés,
   aucun nouveau token. Classes préfixées `lp-`. NE PAS inclure dans index.html.
   ============================================================================ */

/* Défilement fluide : géré en JS (ease-in-out, durée contrôlée) dans landing.html. */

/* Nav marketing : inline sur desktop, en DRAWER latéral sur mobile.
   Le drawer RÉUTILISE le composant de l'app (.acct/.acct-menu/.acct-scrim/.acct-item de 03-shell) :
   ouverture CSS pure via body:has(.acct[open]), fermeture gérée en JS (scrim/croix/lien/Échap). */
.lp-nav { display: none; gap: 1.3rem; margin-inline-start: 1.6rem; color: var(--text-secondary); font-size: 0.9rem; }
.lp-nav a:hover { color: var(--text-primary); }
.lp-menu { display: none; } /* burger (details.acct) : mobile seulement */
.lp-lang { display: none; } /* langue dans le header : desktop seulement (mobile = dans le drawer) */
@media (min-width: 820px) { .lp-nav { display: flex; } .lp-lang { display: inline-flex; } }
@media (max-width: 819px) { .lp-menu { display: inline-flex; } }
/* "Se connecter" : dans le header sur desktop, dans le drawer (.acct-login) sur mobile, comme la nav/langue. */
.lp-login { display: none; padding: 0.4rem 1.1rem; font-size: 0.9rem; }
@media (min-width: 820px) { .lp-login { display: inline-flex; align-items: center; } }
.acct-login { display: block; text-align: center; margin: 0.1rem 0 0.4rem; }
/* Drawer : composant .acct-menu de l'app (largeur app, à peine réduite). La langue vit DANS le drawer. */
.acct-menu { width: min(300px, 82vw); }
.acct-menu a.acct-item { text-decoration: none; color: inherit; }

/* Bouton "haut de page" : même visuel que le FAB .fab de l'app (rond, accent, ombre), flèche vers le haut. */
.lp-totop { position: fixed; inset-inline-end: 1.15rem; bottom: calc(1.15rem + env(safe-area-inset-bottom)); z-index: 950; width: 48px; height: 48px; border: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease; }
.lp-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.lp-totop:hover { background: var(--accent-hover); }
.lp-totop svg { width: 22px; height: 22px; }
/* Le shine OR du CTA premium vit dans 17-premium.css (partagé app + landing), pas ici. */

/* ============================================================ PRIMITIVES LAYOUT */
.lp-sec { padding: clamp(2.6rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3rem); }
.lp-sec--alt { background: var(--bg-secondary); border-block: 1px solid var(--header-border); }
.lp-in { max-width: 1060px; margin: 0 auto; }
.lp-narrow { max-width: 700px; margin: 0 auto; }
.lp-center { text-align: center; }
.lp-sec-title { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; margin-bottom: 2rem; }
.lp-sec-title p { color: var(--text-secondary); max-width: 54ch; }

.lp-h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; }
.lp-h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
.lp-lead { color: var(--text-secondary); font-size: clamp(1rem, 1.4vw, 1.16rem); max-width: 56ch; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.lp-reassure { color: var(--text-secondary); font-size: 0.85rem; }

/* --- Cadres autour des vraies captures --- */
.lp-bframe { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--bg-card); }
.lp-bbar { display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--header-border); }
.lp-bbar i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--border); flex: 0 0 auto; }
.lp-burl { margin-inline-start: 0.5rem; font-size: 0.72rem; color: var(--text-secondary); background: var(--bg-secondary); border-radius: var(--radius-pill); padding: 0.18rem 0.8rem; }
.lp-bframe img { width: 100%; height: auto; aspect-ratio: 1280 / 860; } /* aspect-ratio = réserve l'espace (pas de décalage au lazy-load -> ancres OK) */
.lp-pframe { width: min(280px, 100%); border: 9px solid #0a0a0a; border-radius: 2.4rem; overflow: hidden; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42); background: #000; margin-inline: auto; }
body.light-theme .lp-pframe { border-color: #cfd2d8; }
.lp-pframe img { width: 100%; height: auto; aspect-ratio: 500 / 1000; } /* aspect-ratio = réserve l'espace (feature rows lazy) -> layout stable, scroll d'ancre correct */
.lp-dark-only { display: block; }
.lp-light-only { display: none; }
body.light-theme .lp-dark-only { display: none; }
body.light-theme .lp-light-only { display: block; }

/* ============================================================ HERO ========== */
.lp-hero { position: relative; text-align: center; }
.lp-hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 55% at 50% 0%, rgba(var(--accent-rgb), 0.2), transparent 70%); }
.lp-hero .lp-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.lp-hero .lp-in > * { max-width: 100%; }
.lp-hero .lp-lead { max-width: min(54ch, 100%); }
.lp-shot { width: min(880px, 100%); margin-top: 1.6rem; }
.lp-shot-cap { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.7rem; }

/* ============================================================ PROBLÈME ====== */
.lp-prob { text-align: center; }
.lp-prob p { color: var(--text-secondary); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 0.8rem; }
.lp-em { color: var(--text-primary); font-weight: 600; }

/* ============================================================ ÉTAPES ======== */
.lp-steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.lp-step { display: flex; flex-direction: column; gap: 0.4rem; } /* visuel = .card (réutilisé) */
.lp-step-n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-muted); color: var(--accent-text); font-family: var(--font-title); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lp-step h3 { font-size: 1.05rem; }
.lp-step p { color: var(--text-secondary); font-size: 0.9rem; }
@media (min-width: 780px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================ FEATURE ROWS == */
.lp-rows { display: flex; flex-direction: column; gap: 1.4rem; }
.lp-row { display: grid; gap: 1.6rem; align-items: center; grid-template-columns: 1fr; }
.lp-txt { max-width: 46ch; }
.lp-txt h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.lp-txt p { color: var(--text-secondary); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.lp-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; padding: 0.28rem 0.7rem; border-radius: var(--radius-pill); border: 1px solid var(--header-border); background: var(--bg-secondary); color: var(--text-secondary); }
@media (min-width: 780px) {
  .lp-row { grid-template-columns: 1fr 1fr; gap: 2.6rem; }
  .lp-row--flip .lp-media { order: 2; }
}
/* Mobile : texte centré (le téléphone est déjà centré) → pas de texte qui pend à gauche. */
@media (max-width: 779px) {
  .lp-row .lp-txt { text-align: center; margin-inline: auto; }
  .lp-row .lp-chips { justify-content: center; }
}

/* ============================================================ LISTE FONCTIONS */
.lp-flist { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
.lp-fi { display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--header-border); border-radius: var(--radius-md); padding: 0.65rem 0.75rem; }
.lp-fi-ic { flex: 0 0 auto; font-size: 1rem; }
@media (min-width: 620px) { .lp-flist { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================ INSTALLATION == */
.lp-install-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
/* .lp-pf : visuel = .card (réutilisé) */
.lp-pf-h { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-title); font-weight: 600; margin-bottom: 0.7rem; }
.lp-pf-ic { font-size: 1.2rem; }
.lp-pf ol { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 0.5rem; }
.lp-pf ol li { counter-increment: s; display: flex; gap: 0.55rem; align-items: center; font-size: 0.88rem; color: var(--text-secondary); }
.lp-pf ol li::before { content: counter(s); flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent-muted); color: var(--accent-text); font-family: var(--font-title); font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }
.lp-install-cta { text-align: center; margin-top: 1.3rem; }
.lp-note { color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.6rem; }
@media (min-width: 780px) { .lp-install-cards { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================ TARIFS ======== */
.lp-cmp-wrap { overflow-x: auto; border: 1px solid var(--header-border); border-radius: var(--radius-card); margin-bottom: 1.6rem; }
/* Tableau comparatif Free/Premium : on RÉUTILISE .prem-cmp / .prem-yes / .prem-no (17-premium.css). */
/* "Illimité" (mot, pas le symbole ∞ de l'app) : la taille 1.35rem des lignes surlignées est trop grosse ici. */
.prem-cmp tr.hi td:nth-child(3) { font-size: 1rem; }

.lp-plans { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
.lp-plan { display: flex; flex-direction: column; gap: 0.6rem; position: relative; } /* visuel = .card (réutilisé) */
.lp-plan-name { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; }
.lp-amt { font-family: var(--font-title); font-weight: 700; font-size: 1.9rem; }
.lp-amt small { font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); }
.lp-plan-sub { color: var(--text-secondary); font-size: 0.82rem; min-height: 1.2em; }
/* Le CTA du plan (pill ou prem-cta réutilisés) : pleine largeur, collé en bas de la carte. */
.lp-plan .pill, .lp-plan .prem-cta { width: 100%; margin-top: auto; }
/* Carte annuel = le recommandé -> halo OR (premium). Le badge « Recommandé » est or, le deal « -55% » bleu,
   le dégradé reste réservé au CTA. */
.lp-plan--hot { border-color: var(--prem-gold); box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.45), var(--shadow-card); background: linear-gradient(180deg, rgba(245, 197, 24, 0.09), var(--bg-card) 55%); }
.lp-plan-tag { position: absolute; top: -0.7rem; inset-inline-start: 1.1rem; }
/* Lifetime en promo : carte PLATE (seul l'annuel doré est mis en avant). Prix régulier barré en gris
   neutre (PAS de rouge). Badge -55% en OR CONTOUR (fond carte + bordure/écriture or) : reste premium
   mais discret, ne vole pas la vedette à l'annuel (badge doré plein). */
/* Prix barré + prix courant sur la MÊME ligne (nowrap), le barré plus petit. */
.lp-amt--promo { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: nowrap; white-space: nowrap; }
.lp-amt--promo .lp-price-old { font-size: 1rem; font-weight: 700; color: var(--text-secondary); text-decoration: line-through; }
/* Bloc « pourquoi l'annuel » : intro + 3 arguments, sous les plans (au-dessus de la réassurance). */
.lp-why { text-align: center; margin-top: 1.3rem; }
.lp-why-title { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); margin: 0 0 0.35rem; }
.lp-why-list { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; margin: 0; max-width: 34rem; margin-inline: auto; }
.lp-plan-reassure { text-align: center; color: var(--text-secondary); font-size: 0.82rem; margin-top: 1.2rem; }
/* Desktop (on voit les 3 d'un coup) : recommandé AU MILIEU (focal). Mobile = ordre DOM (annuel 1er = le
   plus vu). DOM = Annuel, À vie, Mensuel -> desktop réordonné en À vie, Annuel, Mensuel via `order`. */
@media (min-width: 780px) {
  .lp-plans { grid-template-columns: repeat(3, 1fr); }
  .lp-plans > :nth-child(1) { order: 2; } /* Annuel -> centre */
  .lp-plans > :nth-child(2) { order: 1; } /* À vie -> gauche */
  .lp-plans > :nth-child(3) { order: 3; } /* Mensuel -> droite */
}

/* ============================================================ FAQ =========== */
.lp-faq-title { text-align: center; margin-bottom: 1.2rem; }
.lp-faq { display: flex; flex-direction: column; gap: 0.7rem; }
.lp-faq details { background: var(--bg-card); border: 1px solid var(--header-border); border-radius: var(--radius-md); padding: 0.4rem 0.9rem; }
.lp-faq summary { cursor: pointer; font-family: var(--font-title); font-weight: 600; font-size: 0.95rem; list-style: none; padding: 0.35rem 0; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq p { color: var(--text-secondary); font-size: 0.9rem; padding: 0.1rem 0 0.5rem; }

/* ============================================================ CTA / FOOTER == */
.lp-final { text-align: center; background: radial-gradient(70% 100% at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%); }
.lp-final .lp-in { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lp-final .lp-in > * { max-width: 100%; }
/* padding-bottom généreux : laisse de la place au FAB « haut de page » (.lp-totop, fixed bottom-right) pour
   qu'il ne chevauche plus les liens légaux en bas de page. */
.lp-foot { padding: 2rem clamp(1rem, 4vw, 3rem) calc(4.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--header-border); color: var(--text-secondary); font-size: 0.85rem; }
.lp-foot-row { max-width: 1060px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; }
.lp-foot .logo { font-size: 1.1rem; }
.lp-foot a.logo { text-decoration: none; color: inherit; }
.lp-foot-sp { margin-inline-start: auto; }

/* Liens légaux du footer de la landing (footer -> legal.html). */
.lp-foot-legal { max-width: 1060px; margin: 0.9rem auto 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.lp-foot-legal a { color: var(--text-secondary); text-decoration: none; }
.lp-foot-legal a:hover { color: var(--accent-text); }

/* Ancres de la landing : décalage sous le header fixe (nav depuis legal.html ou clic direct). */
.lp-sec[id] { scroll-margin-top: calc(var(--header-height) + 0.5rem); }

/* ================================================ PAGE LÉGALE (legal.html) == */
/* Réutilise le header de la landing (.lp-nav), les folds .set-fold de l'app et .pill. */
@media (prefers-reduced-motion: no-preference) { .lg-doc { scroll-behavior: smooth; } }
.header a.logo { text-decoration: none; color: inherit; }
/* Titre + bouton retour : sous le header fixe. */
.lg-head { max-width: 760px; margin: var(--header-height) auto 0; padding: 1.4rem clamp(1rem, 5vw, 2rem) 0.4rem; }
/* Retour = composant .bac-crumb de l'app (flèche ‹ + typo) ; on retire juste le soulignement du lien. */
.lg-back { text-decoration: none; margin-bottom: 0.9rem; }
.lg-title { font-family: var(--font-title); font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.lg-main { max-width: 760px; margin: 0 auto; padding: 1.2rem clamp(1rem, 5vw, 2rem) 3rem; }
/* Sections légales = folds OUVERTS, bien délimités : titre net, trait sous le titre, espacement. */
.lg-main .set-fold { scroll-margin-top: calc(var(--header-height) + 0.6rem); margin-bottom: 1.6rem; padding: 1rem 1.15rem; }
.lg-main .set-fold > summary { display: flex; width: 100%; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
/* Le trait sous le titre n'apparaît QUE quand la section est ouverte (sinon carte fermée = "bourlet"). */
.lg-main .set-fold[open] > summary { padding-bottom: 0.6rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--header-border); }
.lg-main .set-fold-body { font-size: 0.92rem; line-height: 1.65; overflow-wrap: break-word; }
