body {
    color: #444;
    font-size: 16px;
}

a {
    color: #312783
}

body.nav-on {
    overflow: hidden;
}

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

    body, html {
        width: 100vw;
        overflow-x: hidden;
    }

}


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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: bold;
}

.content h3 {
    text-transform: uppercase;
    margin-top: 2em;
}

.content h3:first-child {
    margin-top: 0;
}

/* STRUCTURE
************************************************************************************************************************/
.content {
    min-height: 70vh;
    margin: 10vh auto;
}


/* EN-TÊTE
************************************************************************************************************************/
#header {
    background-color: #D25256;
    height: 18vh;
    padding: 0 1vw;
    display: flex;
    justify-content: space-between;
}

#header #logo {
    display: flex;
    flex-direction: column;
    justify-content-content: center;
    background-image: url(../img/logo-blanc.svg);
    background-repeat: no-repeat;
    background-size: contain;
    /*height:                  100%;*/
    flex: 0 0 50%;
}


#header nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#header nav div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 2em;
    width: 8em;
}

#header nav a {
    font-family: 'Open Sans Condensed', sans-serif;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    font-size: 2.2vh;
    line-height: 1.3em;
}

#header nav a.selected {
    font-weight: bold;
    color: white
}

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

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

    #header {
        height: 10vh;
    }

    #header #logo , #accueil #header #logo{
        background-size: 100% auto;
        background-position: left center;
    }

    #header nav {
        display: none;

    }

}

/* NAVIGATION
************************************************************************************************************************/
@media screen and (min-device-width: 320px) and (max-width: 568px) {

    #btn-mobile-menu {
        position: absolute;
        font-size: 6vw;
        padding: .5em;
        margin: 0;
        width: 10vw;
        top: 10px;
        right: 8vw;
        z-index: 99900000;
        display: block;
        color: white;
    }

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

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

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

    #accueil #btn-mobile-menu:before {
        color: #312783;
    }

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

    .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: 24px;
        text-align: center;
        padding: .6em;
        text-align: center;
        width: 100%;
        display: block;
    }

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

    .nav-on #header nav {
        display: flex;
        background: rgba(49, 39, 131, 0.7);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10000;
    }

}

/* ACCUEIL
************************************************************************************************************************/
#accueil h1 {
    font-size: 6vh;
    font-weight: normal;
    padding: .5em 2em;
    text-align: center;
    color: #D25256;
    text-transform: uppercase;
    text-shadow: 0 4px 20px white;
}

#accueil #header {
    /*background-color: transparent;*/
	background-color: rgba(255,2552,255,1)
}

#accueil #logo {
    background-image: url(../img/logo-bleu-ligne.svg);
    background-repeat: no-repeat;
    background-size:contain;
}

#accueil #wrapper {
    min-height: 70vh;
}

#accueil nav a {
    color: #312783
}

#accueil nav a.selected {
    color: #312783
}

#accueil #wrapper {
    /*min-height: 50vw;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*justify-content: space-around;*/
    /*border:1px dotted red*/
}

#accueil #backdrop {
	background-color: rgba(49, 39, 131, 0.5);
    position:       fixed;
    top:            -2vw;
    left:           -2vh;
    width:          104vw;
    height:         104vh;
    z-index:        -10;

    /*filter: blur(19px);*/
    opacity:        .4;
}

#accueil #splash {
    height: 30vh;
    background: url(../img/backdrop2.jpg) no-repeat;
    background-size: cover;
    background-position: center center;
    /*filter: blur(19px);*/
    /*opacity: .4;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#accueil #actualites {
    width: calc(90vw - 20px);
    margin: 5vh auto;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    background: #D25256;
    color:white;
    border-radius: 8px;
    transition: .5s ease box-shadow;
}

#accueil #actualites:hover {
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.53);
}

#accueil #actualites h5 {
    margin: 0  1em 0 0;
    float: left;
    text-transform: uppercase;
}
#accueil #categories {
    width: 90vw;

    margin: 5vh auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

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

    #accueil h1 {
        font-size: 9vw;
    }

    #accueil #categories {
        width: 99vw;
    }

    #accueil #actualites h5 {
        float: none;
    }

    #accueil #actualites .arrow {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

}

/* REPERTOIRE
************************************************************************************************************************/

#repertoire .repertoire {
    min-height: 60vh;
}

.backdrop {
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(40px);
}

#repertoire .gutter {
    padding: 2em;
    height: 100%;
}

