@font-face {
  /* Le nom que vous utiliserez dans 'font-family' */
  font-family: "Inter";
  src:
    /* Les formats locaux sont vérifiés en premier pour les utilisateurs ayant déjà la police */
    local("Inter Regular"),
    local("Inter-Regular"),
    /* Chemin vers votre fichier de police, assurez-vous que le chemin est correct */
      url("./fonts/inter/Inter-Regular.ttf") format("truetype");
  /* Spécifie le poids de cette police si elle ne correspond qu'à un poids spécifique */
  font-weight: 400;
  /* Spécifie le style de cette police (normal, italic) */
  font-style: normal;
}
.editorInterface {
  position: absolute;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  z-index: 1;
  height: 32px;
  top: 0;
  left: 0;
  width: 200px;
}

#point-modal {
  position: fixed;
  top: 0;
  left: 0;

  background: rgba(131, 131, 131, 0.144);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

#point-form {
  background: #cacaca;
  color: rgb(0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  width: 500px;
  font-family: sans-serif;
}

#point-form label {
  display: block;
  margin-top: 10px;
}

#point-form input[type="text"],
#point-form input[type="file"],
#point-form input[type="number"] {
  width: 100%;
  padding: 4px;
  margin-bottom: 8px;
}

#positions-list {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
}
.position-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin: 2px 0;
}
.toggle-images {
  position: absolute;
  display: flex;
  left: 50%;

  top: 50px;
  width: 340px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  z-index: 4;
  border: 2px solid #1c2691; /* optional: flat border */
  pointer-events: auto; /* pour que les boutons soient cliquables */
  cursor: pointer;
}
@media screen and (max-width: 768px) and (orientation: portrait) {
  .toggle-images {
    top: 20px;
    transform: translate(-50%, -50%) scale(0.75);
  }
}
.toggleSpan {
  display: flex;
  width: 50%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.blueBackground {
  background-color: #1c2691;
  color: white;
}

.position-row input {
  width: 60px;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.modal-buttons button {
  padding: 6px 12px;
  cursor: pointer;
}

.point-picto {
  position: absolute; /* Necessary for precise positioning */
  left: 50%; /* Aligns the picto's horizontal center with the dot's horizontal center */
  top: 100%; /* Aligns the picto's top edge with the dot's bottom edge */
  transform: translate(
    -50%,
    -100%
  ); /* Adjusts picto's position based on its own size */
  /*
     -50% for X: Shifts the image left by half its own width, centering it horizontally.
     -100% for Y: Shifts the image up by its entire height, moving its bottom edge to the original 'top: 100%' line.
    */
  /* Essential for visibility and control over picto size */
  width: 40px; /* Example: Set your desired picto width */
  height: 40px; /* Example: Set your desired picto height */
  object-fit: contain; /* Ensures the image scales nicely within its dimensions */
}

.point-dot {
  position: absolute;
  border: none;
  transform: translate(-50%, -50%);
  background: rgba(255, 100, 100, 0);
  width: 40px;
  height: 40px;
  pointer-events: auto; /* pour que les boutons soient cliquables */
  cursor: pointer;
}

.spinner {
  position: absolute;
  display: flex;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: 50%;
  width: 340px;
  height: 34px;
  border-radius: 5px;
  z-index: 4;
}

.poweredBy {
  position: absolute;
  font-family: "Inter", system-ui, sans-serif;
  display: flex;
  font-weight: 400;
  font-size: 12px;
  right: 10px;
  bottom: 10px;
  color: white;
}
