/* GENERAL
************************************************************************************************************************/

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

#logo {
    margin: 1vw 1vw 0 0vw;
    display: block;
}

#logo:hover {
    text-decoration: none;
}

#logo h1 {
    width: 30vw;
    height: 5vw;
    background-repeat: no-repeat;
}

#logo h1 {
    text-indent: -9999px;
}

#logo h2 {
    font-weight: 700;
    font-size: 150%;
    font-family: ArticulatBold, Roboto, sans-serif;
    font-size: 1.8vw;
    line-height: 1.0em;
}

#wrapper {
    width: 90vw;
    margin: 0 auto;
}

.container-fluid {
    padding: 0;
}

p {
    margin-bottom: 0.3em;
}


#header {
    padding-bottom: 20px;

}

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

    #logo {
        margin: 3vh 0 0 2vw;
    }

    #logo h1 {
        width: 60vw;
        height: 10vw;
        margin-top: 2vh;
    }

    #logo h2 {
        font-size: 4vw;
    }

    #wrapper {
        width: 96vw;
    }

}


/* TYPO
************************************************************************************************************************/

body {
    line-height: 1.6em;
}

h3.titre {
    font-family: ArticulatDemiBold, sans-serif;
    font-size: 250%;
    margin-top: 2.5rem;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    h3.titre {
        font-size: 150%;
        margin-top: 2rem;
    }
}

/* ACCUEIL
************************************************************************************************************************/
#video-splash {
    overflow: hidden;

}

.visuel-accueil {    width: 100%;
    margin-top: 5vh;
}

#video-splash video {
    width: 100%;
    margin: 5vh 0;
    padding: 0;

}

#videoframe-wrapper {
    height: 70vh;
    overflow: hidden;
    margin: 5vw auto;
}

#videoframe {
    height: 85vh;
    margin: -10vh 0;
    padding: 0;
    border: 1px dotted red;
}

.ribbon {
    width: 20vw;
    height: 20vw;
    position: absolute;
    right: 5vw;
    margin-top: 5vh;
    overflow: hidden;
    z-index: 10;
}

.ribbon h5 {
    font-size: 90%;
    font-weight: bold;
    }

.button {
    color: white;
    padding: .5em;
    display: block;
    margin-top: 5vw;
    transform: rotateZ(35deg) translateX(-2vw);
    width: 30vw;
    text-align: center;
}

.button h4 {
    font-weight: 900;
}

.button:hover {
    text-decoration: none;
    color: white
}


@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #videoframe-wrapper {
        height: 60vh;
        margin-bottom: 0;
    }

    #videoframe {
        height: 60vh;
        margin-bottom: 0;
    }

    .ribbon {
        width: 45vw;
        height: 40vw;
        position: absolute;
        right: 2vw;
        margin-top: 5vh;
        overflow: hidden;
    }
    
    .ribbon h5 {
        font-size: 10px;
        }

    .button {
        color: white;
        padding: .5em;
        display: block;
        margin-top: 5vw;
        transform: rotateZ(35deg) translateX(-2vw);
        width: 60vw;
        text-align: center;
    }


    .button h4 {
        font-size: 18px;
    }
}

/* NAVIGATION
************************************************************************************************************************/
nav {
    z-index: 1000;
    position: absolute;
    right: 5vw;
    top: 4vw
}

nav a {
    font-size: 1.5vw;
    padding: .2em .5em;
    color: #666;
    transition: color .5s ease;
}

nav a:hover {
    color: black;
    text-decoration: none;
}

.subnav {
    padding: 1em;
    list-style: none;
}

.subnav li {
    margin: 1em 0;
}

