/* ==========================================================================
   Newo — Landing page publique
   Nécessite tokens.css chargé avant ce fichier.
   ========================================================================== */

body { background: var(--navy-950); overflow-x: hidden; }

/* ---------------------------------------------------------------------- */
/* En-tête                                                                  */
/* ---------------------------------------------------------------------- */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--navy-950) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-800);
}

.lp-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-header .brand-logo-img { height: 26px; }

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-btn-ghost, .lp-btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .12s ease, background-color .12s ease, border-color .12s ease;
}

.lp-btn-ghost {
  color: var(--white);
  border-color: var(--navy-600);
  background: transparent;
}
.lp-btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.lp-btn-primary {
  color: var(--on-accent);
  background: linear-gradient(90deg, var(--amber-soft), var(--amber));
}
.lp-btn-primary:hover { filter: brightness(1.06); }

.lp-btn-lg { padding: 13px 26px; font-size: 0.95rem; }

.lp-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--navy-700);
  background: var(--navy-900);
  color: var(--white);
  align-items: center;
  justify-content: center;
}
.lp-menu-toggle svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.lp-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.lp-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 12px;
}

.lp-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 18px;
}

.lp-hero-sub {
  color: var(--fog);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 0 30px;
}

.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-hero-visual { position: relative; }

.lp-route-svg { width: 100%; height: auto; display: block; }

.lp-route-blocks rect {
  fill: var(--navy-900);
  stroke: var(--navy-700);
  stroke-width: 1;
}

.lp-route-path {
  fill: none;
  stroke: url(#lpRouteGradient);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 9 10;
  animation: lp-dash-flow 1.8s linear infinite;
}

@keyframes lp-dash-flow { to { stroke-dashoffset: -38; } }

.lp-hero-badge {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.lp-hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 20%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .lp-route-path { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* Sections génériques                                                      */
/* ---------------------------------------------------------------------- */

.lp-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--navy-800);
}

.lp-section-head { margin-bottom: 28px; max-width: 560px; }

.lp-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--white);
  margin: 0 0 8px;
}

.lp-section-sub { color: var(--fog); font-size: 0.92rem; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Filtre Types                                                             */
/* ---------------------------------------------------------------------- */

.lp-types-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lp-type-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 132px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-700);
  background: var(--navy-900);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background-color .12s ease;
}

/* ~2,5 cm de côté à la résolution web standard (96 px ≈ 2,54 cm) */
.lp-type-chip img,
.lp-type-chip .lp-type-chip-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-800);
  flex-shrink: 0;
}

.lp-type-chip .lp-type-chip-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fog-dim);
}
.lp-type-chip .lp-type-chip-fallback svg { width: 34px; height: 34px; }

.lp-type-chip span { text-align: center; }

.lp-type-chip:hover { border-color: var(--navy-600); color: var(--white); }

.lp-type-chip.active {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, var(--navy-900));
  color: var(--white);
}

/* Puce "Tous" : pas de photo, format plus compact pour rester alignée */
.lp-type-chip[data-type-id=""] { justify-content: center; min-height: 132px; }

/* ---------------------------------------------------------------------- */
/* Mur de géolocalisation                                                   */
/* ---------------------------------------------------------------------- */

.lp-geo-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
  padding: 40px 20px;
}

.lp-geo-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cyan) 14%, var(--navy-900));
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  color: var(--cyan);
  display: grid;
  place-content: center;
  margin-bottom: 18px;
}
.lp-geo-gate-icon svg { width: 26px; height: 26px; }

.lp-geo-gate-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.lp-geo-gate-sub {
  color: var(--fog);
  font-size: 0.88rem;
  margin: 0 0 22px;
}

.lp-geo-gate-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin: 14px 0 0;
}

/* ---------------------------------------------------------------------- */
/* Registre des tenants — liste verticale                                  */
/* ---------------------------------------------------------------------- */

.lp-tenants-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--navy-800);
}

.lp-tenant-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--navy-800);
  transition: background-color .12s ease;
}

.lp-tenant-row:hover { background: var(--navy-900); }

.lp-tenant-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
}

.lp-tenant-photo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.lp-tenant-info { flex: 1; min-width: 0; }

.lp-tenant-name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.96rem;
  display: block;
  margin-bottom: 2px;
}

.lp-tenant-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fog-dim);
}

.lp-tenant-type-badge {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lp-tenant-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.lp-tenant-distance {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fog-dim);
}

.lp-tenant-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.lp-tenant-phone:hover { border-color: var(--amber); color: var(--amber); }
.lp-tenant-phone svg { width: 14px; height: 14px; }

.lp-tenants-empty, .lp-tenants-loading {
  color: var(--fog-dim);
  font-size: 0.88rem;
  padding: 24px 4px;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* CTA final                                                                */
/* ---------------------------------------------------------------------- */

.lp-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
  border-top: 1px solid var(--navy-800);
  text-align: center;
}

.lp-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 0 0 10px;
}

.lp-cta p { color: var(--fog); margin: 0 0 26px; }

/* ---------------------------------------------------------------------- */
/* Pied de page                                                             */
/* ---------------------------------------------------------------------- */

.lp-footer {
  border-top: 1px solid var(--navy-800);
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lp-footer p { color: var(--fog-dim); font-size: 0.8rem; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 44px; }
  .lp-hero-text { order: 1; text-align: center; }
  .lp-hero-sub { margin-left: auto; margin-right: auto; }
  .lp-hero-actions { justify-content: center; }
  .lp-hero-visual { order: 2; }
}

@media (max-width: 640px) {
  .lp-nav-actions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--navy-800);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    gap: 10px;
    display: none;
  }
  .lp-nav-actions.open { display: flex; }
  .lp-nav-actions a { justify-content: center; }
  .lp-menu-toggle { display: flex; }
  .lp-header-inner { position: relative; }

  .lp-tenant-row { flex-wrap: wrap; }
  .lp-tenant-right { margin-left: 68px; align-items: flex-start; }

  .lp-types-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }
  .lp-type-chip { flex-shrink: 0; scroll-snap-align: start; }
}
