@charset "UTF-8";
/* --- Map Air Libre --- */
.map-air-libre-container {
  /* Le fond sera défini dynamiquement via mapBackground dans les données de la map */
  background-color: #222; }

.map-air-libre-header, .map-air-libre-footer {
  background-color: rgba(33, 37, 41, 0.85);
  color: #f8f9fa; }

.map-air-libre-footer, .map-air-libre-header {
  display: none; }

.map-air-libre-canvas-wrapper {
  height: 100%;
  cursor: grab; }

.map-air-libre-canvas-wrapper.grabbing {
  /* Classe à ajouter pendant le pan */
  cursor: grabbing; }

.map-options-button {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 60;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  cursor: pointer;
  color: #fff; }

.map-content-transformable {
  width: 100%;
  /* Ou la taille de votre image de fond si vous la connaissez */
  height: 100%;
  position: relative;
  /* Pour que les nœuds soient positionnés par rapport à ce div */
  transition: transform 0.1s ease-out;
  /* Pour un pan/zoom plus doux si pas en drag */
  will-change: transform;
  /* Optimisation pour les transformations fréquentes */ }

.map-air-libre-decoration {
  position: absolute;
  pointer-events: none;
  overflow: visible; }

.map-air-libre-decoration img {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2; }

.map-air-libre-decoration::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15%;
  transform: translateX(-50%);
  width: 100%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none; }

.map-air-libre-decoration::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 80%;
  height: 65%;
  background-image: var(--decor-url);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: brightness(0) blur(7px);
  opacity: 0.5;
  transform: translateX(60%) translateY(36%) skewX(-25deg) scaleY(0.5);
  transform-origin: top left;
  z-index: 1;
  pointer-events: none; }

.map-air-libre-zones {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible; }

.map-air-libre-decor-neutre {
  position: absolute;
  pointer-events: auto;
  z-index: 3; }

.map-air-libre-decor-neutre img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; }

.map-air-libre-zone {
  transform-origin: center;
  transform-box: fill-box;
  stroke: #444;
  stroke-width: 4px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.6)); }

.map-air-libre-node {
  position: absolute;
  background-color: rgba(73, 80, 87, 0.85);
  color: white;
  border: 2px solid #adb5bd;
  border-radius: 8px;
  padding: 5px 8px;
  text-align: center;
  font-size: 0.75em;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  /* Nœuds au-dessus des lignes */ }

#maps-al-editor-canvas-container-full .canvas-container {
  z-index: 1000; }

.map-air-libre-node .node-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth; }

.map-air-libre-node .node-label {
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 50; }

.map-air-libre-node .node-label .node-icon {
  margin-right: 4px;
  font-size: 1em;
  margin-bottom: 0; }

.map-air-libre-node .node-label img.node-icon {
  max-height: 50px;
  height: auto; }

.map-air-libre-node.has-image .node-label {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -4px);
  background-color: rgba(73, 80, 87, 0.85);
  color: white;
  border: 2px solid #adb5bd;
  border-radius: 8px;
  padding: 3px 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 50; }

.map-air-libre-node.has-image:hover .node-label {
  display: flex; }

.map-air-libre-node.has-image {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  box-shadow: none; }

.map-air-libre-node.has-image .node-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
  position: relative;
  z-index: 2; }

.map-air-libre-node.has-image .node-socle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
  pointer-events: none; }

.map-air-libre-node.has-image.socle-flottant .node-socle::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 60%;
  height: 20%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  opacity: 0.5;
  z-index: -1; }

.map-air-libre-node .restricted-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none; }

.map-air-libre-node .restricted-overlay i {
  color: #dc3545;
  font-size: 3rem; }

.map-air-libre-node.unrevealed-node {
  background-color: rgba(33, 37, 41, 0.3);
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 50%; }

.map-air-libre-node.unrevealed-node .node-label {
  display: none; }

.map-air-libre-node.unrevealed-node .node-icon {
  font-size: 2.4em;
  margin-bottom: 0; }

.map-air-libre-node.current-node.has-image {
  animation: none; }

.map-air-libre-node.current-node.has-image .node-image {
  animation: node-bob-image 2s ease-in-out infinite; }

.map-air-libre-node.current-node.has-image.socle-flottant .node-socle {
  animation: node-bob-image 2s ease-in-out infinite; }

