html,
body {
  height: 100%;
  margin: 0;
  max-width: 100vw;
  /* overflow-x: hidden;  // à activer si tu as du scroll horizontal parasite */
}

main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  flex: 1 0 auto;
}

.hero {
  background: url('images/bg-cbd.jpg') no-repeat center center;
  background-size: cover;
  color: green;
  padding: 100px 20px;
  text-align: center;
}

.product-card img {
  width: 100%;
  border-radius: 10px;
}

footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  flex-shrink: 0;
}

footer p {
  margin-bottom: 0.3rem;
}

.bienfaits_img {
  width: 100%;
  max-width: 600px;
  /* limite la taille maximale */
  height: auto;
  /* garde le bon ratio */
  display: block;
  margin: 0 auto;
  /* centre l’image */
  border-radius: 10px;
  /* optionnel : coins arrondis */
}

body {
  background-color: beige;
  color: #2f2f2f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
  color: #1b5e20;
  /* vert foncé naturel */
}

a {
  color: #388e3c;
  text-decoration: none;
}

a:hover {
  color: #1b5e20;
  text-decoration: none;
}

.card-title {
  color: #1b5e20;
}

footer {
  background: linear-gradient(90deg, #0a1d0a 0%, #14532d 100%) !important;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Personnalisation des flèches du carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #1b5e20;
  /* couleur de fond de la flèche */
  border-radius: 50%;
  /* forme ronde */
  padding: 15px;
  /* taille des flèches */
  background-size: 60% 60%;
  /* taille de l’icône de flèche */
}


/* Limite la taille max des images du carousel produits */
.carousel-inner img {
  width: 100%;
  max-width: 600px;
  /* limite la taille maximale */
  height: auto;
  /* garde le bon ratio */
  display: block;
  margin: 0 auto;
  /* centre l’image */
}

/* Gère la zone de texte des captions */
.carousel-caption {
  position: absolute;
  bottom: 15%;
  /* ❗ remonte légèrement le texte */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 12px;
  color: white;
  z-index: 10;
  text-align: center;
}


/* Texte dans le caption */
.carousel-caption h5 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  color: #dddddd;
  font-size: 1rem;
  margin-bottom: 0;
}

#carouselProduits {
  max-height: 500px;
  overflow: hidden;
}

#carouselProduits .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  #carouselProduits {
    max-height: 500px;
  }
}

@media (max-width: 767px) {
  #carouselProduits {
    max-height: 300px;
  }
}

@media (max-width: 767px) {
  .carousel-caption {
    bottom: 10%;
    /* encore plus remonté sur petit écran */
    padding: 10px;
  }

  .carousel-caption h5 {
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }
}

#carouselProduits .carousel-item img {
  object-fit: cover;
  width: 100%;
}

#carouselProduits {
  max-height: 500px;
  overflow: hidden;
  /* ❌ à éviter */
}

#map {
  height: 400px;
  width: 100%;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.gradient-text {
  background: linear-gradient(90deg, #f7e967 0%, #43ea7d 60%, #14532d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.navbar.bg-success {
  background: linear-gradient(90deg, #0a1d0a 0%, #14532d 100%) !important;
}

.navbar-brand img {
  box-shadow: 0 2px 8px rgba(56, 142, 60, 0.15);
  border-radius: 50%;
}

/*.navbar {
  border-bottom: 2px solid #cddc39;
}
  */
.navbar .container-fluid {
  position: relative;
  /*justify-content: center !important;*/
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 2;
}

.navbar-brand img:hover {
  transform: scale(1.08) rotate(-3deg);
  transition: transform 0.2s;
  box-shadow: 0 4px 16px rgba(56, 142, 60, 0.25);
}

.gradient-text:hover {
  text-shadow: 0 0 8px #cddc39, 0 0 16px #8bc34a;
  cursor: pointer;
}

@media (min-width: 992px) {

  /* Large écrans (desktop) */
  .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
  }
}

@media (max-width: 991.98px) {

  /* Tablette et mobile */
  .navbar-brand {
    position: static;
    left: unset;
    top: unset;
    transform: unset;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }
}

.navbar-nav .nav-link {
  position: relative;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: rgba(67, 234, 125, 0.15);
  color: #43ea7d;
  box-shadow: 0 2px 8px rgba(67, 234, 125, 0.15);
  text-decoration: none;
}

.navbar-nav .nav-link.active {
  background: linear-gradient(90deg, #14532d 0%, #43ea7d 100%);
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.18);
  border-radius: 2rem;
}

.navbar-nav .nav-item:not(:last-child) {
  margin-right: 0.5rem;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.77, 0, .18, 1), transform 0.8s cubic-bezier(.77, 0, .18, 1);
}

.fade-in-on-scroll.appear {
  opacity: 1;
  transform: none;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(67, 234, 125, 0.4);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(67, 234, 125, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.carousel-item img:hover {
  filter: brightness(1.08) saturate(1.2);
  transition: filter 0.2s;
}

small,
.text-muted,
.text-small,
.lead {
  font-size: 1.1rem !important;
  /* ou ajuste à 1.2rem si tu veux encore plus grand */
  color: #2e3d2f !important;
  /* vert/gris foncé pour le contraste */
  font-weight: 500;
}

p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #263a29;
}

#haut {
  text-align: center;
}

.footer-custom {
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  overflow-x: hidden;
  margin-top: 0 !important;
  padding-top: 0.2rem !important;
}

.footer-left,
.footer-center {
  min-width: 0;
}

.footer-left .footer-icons a {
  font-size: 2rem;
  transition: font-size 0.2s;
}

