

/*==========  Stem  ==========*/
.paragraph--type--history {
    margin: 0px auto;
    position: relative;
}
.paragraph--type--history .section-inner,
.paragraph--type--history .post-wrapper {
    *zoom: 1;
}
.paragraph--type--history .section-inner:before,
.paragraph--type--history .post-wrapper:before,
.paragraph--type--history .section-inner:after,
.paragraph--type--history .post-wrapper:after {
    content: "";
    display: table;
}
.paragraph--type--history .section-inner:after,
.paragraph--type--history .post-wrapper:after {
    clear: both;
}
.paragraph--type--history .section .section-inner {
    margin: 0px auto;
    width: 1024px;
}
@media only screen {
    .paragraph--type--history .section .section-inner {
        width: auto;
        max-width: 1024px;
    }
}
.paragraph--type--history .stem-wrapper {
    position: absolute;
    top: 28px;
    bottom: 0px;
    left: 50%;
}
.paragraph--type--history .stem-wrapper.color-yellow .stem-background {
    background: #A49360;
}
.paragraph--type--history .stem-wrapper.color-green .stem-background {
    background: #A49360;
}
.paragraph--type--history .stem-wrapper.color-white .stem-background {
    background: #A49360;
}
.paragraph--type--history .stem-wrapper .stem,
.paragraph--type--history .stem-wrapper .stem-background {
    position: absolute;
    top: 20px;
    left: -14px;
    width: 28px;
}
.paragraph--type--history .stem-wrapper .stem {
    background: #F3F3F3;
    height: 99%;
}
.paragraph--type--history .stem-wrapper .stem-background {
    background: #A49360;
    height: 0%;
    transition-duration: 0.5s;
}
.paragraph--type--history .stem-padding,
.paragraph--type--history .single-stem-icon {
    width: 28px;
    height: 28px;
    margin: 0px auto;
    background: transparent url('../images/stem-mask.png') repeat-y top center;
}
.paragraph--type--history .single-stem-icon.scroll-to-top {
    cursor: pointer;
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/22043/scroll-to-top-icon.png);
}
/*==========  Post wrapper ==========*/
.paragraph--type--history .post-wrapper {
    *zoom: 1;
}
.paragraph--type--history .post-wrapper:before,
.paragraph--type--history .post-wrapper:after {
    content: "";
    display: table;
}
.paragraph--type--history .post-wrapper:after {
    clear: both;
}
.paragraph--type--history .post-wrapper > .field--name-field-paragraph{
    padding-top: 20px;
}
.paragraph--type--history .post-wrapper .field--label{
    display: none;
}
.paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item {
    position: relative;
    width: 50%;
    padding: 0px 0px 60px 0px;
    clear: both;
    opacity: 1;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item.hidden .story-content {
    -webkit-transform: translateY(100px) rotateX(30deg);
    transform: translateY(100px) rotateX(30deg);
    opacity: 0;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item:hover .story-content,
.paragraph--type--history .post-wrapper .paragraph--type--history-item.active .story-content {
    opacity: 1;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item:hover .story-content .date,
.paragraph--type--history .post-wrapper .paragraph--type--history-item.active .story-content .date {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
}
.paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(even) {
    float: right;
    padding-left: 45px;
}
.paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(odd) {
    float: left;
    padding-right: 45px;
}
.paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(even) .stem-overlay {
    left: -14px;
}
.paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(odd) .stem-overlay {
    right: -14px;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay .icon {
    background-image: url('../images/stem-icon.png') !important;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 28px;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay .icon {
    background: transparent no-repeat center center;
    height: 28px;
    width: 28px;
    cursor: pointer;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay .stem-mask {
    position: absolute;
    top: 28px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: transparent url('../images/stem-mask.png') repeat-y top center;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .story-content {
    opacity: 0.3;
    transition-duration: 0.4s;
    -webkit-transform: none;
    transform: none;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .story-content .date {
    color: rgba(50, 50, 50, 0.3);
    margin: 0px 0px 15px 0px;
    letter-spacing: 1px;
    opacity: 0;
    transition-duration: 1s;
    transition-delay: 0.2s;
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .story-content .title {
    font-size: 32px;
    line-height: 42px;
    margin: 0px 0px 15px 0px;
}
/*==========  Media queries  ==========*/
@media only screen and (max-width: 1080px) {
    .paragraph--type--history .post-wrapper .field--item:first-of-type .paragraph--type--history-item .stem-overlay {
        top: 20px;
    }
    .paragraph--type--history .main-content,
    .paragraph--type--history .main-content .section-inner {
        max-width: none;
    }
    .paragraph--type--history .stem-wrapper {
        left: 80px;
    }
    .paragraph--type--history .stem-padding,
    .paragraph--type--history .single-stem-icon {
        margin: 0px;
        float: left;
        margin-left: 50px;
    }
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item,
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(even),
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(odd) {
        width: auto;
        margin-left: 110px;
        float: none;
    }
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item .stem-overlay,
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(even) .stem-overlay,
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(odd) .stem-overlay {
        left: -60px;
        right: auto;
    }
    .paragraph--type--history .post-wrapper .paragraph--type--history-item .story-content {
        padding: 0px 50px;
    }
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n){
        padding-left: 0;
    }
}
@media only screen and (max-width: 700px) {
    .paragraph--type--history .post-wrapper .paragraph--type--history-item {
        margin-left: 90px !important;
    }
    .paragraph--type--history .post-wrapper .paragraph--type--history-item .story-content {
        padding: 0 25px;
    }
    .paragraph--type--history .stem-wrapper {
        left: 60px;
    }
    .paragraph--type--history .stem-padding,
    .paragraph--type--history .single-stem-icon {
        margin-left: 30px;
    }
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item,
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n),
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n+1){
        margin-left: 30px;
    }
}


/* Notre histoire */
@media(min-width: 1501px){
    .page-node-32 .main-container > .container > .row > .col-sm-9{
        width: 83.33333333%;
    }
}
.paragraph--type--history  .field--name-field-text p,
.paragraph--type--history  .field--name-field-text *:not(h2){
    font-weight: 300;
}
.paragraph--type--history .post-wrapper .paragraph--type--history-item .story-content .date{
    opacity: 1;
}
.story-content .image .field{
    position: relative;
}
.story-content .image .field:after{
    content: '';
    background: transparent;
    border: 2px solid #A49360;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 12px;
    left: 12px;
}
.story-content .text{
    padding-right: 0;
}
.story-content .text .date{
    color: #2C364E !important;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0 !important;
}
.field--name-field-paragraph > .field--items > .field--item:nth-of-type(even) .story-content .text .date{
    color: #A49360 !important;
}
.story-content .text .date br{
    display: none;
}
.story-content .text .date span{
    display: block;
    color: #BABABA;
    font-size: 15px;
    line-height: 26px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: -5px;
}
.story-content .text h2{
    font-size: 19px !important;
    line-height: 24px !important;
    color: #4A4A4A;
    font-weight: 500;
}
.story-content .text .entry-content{
    color: #9C9C9C;
    font-size: 16px;
    line-height: 20px;
    font-weight: 300;
}
@media(max-width: 1080px){
    .paragraph--type--history .post-wrapper .paragraph--type--history-item{
        padding: 0 0 60px !important;
    }
    .paragraph--type--history .post-wrapper  > .field--name-field-paragraph > .field--items > .field--item .stem-overlay,
    .paragraph--type--history .post-wrapper  > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n) .stem-overlay,
    .paragraph--type--history .post-wrapper  > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n+1) .stem-overlay{
        left: -44px;
    }
}
@media(max-width: 991px){
    .story-content{
        padding: 0 20px !important;
    }
    .story-content .text .date{
        font-size: 45px;
    }
    .story-content .text .date span{
        font-size: 18px;
        letter-spacing: -0.3px;
    }
}
@media(max-width: 767px) {
    .story-content{
        padding: 0 !important;
    }
    .paragraph--type--history {
        overflow: hidden;
    }

    .paragraph--type--history .stem-wrapper {
        left: 14px;
    }

    .paragraph--type--history .post-wrapper .paragraph--type--history-item {
        margin-left: 0px !important;
    }

    .paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay,
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n) .stem-overlay,
    .paragraph--type--history .post-wrapper > .field--name-field-paragraph > .field--items > .field--item:nth-child(2n+1) .stem-overlay {
        left: 0;
    }

    .paragraph--type--history .post-wrapper .paragraph--type--history-item {
        padding: 0 0 60px 30px !important;
    }

    .story-content .image {
        max-width: 250px;
    }

    .story-content .text {
        padding-top: 30px;
    }
    .paragraph--type--history .stem-wrapper .stem,
    .paragraph--type--history .stem-wrapper .stem-background{
        left: -15px;
        width: 29px;
    }
    .paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay .icon{
        left: -30px;
        position: relative;
    }
    .paragraph--type--history .post-wrapper .paragraph--type--history-item .stem-overlay .stem-mask{
        left: -30px;
        width: 30px;
    }
}
