 /**
 * VegetalKech - Améliorations CSS pour Prestashop 9, Glasmorphisme et effets modernes
 * Ce code est conçu pour compléter et mettre à jour votre CSS existant.
 */

/* ===== VARIABLES GLOBALES - Pas de modifications majeures, elles sont déjà bien définies. ===== */
:root {
  /* Ajout d'une variable pour la couleur de l'overlay de glassmorphism */
  --glass-overlay-color: rgba(255, 255, 255, 0.2);
  --glass-border-color: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --glass-blur: 12px; /* Blur plus prononcé pour un effet plus marqué */
  --shine-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0) 100%);
}

/* ===== BASE GLOBALE ===== */
html, body {
  /* Utilisation d'un dégradé subtil pour le fond, pour plus de profondeur */
  background: linear-gradient(135deg, var(--background-color) 0%, var(--gray-50) 100%);
  min-height: 100vh; /* S'assure que le corps prend toute la hauteur pour un fond cohérent */
  scroll-behavior: smooth; /* Défilement doux */
}

/* Appliquer des transitions globales plus légères pour les propriétés courantes */
a, button, .card, .btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition plus douce et professionnelle */
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-800); /* Un gris plus soutenu pour les titres */
  text-rendering: optimizeLegibility; /* Améliore le rendu des polices */
}

.section-subtitle {
  font-size: 0.875rem; /* Légèrement plus grand */
  letter-spacing: 0.15em; /* Plus d'espacement */
  color: var(--green-600); /* Un vert légèrement plus foncé pour le contraste */
}

.section-title {
  color: var(--gray-900); /* Rendre les titres de section plus percutants */
  font-size: 2.25rem; /* Ajuster la taille pour le style Prestashop 9 */
}

@media (min-width: 768px) {
  .section-title {
      font-size: 3rem; /* Encore plus grand sur desktop */
  }
}

.section-description {
  font-size: 1.125rem; /* Taille de police plus agréable pour la description */
  color: var(--gray-600); /* Gris légèrement plus clair pour la description */
}

/* ===== LAYOUT ===== */
.container {
  padding: 0 var(--spacing-lg); /* Plus de padding sur les côtés pour les grands écrans */
}

@media (max-width: 640px) {
  .container {
      padding: 0 var(--spacing-md); /* Ajuster le padding pour les petits écrans */
  }
}

.section {
  padding: var(--spacing-2xl) 0; /* Garder un bon espacement entre les sections */
}

/* ===== COMPOSANTS RÉUTILISABLES ===== */

/* Glassmorphism Card Base */
/* Nous allons réécrire la classe .card pour inclure le glassmorphisme par défaut */
.card {
  background: var(--glass-overlay-color); /* Fond semi-transparent */
  backdrop-filter: blur(var(--glass-blur)); /* Effet verre dépoli */
  -webkit-backdrop-filter: blur(var(--glass-blur)); /* Support Safari */
  border: 1px solid var(--glass-border-color); /* Bordure lumineuse subtile */
  border-radius: var(--border-radius-xl); /* Coins arrondis généreux */
  box-shadow: var(--glass-shadow); /* Ombre douce et diffuse */
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  position: relative; /* Pour les effets de brillance ou autres */
}

.card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15); /* Ombre plus prononcée au survol */
  transform: translateY(-5px) scale(1.01); /* Léger soulèvement et agrandissement */
}

/* Effet de brillance pour les cartes (optionnel, à activer avec une classe comme .card-shine) */
.card.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--shine-gradient);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.card.card-shine:hover::before {
  opacity: 1;
}

/* Boutons - Raffinement et Glitch Effect */
.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  border-radius: var(--border-radius-full); /* Boutons en forme de pilule */
  font-weight: 700;
  letter-spacing: 0.025em;
  position: relative; /* Pour l'effet glitch */
  overflow: hidden; /* Cache le débordement de l'effet glitch */
  z-index: 1;
  box-shadow: var(--shadow-sm); /* Ombre par défaut sur tous les boutons */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); /* Effet de lumière */
  transform: skewX(-20deg);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--green-700);
  color: white;
}

.btn-primary:hover {
  background-color: var(--green-800);
  transform: translateY(-2px); /* Léger soulèvement au survol */
  box-shadow: var(--shadow-lg); /* Ombre plus prononcée */
}

.btn-secondary {
  background-color: var(--green-100);
  color: var(--green-800);
  border: 2px solid var(--green-100); /* Bordure assortie au fond */
}

.btn-secondary:hover {
  background-color: var(--green-200);
  border-color: var(--green-200);
  color: var(--green-900);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6); /* Bordure plus transparente pour le glassmorphism */
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Fond légèrement transparent au survol */
  color: white;
  border-color: white;
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: 1.25rem;
}


/* Badges - Modernisation */
.badge {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  /* Ajout d'une subtile bordure pour un look plus "badge" */
  border: 1px solid rgba(0,0,0,0.05);
}

.badge-animate {
  animation: pulse-animation 2s infinite cubic-bezier(0.4, 0, 0.6, 1); /* Animation plus fluide */
}

/* Liens - Style plus moderne */
.link-green {
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px; /* Pour l'effet de soulignement */
}

.link-green::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-700);
  transition: width 0.3s ease-out;
}

.link-green:hover::after {
  width: 100%;
}

.link-green:hover {
  color: var(--green-800); /* Couleur plus foncée au survol */
}

/* ===== SECTIONS SPÉCIFIQUES ===== */

