/* ==========================================================================
   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.375rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 2vh;
}
@media screen and (min-width: 991px) {
  .home-h2 {
    font-size: 1.75rem;
  }
}

/****** 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;
}

/* UNE SEULE DIAPOSITIVE DANS LE FLUX TANT QUE SLICK N'A PAS PRIS LA MAIN.

   Sans cette regle, les diapositives sont empilees les unes sous les autres
   au chargement : releve le 2026-11-18 sur l'accueil, le bloc mesurait 780 px
   (deux bannieres de 390) au lieu des 397 px definitifs. Tout ce qui suit —
   les offres, les rayons, la page entiere — descendait d'environ 390 px puis
   remontait d'un coup quand Slick se lancait. Avec le cache cela dure une
   seconde ou deux ; sans cache, le temps que jQuery et Slick arrivent.

   Slick pose « slick-initialized » sur le conteneur et deplace les diapos
   dans son propre .slick-track : passe ce moment, la regle ne s'applique plus
   a rien. Elle ne change donc que l'etat transitoire — aucun risque pour le
   fonctionnement du carrousel. */
.home-banner-slider:not(.slick-initialized) .slide-container:nth-child(n + 2) {
  display: none;
}

.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: 24px;
    padding-bottom: 24px;
  }
}
@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: 0 10px 15px 15px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.produits-carousel::-webkit-scrollbar {
  display: none;
}

.produits-carousel .product-slide {
  flex: 0 0 72%;
  max-width: 72%;
  min-width: 72%;
  scroll-snap-align: start;
}

.produits-carousel .excerpt-product {
  height: 100%;
}

@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 78%;
    max-width: 78%;
    min-width: 78%;
  }
}

/**** 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;
}

/* Ajuster l'alignement du titre maintenant qu'il est seul */
.home-selection-produits .d-flex.flex-column.flex-lg-row {
  justify-content: flex-start !important;
}

.home-selection-produits .home-h2 {
  text-align: left;
  width: 100%;
}

@media screen and (max-width: 991px) {
  .home-selection-produits .d-flex.flex-column.flex-lg-row {
    margin-bottom: 6px !important;
  }
}

@media screen and (max-width: 991px) {
  .home-produits {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@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: 24px;
    padding-bottom: 24px;
  }
}

@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: 24px;
    padding-bottom: 24px;
  }

  .home-articles .articles-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 0 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: 16px;
  }

  .home-articles h2 {
    font-size: 1.5rem;
  }

  .home-articles .articles-footer {
    margin-top: 18px;
  }
}

@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: 24px;
    padding-bottom: 24px;
    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: 28px;
    padding-bottom: 28px;
  }

  .home-temoignages h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }

  .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;
  }

  /* Les « paddings renforces » de ces cinq sections ont ete retires le
     2026-11-17 : ils ajoutaient 20 px a chaque palier, en !important, et
     posaient la section articles 20 px plus a l'interieur que le header. La
     largeur de reference est celle de .container.large, definie une seule
     fois dans header.css. */

  /* 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;
  }

  /* Le bandeau newsletter herite lui aussi des paliers communs : ces 60 px
     le posaient 60 px plus a l'exterieur que le header. */
}

@media screen and (min-width: 1400px) {
  .home .container,
  .page-template-front-page .container {
    max-width: 1600px;
    padding-left: 120px;
    padding-right: 120px;
  }

}

@media screen and (min-width: 1600px) {
  .home .container,
  .page-template-front-page .container {
    max-width: 1800px;
    padding-left: 160px;
    padding-right: 160px;
  }

}

/* ==========================================================================
   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 */
}

/* Ce conteneur porte « large » et herite des paliers communs
   (assets/css/header.css). Les 15 px forces ici, et le max-width a 100 %,
   le decalaient de tout le reste de la page (2026-11-13). */

.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;
}

/* Réassurance refaite le 2026-11-13.
   C'était quatre tuiles centrées, une grosse icône FontAwesome de 2 rem
   au-dessus de trois mots en 0,75 rem : des pictogrammes qui prenaient toute
   la place pour une promesse qu'on ne lisait pas. Chaque promesse a maintenant
   son icône au trait dans une pastille, un intitulé lisible et une seconde
   ligne qui dit ce qu'elle recouvre. */
.mobile-pharmacy-info .pharmacy-reassurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.mobile-pharmacy-info .reassurance-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 13px;
  background-color: #fff;
  padding: 14px 16px;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.mobile-pharmacy-info a.reassurance-item:hover {
  border-color: var(--wp--preset--color--color-1, #e62ca1);
  transform: none;
  box-shadow: none;
}

.mobile-pharmacy-info .reassurance-item .reassurance-item__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f6f8;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.mobile-pharmacy-info .reassurance-item__pastille svg {
  width: 21px;
  height: 21px;
}

.mobile-pharmacy-info .reassurance-item .reassurance-item__texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mobile-pharmacy-info .reassurance-item__texte strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.mobile-pharmacy-info .reassurance-item__texte span {
  font-size: 0.79rem;
  font-weight: 400;
  line-height: 1.35;
  color: #6b7280;
}

/* Plus de nombre de colonnes figé : repeat(auto-fit, minmax(240px, 1fr))
   ci-dessus s'en charge, et une carte ne descend jamais sous la largeur qui
   rend son texte lisible. Les repeat(3) et repeat(6) qui etaient ici donnaient
   six colonnes de 174 px sur un ecran de 1440. */

/* Desktop - alignement horizontal */
@media screen and (min-width: 992px) {
  .mobile-pharmacy-info {
    padding: 50px 0;
  }

  /* Le conteneur porte desormais la classe « large » et reprend les paliers
     du header (product.css). Ce max-width de 1400 px avec 100 px de marge ne
     tombait sur les bords d'aucune autre section. */

  .mobile-pharmacy-info h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .mobile-pharmacy-info p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .mobile-pharmacy-info .reassurance-item {
    padding: 16px 18px;
  }

  .mobile-pharmacy-info .reassurance-item span {
    font-size: 0.8rem;
  }
}

/* Les paliers propres a « A propos » (140 px puis 180 px) ont ete retires :
   le conteneur porte « large » et herite des paliers communs du site
   (assets/css/header.css), 120 px puis 160 px. Il tombait 20 px plus a
   l'interieur que tout le reste de la page (2026-11-13). */

/* ==========================================================================
   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) {
  /* Sans padding lateral : le conteneur interieur porte la largeur. */
  .section-newsletter {
    padding: 20px 0 0;
  }

  .section-newsletter::after {
    height: 140px;
  }

  footer {
    margin-top: -70px;
    padding-top: 14vh;
  }
}

/* ==========================================================================
   RESSERRAGE MOBILE
   Uniquement sous 992 px : le desktop garde ses espacements d'origine.
   ========================================================================== */

@media screen and (max-width: 991px) {
  /* Les points de navigation des sliders reservent 30 px sous chaque slider
     (regle de slick-theme.css), ce qui creusait un blanc entre les sections. */
  .slick-dotted.slick-slider {
    margin-bottom: 0;
  }

  /* Titre du bloc articles a gauche comme les autres */
  .home-articles .articles-header {
    align-items: flex-start;
  }

  /* Le bouton « Voir tous les produits » porte un padding en dur dans
     front-page.php, valable en desktop : on le neutralise ici. */
  .home-selection-produits .row.mt-4 {
    padding-bottom: 0 !important;
    margin-top: 12px !important;
  }
}

/* =============================================================================
   PAGE D'ACCUEIL  (2026-11-13)

   Ordre et choix des blocs définis par le gérant, en s'inspirant de
   docmorris.fr et de fr.iherb.com. Voir lib/accueil.php.
   ============================================================================= */

/* ── Entête commun à toutes les sections ──────────────────────────────────── */

.home-section {
  padding: 36px 0 4px;
}

.home-section__entete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section__titres .home-h2 {
  display: block;
}

.home-section__sous-titre {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #6b7280;
}

