/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.emf_slidder_box{
	height: 360px;
    position: relative;
    top: -8px;
    overflow: hidden;
    /*background-image: url('../img/back_exemple.jpg');*/
    background-size: cover;
    background-position: center;
}

.emf_slidder_box .emf_slidder_filtre{
	position: absolute;
    background-color: rgb(0,0,0);
    top: 0;
    bottom: 0;
    margin: 0;
    left: 0;
    right: 0;
    z-index: 3;
}
/********************************************************
*   NAV
******************************************************/
.emf_slidder_box .emf_slidder_nav{
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}
.emf_slidder_box .emf_slidder_nav h3{
    position: absolute;
    color: white;
    background: rgb(221, 62, 89);
    padding: 1rem 2rem;
    margin-top: 2rem;
    width: 400px;
    left: -105px;
    top: 50px;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.emf_slidder_box .emf_slidder_nav ul{
    margin-top: 0;
    display: inline-block;
    padding: 0 2rem;
    margin: 0;
    padding-bottom: 1rem;
    background-color: #222;
    background: rgba(51, 51, 51, 0.7);
    text-align: center;
    border-radius: 0 0 10px 10px;
}
.emf_slidder_box .emf_slidder_nav li{
    margin-right: 1rem;
    cursor: pointer;
    box-shadow: 2px 2px 10px #222;
    border-radius: 50%;
}
.emf_slidder_box .emf_slidder_nav li:last-child{
    margin-right: 0;
}

/********************************************************
*   SLIDE
******************************************************/
.emf_slidder_box .emf_slidder_part{
    position: absolute;
    /*background-color: rgba(0,0,0,0.4);*/
    top: 0;
    bottom: 0;
    margin: 0;
    left: 100%;
    right: 0;
    z-index: 6;
    height: 100%; 
    width: 100%;
}

.emf_slidder_box .emf_slidder_actif{
    left: 0;
}

.emf_slidder_box .emf_slidder_content{
	position: relative;
	z-index: 6;
	width: 80%;
	margin: 0 auto;
	color: #fff;
	top: 50%;
    transform: translateY(-50%);
}

.emf_slidder_box .emf_slidder_text{
	position: relative;
	z-index: 6;
	display: inline-block;
    width: 90%;
    vertical-align: top;
    color: white;
    margin: 4%;
}
.emf_slidder_box .emf_slidder_text:first-child{
    min-width: 90%;
    display: inline-block;
}

.emf_slidder_box .emf_slidder_title{
	position: relative;
	display: inline-block;
    z-index: 6;
    color: #fff;
    background: rgba(51, 51, 51, 0.7);
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-size: 3rem;
}

.emf_slidder_box .emf_slidder_p{
	position: relative;
	z-index: 6;
	display: inline-block;
	background: rgba(51, 51, 51, 0.7);
    padding: 1rem 2rem;

    right: -100vw
}

.emf_slidder_box .emf_slidder_img{
	position: relative;
	z-index: 6;
}
.emf_slidder_box .emf_slidder_img img{
    position: absolute;    
	display: block;
    width: 100vw;
    height: 360px;
    object-fit: cover;
}

.emf_slidder_box .emf_slidder_chevron{
    position: absolute;
    z-index: 8;
    background: rgba(51, 51, 51, 0.7);
    bottom: 0;
    left: 50%;
    width: 90px;
    height: 70px;
    border-radius: 5px 5px 0 0;
    transform: translateX(-50%);
}

.emf_slidder_box .fa-chevron-down{
    font-size: 5rem;
    position: absolute;
    z-index: 10;
    bottom: 1vh;
    left: 50%;
    transform: translateX(-50%);
	color: #fff;
	cursor: pointer;

    -webkit-animation: downAnimation 2s ease infinite;
	-moz-animation: downAnimation 2s ease infinite;
	animation: downAnimation 2s ease infinite;
}
.emf_slidder_box .emf_slidder_timer{
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 0;
    background: rgba(51, 51, 51, 0.7);
    z-index: 6;

}
.emf_slidder_box .emf_slidder_timer span{
    position: absolute;
    content: '';
    top:0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(44, 189, 226, 0.62);
    z-index: 7;

}
.emf_slidder_box .emf_slidder_timer.go span{
    -webkit-animation: timerAnimation 12s linear infinite;
    -moz-animation: timerAnimation 12s linear infinite;
    animation: timerAnimation 12s linear infinite;
}

/************************************************************
*   DATE EC3
***********************************************************/
.emf_slidder_box .ec3_schedule_date{
    font-size: 1.2rem;
}
.emf_slidder_box .ec3_schedule_date dd{
    margin: 0;
    margin-right: 1.5em;
    margin-left: 1.5em;
}
.emf_slidder_box .ec3_schedule_date dd:last-child{
    margin: 0 1.5em 0.6em;
    margin-bottom: 0.6em;
}
.emf_slidder_box .ec3_schedule_past{
    display: none;
}
.emf_slidder_box .ec3_schedule_date .info_lieu{
    display: none;
}
    

/********************************************************
*   ANIMATION
******************************************************/
/*.emf_slidder_box .emf_slidder_actif .emf_slidder_img,*/
.emf_slidder_box .emf_slidder_actif .emf_slidder_title{
    -webkit-animation: slideDown 1s linear 0.6s; /* Safari 4.0 - 8.0 */
    -webkit-animation-fill-mode: both; /* Safari 4.0 - 8.0 */
    animation: slideDown 1s linear 0.6s;
    animation-fill-mode: both;
}
.emf_slidder_box .emf_slidder_actif .emf_slidder_p{
    -webkit-animation: slideFromRight 1s linear 0.6s; /* Safari 4.0 - 8.0 */
    -webkit-animation-fill-mode: both; /* Safari 4.0 - 8.0 */
    animation: slideFromRight 1s linear 0.6s;
    animation-fill-mode: both;
}


/* ANIMATION TEXTE */
@-webkit-keyframes slideFromRight {
    0%{ right: -100vw }
    100%{ right: 0 }
}
@-moz-keyframes slideFromRight {
    0%{ right: -100vw }
    100%{ right: 0 }
}
@keyframes slideFromRight {
    0%{ right: -100vw }
    100%{ right: 0 }
}

/* ANIMATION IMG ET TITLE */
@-webkit-keyframes slideDown {
    0%{ top: -80vh }
    100%{ top: 0 }
}
@-moz-keyframes slideDown {
    0%{ top: -80vh }
    100%{ top: 0 }
}
@keyframes slideDown {
    0%{ top: -80vh }
    100%{ top: 0 }
}


@-webkit-keyframes downAnimation {
    0%{ bottom: 2vh }
    60%{ bottom: 1vh }
    80%{ bottom: 1vh }
    100%{ bottom: 2vh }
}
@-moz-keyframes downAnimation {
    0%{ bottom: 2vh }
    60%{ bottom: 1vh }
    80%{ bottom: 1vh }
    100%{ bottom: 2vh }
}
@keyframes downAnimation { 
    0%{ bottom: 2vh }
    60%{ bottom: 1vh }
    80%{ bottom: 1vh }
    100%{ bottom: 2vh }
}

@-webkit-keyframes timerAnimation {
    0%{ width: 0% }
    100%{ width: 100% }
}
@-moz-keyframes timerAnimation {
    0%{ width: 0% }
    100%{ width: 100% }
}
@keyframes timerAnimation { 
    0%{ width: 0% }
    100%{ width: 100% }
}



/**************************************************************************
*   MEDIA QUERIES
***************************************************************************/
@media all and (max-width: 768px) {
    .emf_slidder_box{
        top: 0;
    }
    .emf_slidder_box .emf_slidder_content{
        height: 75%;
        width: 100%;
        overflow: auto;
    }
    .emf_slidder_box .emf_slidder_nav h3{    
        font-size: 1rem;
        left: -150px;
        top: 15px;
    }
    .emf_slidder_box .emf_slidder_nav ul{
        z-index: 2;
        position: relative;
    }
    .emf_slidder_box .emf_slidder_actif .emf_slidder_title{
        font-size: 1.2em;
    }
}