/* Centre global du widget */
#widget-benevole {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    background-color: #f0f9f9;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#non_connecte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Messages d'erreur */
.error-message {
    color: red;
}

/* Titres des sections */
h1 {
    color: #003f3f;
    font-size: 35px;
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
}

h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 8px auto 0;
    background-color: rgb(229, 35, 71);
    border-radius: 2px;
}

h2 {
    color: #003f3f;
    font-size: 25px;
    text-align: center;
}

/* Style général des formulaires */
form {
    width: 100%;
    max-width: 500px; 
    padding: 1.5em;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

form label {
    font-size: 0.9rem;
    color: #003f3f;
    margin-bottom: 5px;
    align-self: flex-start;
}

/* Organisation en colonne pour les éléments du formulaire */
div.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    background-color: #e52347;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 300ms ease-in-out;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Input et boutons centrés et prenant toute la largeur */
input,
button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button:hover {
    background-color: #d81b3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

input:focus {
    border-color: #007f7f;
    outline: none;
    box-shadow: 0 0 5px rgba(0,127,127,0.4);
    transition: box-shadow 0.3s ease;
}

#valider-inscription {
    background-color: rgb(229, 35, 71);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 300ms ease-in-out;
    border-radius: 15px;
}

button:hover {
    background-color: #c62828;
}

/* Liste sans puces */
ul {
    text-align: center;
    list-style-type: none;
}

/* Affichage des horaires validés */
#horaires_valider {
    color: red;
}

/* Vérification */
#verifier {
    text-align: center;
}

/* Affichage de l'image du profil */
#profile-image-display {
    align-self: center;
    margin: auto;
    display: none;
    text-align: center;
    align-items: center;
    max-width: 256px;
    max-height: 256px;
    border-radius: 150px;
}

/* Nom de l'utilisateur connecté */
#connected_name {
    color: #003f3f;
    text-decoration: underline;
    font-size: 25px;
    font-weight: bold;
}

/* Footer */
#footer-netjer {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 20px;
}

#footer-netjer p {
    margin: 0;
    font-size: 12px;
}

#logo-pop-cornes {
    display: block;
    margin: 0 auto;
    max-width: 150px;
}

#logo_netjer_studio {
    display: block;
    margin: 0 auto;
    max-width: 50px;
}

#inscription, #connexion {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

/* Bouton de suppression */
.delete_button {
    max-width: 25px;
}

/* Media Queries pour mobile */
@media only screen and (max-width: 768px) {
    form {
        width: 90%;
    }

    h1,
    h2 {
        font-size: 20px;
    }

    #logo_netjer_studio {
        width: 50px;
        height: auto;
    }

    #logo-pop-cornes {
        width: 50px;
        height: auto;
    }
}