/*
 Theme Name:     Carrefour-Rue et Coulou
 Theme URI:      https://carrefour-rue.ch
 Description:    Divi Child Theme for Carrefour-Rue et Coulou
 Author:         David Alberola
 Author URI:     https://alberola.ch
 Template:       Divi
 Text Domain:    divi-crc
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */

/* Styles */

/*
 Theme Name:     Carrefour-Rue et Coulou
 Theme URI:      https://carrefour-rue.ch
 Description:    Divi Child Theme for Carrefour-Rue et Coulou
 Author:         David Alberola
 Author URI:     https://alberola.ch
 Template:       Divi
 Text Domain:    divi-crc
 Version:        1.1.0
*/


/* =Theme customization starts here
------------------------------------------------------- */

/* Styles */

/* Large screens (1405px upwards) */
@media only screen and (min-width: 1405px) {
    /* your css goes here */
}

/* Laptops and desktops (1100-1405px) */
@media only screen and (min-width: 1100px) and (max-width: 1405px) {
    /* your css goes here */
}

/* Tablets in landscape mode (981-1100px) */
@media only screen and (min-width: 981px) and (max-width: 1100px) {
    /* your css goes here */
}

/* Tablets in portrait mode (768-980px) */
@media only screen and (min-width: 768px) and (max-width: 980px) {
    /* your css goes here */
}

/* Smartphones in landscape mode (480-768px) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    /* your css goes here */
}

/* Smartphones in portrait mode (0-479px) */
@media only screen and (max-width: 479px) {
    /* your css goes here */
}

.event-front-card {
    display: flex;
    justify-content: space-between;
    height: 140px;
    overflow: hidden;
    margin: 5px auto;
    padding: 0;
    border-radius: 50px 5px 5px 5px;
    background-color: #f9f9f9;
    opacity: 0.8;
}

/* Smartphones in portrait mode (0-479px) */
@media only screen and (max-width: 479px) {
    .event-front-card {
        max-height: 70px;
        margin: 0;
    }
}

.event-front-card:hover {
    opacity: 1;
}

.event-front-card-date {
    width: 50px;
    height: 50px;
    line-height: 0.9;
    font-size: 1.5em;
    font-weight: 700;
    color: #d88532;
    padding: 5px 5px;
    margin: 10px;
    border-radius: 50px;
    background-color: #ebebeb;
}

.event-front-card-title {
    align-self: start;
    padding: 5px 10px;
    flex: 1;
    word-wrap: break-word;
}

@media only screen and (max-width: 479px) {
    .event-front-card-title {
        margin: 0;
        padding: 0;
    }
}

.event-front-card-title a {
    line-height: 1em;
    font-size: 1.1em;
    font-weight: 600;
    color: #a52c3c;
}

/* Smartphones in portrait mode (0-479px) */
@media only screen and (max-width: 479px) {
    .event-front-card-title a {
        font-size: 0.9em;
        font-weight: 400;
        line-height: 0.9em;
    }
}

.event-front-card-image {
    width: 35%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    align-self: auto;
}

@media only screen and (min-width: 576px) {

    .event-front-card-image {
        width: 220px;
    }
}

.event-card {
    display: flex;
    justify-content: space-between;
    height: 140px;
    overflow: hidden;
    margin: 5px auto;
    padding: 0;
    border-radius: 50px 5px 5px 5px;
    background-color: #f9f9f9;
    opacity: 0.8;

}

/* Smartphones in portrait mode (0-479px) */
@media only screen and (max-width: 479px) {
    .event-card {
        height: 85px;
    }
}

.event-card:hover {
    opacity: 1;
}

.event-card-date {
    width: 50px;
    height: 50px;
    line-height: 0.9;
    font-size: 1.5em;
    font-weight: 700;
    color: #d88532;
    padding: 5px 5px;
    margin: 10px;
    border-radius: 50px;
    background-color: #ebebeb;
}

.event-card-title {
    align-self: start;
    padding: 10px 15px 10px 15px;
    flex: 1;
}