/* Hero Section */
.hero-gradient {
  position: relative;
  overflow: hidden;
  /* Suppression du ::before pour un fond plus propre, ou le garder si une texture est désirée */
  /* background: linear-gradient(97deg, var(--secondary-green) 0%, var(--primary-green) 59%, var(--primary-green) 100%); */
}

/* Ajout d'une texture de fond subtile pour le Prestashop 9 look */
.hero-gradient {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="p" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M5 0V10M0 5H10" stroke="%23A3D9A5" stroke-opacity="0.1" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
  background-color: var(--secondary-green); /* Couleur de base pour le dégradé */
  background-blend-mode: multiply; /* Fusionne la texture avec la couleur */
}

.hero-content {
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.hero-text {
  text-align: center;
  color: white; /* Assurer que le texte reste blanc */
}

@media (min-width: 768px) {
  .hero-text {
      text-align: left;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900; /* Titre très gras */
  line-height: 1.1;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Ombre plus prononcée pour la profondeur */
  animation: fadeInUp 1s ease-out forwards; /* Animation d'entrée */
  animation-delay: 0.2s;
  opacity: 0; /* Caché au début de l'animation */
}

@media (min-width: 768px) {
  .hero-title {
      font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out forwards; /* Animation d'entrée */
  animation-delay: 0.4s;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
      font-size: 1.65rem;
      margin-left: 0;
  }
}

.hero-buttons {
  margin-top: var(--spacing-xl);
  justify-content: center;
  gap: var(--spacing-lg); /* Espacement plus grand entre les boutons */
  animation: fadeInUp 1s ease-out forwards; /* Animation d'entrée */
  animation-delay: 0.6s;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-buttons {
      justify-content: flex-start;
  }
}

.hero-media {
  flex: 1;
  max-width: 32rem;
  margin-top: var(--spacing-2xl);
  position: relative;
  animation: fadeInUp 1s ease-out forwards; /* Animation d'entrée */
  animation-delay: 0.8s;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-media {
      margin-top: 0;
  }
}

.hero-video {
  /* Utilise directement le glassmorphism pour le lecteur vidéo */
  background: rgba(255, 255, 255, 0.15); /* Fond très léger */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-xl);
  height: 18rem;
  object-fit: cover;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); /* Inclinaison subtile */
  transform-origin: center center;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  margin: 0 auto; /* Centrer la vidéo */
  display: block;
}

.hero-video:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02); /* Redresser et agrandir légèrement */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Services Section - Ajustements pour la présentation des cartes */
.services .section-center {
  margin-bottom: var(--spacing-xl); /* Plus d'espace sous le titre de section */
}

/* Grilles - Pas de changements nécessaires ici, elles sont déjà flexibles. */

/* Navigation (Header) - Création d'une entête moderne et glassmorphe */
.header {
  background: rgba(255, 255, 255, 0.85); /* Fond glassmorphe */
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-lg); /* Ombre plus distincte pour le header */
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* S'assurer qu'il est au-dessus de tout */
  display: flex; /* Utilisation de flexbox pour l'alignement */
  align-items: center;
  justify-content: space-between;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo img {
  height: 2.5rem; /* Taille du logo */
}

.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing-lg); /* Espacement entre les liens de navigation */
}

.header-nav a {
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-full); /* Liens de navigation en forme de pilule */
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  background-color: var(--green-100);
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}

/* Menu Burger pour le mobile (exemple, nécessitera du JS) */
.menu-toggle {
  display: none; /* Cacher par défaut */
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
}

@media (max-width: 992px) { /* Point de rupture pour le menu mobile */
  .header-nav {
      display: none; /* Cacher la navigation par défaut */
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(var(--glass-blur));
      -webkit-backdrop-filter: blur(var(--glass-blur));
      padding: var(--spacing-md) 0;
      box-shadow: var(--shadow);
  }

  .header-nav.is-open {
      display: flex; /* Afficher quand le menu est ouvert */
  }

  .header-nav ul {
      flex-direction: column;
      align-items: center;
  }

  .header-nav a {
      width: 100%;
      text-align: center;
      padding: var(--spacing-md);
  }

  .menu-toggle {
      display: block; /* Afficher le bouton burger */
  }
}


/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */

/* Animation d'entrée au scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--animation-delay, 0s); /* Délai variable par élément */
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes pour pulse-animation - ajustées pour plus de subtilité */
@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(108, 143, 96, 0.15); } /* Moins d'opacité */
  70% { box-shadow: 0 0 0 12px rgba(108, 143, 96, 0); } /* Rayon plus grand */
  100% { box-shadow: 0 0 0 0 rgba(108, 143, 96, 0); }
}

/* Effet de chargement / Skeleton Loader pour les images ou sections */
/* À utiliser avec du JavaScript pour l'ajout/retrait de classes */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Amélioration du bouton WhatsApp */
.whatsapp-float {
  background-color: #25d366;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Ombre plus douce */
  transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(5deg); /* Léger agrandissement et rotation */
}

/* Bouton Scroll-to-Top */
.scroll-to-top {
  position: fixed;
  bottom: 7rem; /* Au-dessus du bouton WhatsApp */
  right: 1.75rem;
  background-color: var(--green-500);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  opacity: 0; /* Caché par défaut */
  visibility: hidden;
  transform: translateY(10px);
  z-index: 900;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--green-600);
  transform: translateY(-2px) scale(1.05);
}

/* Styles pour le pied de page (si vous en avez un) */
.footer {
  background-color: var(--gray-800);
  color: var(--gray-200);
  padding: var(--spacing-2xl) 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: var(--spacing-xl);
}

.footer-links h4 {
  color: white;
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--green-400);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-700);
  color: var(--gray-400);
}
