body, html {
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
	}

h3 {
  font-weight: normal;
  
  }

.map-container {
    position: relative;
    width: 100%;
    height: 97vh;
}

#map {
    width: 100%;
    height: 100%;
}

#historical-map-controls {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 1);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    width: 80%;
    text-align: center;
	height: 80px;
}

#slider-container {
    margin-top: 10px;
	text-align: center;
	left: 5%;
	position: absolute;
	width: 90%;
}

/* Styles pour les outils de recherche */
.search-tools {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    width: 80%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.search-section {
    flex: 1;
    min-width: 200px;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 1);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-section h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.search-section .input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.search-section select,
.search-section input {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-section button {
    width: 100%;
    padding: 8px;
    background: #DCDCDC;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

.search-section button:hover {
    background: #005f8a;
}

footer {
    background-color: #f8f8f8;
    text-align: center;
    font-size: 10px;
    color: #555;
    width: 100%;
	height: 2vh;
}

/* *********** RESPONSIVE *********** */

/* Pour masquer les dates intermédiaires et n'afficher que 6 dates (incluant la première et la dernière) */
#slider-container .slider .noUi-value {
    display: none;
}

/* Afficher uniquement les dates aux positions clés (exemple pour noUiSlider) */
#slider-container .slider .noUi-value:first-child,
#slider-container .slider .noUi-value:last-child {
    display: block;
}

/* Réduire la taille des éléments de recherche sur mobile */
@media (max-width: 768px) {
    .search-tools {
        width: 90%;
    }

    .search-section {
        min-width: unset;
        width: 97%;
    }

    .search-section .input-group {
        flex-direction: column;
    }

    .search-section select,
    .search-section input,
    .search-section button {
        width: 100%;
        padding: 6px;
        font-size: 12px; /* Police plus petite */
    }

    .search-section h3 {
        font-size: 14px; /* Titre plus petit */
    }


    #slider-container {
        width: 95%;
        left: 2.5%;
    }
	 
	.noUi-value {
        font-size: 12px;
        white-space: nowrap;
    }
    #year-slider {
        margin: 0 20px;
    }
	.noUi-value-horizontal {
	margin-top: 6px;
	}
}