.subnav li a {
    font-size: 1vw;
    padding: .2em;
}


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

    #btn-mobile-menu {
        position: absolute;
        font-size: 6vw;
        padding: .5em;
        margin: 0;
        width: 10vw;
        top: 30px;
        right: 3vw;
        z-index: 99900000;
        display: block;
        background-color: rgba(255, 255, 255, .8);
    }

    #btn-mobile-menu:before {
        content: "\f0c9";
        font-family: "Font Awesome 5\ Free";
        font-weight: 900;
    }

    .nav-on #btn-mobile-menu {
        background-color: transparent;
        color: white;
    }

    .nav-on #btn-mobile-menu:before {

        content: "\f00d";
        font-family: "Font Awesome 5\ Free";
        font-weight: 900;
    }

    .nav-on {
        overflow: hidden;
    }

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

    }

    #header nav div {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    #header nav a {
        font-size: 36px;
        text-align: center;
        padding: 1em .6em;
        text-align: center;
        width: 100%;
        display: block;
        color: white;
        margin: 0;
        font-family: ArticulatLight, Roboto;
    }

    #header nav a.active {
        background: transparent;
        font-weight: 900;
        font-family: ArticulatBold, Roboto;
    }

    #accueil #header nav a {
        color: white;
    }

    .nav-on #header nav {
        display: flex;
        background-color: rgba(0, 0, 0, 0.7);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10000;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
    }

}


/* CONTENU
************************************************************************************************************************/
#content-wrapper {
    width: 100%;
    display: flex;
    padding: 5vh 0;
    min-height: 60vh;
}

#right-nav {
    width: 25vw;
    margin: 0 4vw 0 0;
}

#right-nav a {
    display: block;
    width: 100%;
    font-family: ArticulatLight, Roboto, sans-serif;
    padding: .5em;
    font-size: 18px;
    border-top: 1px dotted gray
}

#right-nav a:last-child {
    border-bottom: 1px dotted gray
}

#right-nav a.active {
    font-family: ArticulatDemiBold, Roboto, sans-serif;
}

#right-nav a:not(.active) {
    color: #666;
}

#right-nav a:hover {
    text-decoration: none;
}

#right-nav a:not(.active):hover {
    color: #333;

}

#content {
    width: 100%;
}


.col {
}

.left.col {
    flex: 0 0 66%;
    line-height: 1.8em;
    font-size: 100%;
}

.left.col.big {
    font-size: 120%;
}

.right.col {
    flex: 0 0 33%;
}

.right.col.small {
    padding-top: 2em;
    line-height: 1.4em;
    font-size: 100%;
}

.right.col.small h3 {
    font-size: 125%;
}

.right.col.small em {
    font-size: 80%;
    margin: .5em 0 1em;
    text-align: center;
}

.right.col.small img {
    width: 100%;
}


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

    #content-wrapper {
        display: block;
    }

    #right-nav {
        width: 100%;
        margin: 0 0 8vh 0;
        position: -webkit-sticky; /* Safari */
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, .96);
    }

    #right-nav a {
        font-size: 16px;
    }

    .left.col.big {
        font-size: 100%;
    }

    .right.col.small img {
        width: 90vw;
    }

}

/* PAGES
************************************************************************************************************************/
#page {
    width: 70vw;
    min-width: 800px;
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #page {
        width: 90vw;
        min-width: auto;
        max-width: none;
    }
}

/* LE PROJET
************************************************************************************************************************/
#timeline {
    height: 15vh;
    width: 100%;
    display: flex;
    margin: 5vh auto;
    padding: 1em 0;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, .90);
}


#timeline:after {
    content: '';
    position: absolute;
    margin-top: 5vh;
    border-bottom: 2px black solid;
    /*height:        10vh;*/
    width: 91vw;
    transform: translateY(-50%);
    /*z-index: -1;*/
    pointer-events: none
}

#timeline .year {
    border-left: 3px solid black;
    height: 10vh;
}

#timeline .year h5 {
    position: absolute;
    font-size: 150%;
    margin: -.5em 0 .2em 0;
    padding: 0 0 0 .2em;
}

#timeline .months {
    display: flex;
    align-content: center;
}

