/* ==========================================================================
   PIAM — Landing page publique (module "landing")
   Charge après piam.css : réutilise les tokens (--brand --accent --bg --surface
   --ink --muted --line ...) et les composants génériques (.btn .badge .ic),
   ajoute tout ce qui est spécifique à la page marketing. Classes préfixées
   `lp-` pour ne jamais entrer en collision avec les classes du back-office.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.lp { overflow-x: hidden; background: var(--bg); }
body.lp.lp-no-scroll { overflow: hidden; }

.lp-section-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lp-kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.lp-section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.lp-section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 8px; }

section[id] { scroll-margin-top: 84px; }

/* -- Reveal au scroll (dégradé si JS absent : .js ajouté par le layout) -- */
.js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .lp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .lp-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.lp-header {
  /* Pas de `backdrop-filter` ici : un filtre sur cet ancêtre en ferait le containing block de
     `.lp-nav` (position: fixed, panneau mobile plein écran), ce qui casse à la fois sa hauteur
     (calculée par rapport à la boîte ~68px du header plutôt qu'au viewport) et son opacité
     (le panneau hériterait du flou appliqué à tout le sous-arbre). Fond quasi-opaque à la place. */
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.lp-header--scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
.lp-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: .01em; }
.lp-brand:hover { text-decoration: none; }
.lp-brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent);
}

.lp-burger {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; position: relative; flex: none;
}
.lp-burger .lp-ic-close { display: none; }
.lp-burger.open .lp-ic-menu { display: none; }
.lp-burger.open .lp-ic-close { display: block; }

.lp-nav { display: flex; align-items: center; gap: 26px; }
.lp-nav > a { color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.lp-nav > a:hover { color: var(--ink); text-decoration: none; }
.lp-nav > a[aria-current="page"] { color: var(--accent); }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.lp-theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.lp-theme-toggle:hover { background: var(--surface-2); }
.lp-theme-toggle .ic { width: 18px; height: 18px; }
.lp-theme-toggle .lp-ic-moon { display: none; }
:root[data-theme="dark"] .lp-theme-toggle .lp-ic-sun { display: none; }
:root[data-theme="dark"] .lp-theme-toggle .lp-ic-moon { display: block; }

/* -- Menu mobile ---------------------------------------------------------- */
@media (max-width: 899px) {
  .lp-burger { display: inline-grid; }
  .lp-nav {
    /* Hauteur explicite (plutôt que `bottom:0`) : .lp-header a un `backdrop-filter`, ce qui en fait le
       containing block de ses descendants `position: fixed` — un `inset`/`bottom` s'y calculerait par
       rapport à la boîte du header (~68px) et non du viewport, réduisant le panneau à un filet. */
    position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px);
    z-index: 90; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 18px 20px 28px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease); overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .lp-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .lp-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .lp-nav-actions { flex-direction: column; align-items: stretch; margin: 16px 0 0; gap: 10px; }
  .lp-nav-actions .btn { width: 100%; }
  .lp-theme-toggle { align-self: flex-end; margin-bottom: 4px; }
}
@media (min-width: 900px) {
  .lp-burger { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.lp-hero { padding: 52px 0 64px; overflow: hidden; }
.lp-hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
.lp-eyebrow { margin-bottom: 16px; }
.lp-hero-text h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 16px;
}
.lp-lead { font-size: clamp(1rem, .94rem + .3vw, 1.15rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 26px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.lp-hero-cta .btn .ic { width: 16px; height: 16px; }
.lp-trustbar {
  display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-top: 18px; border-top: 1px dashed var(--line-2); margin: 0;
}
.lp-trustbar span[aria-hidden] { color: var(--line-2); }
.lp-hero-media img {
  width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); display: block; aspect-ratio: 1536 / 1024; object-fit: cover;
}

@media (min-width: 980px) {
  .lp-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ---------------------------------------------------------------------- */
/* Pourquoi PIAM                                                           */
/* ---------------------------------------------------------------------- */
.lp-why { padding: 8px 0 56px; }
.lp-why-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.lp-why-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
}
.lp-why-ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.lp-why-item h3 { margin-bottom: 8px; }
@media (min-width: 760px) { .lp-why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Fonctionnalités                                                         */
/* ---------------------------------------------------------------------- */
.lp-features { padding: 56px 0; }
.lp-feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 56px; }
.lp-feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.lp-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.lp-feature-ic {
  width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent); background: var(--accent-soft);
  margin-bottom: 14px; box-sizing: content-box;
}
.lp-feature-card h3 { margin-bottom: 6px; font-size: 1.02rem; }
@media (min-width: 640px)  { .lp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* -- Spotlights zig-zag --------------------------------------------------- */
.lp-spotlight {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  padding: 32px 0;
}
.lp-spotlight + .lp-spotlight { border-top: 1px solid var(--line); }
.lp-spotlight-media img {
  width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 3 / 2; object-fit: cover; display: block;
}
.lp-spotlight-text h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin-bottom: 10px; }
.lp-spotlight-text > p { margin-bottom: 16px; }
.lp-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-weight: 550; font-size: .93rem; }
.lp-check-list .ic { color: var(--accent); flex: none; margin-top: 2px; width: 18px; height: 18px; }

