/* ==========================================================================
   INDEX.CSS — Styles propres à la page d'accueil
   (le reset, les variables et l'en-tête/nav/footer viennent de base.css)
   ========================================================================== */

* {
  font-family: 'Montserrat', sans-serif !important;
}

/* H1 sémantique pour le SEO (balise de titre principal attendue par les
   moteurs de recherche) : le slider porte déjà visuellement l'identité de la
   page, ce titre reste donc accessible sans dupliquer visuellement le logo. */
.visually-hidden-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FontAwesome a besoin de sa propre police à glyphes : sans cette exception,
   l'override ci-dessus force Montserrat sur les icônes et affiche un
   caractère aléatoire à la place du bon pictogramme (ex: whatsapp-icon). */
.fa-solid, .fas, .fa-regular, .far {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- SLIDER D'IMAGES --- */
.slider-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #000;
  animation: heroFadeIn 1.1s ease both;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Léger voile qui s'estompe sur la diapositive active, pour une transition
   plus douce et élégante que le simple glissement horizontal. */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 12, 0.25);
  opacity: 1;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.slide.active::after {
  opacity: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

/* Effet "Ken Burns" : l'image de la diapositive active zoome lentement
   pendant tout le temps où elle reste affichée. */
.slide.active img {
  transform: scale(1.1);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 110, 56, 0.8);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--brand-orange);
  transform: translateY(-50%) scale(1.12);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dot:hover { transform: scale(1.25); }

.dot.active { background: var(--brand-orange); transform: scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .slider-container { animation: none; }
  .slide img { transition: none; }
  .slide.active img { transform: none; }
  .slide::after { transition: none; }
}

/* --- BANDEAU TEXTE DÉFILANT ---
   Chevauche le bas du slider (marge négative) avec un fond vert transparent,
   pour laisser transparaître l'image derrière le bandeau. */
