/*  Theme Name:   Thème Le Carnet
Theme URI:    https://lecarnet.net
Description:  Blog d'une rédactrice web curieuse
Author:       Anne Thybert  
Author URI:   https://lecarnet.net
Template:     blocksy  
Version:      0.6.9*/

/*heros home*/
body li a,
body p a {
  color: #473060;
}
body li a:hover,
body p a:hover {
  color: #473060;
}
.home .elementor .e-grid-base {
  grid-template-rows: repeat(1, 1fr);
}
#youtube {background-color: #d1ae7e;}
.bg-1 {background-color: #f9f0e7;}
.les-themes {
  background-color: #FAF4E8;
}
#testimonial-form button {
  background-color: rosybrown;
  border-radius: 4px;
  padding: 10px 15px;
  display: block;
  margin: 0 auto;
  color: #ffffff;
  font-weight: bold;
}
#testimonial-form .testimonial-form .cpatchadiv {
  margin: 0 auto;
}
body .style1 div.childDiv_style1 div.bxsliderx.rowcust div div.rowupdate .setmargin .open_close {
  padding: 0 5%;
}
.style1 div.childDiv_style1 div.bxsliderx.rowcust div div.rowupdate.margin_Quotes div.colupdate-sm-12.setmargin .floatLeft, 
.setfloat {
  display: none;
}
.style1 div.childDiv_style1 div.bxsliderx.rowcust div div.rowupdate .setmargin .open_close {
  margin: 0 auto;
}

[data-footer*="type-1"] footer#footer.ct-container {
  --footer-container-padding: 60px 20px 60px;
  --footer-container-bottom-offset: 0;
}

.home [data-vertical-spacing*="top"],
.home .e-con > .e-con-inner,
[data-vertical-spacing*="top"].ct-container-full,
.e-con > .e-con-inner {
  padding-top: 0;
}
.e-con.e-flex > .e-con-inner {
  padding-block-start: 0;
}

.home [data-vertical-spacing*="bottom"],
.home .e-con > .e-con-inner,
[data-vertical-spacing*="bottom"].ct-container-full {
  padding-bottom: 0;
}

#contact .wp-block-buttons > .wp-block-button {
  display: block;
  margin: 0 auto;
  align-content: center;
  max-width: fit-content;
  border-radius: 10px;
}
#contact .wp-block-buttons > .wp-block-button,
#contact .wp-element-button, .wp-block-button__link,
.wp-block-button.purple a {
 background-color: rosybrown;
  color: #ffffff;
}
#contact .wp-block-buttons > .wp-block-button:hover,
#contact .wp-element-button:hover,
 .wp-block-button a:hover,
 .mybutton:hover, 
 .mybutton.elementor-button:hover,
 #testimonial-form button:hover {
  text-decoration: underline;
}

/* Images des articles de la page Les coulisses */
.category-les-coulisses.entry-card .ct-media-container.boundless-image {
    display: block;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
}

.category-les-coulisses.entry-card .ct-media-container.boundless-image img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 900px) {
  .home-hero .wp-block-columns .wp-block-column {
    flex-basis: 100% !important;
  }
  h1, h2, h3, p {
    text-align: center !important;
  }
  h1 {
    font-size: 38px;
  }
  h3 {
    font-size: 20px;
  }
  p {
    font-size: 16px;
  }

}
@media (max-width: 600px) {
  .wp-block-media-text:not(.has-background) .wp-block-media-text__content {
    padding-inline: 20px !important;
  }
  [data-footer*="type-1"] [data-id="socials"].ct-footer-socials [data-color="custom"] {
     justify-content: center;
  }
  .no-mobile {display: none;}
}

/*cta*/
.mybutton,
.mybutton.elementor-button,
.cta {
  background-color: #473060;
}
.mybutton:hover,
.mybutton.elementor-button:hover,
.cta:hover {
  background-color: #473060;
}

/*titres de section*/

.section-title {
  text-align: center;
  position: relative;
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
  margin-top: 20px;
  color: #292828;
}
section.latest-posts {
  padding-bottom: 50px;
}
.latest-posts .entry-card,
.entry-card {
  height: 510px;
  position: relative;
  overflow: hidden;
     display: flex;
    flex-direction: column;
}
.latest-posts .entry-card img,
.entry-card img,
body .entry-card .boundless-image img {
  margin: auto auto;
  display: block;
  height: auto;
  width: 100%;
}
@media (max-width: 1100px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

.latest-posts .entry-card::after,
.entry-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.35) 50%,
        rgba(255,255,255,.8) 10%,
        #fff 100%
    );
}
.latest-posts h3,
.card-content h2 {
  font-size: 22px;
  line-height: 1.2;
}
.card-content h2.entry-title {
  font-size: 28px;
}
.latest-posts p.post-date,
.card-content .post-date,
.card-content .entry-meta .meta-date {
  font-size: 12px;
  position: absolute;
  bottom: 0;
  left: auto;
  z-index: 1;
}
.card-content .entry-meta .meta-date {
  bottom: 15px;
}
h3 a {color: #292828;}
.section-title::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-image: url("assets/images/trait-crayon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/*derniers articles sur la home*/
.home .card-content,
.card-content {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 0;
}
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.latest-posts .elementor-button {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 195px;
}

/* footer */
[data-footer*="type-1"] .ct-footer [data-row*="middle"] > div {
    padding: 50px 0 0;
}
/*page autrice*/


@media (max-width: 1100px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

.home .entry-card li,
.entry-card li {
  list-style-type: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.home .entry-card ul,
.entry-card ul {
  padding-left: 0;
  padding-top: 15px;
}
