* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  background-size: cover;
  font-family: sans-serif;
}
/*bla*/
/* ==============================
   HEADER GLOBAL
============================== */
header {
  position: relative;   /* Permet de positionner les éléments */
  width: 100%;
  min-height: 105px;    /* Espace pour le nav */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Livres à gauche, menu à droite */
  padding: 1em;
  background: url("/Img/nuit7.png") no-repeat 50% 5%;
  background-size: cover;
}

/* ==============================
   NAV (BOUTONS CENTRÉS EN HAUT)
============================== */
nav {
  position: absolute;
  top: 10px; /* Distance depuis le haut */
  left: 50%;
  transform: translateX(-50%); /* Centre horizontalement */

  display: flex;
  align-items: center;
  gap: 15px;
}

/* Style des boutons du nav */
nav button {
  background-color: rgb(2, 8, 77);
  border: 1px solid gold;
  padding: 10px 15px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 12px;
}
nav button:hover {
  background-color: rgba(255, 140, 0, 0.9);
}

.progress-circle {
  position: relative;
  width: 30px; /* Taille du cercle */
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(rgb(17, 171, 237) 0deg, rgb(37, 208, 247) var(--progress, 0deg), rgba(255,255,255,0.2) var(--progress, 0deg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px; /* Espace sous le livre */
  font-size: 10px;
  font-weight: bold;
  color: white;
  box-shadow: 0 0 5px gold;
  text-align: center;
}

/* ✅ Réduction du trou central pour ne pas cacher le texte */
.progress-circle::after {
  content: "";
  position: absolute;
  width: 16px; /* Diminue un peu le trou pour laisser place au texte */
  height: 16px;
  background: transparent; /* Mettre transparent au lieu de noir */
  border-radius: 50%;
}

/* ✅ Texte bien visible au-dessus */
.progress-circle p {
  position: absolute;
  margin: 0;
  z-index: 10; /* 🔵 Place le texte au-dessus du trou */
  font-size: 10px;
  color: white;
  text-align: center;
  line-height: 1;
}



/* ==============================
   LIVRES À GAUCHE (ALIGNÉS SUR UNE LIGNE)
============================== */
.books-container {
  display: flex;
  align-items: center;
  gap: 20px; /* Espacement entre les livres */
}

/* Style des boutons "book" */
.book a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgb(239, 170, 8);
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-size: 0.8rem;
  box-shadow: 0 0 5px gold; /* Ombre dorée */
}
.book a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.book-logo {
  width: 40px;
  height: auto;
  border-radius: 5px;
}

/* ==============================
   MENU BURGER (À DROITE)
============================== */
.menu-container {
  display: flex;
  align-items: center;
}

.menu-button {
  background-color: #012960;
  color: white;
  font-size: 1rem;
  padding: 5px 5px;
  border: 1px solid gold;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
}

/* Conteneur du menu déroulant */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Menu déroulant */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #666;
  min-width: 160px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  overflow: hidden;
  z-index: 10;
  border: 1px solid gold;
}

/* Style des liens du menu */
.sub-button {
  display: block;
  background-color: #09034b;
  color: white;
  font-size: 1rem;
  padding: 10px;
  text-align: left;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
}
.sub-button:hover {
  background-color: rgba(6, 59, 108, 0.9);
}

/* Afficher le menu au survol */
.dropdown:hover .dropdown-content {
  display: block;
}
/* ==============================
   CONTAINER DE LA CARTE
============================== */
.map-container {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* 🟢 Pour Chrome, Safari et autres navigateurs WebKit */
.map-container::-webkit-scrollbar {
  display: none; /* 🔵 Supprime la barre de scroll */
}

@keyframes golden-glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3), 0 0 10px rgba(255, 140, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3), 0 0 10px rgba(255, 140, 0, 0.4);
  }
}

/* 🟢 Empêcher la marge vide à gauche */
.main-window {
  position: relative;
  min-width: 120vw; /* Utilise toute la largeur de l'écran */
  min-height: 180vh;

  /* Image de la carte */
  background: url("/Img/Carte_WEB_PNG.png") no-repeat center center;
  background-size: 100%; /* 🟢 CHANGE contain → cover pour éviter les bandes */
  background-position: center;

  /* Bordure dorée animée */
  border: 1px solid gold;
  border-radius: 5px;
  animation: golden-glow 2.5s infinite alternate;

  /* Supprime les marges internes */
  margin: 0;
  padding: 0;

  /* Empêche tout débordement */
  overflow: hidden;
}
/* Supprime complètement la barre de scroll */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 🔵 Supprime tout scroll horizontal */
}
body::after {
  content: "";
  display: block;
  height: 0px; /* Évite qu'un espace vide se crée */
}



/* ==============================
   BOUTONS DE CARTE
============================== */
.map-button {
  position: absolute;
  width: 5vw;
  height: 5vw;
  min-width: 40px;
  min-height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: transparent;
}

.map-button.editable {
  background-color: rgba(0, 0, 255, 0.3);
  border: 2px dashed #00f;
  color: initial;
}

/* Tooltip sur les boutons de carte */
.map-button .tooltip-img {
  display: none;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: auto;
  z-index: 100;
  border: 1px solid gold; 
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
.map-button:hover .tooltip-img {
  display: block;
}

/* ==============================
   FOOTER
============================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 10px 0;
  border: none;
  background-color: #333; /* Si besoin, ajuster */
  
}

#pf {
  color: yellow;
  text-decoration: none;
  t
}

#a_bulle_dor {
  color:yellow;
}

#a_bulle_dor:visited {
  color:yellow;
}

/* ==============================
   SCROLLBAR
============================== */
::-webkit-scrollbar {
  width: 10px;  /* Largeur */
  height: 10px; /* Hauteur horizontale */
}

::-webkit-scrollbar-track {
  background: #25456e; 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, rgb(41, 83, 118), rgb(44, 92, 126)); 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, rgb(16, 207, 221), #0aacaa);
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 1200px) {
  .books-container {
    gap: 10px;
  }
  .book-logo {
    width: 32px;
  }
  .menu-button {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }
  .map-container {
    height: 60vh;
  }
}
@media (max-width: 900px) {
  header {
    flex-direction: column;
    min-height: 80px;
    padding: 0.5em;
  }
  nav {
    position: static;
    transform: none;
    gap: 8px;
    margin-bottom: 10px;
  }
  .books-container {
    flex-direction: column;
    gap: 8px;
  }
  .menu-container {
    margin-top: 10px;
  }
  .main-window {
    min-width: 100vw;
    min-height: 100vw;
    background-size: cover;
  }
}
@media (max-width: 600px) {
  header {
    min-height: 60px;
    padding: 0.2em;
  }
  .book-logo {
    width: 24px;
  }
  .main-window {
    min-width: 100vw;
    min-height: 80vw;
  }
  .map-button {
    min-width: 24px;
    min-height: 24px;
    width: 7vw;
    height: 7vw;
    font-size: 0.7em;
  }
  footer {
    font-size: 0.8em;
    height: 40px;
    padding: 5px 0;
  }
}
