body {
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
    font-weight: 500;
}

:root {
    --orange: #F68B1F;
    --vert: #CADB2B;
    --bleu: #2EADDC;
    --violet: #B62467;
}

/* TYPO
*************************************************************************/
h3.titre {
    margin: 3em 0 .5em;
    /*font-size: 1.5em;*/
    line-height: 1.2em;
    font-size: 2em;
}

#suivis h3 {
    color: var(--violet);
}

#equipe h3 {
    color: var(--bleu);
}

h4 {
    font-size: 150%;
}

/* STRUCTURE
*************************************************************************/
#content {
    width: 80vw;
    max-width: 1200px;
    margin: 2vh auto;
    min-height: 70vh;
}

/* EN-TETE
*************************************************************************/
#header {
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 20px;
}

#header h1, #header h2 {
    display: none;
}

#header #logo {
    background: url(/img/Logo_Couleur.svg);
    background-size: contain;
    width: 100%;
    background-repeat: no-repeat;
    flex: 0 0 18%
}

#accueil #header #logo {
    background: none;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #header {
        box-shadow: none;
    }

    #header #logo {
        flex: 0 0 70%;
        height: 40px;
        margin: 20px;
    }
}

/* NAVIGATION
*************************************************************************/
#btn-mobile-menu {
    display: none;
}

#menu {
    flex: 0 0 60%
}

#nav {
    display: flex;
    flex: 0 0 60%;
}

#nav a {
    padding: 4px 16px;
    border-radius: 100px;
    text-decoration: none;
    color: black;
}

#nav a.selected {
    background-color: var(--bleu);
    color: white;
    font-weight: 900;
}


@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #btn-mobile-menu {
        position: absolute;
        font-size: 30px;
        margin: 0;
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
        z-index: 99900000;
        display: block;
        cursor: pointer;
        text-align: right;
    }

    #btn-mobile-menu:before {
        font: normal normal normal 14px/1 FontAwesome;
        content: '\f0c9';
        /*margin-right: .5em;*/
        width: 1em;
        font-size: 30px;
        display: inline-block;
        color: var(--red);
    }

    .nav-on #btn-mobile-menu:before {
        font: normal normal normal 14px/1 FontAwesome;

        content: '\f00d';
        width: 1em;
        font-size: 30px;
        display: inline-block;
        color: white;

    }

    .nav-on {
        overflow: hidden;
    }

    #header {
        padding: 0;
    }

    #header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 10vh;
        margin: 0 0;

    }

    .nav-on #header nav {
        display: flex;
        height: 120vh;
        justify-content: flex-start;
        z-index: 10000;
        background: var(--vert);;
        top: 0;
    }

    #header nav a {
        color: black;
        text-decoration: none;
        text-align: center;
        padding: .2em .5em;
        width: 80vw;
        margin: 4px auto;
        font-size: 24px;
        flex-direction: row;
        height: auto;
        justify-content: flex-start;
    }
}

/* ACCUEIL
*************************************************************************/
#splash {
    background-image: url(/img/Logo_Wording_Couleur.svg);
    background-size: 70%;
    background-position: center;
    aspect-ratio: 4/1.5;
    background-repeat: no-repeat;
    margin: 5vh 0;
}

#slogan h3 {
    font-size: 2.6vw;
    text-align: center;
    line-height: 1.2em;
    font-weight: 700;
}

#carrousel-wrapper {
    width: 85%;

    overflow: hidden;
    margin: 0 auto 5vh;
}

#carrousel-wrapper img {
    width: 100%;
    border-radius: 20px;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #splash {
        background-size: 100%;
        margin: 5vh 0;
    }

    #slogan h3 {
        font-size: 6vw;
    }

    #carrousel-wrapper {
        width: 100%;
    }

}

/* CONTENUS
*************************************************************************/

/* SUIVIS */
#suivis-wrapper {
    display: flex;
    justify-content: center;
    margin: 8vh 0;
}

#content #suivis-wrapper a {
    font-size: 180%;
    font-weight: 900;
    padding: .5em 1em;
    border-radius: 20px;
    mix-blend-mode: multiply;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    text-align: center;
}

#suivis-wrapper {
    /*background-color: var(--bleu);*/
    /*transform: translate3d(20px, -10px, 0);*/
    background-blend-mode: multiply;
}

/*#suivis-wrapper .prevote {*/
/*    background-color: var(--orange);*/
/*    transform: translate3d(0, 0, 0);*/
/*}*/

