@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: ghostwhite;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0px;
}

.left-container {
    background-color: skyblue;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 50%;
    padding: 20px;
    color: white;
    text-align: center;
}

.left-container img {
    max-width: 100%;
    border-radius: 10px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.nav-button {
    background-color: white;
    color: skyblue;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: lightgray;
}

.form-container {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.form-header {
    margin-bottom: 20px;
}

.form-header h2 {
    color: skyblue;
    font-size: 24px;
    margin: 5px 0;
}

.form-header p {
    font-size: 14px;
    color: #666;
}

input {
    background-color: powderblue;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 5px;
}

button {
    background-color: skyblue;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 32px;
    margin-top: 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: lightblue;
}

.logo {
    width: 150px;
    height: auto;
    max-width: 100%;
    margin-bottom: 0px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.login, .dashboard {
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

.login {
    width: 800px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 32, 63, 0.2);
    overflow: hidden;
    align-items: center;
}

.dashboard {
    background-color: lightgray;
    height: 100%;
}

/* Quand l'utilisateur est connecté */
body.connected .login, body:not(.connected) .dashboard {
    display: none; /* Masque la section de connexion */
}

body.connected .dashboard, body:not(.connected) .login {
    display: flex; /* Affiche la dashboard */
}

/* Conteneur principal */
.dashboard {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 32, 63, 0.2);
    overflow: hidden;
}

/* Bande supérieure  space-between*/
.header-bar {
    background-color: lightblue;
    color: white;
    display: flex;
    justify-content:  space-between;
    align-items: center;
    padding: 30px 50px;
    font-size: 150px;
    font-weight: bold;


}


.header-bar .texte {
    font-size: 30px;
}

.header-bar .logout-button {
    background-color: white;
    color: darkblue;
    border: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    padding: 12px;
    border-radius: 100px;

}

.header-bar .logout-button:hover {
    background-color: lightgray;

}
.header-bar .logo {
width: 170px; /* Ajustez la taille selon vos besoins */
height: auto;
margin: 0 20px; /* Ajoutez de l'espace autour du logo */
}

/* Contenu principal   "AIzaSyAngF1gSsMbDLaIUkdPfQZz9FIPYnwWepI", */
.dashboard-main {
    display: flex;
    height: 100%;
}

/* Section gauche */
.sidebar {
    width: 286px;
    background-color: lightblue;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}


.sidebar .liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sidebar .liste a {
    background-color: white;
    color: skyblue;
    border: none;
    font-size: 16px;
    padding: 12px;
    border-radius: 100px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.sidebar .liste a:hover {
    background-color: lightgray;
}

.sidebar .liste a.selected {
    background-color: lightgray;
}
/* Section droite */
.map-container {
    flex: 1;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.map-container .map {
    width: 100%;
    height: 100%;
    border: 20px solid lightgray;
    border-radius: 5px;
    background: url('https://via.placeholder.com/800x600?text=Carte') no-repeat center center;
    background-size: cover;
}