/*
 * IMMGO — Écrans de la vente sur plan (acheteur, prospect, pages publiques) : en-tête sombre du téléphone, « Ma
 * maison » (04), plan de l'étage (05), chantier (07), paiement (07b), partage (08), soleil (09) (préfixe vsp-)
 * Auteur : Jacks Ngalangala
 */
.vsp-acheteur {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--e-6);
  max-width: 720px;
  margin: 0 auto;
}
.vsp-entete-sombre {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--e-5);
  padding: var(--e-6) var(--e-5);
  border-radius: var(--r-tres-grand);
  background: var(--nuit);
  color: var(--nuit-texte);
}
.vsp-entete-sombre::before,
.vsp-entete-sombre::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--or);
  opacity: 0.35;
  pointer-events: none;
}
.vsp-entete-sombre::before {
  width: 240px;
  height: 240px;
  right: -40px;
  top: -120px;
}
.vsp-entete-sombre::after {
  width: 300px;
  height: 300px;
  right: -150px;
  top: -40px;
}
.vsp-entete-sombre > * {
  position: relative;
}
.vsp-entete-sombre .mobile-salut-nom,
.vsp-entete-sombre .mobile-salut-petit {
  color: inherit;
}
.vsp-entete-sombre .mobile-salut-petit {
  color: var(--nuit-texte-second);
}
.vsp-entete-sombre .btn-fantome {
  background: var(--nuit-surface-haute);
  color: var(--nuit-texte);
  border-color: var(--nuit-trait);
}
.vsp-barre-retour {
  display: flex;
  align-items: center;
  gap: var(--e-3);
}
.vsp-barre-retour-texte {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.vsp-barre-retour-titre {
  font-size: var(--taille-titre-3);
  font-weight: var(--graisse-titre);
}
.vsp-barre-retour-sous {
  color: var(--nuit-texte-second);
}
.vsp-photo-entete {
  position: relative;
  margin: 0;
  height: 150px;
  overflow: hidden;
  border-radius: var(--r-grand);
  background: var(--nuit-surface);
}
.vsp-photo-entete img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.vsp-photo-entete figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--e-1) var(--e-3);
  padding: var(--e-6) var(--e-4) var(--e-3);
  background: linear-gradient(transparent, var(--vsp-degrade-photo));
  color: var(--surface);
}
.vsp-photo-entete figcaption span {
  opacity: 0.85;
}
.vsp-3d-maison {
  height: 380px;
}
.vsp-3d-plein {
  position: fixed;
  inset: 0;
  z-index: 50;
  height: auto;
  border-radius: 0;
}
.vsp-carte-tranche {
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
}
.vsp-ligne-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3);
}
.vsp-ligne-info strong,
.vsp-sombre-chiffres strong {
  font-variant-numeric: tabular-nums;
}
.vsp-sombre-chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--e-3);
}
.vsp-sombre-chiffres div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vsp-sombre-chiffres span {
  color: var(--nuit-texte-second);
}
.vsp-sombre-chiffres strong {
  font-size: var(--taille-grand);
  white-space: nowrap;
}
.carte-sombre .jauge {
  background: var(--nuit-trait);
}
.vsp-confidentialite {
  display: flex;
  gap: var(--e-3);
  align-items: flex-start;
  margin: 0;
  padding: var(--e-4);
  border-radius: var(--r-grand);
  background: var(--or-pale);
  border: 1px solid var(--or-trait);
}
.vsp-confidentialite svg {
  flex: none;
  color: var(--or-texte);
}

/* ---------- 05 : plan de mon étage ---------- */
.vsp-plan-etage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: var(--e-5);
  align-items: start;
}
.vsp-plan-cote {
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
}
.vsp-legende.vsp-legende-colonne {
  flex-direction: column;
}
.vsp-niveaux-mobile {
  display: grid;
  grid-template-columns: repeat(var(--nb, 5), minmax(0, 1fr));
  gap: 6px;
}
.vsp-niveaux-mobile .puce {
  padding: 0;
  justify-content: center;
}

/* ---------- 07 : chantier (frise verticale) ---------- */
.vsp-avancement-vedette {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--e-2) var(--e-5);
  align-items: center;
  padding: var(--e-5) var(--e-6);
  border-radius: var(--r-grand);
  background: var(--nuit-surface);
  border: 1px solid var(--nuit-trait);
}
.vsp-avancement-vedette .affiche {
  font-variant-numeric: tabular-nums;
}
.vsp-avancement-vedette span {
  color: var(--nuit-texte-second);
}
.vsp-avancement-vedette .jauge {
  grid-column: 1 / -1;
  background: var(--nuit-trait);
}
.vsp-chantier {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.vsp-chantier-etape {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--e-3);
  padding-bottom: var(--e-5);
}
.vsp-chantier-etape::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--trait);
}
.vsp-chantier-etape[data-etat='validee']::before {
  background: var(--or);
}
.vsp-chantier-etape:last-child::before {
  display: none;
}
.vsp-chantier-point {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--trait-fort);
  background: var(--surface);
  color: var(--texte-faible);
}
.vsp-chantier-point svg {
  width: 16px;
  height: 16px;
}
.vsp-chantier-etape[data-etat='validee'] .vsp-chantier-point {
  background: var(--or);
  border-color: var(--or);
  color: var(--surface);
}
.vsp-chantier-etape[data-etat='en_cours'] .vsp-chantier-point {
  border-color: var(--or);
  color: var(--or-texte);
  box-shadow: 0 0 0 5px var(--or-pale);
}
.vsp-chantier-corps {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
  min-width: 0;
}
.vsp-chantier-titre {
  font-weight: var(--graisse-forte);
}
.vsp-chantier-date {
  color: var(--texte-second);
}

/* Sous 600 px : l'en-tête sombre devient l'en-tête de l'écran (l'en-tête clair de la coque s'efface). */
@media (max-width: 599px) {
  .coque:has(.vsp-entete-sombre) > .coque-principal > .entete {
    display: none;
  }
  .contenu:has(.vsp-entete-sombre) {
    padding-top: 0;
  }
  .vsp-entete-sombre {
    margin: 0 calc(-1 * var(--e-4));
    padding: var(--e-6) var(--e-5) var(--e-6);
    border-radius: 0 0 var(--r-tres-grand) var(--r-tres-grand);
  }
  .vsp-3d-maison {
    height: 380px;
  }
}
