/* BLOG SHORTCODE */
.blog-posts {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.archive .container,
.category .container {
  margin-top: 100px !important;
}
.archive,
.category,
.archive #page-container,
.category #page-container {
  overflow-x: hidden !important;
}
.blog-post {
  position: relative;
  width: 48%;
  height: 370px;
  max-height: 370px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease-in-out;
}

.blog-post:hover {
  transform: scale(1.05);
}

/* Lien sur toute la carte */
.full-link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Fond sombre dégradé */
.blog-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 40px 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
  color: white;
  z-index: 3;
  display: flex;
  text-align: left;
  height: 100%;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.blog-overlay h3 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: white;
}

.blog-overlay p {
  font-size: 16px;
  font-weight: lighter;
}

.header-row .col-text,
.offer-row .col-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
#custom-header #mobile_menu2 .openSubmenu .sub-menu {
  display: block !important;
  opacity: 1 !important;
  max-height: 500px !important;
}
.only-text a:not(.sub-menu a) {
  user-select: none !important;
  pointer-events: none !important;
}

#mobile_menu2 li.menu-item-has-children.openSubmenu > a::after {
  content: " ▼" !important;
}

/* ================================
   BLOG — Grille principale
================================ */

.blog-grid-container {
  padding: 40px 20px;
}

.custom-blog-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 60px 40px;
}

/* ================================
   Articles du blog
================================ */
.blog-post-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.blog-post-card {
  flex: 1 1 calc(33.333% - 40px);
}
@media (max-width: 768px) {
  .blog-post-card {
    flex: 1 1 100%;
  }
}

.blog-post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.post-thumb img,
.blog-post-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  height: 270px;
  max-height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 15px;
}

.post-content .blog-title,
.post-content .blog-title a {
  color: #007e83;
  font-weight: bold;
  font-size: 26px;
  line-height: 32px;
  margin-top: 10px;
  padding-bottom: 10px !important;
}

.post-date {
  font-size: 18px;
  color: #e93593;
}
.post-meta-line {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 10px;
}

.separator {
  margin: 0 6px;
  color: #e95e82;
}

.have-splash {
  position: relative;
}
.have-splash::before {
  content: "";
  position: absolute;
  bottom: -190px;
  right: -190px;
  width: 250px;
  height: 500px;
  background: url(https://www.albus.fr/app/uploads/2025/08/splash_icon.svg)
    no-repeat center center;
  background-size: cover;
  z-index: 9;
}

.post-reading-time {
  display: inline-flex;
  align-items: flex-end;
  color: #727171;
  line-height: 0.9;
  margin-left: 20px;
}

.post-reading-time .icon-clock {
  display: inline-block;
  margin-right: 6px;
  height: 14px;
  width: 14px;
  stroke: currentColor;
  vertical-align: middle;
}
.blog-post-card .post-category,
.blog-post-card .post-category a {
  color: #e93593;
  font-size: 18px;
}
.blog-category-filter {
  display: flex;
  gap: 80px;
  padding: 5px;
  background: #fff;
  border-radius: 40px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog-category-filter a {
  padding: 10px 18px;
  padding-bottom: 10px !important;
  border-radius: 0px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  font-size: 18px;
  text-transform: uppercase;
  color: #007e83 !important;
}
.blog-category-filter a:hover {
  color: #e0718f;
}

.blog-category-filter a.active {
  color: #e0718f;
}

/* First category have #E0718F border */
.blog-category-filter a:nth-child(2) {
  border-bottom: 5px solid #e0718f;
}
/* Second */
.blog-category-filter a:nth-child(3) {
  border-bottom: 5px solid #f7dc73;
}
/* Third */
.blog-category-filter a:nth-child(4) {
  border-bottom: 5px solid #8a62c3;
}
/* Fourth */
.blog-category-filter a:nth-child(5) {
  border-bottom: 5px solid #4ab5b7;
}
/* Fifth */
.blog-category-filter a:nth-child(6) {
  border-bottom: 5px solid #383eab;
}
.blog-category-filter a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-category-filter a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  z-index: -1;
}

.blog-category-filter a:hover {
  color: #fff !important; /* texte blanc au hover */
}

.blog-category-filter a:hover::before {
  transform: scaleY(1);
}

/* Chaque lien hérite de sa couleur pour le fond au hover */
.blog-category-filter a:nth-child(2)::before {
  background-color: #e0718f;
}
.blog-category-filter a:nth-child(3)::before {
  background-color: #f7dc73;
}
.blog-category-filter a:nth-child(4)::before {
  background-color: #8a62c3;
}
.blog-category-filter a:nth-child(5)::before {
  background-color: #4ab5b7;
}
.blog-category-filter a:nth-child(6)::before {
  background-color: #383eab;
}

/* S'assurer que le texte reste au-dessus du ::before */
.blog-category-filter a span,
.blog-category-filter a {
  position: relative;
  z-index: 1;
}

.featured-article {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 70px;
  margin-bottom: 40px;
  border: 2px solid #cb648f;
  border-radius: 50px;
}

.featured-article-thumb {
  flex: 0 0 550px;
  max-width: 550px;
  border-radius: 0px;
  overflow: hidden;
}

.featured-article-thumb img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 46px 0px 0px 46px;
}

