/* VARIABLES */
:root {
    --couleur-principale: #902C34;
    --couleur-secondaire: #EF0030;
    --ease-bounce-soft: cubic-bezier(.34, 1.26, .64, 1);
    --extra-radius: 64px;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    :root {
        --extra-radius: 32px;
    }
}

body {
    font-size: 18px;
    font-family: Lato, sans-serif;
    /*background: linear-gradient(var(--couleur-complementaire), #ffffff 90%);*/
    background-color: var(--couleur-complementaire);
    min-height: 100vh;
}


/* TYPO */
h1, h2, h3, h4, h5, h6, .ui {
    font-family: "Dosis", sans-serif;
}

h3 {

    font-style: normal;
    font-weight: 700;
    font-size: 42px;
    line-height: 53px;
    color: var(--couleur-principale);
}

h5 {
    font-weight: 700;
    font-size: 110%;
}

h6 {
    font-weight: 700;
    font-size: 100%;
}

/* STRUCTURE */
#wrapper {
    width: 80vw;
    margin: 0 auto;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #wrapper {
        width: auto;
        margin: 0 20px 0 60px;
    }
}

/* THEMES */

#frmTheme {
    position: fixed;
    top:10px;
    right: 10px;
}

body.theme_blanc {
    background: white;
}


body.theme_vert {
    background: rgba(133, 226, 125, 0.6)
}

body.theme_vert_leger {
    background: rgba(133, 226, 125, 0.3)
}

body.theme_pastel {
    background: rgba(172, 209, 175, 0.88);
    --couleur-principale: rgb(122, 151, 123)
}

body.theme_blanc_nav_green {
    background: white;
}

.theme_blanc_nav_green #menu {
    background: rgba(133, 226, 125, 0.2)
}

body.theme_blanc_text_green {
    background: white;
}

body.theme_blanc_text_green {

    --couleur-principale: rgba(133, 226, 125,1)
}

body.theme_blanc_shadow_green {
    background: white;
}

body.theme_blanc_shadow_green .bloc {
    --couleur-principale: rgba(133, 226, 125,1);
    box-shadow: 0px 4px 20px rgba(133, 226, 125,.2);
    border:2px solid  rgba(133, 226, 125,.5);
}

body.theme_bleu {
    background: rgba(0, 188, 255, 0.25)
}


/* EN-TÊTE */
#accueil #header {
    width: 100%;
    height: 60vh;
    background: url(../img/sc-logo.svg) no-repeat center center;
    background-size: contain;
}

#header {
    width: 100%;
    height: 80px;
    margin: 20px 0;
    background: url(../img/sc-logo-horizontal-couleur.svg) no-repeat center center;
    background-size: contain;
}

#header h1, #header h2 {
    text-indent: -9999px;
}

#slogan h2 {
    font-family: Lato, sans-serif;
    font-size: 2.5vw;
    font-weight: 700;
    text-align: center;
    padding: 0 10vw;
    line-height: 1.2em;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {

    #accueil #header {
        height: 40vh;
    }

    #slogan h2 {
        font-size: 20px;
        padding: 0 20px;
    }
}

/* UI */
.button {
    display: inline-block;
    padding: 6px 16px;
    font-weight: 700;
    color: white;
    background: var(--couleur-principale);
    border: 2px solid var(--couleur-principale);
    border-radius: 16px;
    transition: .2s;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}


/* NAVIGATION */
#menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc(30vw + 120px);
    left: calc(-30vw - 60px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    background: white;
    overflow: hidden;
    display: flex;
    transition: left .8s var(--ease-bounce-soft);
    backdrop-filter: blur(10px);
    background-image: linear-gradient(to right, #f0f0f0, #ffffff 60%);
}


#menu.open {
    width: calc(30vw + 120px);
    left: -30px;
}

#menu .gutter {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    width: 30vw;
    margin: 60px 0 0 60px;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 2vw;
    height: 50vh;
}

.menu-item {
    display: flex;
    margin: 10px 0;
    font-size: 2rem;
    transition: .2s all ease-in-out;
    border-radius: 8px;
}

.menu-item:hover {
    color: var(--couleur-principale);
    background: #f0f0f0;
}

