/*
 * style copié de https://codyhouse.co/demo/vertical-timeline/index.html
 */

#cd-timeline {
    position: relative;
    padding: 2em;
    margin: 1em 0;
    font-size: 100%;
    color: #7f8c97;
    background-color: #e9f0f5;
}
#cd-timeline::before {
    /* this is the vertical line */
    content: '';
    position: absolute;
    top: 0;
    left: 45px;
    height: 100%;
    width: 4px;
    background: #d7e4ed;
}

@media only screen and (max-width: 768px) {
    #cd-timeline {
        padding: 1em 1em;
        margin: 1em 0;
    }

    #cd-timeline::before {
        /* this is the vertical line */
        left: 32px;
    }
}

@media only screen and (min-width: 1170px) {
    #cd-timeline {
        /* margin-top: 3em; */
        /* margin-bottom: 3em; */
    }
    #cd-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
}

.cd-timeline-block {
    position: relative;
    margin: 0.5em 0;
    min-height: 20px;
}
.cd-timeline-block:after {
    content: "";
    display: table;
    clear: both;
}
.cd-timeline-block:first-child {
    margin-top: 0;
}
.cd-timeline-block:last-child {
    margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
    .cd-timeline-block {
        margin: 1em 0;
    }
    .cd-timeline-block:first-child {
        margin-top: 0;
    }
    .cd-timeline-block:last-child {
        margin-bottom: 0;
    }
}
.cd-timeline-label{
    position: absolute;
    top: -1em;
    left: 0;
    background-color: #e9f0f5;
    width: 40px;
    text-align: center;
    padding: 1px 0 0;
}
.cd-timeline-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: white;
}
.cd-timeline-img.cd-continu {
    background-color: #4285F4;
}
.cd-timeline-img.cd-intermittent {
    background-color: #0d47a1;
}
.cd-timeline-img.cd-relais {
    background-color: #ffbb33;
}
.cd-timeline-img.cd-urgence {
    background-color: #c03b44;
}
.cd-timeline-img.cd-past {
    background-color: #acb7c0;
}
@media only screen and (min-width: 1170px) {
    .cd-timeline-img {
        width: 60px;
        height: 60px;
        line-height: 60px;
        left: 50%;
        font-size: 25px;
        margin-left: -30px;
        /* Force Hardware Acceleration in WebKit */
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
    .cd-timeline-label{
        width: 60px;
        left: 50%;
        margin-left: -30px;
    }
}

.cd-timeline-content {
    position: relative;
    margin-left: 60px;
    background: white;
    border-radius: 0.25em;
    padding: 1em;
    box-shadow: 0 3px 0 #d7e4ed;
}
.cd-timeline-content:after {
    content: "";
    display: table;
    clear: both;
}
.cd-timeline-content h2 {
    margin: 0;
    color: #303e49;
    font-size: 18px;
}
.cd-timeline-content p, .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    font-size: 13px;
}
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    display: inline-block;
}
.cd-timeline-content p {
    margin: 0.7em 0;
    line-height: 1.6;
}
.cd-timeline-content .cd-read-more {
    float: right;
    padding: .6em .8em;
    background: #acb7c0;
    color: white;
    border-radius: 0.25em;
    /*position: absolute;
    right: 5px;
    bottom: 5px;*/
}
.no-touch .cd-timeline-content .cd-read-more:hover {
    background-color: #bac4cb;
}
.cd-timeline-content .cd-date {
    float: left;
    opacity: .7;
}
.cd-timeline-content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid white;
}
@media only screen and (min-width: 768px) {
    .cd-timeline-content h2 {
        font-size: 18px;
    }
    .cd-timeline-content p {
        font-size: 14px;
    }
    .cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
        font-size: 14px;
    }
}
@media only screen and (min-width: 1170px) {
    .cd-timeline-content {
        margin-left: 0;
        padding: 1.6em;
        width: 45%;
    }
    .cd-timeline-content::before {
        top: 24px;
        left: 100%;
        border-color: transparent;
        border-left-color: white;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content {
        float: right;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
        top: 24px;
        left: auto;
        right: 100%;
        border-color: transparent;
        border-right-color: white;
    }
}

