.imgBan {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infoBan {
  background-color: rgba(245, 245, 245, 0.75)
}

html, body { overflow-x: clip; }

@media screen and (min-width: 768px) {
  .infoBan {
    position: absolute;
    top: 0%;
    left: 0%;
  }
}

/* start service */
.card {
  margin: auto;
  background-color: transparent;
}

.card-img-top {
  overflow: hidden;
}

.cardBestPromoNewText {
  height: auto;
  flex: 0 0 auto;
}

.cardBestPromoNewPhoto {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.cardBestPromoNewPlus {
  height: auto;
  flex: 0 0 auto;
  margin-top: auto; /* colle "Voir plus" en bas */
}

/* Carte : layout stable, même hauteur, pas de débordement */
.cardBestPromoNew {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Couleurs réglées dans « Design accueil » : la carte porte --card-title, --card-title-hover et --card-text. */
.cardBestPromoNew .titleCardBestPromoNew {
  color: var(--card-title, inherit) !important;
}

.cardBestPromoNew .titleCardBestPromoNew:hover {
  color: var(--card-title-hover, var(--card-title, inherit)) !important;
}

.cardBestPromoNew .colorCardBestPromoNewText {
  color: var(--card-text, inherit) !important;
}

.cardBestPromoNew .colorCardBestPromoNewText:hover {
  color: var(--card-title-hover, var(--card-text, inherit)) !important;
}

/* Noms de produits jusqu'à 30 caractères : police réduite. */
.cardBestPromoNew .home-product-name {
  font-size: 0.85rem;
}
.cardBestPromoNewPhoto img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Le carrousel doit remplir la zone photo pour que :
   - les flèches soient toujours au milieu de la carte
   - le contenu puisse être centré verticalement même si peu d'éléments */
.cardBestPromoNewPhoto > .carousel {
  height: 100%;
}

.cardBestPromoNewPhoto > .carousel > .carousel-inner {
  height: 100%;
}

.cardBestPromoNewPhoto > .carousel > .carousel-inner > .carousel-item {
  height: 100%;
}

.cardBestPromoNewPhoto > .carousel > .carousel-inner > .carousel-item > .row {
  height: 100%;
  align-content: center; /* centre les vignettes si seulement 1-2 éléments */
}

.cardBestPromoNewPhoto .carousel-control-prev,
.cardBestPromoNewPhoto .carousel-control-next {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

/* =========================================================
   Home - Grille responsive des cartes (1 à 4 par ligne)
   ========================================================= */
.home-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: stretch;
  box-sizing: border-box;
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
  max-width: 100%;
  position: relative;
  z-index: 2;
}

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

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

@media screen and (min-width: 1400px) {
  .home-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1200px) {
  .home-cards-grid {
    padding-left: calc(48px + env(safe-area-inset-left, 0px));
    padding-right: calc(48px + env(safe-area-inset-right, 0px));
  }
}

.home-card {
  width: 100%;
  height: 100%;
  min-width: 0;
}

/* =========================================================
   Home - Cartes catégories (mode 9 éléments)
   Objectif : réduire l'espace vertical pour conserver "Voir plus" visible
   ========================================================= */
.home-category-grid-9 .home-cat-cell {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.home-category-grid-9 .home-cat-thumb {
  display: block;
  margin-bottom: 0.15rem;
}

.home-category-grid-9 .home-cat-label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.1;
}

/* Carrousel (même quand les indicateurs n'existent pas) :
   on réserve une hauteur fixe en bas pour que la disposition reste identique
   entre "carrousel ON" et "carrousel OFF". */
.home-category-carousel .carousel-inner {
  padding-bottom: 18px;
}

.home-category-carousel--with-indicators .carousel-indicators {
  bottom: 2px;
  margin-bottom: 0;
}

/* Mode 4 éléments : indicateurs un peu plus hauts (évite de descendre sous "Voir plus") */
.home-category-carousel--with-indicators.home-carousel-perview-4 .carousel-inner {
  padding-bottom: 16px;
}

.home-category-carousel--with-indicators.home-carousel-perview-4 .carousel-indicators {
  bottom: 2px;
}

/* Mode 9 éléments : un peu plus de marge pour éviter chevauchement */
.home-category-carousel--with-indicators.home-carousel-perview-9 .carousel-inner {
  padding-bottom: 24px;
}

.home-category-carousel--with-indicators.home-carousel-perview-9 .carousel-indicators {
  bottom: 2px;
}

@media screen and (max-width: 575px){
  .cardBestPromoNew {
    min-height: 92vw;
  }

  .positionAbsoluteFonduHome {
    height : 40vw;
  }

  .home-cards-grid,
  .positionAbsoluteContentHome {
    margin-top: -18.2vw;
  }

  .home-hero--stacked .home-prestation {
    margin-top: -18.2vw;
  }
}

@media screen and (max-width: 767px) {
  .card {
    width: 84vw;
  }
  
  .card-img-top {
    height: 26vw;
  }
  
  .imgService {
    width: 25%;
  }
}

@media screen and (min-width: 576px) and (max-width: 767px){
  .cardBestPromoNew {
    min-height: clamp(380px, 52vw, 540px);
  }

  .positionAbsoluteFonduHome {
    height : 40vw;
  }

  .home-cards-grid,
  .positionAbsoluteContentHome {
    margin-top: -18.2vw;
  }

  .home-hero--stacked .home-prestation {
    margin-top: -18.2vw;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px){
  .card {
    width: 300px;
  }
  
  .card-img-top {
    height: 130px;
  }
  
  .imgService {
    width: 40%;
  }

  .cardBestPromoNew {
    min-height: clamp(380px, 44vw, 540px);
  }

  .positionAbsoluteFonduHome {
    height : 40vw;
  }

  .home-cards-grid,
  .positionAbsoluteContentHome {
    margin-top: -18.2vw;
  }

  .home-hero--stacked .home-prestation {
    margin-top: -18.2vw;
  }
}

@media screen and (min-width: 992px) {
  .card {
    width: 219px;
  }
  
  .card-img-top {
    height: 120px; 
  }
  
  .imgService {
    width: 50%;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .cardBestPromoNew {
    min-height: 380px;
  }

  .positionAbsoluteFonduHome {
    height : 384px;
  }

  .home-cards-grid,
  .positionAbsoluteContentHome {
    margin-top: -174px;
  }

  .home-hero--stacked .home-prestation {
    margin-top: -174px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .cardBestPromoNew {
    min-height: 410px;
  }

  .positionAbsoluteFonduHome {
    height : 456px;
  }

  .home-cards-grid,
  .positionAbsoluteContentHome {
    margin-top: -206px;
  }

  .home-hero--stacked .home-prestation {
    margin-top: -206px;
  }
}

@media screen and (min-width: 1400px){
  .cardBestPromoNew {
    min-height: 460px;
  }

  .positionAbsoluteFonduHome {
    height : 528px;
  }

  .home-cards-grid,
  .positionAbsoluteContentHome {
    margin-top: -238px;
  }

  .home-hero--stacked .home-prestation {
    margin-top: -238px;
  }
}

.positionAbsoluteFonduHome {
  top: 0px;
  width: 100%;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

#carouselPhoto {
  position: relative;
  z-index: 0;
}

#homeCardsGrid {
  z-index: 2;
}

.imgService {
  display: block;
  margin: auto;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}

.card-img-top:hover .imgService {
  -ms-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -webkit-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
  
}

.card-title {
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #000;
}

.card-text {
  font-size: 0.8em;
}
/* end service */


/* start comment */
.textComment {
  font-size: 0.9em;
}

.modal-content {
  width: 90vw;
}

.bi-x-lg {
  width: 25px;
  height: 25px;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}

.bi-x-lg:hover {
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
}

.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {  
  background-color: rgba(0, 0, 0, 0.75);
}

.carousel-control-prev, .carousel-control-next {
  width: 50px;
}

.linkFormTerms {
  text-decoration: none;
  text-decoration: underline;
  color: black;
  font-weight: 500;
}

.cursor-pointer {
  cursor: pointer;
}

.home-hero--prestation .home-cards-grid,
.home-hero--prestation .positionAbsoluteContentHome,
.home-hero--stacked .home-cards-grid,
.home-hero--stacked .positionAbsoluteContentHome,
.home-hero--empty .home-cards-grid,
.home-hero--empty .positionAbsoluteContentHome {
  margin-top: 0;
}

.home-hero--empty .home-cards-grid {
  padding-top: 16px;
}

.home-hero--prestation .positionAbsoluteFonduHome,
.home-hero--empty .positionAbsoluteFonduHome {
  display: none;
}

.home-hero--no-comments {
  padding-bottom: 1.25rem;
}

.home-prestation-block.slide-bottom-top {
  transform: translateY(25%);
  opacity: 0;
}

.home-prestation-block.slide-top-bottom {
  transform: translateY(-25%);
  opacity: 0;
}

.home-prestation-block.slide-left-right {
  transform: translateX(-50%);
  opacity: 0;
}

.home-prestation-block.slide-right-left {
  transform: translateX(50%);
  opacity: 0;
}

.home-prestation-anim.anim-fade,
.home-prestation-anim.anim-zoom,
.home-prestation-anim.anim-zoom-out,
.home-prestation-anim.anim-bounce,
.home-prestation-anim.anim-flip,
.home-prestation-anim.anim-swing {
  opacity: 0;
}

.home-prestation-anim.anim-zoom {
  transform: scale(0.82);
}

.home-prestation-anim.anim-zoom-out {
  transform: scale(1.12);
}

.home-prestation-anim.anim-bounce {
  transform: translateY(18%);
}

.home-prestation-anim.anim-flip {
  transform: perspective(800px) rotateY(-55deg);
}

.home-prestation-anim.anim-swing {
  transform: rotate(-6deg) translateY(12%);
}

.home-prestation-block.animateSlideBottomTop {
  animation: homePrestationBottomTop var(--anim-ms, 1000ms) forwards linear;
}

.home-prestation-block.animateSlideTopBottom {
  animation: homePrestationTopBottom var(--anim-ms, 1000ms) forwards linear;
}

.home-prestation-block.animateSlideLeftRight {
  animation: homePrestationLeftRight var(--anim-ms, 1000ms) forwards linear;
}

.home-prestation-block.animateSlideRightLeft {
  animation: homePrestationRightLeft var(--anim-ms, 1000ms) forwards linear;
}

.home-prestation-anim.animateAnimFade {
  animation: homePrestationFade var(--anim-ms, 1000ms) forwards ease;
}

.home-prestation-anim.animateAnimZoom {
  animation: homePrestationZoom var(--anim-ms, 1000ms) forwards ease;
}

.home-prestation-anim.animateAnimZoomOut {
  animation: homePrestationZoomOut var(--anim-ms, 1000ms) forwards ease;
}

.home-prestation-anim.animateAnimBounce {
  animation: homePrestationBounce var(--anim-ms, 1000ms) forwards ease;
}

.home-prestation-anim.animateAnimFlip {
  animation: homePrestationFlip var(--anim-ms, 1000ms) forwards ease;
}

.home-prestation-anim.animateAnimSwing {
  animation: homePrestationSwing var(--anim-ms, 1000ms) forwards ease;
}

@keyframes homePrestationBottomTop {
  from { transform: translateY(25%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationTopBottom {
  from { transform: translateY(-25%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationLeftRight {
  from { transform: translateX(-50%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationRightLeft {
  from { transform: translateX(50%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes homePrestationZoom {
  from { transform: scale(0.82); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationZoomOut {
  from { transform: scale(1.12); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationBounce {
  0% { transform: translateY(18%); opacity: 0; }
  55% { transform: translateY(-10px); opacity: 1; }
  75% { transform: translateY(4px); }
  100% { transform: none; opacity: 1; }
}

@keyframes homePrestationFlip {
  from { transform: perspective(800px) rotateY(-55deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes homePrestationSwing {
  0% { transform: rotate(-6deg) translateY(12%); opacity: 0; }
  60% { transform: rotate(2deg) translateY(0); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-prestation-block.slide-bottom-top,
  .home-prestation-block.slide-top-bottom,
  .home-prestation-block.slide-left-right,
  .home-prestation-block.slide-right-left,
  .home-prestation-anim.anim-fade,
  .home-prestation-anim.anim-zoom,
  .home-prestation-anim.anim-zoom-out,
  .home-prestation-anim.anim-bounce,
  .home-prestation-anim.anim-flip,
  .home-prestation-anim.anim-swing {
    transform: none;
    opacity: 1;
    animation: none;
  }
}

.home-prestation {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 8vw 1rem;
}

.home-prestation-block {
  display: block;
}

.home-prestation-anim {
  display: grid;
  gap: 0;
  align-items: center;
}

.home-prestation-block.is-photo-left .home-prestation-anim {
  grid-template-columns: minmax(0, var(--image-share, 50%)) minmax(0, var(--text-share, 50%));
}

.home-prestation-block.is-photo-left .home-prestation-photo {
  order: -1;
}

.home-prestation-block.is-photo-right .home-prestation-anim {
  grid-template-columns: minmax(0, var(--text-share, 50%)) minmax(0, var(--image-share, 50%));
}

.home-prestation-block.is-text-only .home-prestation-anim {
  grid-template-columns: minmax(0, 1fr);
}

.home-prestation-text {
  font-size: 1.05rem;
  line-height: 1.65;
  min-width: 0;
}

.home-prestation-photo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.home-prestation-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .home-prestation {
    padding: 1.25rem 1rem 0.5rem;
    gap: 1.75rem;
  }

  .home-prestation-block.is-photo-left .home-prestation-anim,
  .home-prestation-block.is-photo-right .home-prestation-anim {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* end comment */
