/* ==========================================================================
   HOME.CSS - VERSION COMPLÈTE AVEC CORRECTIONS PHASE 1
   ========================================================================== */

/* ==========================================================================
   RESET MARGINS GLOBAUX
   ========================================================================== */
.home > section,
.page-template-front-page > section {
  margin-bottom: 0 !important;
}

.section-newsletter {
  margin-bottom: 0;
}

footer {
  margin-top: 0;
}

/* ==========================================================================
   TITRES GÉNÉRAUX
   ========================================================================== */
.home-h2 {
  display: block;
  font-size: 1.75rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2vh;
}
@media screen and (min-width: 991px) {
  .home-h2 {
    font-size: 2.5rem;
  }
}

/****** Home banniere ******/
.home-banner {
  margin-bottom: 0;
  overflow: hidden;
}

.home-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.home-banner-slider .slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.home-banner-slider .slide-container picture {
  width: 100%;
  display: block;
}
.home-banner-slider .slide-container picture img {
  width: 100%;
  height: auto;
  display: block;
}

.home-banner-slider .slick-list {
  overflow: hidden !important;
}

.home-banner-slider .slick-track {
  display: flex;
}

@media screen and (max-width: 768px) {
  .home-banner {
    overflow: hidden;
    padding: 0 15px;
  }

  .home-banner-slider {
    overflow: hidden;
    border-radius: 20px;
  }

  .home-banner-slider .slide-container {
    height: auto;
    min-height: auto;
    border-radius: 20px;
    overflow: hidden;
  }
  .home-banner-slider .slide-container picture {
    height: auto;
    border-radius: 20px;
  }
  .home-banner-slider .slide-container picture img {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    min-height: auto !important;
    max-height: none;
    border-radius: 20px;
  }

  .home-banner-slider .slick-list {
    overflow: hidden !important;
    border-radius: 20px;
  }
}

@media screen and (min-width: 769px) {
  .home-banner {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  .home-banner-slider {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
  }

  .home-banner-slider .slide-container {
    margin: 0;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
  }

  .home-banner-slider .slide-container picture {
    margin: 0;
    padding: 0;
    border-radius: 24px;
  }

  .home-banner-slider .slide-container picture img {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    margin: 0;
    padding: 0;
    display: block;
    border-radius: 24px;
    max-height: 500px;
  }

  .home-banner-slider .slick-list {
    overflow: hidden !important;
    border-radius: 24px;
  }
}

@media screen and (min-width: 1400px) {
  .home-banner {
    max-width: 1800px;
    padding-left: 60px;
    padding-right: 60px;
  }

  .home-banner-slider .slide-container picture img {
    max-height: 550px;
  }
}

@media screen and (min-width: 1600px) {
  .home-banner {
    max-width: 2000px;
    padding-left: 80px;
    padding-right: 80px;
  }

  .home-banner-slider .slide-container picture img {
    max-height: 600px;
  }
}

.home-banner-slider .slick-dots {
  position: absolute;
  bottom: 60px;
  right: 60px;
  z-index: 10;
  display: flex !important;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto;
  text-align: right;
}
.home-banner-slider .slick-dots li {
  width: 14px;
  height: 14px;
  margin: 0;
  display: block;
}
.home-banner-slider .slick-dots li button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255);
  font-size: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-indent: -9999px;
  outline: none;
}
.home-banner-slider .slick-dots li.slick-active button {
  background-color: #3a6734;
}
.home-banner-slider .slick-dots li button:hover {
  background-color: rgba(255, 255, 255);
}
.home-banner-slider .slick-dots li.slick-active button:hover {
  background-color: #3a6734;
}

@media screen and (max-width: 768px) {
  .home-banner-slider .slick-dots {
    bottom: 15px;
    right: 15px;
    gap: 6px;
  }
  .home-banner-slider .slick-dots li {
    width: 12px;
    height: 12px;
  }
  .home-banner-slider .slick-dots li button {
    width: 12px;
    height: 12px;
  }
}