.ticker-wrap {
  position: relative;
  width: 100%;
  margin-top: -56px;
  z-index: 6;
  background: linear-gradient(90deg, rgba(7, 72, 35, 0.55) 0%, rgba(13, 110, 56, 0.55) 50%, rgba(7, 72, 35, 0.55) 100%);
  color: #ffffff;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid var(--brand-orange);
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ticker-item .highlight { color: var(--brand-orange); margin-left: 6px; }
.ticker-separator { margin: 0 15px; color: var(--brand-orange); font-weight: 900; }

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- SECTIONS COMMUNE STYLE --- */
.section-container {
  max-width: 1250px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title-block {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.title-line {
  width: 60px;
  height: 4px;
  background: var(--brand-orange);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

/* --- SECTION 1 : PRODUITS VEDETTES --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

/* Petite cascade d'apparition entre les cartes produits au défilement */
.product-grid .product-card.reveal.in-view:nth-child(2) { transition-delay: 0.06s; }
.product-grid .product-card.reveal.in-view:nth-child(3) { transition-delay: 0.12s; }
.product-grid .product-card.reveal.in-view:nth-child(4) { transition-delay: 0.18s; }
.product-grid .product-card.reveal.in-view:nth-child(5) { transition-delay: 0.24s; }
.product-grid .product-card.reveal.in-view:nth-child(6) { transition-delay: 0.3s; }
.product-grid .product-card.reveal.in-view:nth-child(7) { transition-delay: 0.36s; }
.product-grid .product-card.reveal.in-view:nth-child(8) { transition-delay: 0.42s; }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

.btn-cart-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.btn-cart-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-cart-icon:hover {
  background: var(--brand-green-dark);
  transform: scale(1.08);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 6px;
}

.product-qty {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.product-qty span {
  color: var(--text-dark);
  font-weight: 700;
}

.product-price-line {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

.product-price-line span {
  color: var(--brand-orange);
  font-weight: 900;
  font-size: 1.05rem;
}

.product-price-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price-rating-row .product-price-line { margin-top: 0; }

.product-rating-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}

.product-rating-badge .star-icon { color: var(--gold-star); }

/* --- SECTION 2 : VIDÉO EXPLICATIVE --- */
.video-section-bg {
  background-color: var(--bg-light);
  padding: 60px 0;
  border-top: 1px solid #e5ebe7;
  border-bottom: 1px solid #e5ebe7;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.video-text-content h3 {
  font-size: 1.6rem;
  color: var(--brand-green);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}

.video-text-content p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 20px;
}

.video-features {
  list-style: none;
}

.video-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-green-dark);
  margin-bottom: 12px;
}

.check-icon {
  background: var(--brand-orange);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Tutoriel audio, ou lien externe non reconnu comme YouTube (donc non
   intégrable en iframe) : .video-wrapper a sa hauteur ramenée à 0 par le
   ratio 16:9 ci-dessus, donc ce contenu doit être positionné en absolu pour
   rester visible — comme le sont déjà l'iframe et la vidéo. */
.video-wrapper .tutoriel-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-wrapper .tutoriel-fallback audio {
  width: 100%;
}

.video-wrapper .tutoriel-fallback a {
  display: inline-block;
  background: var(--brand-green);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
}

/* Liste de tutoriels cliquable (plusieurs vidéos/audios disponibles) */
.video-features li.tutoriel-item {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.video-features li.tutoriel-item:not(.active) {
  opacity: 0.55;
}

.video-features li.tutoriel-item:hover {
  opacity: 1;
}

/* --- SECTION 3 : AVIS CLIENTS (IMAGE1 VISIBLE & CARTES TRANSPARENTES) --- */
.reviews-section-wrapper {
  position: relative;
  width: 100%;
  background: url('/static/img/image1.jpg') center center / cover no-repeat;
  padding: 85px 0 75px 0;
  margin-top: 60px;
  margin-bottom: 70px;
}

/* Overlay très léger pour faire ressortir l'image de fond */
.reviews-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 30, 20, 0.35);
  z-index: 1;
}

.reviews-inner-container {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 30px;
}

.reviews-main-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 35px;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.reviews-cards-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

/* Arrière-plan transparent avec effet de verre dépoli pour les cartes d'avis */
.review-box {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 28px 32px;
  flex: 1;
  min-width: 300px;
  max-width: 540px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.review-box:hover {
  transform: translateY(-5px);
}

.review-stars {
  color: var(--gold-star);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-stars-emoji {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: normal;
}

.review-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.review-rating-row .star-row {
  font-size: 0.95rem;
}

.review-note-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 2px 10px;
  border-radius: 999px;
}

.review-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0d4222;
  margin-bottom: 12px;
}

.review-box-text {
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.65;
  margin-bottom: 25px;
  font-weight: 500;
}

.review-box-author {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.more-reviews-link {
  display: inline-block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(13, 110, 56, 0.85);
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.more-reviews-link:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .video-grid { grid-template-columns: 1fr; }
  .reviews-cards-row { flex-direction: column; }
  .review-box { max-width: 100%; }
}

@media (max-width: 600px) {
  .slider-container { height: 240px; }
  .slider-dots { bottom: 55px; }
  .ticker-wrap { margin-top: -42px; }
}

/* --- BOUTON FLOTTANT WHATSAPP --- */
.whatsapp-widget {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.whatsapp-float {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 6px 18px rgba(18, 140, 126, .45);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: whatsappEntrance .6s ease .3s both;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 10px 25px rgba(18, 140, 126, .6);
}

.whatsapp-icon {
  position: relative;
  z-index: 2;
  line-height: 1;
}

.whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .6);
  animation: whatsappRingPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.whatsapp-ring:nth-child(2) { animation-delay: 1.2s; }

@keyframes whatsappRingPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes whatsappEntrance {
  0% { transform: translateY(40px) scale(.4); opacity: 0; }
  60% { transform: translateY(-6px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

/* Bulle d'invitation */
.whatsapp-tooltip {
  position: relative;
  max-width: 220px;
  background: #fff;
  color: #1d2a4d;
  padding: 12px 30px 12px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  font-size: .9rem;
  font-weight: 600;
  margin-right: 14px;
  animation: whatsappTooltipIn .5s ease 1.6s both;
  transition: opacity .35s ease, transform .35s ease;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.whatsapp-tooltip.hide {
  opacity: 0;
  transform: translateX(15px) scale(.9);
  pointer-events: none;
}

.whatsapp-tooltip-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  color: #9aa1ab;
  cursor: pointer;
  padding: 0 4px;
}

.whatsapp-tooltip-close:hover { color: #1d2a4d; }

@keyframes whatsappTooltipIn {
  0% { opacity: 0; transform: translateX(15px) scale(.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-ring,
  .whatsapp-tooltip {
    animation: none !important;
  }
}

@media screen and (max-width: 767px) {
  .whatsapp-widget { bottom: 20px; left: 20px; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 25px; }
  .whatsapp-tooltip { max-width: 160px; font-size: .8rem; padding: 10px 26px 10px 12px; }
}
