body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    position: relative;
    left: 0;
    top: 0;
    font-family: "Regular", sans-serif;
}

.navbar-brand {
    font-family: ExtraBold;
    color: white;
    font-size: 4vh;
}

.navbar-light .navbar-brand {
    color: white;
}

.canevas {
    position: relative;
    height: calc(100vh - 56px);
}

#wrapper {
    padding-top: 7vh;
}

body.no-scroll {
    overflow: hidden;
}


/* FILTRE
******************************************************************************************/
#e-filter {

    margin: 0;
    position: fixed;
    top: 7vh;
    height: 7vh;
    min-height: 40px;
    width: 100%;
    padding: 1vh;
    z-index: 20000;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#filter {
    display: flex;
    justify-content: center;
    width: 100%;

}

#e-filter div {
    padding: 0 1em;
}

#e-filter select {
    overflow: hidden;
}

#e-filter input[type=search], #e-filter select {
    height: 29px;
    background: rgba(0, 0, 0, 0.1);
    color: black;
    width: 20vw;
    font-family: Bold;
    font-size: 1vw;
    border: 0;
    -webkit-border-radius: 95px;
    -moz-border-radius: 95px;
    border-radius: 95px;
}

 #e-filter select option{
     font-family: "Helvetica", sans;
 }

#e-filter input[type=search] {
    padding: 0 .5em;
}

#e-filter input[type=search]::placeholder {
    color: rgba(255, 255, 255, .5);
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: searchfield-cancel-button;
    color: white;
}

#e-filter #btn-search {
    border: 0;
    background: 0;
    color: white;
    
}

#e-filter #btn-search-filter {
    background-color: transparent;
    border:0;
    color:white;
    width:2em;
    height:2em;
    }

.resultat form {
    display: inline;
}

.filter-suggestion {
    background: 0;
    border: 0;
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
}

/* ACTIVITES
 */

.activites-grid {
    margin-top: 2vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    /*overflow:        hidden;*/
    padding: 8vh 9vw;
    width: 100%;
}

.activites-grid._with_bar {
    width: 80vw;

}

.group .activites-grid {
    padding: 0;
}

#activite-grid a, #activite-grid a:hover {
    text-decoration: none;
}

.activites-grid .item {
    width: 20vw;
    height: 20vw;

    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #666;
    transform-origin: 50% 50%;
    transition: .2s all cubic-bezier(0, .58, .23, 1.21);
    cursor: pointer;
    /*flex-wrap: wrap;*/
}

.activites-grid .item.zoom {
flex-wrap: wrap;
}

.activites-grid .placeholder {
    width: 20vw;
    height: 20vw;
    /*flex-basis: 1;*/
    /*background: #f0f0f0;*/

}

.activites-grid .item:hover {
    color: black;
    transform: scale(1.1);

}

