/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #19191e;
    color: #ffffff;
    height: 100%;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.05rem 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-container img {
    height: 40px;
    width: auto;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    color: #ef8409;
    margin: 1rem 0.5rem;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Boutons */
button {
    padding: 0.7em;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-buttons button {
    background-color: rgba(0,0,0,0);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #ef8409;
    color:#fff;
}

.highlight {
    background-color: #fff !important; 
    color: #19191e !important;
    font-weight: 600;
}

.highlight:hover {
    background-color: #ef8409 !important;
    color:#fff !important;
}

/* Modale en savoir plus */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    color:#19191e
}

.close-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background: #19191e;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

a, a:visited, a:link, a:active {
    color: #cccccc;
    text-decoration: underline;
}

a:hover {
    color: #ffffff;
}

.modal-content a {
    color: #19191e;
    text-decoration: underline;
}

.modal-content a:hover {
    color: #ef8409;
}

/* ======= MAP ======= */
#map {
  position: absolute;
  top: 70px;   
  left: 0;
  right: 0;
  bottom: 0;   
  z-index: 0;
}

/* Conteneur flottant */
#modals-container {
  position: absolute;
  top: 70px;   
  bottom: 0px;   
  left: 20px;      
  display: flex;
  flex-direction: column;
  gap: 10px;        
  z-index: 1000;
  padding: 20px;
  overflow: visible;
}

/* Modales */
.floating-modal {
  width: 25em;
  background-color: #19191e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Header avec titre + bouton chevron */
.modal-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  z-index: 2;
  top: 0;
  position: sticky;
  background-color: #19191e;
  cursor: pointer;
}

.floating-modal .modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* espace entre l'emoji et le texte */
    margin: 0;
    color: #ef8409; /* couleur orange du projet */
}

/* Corps de la modale */
.modal-body {
  padding: 1em;
  flex: 1;
  scrollbar-width: thin;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.toggle-btn {   
  border: none;
  background: #333;
  color: #fff;
  font-size: 1.2em;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
}

.toggle-btn:hover {
  background: #ef8409;
}


.modal-body h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* État replié */
.floating-modal.collapsed .modal-body {
  display: none;
}

.gmaps-btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.gmaps-btn:hover {
    color:#fff;
}

/* Formulaire à l’intérieur */
/* Paragraphes du formulaire */
.text-form p {
  line-height: 1.6;
  margin: 20px 0;
  position: relative;
}

/* Champs datetime */
.text-form input[type="datetime-local"],
.text-form input[type="text"] {
  background-color: #19191e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.2em 0.5em;
  font-size: 0.95em;
  width: 100%;              /* Empêche de dépasser */
  box-sizing: border-box;   /* Respect des marges internes */
  color-scheme: dark;
}

/* Select */
.text-form select {
  appearance: auto;
  -webkit-appearance: menulist;
  background-color: #19191e;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.3em 0.6em;
  font-size: 0.95em;
  cursor: pointer;
  max-width: 100%;          /* Ne déborde plus */
  box-sizing: border-box;
}

/* Bloc optionnel */
#optional-fields {
  padding-left: 0.5em;
  border-left: 2px solid #333;
  margin-top: 1em;
  max-width: 100%;
  box-sizing: border-box;
}

#optional-fields-header {
  margin-top: 1.5em;
}

.suggestions {
  background: #1c1c21;
  border: 1px solid #333;
  border-radius: 6px;
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  width: calc(100% - 2px);
}

.suggestions div {
  padding: 6px 10px;
  cursor: pointer;
}

.suggestions div:hover {
  background: #2b2b31;
}



/* Flèche visible + contraste au survol */
.text-form select:hover {
  background-color: #222;
}

.text-form input[type="range"] {
  width: 100%;
  margin-top: 0.5em;
}

.text-form button {
  background-color: #ef8409;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.text-form button:hover {
  background-color: #d77307;
}


/* Style du contrôleur de couches Leaflet */
.leaflet-control-layers {
    background-color: #19191e !important;  
    color: #ffffff !important;             
    border: 1px solid #333 !important;     
    border-radius: 6px;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Les entrées de la liste */
.leaflet-control-layers-list label {
    color: #cccccc !important;             
    cursor: pointer;
}

/* Texte au survol */
.leaflet-control-layers-list label:hover {
    color: #ffffff !important;
}

/* Case à cocher personnalisée */
.leaflet-control-layers-selector {
    accent-color: #ef8409; /* orange comme tes boutons */
}

/* Conteneur du zoom */
.leaflet-control-zoom {
    background-color: #19191e !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    font-size: 0.9em;
    overflow: hidden;
}

/* Boutons + / − */
.leaflet-control-zoom a {
    color: #ffffff !important;
    background-color: #19191e !important;
    border-bottom: 1px solid #333;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: background 0.2s ease;
}

/* Supprimer la bordure du dernier bouton pour un effet arrondi */
.leaflet-control-zoom a:last-child {
    border-bottom: none;
}

/* Hover */
.leaflet-control-zoom a:hover {
    background-color: #ef8409 !important;
    color: #fff !important;
}

.custom-elevation-theme {
  --ele-bg: rgba(25, 25, 30, 0.1);      /* Fond légèrement transparent */
  --ele-axis: #19191e;                  /* Couleur axes */
  --ele-area: #ef8409;                  /* Zone sous la courbe */
  --ele-grid: rgba(25, 25, 30, 0.3);    /* Grille */
  --ele-brush: rgba(239, 132, 9, 0.3);  /* Sélection du brush */
  --ele-poly: #19191e;                  /* Courbe polygonale */
  --ele-line: #ef8409;                  /* Ligne principale */
  --ele-text: #ffffff;                  /* Texte des labels */
  --ele-height: 180px;                  /* Hauteur du graphique */
  --ele-width: 100%;                    /* Largeur du graphique */
  --ele-radius: 4px;                    /* Coins arrondis */
}

.elevation-toggle-icon {
    display: none !important;
}

.top{
    display: none !important;
}

.legend {
    display: none !important;
}

.distance {
    font-family: 'Roboto', sans-serif !important;
    color: #ffffff !important;
}

.elevation-control .axis text {
    fill:#ffffff !important;
    stroke:none !important;
    font-size: 12px !important;
    font-weight: normal !important;
}

.elevation-summary {
    display: none !important;
}

.horizontal-drag-symbol{
    display: none !important;
}

.custom-legend {
    font-size: 0.9rem;
}
.custom-legend p {
    margin: 2px 0;
}


