/* QUALITE 24 — Visionneuse 360° (js/visionneuse-360.js) et sections « Visite 360° » du site public (21/10/2026). */
.v360-section .v360-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 28px; margin-bottom: 18px; }
.v360-section .v360-tete h2 { margin-bottom: 8px; }
.v360-section .v360-chapo { color: var(--ink-soft, #5a5e66); margin: 0 0 8px; max-width: 60ch; font-size: 16px; line-height: 1.5; }
.v360-note { color: var(--ink-soft, #5a5e66); font-size: 13.5px; line-height: 1.5; margin: 14px 0 0; max-width: 80ch; }
.v360 { position: relative; }
.v360-scene { position: relative; aspect-ratio: 16 / 9; border-radius: var(--qa-r-moyen, 18px); overflow: hidden; background: #1d1f22; color: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; box-shadow: var(--qa-ombre, 0 8px 24px rgba(0,0,0,.06)); }
.v360-scene:focus-visible { box-shadow: 0 0 0 3px var(--red, #9e1022); }
.v360--actif .v360-scene { cursor: grab; }
.v360--actif .v360-scene:active { cursor: grabbing; }
.v360-fixe, .v360-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v360-fixe { object-fit: cover; }
.v360--actif .v360-fixe { visibility: hidden; }
.v360-lancer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink, #23262b); font: 600 16px/1 var(--sans, system-ui); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.v360-lancer:hover { background: #fff; }
.v360-lancer:focus-visible { outline: 3px solid var(--red, #9e1022); outline-offset: 2px; }
.v360-icone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red, #9e1022); color: #fff; font-size: 13px; letter-spacing: -.02em; }
.v360-leg { position: absolute; left: 12px; bottom: 12px; margin: 0; max-width: calc(100% - 150px); padding: 7px 11px; border-radius: 10px; background: rgba(20,22,25,.66); color: #fff; font: 500 13px/1.3 var(--sans, system-ui); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.v360-leg strong { font-weight: 650; }
.v360-aide { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(20,22,25,.6); color: #fff; font: 500 12.5px/1.2 var(--sans, system-ui); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.v360--actif .v360-aide { opacity: 1; }
.v360--actif .v360-aide.v360-aide--vu { opacity: 0; }
.v360-etat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 44px); margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(20,22,25,.7); color: #fff; font: 500 13px/1.3 var(--sans, system-ui); text-align: center; max-width: 90%; }
.v360--actif .v360-etat { transform: translate(-50%, -50%); }
.v360-outils { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.v360-o { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--ink, #23262b); font: 600 20px/1 var(--sans, system-ui); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.v360-o:hover { background: #fff; }
.v360-o:focus-visible { outline: 3px solid var(--red, #9e1022); outline-offset: 2px; }
.v360-groupes { display: inline-flex; gap: 4px; margin: 14px 0 0; padding: 3px; border-radius: 12px; background: var(--qa-remplir, rgba(118,118,128,.12)); }
.v360-groupes button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 600 14px/1 var(--sans, system-ui); color: var(--ink, #23262b); cursor: pointer; }
.v360-groupes button[aria-pressed="true"] { background: #fff; box-shadow: var(--qa-ombre-segment, 0 1px 3px rgba(0,0,0,.12)); }
.v360-vignettes { list-style: none; margin: 12px 0 0; padding: 2px 2px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.v360-vignettes li { flex: 0 0 auto; scroll-snap-align: start; }
.v360-vig { display: grid; gap: 6px; width: 168px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink, #23262b); font: 500 13px/1.3 var(--sans, system-ui); }
.v360-vig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--qa-r-champ, 12px); display: block; }
.v360-vig[aria-current="true"] img { box-shadow: var(--qa-anneau, 0 0 0 2px #9e1022); }
.v360-vig:focus-visible { outline: 3px solid var(--red, #9e1022); outline-offset: 2px; border-radius: 12px; }
/* plein écran (natif sur ordinateur, simulé sur iPhone) */
.v360--plein { position: fixed; inset: 0; z-index: 10000; background: #000; padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
.v360--plein .v360-scene { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; touch-action: none; }
.v360--plein .v360-vignettes, .v360--plein .v360-groupes { display: none; }
html.v360-bloque, html.v360-bloque body { overflow: hidden; }
/* étapes de chantier (page Nos chantiers en 360°) */
.v360-etapes { display: grid; gap: clamp(36px, 6vw, 64px); }
.v360-etape h3 { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--serif, system-ui); margin: 0 0 6px; }
.v360-etape .v360-num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--red, #9e1022); color: #fff; font: 700 14px/1 var(--sans, system-ui); vertical-align: 3px; }
.v360-etape > p { color: var(--ink-soft, #5a5e66); margin: 0 0 14px; max-width: 70ch; line-height: 1.55; }
.v360-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v360-duo h3 { font: 650 18px/1.3 var(--sans, system-ui); margin: 0 0 10px; }
@media (max-width: 760px) {
  .v360-scene { aspect-ratio: 4 / 3; border-radius: 14px; }
  .v360-duo { grid-template-columns: 1fr; }
  .v360-leg { left: 8px; bottom: 8px; max-width: calc(100% - 140px); font-size: 12px; padding: 6px 9px; }
  .v360-outils { right: 8px; bottom: 8px; }
  .v360-o { width: 36px; height: 36px; font-size: 18px; }
  .v360-lancer { font-size: 15px; padding: 10px 16px 10px 10px; }
  .v360-icone { width: 38px; height: 38px; font-size: 12px; }
  .v360-vig { width: 138px; font-size: 12.5px; }
  .v360-aide { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .v360-aide { transition: none; } }
/* le thème du site colore tous les <p> : on force le blanc sur les pastilles posées sur l'image */
.v360 .v360-leg, .v360 .v360-leg strong, .v360 .v360-aide, .v360 .v360-etat { color: #fff !important; }
/* la bande de vignettes défile seule : elle ne doit jamais élargir la page */
.v360, .v360-duo > div, .v360-etape { min-width: 0; max-width: 100%; }
.v360 [hidden] { display: none !important; }
.v360-scene { max-height: min(74vh, 760px); }
.v360--plein .v360-scene { max-height: none; }
/* 06/11/2026 : une pièce après l'autre (flèches sur l'image) */
.v360-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink, #23262b); font: 600 26px/1 var(--sans, system-ui); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; padding: 0 0 3px; }
.v360-nav:hover { background: #fff; }
.v360-nav:focus-visible { outline: 3px solid var(--red, #9e1022); outline-offset: 2px; }
.v360-prec { left: 10px; } .v360-suiv { right: 10px; }
@media (max-width: 760px) { .v360-nav { width: 38px; height: 38px; font-size: 22px; } .v360-prec { left: 6px; } .v360-suiv { right: 6px; } }
.v360-scene { margin-inline: auto; }
