/* ==========================================================================
   BRASA — Grill & Braise — Visite virtuelle 360°
   Habillage de l'export Marzipano aux couleurs de la charte BRASA.
   Même logique de navigation que la visite du Cocon Cogolinois :
   liste des vues à gauche, nom de la vue en bas à gauche, croix de
   direction en bas à droite, burger + croix de fermeture en mobile.
   ========================================================================== */

/* --------------------------------------------------------------------------
   POLICES LOCALES (partagées avec le thème : /assets/charte-graphique/fonts)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Arimo';
  src: url('../../assets/charte-graphique/fonts/Arimo/Arimo-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('../../assets/charte-graphique/fonts/Great_Vibes/GreatVibes-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   TOKENS — repris à l'identique de assets/css/style.css
   -------------------------------------------------------------------------- */
:root {
  --color-charbon: #000000;
  --color-braise: #D63000;
  --color-rouge-feu: #C41F00;
  --color-orange-vif: #FF7A00;
  --color-orange: #FF9F1C;
  --color-acier: #E5E5E5;
  --color-beige: #DDC0A0;
  --color-blanc: #FFFFFF;

  --gradient-incandescent: linear-gradient(45deg, var(--color-rouge-feu), var(--color-orange-vif));

  --font-display: 'Great Vibes', 'Brush Script MT', cursive;
  --font-body: 'Arimo', Arial, Helvetica, sans-serif;

  --radius-full: 999px;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--color-charbon);
  color: var(--color-acier);
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Voiles charbon en haut et en bas : sans eux, les libellés blancs/beiges
   deviennent illisibles sur les vues claires (la terrasse et son ciel).
   Posés entre le panorama (z-index 1) et l'interface (z-index 100). */
body::before,
body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

body::before {
  top: 0;
  height: 340px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 100%);
}

body::after {
  bottom: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Les conteneurs laissent passer les clics : seuls leurs boutons les captent
   (sinon des zones invisibles bloqueraient la rotation de la vue). */
#sceneList, #bottomLeft, #bottomControls, #sceneListToggle, #actionSection,
#epicviewCredit {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   SIGNATURE EPICVIEW (bas de page)
   -------------------------------------------------------------------------- */
#epicviewCredit {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

#epicviewCredit a {
  pointer-events: auto;
  display: inline-block;
  padding: 4px 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(229, 229, 229, .7);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
  white-space: nowrap;
  transition: color .3s ease;
}

#epicviewCredit strong {
  font-weight: 700;
  color: var(--color-beige);
  transition: color .3s ease;
}

#epicviewCredit a:hover,
#epicviewCredit a:hover strong {
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   BOUTONS D'ACTION (haut droite) — Réserver / La carte
   -------------------------------------------------------------------------- */
#actionSection {
  position: absolute;
  top: 40px;
  right: 110px; /* décalé vers la gauche pour laisser la place à la croix */
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.action-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-beige);
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

.action-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  pointer-events: auto;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, filter .3s ease,
              background .3s ease, border-color .3s ease, color .3s ease;
}

.action-btn svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform .3s ease;
}

.action-btn:hover svg {
  transform: scale(1.1);
}

/* Réserver — bouton principal incandescent (identique au site) */
.action-btn--principal {
  background: var(--gradient-incandescent);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--color-blanc);
  border: none;
  box-shadow: 0 10px 30px rgba(214, 48, 0, .4);
}

.action-btn--principal:hover {
  background-position: 100% 50%;
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255, 122, 0, .55);
}

/* La carte — bouton secondaire beige, posé sur du verre fumé */
.action-btn--secondaire {
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--color-beige);
  border: 2px solid var(--color-beige);
}

.action-btn--secondaire:hover {
  background: rgba(221, 192, 160, .16);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   FERMETURE DE LA VISITE
   -------------------------------------------------------------------------- */
#closePopup {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  z-index: 200;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(221, 192, 160, .35);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-beige);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .5);
}

#closePopup:hover {
  background: rgba(214, 48, 0, .35);
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: scale(1.05) rotate(90deg);
}

/* --------------------------------------------------------------------------
   LISTE DES VUES (gauche)
   -------------------------------------------------------------------------- */