#suivis-wrapper a.unselected {
    background: grey;
    z-index: 0;
    mix-blend-mode: normal;
}

#suivis-wrapper a.selected {
    z-index: 1;
    mix-blend-mode: normal;
}

#suivis-wrapper a:hover {
    transform: scale(1.1);
    z-index: 2;
    mix-blend-mode:normal;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #content #suivis-wrapper a {
        font-size: 90%;
    }

  #suivis #suivis-wrapper{
      margin: 20vh 0 5vh ;
  }
}

#content a.round-button {
    background-color: var(--violet);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color:white;
    height: 11vw;
    width: 11vw;
    padding: 1em;
    position: absolute;
    border-radius: 100px;
    top:50px;
    right:50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5vw;
    transform: rotateZ(20deg);
    z-index: 2;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #content a.round-button {
        font-size: 12px;
        height: 20vw;
        width: 20vw;
        top:70px;
    }
}

/* CONTENU */
#content  a {
    color: var(--violet);
}
.bloc {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 2em
}


.bloc .titre.col {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /*flex: 0 0 20%;*/
    text-align: left;
    flex: 0 0 10em
}

.bloc .contenu {
    background-color: white;
    padding: 0 40px;
    flex: 1 1 80%;
}


.bloc .contenu p {
    margin-bottom: .5em;
}

.bloc .titre {
    font-size: 1em;
    line-height: 1.2em;
    margin: 0 0 .3em;
    /*position: sticky;*/
    /*top: 0;*/
}

.bloc li {
    margin-bottom: 6px;
}

.bloc .col {
    /*flex: 0 0 50%;*/
    /*min-height: 35vh;*/
}

.texte h3:not(:first-child) {
    /*margin-top: 1em;*/
}

img.visuel {
    width: 100%;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    .bloc {
        flex-wrap: wrap;
        margin: 0;
        /*padding: 25px;*/
    }

    .bloc .titre {
        margin-top: 1em;
        background: white;
    }

    .bloc .titre.col {
        order: 0;
        /*min-height: 30vh;*/
    }

    .bloc .contenu {
        padding: 0px;
    }

    .bloc .contenu.col {
        /*order: 1;*/
    }

    .bloc .col {
        min-height: initial;
    }

    .bloc:nth-of-type(even) .titre.col {
        /*order: 0;*/
    }


    .bloc .titre.col, .bloc .contenu.col {
        flex: 0 0 100%;
    }
}

/* PERSONNES */
.personne.item {
    display: flex;
    margin: 2vh 0;
}

.personne.item .visuel {
    flex: 0 0 15%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
}



.personne.item .img {
    width: 10vw;
    max-width: 150px;
    height: 10vw;
    max-height: 150px;
    border-radius: 12px;
}

.personne.item .backdrop1 {
    width: 10vw;
    max-width: 150px;
    height: 10vw;
    max-height: 150px;
    position: absolute;
    mix-blend-mode: multiply;
    z-index: -1;
    border-radius: 12px;
}

.personne.item .backdrop2 {
    width: 10vw;
    max-width: 150px;
    height: 10vw;
    max-height: 150px;
    position: absolute;
    mix-blend-mode: multiply;
    z-index: -1;
    border-radius: 12px;
}

.personne.item .infos {
    flex: 1 1 60%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    .personne.item {
        flex-direction: column;
    }

    .personne.item .visuel {
        aspect-ratio: initial;
        margin: 5vh 0 0 0;
    }

    .personne.item .img, .personne.item .backdrop1, .personne.item .backdrop2 {
        width: 50vw;
        height: 50vw;
        margin: 0 auto;
    }

    .personne.item h4 {
        text-align: center;
    }
}

/* Contact */
#map {
    width: 100%;
    height: 50vh;
}

/* FORMULAIRE */
label {
    font-weight: 700;
    margin-top: 1em;
}

.field {
    margin-top: 1em;
}

input[type=text], textarea {
    width: 100%;
}

.error {
    display: none;
}

/* PIED DE PAGE */
#footer {
    background-color: #f0f0f0;
    display: flex;
    padding: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

#footer-logo {
    width: 15vw;
}

#footer > div {
    padding: 20px;
}

#footer a {
    text-decoration: underline;
    color:grey
}

#footer #credits {
    flex: 0 0 100%;
    font-size: 80%;
    text-align: right;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #footer  {
        flex-direction: column;
        font-size: 90%;
    }

    #footer p {
        margin: 0 0 6px 0;
    }

    #footer-logo {
        width: 30vw;
    }
}