#timeline .month {
    width: calc(90vw / 48);
    height: 5vh;
    border-left: 2px solid black;
    display: flex;
    text-align: center;
    color: #333;
    position: relative;
    /*flex-direction:  column;*/
    /*justify-content: flex-end;*/
    /*align-self:      center;*/
    margin: 2.5vh 0;
}

#timeline .month:hover {
    text-decoration: none;
}

#timeline a.month {
    background: silver;
}

#timeline .month:first-child {
    border: 0;
}

#timeline .month h6 {
    margin: 0;
    padding: 6vh 0 0 0;
    width: calc(90vw / 48);
    font-size: 60%;
    text-transform: uppercase;

    z-index: -100;
    /*position:       relative;*/
    /*margin:         1.5em 0;*/
}

#timeline .month.busy .fx {
    z-index: 500;
    position: absolute;
    width: calc(90vw / 48);
    height: 5vh;
    pointer-events: none;
    /*z-index: -20;*/
}


@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0;
        background: black;

    }
    50% {
        transform: scale(1);
        opacity: .3
    }
    99% {
        transform: scale(1);
        opacity: 0;
    }

}

.spacer {
    width: 4px;
    height: 5vh;
    background-color: white;
}

.visuel {
    width: 100%;
}

.etape-en-tete {
    display: flex;
    justify-content: space-between;
    width: 90vw;
    margin-bottom: 5vh;
}

.etape-en-tete .visuel-principal {
    flex: 0 0 66%
}

.etape-en-tete .contenu {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 700;
    font-size: 125%;
}

.etape-detail {
    display: flex;
    justify-content: space-between;
}

.etape-detail > div {
    flex: 0 0 30%
}

.legend-item {
    display: flex;
    justify-content: space-between;
    border-collapse: collapse;
    margin: .5em 0;
    border-bottom: 1px dotted silver;
    font-size: 1vw;
}

.legend-item:last-child {
    border-bottom: none
}

.legend-item .picto {
    flex: 0 0 15%;
}

.legend-item .picto img {
    width: 100%;
}

.legend-item.vert {
    color: #2CAE66
}

.legend-item > div {
    padding: 0 .5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.legend-item.rouge {
    color: #AE002F
}

.legend-item.orange {
    color: #E97A4C
}

.legend-item .caption {
    font-weight: 700;
    flex: 0 0 45%
}

.legend-item .value {
    font-weight: 300;
    flex: 0 0 45%;
    line-height: 1.1em;
}


@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #timeline {
        height: 10vh;
    }

    #timeline:after {
        content: '';
        position: absolute;
        margin-top: 2.55vh;
    }

    #timeline .year {
        height: 5vh;
        border-left: 2px solid black;
    }

    #timeline .year h5 {
        position: absolute;
        font-size: 80%;
        margin: -.8em 0 .2em 0;
        padding: 0 0 0 .2em;
    }

    #timeline .month {
        height: 2.5vh;
        margin: 1.25vh 0;
        border-left: 2px solid black;
        width: calc(90vw / 48);
    }

    #timeline .month.busy .fx {
        height: 2.5vh;
    }

    #timeline .month h6 {
        /*display: none;*/
        opacity: 0;
        padding: 4vh 0 0 0;
    }

    .spacer {
        width: 10px;
        height: 2.5vh;
        border: 1px dotted white;
    }

    .etape-en-tete {
        flex-wrap: wrap;
    }

    .etape-en-tete .visuel-principal, .etape-en-tete .contenu {
        flex: 0 0 100%;
        margin-bottom: 5vh;
    }

    .etape-detail {
        flex-wrap: wrap;
        margin-bottom: 5vh;
    }

    .etape-detail > div {
        flex: 0 0 100%
    }

    .legend-item {
        flex-wrap: wrap;
        font-size: 4vw;
        width: 90vw;
        padding: .2em 0 1em;
    }

    .legend-item .caption {
        flex: 0 0 85%
    }

    .legend-item .value {
        flex: 0 0 90%;
        margin-left: 15%;
    }

}

