body {
    font-family: "Open Sans";
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Open Sans Condensed";
    font-weight: 800;

}

/* EN-TETE
**********************************************************************************************************************************/
#header {
    height: 300px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    background: white;
    backdrop-filter: blur(20px);
    margin-bottom: 1vh;
}

#header #logo {
    margin: 1vw;
    background: rgba(255, 255, 255, .95);
    align-self: flex-start;
}

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

#header h1 {
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: 250%;
    margin: 0;
    padding: 0;
}

#header h2 {
    font-family: "Open Sans Condensed";
    font-weight: 300;
    font-size: 150%;
    margin: 0;
    padding: 0;
}

#header nav {
    width: auto;
    align-self: flex-start;
    margin: 5vh 5vw 0 0;
}

#header nav a {
    margin: 0 1em;
    background: rgba(255, 255, 255, .95);
}

#lang {
    position: absolute;
    top: 10px;
    right: 20px;
}

#lang a {
    color: #124C8B;
}

#lang a.active {
    font-weight: bold;
    color: #C7051F;
}


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

    #header {
        height: 200px;
    }

    #header #logo {
        width: 70vw;
    }


    #header #logo {
        top: 40px;
        left: 10px;
        z-index: 10001;
    }

    .nav-on #header #logo {
        background: transparent;
    }

    #header h1 {
        font-size: 40px;
    }

    #lang {
        display: none;
    }

    .nav-on #lang {
        display: block;
        position: absolute;
        top: 70vh;
        width: 100vw;
        text-align: center;
        z-index: 10001;
        margin: 0;
        padding: 0;
        right: 0;
    }

}


/* NAVIGATION
************************************************************************************************************************/

nav {

}


nav a.nav-item:hover {
    color: #C7051F;
    text-decoration: none;
}

nav a.active {
    font-weight: 900;
    color: #C7051F;
}

#btn-mobile-menu {
    display: none;
}


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


    #btn-mobile-menu {
        position: absolute;
        font-size: 4vw;
        margin: 0;
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
        z-index: 99900000;
        display: block;
        cursor: pointer;
        /*background-color: #B4252D;*/
    }


    .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: 20vh;
        margin: 0 0;

    }

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

    #header nav > div > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #header nav a {
        font-size: 20px;
        text-align: center;
        padding: .5em 0;
        background: transparent;
        display: block;
        color: white;

    }

    nav form {
        text-align: center;
    }

    nav .frmChercher input {
        border: 0;
        /*background-color: rgba(255, 255, 255, .4);*/
        color: white;
        padding: .2em;

    }

    nav .frmChercher button {
        /*opacity:          1;*/
        /*width:            40px;*/
        /*height:           40px;*/
        /*background-image: url(../img/icones/icone-loupe.svg);*/
        /*background-size:  cover;*/
    }

    nav button {
        opacity: 1;
    }

    nav input[type='search'] {
        width: 100%;
        margin-left: 25%;
        text-align: center;
        background: transparent;
        font-size: 20px;
        margin: 0;
        color: black
    }

    nav button {
        display: none;
    }

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

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

    .nav-on #header nav {
        display: flex;
        /*background-color:        white;*/
        /*backdrop-filter: blur(100px);*/
        /*-webkit-backdrop-filter: blur(100px);*/
        z-index: 10000;
        /*background-repeat: no-repeat;*/
        /*background-position: center center;*/
        /*background-size: contain;*/
        background: #124C8B;;
        top: 0;
    }

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

    .nav-on #header .texte_primaire, .nav-on #lang a, .nav-on #lang a.active {
        color:white
    }

    .nav-on #guide-nav {
        display: none;
    }

}

/* ACCUEIL
**********************************************************************************************************************************/
#accueil-wrapper {
    width: 70vw;
    margin: 5vh auto;
    min-height: 50vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

#accueil-wrapper #slogan {
    flex: 0 0 100%;
    font-size: 120%;
    /*font-weight: bold;*/
    margin: 5vh 0;
    padding-bottom: 3vh;
}

#btn-cover {
    display: block;
    flex: 0 0 18%;
    /*color:#333;*/
    font-weight: bold;
    text-align: center;
}

