/*
 * Fichier : /assets/css/village-blog.css
 * Scènes 3D de la page blog. Sans html.vl-3d, la page reste telle quelle.
 */
.vl-progres { position: fixed; top: 0; left: 0; z-index: 2000; width: 100%; height: 4px; background: #FFC86B; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.village-vue { display: none; position: relative; }
.vl-3d .village-vue { display: block; }
.village-vue canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Le livre prend la place du tableau de bord une fois la première image dessinée */
.vl-3d .blog-hero__visual { position: relative; }
.vl-3d .village-vue--livre { position: absolute; inset: -14% -8% -14% -8%; background: radial-gradient(closest-side, rgba(255, 200, 107, .13), rgba(255, 200, 107, 0)); }
.vl-rendu .blog-hero__dashboard { visibility: hidden; }

/* Le rayon de guides, bord à bord */
.vl-3d .village-vue--rayon { height: 290px; overflow: hidden; background: #0C1A2E; }

/* L'atelier de nuit dans le bloc d'appel à l'action */
html.vl-3d body main .blog-cta__content { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: 32px; row-gap: 22px; align-items: center; }
html.vl-3d body main .blog-cta .blog-button--light { grid-column: 1; grid-row: 2; justify-self: start; }
.vl-3d .village-vue--nuit { grid-column: 2; grid-row: 1 / span 2; height: 340px; }

@media (max-width: 900px) {
  html.vl-3d body main .blog-hero__container { gap: 0; }
  html.vl-3d body main .blog-hero__visual { display: block; min-height: 0; height: 330px; margin-top: 12px; }
  html.vl-3d body main .blog-hero__dashboard { display: none; }
  .vl-3d .village-vue--livre { inset: 0; }
  .vl-3d .village-vue--rayon { height: 220px; }
  html.vl-3d body main .blog-cta__content { grid-template-columns: minmax(0, 1fr); }
  .vl-3d .village-vue--nuit { grid-column: 1; grid-row: 3; height: 250px; }
}
@media (prefers-reduced-motion: reduce) { .vl-progres { display: none; } }