@media (max-width: 767px) {
  .footer-custom {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
    gap: 0.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
  }

  .footer-center {
    width: 100%;
    justify-content: center !important;
    display: flex !important;
    align-items: center;
    margin-bottom: 0.3rem;
  }

  .footer-center a {
    display: inline-block;
    margin: 0.3rem 0;
    font-size: 1.1rem;
    text-align: center;
    word-break: break-word;
  }

  .footer-left {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 0.2rem;
  }

  .footer-left p {
    margin-bottom: 0.3rem;
    width: 100%;
  }

  .footer-left .footer-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
  }

  .footer-left a {
    margin: 0 0.5rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 767px) {
  .footer-left .footer-icons a {
    font-size: 2.5rem !important;
    margin: 0 0.4rem;
  }

  .footer-left .footer-icons {
    gap: 0.5rem;
  }
}

#scrollToTop {
  background: linear-gradient(90deg, #43ea7d 0%, #14532d 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 16px rgba(67, 234, 125, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  z-index: 2000 !important;
  opacity: 0.92;
}

.pfoot {
  background: linear-gradient(90deg, #C13584 0%, #43ea7d 50%, #FFFC00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

@media (max-width: 767px) {
  #scrollToTop {
    right: 1rem !important;
    bottom: 4.5rem !important;
  }
}

#map {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#map .container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#mapContainer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Supprime la marge du dernier élément de .container */
#map .container>*:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

header {
  padding-bottom: 1rem;
}

.navbar {
  min-height: 70px;
}

/* Menu mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2e7d32;
  color: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.close-mobile-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu-list li {
  margin: 1.5rem 0;
}

.mobile-menu-list a {
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  font-weight: bold;
}

@media (min-width: 992px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse.show {
    display: none !important;
  }
}

.legal-alert-box {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-alert-box-content {
  background: linear-gradient(90deg, #ffeb3b 0%, #43ea7d 100%);
  color: #1b5e20;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(67, 234, 125, 0.15);
  border: 2px solid #cddc39;
  text-align: center;
  max-width: 90vw;
  max-height: 80vh;
  margin: 0 1rem;
  position: relative;
}

.close-legal-alert {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  color: #1b5e20;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
}

.footer-legal-link {
  color: #fff !important;
  background: linear-gradient(90deg, #43ea7d 0%, #14532d 100%);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.4em 1.2em;
  border-radius: 2em;
  box-shadow: 0 2px 8px rgba(67, 234, 125, 0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  border: 2px solid #43ea7d;
}

.footer-legal-link:hover,
.footer-legal-link:focus {
  background: linear-gradient(90deg, #fff 0%, #43ea7d 100%);
  color: #14532d !important;
  box-shadow: 0 4px 16px #43ea7d55;
  text-decoration: none;
  border-color: #14532d;
}

#scrollToTop:hover,
#scrollToTop:focus {
  background: linear-gradient(90deg, #fff 0%, #43ea7d 100%);
  color: #14532d;
  box-shadow: 0 8px 32px #43ea7d55;
  transform: translateY(-6px) scale(1.08);
  outline: none;
}

#scrollToTop i {
  pointer-events: none;
}

@media (max-width: 767px) {
  .about-images-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.7rem;
    justify-content: center;
    align-items: center;
  }

  .about-images-row img {
    width: 48vw !important;
    max-width: 48vw !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }
}

.footer-contact {
  display: flex;
  align-items: center;
  min-width: 0;
}

.footer-contact p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: #fff;
  /* Texte blanc pour contraster sur fond vert */
  letter-spacing: 0.02em;
}

.footer-contact a.telfoot {
  color: #43ea7d !important;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a.telfoot:hover,
.footer-contact a.telfoot:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-contact .fa-phone-alt {
  color: #43ea7d;
  margin-left: 0.3rem;
  font-size: 1.2em;
}

/* Responsive: centrer le contact sur mobile */
@media (max-width: 767px) {
  .footer-contact {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .footer-contact p {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .swiper-slide .card,
  .card {
    width: 92vw;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px #43ea7d22;
    padding-bottom: 0.5rem;
  }
  .card-img-top {
    height: 170px;         /* image plus grande */
    object-fit: contain;   /* on voit toute l'image, même si bandes blanches */
    background: #fff;
    margin-bottom: 0.3rem;
  }
  .card-body {
    padding: 0.5rem 0.7rem 0.2rem 0.7rem;
  }
  .card-title {
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
  }
  .card-text {
    font-size: 0.93rem;
    margin-bottom: 0.2rem;
  }
}
/* Masque la flèche Swiper par défaut */
.swiper-button-next:after,
.swiper-button-prev:after {
  display: none !important;
}
/* Flèches Swiper style identique Bootstrap index */
.swiper-button-next,
.swiper-button-prev {
  background-color: #43ea7d !important; /* vert CLAIR par défaut */
  border-radius: 50% !important;        /* bien rond */
  width: 44px !important;
  height: 44px !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: none;
  box-shadow: none;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 !important;
}

.swiper-button-next {
  right: 10px;
}
.swiper-button-prev {
  left: 10px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  display: none !important;
}

.swiper-button-next i,
.swiper-button-prev i {
  color: #fff !important;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #1b5e20 !important; /* vert FONCÉ au hover */
  color: #fff !important;
  transform: scale(1.08);
}
.swiper-button-next {
  right: 0.5rem !important;   /* Collé à la card de droite */
}
.swiper-button-prev {
  left: 0.5rem !important;    /* Collé à la card de gauche */
}