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

    --couleur1: #DBD6CC;
    --couleur2: #D0C4C4;
}

@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;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* 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);
}

h3.categorie {
    font-size: 1.6em;
}

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

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

.contenu {
    font-size: 95%;
    line-height: 1.6em;
}

/* THEMES */

/*.theme1 {*/
/*    --couleur1:#DBD6CC;*/
/*    --couleur2:#DAD9D5;*/
/*}*/

/*.theme2 {*/
/*    --couleur1:#DBD6CC;*/
/*    --couleur2:#D0C4C4;*/
/*}*/

/*.theme3 {*/
/*    --couleur1:#DAD9D5;*/
/*    --couleur2:#D0C4C4;*/
/*}*/


/* STRUCTURE */
#wrapper {
    width: calc(100vw - 60px);
    margin: 0 0 0 60px;
    background: white;
    background: linear-gradient(to right, var(--couleur1) 0 50%, var(--couleur2) 50% 100%);
}

.sticky {
    position: sticky;
    top: 0px;
}

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

    .sticky {
        top: 0;
        background: rgba(255, 255, 255, .95);
        padding: 10px 0;
    }
}

/* 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: 76vh;
    margin: 0;
    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;
    display: none;
}

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


@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%);
    z-index: 1000;
}


#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.col {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*flex: 0 0 20%;*/
    text-align: center;
}

.bloc .contenu {
    /*flex: 0 0 78%;*/
    background-color: white;
    padding: 40px;
}

.bloc:nth-of-type(odd) .titre.col {
    background-color: var(--couleur2);
}

.bloc:nth-of-type(even) .titre.col {
    background-color: var(--couleur1);
    order: 2
}

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

.bloc .titre h3 {
    /*font-size: 3.2em;*/
    /*line-height: 1.2em;*/
    /*margin-bottom: .3em;*/
}

.bloc .col {
    flex: 0 0 50%
}

.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.col {
        order: 0;
        min-height: 30vh;
    }

    .bloc .contenu {
        padding: 20px;
    }

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

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


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

/* PERSONNES */

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

.personnes-list .item {
    width: 32%;
    text-align: center;
    margin-bottom: 2em;
    padding: .5em;
}

.personnes-list .item .visuel {
    width: 70%;
    margin: 0 auto 20px;
    aspect-ratio: 1;
    border-radius: 10000px;
}


.personnes-list h4 {
    font-family: Lato, sans-serif;
    font-size: 1vw;
    font-weight: 700;
    margin-bottom: 4px;
}

.personnes-list h5 {
    font-family: Lato, sans-serif;
    font-weight: normal;
    font-size: 1vw;
    line-height: 1.2em;
    margin-bottom: 4px;
}

.personnes-list h6 {
    font-family: Lato, sans-serif;
    font-style: italic;
    font-weight: normal;
    font-size: 1vw;
}

.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 {
        flex: 0 0 100%;
        flex-direction: row;
        display: flex;
        width: auto;
        justify-content: space-between;
        padding: 0;
        margin: 5px 0;
    }

    .personnes-list .item .visuel {
        flex: 0 0 20%;
        display: block;
        width: 12vw;
        height: 12vw;
        border-radius: 10000px;


    }

    .personnes-list .item .infos {
        flex: 0 0 75%;

        font-size: 70%;
        text-align: left;
        align-content: center;
    }

    .personnes-list h4 {
        font-size: 16px;
    }

    .personnes-list h5, .personnes-list h6 {
        font-size: 14px;
    }

}

/* 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)
}

#subnav {
    display: flex;
    border-bottom: 1px solid var(--couleur-principale);
    margin-bottom: 20px;
}

#subnav a {
    margin-right: 10px;
    padding: 4px 8px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: var(--couleur-principale);
    text-decoration: none;

}

#subnav a.selected {
    background: var(--couleur-principale);
    color: white;
}

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

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

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

#footer .logo {
    width: 15vw;
}


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

.partenaire {
    width: 13vw;
    height: 6vw;
    background: white;
    padding: 0px;
    border-radius: 10px;
    display: inline-block;
    text-indent: -9999px;
    margin: 2px;
}

@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: 41vw;
        height: 18vw;
    }
}

/* SCROLL DOWN CHEVRON */
.scroll-chevron {
    position: fixed;
    bottom: 30px;
    left: calc(50% + 30px);
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    /*border: 2px solid var(--couleur-principale);*/
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: rgba(255, 255, 255, 0.9);*/
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-chevron::after {
    content: '';
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--couleur-principale);
    border-bottom: 3px solid var(--couleur-principale);
    transform: rotate(45deg);
    margin-top: -3px;
}

.scroll-chevron:hover {
    background: var(--couleur-principale);
    transform: translateX(-50%) scale(1.1);
}

.scroll-chevron:hover::after {
    border-color: white;
}

.scroll-chevron.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    .scroll-chevron {
        width: 50px;
        height: 50px;
        bottom: 20px;
    }

    .scroll-chevron::after {
        width: 12px;
        height: 12px;
    }
}


/* VIDEO */
#player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: -1000;
    display: none;
    flex-direction: column;
    justify-content: center;
}

#btn-close-player {
    color: white;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 36px;
}

#player-wrapper.opened {
    z-index: 1000;
    display: flex;
}

#player {
    width: 80vw;
    aspect-ratio: 16/9;
    align-self: center;
}