/* Styles pour la page Passage à domicile */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/passage a domicile 1.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 120px 20px;
  text-align: center;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 40px 20px;
}

/* Styles pour la galerie d'images */
.image-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* Dimensions fixes basées sur le ratio de l'image passage a domicile 1.jpg */
  aspect-ratio: 4/3;
  background-color: #f5f5f5;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#galleryImage {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease, opacity 0.4s ease;
  object-fit: cover; /* Assure que l'image couvre tout l'espace sans déformation */
  object-position: center; /* Centre l'image */
}

#galleryImage:hover {
  transform: scale(1.02);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.gallery-nav:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.gallery-counter {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

.service-info h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
}

.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.feature {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  color: #4caf50;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Séparateur de sections */
.section-divider {
  width: 100%;
  max-width: 50px;
  height: 4px;
  margin: 0 auto 3rem;
  opacity: 0.5;
}

/* Rectangle vert services */
.services-box {
  background-color: #e8f5e9;
  border-radius: 15px;
  padding: 2rem;
  width: fit-content;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.services-box h3 {
  color: #2e7d32;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.services-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.services-box ul li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  white-space: nowrap;
  text-align: left;
}

.services-box ul li:last-child {
  margin-bottom: 0;
}

.services-box ul li:before {
  content: "\2713";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Services additionnels inclus */
.additional-services {
  margin: 0 auto 4rem;
  text-align: center;
}

.pricing {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.pricing h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.pricing ul {
  list-style: none;
  padding: 0;
}

.pricing ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.pricing ul li:before {
  content: "•";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Styles pour les témoignages */
.testimonials {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 2rem;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-color);
  font-size: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.client-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid var(--primary-color);
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.client-name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Animation pour le changement d'image */
.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Responsive */
@media (max-width: 900px) {
  .service-details {
    grid-template-columns: 1fr;
  }

  .service-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
  }

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

  .service-features {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonials {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

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

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

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

  .service-info h2 {
    font-size: 1.6rem;
  }

  .feature {
    padding: 15px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    padding: 10px;
  }

  .testimonials h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .client-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
}

/* Section Tarifs Détaillés */
.detailed-pricing {
  margin: 0 auto 4rem;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  background-color: var(--light-color);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detailed-pricing h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  color: var(--dark-color);
}

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  width: 100%;
}

.pricing-card {
  flex: 1;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card.cat {
  background-color: #f5f0ff;
}

.pricing-card.dog {
  background-color: #f0f9f7;
}

.pricing-card-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-card-header h3 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--dark-color);
}

.price-duration {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0;
  text-align: left;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.pricing-features li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.1rem;
}

.pricing-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.medication-note {
  font-weight: 600;
  color: var(--dark-color);
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.extra-note {
  font-style: italic;
  color: var(--text-color);
  margin-top: 0.75rem;
  font-size: 1rem;
  text-align: center;
}

.dog-pricing-options {
  margin-top: 0.5rem;
}

.dog-pricing-option {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dog-pricing-option .price-duration {
  margin: 0.5rem 0;
}

.dog-pricing-option p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: left;
}

.dog-pricing-option:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .detailed-pricing {
    padding: 1.5rem;
  }

  .pricing-cards {
    flex-direction: column;
  }

  .pricing-card {
    width: 100%;
    padding: 1.5rem;
  }

  .pricing-card.dog {
    order: 1;
    margin-bottom: 1.5rem;
  }

  .pricing-card.cat {
    order: 2;
  }

  .pricing-card-header h3 {
    font-size: 1.5rem;
  }

  .price-duration {
    font-size: 1.15rem;
  }
}



/* Centrer la box elle-même */
.cta-box {
  background-color: var(--dark-green);
  border-radius: 15px;
  padding: 3rem;
  text-align: center;

  width: 100%;
  max-width: 800px;

  /* LE POINT CLÉ */
  margin-left: auto;
  margin-right: auto;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.cta-box h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-box .cta-button {
  display: inline-block;
  background-color: white;
  color: var(--dark-green);
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.cta-box .cta-button:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 2rem 1.5rem;
  }

  .cta-box {
    padding: 2rem;
  }

  .cta-box h2 {
    font-size: 1.75rem;
  }

  .cta-box p {
    font-size: 1.1rem;
  }
}
.small-note {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  display: block;
  margin-top: 0.3rem;
}

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

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

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

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

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

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

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

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

.passage-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;
}

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

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

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

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

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

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

.passage-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;
}

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

.passage-slider-nav.prev-button {
  left: 0;
}

.passage-slider-nav.next-button {
  right: 0;
}

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

/* Animations pour les témoignages */
.passage-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);
}

.passage-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);
}

.passage-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);
}

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

.passage-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);
}

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

/* Responsive Design pour les témoignages */
@media (max-width: 768px) {
  .passage-testimonials-slider {
    padding: 0 2rem;
  }

  .passage-testimonial-card {
    padding: 1.5rem;
  }

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

@media (max-width: 500px) {
  .passage-testimonials-wrapper {
    height: auto;
    min-height: unset;
    max-height: unset;
  }
  .passage-testimonial-card {
    min-height: unset;
    max-height: unset;
    height: auto;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    overflow-y: visible;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .passage-testimonial-content {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* Fond de pattes de chiens */
.paw-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}
.paw {
  position: absolute;
  opacity: 0.8;
}
.paw-1 { width: 20px; top: 10%; left: 8%; transform: rotate(-15deg); }
.paw-2 { width: 28px; top: 22%; right: 12%; transform: rotate(10deg); }
.paw-3 { width: 18px; top: 35%; left: 18%; transform: rotate(-8deg); }
.paw-4 { width: 30px; top: 48%; right: 20%; transform: rotate(22deg); }
.paw-5 { width: 24px; top: 60%; left: 12%; transform: rotate(-20deg); }
.paw-6 { width: 16px; top: 72%; right: 8%; transform: rotate(5deg); }
.paw-7 { width: 22px; top: 80%; left: 25%; transform: rotate(-12deg); }
.paw-8 { width: 30px; top: 15%; right: 30%; transform: rotate(18deg); }
.paw-9 { width: 14px; top: 55%; left: 40%; transform: rotate(-7deg); }
.paw-10 { width: 26px; top: 85%; right: 18%; transform: rotate(12deg); }
