:root {
  --antariens-menu-height: 42px;
  --antariens-branding-height: 58px;
  --antariens-menu-bg: rgba(5, 10, 20, 0.95);
  --antariens-menu-text: #ffffff;
  --antariens-menu-hover: #70d8ff;
  --antariens-admin-height: 0px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000;
}

body {
  overflow: hidden;
}

/* Admin WordPress */
body.admin-bar {
  --antariens-admin-height: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --antariens-admin-height: 46px;
  }
}

/* Header */
.antariens-header {
  position: fixed;
  top: var(--antariens-admin-height);
  left: 0;
  width: 100%;
  height: calc(var(--antariens-branding-height) + var(--antariens-menu-height));
  z-index: 100000;
  background: #000;
}

.antariens-branding-bar {
  height: var(--antariens-branding-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.antariens-site-title {
  color: #fff;
  text-decoration: none;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  margin:0px;
  padding:0px;
  margin-bottom:20px;
}

.antariens-site-description {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

/* Menu */
.antariens-menu-bar,
.antariens-footer {
  height: var(--antariens-menu-height);
  background: var(--antariens-menu-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.antariens-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 100000;
}

.antariens-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.antariens-menu-list li {
  position: relative;
}

.antariens-menu-list a {
  height: var(--antariens-menu-height);
  padding: 0 26px;
  display: flex;
  align-items: center;
  color: var(--antariens-menu-text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.antariens-menu-list a:hover,
.antariens-menu-list a:focus {
  color: var(--antariens-menu-hover);
}

/* Scène */
.antariens-scene {
  position: fixed;
  top: calc(var(--antariens-admin-height) + var(--antariens-branding-height) + var(--antariens-menu-height));
  bottom: var(--antariens-menu-height);
  left: 0;
  right: 0;
  overflow: hidden;
  background: #000;
}

/* Arrière-plan */
.antariens-picture,
.antariens-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.antariens-picture {
  display: block;
}

.antariens-bg {
  object-fit: cover;
  object-position: center center;
  display: block;
}

.antariens-bg-placeholder {
  height: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Burgers */
.antariens-burger {
  display: none;
}

/* Hotspots */
.antariens-hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 80;
}

.antariens-hotspot {
  z-index: 90;
}

.antariens-hotspot {
  position: absolute;
  display: block;
  text-decoration: none;
  cursor: pointer;
  left: var(--x-pc);
	top: var(--y-pc);
	width: var(--w-pc);
	height: var(--h-pc);
}

.antariens-hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.10) 0%,
    rgba(0,170,255,0.18) 45%,
    rgba(0,170,255,0) 75%
  );
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.antariens-hotspot::after {
  content: "";
  position: absolute;
  inset: 4%;
  border: 2px solid var(--hotspot-color, #7ddcff);
  border-radius: 18px;
  box-shadow:
    0 0 16px var(--hotspot-color, #7ddcff),
    inset 0 0 12px var(--hotspot-color, #7ddcff);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.antariens-hotspot:hover::before,
.antariens-hotspot:hover::after,
.antariens-hotspot:focus-visible::before,
.antariens-hotspot:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.antariens-hotspot-pulse {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--hotspot-color, #7ddcff);
  box-shadow: 0 0 20px var(--hotspot-color, #7ddcff);
  opacity: 0;
  pointer-events: none;
}

.antariens-hotspot-pulse::before,
.antariens-hotspot-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--hotspot-color, #7ddcff);
  animation: antariensPulse 1.8s infinite;
}

.antariens-hotspot-pulse::after {
  animation-delay: 0.9s;
}

.antariens-hotspot:hover .antariens-hotspot-pulse,
.antariens-hotspot:focus-visible .antariens-hotspot-pulse,
.antariens-hotspot.show-point-pc .antariens-hotspot-pulse {
  opacity: 1;
}

@keyframes antariensPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Labels */
.antariens-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 17, 34, 0.88);
  color: #dff7ff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(122, 214, 255, 0.45);
  box-shadow: 0 0 14px rgba(72, 185, 255, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.antariens-hotspot:hover .antariens-hotspot-label,
.antariens-hotspot:focus-visible .antariens-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Popup */
.antariens-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200000;
}

.antariens-popup.active {
  display: flex;
}

.antariens-popup-content {
  position: relative;
  background: #111;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 82vh;
  overflow-y: auto;
}

.antariens-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.antariens-popup-body {
  margin-top: 15px;
  line-height: 1.5;
}

.antariens-popup-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.antariens-popup-video {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  background: #000;
}

/* Smartphone */
@media (max-width: 768px) {
  :root {
    --antariens-branding-height: 54px;
    --antariens-menu-height: 46px;
  }

  body {
    overflow-y: auto;
  }

  .antariens-site-title {
    font-size: 22px;
  }

  .antariens-site-description {
    font-size: 14px;
  }

  .antariens-menu-bar {
    justify-content: space-between;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .antariens-footer {
    display: none;
  }

  .antariens-burger {
    display: flex;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 100002;
  }

  .antariens-menu-top,
  .antariens-menu-bottom {
    position: fixed;
    top: calc(var(--antariens-admin-height) + var(--antariens-branding-height) + var(--antariens-menu-height));
    width: 78vw;
    max-width: 320px;
    height: calc(100vh - var(--antariens-admin-height) - var(--antariens-branding-height) - var(--antariens-menu-height));
    background: rgba(5, 10, 20, 0.96);
    transition: transform 0.3s ease;
    z-index: 100001;
    overflow-y: auto;
  }

  .antariens-menu-top {
    left: 0;
    transform: translateX(-100%);
  }

  .antariens-menu-bottom {
    right: 0;
    transform: translateX(100%);
  }

  body.menu-top-open .antariens-menu-top,
  body.menu-bottom-open .antariens-menu-bottom {
    transform: translateX(0);
  }

  .antariens-menu-list {
    display: block;
    padding: 18px 0;
  }

  .antariens-menu-list a {
    height: auto;
    padding: 15px 22px;
    font-size: 18px;
  }

  .antariens-scene {
    bottom: 0;
  }

  .antariens-hotspot-pulse {
    width: 24px;
    height: 24px;
    opacity: 1;
  }

  .antariens-popup-content {
    width: 86%;
    max-height: 78vh;
    padding: 24px;
  }
   .antariens-popup-video {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
  }
  
  .antariens-hotspot {
    left: var(--x-mobile);
    top: var(--y-mobile);
    width: var(--w-mobile);
    height: var(--h-mobile);
  }
  
}

/* =========================
   POPUP VERSION PC (AMÉLIORÉE)
========================= */

@media (min-width: 769px) {

  .antariens-popup-content {
    /*max-width: 800px;   largeur augmentée */
    width: 70%;
    padding: 20px;
    border-radius: 16px;

    border: 2px solid rgba(255, 255, 255, 0.85);

    box-shadow:
      0 0 25px rgba(255,255,255,0.15),
      0 0 80px rgba(0,0,0,0.9);

    backdrop-filter: blur(6px);
	margin-top:100px;
	overflow:hidden;
  }
  
  .antariens-popup-content {
	  box-sizing: border-box;
	}

	.antariens-popup-video {
	  box-sizing: border-box;
	  max-width: 100%;
	  object-fit: contain;
	}

  .antariens-popup-video {
    max-height: 40vh; /* 70 vh */
    border-radius: 12px;

    border: 2px solid rgba(255,255,255,0.8);
  }

}

.antariens-popup-actions {
  margin-top: 22px;
  text-align: center;
}

.antariens-enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(255,255,255,0.25);
  transition: all 0.25s ease;
}

.antariens-enter-button:hover,
.antariens-enter-button:focus {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 
    0 0 12px rgba(255,255,255,0.4),
    0 0 30px rgba(255,255,255,0.2);
}

/* =========================
   TRANSITION PAGE
========================= */

.antariens-page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 300000;
  transition: opacity 0.35s ease;
}

.antariens-page-transition.active {
  opacity: 1;
}

/* Cadre PC : toujours visible */
@media (min-width: 769px) {
  .antariens-hotspot.frame-pc-yes::before,
  .antariens-hotspot.frame-pc-yes::after {
    opacity: 1;
    transform: scale(1);
  }

  .antariens-hotspot.frame-pc-no:hover::before,
  .antariens-hotspot.frame-pc-no:hover::after,
  .antariens-hotspot.frame-pc-no:focus-visible::before,
  .antariens-hotspot.frame-pc-no:focus-visible::after {
    opacity: 0;
  }
}

/* =========================
   RESIZE HANDLE
========================= */

.antariens-resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  right: -6px;
  bottom: -6px;
  background: #ff3b3b;
  border-radius: 3px;
  z-index: 50;
  cursor: se-resize;
}

.hotspot-edit-mode .antariens-resize-handle {
  display: block;
}

.antariens-resize-handle::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px solid #fff;
  border-radius: 2px;
}

/* =========================
   CORRECTION HEADER + SOUS-MENUS
========================= */

:root {
  --antariens-branding-height: 70px;
  --antariens-menu-height: 46px;
}

/* Titre + slogan bien séparés du menu */
.antariens-branding-bar {
  height: var(--antariens-branding-height);
  padding: 0;
  box-sizing: border-box;
}

.antariens-site-title {
  line-height: 1.1;
  margin: 0;
}

.antariens-site-description {
  line-height: 1.1;
  margin-top: 4px;
}

/* Barre menu sous le titre */
.antariens-menu-bar {
  height: var(--antariens-menu-height);
  position: relative;
  z-index: 100010;
}

/* =========================
   SOUS-MENUS PC COMPACTS
========================= */

@media (min-width: 769px) {

  .antariens-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: var(--antariens-menu-height);
    left: 0;
    width: 180px;
    min-width: 180px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: rgba(5, 10, 20, 0.96);
    border: 1px solid rgba(255,255,255,0.25);
    z-index: 300000;
  }

  .antariens-menu-list li:hover > .sub-menu,
  .antariens-menu-list li:focus-within > .sub-menu {
    display: block;
  }

  .antariens-menu-list .sub-menu a {
    height: auto;
    padding: 9px 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  /* Sous-sous-menus : décalés légèrement dessous */
  .antariens-menu-list .sub-menu .sub-menu {
    top: 34px;
    left: 22px;
  }
}

/* =========================
   MENU MOBILE ACCORDÉON
========================= */

@media (max-width: 768px) {

  .antariens-menu-list .sub-menu {
    display: none;
    padding-left: 14px;
    background: rgba(255,255,255,0.05);
  }

  .antariens-menu-list li.submenu-open > .sub-menu {
    display: block;
  }

  .antariens-menu-list .menu-item-has-children > a::after {
    content: " ▸";
    float: right;
    margin-left: 8px;
  }

  .antariens-menu-list .menu-item-has-children.submenu-open > a::after {
    content: " ▾";
  }

  .antariens-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .antariens-menu-list .sub-menu a {
    font-size: 15px;
    padding: 10px 22px;
  }
}

/* =========================
   LOGO + TITRE ALIGNEMENT
========================= */

.antariens-branding-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Logo */
.antariens-logo img {
  height: 46px;
  width: auto;
  display: block;
}

/* Bloc texte */
.antariens-branding-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Centrage global */
.antariens-branding-bar {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {

  .antariens-logo img {
    height: 34px;
  }

  .antariens-branding-inner {
    gap: 10px;
  }

  .antariens-branding-text {
    align-items: center;
    text-align: center;
  }
}

.antariens-page-content {
  position: relative;
  z-index: 30;
  color: white;
  padding: 30px;
}

/* La couche globale ne bloque plus les clics */
.antariens-hotspots-layer {
  pointer-events: none;
}

/* Mais les hotspots restent cliquables */
.antariens-hotspot {
  pointer-events: auto;
}

/* =========================
   AFFICHAGE ÉTIQUETTE HOTSPOT
========================= */

.antariens-hotspot.label-yes .antariens-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.antariens-hotspot.label-no .antariens-hotspot-label,
.antariens-hotspot.label-no:hover .antariens-hotspot-label,
.antariens-hotspot.label-no:focus-visible .antariens-hotspot-label {
  opacity: 0;
}

/* =========================
   MAP RESPONSIVE
========================= */

.antariens-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

/* IMAGE + HOTSPOTS */
.antariens-picture,
.antariens-hotspots-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* IMAGE */
.antariens-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {

  .antariens-map {
    width: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
  }

}
/* =========================================================
   CORRECTION FINALE — HOTSPOTS CALÉS SUR L'ARRIÈRE-PLAN
   Objectif : ne pas modifier l'image de fond.
   La couche des hotspots utilise exactement le même cadre que
   .antariens-map, au lieu de couvrir toute la scène.
========================================================= */

.antariens-map,
.antariens-hotspots-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.antariens-map {
  z-index: 1;
}

.antariens-hotspots-layer {
  z-index: 80;
  pointer-events: none;
}

.antariens-picture,
.antariens-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.antariens-hotspot {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .antariens-map,
  .antariens-hotspots-layer {
    width: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
  }
}

/* =========================================================
   POPUPS RESPONSIVES PROPORTIONNELLES
   PC : ratio 1920x1080
   Mobile : ratio 1080x1920
========================================================= */

.antariens-popup {
  position: fixed;
  left: 0;
  right: 0;
  top: 0%;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
  box-sizing: border-box;

  background: rgba(0, 0, 0, 0.82);
  z-index: 200000;
}

.antariens-popup.active {
  display: flex;
}

.antariens-popup-content {
  position: relative;

  width: min(86vw, calc((100vh - var(--antariens-admin-height) - var(--antariens-branding-height) - var(--antariens-menu-height) - var(--antariens-menu-height) - 40px) * 16 / 9));
  height: min(
    calc(86vw * 9 / 16),
    calc(100vh - var(--antariens-admin-height) - var(--antariens-branding-height) - var(--antariens-menu-height) - var(--antariens-menu-height) - 40px)
  );

  max-width: 1280px;
  max-height: 720px;

  padding: 28px;
  box-sizing: border-box;

  background: rgba(18, 18, 18, 0.96);
  color: #fff;

  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.75);

  overflow-y: auto;
  overflow-x: hidden;

  box-shadow:
    0 0 25px rgba(255,255,255,0.12),
    0 0 80px rgba(0,0,0,0.9);
}

.antariens-popup-body {
  margin-top: 18px;
  line-height: 1.55;
}

.antariens-popup-body img {
  max-width: 42%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 22px;
}

.antariens-popup-video {
  display: block;
  width: 85%;
  max-height:85%;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  margin:auto;
}

/* Smartphone */
@media (max-width: 768px) {

  .antariens-popup {
    top: calc(
      var(--antariens-admin-height) +
      var(--antariens-branding-height) +
      var(--antariens-menu-height)
    );
    bottom: 0;
    padding: 14px;
  }

  .antariens-popup-content {
    width: min(100vw, calc((90vh - var(--antariens-admin-height) - var(--antariens-branding-height) - var(--antariens-menu-height) - 28px) * 9 / 16));
    height: min(
      calc(92vw * 16 / 9),
      calc(85vh - var(--antariens-admin-height) - var(--antariens-branding-height) - var(--antariens-menu-height) - 28px)
    );

    max-width: 430px;
    max-height: none;

    padding: 22px;
    border-radius: 14px;
  }

  .antariens-popup-body img {
    max-width: 100%;
    margin-bottom: 18px;
  }
}