:root {
    --font-size: 100px;
}

:root {
    --button-size: 100px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(
        to left,
        #E3FFFE 0%,
        #FFFFFF 40%,
        #FFFFFF 60%,
        #E3FFFE 100%
    );
    align-items: center;
    justify-content: center;
}

.header-connexion {
    background-color: #016401;
    width: 100%;
    height: 11%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}


.logo-connexion {
    position: absolute;
    height: 90%;
    left: 0.25%;
    z-index: 2;
}

.header-connexion h1 {
    margin: 0;
    font-size: 48px;
    text-align: center;
}

.container {
    text-align: center;
    margin-top: 20px;
}

.acces-text {
    font-size: 38px;
    font-weight: bold;
    color: black;
    text-align: center;
    margin: 20px 0;
}

label {
    font-size: 18px;
    margin-bottom: 8px;
    display: inline-block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    font-size: 22px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}

.saisie-text {
    font-size: 24px;
    font-weight: bold;
    color: black;
    text-align: center;
    margin: 20px 0;
}

.erreur {
    font-size: 24px;
    font-style: italic;
    color: black;
    text-align: center;
    margin: 20px 0;
}

.btn-connexion {
    background-color: #CCF5F3;
    color: black;
    padding: 10px 50px;
    border: 2px solid #00BBB0;
    border-radius: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-connexion:hover {
    background-color: #00BBB0;
    color: black;
    border-color: #00BBB0;
}

.footer {
    margin-top: 50px;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: black;
    padding: 10px 0;
}

.form-pas-entete {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#bouton-connexion-bas {
    margin-bottom: 10px;
}

.form-pas-entete div {
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.rouge {
    width: 100%;
    max-width: 500px;
    font-size: 22px;
    background-color: #f0f0f0;
    border: solid 2px red;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}

.normal {
    width: 100%;
    max-width: 500px;
    font-size: 22px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}

.require {
    color : red; 
}

#togglePwd {
    margin-left : 25px;
    border: solid 2px black;
    padding: 2px;
    border-radius: 4px;
}

.checkbox {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border: 2px solid black;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}


.btn-action {
    background-color: #CCF5F3;
    color: black;
    padding: 10px 20px;
    border: 2px solid #00BBB0;
    border-radius: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; /* Animation fluide */
    width: 300px;
    height: 500px;
    margin-top: 30px;
    /*margin-left: 50px;*/
    text-align: center;
}

.btn-action:hover {
    background-color: #00BBB0;
    color: black;
    border-color: #00BBB0;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-action .fas {
    font-size: 75px;
}

.info-text {
    font-size: 48px;
    font-weight: bold;
    color: black;
    text-align: center;
    margin-top: 50px;
}

.container-accueil {
    text-align: center;
    margin-top: 20px;
}

.presentation-accueil {
    font-size: 20px;
    margin: 30px auto;
    max-width: 800px; /* Largeur maximale */
    text-align: center;
    color: #000; /* Texte sombre */
    padding: 50px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
}

.presentation-accueil h2 {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.presentation-accueil h3 {
    margin-top: 15px;
    font-weight: bold;
    font-size: 30px;
    color: #000;
}

.presentation-accueil ul {
    font-size: 18px;
    list-style: none;
    padding: 0;
}

.presentation-accueil li {
    font-size: 18px;
    margin: 10px 0;
    font-size: 1.1rem;
}

.presentation-accueil em {
    font-size: 1rem;
    color: #555;
}

@media screen and (max-width: 768px) {
    .info-text {
        font-size: calc(var(--font-size) * 0.4);
    }

    .footer {
        display: none;
    }
    
    :root {
        --font-size: 50px; /* Réduction de la taille de la police pour les petits écrans */
        --button-size: 60px; /* Réduction de la taille des boutons pour les petits écrans */
    }

    .btn-action {
        font-size: calc(var(--font-size) * 0.33);
        padding: calc(var(--button-size) / 3) calc(var(--button-size) / 2);
        height: auto; /* Hauteur automatique */
        width: calc(var(--button-size) * 3.1);
    }

    .btn-action .fas {
        font-size: calc(var(--font-size) * 0.5);
    }

    .footer-text {
        display: none;
    }
}