/* -------------------------------- 

TIMELINE

-------------------------------- */

/* Permet de manipuler la distance entre les points pour le responsive */

#distance {
    width: 50px;
}

.histoire .timeline{
    margin-top: 80px;
}

.histoire .timeline .dates {
    width: 90%;
    margin: auto;
}

.timeline-slides {
    margin: 30px 0;
}

.timeline-image {
    width: 33%;
    height: 190px;
    margin: 20px auto;
    overflow: hidden;
}

.events-content h4 {
    margin: 20px auto !important;
}

.events-content p{
    text-align: center;
    margin: 2px auto !important;
}

.timeline-image img{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.prev,
.next{
    position: absolute;
    z-index: 6;
}

.next {
    right: 0;
}

.cd-horizontal-timeline {
    opacity: 0;
    margin: 50px auto;
    -webkit-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
    position: relative;
}

.cd-horizontal-timeline ol li {
    list-style: none;
}

.cd-horizontal-timeline::before {
/* never visible - this is used in jQuery to check the current MQ */
    content: 'mobile';
    display: none;
}

.cd-horizontal-timeline.loaded {
    /* show the timeline after events position has been set (using JavaScript) */
    opacity: 1;
}

.cd-horizontal-timeline .timeline {
    position: relative;
    height: 100px;
}

.cd-horizontal-timeline .events-wrapper {
    position: relative;
    height: 100%;
    margin: 0 40px;
    overflow: hidden;
}

.events-wrapper:after, .events-wrapper:before {
    position: absolute;
    content: "";
    width: 40px;
    height: 100%;
    z-index: 3;
}

.events-wrapper:before {
    left: 0; /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(242,242,242,1) 0%,rgba(242,242,242,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: -webkit-gradient(linear, left top, right top, from(rgba(242,242,242,1)),to(rgba(242,242,242,0)));
    background: -o-linear-gradient(left, rgba(242,242,242,1) 0%,rgba(242,242,242,0) 100%);
    background: linear-gradient(to right, rgba(242,242,242,1) 0%,rgba(242,242,242,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */
}

.events-wrapper:after {
    right: 0; /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(242,242,242,0) 0%,rgba(242,242,242,0) 1%,rgba(242,242,242,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: -webkit-gradient(linear, left top, right top, from(rgba(242,242,242,0)),color-stop(1%, rgba(242,242,242,0)),to(rgba(242,242,242,1)));
    background: -o-linear-gradient(left, rgba(242,242,242,0) 0%,rgba(242,242,242,0) 1%,rgba(242,242,242,1) 100%);
    background: linear-gradient(to right, rgba(242,242,242,0) 0%,rgba(242,242,242,0) 1%,rgba(242,242,242,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
}

.cd-horizontal-timeline .events {
    /* this is the grey line/timeline */
    position: absolute;
    z-index: 1;
    left: 0;
    top: 49px;
    height: 2px;
    /* width will be set using JavaScript */
    background: #dfdfdf;
    -webkit-transition: -webkit-transform 0.4s;
    transition: -webkit-transform 0.4s;
    -o-transition: transform 0.4s;
    transition: transform 0.4s;
    transition: transform 0.4s, -webkit-transform 0.4s;
}

.cd-horizontal-timeline .events li a {
    color: #601940;
    font-size: 18px;
    font-family: "RalewayMedium";
}

.cd-horizontal-timeline .filling-line {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #601940;
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.cd-horizontal-timeline .events a {
    position: absolute;
    bottom: 0;
    z-index: 2;
    text-align: center;
    font-size: 1.3rem;
    padding-bottom: 15px;
    color: #383838;
    /* fix bug on Safari - text flickering while timeline translates */
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.cd-horizontal-timeline .events a::after {
    /* this is used to create the event spot */
    content: '';
    position: absolute;
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: -5px;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    border: 2px solid #dfdfdf;
    background-color: #f8f8f8;
    -webkit-transition: background-color 0.3s, border-color 0.3s;
    -o-transition: background-color 0.3s, border-color 0.3s;
    transition: background-color 0.3s, border-color 0.3s;
}

.no-touch .cd-horizontal-timeline .events a:hover::after {
    background-color:#601940;
    border-color: #601940;
}

.cd-horizontal-timeline .events a.selected {
    pointer-events: none;
}

.cd-horizontal-timeline .events a.selected::after {
    background-color:#601940;
    border-color: #601940;
}

.cd-horizontal-timeline .events a.older-event::after {
    border-color: #601940;
}
  
.cd-horizontal-timeline .events-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 400px !important;
    -webkit-transition: height 0.4s;
    -o-transition: height 0.4s;
    transition: height 0.4s;
    text-align: center;
}

.events-content ol {
    padding: 0;
}

.cd-horizontal-timeline .events-content ol li p{
    margin-top: 20px;
}

.cd-horizontal-timeline .events-content li {
    position: absolute;
    z-index: 1;
    width: 100%;
    left: 0;
    top: 0;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    padding: 0 5%;
    opacity: 0;
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}

.cd-horizontal-timeline .events-content li.selected {
    /* visible event content */
    position: relative;
    z-index: 2;
    opacity: 1;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}


.cd-horizontal-timeline .events-content li > * {
    max-width: 800px;
    margin: 0 auto;
}


@-webkit-keyframes cd-enter-right {
0% {
    opacity: 0;
    -webkit-transform: translateX(100%);
}
100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
}
}
@keyframes cd-enter-right {
0% {
    opacity: 0;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
}
100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
    -ms-transform: translateX(0%);
    transform: translateX(0%);
}
}
@-webkit-keyframes cd-enter-left {
0% {
    opacity: 0;
    -webkit-transform: translateX(-100%);
}
100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
}
}
@keyframes cd-enter-left {
0% {
    opacity: 0;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}
100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
    -ms-transform: translateX(0%);
    transform: translateX(0%);
}
}