*,
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > *{
  margin: 0;
  padding: 0;
}

html, body{
  background-color: var(--wp--preset--color--secondary);
}

.wp-block-columns.are-vertically-aligned-bottom {
  align-items: flex-end !important;
}
.wp-block-columns.are-vertically-aligned-center {
  align-items: center !important;
}

.btn a.wp-block-button__link{
  padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
  background-color: var(--wp--preset--color--red);
  color: var(--wp--preset--color--white);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--ptsans);
  
  border-top-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: fit-content;
  margin-top: var(--wp--preset--spacing--32);
}

.btn.btn-primary a.wp-block-button__link{
  background-color: var(--wp--preset--color--primary);
}

.btn a.wp-block-button__link::after{
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../images/btn-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.btn.btn-contact a.wp-block-button__link::after{
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../images/btn-contact.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.btn.nobg a.wp-block-button__link{
  background-color: transparent;
  border: 1px solid var(--wp--preset--color--red);
  color: var(--wp--preset--color--red);
  height: auto;
}

.btn.nobg a.wp-block-button__link::after{
  background-image: url("../images/btn-arrow-red.svg");
}

.btn-anchor{
  display: inline-block;
  padding: var(--wp--preset--spacing--12);
  background-color: var(--wp--preset--color--red);
  color: var(--wp--preset--color--white);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--sm);
  
  border-top-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 0;
}

.btn-anchor::before{
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  background-image: url("../images/arrow-down.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.btn.btn-download a.wp-block-button__link::after{
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../images/download.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ========================================================================== */
/* PILIERS                                                                    */
/* ========================================================================== */
.piliers-grid,
.mieux-vivre-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  flex-direction: row;
  gap: var(--wp--preset--spacing--24);
  position: relative;
  z-index: 1;
}

.piliers-grid::before,
.mieux-vivre-grid::before{
  content: "";
  display: block;
  position: absolute;
  top: -47px;
  right: -73px;
  width: 195px;
  height: 213px;
  background-color: var(--wp--preset--color--accent);
  z-index: 2;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
}

.pilier-item{
  padding: var(--wp--preset--spacing--24);
  box-sizing: border-box;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 24px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.mieux-vivre-item{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  z-index: 3;
  min-width: 331px;
}

.mieux-vivre-item:nth-child(1),
.mieux-vivre-item:nth-child(2),
.mieux-vivre-item:nth-child(3),
.mieux-vivre-item:nth-child(1) img,
.mieux-vivre-item:nth-child(2) img,
.mieux-vivre-item:nth-child(3) img{
  border-top-left-radius: 24px;
}

.mieux-vivre-item:nth-child(4),
.mieux-vivre-item:nth-child(5),
.mieux-vivre-item:nth-child(6),
.mieux-vivre-item:nth-child(4) img,
.mieux-vivre-item:nth-child(5) img,
.mieux-vivre-item:nth-child(6) img{
  border-bottom-right-radius: 24px;
}
  

.mieux-vivre-item .wp-block-image{
  flex: 1;
  margin: 0;
}

.mieux-vivre-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mieux-vivre-item.text-item{
  padding: var(--wp--preset--spacing--24);
  box-sizing: border-box;
}  

.pilier-item h3{
  font-family: var(--wp--preset--font-family--opensans);
  line-height: 1;
}

.mieux-vivre-item h3{
  font-family: var(--wp--preset--font-family--opensans);
  line-height: 1.3;
  margin-bottom: var(--wp--preset--spacing--12);
}

.pilier-item h4,
.mieux-vivre-item h4{
  line-height: 1.3;
  margin-bottom: var(--wp--preset--spacing--8);
  margin-top: var(--wp--preset--spacing--24);
}

.pilier-item p{
  margin-top: 0;
}

.piliers-grid .pilier-item:nth-child(1),
.piliers-grid .pilier-item:nth-child(2),
.piliers-grid .pilier-item:nth-child(3),
.mieux-vivre-grid .mieux-vivre-item{
  width: calc((100% - (2 * var(--wp--preset--spacing--24))) / 3);
}

.piliers-grid .pilier-item:nth-child(4){
  width: calc(((100% - var(--wp--preset--spacing--24)) / 3) * 1.8);
}

.piliers-grid .pilier-item:last-child{
  width: calc(((100% - var(--wp--preset--spacing--24)) / 3) * 1.2);
}
  
.pilier-item .pilier-text-clamp{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pilier-item .pilier-text-clamp.is-expanded{
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.piliers footer{
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-plus{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  color: var(--wp--preset--color--red) !important;
  text-decoration: none;
  cursor: pointer;
  padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
  background-color: transparent;
  border-radius: 0;
  border: none;
  margin-left: 0 !important;
}

.btn-plus a{
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--wp--preset--color--red) !important;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  border-radius: none;
  border: none;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
}

.btn-plus::after{
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../images/add.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.btn-arrow{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  color: var(--wp--preset--color--red) !important;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  border-radius: 0;
  border: none;
  margin-left: 0 !important;
}

.btn-arrow a.wp-block-button__link{
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--wp--preset--color--red) !important;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  border-radius: none;
  border: none;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  height: auto;
  margin-top: 0;
}

.btn-arrow a.wp-block-button__link::after{
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../images/arrow-top-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.container, .site-header{
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}
/* ========================================================================== */
/* CONSTRUIRE ENSEMBLE                                                        */
/* ========================================================================== */
.construire .wp-block-columns{
  gap: var(--wp--preset--spacing--24);
  position: relative;
  z-index: 1;
}

.construire .wp-block-columns::before{
  content: "";
  display: block;
  position: absolute;
  left: -26px;
  bottom: -38px;
  z-index: 2;
  width: 148px;
  height: 148px;
  background-color: var(--wp--preset--color--primary);
  border-bottom-left-radius: 50%;
  border-top-right-radius: 50%;
}

.construire-block{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--wp--preset--spacing--24);
  padding: var(--wp--preset--spacing--24);
  box-sizing: border-box;
  border-top-right-radius: var(--wp--preset--spacing--24);
  border-bottom-left-radius: var(--wp--preset--spacing--24);
  position: relative;
  z-index: 3;
}

.construire-block .btn a{
  margin-top: 0;
}

.rapports-block{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 4px;
  padding: var(--wp--preset--spacing--24);
  box-sizing: border-box;
  border-top-right-radius: var(--wp--preset--spacing--24);
  border-bottom-left-radius: var(--wp--preset--spacing--24);
  position: relative;
  z-index: 3;
}

/* ========================================================================== */
/* HEADER                                                                     */
/* ========================================================================== */
.site-header{
  padding: var(--wp--preset--spacing--8);
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--grey);
  background: var(--wp--preset--color--white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header:has(.site-header){
  padding-top: var(--wp--preset--spacing--24);
  position: sticky;
  z-index: 100;
  top: var(--wp--preset--spacing--24);
  padding-left: var(--wp--preset--spacing--16);
  padding-right: var(--wp--preset--spacing--16);
  box-sizing: border-box;
}

.nav-main,
.nav-marques{
  margin-top: 0;
}

.nav-main nav ul{
  gap: var(--wp--preset--spacing--24);
}

.nav-marques .wp-block-navigation-item__content,
.nav-marques .wp-block-navigation-item__content:hover,
.nav-marques .wp-block-navigation-item__content.wp-block-navigation-item__content{
  color: var(--wp--preset--color--red);
  padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--12);
}

.nav-marques .wp-block-navigation-item__label::after,
.mobile-menu-container .mobile-nav-marques .wp-block-navigation-item__label::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: middle;
  background-image: url("../images/open.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ========================================================================== */
/* FRONT PAGE                                                                 */
/* ========================================================================== */
.hero{
  position: relative;
}

.hero h1{
  position: relative;
  z-index: 2;
}

.front-page .logo-but-conforama{
  display: flex;
  justify-content: center;
  margin-top: var(--wp--preset--spacing--80);
  margin-bottom: var(--wp--preset--spacing--16);
}

.hero .feuille-bleue{
  background-image: url("../images/Feuille-bleue.svg");
  width: 121px;
  height: 191px;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .demi-ellipse-rouge{
  background-image: url("../images/Demi-Ellipse-rouge.svg");
  width: 207px;
  height: 134px;
  position: absolute;
  bottom: 120px;
  right: 40px;
  pointer-events: none;
  z-index: 0;
}

.hero1 .demi-ellipse-rouge{
  right: 20.5%;
  bottom: 0;
}

.front-page .wp-block-site-logo,
.front-page h1 {
  position: relative;
  z-index: 1;
}

.front-page .hero-columns .decoration-1{
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.front-page .hero-columns .decoration-1 img{
  border-radius: 9999px;
}

.front-page .hero-columns .decoration-2{
  align-self: flex-end;
  position: relative;
  z-index: 2;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
}

.front-page .hero-columns .decoration-2 img{
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
}

/* ========================================================================== */
/* POSTS LIST                                                                 */
/* ========================================================================== */
.posts-list{
  position: relative;
}

.posts-list::before{
  content: "";
  display: block;
  width: 191px;
  height: 191px;
  background-color: var(--wp--preset--color--red);
  position: absolute;
  top: -40px;
  left: -40px;
  z-index: 0;
  border-top-right-radius: 50%;
  border-bottom-left-radius: 50%;
}

.posts-list > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--24);
  align-items: flex-start;
}

.posts-list li.wp-block-post {
  width: calc((100% - (2 * var(--wp--preset--spacing--24))) / 3);

  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--12);
  margin-top: 0;

  border-bottom: 4px solid var(--category-bg);
  box-sizing: border-box;
  padding-bottom: var(--wp--preset--spacing--32);
}

/* Filtrage des posts - par défaut, on cache au-delà de 6 */
.posts-filterable li.wp-block-post:nth-child(n+7) {
  display: none;
}

/* Quand un filtre est actif, on montre tous les posts correspondants */
.posts-filterable.is-filtering li.wp-block-post {
  display: none;
}

.posts-filterable.is-filtering li.wp-block-post.is-visible {
  display: flex;
}

/* Quand "show all" est actif */
.posts-filterable.show-all li.wp-block-post {
  display: flex;
}

.posts-list li.wp-block-post .wp-block-post-featured-image{
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/0.65;
  margin-bottom: var(--wp--preset--spacing--12);
}

.posts-list li.wp-block-post .wp-block-post-featured-image img{
  object-fit: cover;
  object-position: center;
}

/* ========================================================================== */
/* CATEGORY FILTERS                                                           */
/* ========================================================================== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wp--preset--spacing--10);
  margin-top: var(--wp--preset--spacing--32);
  margin-bottom: var(--wp--preset--spacing--32);
}

.category-filter {
  padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
  border: none;
  border-radius: 9999px;
  background: var(--wp--preset--color--lightred);
  color: var(--wp--preset--color--white);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--ptsans);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-filter--active,
.category-filter:hover {
  background: var(--wp--preset--color--red);
}

/* ========================================================================== */
/* TERMS LIST                                                                 */
/* ========================================================================== */
.terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--10);
  list-style: none;
  padding: 0;
}

.terms-list__link{
  display: inline-block;
  background: var(--term-bg);
  color: var(--term-color);
  padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--ptsans);
}
.terms-list__link:hover{
  opacity: 0.8;
}

/* ========================================================================== */
/* HERO SECTION                                                               */
/* ========================================================================== */
.hero-video {
  position: relative;
  z-index: 2;
}

.hero-video .hero-embed{
  margin: 0;
}

.hero-video .hero-embed .wp-block-embed__wrapper{
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  overflow: hidden;
}

.hero-video .hero-embed iframe{
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
}

/* ========================================================================== */
/* TITLE WITH ARROW                                                           */
/* ========================================================================== */
.title-arrow{
  position: relative;
  display: inline-block;
}
.title-arrow::after{
  content: "";
  display: block;
  background-image: url("../images/Arrow-yellow-left.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 51px;
  height: 34px;
  position: absolute;
  bottom: 0;
  right: -60px;
}
.title-arrow.has-text-align-center,
.title-arrow-left.has-text-align-center{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.title-arrow-left{
  position: relative;
  display: inline-block;
}
.title-arrow-left::before{
  content: "";
  display: block;
  background-image: url("../images/Arrow-yellow-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 51px;
  height: 34px;
  position: absolute;
  top: -5px;
  left: -50px;
}

/* ========================================================================== */
/* MIEUX CONTRIBUER                                                           */
/* ========================================================================== */
.mieux-contribuer{
  position: relative;
  overflow: hidden;
}

.mieux-contribuer::before{
  content: "";
  display: block;
  width: 213px;
  height: 213px;
  background-color: var(--wp--preset--color--blue);
  border-radius: 50%;
  position: absolute;
  top: -90px;
  left: -100px;
}

.mieux-contribuer::after{
  content: "";
  display: block;
  background-image: url("../images/demi-ellipse.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 126px;
  height: 107px;
  position: absolute;
  bottom: 0;
  right: 0;
}  

.mieux-contribuer-grid{
  gap: 0;
  align-items: flex-start;
}

.mieux-contribuer-item{
  width: 25%;
}

.mieux-contribuer-number:has(.has-accent-color){
  border-bottom: 1px solid var(--wp--preset--color--accent);
}
.mieux-contribuer-number:has(.has-accent-color) p{
  border-bottom: 6px solid var(--wp--preset--color--accent);
}
.mieux-contribuer-number:has(.has-red-color){
  border-bottom: 1px solid var(--wp--preset--color--red);
}
.mieux-contribuer-number:has(.has-red-color) p{
  border-bottom: 6px solid var(--wp--preset--color--red);
}
.mieux-contribuer-number:has(.has-blue-color){
  border-bottom: 1px solid var(--wp--preset--color--blue);
}
.mieux-contribuer-number:has(.has-blue-color) p{
  border-bottom: 6px solid var(--wp--preset--color--blue);
}
.mieux-contribuer-number:has(.has-primary-color){
  border-bottom: 1px solid var(--wp--preset--color--primary);
}
.mieux-contribuer-number:has(.has-primary-color) p{
  border-bottom: 6px solid var(--wp--preset--color--primary);
}

.mieux-contribuer-number{
  width: 100%;
  margin-bottom: var(--wp--preset--spacing--12);
}

.mieux-contribuer-number p{
  max-width: 62px;
  width: 100%;
  padding-bottom: var(--wp--preset--spacing--8);
  margin-left: 0;
  line-height: 1;
}

.mieux-contribuer-content{
  margin-left: 0;
  padding-right: var(--wp--preset--spacing--24);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--16);
}

.mieux-contribuer-details{
  width: 100%;
  padding: var(--wp--preset--spacing--8);
  box-sizing: border-box;
  border: 1px solid var(--wp--preset--color--primary);
  border-top-left-radius: var(--wp--preset--spacing--8);
  border-top-right-radius: var(--wp--preset--spacing--8);
}

/* ========================================================================== */
/* AMBITION SECTION                                                           */
/* ========================================================================== */
.ambition {
  margin-top: -120px;
  padding-top: 270px !important;
  position: relative;
  z-index: 1;
}

.ambition > .wp-block-columns{
  align-items: center;
}

.ambition .ambition-content-container{
  padding-left: var(--wp--preset--spacing--32);
}

.ambition .ambition-images{
  position: sticky;
  top: 0px;
  align-self: flex-start;
}

.ambition .ambition-images .ambition-image{
  overflow: hidden;
}

.ambition .ambition-content{
  border-left: 1px solid var(--wp--preset--color--red);
}

.ambition .ambition-content .ambition-item{
  opacity: 0.3;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding-top: var(--wp--preset--spacing--16);
  padding-bottom: var(--wp--preset--spacing--16);
  display: flex;
  align-items: center;
}

.ambition .ambition-content .ambition-item.active{
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.ambition .ambition-content .ambition-item.active::before{
  content: "";
  display: block;
  width: 11px;
  height: 100%;
  background-color: var(--wp--preset--color--red);
  position: absolute;
  top: 0;
  left: -6px;
  z-index: 1;
}

.ambition .ambition-content .ambition-item-content{
  padding: var(--wp--preset--spacing--16) 0 var(--wp--preset--spacing--16) var(--wp--preset--spacing--32);
}

.ambition-image-wrapper,
.audace-image-wrapper{
  position: relative;
}

.ambition-image-wrapper .wp-block-image,
.audace-image-wrapper .wp-block-image{
  position: relative;
  z-index: 1;
}

.ambition-image-wrapper .wp-block-image img,
.audace-image-wrapper .wp-block-image img{
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.decorative-shapes,
.decorative-shapes-right{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* ========================================================================== */
/* FORCE SECTION                                                              */
/* ========================================================================== */
.force-reseau{
  overflow-x: hidden;
}

/* ========================================================================== */
/* STATS SECTION                                                              */
/* ========================================================================== */
.stats-grid{
  gap: var(--wp--preset--spacing--16);
  position: relative;
  align-items: stretch;
}

.stats-grid .title-arrow{
  display: inline-flex;
  justify-content: center;
}

.stats-grid::before{
  content: "";
  display: block;
  width: 191px;
  height: 191px;
  background-color: var(--wp--preset--color--primary);
  position: absolute;
  bottom: -40px;
  left: -40px;
  z-index: 0;
  border-top-right-radius: 50%;
  border-bottom-left-radius: 50%;
}

.stats-grid::after{
  content: "";
  display: block;
  width: 191px;
  height: 191px;
  background-color: var(--wp--preset--color--red);
  position: absolute;
  top: -40px;
  right: -40px;
  z-index: 0;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
}

.stat-item{
  flex: 1;
  min-width: 150px;
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
  padding: var(--wp--preset--spacing--24);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  gap: var(--wp--preset--spacing--24);
  z-index: 1;
  border-top-right-radius: var(--wp--preset--spacing--24);
  border-bottom-left-radius: 8px;
}

.stat-item h3{
  font-family: var(--wp--preset--font-family--opensans);
  margin-bottom: var(--wp--preset--spacing--8);
}

.stat-item h3,
.stat-item p{
  text-align: left;
  margin-left: 0 !important;
}

/* ========================================================================== */
/* TIMELINE SECTION                                                           */
/* ========================================================================== */
.timeline{
  position: relative;
  padding-left: var(--wp--preset--spacing--24);
}

.timeline-item{
  padding: var(--wp--preset--spacing--32);
  box-sizing: border-box;
  margin: 0;
}

.timeline-item h3{
  margin-bottom: var(--wp--preset--spacing--8);
}

.timeline-details{
  margin-top: var(--wp--preset--spacing--12);
}
.timeline-details .wp-block-column{
  padding: var(--wp--preset--spacing--16);
  border-top-right-radius: var(--wp--preset--spacing--16);
  border-bottom-left-radius: var(--wp--preset--spacing--16);
}

.mieux-vivre-details{
  margin-top: var(--wp--preset--spacing--16);
  padding: var(--wp--preset--spacing--16);
  border-top-right-radius: var(--wp--preset--spacing--8);
  border-bottom-left-radius: var(--wp--preset--spacing--8);
}

/* ========================================================================== */
/* CONTACT SECTION                                                            */
/* ========================================================================== */
.contact-phone{
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-phone:hover{
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(181, 24, 39, 0.4);
}

/* ========================================================================== */
/* NEWS SECTION                                                               */
/* ========================================================================== */
.news-section .title-arrow{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.news-section .title-arrow::after{
  display: none;
}
.news-section .title-arrow::before{
  content: "";
  display: block;
  background-image: url("../images/Arrow-yellow-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 51px;
  height: 34px;
  position: absolute;
  top: -5px;
  left: -50px;
}

/* ========================================================================== */
/* HERO 1                                                                     */
/* ========================================================================== */
.hero1 .hero1-images{
  position: relative;
  padding: 25px 25px 0 25px;
}

.hero1 .hero1-images .large-image img{
  position: relative;
  z-index: 1;
  margin: auto;
  display: block;
}

.hero1 .hero1-images .small-image{
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  margin: 0;
}

.hero1 .hero1-images .small-image img{
  border-top-right-radius: 999px;
  border-top-left-radius: 999px;
}

/* ========================================================================== */
/* HERO 2                                                                     */
/* ========================================================================== */
.hero2{
  overflow: hidden;
}

.hero2 .demi-ellipse-rouge{
  right: -80px;
  bottom: -20px;
}

.hero2-images{
  position: relative;
}

.hero2-images img{
  border-top-left-radius: var(--wp--preset--spacing--24);
  border-bottom-right-radius: var(--wp--preset--spacing--24);
}

.hero2-images p{
  position: absolute;
  top: var(--wp--preset--spacing--24);
  left: var(--wp--preset--spacing--24);
  z-index: 2;
  padding-right: var(--wp--preset--spacing--24);
  margin: 0;
}

.hero2-images .btn-anchor{
  position: absolute;
  bottom: var(--wp--preset--spacing--24);
  right: var(--wp--preset--spacing--24);
  z-index: 2;
}

/* ========================================================================== */
/* THREE IMAGES                                                               */
/* ========================================================================== */
.three-images-images img{
  border-top-right-radius: 999px;
  border-top-left-radius: 999px;
}

/* ========================================================================== */
/* FOOTER                                                                     */
/* ========================================================================== */
.site-footer{
  padding: var(--wp--preset--spacing--120) var(--wp--preset--spacing--16) var(--wp--preset--spacing--40) var(--wp--preset--spacing--16);
  background-color: var(--wp--preset--color--darkred);
  color: var(--wp--preset--color--white);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--120);
}

.site-footer .custom-logo{
  width: 153px;
}

.site-footer .wp-block-columns{
  width: 100%;
}

.site-footer .wp-block-columns .wp-block-navigation{
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .wp-block-columns .wp-block-navigation .wp-block-navigation__container {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .wp-block-columns{
  align-items: flex-end !important;
}

.site-footer .footer-marques {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .wp-block-navigation .wp-block-navigation-link a{
  color: var(--wp--preset--color--white);
}

.site-footer .footer-marques .wp-block-navigation-link a{
  padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
  background-color: var(--wp--preset--color--red);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--ptsans);
  
  border-top-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: fit-content;
}

.site-footer .footer-marques .wp-block-navigation-link a::after{
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../images/btn-newtab.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.site-footer .footer-legals .wp-block-navigation-link a{
  font-weight: 400;
  font-size: var(--wp--preset--font-size--small);
}

/* ========================================================================== */
/* MOBILE MENU                                                                */
/* ========================================================================== */
.nav-mobile{
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  z-index: 1001;
  margin-top: 0;
}

.nav-mobile .wp-block-columns,
.nav-mobile .wp-block-column{
  margin-top: 0;
}

.nav-mobile .wp-block-column:first-child{
  display: none;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 10px;
  margin-top: 0;
}

.mobile-menu-toggle .close{
  display: none;
}

.mobile-menu-toggle.is-active{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-menu-toggle.is-active .close{
  display: block;
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--ptsans);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  line-height: normal;
}

.burger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  position: relative;
  transition: background-color 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.burger-icon::before {
  top: -7px;
}

.burger-icon::after {
  top: 7px;
}

/* Animation burger -> croix */
.mobile-menu-toggle.is-active .burger-icon {
  background-color: transparent;
}

.mobile-menu-toggle.is-active .burger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-active .burger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Overlay du menu mobile */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--wp--preset--color--white);
  padding: calc(var(--wp--preset--spacing--120) + var(--wp--preset--spacing--16)) var(--wp--preset--spacing--24) var(--wp--preset--spacing--80) var(--wp--preset--spacing--24);
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-container {
  transform: translateX(0);
}

/* Styles des liens dans le menu mobile */
.mobile-menu-container .wp-block-navigation {
  margin-bottom: var(--wp--preset--spacing--24);
}

.mobile-menu-container .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--8);
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-menu-container .wp-block-navigation-item {
  list-style: none;
  width: 100%;
  display: block;
}

.mobile-menu-container .wp-block-navigation-item__content {
  display: block;
  padding: var(--wp--preset--spacing--12) 0;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  font-family: var(--wp--preset--font-family--ptsans);
  border-bottom: 1px solid var(--wp--preset--color--grey);
}

.mobile-menu-container .mobile-nav-marques .wp-block-navigation-item__content {
  color: var(--wp--preset--color--red);
  border-bottom: none;
  padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
  /* background-color: var(--wp--preset--color--red); */
  /* color: var(--wp--preset--color--white); */
  border-radius: 8px;
  margin-top: var(--wp--preset--spacing--8);
}

/* ========================================================================== */
/* RESPONSIVE                                                                 */
/* ========================================================================== */
@media (max-width: 1200px) {
  .piliers{
    overflow-x: hidden;
  }
  .three-images .title-arrow{
    width: 85%;
  }

  .mieux-vivre{
    padding-left: var(--wp--preset--spacing--16);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mieux-vivre::-webkit-scrollbar{
    display: none;
  }
  .mieux-vivre > .wp-block-group:first-child,
  .mieux-vivre footer{
    position: sticky;
    left: 0;
  }
  .mieux-vivre-grid{
    min-width: calc((331px * 3) + (3 * var(--wp--preset--spacing--24)));
    padding-right: var(--wp--preset--spacing--24);
  }
  .mieux-vivre-grid::before{
    display: none;
  }
}

@media (max-width: 1072px) {
  /* Header mobile : burger menu */
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-header .nav-main,
  .site-header .nav-marques {
    display: none;
  }

  .nav-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .site-header:has(.is-active) > .wp-block-site-logo{
    display: none;
  }

  .nav-mobile:has(.is-active){
    width: 100%;
  }

  .nav-mobile:has(.is-active) .wp-block-column:first-child{
    display: block;
    flex-basis: 70% !important;
  }

  .nav-mobile:has(.is-active) .wp-block-column:last-child{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-basis: 30% !important;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .mobile-menu-container .mobile-nav-marques{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .mobile-menu-container .mobile-nav-marques .wp-block-navigation-item{
    width: auto;
  }

  .container,
  .hero,
  .news-section,
  .force-reseau{
    max-width: 100%;
    padding-left: var(--wp--preset--spacing--16);
    padding-right: var(--wp--preset--spacing--16);
    box-sizing: border-box;
  }

  .hero .feuille-bleue{
    left: -10%;
  }

  /* Stats grid: scroll horizontal avec formes visibles */
  .force-reseau{
    position: relative;
    overflow: visible;
  }

  .force-reseau::before{
    content: "";
    display: block;
    width: 191px;
    height: 191px;
    background-color: var(--wp--preset--color--primary);
    position: absolute;
    bottom: 40px;
    left: -40px;
    z-index: 0;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
  }

  .stats-grid{
    box-sizing: border-box;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .stats-grid::before,
  .stats-grid::after{
    display: none;
  }

  .stats-grid .stat-item{
    min-width: 195px;
    flex-shrink: 0;
  }

  /* Cacher la scrollbar sur mobile */
  .stats-grid{
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .stats-grid::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Opera */
  }

  .hero2 .container > .wp-block-columns{
    flex-direction: column;
  }

  .hero2 .hero2-images.wp-block-column{
    flex-basis: auto !important;
    width: 189px;
  }

  /* Category filters: scroll horizontal */
  .category-filters{
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .category-filters::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Opera */
  }

  /* Rapports scroll horizontal */
  .rapports{
    padding-left: var(--wp--preset--spacing--16);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .rapports::-webkit-scrollbar{
    display: none;
  }
  .rapports > .wp-block-group:first-child{
    position: sticky;
    left: 0;
  }
  .rapports .wp-block-columns{
    flex-wrap: nowrap;
    min-width: calc((250px * 4) + (3 * var(--wp--preset--spacing--24)));
    padding-right: var(--wp--preset--spacing--24);
  }
  
  .mieux-contribuer{
    padding: 0 var(--wp--preset--spacing--16);
  }
  .mieux-contribuer::before{
    content: "";
    display: block;
    width: 213px;
    height: 213px;
    background-color: var(--wp--preset--color--blue);
    border-radius: 50%;
    position: absolute;
    top: -90px;
    left: auto;
    right: -90px;
  }

  .mieux-contribuer-grid{
    flex-direction: column;
  }

  .mieux-contribuer-item{
    width: 100%;
    padding-bottom: calc(2 * var(--wp--preset--spacing--24));
  }

  .mieux-contribuer-item:has(.mieux-contribuer-number .has-accent-color){
    border-left: 1px solid var(--wp--preset--color--accent);
  }
  .mieux-contribuer-item:has(.mieux-contribuer-number .has-red-color){
    border-left: 1px solid var(--wp--preset--color--red);
  }
  .mieux-contribuer-item:has(.mieux-contribuer-number .has-blue-color){
    border-left: 1px solid var(--wp--preset--color--blue);
  }
  .mieux-contribuer-item:has(.mieux-contribuer-number .has-primary-color){
    border-left: 1px solid var(--wp--preset--color--primary);
  }
  .mieux-contribuer-number:has(.has-accent-color){
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-accent-color) p{
    border-left: 6px solid var(--wp--preset--color--accent);
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-red-color){
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-red-color) p{
    border-left: 6px solid var(--wp--preset--color--red);
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-blue-color){
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-blue-color) p{
    border-left: 6px solid var(--wp--preset--color--blue);
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-primary-color){
    border-bottom: 0;
  }
  .mieux-contribuer-number:has(.has-primary-color) p{
    border-left: 6px solid var(--wp--preset--color--primary);
    border-bottom: 0;
  }

  .mieux-contribuer-number p{
    padding-left: var(--wp--preset--spacing--12);
  }
  
  .mieux-contribuer-content{
    padding: 0 var(--wp--preset--spacing--16);
  }

  .mieux-contribuer footer{
    justify-content: flex-start;
    margin-top: var(--wp--preset--spacing--32);
  }

  .mieux-contribuer footer .btn a.wp-block-button__link{
    margin-top: 0;
  }

  .mieux-contribuer::after{
    display: none;
  }
}

@media (max-width: 781px) {
  .hero .feuille-bleue{
    left: 0;
    top: 15%;
    transform: translateX(-80%);
    width: 100px;
    height: 100px;
    background-size: cover;
  }
  
  .hero1{
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
  }
  .hero1 .feuille-bleue{
    display: none;
  }
  .hero1 .demi-ellipse-rouge{
    right: -20px;
  }

  .hero2,
  .hero2 .container{
    padding-right: 0;
  }

  .hero2 .demi-ellipse-rouge{
    bottom: 0;
    right: -120px;
  }

  .hero2 h1::before{
    content: "";
    display: block;
    width: 52px;
    height: 34px;
    background-image: url("../images/Arrow-yellow-down.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: -24px;
    left: 0;
    z-index: 0;
  }

  .hero2 .hero1-images{
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .hero2 .hero1-images::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Opera */
  }

  .hero2 .hero1-images > .wp-block-columns{
    width: calc((189px * 3) + (var(--wp--preset--spacing--16) * 4));
    flex-wrap: nowrap !important;
    gap: var(--wp--preset--spacing--16);
    padding-left: var(--wp--preset--spacing--16);
    padding-right: var(--wp--preset--spacing--16);
  }

  .hero2 .hero2-images.wp-block-column{
    flex-shrink: 0;
  }

  .front-page .hero-columns .decoration-1,
  .front-page .hero-columns .decoration-2{
    display: none;
  }

  .ambition .container > .wp-block-columns{
    flex-direction: column-reverse;
  }

  .ambition .ambition-content-container{
    padding-left: 5px;
  }

  .ambition .ambition-images{
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: var(--wp--preset--spacing--16);
  }

  .ambition .ambition-images::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Opera */
  }

  .ambition .ambition-images .wp-block-columns{
    flex-direction: row;
    flex-wrap: nowrap !important;
    gap: var(--wp--preset--spacing--16);
    width: calc((241px * 6) + (var(--wp--preset--spacing--16) * 5));
  }

  .ambition .ambition-images .wp-block-columns::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Opera */
  }

  .ambition .ambition-images .wp-block-columns .wp-block-column{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: var(--wp--preset--spacing--16);
  }

  .ambition .ambition-images .wp-block-columns .wp-block-column img{
    width: 241px;
    height: auto;
  }

  .rapports .rapports-block.wp-block-column{
    flex-basis: auto !important;
  }

  .posts-list::before{
    display: none;
  }

  .news-section{
    position: relative;
    overflow: hidden;
  }
  .news-section::after{
    content: "";
    display: block;
    width: 80px;
    height: 80px;
    border: 40px solid var(--wp--preset--color--accent);
    position: absolute;
    bottom: -80px;
    right: -60px;
    z-index: 0;
    border-radius: 50%;
  }

  .posts-list li.wp-block-post{
    width: 100%;
  }

  .timeline{
    padding-left: 0;
  }

  .timeline-item::before{
    left: calc(-1 * var(--wp--preset--spacing--24) - 5px);
    width: 10px;
    height: 10px;
  }

  .title-arrow,
  .title-arrow-left{
    width: 100%;
    text-align: left;
  }
  .title-arrow::after,
  .title-arrow-left::after{
    display: none;
  }

  .title-arrow::before,
  .title-arrow-left::before{
    content: "";
    display: block;
    width: 52px;
    height: 34px;
    background-image: url("../images/Arrow-yellow-down.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: -54px;
    left: 0;
    z-index: 0;
  }

  .news-section .title-arrow::before{
    background-image: url("../images/Arrow-yellow-down.svg");
    left: 0;
    top: -54px;
  }

  .category-filters{
    justify-content: flex-start;
  }

  .title-arrow.has-text-align-center{
    left: 0;
    transform: none;
  }

  .three-images{
    padding-bottom: 0 !important;
  }

  .three-images .three-images-images{
    order: 2;
  }

  .three-images .container > .wp-block-columns{
    gap: 0;
  }

  .three-images .three-images-images .wp-block-columns{
    flex-direction: row;
    flex-wrap: nowrap !important;
  }

  .piliers > div{
    padding-left: var(--wp--preset--spacing--16);
    padding-right: var(--wp--preset--spacing--16);
  }

  .piliers-grid .pilier-item{
    width: 100% !important;
  }
  .piliers-grid .pilier-item:nth-child(4){
    order: 2;
  }
  .piliers-grid .pilier-item:nth-child(4) img{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .construire .wp-block-group:first-child{
    padding-left: var(--wp--preset--spacing--16);
    padding-right: var(--wp--preset--spacing--16);
  }

  .construire .wp-block-group:last-child{
    padding-left: var(--wp--preset--spacing--16);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .construire .wp-block-columns{
    width: calc((241px * 4) + (var(--wp--preset--spacing--16) * 4));
    flex-wrap: nowrap !important;
    gap: var(--wp--preset--spacing--16);
  }
  .construire .wp-block-columns:last-child{
    margin-right: var(--wp--preset--spacing--16);
  }

  .construire .wp-block-columns::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Opera */
  }

  .construire .wp-block-columns::before{
    display: none;
  }

  .mieux-vivre footer{
    margin-top: var(--wp--preset--spacing--32);
    justify-content: flex-start;
  }

  .mieux-vivre footer .btn a.wp-block-button__link{
    margin-top: 0;
  }

  .site-footer{
    text-align: center;
    justify-content: center;
    align-items: center;
    padding-top: var(--wp--preset--spacing--80);
    padding-bottom: var(--wp--preset--spacing--32);
  }

  .site-footer > .wp-block-columns,
  .site-footer > .wp-block-columns .wp-block-columns{
    gap: var(--wp--preset--spacing--80);
  }

  .site-footer .wp-block-column,
  .site-footer .wp-block-columns .wp-block-navigation .wp-block-navigation__container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center !important;
    text-align: center;
  }

  .site-footer .btn-contact a{
    margin-top: 0 !important;
  }
}