.featured-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  margin-right: 100px !important;
}

.featured-date {
  color: #0d3a3a;
  font-weight: bold;
  font-size: 22px;
  display: block;
  margin-bottom: 15px;
}

.featured-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0 0 10px;
  line-height: 1.3;
}

.featured-title a {
  color: #007e83;
  font-size: 35px !important;
  line-height: 43px;
  font-weight: bold;
  margin: 0 0 10px;
}

.featured-title a:hover,
.blog-title a:hover {
  color: #e0718f;
}

.featured-excerpt {
  font-size: 18px;
  color: #0d3a3a;
  line-height: 32px;
  font-weight: 400;
}

.blog-pagination {
  text-align: center;
  margin: 40px 0;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 12px 2px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}
.next,
.prev {
  color: #cb648f !important;
  padding: 3px 35px !important;
  border-radius: 30px !important;
  background: white !important;
  font-weight: 300;
  font-size: 16px;
  box-shadow: 1px 2px 8px -1px rgba(0, 0, 0, 0.15);
  border: 2px solid #cb648f;
}
.prev {
  margin-right: 30px !important;
}
.next {
  margin-left: 30px !important;
}
#main-blog {
  overflow: hidden !important;
}
.featured-category {
  margin: 10px 0;
}
.featured-category a {
  background: #e0718f;
  color: white;
  font-weight: bold;
  border: 2px solid transparent;
  padding: 6px;
  margin-right: 10px;
  text-transform: uppercase;
}
.featured-category a:hover {
  background: transparent;
  color: #e0718f;
  border: 2px solid #e0718f;
  transition: all 0.3s ease-in-out;
}
.blog-pagination .current {
  font-weight: bold;
  color: #e93593;
}

.blog-pagination .page-numbers:hover {
  border-color: #e93593;
  color: #e93593;
}
#preview-three-posts 

/* ================================
   Blocs publicitaires (HubSpot)
================================ */

