body, h1, h2 {
    margin: 0;
padding: 0;
}

@font-face {
    font-family: "Montagu Slab";
    src:
      local("Montagu Slab"),
      url("font/MontaguSlab-VariableFont_opsz\,wght.ttf") format("truetype"),
  }

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: "Montagu Slab", Georgia, 'Times New Roman', Times, serif; /*si notre police a un seul mot pas obligation ""*/
}

/* .component, .imgcontainer, .menu-container, .question, h1, #main, #rep-container, .block, .menu li {
    border: 1px solid green;}
    /* margin: 20px; Marges externes pour les 4 côtés */
   

    .big-text {
        font-size: 1.8em;
    }

/*------------------------------------
--------------HEADER------------------
--------------------------------------*/

#header {
    flex: 1;
    background-color: #50B692;
    display: flex; /* Active propriétés de flexbox */
    flex-direction: column;
    padding: 20px; /* Marges externes pour les 4 côtés */
    align-items: flex-start; /*à gauche*/
}

header #header-top {
    display : flex;
    align-items: center;
    width: 90%;
    margin: auto;
}

header .imgcontainer {
    flex: 1;
    padding: 20px; /* Marges externes pour les 4 côtés */
    text-align: center;
    padding: 20px; /* Marges externes pour les 4 côtés */

}

header .imgcontainer .logo {
    width: 100px;
    height: 80px;
}

h1 {
    flex: 5;
    color:#333;
    padding: 20px; /* Marges externes pour les 4 côtés */
}

header .menu-container {
    flex: 1;
    /* padding: 20px; Marges externes pour les 4 côtés */
}

.hamb {
    height: 45;
    width: 45px;
    position:absolute;
    top : 38px;
    right:30px;
}

.hamb:hover {
    cursor: pointer;
}

.hamb .hamb-elem {
    height: 12px;
    border-bottom: 2px solid #333;
}

header #menu-principal {
    display: none; /* n'affiche pas l'info html */
    width: 100%;
} 

header #menu-principal .menu {
   list-style-type: none;
   display: flex;
   flex-direction: column;
   width: 100%;
   margin-left: -40px;
}

header #menu-principal .menu li {
    padding: 10px;
    text-align: center ;
    width: 100%;
 }

header #menu-principal .menu li a { /* lien du menu principal*/
    text-decoration: none;
    color: #333;
}

header #menu-principal .menu li a:hover { /* lien du menu principal quand il est survolé*/
    text-decoration: underline;
    color: #fff;
}

@media screen and (min-width : 1024px){ /* media screen and caractéristique de l'écran de largeur min de 1024px*/
    
    header #header-top {
       justify-content: center;
}

header .imgcontainer, header h1 {
    flex: none;
}

    header #menu-mobile {
    display: none; /* n'affiche pas l'info html */
}
    header #menu-principal {
    display: block;
    width: 90%;
    margin: auto;
}

    header #menu-principal .menu {
       /*  display: flex; /* n'affiche pas l'info html */
        /* width: 100%; */
        /* list-style-type: none;*/
        /* margin-left : -40px; */
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 50px;
        /* border: 1px solid red; */
    }
}

header #menu-principal .menu li {
    margin: 0;
    height: 30px;
    padding: 10px;
    border-right: 1px solid #235040;
}

header #menu-principal .menu li:last-child {
        border-right: none;
}

/*------------------------------------
--------------MODALE----------------
--------------------------------------*/

#modale-intro {
    display: none;
    width : 100%;
    height: 120vh;
    /* border : 1px solid black; */
    background-color: rgb(51, 51, 51, 0.9);
    position : absolute; /* vient par dessus */
    top: 20vh;
    left : 0;

}



/*------------------------------------
--------------QUESTION----------------
--------------------------------------*/


.question {
    width: 90%;
    margin: auto;
    padding: 10px 0; /* Marges externes pour les 4 côtés */
    font-size: 15px;
    text-align: justify;
}

form {
    width: 90%;
    margin: auto;
}

.rep-libre{
    width: 90%;
    margin: 30px auto;
}

.rep-qcm {
    width: 40%;
    height: 150px;
    background-color: white;
    margin: 5px;
    border : 3px solid transparent;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.img-qcm {
    display: block;
    height: 80px;
}

@media screen and (min-width : 1024px){ /* media screen and caractéristique de l'écran de largeur min de 1024px*/
    .question, form {
        width: 60%;
        margin: auto;
    }
    
}

/*------------------------------------
-----------MAIN SECTION---------------
--------------------------------------*/

#main {
    flex: 6;
    background-color: #419477;
    padding: 20px; /* Marges externes pour les 4 côtés */

    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    flex: 1;
    /* border: 1px solid black; */
    font-weight: normal;
    font-size: 2em;
}

form {
    flex: 10;
    /* border: 1px solid black; */

    display: flex;
    flex-direction: column;
}

.form-section {
    flex: 1;
    /* border: 1px solid black; */
}

#parcours {
    display: flex;
    flex-direction: column;
}

#parcours select {
    flex: 1;
    margin: 10px;
    border-radius: 360px;
    border: none;
    font-size: 1.2em;
    text-align: center;
}

.block {
display: block;
}

#controls{
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#controls input {
    flex: 2;
    width: 50%;
    height: 250px;
    margin: 60px auto 0 auto;
    border: none;
    background-color: #50B692;
    color: rgb(153, 25, 25);
    border-radius: 360px;
    font-size: 2em;
    position: relative;
    z-index: 10;
}

#controls input:hover, #controls input:active { /*quand element est survolé*/
    cursor : pointer ;
    background-color: #63E0B4;
    color: white;
    /* border : transparent;  mettre une bordure juste au-dessus si besoin*/
}

#controls div {
    flex: 1;

    display: flex;
    justify-content: space-between;

    position: relative;
    top: -30px;
    z-index: 0;
}

#controls div button {
    width: 10%;
}

#footer {
    flex: 1;
    background-color: #32725C;
}