#btn-cover img {
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .6);
    margin: 0 0 20px 0;
    transform: rotateZ(6deg);
    transition: .4s ease-in-out transform;
}


#btn-cover:hover img {
    transform: rotateZ(0) scale(1.1);
}

.accueil-item {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: center;
    color: #333;
}

.accueil-item.text {
    display: block;
    text-align: left;
    margin: .2em 0;
}

.accueil-item span {
    align-self: center;
}

.accueil-item img {
    width: 60px;
    flex: 0 0 10%
}

#subchapters h4 a {
    color: black;
}

#accueil #subchapters {
    flex: 0 0 80%;
    display: flex;
    flex-wrap: wrap;
}

#accueil #subchapters h2 {
    width: 100%;
    color: #124C8B;
    margin: 0 0 1em 0;
}

#accueil #subchapters.col {
    padding-right: 1em;
}


.btn-more {
    font-size: 70%;
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: bold;
    float: right;
    color: #124C8B;
    border: 2px solid #124C8B;
    padding: .2em .5em;
    border-radius: 10px;
    transition: .4s ease background-color;
}

.btn-more:hover {
    background: #124C8B;
    color: white;
    text-decoration: none;
}

#home-buttons {
    flex: 0 0 100%;
    margin: 0vh 0 12vh;
    display: flex;
    justify-content: space-between;
}

#home-buttons a {
    display: flex;
    flex-direction: column;
    /*color: #124C8B;;*/
    /*border: 2px solid #124C8B;*/
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: bold;
    text-align: center;
    padding: .5em 2em;
    margin: 0 1em;
    border-radius: 20px;
    background: rgba(18, 76, 139, 0.12);
    transition: .3s ease-in-out all;
}

#home-buttons a:hover {
    transform: scale(1.1);
    color: #C7051F;
    background: rgba(199, 5, 31, 0.12);
}

#home-buttons a img {
    height: 10vw;
    margin: 0 auto;
}

#home-buttons a:hover {
    text-decoration: none;
}

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

    #accueil-wrapper {
        width: 90vw;
    }

    #accueil-wrapper #slogan {
        font-size: 100%;
        margin-bottom: 2vh;
    }

    .btn-more {
        font-size: 100%;
    }

    #home-buttons {
        flex-direction: column;
        margin: 0 0 5vh 0;
    }

    #home-buttons a img {
        height: 25vw;
    }

    #home-buttons a {
        margin: 0 0 10px 0;
        /*flex-direction: row;*/
        text-align: center;
        width: 100%;
        padding: .5em;
    }

    #accueil #subchapters {
        flex: 0 0 100%;
        display: block;
    }

    #accueil #subchapters h2 {
        font-size: 7vw;
    }

    #accueil .col h4 {
        font-size: 125%;
        margin: 5vh auto;
    }

    #btn-cover {
        display: block;
        flex: 0 0 60%;
        margin: 5vh auto;
    }

}

/* GUIDE
    **********************************************************************************************************************************/
#guide-wrapper {
    width: 80vw;
    margin: 8vh auto;
    min-height: 60vh;
    /*display: flex;*/
    /*justify-content: space-between;*/
}


#guide-wrapper #frmSearch {
    background-color: #f0f0f0;
    width: 100%;
    padding: .5em 3em;
    margin: 0 auto;
    border-radius: 4px;
    text-align: center;
}


#guide-wrapper #toc {
    /*flex: 0 0 25%*/
}

#guide-wrapper #page {
    flex: 0 0 70%;
    width: 70vw;
    max-width: 900px;
    margin: 0 auto;
    min-height: 70vh;
}


#guide-nav {
    position: fixed;

    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: calc(-25vw - 3px);
    transition: .4s ease-in-out left;
}

#guide-nav > div {
    width: calc(25vw + 40px);
    display: flex;
}

#guide-nav #btn-toc {
    width: 40px;
    height: 40px;
    border-top: 2px solid #C7051F;
    border-right: 2px solid #C7051F;
    border-bottom: 2px solid #C7051F;
    background: #C7051F;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-left: -2px;
    color: white;
    align-self: center;
}