#sceneList {
  position: absolute;
  top: 20px;
  left: 40px;
  width: auto;
  height: auto;
  z-index: 100;
  padding: 0;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), opacity .4s;
}

.menu-header {
  margin-bottom: 20px;
  pointer-events: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.branding {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
  user-select: none;
  -webkit-user-drag: none;
}

.branding-link {
  display: block;
  pointer-events: auto;
  cursor: pointer;
  transition: transform .3s ease;
}

.branding-link:hover {
  transform: scale(1.03);
}

.branding-logo {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .65));
  pointer-events: none; /* le lien gère le clic */
}

/* Titre en Great Vibes + dégradé feu animé, comme les H1/H2 du site */
.menu-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  padding: .08em .18em .2em;
  margin: 0;
  background: linear-gradient(45deg, #ff651d, #ff7b00, #ffd500, #fff3a3);
  background-size: 500%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brasa-lava 4.5s ease infinite;
  filter: drop-shadow(0 0 8px rgba(255, 90, 0, .5)) drop-shadow(0 0 20px rgba(255, 140, 0, .35));
}

@keyframes brasa-lava {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.menu-separator {
  width: 180px;
  height: 2px;
  background: var(--gradient-incandescent);
  margin-top: 6px;
  box-shadow: 0 2px 12px rgba(214, 48, 0, .55);
}

#sceneList .scenes {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sceneList .scene {
  display: block;
  width: fit-content;
  padding: 10px 0;
  color: var(--color-acier);
  font-size: 13px;
  font-weight: 400;
  transition: color .3s, padding-left .3s;
  cursor: pointer;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
  pointer-events: auto;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#sceneList .scene:hover {
  color: var(--color-orange);
  padding-left: 10px;
}

#sceneList .scene.current {
  color: var(--color-orange);
  font-weight: 700;
}

#sceneList .scene.current .text {
  text-decoration: underline !important;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   NOM DE LA VUE (bas gauche)
   -------------------------------------------------------------------------- */
#bottomLeft {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 100;
  width: fit-content;
}

.sceneName {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blanc);
  text-shadow: 0 2px 15px rgba(0, 0, 0, .9);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   CROIX DE DIRECTION (bas droite)
   -------------------------------------------------------------------------- */
#bottomControls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 100;
}

.controller {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.horizontal-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.viewControlButton {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(221, 192, 160, .3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background .3s, transform .2s, border-color .3s;
  cursor: pointer;
  pointer-events: auto;
}

.viewControlButton:hover, .viewControlButton.active {
  background: rgba(214, 48, 0, .35);
  transform: scale(1.05);
  border-color: var(--color-orange);
}

.viewControlButton .icon {
  width: 24px;
  height: 24px;
  opacity: .85;
}

#fullscreenToggle .icon.on { display: none; }
#fullscreenToggle.enabled .icon.on { display: block; }
#fullscreenToggle.enabled .icon.off { display: none; }

/* --------------------------------------------------------------------------
   BURGER (mobile uniquement)
   -------------------------------------------------------------------------- */
#sceneListToggle {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  z-index: 200;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(221, 192, 160, .35);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .5);
}

#sceneListToggle:hover {
  background: rgba(214, 48, 0, .35);
  border-color: var(--color-orange);
  transform: scale(1.05);
}

.burger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-acier);
  border-radius: 2px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

#sceneListToggle.enabled .burger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#sceneListToggle.enabled .burger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#sceneListToggle.enabled .burger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .branding-logo { height: 90px; }
  .menu-title { font-size: 34px; }
}