/* RESSOURCES
************************************************************************************************************************/
.file-item {
    color: black;
    display: flex;
    width: 100%;

    border-collapse: collapse;
    border-top: 1px dotted #f0f0f0;
    border-bottom: 1px dotted #f0f0f0;
    padding: 1em 0.5em;
    transition: background-color .5s ease;
}

.file-item:hover {
    text-decoration: none;
    color: black;
    background: #f0f0f0;
}

.file-item .picto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /*border:1px solid silver*/
}

.file-item .picto, .file-item .picto img {
    width: 10vw;
    margin: 0 2vw 0 0;
}

.file-item .picto i {
    font-size: 400%;

}

.file-item .infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-item h6 {
    font-weight: 700;
    font-size: 120%;
}

.file-item p {
    margin: 0;
    padding: 0;
    color: #999
}

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

    .file-item {
        /*margin-bottom: 8vh;*/
        padding: 1em 0em;
    }

    .file-item .picto, .file-item .picto img {
        width: 20vw;
    }

    .file-item .picto i {
        font-size: 200%;
        padding: 0;
    }

    .file-item .picto {
        justify-content: flex-start;
    }
}

/* GALERIES
************************************************************************************************************************/

.galerie {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: space-between;*/
    width: 100%;
    margin: 0vh auto;
}

h4.galerie {
    margin-top: 2em;
}

.galerie img {
    margin: 10px 10px 0 0;
    width: 100%;
}

.galerie a {
    margin: 10px 10px 0 0;
    width: 20vw;
    height: 20vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-origin: center center;
    transition: .2s all ease;
}

.galerie a:hover {
    transform: scale(1.1);
    z-index: 10;
}


.sl-wrapper .sl-close {
    color: white;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    .galerie a {
        width: 80vw;
        height: 80vw;
        margin: 0 10vw;
    }
}

/* 404
************************************************************************************************************************/

#message404 {

    width: 100%;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-weight: 900;
}

#message404 h1 {
    font-weight: 900;
}


/* PIED DE PAGE
************************************************************************************************************************/
#footer {
    background: #f0f0f0;
    margin: 10vh auto 0;
    padding: 5vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#footer > * {

}

.logo-footer img {
    height: 12vh;
}

#footer #credits {
    flex: 0 0 100%;
    padding: 4em 0 0;
    text-align: right;
    font-size: 50%;
    color: #666
}

#footer #credits a {
    color: #666
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #footer #credits {
        text-align: center;
        font-size: 8px;
    }
}

/* SPLASHES
************************************************************************************************************************/

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    z-index: 99990000;
    visibility: hidden;
    opacity: 0;

}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 10vh auto;
    padding: 20px;
    border-radius: 5px;
    width: fit-content;
    max-width: 60vw;
    position: relative;
    transition: opacity .5s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    font-family: ArticulatBold, Roboto, sans-serif;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    font-size: 250%;
}

.popup a {
    color:white
    }
.popup .close:hover {
    color: white;
}

.popup .content {
    max-height: 80vh;
    overflow: auto;
}

.popup-visuel {
    text-align: center;
}

.popup-visuel-img {
    max-height: 40vh;
    margin: 20px auto;
}

.download {
    border: 1px solid white;
    border-radius: 8px;
    padding: .2em .5em;
    color: white;
    display: block;
    width: fit-content;
    transition: .5s ease background-color;
    margin: 10px auto;
}

.download:hover {
    background: rgba(255, 255, 255, .4);
    color: black;
    text-decoration: none;
}

@media screen and (max-width: 700px) {
    .box {
        width: 70%;
    }

    .popup {
        top: -40px;
        width: 90%;
        max-width: 90vw;
        font-size: 14px;
        max-height: 90vh;
    }

    .popup .content {
        max-height: 80vh;
        overflow: scroll;
    }

    .popup h2 {
        margin-top: 1em;
    }

    .popup-visuel-img {
        max-height: 30vh;

    }

    .download {
        display: block;
        width: fit-content;
    }

    .download i {
        flex: 0 0 2em;
    }
}