.home-lien {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wp--preset--color--color-1, #e62ca1) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.home-lien:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* ── Rangée de produits qui défile ────────────────────────────────────────── */

/* Pas de bibliothèque de carrousel : un conteneur à défilement avec accroche.
   Rien à charger, rien à initialiser, et la molette comme le doigt marchent. */
.home-rangee {
  display: grid;
  grid-auto-flow: column;
  /* Largeur FIXE et non minmax(0, ...) : avec un minimum a zero, les douze
     cartes se comprimaient pour tenir dans la largeur au lieu de deborder, et
     la rangee ne defilait pas (2026-11-13). */
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 10px;
}

.home-rangee__item {
  scroll-snap-align: start;
  min-width: 0;
}

@media screen and (max-width: 1199px) {
  .home-rangee {
    grid-auto-columns: calc((100% - 3 * 14px) / 3.4);
    gap: 14px;
  }
}

@media screen and (max-width: 767px) {
  .home-rangee {
    grid-auto-columns: 62%;
    gap: 12px;
  }
}

/* ── 2. Les deux tuiles d'offre ───────────────────────────────────────────── */

.home-offres {
  padding: 18px 0 0;
}

.home-offres__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-offre {
  --pdc-offre: var(--wp--preset--color--color-1, #e62ca1);
  --pdc-offre-fond: #fdf3f9;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--pdc-offre-fond);
  border: 1px solid color-mix(in srgb, var(--pdc-offre) 18%, #fff);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease;
}

.home-offre--vert {
  --pdc-offre: #0a7d5a;
  --pdc-offre-fond: #effaf5;
}

.home-offre:hover {
  border-color: var(--pdc-offre);
}

.home-offre__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--pdc-offre);
}

.home-offre__icone svg {
  width: 24px;
  height: 24px;
}

.home-offre__corps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-offre__surtitre {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pdc-offre);
}

.home-offre__titre {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.home-offre__detail {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #6b7280;
}

.home-offre__action {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--pdc-offre);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .home-offres__grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-offre {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px 14px;
  }

  .home-offre__icone {
    width: 42px;
    height: 42px;
  }

  .home-offre__action {
    grid-column: 2;
    justify-self: start;
  }
}

/* ── 3. La promesse ───────────────────────────────────────────────────────── */

.home-promesse {
  padding: 26px 0 0;
}

.home-promesse__cadre {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 30px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 16px;
  background: #f5f8f7;
  border: 1px solid #e3eae7;
}

.home-promesse__oeil {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0a7d5a;
}

.home-promesse__oeil svg {
  width: 17px;
  height: 17px;
}

.home-promesse__texte {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.home-promesse__points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-promesse__points li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-promesse__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #0a7d5a;
}

.home-promesse__pastille svg {
  width: 19px;
  height: 19px;
}

.home-promesse__points strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.home-promesse__points li > span > span {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #6b7280;
}

