/* Style pour la carte en plein écran */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Empêche le défilement */
}

#map {
    height: 50vh; /* Utilise toute la hauteur de la fenêtre */
    width: 90vw;  /* Utilise toute la largeur de la fenêtre */
    position: absolute;
    top: 20vh;
    left: 0;
}

#compass-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    z-index: 1000; /* S'assurer que le conteneur est au-dessus de la carte */
}

/* Styles pour les boutons et les checkboxes */
button, input[type="checkbox"], label {
    background: white;
    padding: 5px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000; /* S'assurer qu'ils sont au-dessus de la carte */
    position: relative;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
}

#compass {
    position: relative;
    width: 100px;
    height: 100px;
    border: 5px solid black;
    border-radius: 50%;
    background: white;
    text-align: center;
    line-height: 90px;
    font-size: 16px;
    color: black;
    transform-origin: center center;
}

/* Style pour la flèche de la boussole */
#compass-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 52px solid red;
    top: 0px;
    left: 47%;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: bottom center;
}

/* Style pour les informations de la boussole */
#compass-info {
    position: absolute;
    top: 120px;
    right: 10px;
    background: white;
    padding: 5px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000; /* S'assurer qu'il est au-dessus de la carte */
}

/* Styles existants... */

/* Ajout de styles pour la réactivité */
@media (max-width: 768px) {
    #compass-container {
        top: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
    }

    #compass {
        width: 80px;
        height: 80px;
        line-height: 70px;
    }

    #compass-arrow {
        border-bottom: 42px solid red;
        top: 0px;
        left: 45%;
    }

    #compass-info {
        top: 100px;
        right: 5px;
        font-size: 12px;
    }

    button, input[type="checkbox"], label {
        font-size: 14px;
    }

    #controls {
        top: 10px;
        left: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Style pour le message d'erreur */
#error-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: red;
    display: none;
    z-index: 1000;
}

/* Style pour le bouton de simulation */
#simulate {
    display: none; /* Initialement caché */
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    z-index: 1000;
}

#confirmation-popup {
    width: 100vw;
    height: 100vh;
    background-color: black;
    position: absolute;
    z-index: 1000;
}
