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

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* Conteneur positionn� en haut avec un peu d'espace */
.container {
    max-width: 600px;
    margin: 60px auto;
    padding: 2rem 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
}/* Titres */
h1 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
}

/* Paragraphes */
p {
    text-align: center;
    margin: 15px 0;
    font-size: 1rem;
}

/* Boutons */
.button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    margin: 10px 0;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #45a049;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form input:focus {
    border-color: #4CAF50;
}

form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

/* Liens */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.info-message {
    background-color: #f8d7da;
    color: green;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #77ff84;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}


@media screen and (max-width: 600px) {
    .container {
        margin: 30px 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        font-size: 1.1rem;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    form input,
    form button {
        font-size: 1rem;
    }
}


/* Conteneur du formulaire */
.form-container {
    max-width: 500px; /* Largeur sur PC */
    width: 100%;
    margin: 60px auto; /* Centr� avec marges automatiques */
    padding: 2rem 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Pour inclure les padding dans la largeur */
}

/* Responsive sur mobile */
@media screen and (max-width: 600px) {
    .form-container {
        margin: 20px auto; /* Marge automatique � gauche et � droite pour centrer */
        padding: 1.5rem; /* R�duit les paddings */
        width: calc(100% - 2rem); /* R�duit la largeur pour �viter de coller aux bords */
        max-width: 100%; /* Assure que la largeur est � 100% */
    }

    h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    label {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    input, button {
        font-size: 1rem;
        width: 100%; /* Pleine largeur des champs */
        padding: 12px;
        margin-bottom: 10px; /* Espacement entre les champs */
    }

    .button {
        padding: 12px;
    }

    p {
        font-size: 0.9rem;
        text-align: center;
    }
}
