@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap");

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: 16px; /* Taille de police souhaitée */
}

/* Ensure body has no margin and full height */
body {
    margin: 0;
    height: 100vh;
    overflow: hidden; /* Prevent scrollbars from appearing */
}
div {
  padding: 1px;
}

.pulse {
  display: block;
  border-radius: 50%;
  cursor: pointer;
  animation: pulse 1.5s infinite;
  color: #f30505;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.leaflet-container.crosshair-cursor-enabled {
  cursor: crosshair;
}


.cards {
  height: 100%;
}

.card p,
.card ul {
  font-size: 1rem;
  line-height: 2rem;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  text-align: justify;
}

.card ul {
  margin-left: 1rem;
}
.card ul li {
  position: relative;
  line-height: 2rem;
}
.card ul li:after {
  position: absolute;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' width='100' title='star'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 1rem;
  height: 1rem;
  top: 5px;
  left: -2rem;
}

.card {
  background: #506e61;
  overflow: auto;
  height: 100%;
  position: relative;
}
@media only screen and (max-width: 800px) {
  .card {
    font-size: 62.5%;
    margin-bottom: 4rem;
  }

}
.card .image {
  position: relative;
  background-color: white;
}
.card .image img {
  display: block;
  width: 100%;
  max-height: 400px;
}

.image {
  position: relative;
}

.card .image .note {
  position: absolute;
  font-family: "Nixie One", cursive;
  border-top-left-radius: 1rem;
  right: 0;
  bottom: 0;
  padding: 8px 1.3rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  background: #0d0c0c;
  color: #fff;
}
.card__content {
  padding: 3rem 2rem;
  max-height: 600px;   /* Limite la hauteur à 300px (ajuste selon ton besoin) */
  overflow-y: auto;    /* Ajoute un scroll vertical si le contenu dépasse */
  padding-right: 10px; /* Espace à droite pour que le texte ne soit pas caché par la scrollbar */
}
.card__content p:not(.list-label) {
  margin-bottom: 1rem;
}
.card__content ul {
  margin-bottom: 2rem;
}
.card__content .list-label {
  margin-top: 2rem;
}
.card__content .bold {
  font-weight: 400;
}
.card__content ul li {
  margin-bottom: 1rem; /* Augmentez cette valeur pour plus d'espacement */
}
.card h2,
.card h3,
.card p,
.card ul {
  color: #fff;
}
.card h2,
.card h3 {
  font-family: "Nixie One", cursive;
}
.card h2 {
  font-size: 1.5rem;
  /*margin-bottom: 2.8rem;*/
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  /*padding-bottom: 2.5rem;
  line-height: 3.2rem;*/
}
@media only screen and (max-width: 600px) {
  .card h2 {
    font-size: 2rem;
    line-height: 2.4rem;
  }
}
.card h3 {
  max-width: 60%;
  font-size: 1rem;
  margin: 2.5rem 0 1rem;
  line-height: 2.8rem;
}
.card .add-ons {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1.5rem;
}

.leaflet-popup-content-wrapper {
  background: #2c3e50 !important;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}
.leaflet-popup-content-wrapper a {
  color: rgba(255, 255, 255, 0.5);
}
.leaflet-popup-tip-container {
  width: 30px;
  height: 15px;
}


.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #2c3e50;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
}

@media (min-width: 460px) {
  td {
    text-align: left;
  }
  td:before {
    display: inline-block;
    text-align: right;
    width: 140px;
  }

  .select {
    padding-left: 160px;
  }
}

.accordion {
  
  margin-top: 18px; /* Ajoute un espace en bas pour les boutons */
}

.button {
  background-color: #ececf3;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 5px;
  margin-left: 35px;
  text-decoration: none;
  font-size: 15px;
}


.button:focus {
  outline-color: transparent;
  outline-style: solid;
  box-shadow: 0 0 0 4px #5a01a7;
  transition: 0.7s;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.error-message {
  color: red;
  font-weight: bold;
}

/* Styles pour embellir le bouton */
.edit-save-button {
    background-color: #007bff; /* Couleur de fond bleue */
    color: white;              /* Couleur du texte en blanc */
    border: none;              /* Pas de bordure */
    border-radius: 8px;        /* Coins arrondis */
    padding: 10px 20px;        /* Espacement interne du bouton */
    font-size: 16px;           /* Taille de la police */
    cursor: pointer;           /* Curseur de souris en mode pointer */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animation */
}

/* Effet hover (survol) pour le bouton */
.edit-save-button:hover {
    background-color: #0056b3; /* Changer la couleur de fond au survol */
    transform: scale(1.05);    /* Agrandir légèrement le bouton au survol */
}

/* Effet lorsqu'on clique sur le bouton */
.edit-save-button:active {
    background-color: #004080; /* Changer la couleur de fond lors du clic */
    transform: scale(0.98);    /* Réduire légèrement le bouton au clic */
}

.leaflet-popup-content form {
  display: flex;
  flex-direction: column;
}

.leaflet-popup-content label {
  margin: 5px 0;
}

.leaflet-popup-content input,
.leaflet-popup-content textarea {
  width: 100%;
  padding: 5px;
  margin: 5px 0;
}

.leaflet-popup-content button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-top: 10px;
}

.leaflet-popup-content button:hover {
  background-color: #45a049;
}

.card select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.card__content ul li input {
  width: 300px;   /* Fixe la largeur des champs de texte */
  flex-grow: 0;   /* Empêche l'expansion du champ pour qu'il garde la taille fixe */
  
}
#polygon-card {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 300px;
  padding: 20px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1000; /* S'assure que la card est au-dessus de la carte */
}

