@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");
body {
    font-family: Raleway, sans-serif;
    background:
        linear-gradient(
            45deg,
            #bebdc708 10%,
            transparent 10%,
            transparent 90%,
            #bebdc708 90%
        ),
        linear-gradient(
            135deg,
            transparent 40%,
            #bebdc706 40%,
            #bebdc706 60%,
            transparent 0
        ),
        linear-gradient(
            45deg,
            transparent 40%,
            #bebdc704 40%,
            #bebdc704 60%,
            transparent 0
        );
    background-size: 3em 3em;
    background-color: #ffffff;
    opacity: 1;
}
@media (max-width: 800px) {
    body {
        font-size: 0.8em;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
}
li,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: rgba(25, 143, 130, 0.68);
}

.hidden {
    display: none !important;
}

/*Background coloré spécial*/
/* .modal-dialog::after{
    position: absolute;
    content: "";
    z-index: -1;
    background: linear-gradient(113.84deg, #D65831 0%, #D2D631 36.52%, #31D673 71.83%, #3aa3ff 100%);;
    inset: 3rem;
    border-radius: 3rem;
    bottom: var(10, 0);
    filter: blur(3rem);
} */

.showInMiddle {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) scale(2);
    z-index: 1000000 !important;
    background-color: rgba(0, 0, 0, 0.485);
    padding: 1em;
    border-radius: 10px;
    color: white;
}
.showInMiddle label {
    color: white !important;
}
.modal {
    position: fixed; /* Couvre toute la fenêtre */
    z-index: 1040; /* z-index de base, sera augmenté dynamiquement */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Empêche le scroll de la page entière */

    /* Centrage du dialogue via Flexbox */

    /* Gestion de la visibilité et des événements */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Ignore les clics sur l'overlay par défaut */

    /* Transition pour l'apparition/disparition */
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

/* Classe ajoutée par JS pour rendre la modale visible */
.modal-visible {
    opacity: 1;
    visibility: visible;
}

/* Le dialogue interne de la modale */
.modal-dialog {
    position: absolute; /* Pour positionnement interne (close button) et transform */
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: auto; /* Ajuste la largeur au contenu */
    max-width: 100%;
    display: flex; /* Structure interne flexible */
    flex-direction: column; /* Header, content, footer verticaux */
    z-index: 1041; /* Au-dessus de l'overlay .modal (sera augmenté dynamiquement) */

    /* Réactive les événements pour le dialogue et son contenu */
    pointer-events: auto;

    /* Positionnement initial pour le drag via transform */
    /*left:50%;*/

    border: 5px solid rgb(149, 149, 149) 10px black dashed;
    border-style: outset inset inset outset;
    border-color: rgb(68, 68, 68);
    border-width: 2px;

    /* Empêcher le texte d'être sélectionné lors du drag du dialogue */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* En-tête servant de poignée de drag */
.modal-header {
    flex-shrink: 0; /* Empêche le header de rétrécir */
    padding: 10px 15px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 6px; /* Arrondis correspondants au dialogue */
    border-top-right-radius: 6px;
    cursor: grab; /* Indice visuel pour le drag */

    display: flex;
    justify-content: space-between; /* Espace entre titre et bouton close */
    align-items: center;
}

.modal-header span {
    font-weight: bold;
    /* Texte non sélectionnable */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Bouton de fermeture dans l'en-tête */
.modal-close {
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 5px;
    color: #666;
    cursor: pointer;
    top: auto !important;
}
.modal-close:hover {
    opacity: 1;
    color: #000;
}

/* Zone de contenu principal */
.modal-content {
    position: relative;
    flex-grow: 1; /* Prend l'espace vertical restant */
    overflow-y: auto; /* Ajoute un scroll SI le contenu dépasse */
    /* Réactive la sélection de texte pour le contenu */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    max-height: 90vh;
    overflow-y: scroll;
    overflow-x: scroll;
    resize: both;
}

/* Zone pour afficher les erreurs */
.modal-error {
    flex-shrink: 0;
    color: red;
    font-size: 0.9em;
}

/* Style pendant le drag actif */
.modal-header:active,
body.modal-dragging {
    /* Ajouter/retirer cette classe sur body via JS si besoin */
    cursor: grabbing !important; /* Force le curseur pendant le drag */
}

.disparaitre {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    background-color: rgb(189, 2, 2);
    border-radius: 0.3em;
    padding: 0.3em 0.3em 0.3em 0.5em;
    color: white;
    z-index: 2;
    border: none;
}

.disparaitre:hover {
    background-color: rgb(97, 0, 0);
}

.fixed {
    position: fixed;
}
.absolute {
    position: absolute;
}
.haut {
    top: 0;
}

.droit {
    right: 0;
}

.no-padding {
    padding: 0 !important;
}

.marker-info-hide {
    display: none;
}

.temporary-message {
    background-color: rgb(16, 162, 16);
    color: white;
    padding: 0.3em 0.6em;
}

/* Styles for map markers */
.marker-cluster .cluster-icon {
    background-color: #3498db;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.marker-magasin svg {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}