.event-card-title a {
    font-size: 1em;
    font-weight: 600;
    color: #a52c3c;
}

/* Large screens (1405px upwards) */
@media only screen and (min-width: 981px) and (max-width: 1405px) {
    .event-card-title {
        font-size: 1.25em;
    }
}

/* Large screens (1405px upwards) */
@media only screen and (min-width: 1406px) {
    .event-card-title {
        font-size: 1.25em;
        word-wrap: break-word;
    }
}

.event-card-image {
    max-width: 220px;
    margin: 0;
    padding: 0;
    align-self: end;
}

/* Smartphones in portrait mode (0-479px) */
@media only screen and (max-width: 479px) {
    .event-card-image img {
        width: 100px;
    }
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-in {
    -webkit-animation: fade-in 0.8s ease-in-out both;
    animation: fade-in 0.8s ease-in-out both;
}

@-webkit-keyframes shadow-drop-center {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.25);
    }
}

@keyframes shadow-drop-center {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.25);
    }
}

.shadow-drop-center {
    -webkit-animation: shadow-drop-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: shadow-drop-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes scale-in-center {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scale-in-center {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

.scale-in-center {
    -webkit-animation: scale-in-center 0.5s ease-in both;
    animation: scale-in-center 0.5s ease-in both;
}

/** Side bar search form */
#searchsubmit {
    width: auto !important;
}

/** Widgets */

.widget-title {
    font-weight: 700;
}

#footer-widgets .footer-widget li:before {
    border: none;
}

.timeline-button {
    border-radius: 50%;
    background: #d88532 !important;
    border: none !important;
    ;
    cursor: pointer !important;
    ;
    outline: none !important;
    ;
}

/* ICONES ACTIONS */

.icone-actus:hover,
.icone-contact:hover {
    color: #000000;
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline {
    white-space: nowrap;
    /* overflow-x: hidden; */
}

.timeline ol {
    font-size: 0;
    width: 100vw;
    padding: 300px 0px;
    transition: all 1s;
}

.timeline ol li {
    position: relative;
    display: inline-block;
    list-style-type: none;
    width: 160px;
    height: 3px;
}

.timeline ol li:last-child {
    width: 280px;
}

.timeline ol li:not(:first-child) {
    margin-left: 14px;
    background: #ffffff;
}

.timeline ol li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 1px);
    bottom: 0;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #3c6c43;
}

.timeline ol li div {
    position: absolute;
    left: calc(100% + 7px);
    width: 280px;
    padding: 15px;
    font-size: 1rem;
    white-space: normal;
    color: #000000;
    background: #ffffff;
}

.timeline ol li div::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline ol li:nth-child(odd) div {
    top: -16px;
    transform: translateY(-100%);
}

.timeline ol li:nth-child(odd) div::before {
    top: 100%;
    border-width: 8px 8px 0 0;
    border-color: white transparent transparent transparent;
}

.timeline ol li:nth-child(even) div {
    top: calc(100% + 16px);
}

.timeline ol li:nth-child(even) div::before {
    top: -8px;
    border-width: 8px 0 0 8px;
    border-color: transparent transparent transparent white;
}

.timeline time {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #a52c3c;
}

/* TIMELINE ARROWS
  –––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline .arrows {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.timeline .arrows .arrow__prev {
    margin-right: 25px;
}

.timeline .disabled {
    opacity: .5;
}

.timeline .arrows img {
    width: 45px;
    height: 45px;
}

/* GENERAL MEDIA QUERIES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 479px) {

    .timeline ol,
    .timeline ol li {
        width: auto;
    }

    .timeline ol {
        padding: 0;
        transform: none !important;
    }

    .timeline ol li {
        display: block;
        height: auto;
        background: #d88532;
    }

    .timeline ol li:first-child {
        margin-top: 25px;
    }

    .timeline ol li:not(:first-child) {
        margin-left: auto;
        background: #d88532;
    }

    .timeline ol li div {
        position: static;
        width: 80%;
        height: auto !important;
        margin: 0 auto 25px;
    }

    .timeline ol li:nth-child(odd) div {
        transform: none;
    }

    .timeline ol li:nth-child(odd) div::before,
    .timeline ol li:nth-child(even) div::before {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border: none;
        border-left: 1px solid #ffffff;
        height: 25px;
    }

    .timeline ol li:last-child,
    .timeline ol li:nth-last-child(2) div::before,
    .timeline ol li:not(:last-child)::after,
    .timeline .arrows {
        display: none;
    }
}


.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0.95;
}

.timeline-content:hover {
    opacity: 1;
}

.timeline-space {
    height: 100%;
    font-size: 0.95em;
}

.timeline-post-link {
    display: block;
}


/*----------------------------------------------------*/
/*---------------------  Menu  -----------------------*/
/*----------------------------------------------------*/