.home-banner-slider .banner-products {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.8);
  margin: auto;
  display: flex;
  flex-direction: row;
  height: fit-content;
  overflow-y: auto;
}
.home-banner-slider .banner-products a {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  width: 33%;
  text-align: center;
}
.home-banner-slider .banner-products a img {
  width: auto;
  height: 100px;
}
.home-banner-slider .banner-products a h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
}
@media screen and (min-width: 769px) {
  .home-banner-slider .banner-products {
    padding: 20px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5%;
    width: 20% !important;
    max-height: 80%;
    flex-direction: column;
    border-radius: 16px;
  }
  .home-banner-slider .banner-products a {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    text-align: left;
    border-bottom: 1px solid var(--wp--preset--color--color-text);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
  }
}

/***** Home présentation ****/
.home-presentation {
  padding-top: 6vh;
  padding-bottom: 6vh;
  background-color: #fff;
  border-radius: 30px 30px 0 0;
  margin-top: -40px;
  margin-bottom: 0;
  position: relative;
  z-index: 5;
  padding-left: 200px;
  padding-right: 200px;
}
.home-presentation h1 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
}
.home-presentation h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 10vh;
}

.home-presentation .categories a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.25s all;
}
.home-presentation .categories a h3 {
  color: #a9006a;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 25px;
}
.home-presentation .categories a .image {
  width: 175px;
  height: 175px;
  border-radius: 50%;
}
.home-presentation .categories a .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@media screen and (max-width: 991px) {
  .home-presentation {
    padding-top: 4vh;
    padding-bottom: 4vh;
  }
}
@media screen and (min-width: 991px) {
  .home-presentation {
    margin-top: -80px;
    border-radius: 40px 40px 0 0;
    padding-top: 8vh;
    padding-bottom: 8vh;
  }
  .home-presentation h1 {
    font-size: 1.875rem;
  }
  .home-presentation h2 {
    font-size: 2.25rem;
  }
  .home-presentation .categories a:hover {
    margin-top: -20px;
    transition: 0.25s all;
  }
  .home-presentation .categories a .image {
    width: 275px;
    height: 275px;
  }
}

/**** Carrousel Produits ****/
.produits-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  padding: 15px 10px 15px 15px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.produits-carousel::-webkit-scrollbar {
  display: none;
}

.produits-carousel .product-slide {
  flex: 0 0 82%;
  max-width: 82%;
  min-width: 82%;
  scroll-snap-align: start;
}

.produits-carousel .excerpt-product {
  height: 480px;
}

@media screen and (min-width: 992px) {
  .produits-carousel .product-slide {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 280px;
  }
}

@media screen and (max-width: 380px) {
  .produits-carousel .product-slide {
    flex: 0 0 88%;
    max-width: 88%;
    min-width: 88%;
  }
}

/**** Section Produits ****/
.home-produits {
  padding-top: 6vh;
  padding-bottom: 6vh;
  margin-bottom: 0;
  background-color: #fff;
  position: relative;
}

/* PHASE 1 FIX 1 : Masquer les nav-pills (boutons de navigation) */
.home-selection-produits .nav-pills {
  display: none !important;
}

/* Réserve l'espace sur petit mobile pour éviter le CLS pendant le chargement du carrousel produits */
@media screen and (max-width: 425px) {
  .home-selection-produits {
    min-height: 900px;
  }
}

/* Ajuster l'alignement du titre maintenant qu'il est seul */
.home-selection-produits .d-flex.flex-column.flex-lg-row {
  justify-content: center !important;
}

.home-selection-produits .home-h2 {
  text-align: center;
  width: 100%;
}

@media screen and (max-width: 991px) {
  .home-produits {
    padding-top: 4vh;
    padding-bottom: 4vh;
  }
}