.hubspot-ad-block {
  background: #f3f3ff;
  padding: 0px;
  border-radius: 24px;
  text-align: center;
  height: 270px;
  max-height: 270px;
  position: relative;
}
.custom-blog-grid > div.hubspot-ad-block.ad-span-2:first-of-type::before {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -230px;
  width: 100%;
  height: 80px;
  background: url(https://www.albus.fr/app/uploads/2025/08/stripes_waves.svg)
    no-repeat center center;
  background-size: contain;
  z-index: 9;
}
.custom-blog-grid > div.hubspot-ad-block.ad-span-2:last-of-type::before {
  content: "";
  position: absolute;
  bottom: 230px;
  left: -550px;
  width: 100%;
  height: 80px;
  background: url(https://www.albus.fr/app/uploads/2025/08/stripes_waves.svg)
    no-repeat center center;
  background-size: contain;
  z-index: -1;
  transform: scaleX(-1) scaleY(-1);
}

.hubspot-ad-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 24px;
}

.hubspot-ad-block.ad-span-1 {
  grid-column: span 1;
}

.hubspot-ad-block.ad-span-2 {
  grid-column: span 2;
  background: transparent;
  height: 250px;
  position: relative;
}
.hubspot-ad-block.ad-span-2 img {
  max-height: 250px;
  object-fit: cover;
}
/* Desktop : bouton masqué */
.category-toggle {
  display: none;
}
.ad-span-2 .mobile-panel {
  display: none !important;
}

.archive .custom-blog-grid {
  margin-bottom: 70px !important;
}
.archive:has(.blog-pagination) .custom-blog-grid {
  margin-bottom: 0px !important;
}

#main-blog::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 400px;
  height: 500px;
  background: url(https://www.albus.fr/app/uploads/2025/08/splash-yellow.svg)
    no-repeat center center;
  background-size: cover;
  z-index: 1;
}
/* ================================
   Responsive — Breakpoints
================================ */

/* Téléphones portrait (<480px) */
@media screen and (max-width: 479px) {
  .pc-ads {
    display: none !important;
  }
  .mobile-panel {
    display: block !important;
  }
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hubspot-ad-block.ad-span-2 {
    grid-column: span 1;
  }
  .post-content {
    padding: 15px 0px;
    padding-bottom: 0px !important;
  }
  .post-meta-line {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .post-reading-time {
    margin-left: 15px !important;
    margin-top: 6px !important;
  }

  .featured-article-thumb,
  .featured-article-content {
    max-width: 100%;
    flex: 1 1 100%;
  }
  #custom-header-featured {
    width: 100% !important;
    max-width: 100% !important;
  }
  .featured-article-thumb img,
  .featured-article-thumb {
    border-radius: 46px 46px 0px 0px !important;
  }
  .featured-article-content {
    padding: 20px 30px !important;
    padding-top: 0px !important;
    margin: 0px !important;
  }
  .featured-article {
    flex-direction: column;
    gap: 20px;
  }
  .featured-article-thumb img {
    height: auto !important;
  }
  .featured-article-thumb,
  .featured-article-content {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .featured-excerpt,
  .featured-date {
    font-size: 15px;
  }
  .featured-title a {
    font-size: 25px !important;
  }
  .featured-category {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .featured-category a {
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
  }
  .hubspot-ad-block img {
    object-fit: contain !important;
    margin-bottom: 0px;
  }
  .hubspot-ad-block.ad-span-2 img {
    border-radius: 24px !important;
  }
  .hubspot-ad-block {
    height: 100% !important;
  }

  .blog-category-filter {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    display: flex;
    padding: 0px;
    background: #fff;
    border-radius: 40px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    box-shadow: 2px 2px 8px -1px rgba(0, 0, 0, 0.1);
  }

  .category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px !important;
    background: white;
    border: 2px solid #cb648f;
    border-radius: 40px;
    color: black;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }

  .chevron-circle {
    width: 24px;
    height: 24px;
    background-color: #ff8d6710; /* cercle léger orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chevron-icon {
    stroke: #cb648f;
    transition: transform 0.3s ease;
  }

  .blog-category-filter.open .chevron-icon {
    transform: rotate(180deg);
  }

  .blog-category-filter a {
    color: #a7a7a7;
    border: 1px solid transparent;
    font-size: 16px !important;
    padding: 10px 50px !important;
  }

  .blog-category-filter.open a {
    display: block;
  }
  .blog-category-filter.open::after {
    transform: translateY(-210px) rotate(180deg);
  }
  .blog-category-filter a {
    display: none;
    background-color: white;
    border-top: none;
    border-radius: 0;
  }

  .blog-category-filter.open a {
    display: block;
    padding: 10px 50px !important;
    background: transparent !important;
    padding-left: 20px !important;
    border: unset !important;
  }
  .hubspot-ad-block.ad-span-2 {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    position: relative;
    left: 0px !important;
    margin-bottom: 15px !important;
  }
  .mobile-panel {
    display: block !important;
    width: 100%;
    position: relative;
    height: auto !important;
  }
  .mobile-panel img {
    object-fit: fill !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0px !important;
  }
  .blog-posts {
    flex-direction: column !important;
  }
  .blog-post {
    width: 100% !important;
  }

  /* First child blog-post margin */
  .blog-post:first-child {
    margin-bottom: 40px !important;
  }
  .blog-overlay {
    padding: 40px 30px !important;
  }
  .blog-post-card .post-category,
  .blog-post-card .post-category a,
  .post-date {
    font-size: 12px !important;
  }

  .custom-blog-grid > div.hubspot-ad-block.ad-span-2::before {
    content: unset;
    display: none !important;
  }
  #main-blog::before {
    display: none !important;
    content: unset !important;
  }
  .post-content .blog-title,
  .post-content .blog-title a {
    font-size: 20px !important;
  }
  /* .prev,
  .next {
    display: none !important;
  } */
  #main-blog {
    overflow-y: hidden !important;
    background-position: center top -20px !important;
  }
  .blog-pagination .page-numbers {
    font-size: 14px !important;
  }
  .blog-pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  .prev {
    margin-right: 10px !important;
  }
  .next {
    margin-left: 10px !important;
  }
  .next,
  .prev {
    padding: 5px 15px !important;
  }
 .blog-category-filter a.active {
  color: black !important;
}
.ad-span-2 .mobile-panel {
  display: block !important;
}
}
@media (max-width: 370px) {
  .dots {
    display: none !important;
  }
}

