/* Styles pour la page d'accueil - Refonte complète */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Container principal standard */
.container {
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 0;
  color: var(--light-color);
  margin-top: 60px; /* Hauteur du header */
  margin-bottom: 0;
  height: calc(100vh - 60px);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100vw;
  max-width: 100%;
  background-color: transparent !important; /* Neutralise le fond vert */
}

#top {
  margin-top: 60px; /* Hauteur du header */
  height: calc(100vh - 60px);
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("../img/fond.jpg") !important;
  background-size: cover;
  background-position: center;
  z-index: -1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero .container {
  z-index: 1;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1,
.hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA principal avec inversion des couleurs au hover */
.cta-hero {
  display: inline-block;
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 1.2rem 2.4rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-hero:hover {
  color: var(--light-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--light-color);
}

.cta-hero:active {
  transform: translateY(-2px);
}

/* Services Section recentrée */
.services-section {
  padding: 4rem 0;
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: 100%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;
}

/* Décoration SVG entre les sections */
.decoration-container {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin: 2rem auto;
  gap: 1rem;
}

.decoration-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.paw-trail {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0;
}

/* Section témoignages avec nouveau fond */
.testimonials-section {
  background: linear-gradient(135deg, #f9f3ee, #e8dcd3);
  padding: 5rem 0;
  border-radius: 0;
  margin-top: 0;
  width: 100vw;
  max-width: 100%;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  color: var(--dark-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.testimonials-header p {
  color: var(--gray-color);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonials-slider.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonials-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  background-color: var(--light-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-rating {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.star {
  color: #ffd700;
  font-size: 1.25rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-color);
}

.testimonial-author-info {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  border: none;
  color: var(--light-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.prev-button {
  left: 0;
}

.next-button {
  right: 0;
}

.slider-nav svg {
  width: 24px;
  height: 24px;
  fill: var(--light-color);
}

/* CTA Section finale avec couleurs inversées */
.cta-section {
  background-color: var(--light-color);
  color: var(--primary-color);
  text-align: center;
  padding: 6rem 0;
  width: 100vw;
  max-width: 100%;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--primary-color);
}

/* CTA Button au bas de page - couleurs inversées au hover */
.cta-button {
  display: inline-block;
  color: var(--light-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Animations pour les témoignages */
.slide-left-out {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right-out {
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left-in {
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left-in.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-right-in {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right-in.active {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .testimonials-slider {
    padding: 0 2rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .pre-footer-divider {
    height: 60px;
  }

  .pre-footer-divider:after {
    height: 30px;
  }

  .paw-trail {
    max-width: 95%;
  }
}

@media (max-width: 500px) {
  .hero {
    min-height: 450px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .testimonial-content {
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 1.2rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .decoration-container {
    margin: 1rem auto;
  }

  .paw-trail {
    max-width: 100%;
  }

  .testimonials-wrapper {
    min-height: 500px;
    height: auto;
    max-height: none;
  }
  .testimonial-card {
    min-height: 260px;
    max-height: 500px;
    height: auto;
    padding: 2rem 1.2rem;
    font-size: 1.1rem;
    overflow-y: visible;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .testimonial-content {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* Style spécifique pour la fin de page (à supprimer) */

/* Pre-footer divider */
.pre-footer-divider {
  height: 120px;
  background: linear-gradient(
    to bottom,
    var(--primary-color-light),
    var(--primary-color)
  );
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100vw;
  max-width: 100%;
}

.pre-footer-divider:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/svg/wave-divider.svg") no-repeat bottom center;
  background-size: 100% 100px;
}

.content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
}

/* Formes décoratives pour le content-container */
.content-container::before,
.content-container::after {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
}

/* Cercle décoratif en haut à gauche */
.content-container::before {
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  transform: rotate(-15deg);
}

/* Forme organique en bas à droite */
.content-container::after {
  bottom: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: rotate(25deg);
}

/* Styles spécifiques pour les sections différentes */
.services-section .content-container::before {
  top: -120px;
  left: -40px;
  width: 250px;
  height: 250px;

  transform: rotate(15deg);
}

.services-section .content-container::after {
  bottom: -80px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.testimonials-section .content-container::before,
.testimonials-section .content-container::after {
  opacity: 0.05;
}

.cta-section .content-container::before {
  top: -100px;
  left: -60px;
}

.cta-section .content-container::after {
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
}

/* Responsive pour les formes décoratives */
@media (max-width: 768px) {
  .content-container::before {
    width: 150px;
    height: 150px;
    top: -50px;
    left: -50px;
  }

  .content-container::after {
    width: 120px;
    height: 120px;
    bottom: -40px;
    right: -40px;
  }

  .services-section .content-container::before {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 500px) {
  .content-container::before,
  .content-container::after {
    width: 100px;
    height: 100px;
  }
}

/* Amélioration des boutons CTA */
/* Bouton CTA flottant pour mobile */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
}

.floating-cta:hover {
  transform: scale(1.1);
}

.floating-paw {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .floating-cta {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
