:root {
    --main: #246eb9;
    --second: #7cb4b8;
    --text: #333333;
}

::before,
::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background-color: #f1f1f1;
}

h1 {
    font-size: 2.5rem;
    line-height: 3.2rem;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

p {
    text-align: center;
}

a {
    color: var(--second);
}

fieldset {
    padding: 50px 60px;
    border-radius: 5px;
    background-color: #e1e1e1;
}

form {
    text-align: center;
}

input {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    color: #000000;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    height: 100%;
    padding: 4px;
    padding-inline-end: 20px;
    padding-inline-start: 20px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

label {
    text-align: right;
}

table {
    width: 100%;
    margin: auto;
    text-align: left;
    border-collapse: collapse;
}

img {
    width: 60%;
}

ul {
    list-style: none;
}

.navbar {
    display: flex;
    row-gap: 40px;
    justify-content: space-between;
    align-items: center;
    padding: 20px 250px;
    background-color: var(--main);
    margin-bottom: 60px;
}

.navbar ul {
    padding-left: 30px;
    display: flex;
    row-gap: 40px;
    align-items: center;
}

.navbar ul li {
    padding-left: 60px;
    font-size: 22px;
}

.section {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    height: 100%;
    margin: auto;
    transition: all 0.3s ease;
    text-align: center;
}

.form_signup,
.form_login {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: right;
    border-radius: 12px;
    background-color: #e1e1e1;
    margin: 20px auto 40px;
    min-width: 420px;
    max-width: 600px;
    box-shadow: 3px 3px 12px 0px rgba(0, 0, 0, 0.2);
}

.form_signup form,
.form_login form {
    padding: 45px 32px;
}

.form_signup h2,
.form_login h2 {
    border-bottom: #c0c0c0 solid 1px;
    padding: 24px;
    margin-bottom: 0;
}

.form_signup p,
.form_login p {
    padding: 15px 0 5px;
}

.form_modifproduit,
.form_ajoutproduit {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: right;
    border-radius: 12px;
    background-color: #e1e1e1;
    margin: 20px auto 40px;
    min-width: 420px;
    max-width: 600px;
    box-shadow: 3px 3px 12px 0px rgba(0, 0, 0, 0.2);
}

.form_modifproduit form,
.form_ajoutproduit form {
    padding: 45px 32px;
}

.form_modifproduit h2,
.form_ajoutproduit h2 {
    border-bottom: #c0c0c0 solid 1px;
    padding: 24px;
    margin-bottom: 0;
}

.btn_form {
    display: inline-flex;
}

.btn {
    font-family: inherit;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    padding: 10px 20px;
    margin: 15px;
    color: white;
    border-radius: 40px;
    display: inline-block;
    white-space: nowrap;
    border: none;
    background: var(--second);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-grad {
    color: #f1f1f1;
    background-image: linear-gradient(90deg, var(--second) 0%, #73a1ad 56%, #83a4d4 100%);
    background-size: 200% auto;
    box-shadow: 0 0 20px #eee;
}

.btn-grad:hover {
    background-position: center center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.btn-ajout {
    color: #f1f1f1;
    background-image: linear-gradient(90deg, var(--second) 0%, #73a1ad 56%, #83a4d4 100%);
    background-size: 200% auto;
    box-shadow: 0 0 20px #eee;
    margin: 15px auto;
}

.btn-ajout:hover {
    background-position: center center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.btn.btn-erreur {
    color: #f1f1f1;
    background-image: linear-gradient(90deg, #c24545 0%, #a33737 56%, #9e2626 100%);
    background-size: 200% auto;
}

.btn-erreur:hover {
    background-position: center center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.btn.btn-modif {
    color: #f1f1f1;
    background-image: linear-gradient(90deg, #ecde0f 0%, #d4c926 56%, #c7bc2a 100%);
    background-size: 200% auto;
    background: #c7bc2a;
}

.btn-modif:hover {
    background-position: center center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.resultat {
    flex-grow: 1;
    margin-bottom: auto;
}

.resultat th {
    border: solid 2px #000000;
    background-color: var(--second);
    border-collapse: collapse;
    text-align: center;
}

.resultat td {
    border: solid 2px #000000;
    border-collapse: collapse;
    text-align: center;
    padding: 0 20px;
}

.resultat table {
    width: 1200px;
    margin: 10px auto 120px;
}

.resultat .btn {
    margin: 10px auto;
    padding: 10px;
}

footer {
    display: flex;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* align-content: flex-end; */
    padding: 20px 320px;
    background-color: var(--main);
    margin-top: 80px;
    color: #ffffff;
}

.footer a {
    color: #f1f1f1;
}