/* Téléphones paysage (480px–767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  #main-blog {
    overflow-y: hidden !important;
    background-position: center top -30px !important;
  }
  .hubspot-ad-block.ad-span-2 {
    grid-column: span 1;
  }
  .post-content {
    padding: 15px 0px;
    padding-bottom: 0px !important;
  }
  .post-meta-line {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .post-reading-time {
    margin-left: 15px !important;
    margin-top: 6px !important;
  }
  #custom-header-featured {
    width: 100% !important;
    max-width: 100% !important;
  }
  .featured-article-thumb img,
  .featured-article-thumb {
    border-radius: 46px 46px 0px 0px !important;
  }
  .featured-article-content {
    padding: 20px 30px !important;
    margin: 0px !important;
  }
  .featured-article {
    flex-direction: column;
    gap: 20px;
  }
  .featured-article-thumb img {
    height: auto !important;
  }

  .featured-article-thumb,
  .featured-article-content {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .featured-excerpt,
  .featured-date {
    font-size: 15px;
  }
  .featured-title a {
    font-size: 20px;
  }
  .hubspot-ad-block img {
    object-fit: contain !important;
    margin-bottom: 0px;
  }
  .hubspot-ad-block {
    height: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  .blog-category-filter {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    display: flex;
    padding: 0px;
    background: #fff;
    border-radius: 40px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    box-shadow: 2px 2px 8px -1px rgba(0, 0, 0, 0.1);
  }

  .category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px !important;
    background: white;
    border: 2px solid #cb648f;
    border-radius: 40px;
    color: black;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }

  .chevron-circle {
    width: 24px;
    height: 24px;
    background-color: #ff8d6710; /* cercle léger orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chevron-icon {
    stroke: #cb648f;
    transition: transform 0.3s ease;
  }

  .blog-category-filter a {
    color: #a7a7a7;
    border: 1px solid transparent;
    font-size: 16px !important;
    padding: 10px 50px !important;
  }

  .blog-category-filter.open a {
    display: block;
  }
  .blog-category-filter.open::after {
    transform: translateY(-210px) rotate(180deg);
  }
  .blog-category-filter a {
    display: none;
    background-color: white;
    border-top: none;
    border-radius: 0;
  }

  .blog-category-filter.open a {
    display: block;
    padding: 10px 50px !important;
    background: transparent !important;
    padding-left: 20px !important;
    border: unset !important;
  }
  .pc-ads {
    display: none !important;
  }
  .mobile-panel {
    display: block !important;
    width: 100%;
    position: relative;
    height: auto !important;
  }
  .mobile-panel img {
    object-fit: fill !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 24px !important;
  }
  .blog-posts {
    flex-direction: column !important;
  }
  .blog-post {
    width: 100% !important;
  }

  /* First child blog-post margin */
  .blog-post:first-child {
    margin-bottom: 40px !important;
  }
  .blog-overlay {
    padding: 40px 30px !important;
  }
  .custom-blog-grid > div.hubspot-ad-block.ad-span-2::before {
    content: unset;
    display: none !important;
  }
  #main-blog::before {
    bottom: -160px !important;
    left: -200px !important;
  }
  #main-blog {
    overflow-y: hidden !important;
  }
  .custom-blog-grid > div.hubspot-ad-block.ad-span-2::before {
    content: unset;
    display: none !important;
  }
  #main-blog::before {
    display: none !important;
    content: unset !important;
  }
  .post-content .blog-title,
  .post-content .blog-title a {
    font-size: 20px !important;
  }
  .featured-category {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .featured-category a {
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
  }
  .blog-category-filter a.active {
  color: black !important;
}
.ad-span-2 .mobile-panel {
  display: block !important;
}
}