@media (max-width: 768px) {
  #closePopup {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  #sceneList {
    top: 50%;
    left: 20px;
    width: 290px;
    height: auto;
    max-height: 80vh;
    padding: 30px 26px;
    background: rgba(11, 11, 11, .92);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(221, 192, 160, .18);
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-130%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .7);
    overflow-y: auto;
  }

  #sceneList.enabled {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
  }

  .branding {
    margin-bottom: 6px;
    width: 100%;
    justify-content: center;
  }

  .branding-logo { height: 72px; }

  .menu-header {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 14px;
  }

  .menu-title { font-size: 28px; }

  .menu-separator { width: 150px; }

  #sceneListToggle {
    display: flex;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
  }

  #sceneListToggle:hover { transform: translateY(-50%) scale(1.05); }

  #sceneListToggle.enabled { left: 320px; }

  #bottomLeft { left: 20px; bottom: 20px; }
  .sceneName { font-size: 14px; letter-spacing: 2px; }

  #bottomControls { right: 20px; bottom: 20px; }

  /* Le bas de l'écran est déjà pris par le nom de la vue et la croix
     directionnelle : la signature se range juste au-dessus du nom, à gauche. */
  #epicviewCredit {
    left: 14px;
    bottom: 50px;
    transform: none;
  }
  #epicviewCredit a { font-size: 9px; letter-spacing: .5px; }

  #actionSection {
    top: 18px;
    right: 76px;
    left: 76px;
    align-items: center;
    gap: 8px;
  }

  .action-title { font-size: 9px; letter-spacing: 1.5px; }

  .action-buttons { gap: 8px; }

  .action-btn {
    padding: 8px 14px;
    font-size: 11px;
    gap: 7px;
  }

  .action-btn svg { width: 14px; height: 14px; }
}

/* Très petits écrans : on masque l'intitulé au-dessus des boutons */
@media (max-width: 400px) {
  .action-title { display: none; }
}

/* --------------------------------------------------------------------------
   HOTSPOTS
   -------------------------------------------------------------------------- */
.hotspot {
  cursor: pointer;
  pointer-events: auto;
  z-index: 50;
  /* NE PAS animer `transform` / `all` ici : cela entre en conflit avec le
     positionnement 3D calculé par Marzipano. */
  transition: background .4s, border-color .4s, box-shadow .4s, opacity .4s;
}

/* --- Points de passage entre les vues --- */
.link-hotspot {
  width: 55px;
  height: 55px;
  margin-left: -27.5px;
  margin-top: -27.5px;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(221, 192, 160, .85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .45);
}

.link-hotspot:hover {
  background: rgba(214, 48, 0, .35);
  border-color: var(--color-orange);
  box-shadow: 0 0 22px rgba(255, 122, 0, .5);
}

.link-hotspot-icon {
  width: 75%;
  height: 75%;
  margin: 12.5%;
  transition: transform .4s cubic-bezier(.175, .885, .32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
}

.link-hotspot:hover .link-hotspot-icon {
  transform: scale(1.2);
}

.link-hotspot-tooltip {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(11, 11, 11, .9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--color-acier);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
  border: 1px solid rgba(221, 192, 160, .25);
}

.link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Points d'information --- */
.info-hotspot {
  width: 55px;
  height: 55px;
  margin-left: -27.5px;
  margin-top: -27.5px;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(221, 192, 160, .85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .45);
}

.info-hotspot:hover {
  background: rgba(214, 48, 0, .35);
  border-color: var(--color-orange);
  box-shadow: 0 0 22px rgba(255, 122, 0, .5);
}

.info-hotspot-icon {
  width: 60%;
  height: 60%;
  margin: 20%;
  transition: transform .4s cubic-bezier(.175, .885, .32, 1.275);
}

.info-hotspot:hover .info-hotspot-icon {
  transform: scale(1.2);
}

/* La carte d'information ouverte au clic — elle s'ouvre VERS LE BAS : les
   points d'info sont hauts dans la vue, une carte vers le haut sortait du cadre. */
.info-hotspot-text {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 250px;
  background: rgba(28, 23, 18, .93);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(221, 192, 160, .25);
  border-radius: 20px;
  padding: 20px;
  color: var(--color-acier);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .7);
  pointer-events: auto;
}

/* Carte ouverte : elle passe au-dessus de l'interface (liste des vues, nom de
   la vue…), sinon celle-ci la traverse dès que le point est proche d'un bord. */
.info-hotspot.visible {
  z-index: 150;
}

.info-hotspot.visible .info-hotspot-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.info-hotspot-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* L'en-tête d'origine de Marzipano n'est pas utilisé (carte type infobulle). */
.info-hotspot-header {
  display: none;
}
