/* COULEURS */
:root {
    --primary-color: #2d3e52;
    /* Couleur principale de la police */
    --button-color: #a7c957;
    /* Couleur des boutons */
    --blue-theme: #71C4F1;
    /* Couleur bleue du thème */
}

@font-face {
    font-family: 'Pure Milk';
    src: url('../fonts/PureMilk.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* MODAL */
#modal {
    display: none;
    /* Modal caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}


#modal>div {
    width: 100%;
    max-width: 500px;
    background-color: #71C4F1;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: solid;
    border-color: #a7c957;
}

#modal>div button {
    margin: 0 auto;
}

#modal>div ul {
    padding: 0;
    list-style: none;
    width: 100%;
}

#modal>div li {
    margin-right: 10px;
}

#modal>div li a {
    color: var(--primary-color);
}

#modal>div>h2 {
    stroke: var(--primary-color);
    display: flex;
    justify-content: center;
    border: solid;
    border-color: #a7c957;
    background-color: beige;
    border-radius: 10px;
}

#closeModal {
    cursor: pointer;
}

/* FORMULAIRE */
@font-face {
    font-family: 'Pure Milk';
    src: url('../fonts/PureMilk.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: 'Nunito', sans-serif;
    background: url(../Images/backgroundAcceuil.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0;
    color: var(--primary-color);
}


h2 {
    color: var(--primary-color);
    text-align: center;
}

h3 {
    font-size: 1.2em;
}

.formI-container {
    background-color: #71c4f1d4;
    margin-top: 400px;
    margin-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* 100% pour qu'il s'adapte à la taille de l'écran */
    max-width: 350px;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* Pour éviter que le padding n'affecte la taille totale */
    border: solid 2px #1390d4cf;
}

.formC-container {
    background-color: #71c4f1d4;
    margin-top: 130px;
    margin-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* 100% pour qu'il s'adapte à la taille de l'écran */
    max-width: 350px;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* Pour éviter que le padding n'affecte la taille totale */
    border: solid 2px #1390d4cf;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    margin-top: 15px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #1390d4cf;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 10px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: var(--blue-theme);
    outline: none;
}

.submit[type="submit"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color:var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    border: #333 solid;
}

.submit[type="submit"]:hover {
    background-color: #8dbd5f;
}

.butonCond {
    background-color: #a7c957;
    border-radius: 10px;
    cursor: pointer;
}

.boutonAccueil, .boutonMdp {
    width: 100%;
    padding: 10px;
    background-color: var(--button-color);
    border: none;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    border: #333 solid;
}

#btn {
    width: 100%;
    padding: 10px;
    background-color: var(--button-color);
    border: none;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    border: #333 solid;
}

#btn:hover, .boutonAccueil:hover, .butonCond:hover, .boutonMdp:hover {
    background: #88b04b;
    color: #fff;
}

.requierd {
    color: red;
}

.error input,
.error textarea {
    border-color: red;
}

.error {
    color: red;
}

.exemple {
    color: green;
}

/*=============================================================================================================\  
|                                          500 PX                                                              |
|                                                                                                              |
|                                                                                                              |
\=============================================================================================================*/

@media (min-width: 500px) {

    form {
        width: 100%;
        max-width: 400px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"] {
        font-size: 15px;
    }

    .submit[type="submit"],
    #btn {
        font-size: 15px;
    }

    label {
        font-size: 15px;
    }
}

/*=============================================================================================================\  
|                                          768 PX                                                              |
|                                                                                                              |
|                                                                                                              |
\=============================================================================================================*/

@media (min-width: 768px) {

    form {
        width: 100%;
        max-width: 500px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"] {
        font-size: 16px;
    }

    .submit[type="submit"],
    #btn {
        font-size: 16px;
    }

    label {
        font-size: 16px;
    }
}

/*=============================================================================================================\  
|                                          992 PX                                                              |
|                                                                                                              |
|                                                                                                              |
\=============================================================================================================*/

@media (min-width: 992px) {

    form {
        width: 100%;
        max-width: 650px;
        font-size: 1em;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"] {
        font-size: 18px;
    }

    .submit[type="submit"],
    #btn {
        font-size: 18px;
    }

    label {
        font-size: 18px;
    }

    .formI-container {
        margin-top:600px ;
    }
}

/*=============================================================================================================\  
|                                          1199 PX                                                             |
|                                                                                                              |
|                                                                                                              |
\=============================================================================================================*/

@media (min-width: 1199px) {

    form {
        width: 100%;
        max-width: 800px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"] {
        font-size: 20px;
    }

    .submit[type="submit"],
    #btn {
        font-size: 20px;
    }

    label {
        font-size: 20px;
    }
}