.activites-grid .item .icon {
    width: 14vw;
    height: 14vw;
    border-radius: 4px;
    background: silver;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.activites-grid .item:not(.zoom):hover .icon {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}

.activites-grid .item .label h3 {
    text-align: center;
    font-family: Regular;
    font-size: 1.1vw;
    margin-top: 8px;
}

.activites-grid .item.group .label h3 {
    font-family: Bold;
}

.activites-grid .item .detail {
    display: none;
}

.activites-grid .item.group .activites-grid {
    display: none
}

.activites-grid .item.zoom .infos {
    overflow-y: auto;
    height: 90%;
}

/* GROUPES*/

.group {
    width: 20vw;
    height: 20vw;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transform-origin: 50% 50%;
    transition: .2s all cubic-bezier(0, .58, .23, 2);
    cursor: pointer;
    flex-wrap: wrap;
}

.group > .icon {
    z-index: 500;
    background-image: url(../img/overlay-carre.png);
    background-size: cover;

}

.group > .icon, .group-bg {
    width: 14vw;
    height: 14vw;
    border-radius: 4px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-family: ExtraBold;
    font-size: 2vw;
    text-transform: uppercase;
    line-height: 1em;
    color: white;

    transition: .5s all cubic-bezier(0, .58, .23, .9);;
}


.group-bg {
    position: absolute;
    margin: 0 0 0 3vw;
    transform-origin: center center;


    /*transition: .5s all  cubic-bezier(0, .58, .23, 1.21);;*/
}


.group:hover > .icon {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}

.group-bg.one {
    transform: rotateZ(4deg);
    filter: brightness(90%);
}

.group:hover .group-bg.one {
    transform: rotateZ(-4deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}

.group-bg.two {
    transform: rotateZ(-6deg);
    filter: brightness(80%);
}

.group:hover .group-bg.two {
    transform: rotateZ(+7deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}


.group .activites-grid {
    display: none;
}

.group.open {
    position: fixed;
    top: 15vh;
    left: 5vw;
    width: 90vw;
    height: 80vh;
    border-radius: 8px;
    padding: 0vw;
    display: flex;
    /*flex-direction: row;*/
    align-content: space-around;
    /*overflow-x:     hidden;*/
    /*overflow-y:     auto;*/
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
    background-image: url(../img/overlay-carre.png);
    background-position: center center;
    background-size: cover;
    z-index: 1000;
}

.group.open h3 {
    color: white;
}

.group.open .group-bg {
    display: none
}

.group > .close.detail {
    display: none;
}

.group.open > .close.detail {
    display: block;
    color: white;
    position: absolute;
    right: 30px;
    top: 10px;
    width: 1em;
    height: 1em;
    z-index: 2000;
}

.group.open:hover {
    transform-origin: center center;
    transform: scale(1);

}

.group .overflow {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.group.open > .icon {
    display: none;
}


.group.open .activites-grid {
    display: flex;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    top: 0vh;
    /*position: absolute;*/
    padding: 2vw;
    position: static;
}

.group.open .activites-grid .item.zoom {
    left: 10vw;
    top: 5vh;
    position: fixed;
}


/* ZOOM */
.item.zoom, #modal-detail {

    position: fixed;
    top: 20vh;
    left: 15vw;
    width: 70vw;
    height: 70vh;
    background: #f0f0f0;
    border-radius: 8px;
    z-index: 1000000;
    box-shadow: 0 4px 20px grey;
    padding: 1vw;
    display: flex;
    flex-direction: row;
    align-content: space-around;
    overflow-x: hidden;
    overflow-y: hidden;
}

#modal-detail {
    display: none;
}

#modal-detail.show {
    display: flex;
}


.item.zoom:hover {
    transform: scale(1);
}

.item.zoom .detail {
    display: block;
}

.item.zoom .icon {
    width: calc(70vw / 4.5);
    height: calc(70vw / 4.5);
    margin: 0 0 5vh 0;
    transition: .2s all cubic-bezier(0, .58, .23, 5);

}

.item.zoom .infos {
    flex: 1 0 25%;
    height: 55vh;
}

.activites-grid .item .numero {
    background: rgba(0, 0, 0, .5);
    color: white;
    width: 3em;
    text-align: center;
    font-size: 60%;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
    align-self: flex-start;
}

.activites-grid .item .consignes {
    display: flex;
    justify-content: flex-end;
}

.activites-grid .item .top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: fit-content;
    align-content: flex-start;
}

.activites-grid .item {
    overflow: hidden;
}

.activites-grid .item .nouveau {
    font-family: bold;
    padding: .1em .2em;
    background: black;
    color: #FF9900;
    font-size: 100%;
    text-transform: uppercase;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
}


.activites-grid .item.zoom .nouveau {
    font-size: 130%;
}

.activites-grid .item .prof {
    position: absolute;
    text-align: center;
    font-size: 60%;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 4px;
    width: 8vw;
    height: 8vw;
    margin: auto;
    background: url(../img/label-profs.png) no-repeat;
    background-size: cover;
}

.activites-grid .item.zoom .prof {
    width: calc(70vw / 4.5);
    height: calc(70vw / 4.5);
}

.activites-grid .item .consignes_audio {
    text-align: center;
    font-size: 60%;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 4px;
    width: calc(70vw / 18);
    height: calc(70vw / 18);
    background: url(../img/btn-ecouter.png) rgba(0, 0, 0, .5) no-repeat;

    background-size: cover;
}