/*--------------- Mobile  ----------------*/
/*
For nested element
get info at https://www.creativechildthemes.com/10-useful-code-snippets-for-your-divi-menu-mobile/
with css cleanup and scss conversion. jquery in funtion.php
*/

/* Additional Responsive Styles for Tablets (up to 980px) */
@media screen and (max-width: 980px) {

    /*change burger menu when menu open*/
    .mobile_nav.opened .mobile_menu_bar::before {
        content: '\4d';
    }

    #main-header #mobile_menu.et_mobile_menu .menu-item-has-children {
        position: relative;
    }

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.03);
        z-index: 1;
        width: 36px;
        height: 36px;
        line-height: 36px;
        border-radius: 50%;
        top: 6px;
        right: 10px;
        cursor: pointer;
        text-align: center;
    }

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle::before {
        font-family: "ETmodules" !important;
        line-height: 36px;
        font-size: 24px;
        content: '\33';
    }

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle~ul.sub-menu {
        display: none !important;
        padding-left: 0;
    }

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped::before {
        content: '\32';
    }

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped~ul.sub-menu {
        display: block !important;
    }

    #main-header #mobile_menu.et_mobile_menu .menu-item-has-children>a {
        background-color: transparent;
        font-weight: inherit;
    }

    #main-header #mobile_menu.et_mobile_menu li.current-menu-item>a {
        font-weight: bolder;
    }
}

/*---------------  Mobile fixed header --------------- */
@media (max-width: 980px) {

    .et_non_fixed_nav.et_transparent_nav #main-header,
    .et_non_fixed_nav.et_transparent_nav #top-header,
    .et_fixed_nav #main-header,
    .et_fixed_nav #top-header {
        position: fixed;
    }

    /*--------------- Custom Order mobile + fixed mobile ----------------*/
    .row-portrait {
        display: flex;
        flex-wrap: wrap;
    }

    .row-portrait__image {
        order: 2;
        margin-top: 40px;
    }

    .row-portrait__text {
        order: 1;
    }

    .row-podcast {
        display: flex;
        flex-wrap: wrap;
    }

    .row-podcast__image {
        order: 1;
        margin-top: 40px;
    }

    .row-podcast__title {
        order: 2;
    }

    .row-podcast__text {
        order: 3;
    }
}

#top-menu .sub-menu li a {
    margin: 0;
    padding: 5px 0;
    font-size: 1em;
}

.nav li ul li {
    padding: 0;
}

/* Personnalisation du outton Newsletter */

.newsletter_form {
    border-radius: 25px;
    font-weight: bold;
}

.icon_link_alt:before {
    font-family: 'ETModules';
    content: "\e02b";
}

/* .page-template-presse {
    background: hsl(351, 14%, 82%);
} */

/* .card-fill {
    flex: 1 1 auto;
} */

/* Remove sidebar */
.single-presse #sidebar {
    display: none;
}

/* Remove thin line */
.single-presse #main-content .container:before {
    background: none;
}

/* Make content 100% width */
@media (min-width: 981px) {
    .single-presse #page-container #left-area {
        width: 100%;
        padding-right: 0px !important;
    }
}

.press-description {
    font-size: 1.5em;
}