#guide-nav #toc-wrapper {
    width: 26vw;
    /*border-top: 1px solid silver;*/
    /*border-right: 1px solid silver;*/
    /*border-bottom: 1px solid silver;*/
    border-top: 2px solid #C7051F;
    border-right: 2px solid #C7051F;
    border-bottom: 2px solid #C7051F;
    border-radius: 4px;
    background: white;
}

#guide-nav:hover #toc {

}

#guide-nav #toc-wrapper form {
    padding: .5em;
    display: flex;
    justify-content: space-between;
}

#guide-nav #toc-wrapper input[type=search], #guide-wrapper #frmSearch input[type=search] {
    border-radius: 100px;
    border: 1px solid silver;
    padding: .2em .5em;
    width: 90%;
}

#guide-nav #toc-wrapper #btn-search, #guide-wrapper #frmSearch #btn-search {
    border: 0;
    width: 2em;
    /*background: white;*/
    background: transparent;
    margin: 0 0 0 8px;
    color:black;
    text-align: left;

}


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

#guide-nav:hover {
    left: 0
}

#guide-nav #toc h4 {
    font-size: 120%;
}

#guide-nav #toc h5 {
    font-size: 100%;
}

#glossaire dt {
    font-size: 125%;
    margin-top: 1em;
}

#glossaire dd {
    padding-left: 1em;
}

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

    #guide-wrapper {
        width: 80vw;

    }

    #guide-wrapper #page {
        flex: 0 0 100%;
        width: 100%;
    }

    #guide-nav, #guide-nav:hover {
        left: calc(-100vw);
        width: 90vw;
        z-index: 99900001;
        height: calc(60vh);
        top: 15vh;
        border: 1px dotted red;
    }

    #guide-wrapper #frmSearch {
        padding: 1em;
    }

    #guide-wrapper #frmSearch input[type=search] {
        width: 80%;
    }

    #guide-nav > div {
        width: calc(100vw + 40px);
        display: flex;
        height: 100vh;
    }

    #guide-nav #toc-wrapper {
        width: 100vw;

    }

    #guide-nav #toc {
        width: 100vw;
        height: 100%;
        padding-left: 15vw;

    }


    #guide-nav #toc-wrapper input[type=search] {
        width: 90%;
        margin-left: 5em;
    }

    #guide-nav.open {
        left: -40px
    }


}

#guide-tools {
    position: fixed;
    /*right: 0;*/
    /*top: calc(50vh - 40px);*/
    /*height: 80px;*/
    /*width: 80px;*/
    /*bottom:0;*/
    /*left: calc(50vw - 60px)*/
}

#guide-tools div {
    display: flex;
}

#guide-tools a, #guide-tools span {
    display: block;
    width: 40px;
    height: 40px;
    margin-top: 1px;
    background-color: rgba(199, 5, 31, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;

}

#guide-tools span {
    color: silver
}


#guide-tools a.btn-pdf {
    position: fixed;
    width: 80px;
    bottom: 0;
    left: calc(50vw - 40px)
}

#guide-tools #btn-left {
    position: fixed;
    bottom: 0;
    left: calc(50vw - 81px)
}

#guide-tools #btn-right {
    position: fixed;
    bottom: 0;
    left: calc(50vw + 41px)
}

#guide_titre, #guide_sous_titre {
    display: none;
}

#page-toc {
    margin: 5vh auto;
    width: 80vw;
    height: fit-content;
}


#page-toc #toc {
    width: 100%;
    column-count: 2;
    column-gap: 200px;
    column-width: fit-content;
    height: auto;
}

#page-toc h4 {
    margin-top: 1.5em;
}

#page-toc h4:first-child {
    margin-top: 0;
}

#page-toc h5 {
    border-bottom: 1px dotted silver;
}

#page-toc h6 a {
    font-family: "Open Sans";
    font-weight: normal;
}

