/* ==========================================================================
   Le Projet 'V' — POC scroll-world
   Thème + blocs statiques (contact / pied de page) posés APRÈS le monde 3D.

   Le moteur (scrub-engine.js) injecte son propre CSS dans un @layer sw, et
   toutes ses couches (ciel, scène, copie, barre de nav, rail) sont en
   position:fixed. Le bloc .lpv-outro passe donc au-dessus en z-index 70
   (au-dessus de .sw-scrollbar qui est à 60) : il remonte comme un rideau
   opaque en fin de défilement. Ne pas baisser ce z-index.
   ========================================================================== */

:root,
.sw-root {
  /* Palette — «craie / encre / ardoise» + 5 accents de section.
     --sw-bg DOIT rester identique au fond des dioramas générés en Phase 2,
     sinon les images flottantes se détacheront du fond de page. */
  --sw-bg: #F2EFE9;
  --sw-ink: #16161A;
  --sw-ink-soft: #6E6A63;
  --sw-accent: #D8452A;

  --sw-font-display: "Archivo", "Segoe UI", -apple-system, system-ui, sans-serif;
  --sw-font-body: "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;

  /* Accents de section (repris à l'identique dans index.html) */
  --lpv-laiton: #C79A54;
  --lpv-vermillon: #D8452A;
  --lpv-indigo: #3B4E8C;
  --lpv-sarcelle: #3E7C74;
  --lpv-magenta: #A8497E;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sw-bg);
  color: var(--sw-ink);
  font-family: var(--sw-font-body);
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Bloc final : coordonnées + services + mentions.
   -------------------------------------------------------------------------- */

.lpv-outro {
  position: relative;
  z-index: 70;
  background: var(--sw-bg);
  border-top: 1px solid color-mix(in srgb, var(--sw-ink) 12%, transparent);
  padding: clamp(56px, 9vh, 110px) clamp(18px, 5vw, 64px) clamp(32px, 5vh, 56px);
}

.lpv-outro__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.lpv-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-accent);
}

.lpv-outro__title {
  font-family: var(--sw-font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 14px 0 0;
  max-width: 18ch;
}

.lpv-outro__lead {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--sw-ink) 76%, var(--sw-ink-soft));
  max-width: 52ch;
}

.lpv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 6vh, 68px);
}

.lpv-col h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-ink-soft);
  margin: 0 0 16px;
}

.lpv-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lpv-col li {
  padding: 5px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.lpv-col a {
  color: var(--sw-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sw-accent) 45%, transparent);
  transition: color 0.2s, border-color 0.2s;
}

.lpv-col a:hover,
.lpv-col a:focus-visible {
  color: var(--sw-accent);
  border-color: var(--sw-accent);
}

.lpv-col address {
  font-style: normal;
  line-height: 1.6;
}

.lpv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(36px, 5vh, 56px);
}

.lpv-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.lpv-btn--primary {
  background: var(--sw-accent);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sw-accent) 34%, transparent);
}

.lpv-btn--ghost {
  color: var(--sw-ink);
  border: 1px solid color-mix(in srgb, var(--sw-ink) 22%, transparent);
}

.lpv-btn:hover,
.lpv-btn:focus-visible {
  transform: translateY(-2px);
}

.lpv-btn--ghost:hover,
.lpv-btn--ghost:focus-visible {
  border-color: var(--sw-accent);
  color: var(--sw-accent);
}

.lpv-legal {
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--sw-ink) 10%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--sw-ink-soft);
}

/* Bandeau de démonstration — À RETIRER avant toute mise en ligne réelle. */
.lpv-poc {
  position: relative;
  z-index: 71;
  background: var(--sw-ink);
  color: color-mix(in srgb, #fff 82%, transparent);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 14px clamp(18px, 5vw, 64px);
  text-align: center;
}

.lpv-poc strong {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lpv-btn { transition: none; }
  .lpv-btn:hover, .lpv-btn:focus-visible { transform: none; }
}
