/**
 * Styles personnalisés supplémentaires
 * Animations et effets visuels avancés pour le thème
 */

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.7s ease-out;
}

/* ==========================================================================
   HERO SECTION AMÉLIORÉ
   ========================================================================== */

.hero-banner {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #fff8e8 0%, #f5f5f5 50%, #fff8e8 100%);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 148, 103, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(212, 165, 116, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: var(--wp--preset--font-family--akaya-kanadaka);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #6b8e23 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--wp--preset--color--gris-fonce);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   IMAGES AVEC EFFETS
   ========================================================================== */

.image-hover-zoom {
  overflow: hidden;
  border-radius: 12px;
}

.image-hover-zoom img {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
}

.image-hover-zoom:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Effet parallax pour les images de fond */
.parallax-image {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

/* ==========================================================================
   FILTRES DE CATÉGORIES STYLISÉS
   ========================================================================== */

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.filter-button {
  padding: 0.75rem 1.5rem;
  background: var(--wp--preset--color--blanc-pur);
  color: var(--wp--preset--color--noir-profond);
  border: 2px solid var(--wp--preset--color--gris-tres-clair);
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.filter-button:hover,
.filter-button.active {
  background: var(--wp--preset--color--vert-sauge);
  color: var(--wp--preset--color--blanc-pur);
  border-color: var(--wp--preset--color--vert-sauge);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 148, 103, 0.3);
}

/* ==========================================================================
   BADGES & TAGS ÉLÉGANTS
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--new {
  background: linear-gradient(135deg, #ffd700 0%, #d4a574 100%);
  color: var(--wp--preset--color--vert-fonce);
}

.badge--popular {
  background: linear-gradient(135deg, #8b9467 0%, #6b8e23 100%);
  color: var(--wp--preset--color--blanc-pur);
}

.badge--featured {
  background: linear-gradient(135deg, #2d3319 0%, #6b8e23 100%);
  color: var(--wp--preset--color--blanc-pur);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.tag-item {
  padding: 0.5rem 1rem;
  background: var(--wp--preset--color--gris-tres-clair);
  color: var(--wp--preset--color--gris-fonce);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tag-item:hover {
  background: var(--wp--preset--color--blanc-pur);
  border-color: var(--wp--preset--color--vert-sauge);
  color: var(--wp--preset--color--vert-olive);
  transform: translateY(-2px);
}

/* ==========================================================================
   CARTES AVEC OMBRE COLORÉE
   ========================================================================== */

.card-colored-shadow {
  position: relative;
}

.card-colored-shadow::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: radial-gradient(
    ellipse,
    rgba(139, 148, 103, 0.3) 0%,
    transparent 70%
  );
  filter: blur(10px);
  z-index: -1;
  transition: all 0.3s ease;
}

.card-colored-shadow:hover::after {
  bottom: -15px;
  background: radial-gradient(
    ellipse,
    rgba(139, 148, 103, 0.4) 0%,
    transparent 70%
  );
}

/* ==========================================================================
   GRILLE MASONRY (Pinterest-style)
   ========================================================================== */

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 10px;
  gap: 20px;
}

.masonry-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--wp--preset--color--blanc-pur);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   SECTION NEWSLETTER
   ========================================================================== */

.newsletter-section {
  background: linear-gradient(135deg, #8b9467 0%, #6b8e23 100%);
  padding: 4rem 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-section h2 {
  color: var(--wp--preset--color--blanc-pur);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: var(--wp--preset--color--gris-tres-clair);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--wp--preset--color--vert-fonce);
  color: var(--wp--preset--color--blanc-pur);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  background: var(--wp--preset--color--noir-profond);
  transform: translateY(-2px);
}

/* ==========================================================================
   STATS / COMPTEURS
   ========================================================================== */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  background: var(--wp--preset--color--blanc-pur);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wp--preset--color--vert-olive);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--wp--preset--color--gris-fonce);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   TESTIMONIALS / AVIS
   ========================================================================== */

.testimonial-card {
  background: var(--wp--preset--color--blanc-pur);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-top: 2rem;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--wp--preset--color--beige-dore);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--wp--preset--color--gris-fonce);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--wp--preset--color--noir-profond);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--wp--preset--color--gris-fonce);
}

/* ==========================================================================
   BREADCRUMBS (Fil d'Ariane)
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--wp--preset--color--gris-fonce);
}

.breadcrumbs a {
  color: var(--wp--preset--color--vert-olive);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--wp--preset--color--vert-fonce);
}

.breadcrumbs-separator {
  color: var(--wp--preset--color--gris-tres-clair);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--wp--preset--color--vert-sauge);
  color: var(--wp--preset--color--blanc-pur);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--wp--preset--color--vert-olive);
  transform: translateY(-5px);
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--wp--preset--color--noir-profond);
  color: var(--wp--preset--color--blanc-pur);
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--wp--preset--color--noir-profond);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--wp--preset--color--gris-tres-clair);
  border-top-color: var(--wp--preset--color--vert-sauge);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .hero-banner {
    padding: 3rem 0;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