.item.zoom .numero {
    font-size: 150%
}

.item.zoom .label {
    flex: 1 0 70%;
    text-align: left;
    height: 55vh;

}

.item.zoom .label h3 {
    color: #FF9900;
    font-size: 4vw;
    font-family: ExtraBold;
    text-align: left;
    padding-left: 1vw;
}

.close {
    display: flex;
    flex: 1 0 2%;
    font-size: 3vw;
    color: #FF9900;
    text-align: right;
    cursor: pointer;

}

.item.zoom .infos, .fiche-info {
    font-size: 100%;
    color: #666;
    text-transform: uppercase;
    font-family: Light;

}

.activites-grid .infos h4, .fiche-info h4 {
    font-size: 1.5vh;
    margin: 1em 0 0em;

}

.activites-grid .infos span, .fiche-info span {
    padding: .1em .3em;
    text-align: center;
    background: silver;
    border-radius: 2px;
    font-size: 1.4vh;
}

.fiche-info span {
    margin: 0 .2em 0 0;
}

.fiche-info span img {
    height: 1em;
}


.activites-grid .infos form {
    display: inline-block;
}

.activites-grid .infos .tags, .fiche-info .tags {
    padding: .1em .2em;
    background: #FF9900;
    color: white;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    font-size: 1.4vh;
    margin: 0 0 1px 0;
    text-transform: uppercase;
}

.activites-grid .description {
    font-size: 2.5vmin;
}

.activites-grid .description.detail {
    max-height: 48vh;
    overflow-y: auto;
    padding: 1vw;
    border: 1px dotted transparent;
}

.activites-grid .description .indication-pedagogique h5 {
    font-family: Bold;
    /*font-size:   90%;*/
}

.activites-grid .description .indication-pedagogique {
    margin: 2em 0 0 0;
    padding: 1em 0 0 0;
    border-top: 1px solid silver;
}

.activites-grid .description .indication-pedagogique, .activites-grid .description .indication-pedagogique p, .activites-grid .description .indication-pedagogique li {
    font-size: 90%;
}

.item.zoom .tools {
    flex: 0 0 100%;
    height: auto;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.item.zoom .tools a {
    margin: 0 0 0 .2em;
}

.item.zoom .suggestions .icon {
    width: 8vw;
    height: 8vw;
    margin: 0 20px 0 0;
    padding: 0;
}

.activites-grid .suggestions .item {
    margin: 0;
    padding: 0;
}

.button {
    padding: .5em 2em;
    text-align: center;
    background: gray;
    color: white;
    font-family: ExtraBold;
    font-size: 2vmin;
    border-radius: 4px;
}

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

.button.principal {
    background: #FF9900;
    color: white;
}

/* ACCUEIL
*************************************************************************************************************************/
#accueil {
    background: url(../img/accueil-fond.png) no-repeat;
    background-position: bottom;
    background-size: 100vw auto;
}

#accueil h1.catchphrase {
    font-size: 3vw;
    margin: 5vh auto;
    width: 60vw;
    text-align: center;
    color: #FF9900;
    font-family: Light;
}

#cycles {
    width: 90vw;
    height: 30vh;
    margin: 0vh auto;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

#cycles .item {

    flex: 1 0 25%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    align-content: center;

}

#cycles .hublot {
    flex: 1 0 25%;
}

#cycles .degres {
    display: flex;
    justify-content: center;
}

#cycles .degre {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    border-radius: 100%;
    font-family: Bold;
    color: white;
    text-align: center;
    width: 4vw;
    height: 4vw;
    font-size: 2vw;
    line-height: 1.9em;
    text-decoration: none;
    margin: 0 .4vw;
    transform-origin: center center;
    transition: .5s transform ease;

}