@media screen and (min-width: 992px) {
  .home-produits {
    padding-top: 8vh;
    padding-bottom: 8vh;
  }
}

/**** Reassurances ****/
.home-reassurances {
  padding-top: 6vh;
  padding-bottom: 6vh;
  margin-bottom: 0;
  background-color: #fff;
  border-radius: 10px;
  padding: 40px 20px;
}

.home-reassurances .seo-content {
  text-align: left;
}

.home-reassurances h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--color-text);
  margin-bottom: 20px;
  text-align: left;
}

.home-reassurances h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--wp--preset--color--color-text);
  margin-bottom: 25px;
  text-align: left;
}

.home-reassurances .content-text {
  color: var(--wp--preset--color--color-text);
  line-height: 1.7;
  margin-bottom: 30px;
}

.home-reassurances .content-text p {
  margin-bottom: 15px;
}

@media screen and (max-width: 991px) {
  .home-reassurances {
    padding-top: 4vh;
    padding-bottom: 4vh;
  }
}

@media screen and (min-width: 768px) {
  .home-reassurances {
    padding: 50px 40px;
  }

  .home-reassurances h1 {
    font-size: 2.25rem;
  }

  .home-reassurances h2 {
    font-size: 1.75rem;
  }
}

@media screen and (min-width: 991px) {
  .home-reassurances {
    padding-top: 8vh;
    padding-bottom: 8vh;
    padding-left: 80px;
    padding-right: 80px;
    margin-bottom: 0;
  }
  .home-reassurances .right img {
    max-height: 80vh;
    margin: 0 auto;
  }
}

/**** Section Articles ****/
.home-articles {
  padding-top: 6vh;
  padding-bottom: 6vh;
  margin-bottom: 0;
  background: linear-gradient(180deg, #e6f7f5 0%, #fff3f8 100%);
}

.home-articles .container {
  position: relative;
}

.home-articles .articles-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.home-articles h2 {
  text-align: center;
  font-size: 1.75rem;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.home-articles .articles-footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.home-articles .articles-footer .btn-color-1,
.home-articles .articles-header .btn-color-1 {
  display: inline-block;
}

@media screen and (max-width: 991px) {
  .home-articles {
    padding-top: 4vh;
    padding-bottom: 4vh;
  }

  .home-articles .articles-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px 15px 15px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-articles .articles-carousel::-webkit-scrollbar {
    display: none;
  }

  .home-articles .article-slide {
    flex: 0 0 88%;
    max-width: 88%;
    min-width: 88%;
    scroll-snap-align: start;
  }

  .home-articles .articles-header {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .home-articles h2 {
    font-size: 1.5rem;
  }

  .home-articles .articles-footer {
    margin-top: 30px;
  }
}

@media screen and (min-width: 576px) and (max-width: 991px) {
  .home-articles .article-slide {
    flex: 0 0 75%;
    max-width: 75%;
    min-width: 75%;
  }
}

@media screen and (min-width: 992px) {
  .home-articles {
    padding-top: 8vh;
    padding-bottom: 8vh;
  }

  .home-articles .articles-header {
    flex-direction: row;
    margin-bottom: 50px;
  }

  .home-articles h2 {
    font-size: 2.5rem;
  }

  .home-articles .articles-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-articles .article-slide {
    flex: unset;
    max-width: 100%;
    min-width: 0;
  }

  .home-articles .articles-footer {
    margin-top: 50px;
  }
}

/**** Card Article ****/
.article-card {
  position: relative;
  background-color: #fff;
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
  position: relative;
  background-color: #f8f8f8;
  height: 240px;
  overflow: hidden;
}

.article-card .article-image a {
  width: 100%;
  height: 100%;
  display: block;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-card .article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #00bda5 0%, #00a08f 100%);
  color: #fff;
  padding: 6px 14px;
  font-weight: 700;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 189, 165, 0.3);
}

.article-card .article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.article-card .article-title {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.article-card .article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card .article-title a:hover {
  color: var(--wp--preset--color--color-1);
}

.article-card .article-excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
  flex: 1;
}

.article-card .article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.article-card .article-date {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card .article-date i {
  font-size: 0.9rem;
  color: var(--wp--preset--color--color-2);
}

.article-card .article-read-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wp--preset--color--color-2);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.article-card .article-read-btn:hover {
  background: #00a08f;
  transform: scale(1.1);
}

.article-card .article-read-btn i {
  font-size: 1rem;
}

@media screen and (max-width: 991px) {
  .article-card {
    height: 460px;
  }

  .article-card .article-image {
    height: 200px;
  }
}

/**** Section Marques - PHASE 1 FIX 2 : Réduction largeur conteneur ****/
.home-marques {
  padding-top: 6vh;
  padding-bottom: 6vh;
  margin-bottom: 0;
  position: relative;
}

.home-marques:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 78, 73, 1) 0%,
    rgba(42, 78, 73, 1) 11%,
    rgba(255, 255, 255, 0) 100%
  );
}