/* Styles pour embellir le bouton */
.toggle-button {
  background-color: #007bff; /* Couleur de fond bleue */
  color: white;              /* Couleur du texte en blanc */
  border: none;              /* Pas de bordure */
  border-radius: 8px;        /* Coins arrondis */
  padding: 10px 20px;        /* Espacement interne du bouton */
  font-size: 16px;           /* Taille de la police */
  cursor: pointer;           /* Curseur de souris en mode pointer */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Animation */
}

/* Effet hover (survol) pour le bouton */
.toggle-button:hover {
  background-color: #0056b3; /* Changer la couleur de fond au survol */
  transform: scale(1.05);    /* Agrandir légèrement le bouton au survol */
}

/* Effet lorsqu'on clique sur le bouton */
.toggle-button:active {
  background-color: #004080; /* Changer la couleur de fond lors du clic */
  transform: scale(0.98);    /* Réduire légèrement le bouton au clic */
}

/* Styles pour embellir le bouton Delete */
.delete-button {
  background-color: #dc3545; /* Couleur de fond rouge */
  color: white;             /* Couleur du texte en blanc */
  border: none;             /* Pas de bordure */
  border-radius: 8px;       /* Coins arrondis */
  padding: 10px 20px;       /* Espacement interne du bouton */
  font-size: 16px;          /* Taille de la police */
  cursor: pointer;          /* Curseur de souris en mode pointer */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Animation */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

/* Effet hover (survol) pour le bouton Delete */
.delete-button:hover {
  background-color: #c82333; /* Rouge légèrement plus foncé au survol */
  transform: scale(1.05);    /* Agrandir légèrement le bouton au survol */
}

/* Effet lorsqu'on clique sur le bouton Delete */
.delete-button:active {
  background-color: #bd2130; /* Rouge encore plus foncé au clic */
  transform: scale(0.98);    /* Réduire légèrement le bouton au clic */
}

/* Style optionnel pour un désactivé (disabled) */
.delete-button:disabled {
  background-color: #e0e0e0; /* Gris clair pour désactiver */
  color: #a0a0a0;           /* Texte gris clair */
  cursor: not-allowed;      /* Indicateur de bouton désactivé */
  transform: none;          /* Pas d'effet sur hover ou clic */
}

/* Cache le bouton Delete en mode édition */
.edit-mode .delete-button {
  display: none;
}

.coordinates-container {
  max-height: 150px; /* Set max height when visible */
  overflow-y: auto; /* Enable vertical scrolling */
  margin-top: 5px; /* Add spacing */
  padding: 5px;
  border: 1px solid #ddd; /* Light border for visibility */
  border-radius: 5px;
  background-color: #f9f9f9; /* Light background */
}

.v-scroller {
  white-space: pre-wrap; /* Preserve formatting */
  font-family: monospace;
  color: black; /* Définit la couleur du texte en noir */
}

/* Styles pour embellir le bouton Cancel */
.cancel-edit-button {
  background-color: black; /* Couleur de fond rouge */
  color: white;             /* Couleur du texte en blanc */
  border: none;             /* Pas de bordure */
  border-radius: 8px;       /* Coins arrondis */
  padding: 10px 20px;       /* Espacement interne du bouton */
  font-size: 16px;          /* Taille de la police */
  cursor: pointer;          /* Curseur de souris en mode pointer */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Animation */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

/* Effet hover (survol) pour le bouton Delete */
.cancel-edit-button:hover {
  background-color: #0f0f0f; /* Rouge légèrement plus foncé au survol */
  transform: scale(1.05);    /* Agrandir légèrement le bouton au survol */
}

/* Effet lorsqu'on clique sur le bouton Delete */
.cancel-edit-button:active {
  background-color: #010101; /* Rouge encore plus foncé au clic */
  transform: scale(0.98);    /* Réduire légèrement le bouton au clic */
}

.small-icon {
  font-size: 12px; /* Ajuste la taille */
}

.eye-button {
    
  color: black; /* Couleur de l'icône */
  border: none; /* Supprime la bordure */
  padding: none; /* Espace intérieur */
  margin: none;
  cursor: pointer; /* Curseur interactif */
  transition: all 0.3s ease-in-out; /* Animation fluide */
}

#search-input {
  /* width: 90%; /* Réduit la largeur à 80% */
  max-width: 1000px; /* Limite la largeur max */
  min-width: 0px;
  padding: 5px; /* Réduit le padding pour économiser de l'espace */
  font-size: 14px; /* Réduit la taille du texte */
}

.navbar {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;    
}

#split-container {
    height: calc(100vh - 51px); /* Subtract navbar height and its border */
    margin-top: 51px; /* Offset for fixed navbar and its border */
    display: flex; /* Maintain flexbox layout */
    border-top: 1px solid #6c757d; /* Retain top border for separation */
}

.navbar-logo {
    height: 45px; /* Reduced logo height */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between logo and title */
}

/* #top-bar {
  width: 100%;
  height: 50px;
  background-color: #b1cae5; 
  color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
} */

/* #left-pane, #right-pane {
  overflow: auto;
} */

#jstree {
  overflow: auto;
}

.gutter {
  background-color: #ccc;
  background-clip: content-box;
}

.gutter.gutter-horizontal {
  cursor: col-resize;
  width: 3px;
}

/* Loader overlay */
#map-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* Fond semi-transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Flouter la carte tant que jstree charge */
#map {
  filter: blur(5px); /* Appliquer un flou */
  transition: filter 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.window-controls {
  float: right;
}

.window-controls button {
  border: none;
  background: none;
  font-size: 1rem;
  margin: 0 4px;
  cursor: pointer;
}

/* Style du bouton */
.login-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* Labels and inputs */
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}

.modal {
  z-index: 3005 !important; /* valeur supérieure à la plupart des éléments Bootstrap */
}

.modal-backdrop {
  z-index: 3000 !important;
}