#page-toc h4:last-child {
    -webkit-break-before: always;
}

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

    #page-toc #toc {
        width: 100%;
        column-count: 1;
    }

    #page-toc #toc h4 {

    }

    #guide-tools {
        width: 40px;
    }

    #guide-tools div {
        flex-direction: column;
    }

    #guide-tools #btn-left {
        order: 0;
        position: fixed;
        bottom: 16px;
        right: 41px;
    }

    #guide-tools a.btn-pdf {
        order: 1;
        width: 80px;
        position: fixed;
        bottom: 16px;
        /*left:0*/
    }

    #guide-tools #btn-right {
        order: 0;
        position: fixed;
        bottom: 16px;
    }
}

/* TOOLTIPS
**********************************************************************************************************************************/
.tooltipster-sidetip .tooltipster-box {
    border-radius: 5px;
    border: 2px solid #C7051F;
    padding: 0;
}

.tooltipster-content {
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    background: white;
    color: #124C8B;;
    font-size: 100%;
    line-height: 1em;
    padding: 20px 40px

}

.tooltipster-sidetip .tooltipster-content {
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    font-size: 100%;
    line-height: 1em;
    padding: 12px 4px 4px;
    color: black;
}

.tooltipster-content a {
    color: #124C8B;;
}

.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border {
    border-top-color: #C7051F;
}

.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background {
    border-bottom-color: #C7051F;
    left: 0;
    top: 3px;
}

.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background {
    border-left-color: #C7051F;
    left: -3px;
    top: 0;
}

.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background {
    border-right-color: #C7051F;
    left: 3px;
    top: 0;
}

.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background {
    border-top-color: #C7051F;
    left: 0;
    top: -3px;
}

.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border {
    border-bottom-color: #C7051F;
}

.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border {
    border-left-color: #C7051F;
}

.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border {
    border-right-color: #C7051F;
}

.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border {
    border-top-color: #C7051F;
}

/* RECHERCHE
**********************************************************************************************************************************/
.search-message {
    font-size: 120%;
    text-align: center;
    margin: 2vh 0;
}

.search-result {
    border-top: 1px dotted silver;
    margin-top: 10px;
    padding: 10px;
    display: block;
    color: #333
}

.search-result h4 {
    font-size: 160%;
}

.search-result p {
    color: grey;
}

.search-result:hover {
    text-decoration: none;
    background: #f0f0f0;
}

/* FOOTER
**********************************************************************************************************************************/
#footer {
    padding: 10vh 4vw;
    width: 100vw;
    margin-top: 5vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-image: url(../img/footer.png);
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
}

#footer > div {
    flex: 0 0 50%;
}

#footer .logos a {
    display: inline-block;
    margin: 2px;
    background: white;
}

#footer .logos a img {
    width: 15vw;
}


#footer #soutiens.logos a img {
    width: 10vw;
}

#footer #credits {
    display: flex;
    flex: 0 0 100%;

    flex-direction: column;
    justify-content: flex-end;
    text-align: right;
    font-size: 12px;
    color: #666
}

#footer #credits a {
    color: #666
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #footer {
        flex-direction: column;
        padding: 4vh 4vw;
        background-size: 150%;
    }

    #footer > div {
        flex: 0 0 100%;
        margin-bottom: 5vh;
    }

    #footer h5 {
        margin: 1em 0 .5em;
    }

    #footer .logos a img {
        width: 42vw;
    }

    #footer #soutiens.logos a img {
        width: 20vw;
    }
}

#contact #guide-wrapper {
    column-count: 2;
    column-fill: auto;
}

@media screen and (min-device-width: 320px) and (max-width: 768px) {
    #contact #guide-wrapper {
        column-count: 1;
        column-fill: auto;
    }
}

/* ZOOM PHOTOS
**********************************************************************************************************************************/
.sl-overlay {
    background: #124C8B;;
}


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

.sl-caption {
    font-family: "Open Sans Condensed";
    font-weight: 300;
}

.sl-caption p {
    margin-bottom: 0;
}

/* ERREUR 404
**********************************************************************************************************************************/
#erreur-404 {
    padding: 20vh 0;
    text-align: center;
    font-family: "Open Sans Condensed";
    font-weight: 300;

}

#erreur-404 h4 {
    font-size: 36px;
}