@media screen and (max-width: 991px) {
  .home-promesse__cadre {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
  }

  .home-promesse__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 5. Les marques, en logos ─────────────────────────────────────────────── */

.home-marques-logos__liste {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-marques-logos__liste a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.home-marques-logos__liste a:hover {
  border-color: #c8ccd1;
}

.home-marques-logos__liste img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-marques-logos__nom {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: #4b5563;
  line-height: 1.2;
}

@media screen and (max-width: 1199px) {
  .home-marques-logos__liste {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .home-marques-logos__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-marques-logos__liste a {
    height: 64px;
  }
}

/* ── 6. Promotions, grille 4 x 2 ──────────────────────────────────────────── */

.home-promos-tuiles__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-promo-tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 18px 14px 16px;
  background: #fdf3f9;
  border: 1px solid #f6dcea;
  border-radius: 14px;
  text-align: center;
  text-decoration: none !important;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.home-promo-tuile:hover {
  border-color: var(--wp--preset--color--color-1, #e62ca1);
  transform: translateY(-2px);
}

.home-promo-tuile__visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 10px;
}

.home-promo-tuile__visuel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-promo-tuile__visuel span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
}

.home-promo-tuile__nom {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.home-promo-tuile__compte {
  font-size: 0.76rem;
  color: var(--wp--preset--color--color-1, #e62ca1);
  font-weight: 600;
}

@media screen and (max-width: 991px) {
  .home-promos-tuiles__grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 7. Les catégories ────────────────────────────────────────────────────── */

.home-categories__liste {
  display: grid;
  grid-template-columns: repeat(var(--pdc-rayons, 6), minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --pdc-rayon vient du champ « couleur » du rayon : la tuile porte la couleur
   que le visiteur retrouvera en arrivant sur la page du rayon. */
.home-categorie {
  --pdc-rayon: var(--wp--preset--color--color-1, #e62ca1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  text-align: center;
  text-decoration: none !important;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.home-categorie:hover {
  border-color: var(--pdc-rayon);
  transform: translateY(-2px);
}

.home-categorie__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pdc-rayon) 12%, #fff);
  color: var(--pdc-rayon);
}

.home-categorie__pastille svg {
  width: 26px;
  height: 26px;
}

.home-categorie__nom {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.home-categories__pastilles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.home-categories__depuis {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}

.home-categories__pastilles a {
  padding: 6px 13px;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  color: #374151 !important;
  text-decoration: none !important;
}

.home-categories__pastilles a:hover {
  border-color: var(--wp--preset--color--color-1, #e62ca1);
  color: var(--wp--preset--color--color-1, #e62ca1) !important;
}

@media screen and (max-width: 991px) {
  .home-categories__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 575px) {
  .home-categories__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-categories__pastilles {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-categories__pastilles::-webkit-scrollbar {
    display: none;
  }

  .home-categories__pastilles a,
  .home-categories__depuis {
    flex: 0 0 auto;
  }
}

/* ── 9. Les avis ──────────────────────────────────────────────────────────── */

.home-avis__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-avis__carte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
}

.home-avis__etoiles {
  display: inline-flex;
  gap: 2px;
}

.home-avis__etoiles svg {
  fill: #dfe1e5;
}

.home-avis__etoiles svg.est-pleine {
  fill: #f5a623;
}

.home-avis__sujet {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2937;
}

.home-avis__carte blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4b5563;
}

@media screen and (max-width: 991px) {
  .home-avis__liste {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── 11. Comment payer moins cher ─────────────────────────────────────────── */

.home-economies {
  padding-bottom: 36px;
}

.home-economies__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-economie {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
}

.home-economie__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  border-radius: 10px;
  background: #fdf3f9;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.home-economie__pastille svg {
  width: 20px;
  height: 20px;
}

.home-economie strong {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
}

.home-economie p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b7280;
}

.home-economie .home-lien {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.82rem;
}

@media screen and (max-width: 991px) {
  .home-economies__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 575px) {
  .home-economies__liste {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Respiration générale sur téléphone ───────────────────────────────────── */

@media screen and (max-width: 767px) {
  .home-section {
    padding-top: 28px;
  }

  .home-section__entete {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* =============================================================================
   PAGE D'ACCUEIL SUR TÉLÉPHONE  (2026-11-13)

   Mesures avant retouche, sur 375 px de large : 13 324 px de hauteur, dont
   5 616 pour le seul texte de référencement, 961 pour « Comment payer moins
   cher », 831 pour les tuiles de promotion, 794 pour les avis et 508 pour les
   marques. Chaque bloc est traité à la source de sa hauteur plutôt qu'en
   rognant partout les marges.
   ============================================================================= */

@media screen and (max-width: 991px) {
  /* ── Le texte de référencement, replié ────────────────────────────────────
     Sept écrans de texte d'affilée sur un téléphone. Le contenu reste dans la
     page, avec ses titres et ses liens : seul son affichage est borné. Sur
     ordinateur il tient, il y reste déplié. */
  .pdc-seo__case {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .home-reassurances .content-text {
    max-height: 300px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 200px, transparent);
    mask-image: linear-gradient(to bottom, #000 200px, transparent);
  }

  .pdc-seo__case:checked ~ .content-text {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .pdc-seo__bouton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 20px;
    border: 1px solid #e0e2e5;
    border-radius: 999px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
  }

  .pdc-seo__bouton svg {
    transition: transform 0.2s ease;
  }

  .pdc-seo__fermer {
    display: none;
  }

  .pdc-seo__case:checked ~ .pdc-seo__bouton .pdc-seo__ouvrir {
    display: none;
  }

  .pdc-seo__case:checked ~ .pdc-seo__bouton .pdc-seo__fermer {
    display: inline;
  }

  .pdc-seo__case:checked ~ .pdc-seo__bouton svg {
    transform: rotate(180deg);
  }

  /* ── Les marques : une rangée qui défile ──────────────────────────────────
     Quatorze logos sur trois colonnes faisaient cinq rangées pour une
     information qu'on parcourt du regard. */
  .home-marques-logos__liste {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .home-marques-logos__liste::-webkit-scrollbar {
    display: none;
  }

  .home-marques-logos__liste li {
    flex: 0 0 38%;
    scroll-snap-align: start;
  }

  .home-marques-logos__liste a {
    height: 70px;
  }

  /* ── Les avis : une rangée qui défile ─────────────────────────────────────
     Trois avis empilés faisaient 794 px ; on en lit un, on fait glisser pour
     le suivant. */
  .home-avis__liste {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .home-avis__liste::-webkit-scrollbar {
    display: none;
  }

  .home-avis__carte {
    flex: 0 0 86%;
    scroll-snap-align: start;
    padding: 16px 18px;
  }

  /* ── « Comment payer moins cher » : deux colonnes ──────────────────────── */
  .home-economies__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-economie {
    padding: 14px;
  }

  .home-economie__pastille {
    width: 34px;
    height: 34px;
  }

  .home-economie__pastille svg {
    width: 17px;
    height: 17px;
  }

  .home-economie strong {
    font-size: 0.85rem;
  }

  .home-economie p {
    font-size: 0.76rem;
  }

  /* ── Tuiles de promotion plus basses ──────────────────────────────────── */
  .home-promo-tuile {
    padding: 12px 10px;
    gap: 6px;
  }

  .home-promo-tuile__visuel {
    height: 42px;
    padding: 4px 8px;
  }

  .home-promo-tuile__nom {
    font-size: 0.82rem;
  }

  .home-promo-tuile__compte {
    font-size: 0.72rem;
  }

  /* ── La promesse, resserrée ───────────────────────────────────────────── */
  .home-promesse__points li {
    gap: 6px;
  }

  .home-promesse__pastille {
    width: 32px;
    height: 32px;
  }

  .home-promesse__pastille svg {
    width: 16px;
    height: 16px;
  }

  .home-promesse__points strong {
    font-size: 0.8rem;
  }

  .home-promesse__points li > span > span {
    font-size: 0.73rem;
  }
}

/* Deux colonnes dès les très petits écrans pour « payer moins cher » : à une
   par rangée, le bloc faisait presque un écran à lui seul. */
@media screen and (max-width: 575px) {
  .home-economies__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* La case a cocher et le bouton du depliant n'existent que pour le telephone :
   au-dessus de 992 px le texte est deplie, le bouton ne ferait rien et la case
   apparaissait en clair sous le titre. */
.pdc-seo__case {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media screen and (min-width: 992px) {
  .pdc-seo__bouton {
    display: none;
  }
}

/* =============================================================================
   ACCUEIL — DEUXIÈME PASSE  (2026-11-13, retours du gérant)

   Offres en visuels, engagement remis en forme, six produits par rangée,
   promotions en images, icônes de rayon plus grandes, avis en carrousel,
   réassurance de retour, bloc « payer moins cher » en bandeau.
   ============================================================================= */

/* ── 2. Les deux offres, en visuels cliquables ────────────────────────────── */

.home-offre--visuel {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

.home-offre--visuel img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.home-offre--visuel:hover img {
  transform: scale(1.02);
}

/* Secours sans visuel : un encart de couleur, sans pastille d'icône ni bouton.
   L'assemblage icône + sur-titre + titre + détail + bouton faisait fabriqué. */
.home-offre {
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 24px;
  min-height: 132px;
  align-content: center;
}

.home-offre__surtitre {
  font-size: 0.73rem;
}

.home-offre__titre {
  font-size: 1.15rem;
}

/* ── 3. L'engagement ──────────────────────────────────────────────────────────
   L'icône passe AU-DESSUS du libellé et le libellé tient sur une ligne ou
   deux : quatre pavés « icône + titre + sous-titre » alignés se lisaient comme
   un formulaire. */

.home-promesse__cadre {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 32px;
  background: #eef6f2;
  border-color: #d9e9e1;
}

.home-promesse__titre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0a6b4d;
}

.home-promesse__sceau {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0a7d5a;
  color: #fff;
}

.home-promesse__sceau svg {
  width: 17px;
  height: 17px;
}

.home-promesse__texte {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3d4b45;
}

.home-promesse__texte a {
  color: #0a7d5a !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.home-promesse__points li {
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 12px;
}

.home-promesse__pastille {
  background: transparent;
  width: 30px;
  height: 30px;
}

.home-promesse__pastille svg {
  width: 26px;
  height: 26px;
}

.home-promesse__points strong {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
}

/* ── 4. Six produits par rangée ───────────────────────────────────────────────
   Les cartes faisaient 224 px de large pour cinq par rangée : trop grosses
   pour une vitrine d'accueil, où l'on veut montrer du choix. */

.home-rangee {
  grid-auto-columns: calc((100% - 5 * 14px) / 6);
  gap: 14px;
}

@media screen and (min-width: 992px) {
  .home-rangee .excerpt-product .product-title,
  .home-rangee .excerpt-product .product-title a {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .home-rangee .excerpt-product .price,
  .home-rangee .excerpt-product .price * {
    font-size: 1rem;
  }

  .home-rangee .excerpt-product .image {
    aspect-ratio: 1 / 1;
  }
}

@media screen and (max-width: 1399px) {
  .home-rangee {
    grid-auto-columns: calc((100% - 4 * 14px) / 5);
  }
}

@media screen and (max-width: 1199px) {
  .home-rangee {
    grid-auto-columns: calc((100% - 3 * 14px) / 4);
  }
}

/* ── 6. Promotions en visuels ─────────────────────────────────────────────── */

.home-promo-tuile--visuel {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-color: #e8eaed;
}

.home-promo-tuile--visuel .home-promo-tuile__visuel {
  width: 100%;
  height: auto;
  padding: 0;
  border-radius: 0;
  line-height: 0;
}

.home-promo-tuile--visuel .home-promo-tuile__visuel img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: none;
}

.home-promo-tuile--visuel .home-promo-tuile__nom,
.home-promo-tuile--visuel .home-promo-tuile__compte {
  padding: 0 14px;
}

.home-promo-tuile--visuel .home-promo-tuile__nom {
  padding-top: 12px;
}

.home-promo-tuile--visuel .home-promo-tuile__compte {
  padding-bottom: 14px;
}

/* ── 7. Catégories : des icônes plus grandes ──────────────────────────────── */

.home-categorie__pastille {
  width: 76px;
  height: 76px;
}

.home-categorie__pastille svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.home-categorie {
  padding: 22px 12px;
}

.home-categorie__nom {
  font-size: 0.92rem;
}

/* ── 9. Les avis, en carrousel ────────────────────────────────────────────── */

/* grid-template-columns: none est indispensable : une regle plus haute dans ce
   fichier posait repeat(3, 1fr). Melangee a grid-auto-flow: column, elle
   rangeait les trois premiers avis dans des colonnes explicites qui se
   partageaient la place restante, et le premier tombait a 38 px de large avec
   sa citation sur quarante lignes (2026-11-13). */
.home-avis__liste {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 16px) / 3);
  align-items: start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.home-avis__liste::-webkit-scrollbar {
  display: none;
}

.home-avis__carte {
  scroll-snap-align: start;
  min-width: 0;
}

/* Moins de vide entre les avis et le pavé de référencement : il y avait deux
   paddings de section bout à bout. */
.home-avis {
  padding-bottom: 0;
}

.home-reassurances {
  padding-top: 10px;
}

/* ── 10 bis. La réassurance, avant le texte de référencement ──────────────── */

.home-rassure {
  padding: 26px 0 6px;
}

.home-rassure__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-rassure__item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
}

a.home-rassure__item:hover {
  border-color: var(--wp--preset--color--color-1, #e62ca1);
}

.home-rassure__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f6f8;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.home-rassure__pastille svg {
  width: 19px;
  height: 19px;
}

.home-rassure__texte {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.home-rassure__texte strong {
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2937;
}

.home-rassure__texte span {
  font-size: 0.76rem;
  line-height: 1.3;
  color: #6b7280;
}

/* ── 11. Payer moins cher, en bandeau ─────────────────────────────────────── */

.home-economies {
  padding: 30px 0 36px;
}

.home-economies__cadre {
  padding: 30px 32px;
  background: #f5f8f7;
  border: 1px solid #e3eae7;
  border-radius: 18px;
}

.home-economies__entete {
  margin-bottom: 22px;
  text-align: center;
}

.home-economies__entete .home-h2 {
  display: block;
}

.home-economies__entete p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #6b7280;
}

.home-economies__liste {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* L'icône au-dessus, le texte centré : quatre repères qu'on balaie du regard,
   pas quatre paragraphes à lire. */
.home-economie {
  align-items: center;
  gap: 8px;
  padding: 22px 18px;
  text-align: center;
  border-color: #e3eae7;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease;
}

a.home-economie:hover {
  border-color: #0a7d5a;
}

.home-economie__pastille {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #eef6f2;
  color: #0a7d5a;
}

.home-economie__pastille svg {
  width: 26px;
  height: 26px;
}

.home-economie strong {
  font-size: 0.95rem;
}

.home-economie > span:last-child {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b7280;
}

/* =============================================================================
   TÉLÉPHONE
   ============================================================================= */

@media screen and (max-width: 991px) {
  /* Bannière moins haute : elle prenait presque la moitié du premier écran. */
  .home-banner .home-banner-slider img,
  .home-banner-slider .slide-container picture img {
    max-height: 230px;
    object-fit: cover;
  }

  /* Les deux offres, resserrées. */
  .home-offre {
    min-height: 0;
    padding: 14px 16px;
  }

  .home-offre--visuel img {
    aspect-ratio: 5 / 2;
  }

  .home-offre__titre {
    font-size: 1rem;
  }

  /* L'engagement : le panneau sur une colonne, puis les repères en rangée qui
     défile, le quatrième à moitié visible pour montrer qu'il y en a plus.
     La colonne unique doit être redite ici : la règle à deux colonnes de la
     deuxième passe vient plus bas dans le fichier et gagnerait sinon. */
  .home-promesse__cadre {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .home-promesse__titre {
    font-size: 1.05rem;
  }

  .home-promesse__points {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .home-promesse__points::-webkit-scrollbar {
    display: none;
  }

  .home-promesse__points li {
    flex: 0 0 42%;
    scroll-snap-align: start;
    padding: 14px 12px;
  }

  /* Deux cartes par rangée et un bout de la troisième : le pouce comprend
     qu'il peut faire glisser. */
  .home-rangee {
    grid-auto-columns: 43%;
    gap: 10px;
  }

  .home-rangee .excerpt-product .product-title,
  .home-rangee .excerpt-product .product-title a {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .home-rangee .excerpt-product .price,
  .home-rangee .excerpt-product .price * {
    font-size: 0.95rem;
  }

  /* Marques : quatre et un bout de la cinquième. */
  .home-marques-logos__liste li {
    flex: 0 0 23%;
  }

  .home-marques-logos__liste a {
    height: 62px;
  }

  /* Promotions : une tuile et la moitié de la suivante. */
  .home-promos-tuiles__grille {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .home-promos-tuiles__grille::-webkit-scrollbar {
    display: none;
  }

  .home-promos-tuiles__grille li {
    flex: 0 0 66%;
    scroll-snap-align: start;
  }

  /* Catégories : deux colonnes de pastilles allongées, icône à gauche du nom,
     comme sur la capture fournie. */
  .home-categories__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-categorie {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 999px;
    background: #f7f8f9;
    border-color: transparent;
    text-align: left;
  }

  .home-categorie:hover {
    transform: none;
  }

  .home-categorie__pastille {
    width: 32px;
    height: 32px;
    background: transparent;
  }

  .home-categorie__pastille svg {
    width: 28px;
    height: 28px;
  }

  .home-categorie__nom {
    font-size: 0.88rem;
  }

  /* Avis : un seul visible, il avance tout seul (assets/js/accueil.js). */
  .home-avis__liste {
    grid-template-columns: none;
    grid-auto-columns: 88%;
    align-items: start;
    gap: 12px;
  }

  /* Payer moins cher : deux visibles et un bout du troisième. */
  .home-economies__cadre {
    padding: 18px 16px;
  }

  .home-economies__liste {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
    grid-template-columns: none;
  }

  .home-economies__liste::-webkit-scrollbar {
    display: none;
  }

  .home-economies__liste li {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }

  .home-economie {
    height: 100%;
    padding: 16px 12px;
  }

  .home-economie__pastille {
    width: 42px;
    height: 42px;
  }

  .home-economie__pastille svg {
    width: 21px;
    height: 21px;
  }

  .home-economie strong {
    font-size: 0.85rem;
  }

  .home-economie > span:last-child {
    font-size: 0.76rem;
  }

  /* Réassurance : deux colonnes. */
  .home-rassure__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-rassure__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 12px;
  }
}

/* =============================================================================
   ACCUEIL — TROISIÈME PASSE  (2026-11-13, retours du gérant)

   Offres : de vraies images, rien d'autre. Promotions : des coupons, visuel à
   droite et texte à gauche, sans pastille de marque. Payer moins cher : une
   image large au-dessus de chaque intitulé. Réassurance : le panneau de
   l'engagement, repris tel quel dans une teinte neutre.
   ============================================================================= */

/* ── 2. Les deux offres : une image dans un lien ──────────────────────────────
   Plus de sur-titre, de pastille ni de bouton fabriqués en CSS : le texte est
   dessiné dans l'image, comme sur un bandeau de pharmacie. */

.home-offres__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-offre {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

.home-offre img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1160 / 210;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-offre:hover img {
  transform: scale(1.015);
}

/* ── 3 et 10 bis. Le panneau, servi deux fois ────────────────────────────────
   Les points portent maintenant un lien ou un div intermédiaire : c'est lui
   qui fait la carte blanche, pas le <li>. */

.home-promesse__points li {
  display: block;
}

.home-promesse__points li > div,
.home-promesse__points li > a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 14px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
}

.home-promesse__points li > a:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.home-promesse__points li > * > span:last-child {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #6b7280;
}

/* Variante neutre : le même panneau, en bas de page, aux couleurs de la
   pharmacie plutôt qu'au vert de l'engagement. */
.home-promesse--neutre {
  padding: 30px 0 6px;
}

.home-promesse--neutre .home-promesse__cadre {
  background: #f7f8fa;
  border-color: #e8eaed;
}

.home-promesse--neutre .home-promesse__titre {
  color: #1f2937;
}

.home-promesse--neutre .home-promesse__sceau {
  background: var(--wp--preset--color--color-1, #e62ca1);
}

.home-promesse--neutre .home-promesse__texte a {
  color: var(--wp--preset--color--color-1, #e62ca1) !important;
}

.home-promesse--neutre .home-promesse__pastille {
  color: var(--wp--preset--color--color-1, #e62ca1);
}

/* ── 6. Promotions : des coupons ─────────────────────────────────────────────
   Le produit sort du cadre à droite, le texte garde sa colonne à gauche : la
   remise se lit d'un coup d'œil, l'image ne la repousse pas vers le bas. */

.home-promos-tuiles__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-coupon {
  position: relative;
  display: block;
  min-height: 136px;
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--coupon-fond, #eef6f2);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.18s ease;
}

.home-coupon:hover {
  transform: translateY(-2px);
}

.home-coupon__mot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 58%;
}

.home-coupon__marque {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--coupon-texte, #0a6b4d);
}

.home-coupon__remise {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--coupon-texte, #0a6b4d);
}

.home-coupon__visuel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.home-coupon__visuel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* Repli sur les logos de marque : ils arrivent sur fond blanc, que multiply
   efface sur la teinte du coupon. */
.home-coupon--logo .home-coupon__visuel {
  width: 38%;
  align-items: center;
  padding: 12px;
}

.home-coupon--logo .home-coupon__visuel img {
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.home-coupon--vert {
  --coupon-fond: #e4f1ea;
  --coupon-texte: #0a6b4d;
}

.home-coupon--rose {
  --coupon-fond: #fde8f4;
  --coupon-texte: #b01a74;
}

.home-coupon--bleu {
  --coupon-fond: #e6effb;
  --coupon-texte: #14518f;
}

.home-coupon--sable {
  --coupon-fond: #fbf1e2;
  --coupon-texte: #8a5a16;
}

/* ── 11. Payer moins cher : une image par avantage ───────────────────────────
   Plus de bandeau teinté autour, plus de pastille ronde : un titre à gauche,
   puis quatre colonnes image + intitulé + une ligne. */

.home-economies {
  padding: 34px 0 40px;
}

.home-economies__entete {
  margin-bottom: 18px;
  text-align: left;
}

.home-economies__entete p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #6b7280;
}

.home-economies__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-economie {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  text-decoration: none !important;
  color: inherit !important;
}

.home-economie__visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 136px;
  margin-bottom: 7px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f4;
}

.home-economie__visuel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-economie__visuel--attente {
  background: #eef6f2;
  color: #0a7d5a;
}

.home-economie__visuel--attente svg {
  width: 46px;
  height: 46px;
}

.home-economie strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.home-economie > span:last-child {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
}

a.home-economie:hover strong {
  text-decoration: underline;
}

/* ── Téléphone ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
  /* Les deux bandeaux l'un sous l'autre : côte à côte, un format 5,5 / 1
     tomberait à 30 px de haut. */
  .home-offres__grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  /* Promotions : un coupon et la moitié du suivant. */
  .home-promos-tuiles__grille {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .home-promos-tuiles__grille::-webkit-scrollbar {
    display: none;
  }

  .home-promos-tuiles__grille li {
    flex: 0 0 66%;
    scroll-snap-align: start;
  }

  .home-coupon {
    min-height: 112px;
    padding: 13px 14px;
  }

  .home-coupon__marque {
    font-size: 0.76rem;
  }

  .home-coupon__remise {
    font-size: 0.98rem;
  }

  /* Payer moins cher : deux visibles et un bout du troisième. Il faut
     reposer le défilement ici : la règle en grille de quatre colonnes de cette
     passe vient après le bloc téléphone de la passe précédente, et écrasait
     son display: flex (les colonnes tombaient à 74 px). */
  .home-economies {
    padding: 22px 0 26px;
  }

  .home-economies__liste {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .home-economies__liste::-webkit-scrollbar {
    display: none;
  }

  .home-economies__liste li {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }

  .home-economie__visuel {
    height: 96px;
    margin-bottom: 5px;
  }

  .home-economie__visuel--attente svg {
    width: 34px;
    height: 34px;
  }

  .home-economie strong {
    font-size: 0.84rem;
  }

  .home-economie > span:last-child {
    font-size: 0.76rem;
  }

  /* Le panneau, resserré : deux cartes par rangée. */
  .home-promesse__points li > div,
  .home-promesse__points li > a {
    gap: 5px;
    padding: 12px 11px;
  }

  .home-promesse--neutre {
    padding: 20px 0 4px;
  }
}

/* =============================================================================
   ACCUEIL — QUATRIÈME PASSE  (2026-11-17, retours du gérant)

   Promotions : un seul fond et une seule couleur d'étiquette, le visuel du
   produit à droite. Engagement : bandeau sur toute la largeur de l'écran,
   icône à gauche et texte à droite. Cartes produit resserrées. Catégories :
   huit par rangée, sans fond ni cadre, le cadre n'apparaît qu'au survol.
   ============================================================================= */

/* ── 3 et 10 bis. Le panneau, en bandeau pleine largeur ──────────────────────
   Le fond passe sur la <section>, qui n'a pas de largeur maximale : il va d'un
   bord à l'autre de l'écran pendant que le texte reste aligné sur le header,
   grâce au .container.large qui est dedans. */

.home-promesse {
  margin: 26px 0 0;
  padding: 0;
  background: #eef6f2;
  border-top: 1px solid #dceae3;
  border-bottom: 1px solid #dceae3;
}

.home-promesse__cadre {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 30px;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: 0;
  border-radius: 0;
}

/* L'icône à gauche, le titre et la phrase à droite. */
.home-promesse__mot {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.home-promesse__sceau {
  margin-top: 2px;
  width: 38px;
  height: 38px;
}

.home-promesse__sceau svg {
  width: 21px;
  height: 21px;
}

.home-promesse__dire {
  display: block;
  min-width: 0;
}

.home-promesse__titre {
  display: block;
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0a6b4d;
}

.home-promesse__texte {
  display: block;
  margin: 0;
}

.home-promesse--neutre {
  background: #f7f8fa;
  border-top-color: #e8eaed;
  border-bottom-color: #e8eaed;
}

.home-promesse--neutre .home-promesse__cadre {
  background: none;
}

/* ── 4. Des cartes plus petites ──────────────────────────────────────────────
   Six par rangée sur une vitrine d'accueil : l'image occupait 220 px de haut
   et le titre 0,95 rem, soit une carte de bientôt 400 px. On la resserre comme
   le fait le concurrent, l'image carrée et le texte en dessous. */

.home-rangee .excerpt-product {
  border-radius: 12px;
}

.home-rangee .excerpt-product .image {
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 10px;
}

.home-rangee .excerpt-product > .cats {
  margin-top: 8px;
  padding: 0 10px;
}

.home-rangee .excerpt-product > .cats .cat {
  padding: 2px 8px;
  font-size: 0.62rem;
}

.home-rangee .excerpt-product .excerpt-product-content {
  gap: 5px;
  padding: 8px 10px 12px;
}

.home-rangee .excerpt-product .excerpt-product-content .title {
  margin-bottom: 4px;
  font-size: 0.78rem;
  line-height: 1.3;
  min-height: 2.6em;
}

.home-rangee .excerpt-product .excerpt-product-content .price,
.home-rangee .excerpt-product .excerpt-product-content .price * {
  font-size: 0.92rem;
}

.home-rangee .excerpt-product .excerpt-product__contenance {
  font-size: 0.72rem;
}

/* ── 6. Promotions : un seul fond, une seule étiquette ───────────────────── */

.home-coupon,
.home-coupon--logo {
  background: #e4f1ea;
}

.home-coupon__marque,
.home-coupon__remise {
  color: #0a6b4d;
}

.home-coupon__marque {
  font-size: 0.78rem;
}

.home-coupon__remise {
  font-size: 1.18rem;
}

/* L'étiquette : même rose pour toutes, c'est un repère, pas une couleur de
   rangement. */
.home-coupon__etiquette {
  align-self: flex-start;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--wp--preset--color--color-1, #e62ca1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── 7. Catégories : huit par rangée, sans fond ni cadre ─────────────────── */

.home-categories__liste {
  grid-template-columns: repeat(var(--pdc-rayons, 8), minmax(0, 1fr));
  gap: 8px;
}

.home-categorie {
  gap: 8px;
  padding: 14px 8px;
  background: transparent;
  border-color: transparent;
}

.home-categorie:hover {
  background: #fff;
  border-color: var(--pdc-rayon);
}

.home-categorie__pastille {
  width: 64px;
  height: 64px;
  background: transparent;
}

.home-categorie__pastille svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.home-categorie__nom {
  font-size: 0.84rem;
}

/* ── Téléphone ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
  /* Le bandeau prend toute la largeur, titre et texte resserrés. */
  .home-promesse {
    margin-top: 18px;
  }

  .home-promesse__cadre {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
  }

  .home-promesse__mot {
    gap: 10px;
  }

  .home-promesse__sceau {
    width: 30px;
    height: 30px;
  }

  .home-promesse__sceau svg {
    width: 17px;
    height: 17px;
  }

  .home-promesse__titre {
    margin-bottom: 4px;
    font-size: 0.95rem;
  }

  .home-promesse__texte {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Cartes produit : même resserrement qu'en grand écran. */
  .home-rangee .excerpt-product .excerpt-product-content {
    padding: 8px 10px 10px;
  }

  .home-rangee .excerpt-product .excerpt-product-content .title {
    font-size: 0.76rem;
  }

  .home-rangee .excerpt-product .excerpt-product-content .price,
  .home-rangee .excerpt-product .excerpt-product-content .price * {
    font-size: 0.88rem;
  }

  /* Catégories : on garde les pastilles allongées sur deux colonnes. */
  .home-categories__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-categorie {
    padding: 14px 16px;
    background: #f7f8f9;
  }

  .home-categorie:hover {
    background: #f7f8f9;
  }

  .home-categorie__pastille {
    width: 32px;
    height: 32px;
  }

  .home-categorie__pastille svg {
    width: 28px;
    height: 28px;
  }

  .home-categorie__nom {
    font-size: 0.88rem;
  }

  .home-coupon__remise {
    font-size: 1.02rem;
  }

  .home-coupon__etiquette {
    font-size: 0.68rem;
  }
}

/* Cartes encore un peu plus basses : l'image colle de plus pres au produit et
   le bloc de texte perd ses marges mortes (2026-11-17). */
.home-rangee .excerpt-product .image {
  padding: 6px;
}

.home-rangee .excerpt-product > .cats {
  margin-top: 6px;
}

.home-rangee .excerpt-product .excerpt-product-content {
  gap: 4px;
  padding: 6px 10px 10px;
}

.home-rangee .excerpt-product .excerpt-product-content .title {
  min-height: 2.4em;
}

/* Coupons sur telephone : la colonne de texte gagne quelques points sur le
   visuel, sinon un intitule un peu long passe sous l'image. */
@media screen and (max-width: 991px) {
  .home-coupon__mot {
    width: 64%;
  }

  .home-coupon__visuel {
    width: 36%;
  }

  .home-coupon__remise {
    font-size: 0.94rem;
  }
}

/* =============================================================================
   ACCUEIL — CINQUIÈME PASSE  (2026-11-17, retours du gérant)

   Engagement sur une seule ligne, bouton dans les tuiles de promotion, fond
   blanc des photos effacé, dessins plus grands dans « payer moins cher ».
   ============================================================================= */

/* ── 3 et 10 bis. Le bandeau sur une seule ligne ──────────────────────────────
   Icône, titre et phrase se suivent sur la même ligne, et les quatre repères
   passent dessous sur toute la largeur. En deux colonnes, le texte retombait
   sur deux lignes sous le titre. */

.home-promesse__cadre {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.home-promesse__mot {
  align-items: center;
  gap: 12px;
}

.home-promesse__sceau {
  margin-top: 0;
}

.home-promesse__dire {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.home-promesse__titre {
  margin: 0;
  white-space: nowrap;
}

.home-promesse__texte {
  flex: 1;
  min-width: 0;
}

.home-promesse__points {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── 6. Promotions : un bouton et des photos détourées ───────────────────────
   Le fond blanc des photos produit disparaît avec multiply : sur un aplat
   clair, le blanc prend la couleur du fond et seul le flacon reste. C'est le
   seul moyen sans retoucher les 5 000 visuels du catalogue. */

.home-coupon {
  min-height: 158px;
}

.home-coupon__visuel img,
.home-coupon--logo .home-coupon__visuel img {
  mix-blend-mode: multiply;
}

.home-coupon__bouton {
  align-self: flex-start;
  margin-top: 9px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--wp--preset--color--color-1, #e62ca1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.home-coupon:hover .home-coupon__bouton {
  background: #c41d80;
}

/* ── 11. Payer moins cher : des dessins, pas des pictogrammes ─────────────── */

.home-economie__visuel--attente .pdc-dessin {
  width: 104px;
  height: 104px;
}

/* ── Téléphone ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
  /* Le titre reprend sa ligne : côte à côte, il ne resterait rien pour la
     phrase sur 375 px. */
  .home-promesse__dire {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .home-promesse__titre {
    white-space: normal;
  }

  .home-promesse__mot {
    align-items: flex-start;
  }

  .home-promesse__sceau {
    margin-top: 2px;
  }

  .home-coupon {
    min-height: 136px;
  }

  .home-coupon__bouton {
    margin-top: 7px;
    padding: 6px 11px;
    font-size: 0.72rem;
  }

  .home-economie__visuel--attente .pdc-dessin {
    width: 74px;
    height: 74px;
  }
}

/* =============================================================================
   ACCUEIL — SIXIÈME PASSE  (2026-11-17, retours du gérant)

   Le panneau d'engagement : texte à gauche hors des cartes, puis les quatre
   cartes, icône à gauche et libellé à droite dans chacune.
   ============================================================================= */

.home-promesse__cadre {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr);
  gap: 28px;
  align-items: center;
}

/* Le bloc de texte : titre, puis paragraphe. Plus de pastille devant. */
.home-promesse__mot {
  display: block;
}

.home-promesse__dire {
  display: block;
}

.home-promesse__titre {
  display: block;
  margin: 0 0 6px;
  white-space: normal;
}

.home-promesse__texte {
  display: block;
}

.home-promesse__sceau {
  display: none;
}

/* Les cartes : l'icône tient la première colonne sur toute la hauteur, le
   libellé et son détail s'empilent dans la seconde. */
.home-promesse__points li > div,
.home-promesse__points li > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 11px;
  row-gap: 2px;
  align-items: center;
  align-content: center;
  padding: 14px 13px;
}

.home-promesse__points li > * > .home-promesse__pastille {
  grid-row: 1 / -1;
}

.home-promesse__pastille {
  width: 34px;
  height: 34px;
}

.home-promesse__pastille svg {
  width: 26px;
  height: 26px;
}

.home-promesse__points strong {
  font-size: 0.82rem;
}

@media screen and (max-width: 991px) {
  .home-promesse__cadre {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .home-promesse__points li > div,
  .home-promesse__points li > a {
    padding: 12px 11px;
  }
}

/* =============================================================================
   ACCUEIL — SEPTIÈME PASSE  (2026-11-17, retours du gérant)

   Le deuxième bandeau de réassurance se tenait de travers, les cartes
   d'articles sont resserrées et collées au bandeau, et les étiquettes de
   promotion redescendent à la taille des nouvelles cartes.
   ============================================================================= */

/* ── Le bandeau de réassurance : les cartes à deux lignes ────────────────────
   La pastille portait grid-row: 1 / -1 sans rangées explicites, donc elle ne
   couvrait qu'une rangée : la ligne de détail repassait en colonne 1, la
   colonne « auto » se dimensionnait sur ce texte-là et le libellé se trouvait
   écrasé contre le bord droit. On nomme donc la colonne de chaque élément. */

.home-promesse__points li > * > .home-promesse__pastille {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.home-promesse__points li > * > strong {
  grid-column: 2;
  grid-row: 1;
}

.home-promesse__points li > * > span:last-child {
  grid-column: 2;
  grid-row: 2;
}

/* Sans ligne de détail, la deuxième rangée n'existe pas et la pastille se
   recadre toute seule : rien à prévoir pour le bandeau du haut. */

/* ── Les articles : largeur du header et cartes plus basses ───────────────── */

.home-articles {
  padding-top: 42px;
  padding-bottom: 34px;
  margin-bottom: 0;
}

.home-articles .article-card .article-image {
  height: 172px;
}

.home-articles .article-card .article-content {
  gap: 8px;
  padding: 14px 16px 16px;
}

.home-articles .article-card .article-title {
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.home-articles .article-card .article-excerpt {
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  min-height: 2.4em;
}

.home-articles .articles-carousel {
  gap: 16px;
}

/* Le bandeau de réassurance vient se poser contre le dégradé des articles :
   les 26 px de blanc entre les deux ne séparaient rien. */
.home-promesse--neutre {
  margin-top: 0;
}

/* ── Les étiquettes des cartes produit ────────────────────────────────────────
   « 3 POUR 9,90 € » gardait la taille prévue pour une carte de rayon : sur une
   carte d'accueil de 186 px, elle en couvrait la moitié. */

.home-rangee .excerpt-product .badge-sale {
  top: 8px;
  left: 8px;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.74rem;
  box-shadow: 0 2px 6px rgba(230, 44, 161, 0.32);
}

.home-rangee .excerpt-product .badge-sale .bulk {
  font-size: 0.68rem;
}

.home-rangee .excerpt-product .badge-nouveau,
.home-rangee .excerpt-product .badge-unavailable {
  top: 8px;
  left: 8px;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.72rem;
}

.home-rangee .excerpt-product .badge-low-stock {
  padding: 4px 9px;
  font-size: 0.68rem;
}

@media screen and (max-width: 991px) {
  .home-articles {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .home-articles .article-card .article-image {
    height: 148px;
  }

  .home-rangee .excerpt-product .badge-sale {
    padding: 4px 9px;
    font-size: 0.7rem;
  }
}

/* =============================================================================
   ACCUEIL — HUITIÈME PASSE  (2026-11-17, retours du gérant)

   Étiquettes lisibles sans couvrir la photo, panneau de réassurance qui tient
   sur un téléphone, marques sur deux rangées, et cadrage du visuel des
   promotions réglable.
   ============================================================================= */

/* ── Les étiquettes de promotion ─────────────────────────────────────────────
   Trop petites pour être lues sur ordinateur, et sur téléphone « 3 POUR
   9,90 € » passait à la ligne : l'étiquette faisait alors 102 x 47 px sur une
   carte de 147, elle couvrait le produit. Une seule ligne, toujours. */

.home-rangee .excerpt-product .badge-sale {
  padding: 6px 12px;
  font-size: 0.84rem;
  white-space: nowrap;
  max-width: calc(100% - 16px);
}

/* ── Le panneau de réassurance ───────────────────────────────────────────── */

.home-promesse__points strong {
  font-size: 0.9rem;
}

.home-promesse__pastille {
  width: 36px;
  height: 36px;
}

.home-promesse__pastille svg {
  width: 28px;
  height: 28px;
}

/* ── Promotions : où se pose le visuel ───────────────────────────────────────
   Au milieu de la hauteur par défaut. Une photo plus haute que large se
   retrouvait sinon tassée en bas à droite de la tuile. Le gérant choisit
   autrement, tuile par tuile, et séparément pour le téléphone. */

.home-coupon__visuel img,
.home-coupon--logo .home-coupon__visuel img {
  object-position: right center;
}

.home-coupon--cadrage-centre .home-coupon__visuel img {
  object-position: right center;
}

.home-coupon--cadrage-bas .home-coupon__visuel img {
  object-position: right bottom;
}

.home-coupon--cadrage-haut .home-coupon__visuel img {
  object-position: right top;
}

/* ── Téléphone ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
  .home-rangee .excerpt-product .badge-sale {
    top: 7px;
    left: 7px;
    padding: 3px 8px;
    border-radius: 11px;
    font-size: 0.64rem;
  }

  .home-rangee .excerpt-product .badge-nouveau,
  .home-rangee .excerpt-product .badge-unavailable {
    top: 7px;
    left: 7px;
    padding: 3px 8px;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  /* L'icône passe AU-DESSUS du libellé : à 46 % de largeur, une carte laisse
     60 px au texte quand l'icône est à côté, et les mots débordaient. */
  .home-promesse__points li {
    flex: 0 0 46%;
  }

  .home-promesse__points li > div,
  .home-promesse__points li > a {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5px;
    padding: 13px 12px;
  }

  .home-promesse__points li > * > .home-promesse__pastille {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 38px;
    height: 38px;
  }

  .home-promesse__points li > * > .home-promesse__pastille svg {
    width: 30px;
    height: 30px;
  }

  .home-promesse__points li > * > strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.84rem;
  }

  .home-promesse__points li > * > span:last-child {
    grid-column: 1;
    grid-row: 3;
  }

  /* UNE seule rangée de marques qui défile (2026-11-19, demande du gérant).
     Elles étaient passées sur deux rangées le 2026-11-17, pour montrer plus de
     logos d'un coup ; le bloc prenait alors 170 px de haut au milieu de la page
     et pesait plus lourd que ce qu'il apporte. Une rangée, des vignettes un peu
     plus larges, et on fait défiler. */
  .home-marques-logos__liste {
    display: grid;
    /* indispensable : la regle de base pose sept colonnes explicites, et les
       logos s'y rangeaient a 34 px de large au lieu de suivre
       grid-auto-columns. */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: auto;
    grid-auto-columns: 32%;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .home-marques-logos__liste li {
    scroll-snap-align: start;
  }

  .home-marques-logos__liste a {
    height: 74px;
  }

  /* Cadrage propre au téléphone, s'il a été choisi. */
  .home-coupon--mobile-centre .home-coupon__visuel img {
    object-position: right center;
  }

  .home-coupon--mobile-bas .home-coupon__visuel img {
    object-position: right bottom;
  }

  .home-coupon--mobile-haut .home-coupon__visuel img {
    object-position: right top;
  }
}

/* =============================================================================
   ACCUEIL — NEUVIÈME PASSE  (2026-11-17, retours du gérant)

   Les pastilles du diaporama disparaissent, et la page tient enfin sur les
   deux largeurs intermédiaires : la tablette (576 à 991 px), qui héritait de
   réglages pensés pour un écran de 375 px, et le petit écran d'ordinateur
   (992 à 1199 px), où les cartes de réassurance n'avaient plus que 38 px pour
   leur libellé.
   ============================================================================= */

/* ── Le diaporama : plus de pastilles de navigation ──────────────────────────
   Elles attiraient l'oeil hors de la bannière et n'apprenaient rien : le
   diaporama tourne tout seul et se fait glisser au doigt. */

.home-banner .slick-dots,
.home-banner-slider .slick-dots {
  display: none !important;
}

/* Un mot long ne sort plus de sa carte, quelle que soit la largeur. */
.home-promesse__points strong,
.home-promesse__points li > * > span:last-child {
  /* break-word et non anywhere : anywhere coupait « pharmacien » en deux et
     laissait le « n » seul sur sa ligne. */
  overflow-wrap: break-word;
}

/* ── Tablette : 576 à 991 px ─────────────────────────────────────────────────
   Mêmes rangées à défilement que sur téléphone, mais on en montre davantage :
   à 768 px, une carte produit occupait 296 px et un avis 605. */

@media screen and (min-width: 576px) and (max-width: 991px) {
  .home-rangee {
    grid-auto-columns: 30%;
    gap: 12px;
  }

  .home-promesse__points li {
    flex: 0 0 31%;
  }

  .home-promos-tuiles__grille li {
    flex: 0 0 42%;
  }

  .home-economies__liste li {
    flex: 0 0 31%;
  }

  .home-avis__liste {
    grid-auto-columns: 58%;
  }

  .home-marques-logos__liste {
    grid-auto-columns: 19%;
  }

  .home-categories__liste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-economie__visuel {
    height: 118px;
  }
}

/* ── Petit écran d'ordinateur : 992 à 1199 px ────────────────────────────────
   L'icône à côté du libellé laissait 38 px de texte dans une carte de 139 :
   les mots sortaient du cadre. Elle repasse au-dessus, comme sur téléphone. */

@media screen and (min-width: 992px) and (max-width: 1199px) {
  /* Le texte repasse AU-DESSUS des cartes : a 1024 px, le partage en deux
     colonnes ne laissait que 132 px par carte, et aucune disposition interne
     ne rattrape ca. Sur une seule colonne, chaque carte fait 200 px. */
  .home-promesse__cadre {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-promesse__points li > div,
  .home-promesse__points li > a {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding: 13px 12px;
  }

  .home-promesse__points li > * > .home-promesse__pastille {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 38px;
    height: 38px;
  }

  .home-promesse__points li > * > .home-promesse__pastille svg {
    width: 30px;
    height: 30px;
  }

  .home-promesse__points li > * > strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.86rem;
  }

  .home-promesse__points li > * > span:last-child {
    grid-column: 1;
    grid-row: 3;
  }

  /* Huit rayons sur une rangée tombaient à 99 px de large : quatre par
     rangée, sur deux rangées. */
  .home-categories__liste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-coupon__remise {
    font-size: 1.04rem;
  }
}

/* =============================================================================
   ACCUEIL — DIXIÈME PASSE  (2026-11-17, retours du gérant)

   La section articles sur tablette, et l'étiquette de stock sur les rangées
   de l'accueil.
   ============================================================================= */

/* Quatre articles, deux par rangée : le défilement horizontal gardait des
   cartes de 362 px sur un conteneur de 540, soit une carte et demie visible
   pour un bloc qu'on parcourt du regard. */
@media screen and (min-width: 576px) and (max-width: 991px) {
  .home-articles .articles-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-articles .article-slide {
    flex: none;
    min-width: 0;
    max-width: none;
  }

  .home-articles .article-card .article-image {
    height: 136px;
  }

  .home-articles .article-card .article-title {
    font-size: 0.9rem;
  }

  .home-articles .article-card .article-content {
    padding: 12px 14px 14px;
  }

  /* Les cartes se calent sur leur contenu : etirees sur la hauteur de la
     rangee, l'extrait (flex: 1) gonflait a 185 px et laissait un grand blanc
     avant la date. */
  .home-articles .articles-carousel {
    align-items: start;
  }

  .home-articles .article-card {
    height: auto;
  }

  .home-articles .article-card .article-excerpt {
    flex: 0 0 auto;
  }
}

/* Sur les rangées de l'accueil, l'étiquette reste courte jusqu'à 1199 px :
   les cartes y font 202 px, pas 280. */
@media screen and (max-width: 1199px) {
  .home-rangee .badge-low-stock__long {
    display: none;
  }
}

/* =============================================================================
   ACCUEIL — ONZIÈME PASSE  (2026-11-19, retours du gérant)

   Les cartes d'article du téléphone à la taille des autres cartes de la page.
   Elles faisaient 280 x 460 quand les cartes produit, deux sections plus haut,
   en font 147 x 310 : deux objets de même nature, l'un deux fois plus gros que
   l'autre, sur la même page qu'on fait défiler d'un pouce. On ne les aligne pas
   au pixel près — un titre d'article a besoin de plus de largeur qu'un nom de
   produit — mais on les ramène dans la même famille : 62 % de l'écran au lieu
   de 88 %, image deux fois plus basse, et la hauteur tombe à ~310 px.
   ============================================================================= */

@media screen and (max-width: 991px) {
  .home-articles .articles-carousel {
    gap: 12px;
  }

  /* 62 % : on voit la carte suivante dépasser, c'est ce qui dit qu'on peut
     faire défiler. A 88 % la deuxième carte n'apparaissait pas du tout. */
  .home-articles .article-slide {
    flex: 0 0 62%;
    max-width: 62%;
    min-width: 62%;
  }

  .article-card {
    height: auto;
    border-radius: 12px;
  }

  .article-card .article-image {
    height: 118px;
  }

  .article-card .article-category {
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    font-size: 0.6rem;
    border-radius: 14px;
  }

  .article-card .article-content {
    gap: 7px;
    padding: 11px 12px 12px;
  }

  .article-card .article-title {
    font-size: 0.86rem;
    line-height: 1.3;
    min-height: 2.6em;
    -webkit-line-clamp: 2;
  }

  /* Le chapô tombe à deux lignes : à cette largeur, trois lignes de 0,78 rem
     remplissaient la carte sans que personne ne les lise avant d'avoir choisi
     l'article par son titre. */
  .article-card .article-excerpt {
    font-size: 0.76rem;
    line-height: 1.45;
    min-height: 2.9em;
    -webkit-line-clamp: 2;
  }

  .article-card .article-footer {
    padding-top: 9px;
  }

  .article-card .article-date {
    font-size: 0.7rem;
    gap: 4px;
  }

  .article-card .article-date i,
  .article-card .article-date svg {
    font-size: 0.78rem;
    width: 12px;
    height: 12px;
  }

  .article-card .article-read-btn {
    width: 30px;
    height: 30px;
  }

  .article-card .article-read-btn i,
  .article-card .article-read-btn svg {
    font-size: 0.78rem;
    width: 13px;
    height: 13px;
  }
}

/* Entre 576 et 991 px l'écran est plus large : deux cartes et demie tiennent,
   la règle de 75 % héritée du téléphone n'a plus lieu d'être. */
@media screen and (min-width: 576px) and (max-width: 991px) {
  .home-articles .article-slide {
    flex: 0 0 44%;
    max-width: 44%;
    min-width: 44%;
  }

  .article-card .article-image {
    height: 140px;
  }
}

/* =============================================================================
   ACCUEIL — DOUZIÈME PASSE  (2026-11-19)

   Trois corrections de fond : une accroche sous la bannière, le texte de
   référencement replié aussi sur ordinateur, et les titres de section qui
   deviennent de vrais h2 (côté PHP, rien à faire ici : .home-h2 portait déjà
   toute la mise en forme).
   ============================================================================= */

/* L'accroche sous la bannière a été retirée le 2026-11-19, quelques heures
   après sa pose : son habillage est parti avec elle. */

/* ── Le texte de référencement replié AUSSI sur ordinateur ─────────────────── */

/* Il était borné sur téléphone depuis le 2026-11-13 et restait déplié
   au-dessus de 992 px : 2 719 px de prose sur les 8 065 px de la page, soit
   un tiers de l'accueil pour 793 mots que personne ne lit en arrivant. Replié,
   pas masqué : le texte, ses onze intertitres et ses liens internes restent
   dans la page dès le chargement, donc toujours lus par les moteurs. Le
   dépliant est une case à cocher et son label, sans JavaScript. */

@media screen and (min-width: 992px) {
  .home-reassurances .content-text {
    max-height: 280px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 180px, transparent);
    mask-image: linear-gradient(to bottom, #000 180px, transparent);
  }

  .pdc-seo__case:checked ~ .content-text {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .pdc-seo__bouton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 11px 22px;
    border: 1px solid #e0e2e5;
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
  }

  .pdc-seo__bouton svg {
    transition: transform 0.2s ease;
  }

  .pdc-seo__fermer {
    display: none;
  }

  .pdc-seo__case:checked ~ .pdc-seo__bouton .pdc-seo__ouvrir {
    display: none;
  }

  .pdc-seo__case:checked ~ .pdc-seo__bouton .pdc-seo__fermer {
    display: inline;
  }

  .pdc-seo__case:checked ~ .pdc-seo__bouton svg {
    transform: rotate(180deg);
  }
}