#cycles .degre:hover {
    text-decoration: none;
    transform: scale(1.2);

}

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    10% {
        -webkit-box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
    20% {
        -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    10% {
        -moz-box-shadow: 0 0 0 20px rgba(0, 0, 44, 0);
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
    20% {
        -moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

#search-number {
    flex: 1 1 100%;
    width: 50vw;
    height: 2em;
    margin: 5vh auto;
    text-align: center;
}

#home-input-search {
    font-size: 3vmin;
    background: #FF9900 url(../img/btn-search.png) no-repeat;
    background-size: contain;
    background-position: 20px center;
    border: 0;
    width: 10em;
    color: white;
    border-radius: 100px;
    padding: 0 0 0 3em;
    text-align: left;
}

#home-input-search::-webkit-input-placeholder {
    color: rgba(255, 255, 255, .5);
    font-size: 1.5vmin;
    padding-top: .8em;
    text-align: left;
}


/* RESULTATS
	*************************************************************************************************************************/
.erreur {
    margin: 1em;
    background: maroon;
    color: white;
    padding: 1em;
    border-radius: 4px;
}

.resultat {
    text-align: center;
    margin: 10vh auto;
}

.resultat h6 {
    font-family: ExtraBold;
    font-size: 10vw;
}

.resultat h1 {
    font-size: 3vw;
}

/* CONNEXION
******************************************************************************************/
#connexion ._bloc._demi {
    display: block;
}

#connexion form {
    display: block;
}

#connexion label {
    display: block;
}

#connexion input {
    display: block;
}

/* DEVLEOPPEUR
******************************************************************************************/
#login-dev {
    text-align: center;
    padding: 10vh 0;
}

/* PIED DE PAGE
******************************************************************************************/
#footer {
    position: absolute;;
    bottom: 0;
    width: 100%;
    min-height: 7vh;
    text-align: right;
    color: white;
    font-size: 1vw;
    /*padding-bottom: 2vh;*/
}

#footer a {
    color: rgba(255, 255, 255, .8);
    padding: 0 4em;
    font-family: Bold;
    transition: .5s color ease;
}

#footer a:hover {
    color: white;
    text-decoration: none;
}

#footer p {
    margin: 0 0 4px 0 ;
}


/* CONTENUS
******************************************************************************************/
#_activite.page h3 {
    font-family: Bold;
    text-transform: uppercase;
    font-size: 2rem;
    width: 100%;
    margin-bottom: 1em;
    color: #FF9900;
}

#_activite.page a {
    color: #FF9900;
}

#_activite.page p {
    font-size: 18px;
    line-height: 1.3rem;
}

#_activite.page strong {
    padding-top: 2em;
    font-family: Bold;
}

#_activite.page.mobile strong {
    text-align: center;
    font-size: 100%;
}


/* MESSAGE iPAD PORTRAIT
******************************************************************************************/
#_pad_portrait {
    z-index: -2000;
    display: none;
}

@media only screen and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait) {
    #_pad_portrait {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: url(../img/msg-ipad-paysage.png) no-repeat #FF9900;
        background-size: 60vw auto;
        background-position: center center;
        z-index: 999999999

    }

    body {
        background: black;
    }
}


/* COULEURS PAR DEFAUT
******************************************************************************************/
._fond_cycle ,  ._btn.nbr_questions._fond_cycle,  ._btn.type._fond_cycle {
    background: #FF9900
}

._texte_cycle {
    color: #FF9900;
}


._fond_secondaire {
    background: #0066FF;
}

._texte_secondaire {
    color: #0066FF;
}

._bord_cycle {
    border: 1px solid #FF9900;
}

._bord_secondaire {
    border: #0066FF;
}

._fond_gris {
    /*background: grey;*/
    }


/* RGPD
******************************************************************************************/
#rgpd {
    position: fixed;
    bottom: 0;
    padding: 2em;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: rgba(159, 83, 0, 0.80);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-transform: uppercase;
    font-size: 1.2vw;
}

#rgpd .texte {
    flex: 0 0 50%;

}

#rgpd .bouton {
    flex: 0 1 20%;
}

#rgpd .rgpd_boutton {
    padding: .5em 2em;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid white;
    border-radius: 2px;
    color: white;
    background: transparent;
    margin: 0;
    justify-self: center;
    align-self: center;
    display: block;
    cursor: pointer;
    transition: .5s background-color ease, .5s color ease;
}

