:root {
    font-family: sans-serif;
}

.styled {
 grid-column: 4/5;
    margin-top: 80px;
    box-shadow: 40px -20px #8bc440;
    width: 358px;
    /*plus de resize responsive*/
  border: 0;
  line-height: 2.5;
  padding: 0 20px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: rgb(220 0 0 / 100%);
  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 20%),
    rgb(0 0 0 / 20%) 30%,
    rgb(0 0 0 / 0%)
  );
  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / 60%),
    inset -2px -2px 3px rgb(0 0 0 / 60%);
}

.styled:hover {
  background-color: rgb(255 0 0 / 100%);
}

.styled:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 60%),
    inset 2px 2px 3px rgb(0 0 0 / 60%);
}
.formulaireCS {
    /*    width: 400px;
    */
    height: auto;
    border-radius: 3px;
    box-sizing: border-box;
    padding: 30px 20px;
    text-align: center;
    background: white;
}

/*il faudra certainement mettre une classe au lieu du sélecteur form parce qu'on risque d'en avoir plusieurs*/

.formulaireCS h2 {
    background: #8bc440;
    padding: 10px;
    color: white;
    margin-top: 0px;

}

.formulaireCS legend {
    font-size: 24px;
    font-weight: bold;
    color: #444;
    margin: 60px 0 30px 0;
    display: block;
    /*sinon le margin ne s'applique pas*/
}


.formulaireCS [type="radio"] {
    display: none;
    /*là pareil, me faudra certainement une classe au cas où il y a d'autres formulaires sur la page ou des boutons radio qu'on veut voir apparaître...*/
}

.formulaireCS fieldset {
    border: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.formulaireCS .reponses label {
    width: 100%;
    background: lightgrey;
    border-radius: 5px;
    border-bottom: 10px solid darkgrey;
    color: white;
    display: block;
    padding: 10px;
    box-sizing: border-box;
    margin: 10px 0;
}

.formulaireCS .question label {
    font-size: 20px;
    font-weight: bold;
    color: #2b2b2b;

}

.formulaireCS [type="text"],
.formulaireCS [type="tel"],
.formulaireCS [type="email"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    font-size: 18px;
    margin: 10px 0 20px 0;
}

.formulaireCS .reponses label:hover {
    background: #8bc440;
    transition: all 0.5s;
}

.formulaireCS [type="submit"],
.formulaireCS [type="button"] {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    color: white;
    background: blue;
    box-sizing: border-box;
    border: none;
}

.formulaireCS [type="submit"]:hover,
.formulaireCS [type="button"]:hover {
    background: green;
}

.questions {
    height: 450px;
    overflow: hidden;
    position: relative;
}


/*test*/
.question {
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.question {
    position: absolute;
    width: 100%;
    left: 0;
    top: 550px;
    background: white;
    transition: all 0.4s;
    transition-timing-function: ease-in-out;
}

.formulaireCS legend {
    float: left;
    margin-top: 0;
    width: 100%;
    /*pour corriger le positionnement de l'élément legend qui va se mettre à cheval sur la bordure du fieldset sinon*/
    margin-bottom: 15px;
}

#question1 {
    top: 0;
}


/******Ajouts*****/
header {
    width: 100%;
    box-sizing: border-box;
    min-height: 80vh;
    background: url(./img/fond.jpg);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 50px 10px;
    background-position: top left;
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: cover;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    font-size: 20px;
}

.demande {
    width: 80%;
    margin-top: 30px;
    object-fit: contain;
}

.logo {
    grid-column: 2/4;
}

.intro {
    grid-column: 2/4;
    padding: 0 20px 20px 20px;
    text-shadow: 1px 1px 2px black;
}

.formulaireCS {
    grid-column: 4/5;
    margin-top: 80px;
    box-shadow: 40px -20px #8bc440;
    width: 358px;
    /*plus de resize responsive*/
}

.intro h1 {
    padding-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.formulaireCS .textes label {
    text-align: left;
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.formulaireCS .textes label::after {
    content: "*";
    color: #8bc440;
}

.formulaireCS .textes::after {
    content: "* requis";
    color: #8bc440;
    font-size: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.formulaireCS .textes input {
    height: 40px;
    /*50*/
    border-radius: 10px;
    max-width: 99%;
    /*pour éviter qu'ils aient le bout coupé*/
}

[type="checkbox"] {
    float: left;
}

[for="agree"] {
    padding: 20px 0;
    /*faire ça plus proprement*/
}

.arguments {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 100px;
    font-size: 20px;
}

.gauche {
    grid-column: 2/4;
    padding: 0px 20px 0px 0px;
}

.droite {
    grid-column: 4/6;
}

.arguments h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
}

p {
    font-family: 'Roboto', sans-serif;
}

.arguments li {
    font-size: 18px;
    margin: 18px 15px 0 0;
    list-style-type: none;
    position: relative;
}

.arguments li:before {
    content: "";
    display: block;
    position: absolute;
    left: -15px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8bc440;
}

.h2photo {
    min-height: 250px;
    background: url(./img/fond2.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.h2photo h2 {
    position: absolute;
    bottom: 10px;
    margin: 0px 20px 0px 20px;
    right: 10px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.h3photo {
    min-height: 250px;
    position: relative;
    text-align: center;
}

.droite {
    background: #ebebef;
}

.droite p {
    margin: 0;
    padding: 20px;
}

.linkForm {
    display: table;
    padding: 10px 20px;
    margin: 25px auto 15px auto;
    background: #8bc440;
    box-sizing: content-box;
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.linkForm:before,
.linkForm:after {
    content: "";
    width: 38px;
    height: 38px;
    display: block;
    position: absolute;
    background: #8bc440;
    border-radius: 50%;
    top: 0;
    display: none;
}

.linkForm:before {
    left: -17px;
}

.linkForm:after {
    right: -17px;
}

.linkForm:hover {
    background: #888;
    box-shadow: 0px 5px 5px #c7c7c7;
    transition: all 0.5s;
}

.arguments-2 {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 100px 0 100px 0;
    padding: 200px 0 200px 0;
    background-color: #ebebef;
    background-image: url(./img/fond3.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    display: block;
    font-size: 20px;
}

footer {
    display: grid;
    margin-top: 100px;
    font-size: 12px !important;
    text-align: center;
    background-color: #ebebef;
    margin: 100px 0 0 0;
    padding: 50px 0 50px 0;
    box-sizing: border-box;
}

/******Media queries******/



@media screen and (max-width: 1400px) {

    .intro {
        grid-column: 1/4;
    }

    .formulaireCS {
        grid-column: 4/6;
    }

    .gauche {
        grid-column: 1/4;
    }

    .droite {
        grid-column: 4/7;
    }
}


@media screen and (max-width: 1000px) {

    .intro {
        grid-column: 2/5;
        padding: 0px;
    }

    .formulaireCS {
        grid-column: 2/5;
    }

    .gauche {
        grid-column: 1/7;
    }

    .droite {
        grid-column: 1/7;
    }
}

@media screen and (max-width: 700px) {
    .intro {
        grid-column: 1/6;
        padding: 0px;
    }

    .formulaireCS {
        grid-column: 1/6;
    }

    video {
        width: 100%;
    }

    .gauche {
        padding: 0;
    }


}