.map-air-libre-node.current-node.has-image.socle-flottant .node-socle::after {
  animation: node-shadow 2s ease-in-out infinite; }

.map-air-libre-node:hover:not(.current-node) {
  animation: node-bob 2s ease-in-out infinite; }

.map-air-libre-node.has-image:hover:not(.current-node) {
  animation: none; }

.map-air-libre-node.has-image:hover:not(.current-node) .node-image {
  animation: node-bob-image 2s ease-in-out infinite; }

.map-air-libre-node.has-image.socle-flottant:hover:not(.current-node) .node-socle {
  animation: node-bob-image 2s ease-in-out infinite; }

.map-air-libre-node.has-image.socle-flottant:hover:not(.current-node) .node-socle::after {
  animation: node-shadow 2s ease-in-out infinite; }

.map-air-libre-node.visited-node.has-image {
  background: none; }

.map-air-libre-node.current-node {
  border-color: #ffc107;
  /* Or */
  background-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
  /* Nœud actuel au-dessus des autres */
  animation: node-bob 2s ease-in-out infinite; }

.map-air-libre-node.current-node.has-image {
  border: none;
  box-shadow: none;
  background: none; }

@keyframes node-bob {
  0%, 100% {
    transform: scale(1.15) translateY(0); }
  50% {
    transform: scale(1.15) translateY(-5px); } }
@keyframes node-bob-image {
  0%, 100% {
    transform: translateY(0); }
  50% {
    transform: translateY(-5px); } }
@keyframes node-shadow {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5; }
  50% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.3; } }
.map-air-libre-node.visited-node {
  background-color: rgba(52, 58, 64, 0.8);
  border-color: #6c757d; }

.map-air-libre-node.visited-node:not(.current-node):not(.clickable-node) {
  opacity: 0.7; }

.map-air-libre-node.clickable-node {
  cursor: pointer;
  border-color: #198754;
  /* Vert pour cliquable */ }

.map-air-libre-node.clickable-node:hover {
  transform: none; }

.map-air-libre-node.clickable-node:hover:not(.has-image) {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border-color: #20c997;
  /* Vert plus clair au survol */
  background-color: rgba(32, 201, 151, 0.3); }

.map-air-libre-node.unrevealed-node.clickable-node:hover {
  box-shadow: none;
  border-color: transparent;
  background: none; }

.map-air-libre-node.capital-node {
  border-color: #fd7e14;
  /* Orange pour capitale */
  background-color: rgba(253, 126, 20, 0.3); }

.map-air-libre-node.capital-node.current-node {
  box-shadow: 0 0 15px rgba(253, 126, 20, 0.8); }

.map-air-libre-deck-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 64px;
  height: 64px;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s ease; }

.map-air-libre-deck-btn:hover {
  transform: scale(1.05); }

.debug-menu-toggle-map {
  position: absolute;
  bottom: 10px;
  right: 84px;
  width: 50px;
  height: 50px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: white;
  font-size: 20px;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }

.debug-menu-toggle-map:hover {
  transform: scale(1.1);
  background: rgb(220, 38, 38); }

.map-air-libre-connections {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  width: 100%;
  height: 100%; }

.map-air-libre-connections .map-connection-line,
.map-air-libre-connections .map-connection-line-border {
  stroke-linecap: square;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 20 40; }

.map-air-libre-connections .map-connection-line {
  stroke-width: 6px; }

.map-air-libre-connections .map-connection-line-border {
  stroke: #4A2C0A;
  stroke-width: 7px; }

.player-marker {
  position: absolute;
  width: 40px;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none; }

.companion-marker {
  position: absolute;
  width: 40px;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none; }

.map-air-libre-node.current-node ~ svg .map-connection-line,
.map-air-libre-node.clickable-node ~ svg .map-connection-line {
  /* Ou aux nœuds cliquables */
  /* Vous pourriez avoir besoin de JS pour cibler spécifiquement les lignes connectées au nœud actuel/cliquable */ }

.map-air-libre-node .node-label .al-access-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; }

.map-air-libre-node .node-label .al-access-row {
  display: flex;
  justify-content: center;
  gap: 8px; }

.map-air-libre-node .node-label .al-access-icon {
  position: relative;
  width: 64px;
  height: 64px; }

.map-air-libre-node .node-label .al-access-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px; }

.map-air-libre-node .node-label .al-access-icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 2px #000;
  pointer-events: none; }