.organisation.item {
    opacity: .3;
    filter: blur(2px);
    transform: scale(.97);
    margin: 0 0 1em 0;
    display: block;
    color: #444;
    padding: 1em;
    transform-origin: top center;
    transition: box-shadow .8s ease, color .8s ease, background-color .8s ease, opacity .2s ease, transform .5s ease, filter .5s ease;
    width: 90%;
    border-bottom: 2px dotted #b0b0b0;

    display: flex;
}

.organisation.item.anime {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.organisation.item:hover {
    text-decoration: none;
    color: #312783;
    box-shadow: 0 7px 6px rgba(0, 0, 0, .4);
    background-color: #fafafa;
    border-bottom: 2px dotted transparent;
}

.organisation .icon {
    flex: 0 0 20%;
    padding: 1em;
    display: flex;
    justify-content: center;

}

.organisation .icon img {
    max-height: 100%;
    max-width: 100%;
    justify-self: center;
    align-self: center;
}

.organisation .info {
    flex: 0 0 60%;
    padding: 1em;
}

.organisation .address {
    flex: 0 0 10%;
    font-weight: bold;
}

.organisation .info img {
    width: 3vw;
}

#toggle {
    width: 100%;
    margin: 1em 0;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    justify-content: normal;
}

#toggle a {
    flex: 0 0 50%;
    padding: 1em;
    text-align: center;
}

#toggle a:hover {
    text-decoration: none;
    }

#toggle a:first-child {
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

#toggle a:last-child {
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
}

#toggle a.selected {
    background: #312783;
    color: white;
    font-weight: bold;
}


.detail h2 {
    font-size: 4vw;
}


.categoryPicto {
    display: block;
    margin-top: 1em;
    border-top: 2px silver dotted;
    padding-top: 1em;
}

.categoryPicto img {
    height: 3em;
}

.contact {
    margin: 3em 0;
    padding: 3em 0;
    border-top: 2px dotted #b0b0b0;
    border-bottom: 2px dotted #b0b0b0;
}

.contact a {
    color: #312783;
}

#btn-back {
    width: 1em;
    height: 1em;
    font-size: 3vw;
    color: white;
    background-color: #312783;
    position: absolute;
    margin: 1vw;
    border-radius: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s ease background-color;
}


#btn-back:hover {
    text-decoration: none;
    background-color: #D25256;;
}

#search {
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    padding: .2em;
    border-radius: 100px;
}

#btn-search {
    background: #ddd;
    color: grey;
    border: 0;
    border-radius: 100px;
    width: 2em;
    height: 2em;
}

/* CATEGORIES
 */

/*.category {*/
/*    padding: 1em  0 1em 4em;*/
/*    !*text-align: center;*!*/
/*    width: 100%;*/
/*    border:1px solid black;*/
/*    margin: 1em 0;*/
/*    border-radius: 2px;*/
/*    font-weight: 900;*/
/*    font-size: 1.4vh;*/
/*    height: calc(60vh / 14 );*/
/*    background-size: contain;*/
/*}*/

.category.selected {
    color: white;
    font-weight: bold;
    background-color: #312783;
}


#categories {

}

#categories #scroll {
    display: flex;
    flex-direction: row;
}

.category {
    /*background:rgba(255,255,255,.3);*/
    padding: 0em 0em;
    border: 0;
    border-radius: 10px;
    width: 10em;
    height: 8em;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 10px;
    background-size: 7em auto;
    color: #444;
    transition: .5s background-color ease;
    text-transform: uppercase;
}

#accueil #categories a .category{
    background-color: rgba(255, 255, 255, .1);
    margin: 10px;
}

#accueil #categories a .category.link {
    background-color: rgba(210, 82, 86, 0.2);
    }

#accueil #categories a:hover .category.link {
    background-color: rgba(210, 82, 86, 1);
    color:white
    }

#accueil #categories a:hover .category {
    background-color: rgba(255, 255, 255, .3);
    text-decoration: none;

}

#categories a:hover {
    text-decoration: none;
}

#repertoire #categories {
    justify-content: space-between;
    width: 100vw;
    transition: .5s background-color ease;
    padding: 1vw;
background-color: rgba(49, 39, 131, 0.25);
}

#repertoire .category {
    width: calc(100vw / 13.3);
    height: calc(100vw / 15);;
    font-size: .8vw;
    margin: 0;
    text-align: center;

}


