/* Le parc vu d'en haut (07/11/2026, suite de #1114) : une scène isométrique,
   le même dessin que les vignettes de l'app, avec repères, étiquettes et carte
   du bien en HTML par-dessus (nets, lisibles, traduits par le navigateur).
   Placement en pourcentage de l'image : --x, --y = le sommet du toit visé.
   Les animations partent quand la scène entre à l'écran (.is-on, main.js). */
.scene { position: relative; margin: 0 auto; width: 100%; max-width: 560px; }
.scene-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 32px rgba(15, 23, 42, .18)); }

.scene-pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  transform: translate(-50%, calc(-100% - 10px));
  font: 800 17px/1 'Outfit', sans-serif; color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .22), 0 0 0 3px #fff;
}
.scene-pin::after {
  content: ''; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 10px;
  transform: translateX(-50%); background: #fff;
}
.scene-pin svg { width: 15px; height: 15px; }
.scene-pin.is-ok { background: #2A7A8C; }
.scene-pin.is-warn { background: #D97706; }
.scene-pin.is-late { background: #C0392B; }
.scene-pin.is-late::before {
  content: ''; position: absolute; inset: -3px; border-radius: 999px;
  border: 3px solid #C0392B; opacity: 0;
}

/* Étiquette d'un bâtiment : nom court et état, sous forme de pastille. */
.scene-tag {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, calc(-100% - 8px));
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: #fff; color: #1E293B;
  font: 600 12px/1.2 'Outfit', sans-serif;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.scene-tag i { width: 7px; height: 7px; border-radius: 999px; background: #2A7A8C; }
.scene-tag.is-warn i { background: #D97706; }
.scene-tag.is-late i { background: #C0392B; }

.scene-card {
  position: absolute; right: -4%; bottom: -14%;
  width: min(290px, 68%);
  background: #fff; color: #1E293B; text-align: left;
  border-radius: 20px; padding: 14px 16px 16px; border: 1px solid #E8E1D6;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
  display: grid; gap: 10px;
}
.scene-card-head { display: flex; align-items: center; gap: 10px; }
.scene-card-head img { width: 40px; height: 40px; border-radius: 12px; background: #E6F3F5; padding: 3px; }
.scene-card-head strong { display: block; font: 700 14px/1.2 'Outfit', sans-serif; }
.scene-card-head span { display: block; font: 400 12px/1.3 'Outfit', sans-serif; color: #475569; }
.scene-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; background: #FDEDEB; color: #C0392B;
  font: 600 12px/1.4 'Outfit', sans-serif;
}
.scene-chip i { width: 6px; height: 6px; border-radius: 999px; background: #C0392B; }
.scene-note { font: 400 12px/1.4 'Outfit', sans-serif; color: #475569; }

/* Entrée (.is-on) : repères et étiquettes tombent un à un, puis la carte monte. */
.scene.is-on .scene-pin, .scene.is-on .scene-tag { animation: scenePin .55s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(.25s + var(--i, 0) * .14s); }
.scene.is-on .scene-pin.is-late::before { animation: scenePulse 2.4s 1.8s ease-out infinite; }
.scene.is-on .scene-card { animation: sceneCard .7s 1s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes scenePin { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
@keyframes scenePulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes sceneCard { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
  .scene { margin-bottom: 64px; }
  .scene-card { right: 0; bottom: -30%; width: min(250px, 76%); padding: 12px 14px 14px; gap: 8px; }
  .scene-pin { width: 28px; height: 28px; font-size: 15px; }
  .scene-tag { font-size: 11px; padding: 4px 8px; }
}
/* Sans JS, tout est visible : main.js arme la scène (.is-armed, éléments
   cachés) puis la lance quand elle entre à l'écran (.is-on). Mouvement réduit :
   main.js ne l'arme pas. */
.scene.is-armed:not(.is-on) .scene-pin,
.scene.is-armed:not(.is-on) .scene-tag,
.scene.is-armed:not(.is-on) .scene-card { opacity: 0; }

/* Fonctionnalités, lots : la scène au-dessus de la liste qui en donne le détail. */
.scene-lots { margin-bottom: 28px; }

/* La scène se pose sur le fond de la section, pas dans le cadre blanc des
   visuels de liste (accueil, « Alertes intelligentes »). */
.feature-visual:has(> .scene) { background: none; border: 0; box-shadow: none; padding: 0; }

/* Étiquettes : libellé long, court sur mobile (sinon elles se chevauchent et
   la dernière déborde de l'écran) ; .is-edge s'étire vers la gauche de son
   point, pour un bâtiment au bord droit de l'image. */
.scene-tag b { font-weight: inherit; }
.scene-tag .short { display: none; }
.scene-tag.is-edge { transform: translate(calc(-100% + 18px), calc(-100% - 8px)); }
@media (max-width: 767.98px) {
  .scene-tag b:not(.short) { display: none; }
  .scene-tag .short { display: inline; }
}

/* Le bien qui se pose (07/11/2026) : la petite maison de l'app, posée dans un
   coin (étape « Ajoutez votre bien » de l'accueil, étape 1 du tutoriel). Même
   déclenchement que la scène : [data-land], armé puis lancé par main.js. */
.land-corner { position: absolute; pointer-events: none; height: auto; filter: drop-shadow(0 10px 12px rgba(15, 23, 42, .18)); }
.step > .land-corner { top: -22px; right: 14px; width: 64px; }
.step-visual:has(> .land-corner) { position: relative; }
.step-visual > .land-corner { left: -22px; bottom: -30px; width: 130px; }
@media (max-width: 899px) { .step-visual > .land-corner { left: -8px; bottom: -22px; width: 96px; } }
[data-land].is-armed:not(.is-on) { opacity: 0; }
[data-land].is-on { animation: landIn .75s .15s cubic-bezier(.2, .8, .25, 1) both; transform-origin: 50% 90%; }
@keyframes landIn {
  0% { opacity: 0; transform: translateY(-30px) scale(.96); }
  55% { opacity: 1; transform: translateY(0) scale(1.03, .95); }
  75% { transform: translateY(-3px) scale(.99, 1.01); }
  100% { opacity: 1; transform: none; }
}