.map-air-libre-node .node-label .al-access-icon.al-consume-anim {
  animation: al-consume-move 1.5s forwards; }

.map-air-libre-node .node-label .al-access-icon.al-consume-anim::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
  animation: al-consume-light 1.5s forwards; }

.tippy-box[data-theme~='al-access'] {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  width: 240px;
  height: 240px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  overflow: visible; }

.tippy-box[data-theme~='al-access'] .al-access-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; }

.tippy-box[data-theme~='al-access'] .al-access-row {
  display: flex;
  justify-content: center;
  gap: 8px; }

.tippy-box[data-theme~='al-access'] .al-access-icon {
  position: relative;
  width: 64px;
  height: 64px; }

.tippy-box[data-theme~='al-access'] .al-access-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px; }

.tippy-box[data-theme~='al-access'] .al-access-icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 2px #000;
  pointer-events: none; }

.tippy-box[data-theme~='al-access'] .al-access-icon.al-consume-anim {
  animation: al-consume-move 1.5s forwards; }

.tippy-box[data-theme~='al-access'] .al-access-icon.al-consume-anim::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
  animation: al-consume-light 1.5s forwards; }

@keyframes al-consume-move {
  0% {
    transform: translateY(0) rotateY(0);
    opacity: 1; }
  100% {
    transform: translateY(-40px) rotateY(180deg);
    opacity: 0; } }
@keyframes al-consume-light {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5); }
  30% {
    opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -40px) scale(1.5); } }
/* === Minimap Universelle === */
.map-minimap-wrapper {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 220px;
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid #444;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: visible;
    transition: width 0.3s ease, border-radius 0.3s ease;
}

/* Mode Radar */
.map-minimap-wrapper.radar-mode {
    width: 170px;
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.95);
    border-color: #3a5a3a;
}

.map-minimap-wrapper.radar-mode .map-minimap-header {
    position: absolute;
    top: 5px;
    right: 5px;
    left: auto;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10;
}

.map-minimap-wrapper.radar-mode .map-minimap-title {
    display: none;
}

.map-minimap-wrapper.radar-mode .map-minimap-controls {
    margin-left: 0;
}

.map-minimap-wrapper.radar-mode .map-minimap-canvas-container {
    width: 160px;
    height: 160px;
    margin: 5px auto;
    border-radius: 50%;
    overflow: hidden;
}

.map-minimap-wrapper.radar-mode .map-minimap-legend {
    display: none;
}

.map-minimap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #333;
}

.map-minimap-title {
    font-size: 0.85em;
    color: #ccc;
    font-weight: 500;
}

.map-minimap-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.map-minimap-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s;
    font-size: 0.85em;
}

.map-minimap-btn:hover {
    color: #fff;
}

.map-minimap-btn.active {
    color: #28a745;
}

.map-minimap-canvas-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    cursor: grab;
    overflow: hidden;
    border-radius: 4px;
}

.map-minimap-canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.map-minimap-canvas-container:active {
    cursor: grabbing;
}

.map-minimap-footer {
    padding: 5px 8px;
    text-align: center;
    border-top: 1px solid #333;
}

.map-minimap-footer .minimap-map-name {
    font-size: 0.75em;
    color: #aaa;
    font-weight: 500;
}

/* Panel de filtre */
.map-minimap-filter-panel {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 35, 0.98);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px;
    z-index: 110;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.map-minimap-filter-panel .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.map-minimap-filter-panel .filter-title {
    font-size: 0.75em;
    color: #aaa;
    font-weight: 500;
}

.map-minimap-filter-panel .filter-toggle-all {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85em;
    transition: color 0.2s;
}

.map-minimap-filter-panel .filter-toggle-all:hover {
    color: #fff;
}

.map-minimap-filter-panel .filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7em;
    color: #ccc;
    padding: 3px 0;
    cursor: pointer;
}

.map-minimap-filter-panel .filter-checkbox input {
    accent-color: #28a745;
}

.map-minimap-filter-panel .filter-checkbox:hover {
    color: #fff;
}

/* Bouton toggle minimap */
.map-minimap-toggle-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #444;
    border-radius: 8px;
    color: #ccc;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-minimap-toggle-btn:hover {
    background: rgba(40, 40, 40, 0.95);
    border-color: #666;
    color: #fff;
}
