/**
 * Typo
 */
@font-face {
    font-family: "Raleway";
    src: url("../webfonts/Raleway-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Raleway";
    src: url("../webfonts/Raleway-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face{
    font-family: 'fa-brands';
    font-weight: normal;
    font-style: normal;
    src: url("../webfonts/fa-brands-400.woff2") format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url("../webfonts/fa-brands-400.woff") format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
         url("../webfonts/fa-brands-400.ttf") format('truetype'); 
}

/**
 * Variables
 */
:root {
    --orangeMN: #f6861f;
    --pinkMN: #ed0f68;
    --lightblue: #496BAE;
    --white: #ffffff;
    --yellow: #FFCA60;
    --grayMN: #6d676c;
    --spacing-light: 2rem;
    --spacing-middle: 3.125rem;
    --spacing-big: 5rem;
}

/**
 * Global Rules
 */

* {
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
}

body {
    font-family: 'Raleway', 'Arial', 'sans-serif';
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to right, var(--orangeMN), var(--pinkMN));
}

h1,
h2,
h3,
p,
span,
label,
input[type=text],
textarea,
summary,
li {
    font-family: 'Raleway', 'Arial', 'sans-serif';
    font-size: 1.125rem;
}

a {
    color: var(--orange);
    background-position: 0 100%;
    background-repeat: no-repeat, no-repeat;
    transition: all 0.3s ease-out;
    background-image: linear-gradient(#FFCA60, #FFCA60);
    background-size: 0 100%;
    text-decoration: underline;
}

a:hover, 
a:focus {
    background-size: 100% 100%;
    text-decoration-style: dashed;
}

/**
 * Header
 */

header {
    background: linear-gradient(to right, var(--orangeMN), var(--pinkMN));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-light);
}

header svg {
    max-width: 500px;
}

header h1 {
    color: var(--white);
    text-transform: uppercase;
    font-size: 2.1875rem;
    font-weight: 700;
    text-align: center;
}

.logo {
    width: 30%;
    height: 30%;
}

/**
 * Entête de page
 */

.entete {
    background-color: white;
    color: var(--grayMN);
    padding: var(--spacing-light);
    text-align: center;
}

.entete p {
    margin: 0 auto;
    color: var(--orange);
    font-weight: 700;
    text-align: center;
    width: 70%;
    display: inline-block;
    vertical-align: middle;
}

.pictoMaintenance {
    margin: 0 auto;
    padding: 0% 2%;
    width: 10%;
    display: inline-block;
    vertical-align: middle;
}

/**
 * Formulaire
 */

.hidden {
    display: none;
}

.formulaire {
    max-width: 1280px;
    margin: var(--spacing-light);
}

.formulaire p {
    color: var(--orange);
    font-weight: 700;
}

.formulaire form {
    margin-top: var(--spacing-big);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/**
 * Champs
 */

.field {
    width: 100%;
    margin-bottom: var(--spacing-middle);
}

.field.error,
p.error {
    background: #fff9f9;
    border: 1px solid #c02b0a;
    padding: 10px;
}

.field label {
    display: block;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 5px;
}

.field label .label-error,
p.error {
    display: block;
    color: #c02b0a;
    font-weight: 400;
}

.field label .require {
    font-weight: 400;
}

.field input[type=text] {
    height: 55px;
    width: 100%;
    border: none;
    border-bottom: solid 1px var(--orange);
}

.field textarea {
    width: 100%;
    border: none;
    border-bottom: solid 1px var(--orange);
}

.field.rgpd {
    display: flex;
    align-items: center;
}

.field.rgpd label {
    font-weight: 400;
    margin-left: 10px;
}

.formulaire details p,
.formulaire details ul li {
    font-weight: 400;
    font-size: 0.813rem;
}

details {
    width: 100%;
}

details summary {
    font-weight: 700;
    color: var(--orange);
    text-align: center;
}

details summary:hover,
details summary:focus {
    cursor: pointer;
    text-decoration: underline;
}

details > *:not(summary) {
    padding: 0 25px;
}

.a {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

button[type=submit] {
    background-color: var(--yellow);
    border: none;
    color: var(--orange);
    border-radius: 2.375rem;
    padding: 10px 30px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.875rem;
    display: block;
    position: relative;
    z-index: 10;
    overflow: hidden;
    margin: auto;
    margin-top: var(--spacing-middle);
}

button[type=submit]::before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    background-color: var(--lightblue);
    border-radius: 2.375rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: 0.2s ease;
}

button[type=submit]:hover,
button[type=submit]:focus {
    color: var(--white);
    cursor: pointer;
}

button[type=submit]:hover::before,
button[type=submit]:focus::before {
    width: 100%;
    height: 100%;
}

/**
 * Footer
 */
footer {
    background: linear-gradient(to right, var(--orangeMN), var(--pinkMN));
    padding: var(--spacing-light);
}

footer ul {
    margin: 0;
    display: flex;
    justify-content: center;
    flex: 0 0 23%;
    list-style-type: none;
    padding: 0;
    width: 100%;
    color: var(--white);
}

footer ul li a {
    color: var(--white);
    margin: 0 0.3rem;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    text-decoration: none;
}

footer ul li a:hover {
    color: var(--orange);
}



.correct {
    background-color:#00FF00;
}

.incorrect {
    background-color:#FF0000;
    color:white;
    display:block;
}

#infos p, #infos ul li {
    font-size:15px;
    text-align: left;
}




#afficher:hover {
    cursor:pointer;
}

#afficher:focus {
    border-width:4px;
}



span {
    position: relative;
}

span a::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    position: absolute;
    top: calc(100% - 1px);
    left: -0.5px;
    background-color: #ed0f68;
    opacity: 0;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

span a:hover::after {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

/** 
 * Media tablet & small desk 
*/
@media screen and (min-width:800px) and (max-width: 1279px) {
    
    header h1 {
        font-size: 3.4375rem;
    }

    .entete {
        padding: var(--spacing-big);
    }

    .entete p {
        font-size: 1.875rem;   
    }

    .formulaire .field.col3 {
        width: 30%;
    }
}

/** 
 * Media big desk 
*/
@media screen and (min-width:1280px) {
    
    header h1 {
        font-size: 3.4375rem;
    }

    .entete {
        padding: var(--spacing-big);
    }

    .entete p {
        font-size: 1.875rem;   
    }

    .formulaire {
        margin: var(--spacing-big) auto;
    }

    .formulaire .field.col3 {
        width: 30%;
    }
}