/* Page de présentation publique (dist/presentation.html), servie sur « / »
   aux visiteurs sans compte. Indépendante des styles de l'appli : clair par
   défaut (blanc, bleu, rouge), sombre en bleu nuit selon le réglage gardé par
   core/preferences.js (html[data-theme]). */
html[data-theme="clair"] {
  --lp-bg: #ffffff;
  --lp-soft: #f2f6ff;
  --lp-panel: #ffffff;
  --lp-line: #dbe4f3;
  --lp-ink: #13204a;
  --lp-muted: #4a5a7d;
  --lp-accent: #1f7bff;
  --lp-accent-deep: #0f4fd0;
  --lp-red: #d51821;
  --lp-primary: linear-gradient(135deg, #2b8dff, #0f4fd0);
  --lp-primary-ink: #ffffff;
  --lp-hero-art: url("../img/entetes/hall.webp");
  --lp-hero-veil: linear-gradient(
    180deg,
    #ffffffb8 0%,
    #ffffffe6 55%,
    #ffffff 100%
  );
  --lp-shadow: 0 18px 40px #13204a24;
  color-scheme: light;
}
html[data-theme="sombre"] {
  --lp-bg: #0a1629;
  --lp-soft: #0e1d36;
  --lp-panel: #13223b;
  --lp-line: #2a3b5a;
  --lp-ink: #f5f8ff;
  --lp-muted: #b7c5dd;
  --lp-accent: #5ab0ff;
  --lp-accent-deep: #2f7bff;
  --lp-red: #ff5a63;
  --lp-primary: linear-gradient(110deg, #168dff 0%, #18cbd5 48%, #39ed98 100%);
  --lp-primary-ink: #031b25;
  --lp-hero-art: url("../img/entetes/hall-nuit.webp");
  --lp-hero-veil: linear-gradient(
    180deg,
    #0a1629a6 0%,
    #0a1629e0 55%,
    #0a1629 100%
  );
  --lp-shadow: 0 18px 40px #00000066;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body.lp {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font:
    500 17px/1.55 Nunito,
    system-ui,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
.lp img {
  max-width: 100%;
}
.lp a {
  color: inherit;
}
.lp h1,
.lp h2,
.lp h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 900;
}

/* Images clair / sombre des captures de l'appli. */
html[data-theme="clair"] .lp-night,
html[data-theme="sombre"] .lp-day {
  display: none;
}

/* En-tête */
.lp-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--lp-bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

/* Boutons */
.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.lp-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.lp-button:focus-visible {
  outline: 3px solid var(--lp-accent);
  outline-offset: 3px;
}
.lp a.lp-primary {
  background: var(--lp-primary);
  color: var(--lp-primary-ink);
  box-shadow: 0 8px 22px #1f7bff40;
}
.lp a.lp-ghost {
  border: 2px solid var(--lp-accent);
  color: var(--lp-accent);
  background: transparent;
}
.lp-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

/* Haut de page */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
  padding: 56px max(16px, calc((100% - 1120px) / 2)) 48px;
  background:
    var(--lp-hero-veil),
    var(--lp-hero-art) center top / cover no-repeat;
}
.lp-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lp-red) 14%, transparent);
  color: var(--lp-red);
  font-size: 14px;
  font-weight: 800;
}
.lp-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -0.02em;
}
.lp-lead {
  max-width: 34em;
  margin: 18px 0 26px;
  color: var(--lp-muted);
  font-size: clamp(17px, 2.2vw, 20px);
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-center {
  justify-content: center;
}
.lp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--lp-muted);
  font-size: 15px;
}
.lp-facts b {
  color: var(--lp-ink);
  font-weight: 900;
}
.lp-hero-phones {
  position: relative;
  min-height: 520px;
}
.lp-phone {
  margin: 0;
  overflow: hidden;
  border: 8px solid #13204a;
  border-radius: 34px;
  background: #13204a;
  box-shadow: var(--lp-shadow);
  aspect-ratio: 540 / 919;
}
.lp-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-hero-phones .lp-phone {
  position: absolute;
  width: min(270px, 48%);
}
.lp-phone-front {
  left: 8%;
  top: 0;
  z-index: 1;
}
.lp-phone-back {
  right: 6%;
  top: 46px;
  transform: rotate(5deg);
  opacity: 0.96;
}

/* Sections */
.lp-section {
  padding: 56px max(16px, calc((100% - 1120px) / 2));
}
.lp-section h2 {
  margin-bottom: 28px;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lp-feature {
  padding: 22px;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-panel);
  box-shadow: 0 6px 18px #13204a0f;
}
.lp-feature h3 {
  margin: 12px 0 8px;
  font-size: 19px;
}
.lp-feature p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 16px;
}
.lp-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--lp-soft);
  font-size: 26px;
}

/* Captures */
.lp-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.lp-shots figure {
  margin: 0;
}
.lp-shots figcaption {
  margin-top: 12px;
  font-weight: 800;
  text-align: center;
}

/* Fin de page */
.lp-end {
  text-align: center;
  background: var(--lp-soft);
}
.lp-end p {
  max-width: 34em;
  margin: -12px auto 24px;
  color: var(--lp-muted);
}
.lp-footer {
  padding: 26px max(16px, calc((100% - 1120px) / 2));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--lp-line);
  color: var(--lp-muted);
  font-size: 13px;
  text-align: center;
}
.lp-footer p {
  max-width: 46em;
  margin: 0 auto;
}

/* Pages de texte : confidentialité, suppression du compte */
.lp-legal {
  max-width: 46em;
  margin: 0 auto;
  padding: 40px 16px 56px;
}
.lp-legal h1 {
  font-size: clamp(30px, 5vw, 42px);
}
.lp-legal h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}
.lp-legal p,
.lp-legal li {
  color: var(--lp-muted);
}
.lp-legal b {
  color: var(--lp-ink);
}
.lp-legal ul,
.lp-legal ol {
  padding-left: 1.3em;
}
.lp-legal li + li {
  margin-top: 8px;
}
.lp-legal a,
.lp-footer a {
  color: var(--lp-accent);
  font-weight: 700;
}
.lp-legal-date {
  margin-top: 8px;
  font-size: 14px;
}
.lp-footer p + p {
  margin-top: 8px;
}

/* Tablette */
@media (max-width: 900px) {
  .lp-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .lp-shots figure {
    flex: 0 0 min(240px, 62vw);
    scroll-snap-align: center;
  }
}

/* Téléphone */
@media (max-width: 650px) {
  body.lp {
    font-size: 16px;
  }
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 36px;
    text-align: center;
  }
  .lp-lead {
    margin-inline: auto;
  }
  .lp-actions {
    flex-direction: column;
  }
  .lp-actions .lp-button {
    width: 100%;
  }
  .lp-facts {
    justify-content: center;
  }
  .lp-hero-phones {
    min-height: 0;
    height: min(420px, 108vw);
    margin-top: 18px;
  }
  .lp-hero-phones .lp-phone {
    width: min(210px, 52vw);
  }
  .lp-phone-front {
    left: 12%;
  }
  .lp-phone-back {
    right: 8%;
    top: 30px;
  }
  .lp-features {
    grid-template-columns: 1fr;
  }
  .lp-section {
    padding-block: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-button {
    transition: none;
  }
  .lp-button:hover {
    transform: none;
  }
}