#rgpd .rgpd_boutton:hover {
    color: rgba(159, 83, 0, 1);
    background: white;
    text-decoration: none;
}


#help.tutorial {
    display: block;
    opacity: 1;
    z-index: 100;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#help.tutorial .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#help.tutorial video {
    margin: auto;
    max-height: 100%;
}


/* POPUP
******************************************************************************************/
._popup {
    position: absolute;
    background: white;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    padding: .5em 1em;
    color: black;
    border-radius: 8px;
    box-shadow: 0 4px 8px black;
    z-index: 9999999;
    display: none;
}

._popup._actif {
    display: block;
}


._popup._bottom {


    margin-top: 10px;
    transform: translateX(calc(-50% + 28px));

}

._popup._bottom:after, ._popup._bottom:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

._popup._bottom:after {
    border-color: rgba(136, 183, 213, 0);
    border-bottom-color: white;
    border-width: 30px;
    margin-left: -30px;
}

._popup._bottom:before {
    /*border-color: rgba(194, 225, 245, 0);*/

    border-width: 34px;
    margin-left: -34px;
}

._popup._right {
    transform: translate3d(-100%, calc(-50% - 28px), 0);
    max-height: 10em;
}

._popup ._content {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    max-height: 9em;
}


._popup._right:after, ._popup._right:before {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

._popup._right::after {

    border-left-color: white;
    border-width: 10px;
    margin-top: -10px;
}

._popup._right::before {

    border-left-color: white;
    border-width: 16px;
    margin-top: -16px;
}

._popup_btn_close {
    font-size: 11px;
    text-align: right;
    }


/* SPLASH / RESULTATS
******************************************************************************************/
._splash {
    display: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, .4);
    z-index: -10500;
}

._splash._show {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10500;
    webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

._splash ._content {
    background: rgba(255, 255, 255, .8);
    border-radius: 8px;
    position: fixed;
    top: 15vh;
    left: 15vw;
    width: 70vw;
    height: 70vh;
    z-index: 50;
    box-shadow: 0 4px 20px grey;
    padding: 1vw;
    display: flex;
    flex-wrap: nowrap;
}

._resultat ._content {
    /*background: rgba(0, 0, 0, .05);*/
    /*box-shadow: 0 4px 20px grey;*/
    /*border-radius: 8px;*/
    padding: 0vw;
    width: 70vw;
    display: flex;
    flex-wrap: nowrap;
    margin: 2vh auto;
}

._splash ._content ._message {
    flex: 0 0 66%;
    padding: 2em;
    display: flex;
    /*flex-wrap: nowrap;*/
    flex-direction: column;
    height: fit-content;
}

._resultat ._content ._message {
    flex: 0 0 66%;
    padding: 0em;
    display: flex;
    /*flex-wrap: nowrap;*/
    flex-direction: column;
}

._splash  ._content ._message  p {
  line-height: 1.4em;
}

._splash ._phylactere, ._resultat ._phylactere h6 {
    font-size: 4vw;
    font-family: Bold;
}

._splash ._phylactere, ._resultat ._phylactere {
    font-size: 2vw;
}

._splash ._content ._message ._image, ._resultat  ._image {
    height: 30vh;
}

._splash ._content ._actions, ._resultat ._content ._actions {
    flex: 0 0 33%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
}

._splash ._content ._actions ._boutons a, ._resultat ._content ._actions ._boutons a, ._resultat ._content ._actions ._boutons button  {
    border-radius: 8px;
    width: 100%;
    margin: 10px auto;
}

._splash ._splash_btn_close {
    align-self: flex-end;
}

._splash ._btn._imprimer {
    float: right
}

._splash ._btn._acces-c2b {
    background-image: url(/img/btn-c2b-acces-on.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    }

._splash ._content ._actions ._boutons a._acces-c2b {
    width: 2em;
    float:right
    }

/* VIDEOS
****************************************************************************************/
#video ._banner {
    margin: 1em auto;
    width: 80%;
    font-family: Bold;
    display: flex;
    justify-content: space-between;
}

#video ._banner ._right {
    /*float: right;*/
    width: 30%;
    text-align: right;
}