/*
 * style copié de https://codyhouse.co/demo/vertical-timeline/index.html
 */

#cd-timeline {
    position: relative;
    padding: 1em 2em 0.5em 2em;
    font-size: 100%;
    background-color: rgba(0, 0, 0, 0.06);
    max-width: 768 px;
}
#cd-timeline::before {
    /* this is the vertical line */
    content: '';
    position: absolute;
    top: 0.9em;
    left: 46px;
    height: calc(100% - 1.5em);
    width: 2px;
    background: #8fb7d4;
    border: 2px solid #8fb7d4;
}

#cd-timeline::after {
    /* bottom of the vertical line */
    content: '';
    position: absolute;
    bottom: 0.5em;
    left: 28px;
    height: 4px;
    width: 40px;
    background: #8fb7d4;
}

@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;
    }

    #cd-timeline::after {
        /* this is the vertical line */
        left: 15px;
    }
}

.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;
}

.cd-timeline-label{
    position: absolute;
    top: -1em;
    left: 0;
    background-color: #f0f0f0;
    color: #7f8c97;
    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 i{
    line-height: 40px;
}

.cd-timeline-content {
    position: relative;
    margin-left: 60px;
    background: white;
    border-radius: 0.25em;
    padding: 1em;
    box-shadow: 0 3px 0 #dedcdc;
}
.cd-timeline-content:after {
    content: "";
    display: table;
    clear: both;
}
.cd-timeline-content h2 {
    margin: 0;
    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: .3em .7em;
    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;
    }
}