/* Tablettes portrait (768px–991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-content {
    padding: 15px 0px;
  }
  .post-meta-line {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .post-reading-time {
    margin-left: 15px !important;
    margin-top: 6px !important;
  }
  .featured-article {
    flex-direction: column;
    gap: 20px;
  }

  .featured-article-thumb,
  .featured-article-content {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .blog-category-filter {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    display: flex;
    padding: 0px;
    background: #fff;
    border-radius: 40px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    box-shadow: 2px 2px 8px -1px rgba(0, 0, 0, 0.1);
  }

  .category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px !important;
    background: white;
    border: 2px solid #cb648f;
    border-radius: 40px;
    color: black;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }

  .chevron-circle {
    width: 24px;
    height: 24px;
    background-color: #ff8d6710; /* cercle léger orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chevron-icon {
    stroke: #cb648f;
    transition: transform 0.3s ease;
  }

  .blog-category-filter a {
    color: #a7a7a7;
    border: 1px solid transparent;
    font-size: 16px !important;
    padding: 10px 50px !important;
  }

  .blog-category-filter.open a {
    display: block;
  }
  .blog-category-filter.open::after {
    transform: translateY(-210px) rotate(180deg);
  }
  .blog-category-filter a {
    display: none;
    background-color: white;
    border-top: none;
    border-radius: 0;
  }

  .blog-category-filter.open a {
    display: block;
    padding: 10px 50px !important;
    background: transparent !important;
    padding-left: 20px !important;
    border: unset !important;
  }

  .hubspot-ad-block {
    height: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  .hubspot-ad-block.ad-span-2 {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    position: relative;
    left: 0px !important;
    margin-bottom: 15px !important;
  }
  .hubspot-ad-block.ad-span-2 {
    grid-column: span 1 !important;
  }
  .pc-ads {
    display: none !important;
  }
  .mobile-panel {
    display: block !important;
    width: 100%;
    position: relative;
    height: auto !important;
  }
  .mobile-panel img {
    object-fit: fill !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 24px !important;
  }
  .blog-post-card .post-category,
  .blog-post-card .post-category a {
    font-size: 12px !important;
  }
  .custom-blog-grid > div.hubspot-ad-block.ad-span-2::before {
    content: unset;
    display: none !important;
  }
  #main-blog::before {
    bottom: -160px !important;
    left: -200px !important;
  }
  #main-blog {
    overflow-y: hidden !important;
  }
  .featured-article-content {
    margin: 20px auto !important;
    max-width: 90% !important;
  }
  .featured-article-thumb img {
    border-radius: 46px 46px 0px 0px !important;
  }
  #main-blog {
    overflow-y: hidden !important;
    background-position: center top -35px !important;
  }
  .blog-post-card .post-category,
  .blog-post-card .post-category a,
  .post-date {
    font-size: 14px !important;
  }
  .post-content .blog-title,
  .post-content .blog-title a {
    font-size: 20px !important;
  }
   .blog-category-filter a.active {
  color: black !important;
}
.ad-span-2 .mobile-panel {
  display: block !important;
}
}

/* Tablettes paysage et petits laptops (981px–1279px) */
@media screen and (min-width: 981px) and (max-width: 1279px) {
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-content .blog-title,
  .post-content .blog-title a {
    font-size: 16px !important;
  }
  .post-thumb img,
  .blog-post-card img {
    height: 220px !important;
    max-height: 220px !important;
  }
  .post-date,
  .post-category,
  .post-reading-time {
    font-size: 14px !important;
  }
  .post-meta-line {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .post-reading-time {
    margin-left: 20px !important;
    margin-top: 4px !important;
  }

  .featured-article-thumb {
    max-width: 400px;
    flex: 0 0 400px;
  }
  .featured-excerpt,
  .featured-date {
    font-size: 16px;
  }
  .featured-title a {
    font-size: 24px;
  }
  .blog-category-filter {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    display: flex;
    padding: 0px;
    background: #fff;
    border-radius: 40px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    box-shadow: 2px 2px 8px -1px rgba(0, 0, 0, 0.1);
  }

  .category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px !important;
    background: white;
    border: 2px solid #cb648f;
    border-radius: 40px;
    color: black;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }

  .chevron-circle {
    width: 24px;
    height: 24px;
    background-color: #ff8d6710; /* cercle léger orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chevron-icon {
    stroke: #e3775e;
    transition: transform 0.3s ease;
  }

  .blog-category-filter.open .chevron-icon {
    transform: rotate(180deg);
  }

  .blog-category-filter a {
    color: #a7a7a7;
    border: 1px solid transparent;
    font-size: 16px !important;
    padding: 10px 50px !important;
  }

  .blog-category-filter.open a {
    display: block;
  }
  .blog-category-filter.open::after {
    transform: translateY(-210px) rotate(180deg);
  }
  .blog-category-filter a {
    display: none;
    background-color: white;
    border-top: none;
    border-radius: 0;
  }

  .blog-category-filter.open a {
    display: block;
    padding: 10px 50px !important;
    background: transparent !important;
    padding-left: 20px !important;
    border: unset !important;
  }
  #ads-col {
    width: 37% !important;
  }
  #content-col {
    max-width: 60% !important;
  }
  #main-blog {
    background-position: center top -50px !important;
  }
  .featured-article-thumb img {
    height: 100% !important;
  }
  .featured-article-content {
    padding: 30px 0 !important;
    margin-right: 50px !important;
  }
  .featured-article {
    gap: 50px !important;
  }
  .hubspot-ad-block.ad-span-2 {
    grid-column: span 1 !important;
  }
  .hubspot-ad-block.ad-span-2 {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    position: relative;
    left: 0px !important;
    margin-bottom: 15px !important;
  }
  .mobile-panel {
    display: block !important;
    width: 100% 368px;
    position: relative;
    height: auto !important;
  }
  .pc-ads {
    display: none !important;
  }
  .mobile-panel img {
    object-fit: fill !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 24px !important;
  }
  .custom-blog-grid > div.hubspot-ad-block.ad-span-2:first-of-type::before {
    display: none !important;
  }
  #blogpost-content {
    max-width: 90% !important;
  }
   .blog-category-filter a.active {
  color: black !important;
}
.ad-span-2 .mobile-panel {
  display: block !important;
}
}

/* Laptops 13–16 pouces (1280px–1600px) */
@media screen and (min-width: 1280px) and (max-width: 1600px) {
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #ads-col {
    width: 30% !important;
  }
  #content-col {
    max-width: 67% !important;
  }
  #summary-desktop {
    margin-bottom: 50px !important;
  }
  #newsletter-grp {
    margin-top: 20px !important;
  }
  .et_pb_row:has(.blog-category-filter) {
    width: 90% !important;
  }
  .blog-category-filter {
    gap: 60px !important;
  }
  #main-blog {
    background-position: center top -80px !important;
  }
  #blogpost-content {
    max-width: 90% !important;
  }
}

/* Grands écrans de bureau (1601px+) */
@media screen and (min-width: 1601px) {
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #blogpost-content {
    max-width: 90% !important;
  }
}

/* Écrans 4K et plus (2560px+) */
@media screen and (min-width: 2560px) {
  .custom-blog-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