.menu-item.selected {
    color: var(--couleur-principale);
    font-weight: 700;
}

#btn-menu {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.menu-item .icone {
    width: 1em;
    height: 1em;
    margin-right: 10px;
    align-self: center;
}

#btn-menu .hamburger {
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    margin: 10px;
}

#btn-menu span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--couleur-principale);
    border-radius: 2px;
    transition: 1s;
}

#btn-menu span:nth-child(1) {
    top: 0;
}

#btn-menu span:nth-child(2) {
    top: 10px;
}

#btn-menu span:nth-child(3) {
    top: 20px;
}


.open #btn-menu span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.open #btn-menu span:nth-child(2) {
    opacity: 0;
}

.open #btn-menu span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

#lang {
    text-align: right;
    width: auto;
    padding-bottom: 60px;
    display: flex;
    justify-content: flex-end;
}

#lang a {
    border-radius: 100px;
    width: 2em;
    height: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#lang a.selected {
    background-color: var(--couleur-principale);
    color: white;
    font-weight: bold;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {

    #menu {
        position: fixed;
        top: 0;
        bottom: 0;
        width: calc(80vw + 80px);
        left: calc(-80vw - 40px);
    }

    #menu.open {
        width: calc(80vw + 80px);
        left: -40px;
    }

    #menu .gutter {
        width: 80vw;
        margin-left: 60px;
    }

    #btn-menu {
        width: 40px;
        height: 40px;
        margin: 0 5px 0 0;

        text-align: center;
    }

    #btn-menu .hamburger {
        /*position: relative;*/
        width: 30px;
        height: 24px;
    }


    .menu-item {
        font-size: 3em;
    }
}


/* CONTENU */
.bloc {
    /* text-bloc */

    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 50px;
    gap: 20px;
    width: 100%;
    margin: 5vh auto;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.bloc-style1 {
    border-bottom-left-radius: var(--extra-radius);
}

.bloc-style2 {
    border-top-left-radius: var(--extra-radius);
}

.bloc-style3 {
    border-bottom-right-radius: var(--extra-radius);
}

.bloc-style4 {
    border-top-right-radius: var(--extra-radius);
}

.bloc .titre {
    flex: 0 0 20%;
}

.bloc .contenu {
    flex: 0 0 78%;
}

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

.bloc h3 {
    font-size: 1.61em;
    line-height: 1.2em;
    margin-bottom: .3em;
}

.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;
        padding: 25px;
    }

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

/* PERSONNES */

.personnes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.personnes-list .item {
    width: 16vw;
    text-align: center;
    margin-bottom: 2em;
    padding: 2em;
}

.personnes-list .item .visuel {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10000px;
}


.personnes-list h5 {
    font-family: Lato, sans-serif;
}

.personnes-list h6 {
    font-family: Lato, sans-serif;
    font-weight: normal;
}


.item.list {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted silver;
    padding-bottom: 10px;
    margin-bottom: 10px;
    transition: .5s transform ease;
}

.item.list:hover {
    transform: scale(1.02);
    color: var(--couleur-principale)
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #personnes-list .item {
        width: 30vw;
    }
}


/* FORMULAIRE */
#espace-securise #content {
    min-height: 60vh;
}

.loginForm {
    padding: 20px 0;
}

.loginForm label {
    font-weight: bold;
}

.loginForm button {
    margin-top: 10px;
}

.error {
    color: var(--couleur-secondaire)
}

/* FOOTER */
#footer {
    display: flex;
    margin: 10vh 0 5vh 0;
    border-top: 4px solid var(--couleur-complementaire);
    flex-wrap: wrap;
}

#footer div {
    padding: 20px 0;
    flex: 1;
}

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

#footer .logo {
    width: 15vw;
}


#footer .col.partenaires {
    flex: 0 0 70%
}

.partenaire {
    width: 12vw;
    height: 8vw;

    display: inline-block;
    text-indent: -9999px;
}

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

    .col {
        flex: 0 0 100%
    }

    #footer .logo {
        width: 100%;
    }

    .partenaire {
        width: 38vw;
        height: 18vw;
    }
}