/* Global form styles using variables from variables.css */


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: 20px;
}

fieldset {
    border: var(--color-form-fieldset) 3px solid;
    border-radius: 7px;
    font-size: 2em;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    padding: 20px;
}

fieldset a {
    font-size: 0.8em;
    margin-left: 5%;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

legend {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: bold;
    color: var(--color-article-text);
    margin-left: 10%;
}

label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 5%;
    color: var(--color-text-reverse);
}

input,
textarea {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8em;
    border: black 1px solid;
    border-radius: 10px;
    padding: 5px;
    margin: 0 30px 10px 0px;
    resize: none;
    box-sizing: border-box;
}

checkbox {
    transform: translateY(2px);
    margin-right: 0.4em;
}

button {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.3em;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--color-bouton); color: white;
    display: block;
}

#annuler {
    background-color: var(--color-bouton);
    border: 5px solid var(--color-bouton-border);
    color: white;
    font-weight: bold;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin: 2% 3.6em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
}

#suppr {
    background-color: var(--color-del);
    border: 5px solid var(--color-del-border);
    color: white;
    font-weight: bold;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin: 2% 3.6em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
}

#suppr:hover {
    background-color: var(--color-del-hover);
}

button:hover, #annuler:hover {
    background-color: var(--color-bouton-hover);
}

.welcome {
    padding-top: 0;
    text-decoration: none;
    color: var(--color-bouton);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 450;
    transition: color 0.3s ease;
}


@media (max-width: 1024px) {

    form {
        width: 90%;
        margin: auto;
        font-size: 0.9em;
    }

    fieldset {
        width: 100%;
        font-size: 2.1em;
    }

    input,
    textarea {
        width: 90%;
        font-size: 0.9em;
    }
/*
    button {
        width: 35%;
    }*/
}


@media (max-width: 768px) {
    form {  
        margin: 1em auto;
    }

    fieldset { 
        padding: 1em;
        max-width: 90%;
    }

    input,
    textarea {
        width: 90%;
        font-size: 0.9em;
    }
}