body {
    font-family: Arial, sans-serif;
    color: #2F1F49;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ECE8F0;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #FA99F5;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 5px;
    font-size: 16px;
}

button:hover {
    background-color: #FBD6FB;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:focus {
    outline: 2px solid #FBD6FB;
    outline-offset: 3px;
}

button:active {
    background-color: #ECE8F0;
    transform: scale(0.98);
}

a {
    text-decoration: none;
}

a button {
    display: inline-block;
    margin: 10px 5px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #2F1F49, #FA99F5);
    color: white;
    font-size: 22px;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

header .site-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

header .search-bar {
    padding: 5px;
    border-radius: 10px;
    display: flex;
    margin-left: 10%;
}

header .search-bar input[type="text"] {
    width: 250px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #FA99F5;
    outline: none;
    font-size: 16px;
}

#Filtre {
    padding: 3px 9px;
    border-radius: 50%;
    font-size: 16px;
    width: 10%;
    color: #000000;
    margin-left: -30px;
    margin-top: 5px;
}

header .user-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

header .user-actions button {
    background-color: #2F1F49;
    color: white;
}

header .user-actions button:hover {
    background-color: #FBD6FB;
    color: white;
}

.add-location-container{
    text-align: center;
}

.addLocation_button {
    background-color: #2F1F49;
}

.addLocation_button:hover {
    background-color: #FA99F5;
}

footer {
    display: flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(135deg, #FA99F5, #2F1F49);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    width: auto;
}

footer .footer-text {
    font-size: 16px;
    text-align: center;
}

footer .footer-text a {
    color: white;
    text-decoration: none;
}

footer .footer-text a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    color: #000000;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Header: ajustement de la disposition pour mobile */
    header {
        flex-direction: column;
        align-items: center; /* Centre tout le contenu du header */
        padding: 10px;
    }

    body, html {
        overflow-x: hidden; /* Empêche le défilement horizontal */
    }

    .site-name {
        font-size: 20px;
    }

    /* Barre de recherche et filtre */
    header .search-bar {
        width: 100%; /* S'étend sur presque toute la largeur sur mobile */
        margin-top: 10px;
    }

    header .search-bar input[type="text"] {
        width: 100%; /* S'adapte à la largeur de la barre */
        margin: 5px 0;
    }

    #Filtre {
        width: 15px;
        margin-top: 10px; /* Ajout d'un espacement sous la barre de recherche */
        margin-left: 1px;
    }

    /* Actions de l'utilisateur */
    .user-actions {
        display: flex;
        justify-content: center; /* Centrer les boutons utilisateur */
        width: 100%;
    }

    header .user-actions button {
        margin: 5px;
    }

    .user-name {
        display: none;
    }

    /* Ajouter une location */
    .add-location-container {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .addLocation_button {
        width: 80%; /* Bouton plus large sur mobile */
        padding: 15px;
        font-size: 18px;
    }

    /* Footer */
    footer .footer-text {
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header .site-name {
        font-size: 18px; /* Réduction de la taille du texte */
    }

    header .search-bar input[type="text"] {
        font-size: 14px; /* Réduction de la taille du texte pour plus de lisibilité */
    }

    header .user-actions button {
        font-size: 14px; /* Taille du texte plus petite sur mobile */
        padding: 8px 12px;
    }
}


