html, body {
	height: 100%;
	width: 100%;
	margin: 0; /* Supprime les marges par défaut */
	font-family: Roboto, sans-serif;
	overflow-y: hidden;
    overflow-x: hidden; /* Empêche le défilement horizontal */
}


/* -- CARTE -- */
#map {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 40px);
}

/* Titre de la carte */
#titre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow-wrap: break-word; /* Retour à la ligne */
    background: white;
    font-size: 22px;
    text-align: center;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacement entre les éléments */
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 1200;
}

/* Ajustement des images */
#titre img:first-child {
    margin-right: auto; /* Colle à gauche */
}

#titre img:last-child {
    margin-left: auto; /* Colle à droite */
}

/* Liste des axes */
#listeAxes {
    position: fixed;
    left: 0.5vw;
    width: 25vw;
    background: white;
    font-size: 0.8rem;
    padding: 0;
    border-radius: 0.5rem;
    z-index: 1100;
}


/* -- SIDEBAR -- */
#sidebar {
    position: fixed;
    left: 0.5vw;
	width: 25vw;
	bottom: 16vh;
	overflow-y: auto;
	background-color: #f8f9fa;
	padding-bottom: 0.3rem;
	border-radius: 0.5rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.5);
	z-index: 1000;
	display: flex;
    flex-direction: column; /* Permet d'organiser les enfants en colonne */
}

#sidebar-header {
    flex-shrink: 0; /* Empêche le titre de se réduire si l'espace est limité */
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0.5rem;
    padding-bottom: 0.2rem; /* Ajoute un peu d'espace sous le titre */
    border-bottom: 1px solid #ddd; /* Ligne de séparation pour le titre */
}

#titre-sidebar {
    font-size: 0.9rem;
    font-weight: bold;
}

#sidebar-content {
    flex-grow: 1;  /* Permet au contenu de prendre tout l'espace disponible */
    overflow-y: auto; /* Active la barre de défilement uniquement pour ce conteneur */
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* Empêche le défilement horizontal */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#sidebar.collapsed #sidebar-content {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}


/* Liste */
#structure-list {
	list-style-type: none; /* Supprime les puces des éléments de liste */
	padding-left: 0.5rem;
	margin: 0;
}

/* Thèmes */
.theme-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.3rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    margin-top: 0.3rem;
    cursor: pointer;
}

.btn-theme-icon {
    width: 20px;
    height: auto;
    margin-right: 0.5rem;
}

/* Structures */
.structure-sublist-title {
    font-size: 0.85rem;
    font-weight: bold;
    font-style: italic;
    color: grey;
    margin-bottom: 5px;
    margin-left: 10px;
    list-style-type: none;
}

.structure-header {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
    padding: 0.3rem;
    padding-left: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer; /* Change le curseur en forme de main lorsqu'on survole l'élément */
}

.btn-structure-icon {
    width: 18px;
    height: auto;
    margin-right: 0.5rem;
}

#structure-list ul {
    list-style-type: none; /* Supprime les puces des sous-listes */
    padding-left: 1rem;
    margin-left: 0;
}

/* Projets */
.projet-sublist-title {
    font-size: 0.8rem;
    font-weight: bold;
    font-style: italic;
    color: grey;
    margin-bottom: 5px;
    margin-left: 10px;
    list-style-type: none;
}

.project-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    padding-left: 0.8rem;
    cursor: default;
}

.project-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.5rem;
}

/* Style pour personnaliser la barre de défilement */
#sidebar::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre */
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: #888; /* Couleur de la barre */
    border-radius: 0.25rem; /* Coins arrondis */
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Couleur au survol */
}


/* -- POPUP -- */
.leaflet-popup-content-wrapper {
    background-color: white;
    color: #333;
    border-radius: 10px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.leaflet-popup-tip {
    background-color: white;
}


/* -- INFOS -- */
#info {
    position: fixed;
    left: 0.5vw;
    width: 25vw;
    bottom: 1vh;
    background: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

#info-header {
    flex-shrink: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #ddd;
}

#info-content {
    font-size: 0.85rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
}