.home-marques .container {
  background-color: #fff;
  position: relative;
  z-index: 1;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* FIX : Réduction de la largeur maximale */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-marques h2 {
  text-align: center;
  margin-bottom: 5vh;
  font-size: 1.75rem;
  text-transform: uppercase;
  font-weight: 500;
}

.home-marques .marques-featured {
  display: none;
}

@media screen and (max-width: 767px) {
  .home-marques {
    padding-top: 4vh;
    padding-bottom: 4vh;
    min-height: 140px; /* réserve l'espace dès le 1er rendu → évite le CLS au chargement */
  }

  .home-marques .row.justify-content-center {
    display: none !important;
  }
}

@media screen and (min-width: 768px) {
  .home-marques .marques-featured {
    display: block;
    margin-bottom: 5vh;
  }

  .home-marques .item-marque {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    aspect-ratio: 3/4;
    overflow: hidden;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.25s ease-in-out;
    border-radius: 12px;
  }

  .home-marques .item-marque:hover {
    transform: translateY(-10px);
    transition: 0.25s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .home-marques .item-marque .btn-color-1 {
    display: inline-block;
  }
}

.home-marques .slider-marques {
  margin-top: 3vh;
}

@media screen and (max-width: 767px) {
  .home-marques .slider-marques {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-marques .slider-marques::-webkit-scrollbar {
    display: none;
  }

  .home-marques .marques-column {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 45%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .home-marques .slider-marques .marque {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .home-marques .slider-marques .marque:active {
    transform: scale(0.98);
  }

  .home-marques .slider-marques .marque a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .home-marques .slider-marques .marque img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
}

@media screen and (min-width: 768px) {
  .home-marques .slider-marques {
    margin-top: 5vh;
  }

  .home-marques .slider-marques .slick-list {
    margin: 0 -15px;
  }

  .home-marques .slider-marques .slick-slide {
    margin: 0 15px;
  }

  .home-marques .slider-marques .marque {
    border: 0.8px solid #e5e3e3;
    overflow: hidden;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 200px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .home-marques .slider-marques .marque:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: #3a6734;
  }

  .home-marques .slider-marques .marque a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .home-marques .slider-marques .marque img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 140px;
    transition: transform 0.3s ease;
  }

  .home-marques .slider-marques .marque:hover img {
    transform: scale(1.05);
  }

  /* PHASE 1 FIX 3 : Correction flèches slider marques */
  .home-marques .slider-marques .slick-arrow {
    width: 45px;
    height: 45px;
    background-color: #3a6734;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
    /* FIX : Empêcher le scale pour éviter le décalage visuel */
    transform: translateY(0) !important;
  }

  .home-marques .slider-marques .slick-arrow:hover {
    background-color: #2d5228;
    /* FIX : Retrait du scale au hover */
  }

  .home-marques .slider-marques .slick-arrow:before {
    font-size: 20px;
    opacity: 1;
  }

  .home-marques .slider-marques .slick-prev {
    left: -25px;
  }

  .home-marques .slider-marques .slick-next {
    right: -25px;
  }

  .home-marques .slider-marques .slick-dots {
    bottom: -40px;
  }

  .home-marques .slider-marques .slick-dots li button:before {
    font-size: 12px;
    color: #3a6734;
    opacity: 0.3;
  }

  .home-marques .slider-marques .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #3a6734;
  }
}

@media screen and (min-width: 991px) {
  .home-marques {
    padding-top: 7vh;
    padding-bottom: 7vh;
  }

  .home-marques .container {
    padding: 50px;
    /* FIX : Largeur encore plus réduite sur grands écrans */
    max-width: 1300px;
  }

  .home-marques h2 {
    margin-bottom: 10vh;
    font-size: 2.5rem;
  }

  .home-marques .slider-marques {
    margin-top: 10vh;
  }

  .home-marques .slider-marques .marque {
    padding: 50px;
    height: 240px;
  }

  .home-marques .slider-marques .marque img {
    max-height: 160px;
  }
}

/**** Temoignages ****/
.home-temoignages {
  background: linear-gradient(135deg, #e6f7f5 0%, #f8fafb 50%, #fff3f8 100%);
  padding-top: 8vh;
  padding-bottom: 8vh;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.home-temoignages::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 189, 165, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.home-temoignages::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(230, 44, 161, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.home-temoignages .container {
  position: relative;
  z-index: 1;
}

.home-temoignages h2 {
  text-align: center;
  margin-bottom: 6vh;
  color: var(--wp--preset--color--color-8);
  font-size: 2rem;
  font-weight: 600;
  position: relative;
}

.home-temoignages h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--wp--preset--color--color-2) 0%,
    var(--wp--preset--color--color-1) 100%
  );
  margin: 20px auto 0;
  border-radius: 2px;
}

.home-temoignages .temoignages-slider {
  position: relative;
  z-index: 1;
}

.home-temoignages .temoignages-slider .slick-list {
  margin: 0 -10px;
}

.home-temoignages .temoignages-slider .slick-slide {
  padding: 0 10px;
}

.home-temoignages .item-temoignage {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 25px 30px;
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 0 10px;
}

.home-temoignages .item-temoignage:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 189, 165, 0.2);
  border-color: var(--wp--preset--color--color-2);
  background: #ffffff;
}

.home-temoignages .item-temoignage::after {
  content: '"';
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 100px;
  color: rgba(0, 189, 165, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.home-temoignages .item-temoignage > * {
  position: relative;
  z-index: 1;
}

.home-temoignages .item-temoignage > *:not(:last-child) {
  margin-bottom: 12px;
}

.home-temoignages .item-temoignage p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  margin: 0;
}

.home-temoignages .item-temoignage .star-rating,
.home-temoignages .item-temoignage [class*="rating"],
.home-temoignages .item-temoignage [class*="stars"] {
  color: #ffb800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.home-temoignages .item-temoignage h3,
.home-temoignages .item-temoignage h4,
.home-temoignages .item-temoignage strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wp--preset--color--color-8);
  margin-top: 15px;
  margin-bottom: 3px;
}

.home-temoignages .item-temoignage .date,
.home-temoignages .item-temoignage time,
.home-temoignages .item-temoignage small {
  font-size: 0.85rem;
  color: #999;
}

@media screen and (max-width: 991px) {
  .home-temoignages {
    padding-top: 5vh;
    padding-bottom: 5vh;
  }

  .home-temoignages h2 {
    font-size: 1.6rem;
    margin-bottom: 4vh;
  }

  .home-temoignages .item-temoignage {
    padding: 20px 25px;
    margin: 0 8px;
  }

  .home-temoignages .item-temoignage::after {
    font-size: 80px;
    bottom: 8px;
    right: 15px;
  }
}

@media screen and (min-width: 992px) {
  .home-temoignages {
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .home-temoignages h2 {
    font-size: 2.5rem;
  }

  /* PHASE 1 FIX 3 : Correction flèches slider témoignages */
  .home-temoignages .temoignages-slider .slick-arrow {
    width: 50px;
    height: 50px;
    background: linear-gradient(
      135deg,
      var(--wp--preset--color--color-2) 0%,
      #00a08f 100%
    );
    border-radius: 50%;
    z-index: 10;
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 189, 165, 0.3);
    /* FIX : Empêcher le scale et positionnement stable */
    transform: translateY(0) !important;
  }

  .home-temoignages .temoignages-slider .slick-arrow:hover {
    /* FIX : Retrait du scale, ajout effet subtil */
    box-shadow: 0 6px 20px rgba(0, 189, 165, 0.4);
    background: linear-gradient(
      135deg,
      #00a08f 0%,
      var(--wp--preset--color--color-2) 100%
    );
  }

  .home-temoignages .temoignages-slider .slick-arrow:before {
    font-size: 22px;
    opacity: 1;
  }

  .home-temoignages .temoignages-slider .slick-prev {
    left: -30px;
  }

  .home-temoignages .temoignages-slider .slick-next {
    right: -30px;
  }

  .home-temoignages .temoignages-slider .slick-dots {
    bottom: -60px;
  }

  .home-temoignages .temoignages-slider .slick-dots li {
    margin: 0 6px;
  }

  .home-temoignages .temoignages-slider .slick-dots li button:before {
    font-size: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--color-2);
    opacity: 0.3;
    content: "";
    transition: all 0.3s ease;
  }

  .home-temoignages
    .temoignages-slider
    .slick-dots
    li.slick-active
    button:before {
    opacity: 1;
    transform: scale(1.3);
  }

  .home-temoignages .temoignages-slider .slick-dots li:hover button:before {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* ==========================================================================
   PADDING DESKTOP - UNIFORMISATION AVEC MARQUES
   ========================================================================== */

@media screen and (min-width: 992px) {
  /* Container général - toutes sections sauf exceptions */
  .home .container,
  .page-template-front-page .container {
    max-width: 1400px;
    padding-left: 80px;
    padding-right: 80px;
  }

  /* Sections avec padding renforcé - EXCLUT .home-marques .container */
  .home-avantages .container,
  .home-categories .container,
  .home-produits .container,
  .home-articles .container,
  .home-temoignages .container {
    padding-left: 100px !important;
    padding-right: 100px !important;
  }

  /* Exclusions - pas de padding supplémentaire */
  header .container,
  .home-banner .container,
  .hero-banner .container,
  .slider-banner .container,
  footer .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-newsletter .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media screen and (min-width: 1400px) {
  .home .container,
  .page-template-front-page .container {
    max-width: 1600px;
    padding-left: 120px;
    padding-right: 120px;
  }

  .home-avantages .container,
  .home-categories .container,
  .home-produits .container,
  .home-articles .container,
  .home-temoignages .container {
    padding-left: 140px !important;
    padding-right: 140px !important;
  }
}

@media screen and (min-width: 1600px) {
  .home .container,
  .page-template-front-page .container {
    max-width: 1800px;
    padding-left: 160px;
    padding-right: 160px;
  }

  .home-avantages .container,
  .home-categories .container,
  .home-produits .container,
  .home-articles .container,
  .home-temoignages .container {
    padding-left: 180px !important;
    padding-right: 180px !important;
  }
}

/* ==========================================================================
   1. STYLE "À PROPOS" - ALIGNÉ AVEC LES FICHES PRODUIT
   ========================================================================== */

.mobile-pharmacy-info {
  background-color: #fdf3f9;
  padding: 30px 0;
  margin-top: 0;
  margin-bottom: 0; /* Suppression de la marge pour transition fluide */
}

.mobile-pharmacy-info .container {
  padding-left: 15px !important;
  padding-right: 15px !important;
  max-width: 100% !important;
}

.mobile-pharmacy-info h2,
.mobile-pharmacy-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--wp--preset--color--color-8);
  text-align: left;
}

.mobile-pharmacy-info p {
  margin-bottom: 20px;
  color: var(--wp--preset--color--color-text);
  line-height: 1.6;
  text-align: left;
}

/* Grille de réassurance 2x3 comme les fiches produit */
.mobile-pharmacy-info .pharmacy-reassurance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.mobile-pharmacy-info .reassurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background-color: #fff;
  padding: 15px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.mobile-pharmacy-info .reassurance-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.mobile-pharmacy-info .reassurance-item i {
  font-size: 2rem;
  color: var(--wp--preset--color--color-2);
  flex-shrink: 0;
}

.mobile-pharmacy-info .reassurance-item span {
  font-size: 0.75rem;
  color: var(--wp--preset--color--color-text);
  font-weight: 500;
  line-height: 1.3;
}

/* Responsive - 3 colonnes sur tablette */
@media screen and (min-width: 576px) {
  .mobile-pharmacy-info .pharmacy-reassurance {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop - alignement horizontal */
@media screen and (min-width: 992px) {
  .mobile-pharmacy-info {
    padding: 50px 0;
  }

  .mobile-pharmacy-info .container {
    max-width: 1400px !important;
    padding-left: 100px !important;
    padding-right: 100px !important;
  }

  .mobile-pharmacy-info h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .mobile-pharmacy-info p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .mobile-pharmacy-info .pharmacy-reassurance {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .mobile-pharmacy-info .reassurance-item {
    padding: 20px 15px;
  }

  .mobile-pharmacy-info .reassurance-item span {
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 1400px) {
  .mobile-pharmacy-info .container {
    max-width: 1600px !important;
    padding-left: 140px !important;
    padding-right: 140px !important;
  }
}

@media screen and (min-width: 1600px) {
  .mobile-pharmacy-info .container {
    max-width: 1800px !important;
    padding-left: 180px !important;
    padding-right: 180px !important;
  }
}

/* ==========================================================================
   2. DÉGRADÉ NEWSLETTER VERS FOOTER
   ========================================================================== */

/* Ajout du dégradé blanc vers la couleur du footer */
.section-newsletter {
  background: linear-gradient(135deg, #00bda5 0%, #00a676 100%);
  padding: 20px 20px 0 20px;
  position: relative;
  overflow: visible; /* Changé de hidden à visible */
}

/* Dégradé de transition blanc -> couleur footer */
.section-newsletter::after {
  content: "";
  position: absolute;
  bottom: -1px; /* Colle au bas de la section */
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 15%,
    rgba(42, 78, 73, 0.3) 50%,
    rgba(42, 78, 73, 0.7) 75%,
    #2a4e49 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Ajustement du footer pour transition fluide */
footer {
  position: relative;
  background: linear-gradient(135deg, #2a4e49 0%, #1e3a36 100%);
  color: #fff;
  padding-top: 12vh;
  padding-bottom: 8vh;
  overflow: hidden;
  margin-top: -60px; /* Chevauchement avec la newsletter pour transition fluide */
}

@media screen and (max-width: 768px) {
  .section-newsletter {
    padding: 20px 15px 0 15px;
  }

  .section-newsletter::after {
    height: 100px;
  }

  footer {
    margin-top: -50px;
    padding-top: 10vh;
  }
}

@media screen and (min-width: 992px) {
  .section-newsletter {
    padding: 20px 20px 0 20px;
  }

  .section-newsletter::after {
    height: 140px;
  }

  footer {
    margin-top: -70px;
    padding-top: 14vh;
  }
}
