/*
 Theme Name: Divi MQC
 Description: Divi Child Theme for MQC
 Author: Geneviève Donnet
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
/*#top-header {
	/*border-bottom: 2px solid #1e99d6;*/
    /*border-bottom: 2px solid #e9ecef;
}*/
/*@font-face {
      font-family: 'Museo Sans Rounded 300' !important;
      src: url(assets/MuseoSansRounded300.otf) format('opentype');
    }

    body {
      font-family: 'Museo Sans Rounded 300', sans-serif !important; 
    }

    h2, h3, h4, h5, h6 {
      font-family: 'Museo Sans Rounded 500', sans-serif !important; 
      src: url(assets/MuseoSansRounded500.otf) format('opentype');
    }*/

body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Mulish', sans-serif !important;
}

h1 {
    font-weight: 800 !important;
}

h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
}

body {
    font-weight: 300 !important;
}

h2.entry-title,
h2.woocommerce-loop-product__title {
    font-weight: 600 !important;
    font-size: 1.2em !important;
    line-height: 1.3 !important;
    margin: 0.5em 0 !important;
}

#top-header {
    position: relative;
}

#top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Border thickness */
    background: linear-gradient(
        90deg,
        #EE736F, /* Color 1 */
        #EC615B, /* Color 2 */
        #EA5428, /* Color 3 */
        #F59C54, /* Color 4 */
        #EC9700, /* Color 5 */
        #F9D400, /* Color 6 */
        #887D2C, /* Color 7 */
        #7BA72B, /* Color 8 */
        #83BB26, /* Color 9 */
        #5A7234, /* Color 10 */
        #71C1A9, /* Color 11 */
        #00AEA6, /* Color 12 */
        #71CBF4, /* Color 13 */
        #5B7BBC, /* Color 14 */
        #9E8AC0, /* Color 15 */
        #F6B9D5 /* Color 16 */
    );
}

/*breadcrum trail */
.breadcrumb {
    margin: 0 0 1em;
    padding: 0;
}
.breadcrumb::after,.breadcrumb::before {
    content: " ";
    display: table
}
.breadcrumb::after {
    clear: both
}

/* buttons */
.et_pb_promo_button:hover,
.et_pb_promo_button:focus {
    background-image: linear-gradient(to right top, #71cbf4, #61cae4, #5dc9d2, #64c5bd, #71c1a9) !important;
    color: #fff !important;
    border: none !important;
    transition: background 0.3s;
}

/* divi machine custom loops */
.teaser,
.teaser .et_pb_column,
.teaser .grid-item-cont,
.teaser .et_pb_row {
    padding: 0 !important;
    margin: 0 !important;
}

/*.teaser {
    height: auto !important;
    min-height: 0 !important;
}*/

.teaser .et_pb_row {
    width: 100% !important;
}

/* Make the image container relative so the overlay is positioned over it */
.teaser .et_pb_de_mach_thumbnail {
    position: relative !important;
}

.teaser .et_pb_de_mach_thumbnail a,
.teaser .et_pb_de_mach_thumbnail img {
    margin-bottom: 0 !important;
    display: block;
}

/* Overlay the title at the bottom of the image */
.teaser .et_pb_de_mach_title {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.55) !important;
    text-align: center !important;
    padding: 0.5em 0 !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/*.teaser .et_pb_de_mach_title {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.55); 
    text-align: center;
    padding: 0.5em 0;
    z-index: 2;
    box-sizing: border-box;
}*/

/* Make the card a flex column */
/*.teaser {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding: 0 !important;
}

.teaser .et_pb_row {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.teaser .et_pb_de_mach_title {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-top: auto !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.55) !important;
    text-align: center !important;
    padding: 0.5em 0 !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}*/

.et_overlay {
    display: none !important;
}
/* Ensure the image container hides overflow */
.et_shop_image,
.mec-event-image {
    display: block;
    overflow: hidden;
    position: relative;
}

/* The image itself */
.et_shop_image img,
.mec-event-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 2s cubic-bezier(.19,1,.22,1), box-shadow 0.7s cubic-bezier(.19,1,.22,1);
    will-change: transform;
}

/* On hover, scale up the image and add a subtle shadow */
.et_shop_image:hover img,
.mec-event-image:hover img {
    transform: scale(1.16);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* Divi Machine Custom Loops teaser styles */

/* Horizontal scroll container */
.teaser .filtered-posts-cont .divi-filter-loop-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.teaser .filtered-posts-cont .divi-filter-loop-container::-webkit-scrollbar {
    display: none;
}

/* Each card */
.teaser .grid-item {
    flex: 0 0 320px; /* Adjust width as needed */
    scroll-snap-align: start;
    background: #fff;
    overflow: hidden;
    position: relative;
    display: block;
    height: auto;
    min-height: unset;
    transition: box-shadow 0.3s;
}

.teaser .grid-item,
.teaser .grid-item-cont,
.teaser .image_bg_content {
    margin: 0 !important;
    padding: 0 !important;
}


/* Ensure the image container hides overflow and keeps aspect ratio */
.teaser .image_bg_content {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* Modern browsers */
    overflow: hidden;
    min-height: 180px; /* fallback for aspect-ratio */
    background: #f5f5f5; /* fallback bg */
}

.teaser .image_bg_content .post-content_cont {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    text-align: center;
    padding: 0;
    z-index: 2;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s;
}

/* The image itself */
.teaser .image_bg_content img.teaser-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 2s cubic-bezier(.19,1,.22,1), box-shadow 0.7s cubic-bezier(.19,1,.22,1);
    will-change: transform;
}

/* Subtle zoom effect on hover */
.grid-item:hover .image_bg_content img.teaser-img {
    transform: scale(1.16);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* Overlay title at bottom of image */
.teaser .grid-item .post-content_cont {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    text-align: center;
    padding: 0;
    z-index: 2;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s;
}

/* Make sure .grid-item is position:relative for overlay */
.teaser .grid-item {
    position: relative;
}

/* Modern Events Calendar */

.mec-event-carousel-content-type2 {
    line-height: 1 !important;
}

.mec-event-carousel-content-type2 span.mec-event-date-info,
.mec-event-carousel-content-type2 span.mec-event-title-soldout {
    display: block !important;
    color: #151515 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}



/* DIVI */

/*template de page en pleine largeur*/
.et_right_sidebar #main-content .container:before {
    width:0 !important;
}

/*ne pas afficher la date des pages de type lieu*/
.single-lieu-mqc .post-meta {
    display: none;
}

/* sections */
.section-red {
    background: linear-gradient(45deg, #71cbf4, #83c0fd, #9fb2fe, #bea2f3, #d991dd, #eb81bd, #f37697, #ee736f);
}

.section-bg {
background-image: url('images/shape.png');
  background-size: auto; /* or another suitable size option */
  background-repeat: no-repeat; /* or repeat-x, repeat-y, etc. */
  background-position: left top; /* or another suitable position */
}

/* MEC Modern Events Calendar */

/*.mec-event-carousel-content-type2 span.mec-event-date-info,
.mec-event-carousel-content-type2 span.mec-event-title-soldout {
	display: none;
}*/

.mec-events-template-default .mec-breadcrumbs {
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    color: #000000;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    margin: 0;
    border: 0px;
    box-shadow: none;
  }


  .leaflet-control-attribution.leaflet-control {
    display: none;
}