.fixed {
    position: fixed;
    top: 0;
    z-index: 99999;
    width: 100vw;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /*background-color: rgba(255,255,255,.90);*/
    background-color: rgba(210, 82, 86, 0.87);
}

#repertoire .fixed .category a {
    height: 1em
}


#repertoire .arrow {
    display: none;
}

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

    #repertoire.liste .gutter, #repertoire.carte .gutter {
        padding: 0.5em .5em 2em .5em;
    }

    .organisation.item {
        width: 99%;
        padding: .2em 0;
        margin: .2em 0;
    }

    .organisation.item h3 {
        font-size: 5vw;
    }


    .organisation .info {
        flex: 0 0 80%;
    }

    .category {
        /*background:rgba(255,255,255,.3);*/
        padding: 0em 0em;
        border: 0;
        font-size: 12px;
        border-radius: 10px;
        width: 25vw;
        height: 25vw;
        background-size: 20vw auto;
    }


    #repertoire #categories {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    #repertoire .category {
        /*background:rgba(255,255,255,.3);*/
        padding: 0em 0em;
        border: 0;
        border-radius: 10px;
        width: 15vh;
        height: 13vh;
        font-size: 1.6vh;
    }

    #btn-back {
        width: 7vw;
        height: 7vw;
        font-size: 5vw;
        margin-top: 10vw;
        z-index: 9000;
    }
    
    #actualites #btn-back, #liens #btn-back {
        margin-top: -10vw;
        }

    .detail h2 {
        font-size: 8vw;
    }

    #toggle {
        margin: 0 auto 10px;
    }


    #btn-search {
        text-align: left;
    }

    #btn-search i {
       margin-left: -0.5em;
    }

    #repertoire .arrow.show {
        display: block;
        position: absolute;
        margin-top: calc(5vh);
        background: rgba(255,255,255,.6);
        width: 1em;
        height: 1em;
        border-radius: 100px;
        text-align: center;
        line-height: 1em;
    }

    #repertoire .arrow.left {
        left:10px;
    }

    #repertoire .arrow.right {
        right:10px;
    }

}

/* FORMULAIRES
*/


small.error {
    display: none;
}


.success-message {
    text-align: center;
}

.success-message img, .error-message img {
    width: 20vw;
}

.error-message {
    color: rgba(210, 82, 86, 1);
    text-align: center;
}

#esp-form label {
    width: 100%;
    padding-bottom: 1em;
}

#esp-form label span {
    font-weight: bold;
    display: block;
}

#esp-form img {
    margin-right: 1em;
}

#esp-form textarea {
    width: 100%;
    height: 8em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Carte
************************************************************************************************************************/
#mapdetailid {
    height: 300px;
}

#mapid {
    width: 100%;
    height: 100%;
    margin: 0;
}


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

    #mapid {
        width: 100%;
        height: 40vh;
        margin: 0;
        top: 0vh;
        left: 0;
        /*margin: -2vh 0 0 3vw;*/
    }
}

.marker strong {
    color: black;
}

.marker:hover {
    text-decoration: none;
}

/* 404
************************************************************************************************************************/
#msg404 h3 {
    color: rgba(210, 82, 86, 1);
}

#msg404 > div {
    display: flex;
    flex-direction: column;
    width: 30vw;
    margin: 0 auto;
    text-align: center;
}

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

    #msg404 > div {
        width: 80vw;
    }

}

/* ACTUS
************************************************************************************************************************/
.actualite-item {
    border-bottom: 2px dotted #b0b0b0;
    margin-bottom: 2em;
    }


/* PIED DE PAGE
************************************************************************************************************************/
#footer {
    background-color: #D25256;
    color:white
}

#footer #credits a {
    color:white
}

#footer .col .gutter {
    line-height: 1em;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#footer .left {
    justify-content: center;
    font-weight: bold;
}

#footer .right .gutter {
    justify-content: flex-end;
    text-align: right;
    font-size: 12px;
    height: 100%;
}

#footer #credits {
    align-self: flex-end;
}

@media screen and (min-device-width: 320px) and (max-width: 568px) {
    #footer .col .gutter {
        font-size: 12px;
    }

    #footer #credits {
        font-size: 9px;
    }
}

.download {
    display: inline-block;
    color: white;
    background-color: #312783;
    padding: .5em 2em;
    text-align: center;
    margin: 2em 0 0 0;
    border-radius: 8px;
}

.download span {
    font-weight: bold;
}

.download:hover {
    color:white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.53);
}