@media (min-width: 900px) {
  .lp-spotlight { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .lp-spotlight--reverse .lp-spotlight-media { order: 2; }
  .lp-spotlight--reverse .lp-spotlight-text { order: 1; }
}

/* ---------------------------------------------------------------------- */
/* Confiance / fiscal                                                      */
/* ---------------------------------------------------------------------- */
.lp-trust { padding: 56px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-trust-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.lp-trust-media img {
  width: 100%; max-width: 420px; margin: 0 auto; height: auto; border-radius: var(--r-lg); display: block;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 1 / 1; object-fit: cover;
}
.lp-trust-text h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 14px; }
.lp-trust-text > p { margin-bottom: 14px; max-width: 58ch; }
.lp-honest {
  display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); color: color-mix(in srgb, var(--info) 65%, var(--ink));
  border-radius: var(--r); padding: 12px 14px; font-size: .88rem;
}
.lp-honest .ic { flex: none; margin-top: 2px; color: var(--info); }
.lp-trust-text .lp-check-list { margin-top: 18px; }

@media (min-width: 900px) { .lp-trust-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* ---------------------------------------------------------------------- */
/* Tarifs                                                                  */
/* ---------------------------------------------------------------------- */
.lp-pricing { padding: 56px 0; }
.lp-pricing-empty {
  max-width: 460px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--r-lg); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lp-empty-ic { width: 34px; height: 34px; color: var(--muted); }
.lp-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: stretch; }
.lp-plan-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.lp-plan-card--highlight { border-color: var(--accent); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(-4px); }
.lp-plan-ribbon {
  position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 4px 12px; border-radius: 99px; box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 40%, transparent);
}
.lp-plan-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.lp-plan-desc { font-size: .88rem; min-height: 2.6em; margin-bottom: 14px; }
.lp-plan-price { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.lp-plan-price .muted { font-size: .85rem; font-weight: 600; }
.lp-plan-meta { list-style: none; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lp-plan-meta li, .lp-plan-modules li { display: flex; align-items: center; gap: 9px; font-size: .87rem; color: var(--ink-2); }
.lp-plan-meta .ic { color: var(--muted); flex: none; width: 16px; height: 16px; }
.lp-plan-modules { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-plan-modules .ic { color: var(--accent); flex: none; width: 16px; height: 16px; }
.lp-plan-cta { margin-top: auto; }

@media (min-width: 700px)  { .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-pricing-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ---------------------------------------------------------------------- */
.lp-faq { padding: 56px 0; }
.lp-faq-inner { max-width: 780px; }
.lp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.lp-faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px;
}
.lp-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer;
  padding: 16px 0; font-weight: 650; color: var(--ink); list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::marker { content: ''; }
.lp-faq-chevron { color: var(--muted); flex: none; width: 18px; height: 18px; transition: transform .18s var(--ease); }
.lp-faq-item[open] .lp-faq-chevron { transform: rotate(180deg); }
.lp-faq-answer { padding: 0 0 18px; color: var(--ink-2); max-width: 66ch; }
.lp-faq-answer p { margin: 0; }

/* ---------------------------------------------------------------------- */
/* CTA final                                                               */
/* ---------------------------------------------------------------------- */
.lp-cta-final { padding: 60px 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.lp-cta-final-inner { text-align: center; max-width: 620px; }
.lp-cta-final h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.lp-cta-final > .lp-section-inner > p { color: #C9D6EA; margin-bottom: 26px; }
.lp-cta-final .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.lp-cta-final .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.lp-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 20px; }
.lp-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lp-footer-cols { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
.lp-footer-brand p { max-width: 34ch; margin: 12px 0 16px; font-size: .88rem; }
.lp-social { display: flex; gap: 10px; }
.lp-social a {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: inline-grid; place-items: center;
  color: var(--ink-2);
}
.lp-social a:hover { background: var(--surface-2); text-decoration: none; }
.lp-social svg { width: 17px; height: 17px; }
.lp-footer-col { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.lp-footer-col a { color: var(--ink-2); font-size: .9rem; }
.lp-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2);
}

@media (min-width: 700px)  { .lp-footer-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* ==========================================================================
   Pages statiques (à propos, contact, mentions légales ; la rubrique Actualités a son fichier articles.css) — ajouté 2026-09-23
   ========================================================================== */
.lp-page { padding: 56px 0 80px; }
.lp-page-head { max-width: 720px; margin: 0 auto 40px; }
.lp-page-head .lp-eyebrow { display: block; margin-bottom: 10px; }
.lp-page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 12px; }
.lp-page-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; }
.lp-prose { max-width: 760px; margin: 0 auto; color: var(--ink-2); line-height: 1.7; }
.lp-prose h2 { color: var(--ink); font-size: 1.25rem; margin: 34px 0 12px; }
.lp-prose h2:first-child { margin-top: 0; }
.lp-prose h3 { color: var(--ink); font-size: 1.05rem; margin: 22px 0 8px; }
.lp-prose p { margin-bottom: 14px; }
.lp-prose ul, .lp-prose ol { margin: 0 0 14px; padding-left: 22px; }
.lp-prose li { margin-bottom: 6px; }
.lp-prose strong { color: var(--ink); }
.lp-prose .lp-updated { font-size: .85rem; color: var(--muted); margin-bottom: 30px; }
.lp-prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 20px 0; color: var(--ink); font-style: italic; }

.lp-contact-grid { display: grid; gap: 40px; max-width: 980px; margin: 0 auto; grid-template-columns: 1fr; }
.lp-contact-info { display: flex; flex-direction: column; gap: 18px; }
.lp-contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.lp-contact-info-item .ic { color: var(--accent); flex: none; margin-top: 2px; }
.lp-contact-info-item h3 { font-size: .95rem; margin-bottom: 2px; color: var(--ink); }
.lp-contact-info-item p, .lp-contact-info-item a { color: var(--ink-2); font-size: .92rem; }
.lp-contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 780px) { .lp-contact-grid { grid-template-columns: .85fr 1.15fr; } }

/* Logo PIAM360 (variantes clair / sombre selon le thème) */
.lp-logo { height: 48px; width: auto; }
.lp-footer .lp-logo { height: 52px; }
@media (max-width: 520px) { .lp-header .lp-logo { height: 34px; } }

/* ==========================================================================
   Tarifs : bascule Mensuel / Annuel, cartes lues en base, comparatif — ajouté 2026-09-25
   ========================================================================== */
.lp-billing-toggle {
  display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: -12px auto 30px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px;
}
.lp-billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 20px; border: 0; border-radius: 99px;
  background: transparent; color: var(--ink-2); font: 650 .92rem var(--font); cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.lp-billing-toggle button:hover { color: var(--ink); }
.lp-billing-toggle button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.lp-billing-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-save { font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.lp-save-inline { color: var(--ok); font-weight: 700; }

.lp-pricing[data-period="1"] .lp-p12, .lp-pricing[data-period="12"] .lp-p1 { display: none; }
.lp-plan-sub { font-size: .82rem; margin: -8px 0 14px; min-height: 2.6em; }
.lp-plan-price .lp-p1, .lp-plan-price .lp-p12 { display: inline; }
.lp-plan-inherit { font-size: .82rem; font-weight: 650; color: var(--ink-2); margin: 0 0 10px; }
.lp-plan-meta { margin-bottom: 14px; }
.lp-plan-modules { margin-bottom: 22px; }

.lp-trial-note {
  display: flex; gap: 10px; align-items: flex-start; max-width: 780px; margin: 30px auto 0; padding: 14px 16px;
  background: var(--info-soft); color: color-mix(in srgb, var(--info) 60%, var(--ink)); border-radius: var(--r); font-size: .9rem;
}
.lp-trial-note .ic { flex: none; margin-top: 2px; color: var(--info); }

.lp-compare { max-width: 980px; margin: 28px auto 0; }
.lp-compare > summary {
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 650; color: var(--ink);
}
.lp-compare > summary::-webkit-details-marker { display: none; }
.lp-compare > summary::marker { content: ''; }
.lp-compare[open] > summary .lp-faq-chevron { transform: rotate(180deg); }
.lp-compare .plc-wrap { margin-top: 14px; }

@media (max-width: 520px) {
  .lp-billing-toggle { width: 100%; }
  .lp-billing-toggle button { flex: 1; justify-content: center; padding: 8px 10px; flex-wrap: wrap; row-gap: 2px; }
  .lp-plan-card--highlight { transform: none; }
}

/* Bascule Mensuel / Annuel : le choix actif est surligné en vert */
.lp-billing-toggle { border-color: var(--line-2); }
.lp-billing-toggle button.is-active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(15, 157, 117, .35); }
.lp-billing-toggle button.is-active:hover { color: #fff; }
.lp-billing-toggle button.is-active .lp-save { background: rgba(255, 255, 255, .22); color: #fff; }
