
/*  Hero  */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 62vw, 600px);
  background: var(--green-hero);
}

.hero-media { 
  position: absolute; 
  inset: 0; 
}
.hero-media img {
  position: absolute;
  top: 0;
  left: 35%;
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;

  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 22%);
          mask-image: linear-gradient(90deg, transparent 0, black 22%);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 80px) clamp(90px, 10vw, 120px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 440px;
  color: var(--white);
  text-shadow: var(--text-shadow);
}

.hero-paw { 
  font-size: 48px; 
  color: var(--paw-hero); 
  transform: rotate(-30deg); 
}

.hero h1 {
  color: var(--white);
  font-size: clamp(52px, 7.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-divider {
  max-width: 300px;
  margin-left: clamp(0px, 3vw, 40px);
  color: var(--line-hero);
}
.hero-divider i { 
  font-size: 20px; 
}

.hero-kicker {
  margin-left: clamp(0px, 3vw, 40px);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 22px);
}

.hero-text {
  margin-top: 8px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--text-hero);
}

.hero-btn {
  margin-top: 12px;
  gap: 10px;
  padding: 14px 24px;
  background: var(--green-soft);
  color: var(--white);
  font-size: 15px;
  text-shadow: none;
}
.hero-btn i { 
  font-size: 18px; 
}
.hero-btn .ph-arrow-right { 
  font-size: 16px; 
  transition: transform .25s; 
}
.hero-btn:hover { 
  background: var(--green); 
  color: var(--white); 
}
.hero-btn:hover .ph-arrow-right { 
  transform: translateX(3px); 
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: clamp(36px, 5vw, 70px);
  pointer-events: none;
}

/*  Valeurs  */

.values {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3vw, 40px);
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.value h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 20px;
}
.value-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green);
}
.value p {
  max-width: 16em;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/*  A propos  */

.home-about {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
}
.home-about-paw {
  right: clamp(8px, 4vw, 60px);
  top: 24px;
  font-size: clamp(70px, 9vw, 120px);
  color: var(--paw);
  transform: rotate(12deg);
}

.home-about-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.home-about-photo { 
  aspect-ratio: 7 / 4.6; 
}
.home-about-photo .paw-1 { 
  left: -6px; 
  top: 4px; 
  font-size: 52px; 
  transform: rotate(-40deg); 
}
.home-about-photo .paw-2 { 
  right: 4px; 
  bottom: -4px; 
  font-size: 44px; 
  transform: rotate(60deg); 
}

.home-about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}
.home-about-text h2 { 
  font-size: clamp(30px, 3.6vw, 40px); 
  line-height: 1.12; 
}
.home-about-text p { 
  font-size: 16px; 
  line-height: 1.7; 
  color: var(--text-muted); 
  text-wrap: pretty; 
}
.home-about-text .btn { 
  align-self: flex-start; 
  gap: 10px; 
  margin-top: 6px; 
}

/*  Prestations  */

.solutions { 
  position: relative; 
  background: var(--sage-bg); 
}

.solutions-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(56px, 6vw, 80px);
}
.solutions .section-title { 
  margin-bottom: clamp(28px, 3.4vw, 40px); 
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 24px;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.card-img { 
  width: 100%; 
  height: 140px; 
  border-radius: 10px; 
  overflow: hidden; 
}
.card-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.card h3 { 
  margin-top: 8px; 
  font-size: 20px; 
}
.card p {
  flex: 1;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.card .btn { 
  margin-top: 4px; 
}

/*  FAQ  */

.home-faq {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(56px, 6vw, 80px);
}
.home-faq .section-title { 
  margin-bottom: 32px; 
}

/*  Avis  */

.reviews { 
  position: relative; 
  overflow: hidden; 
  background: var(--cream-deep); 
}

.reviews-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(56px, 6vw, 72px);
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.reviews-head span { 
  width: clamp(24px, 6vw, 60px); 
  height: 1px; 
  background: var(--green-dark); 
}
.reviews-head h2 { 
  font-size: clamp(22px, 2.4vw, 26px); 
  text-align: center; 
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}

.review { 
  display: flex; 
  gap: 14px; 
  align-items: flex-start; 
  margin: 0; 
}
.review > div { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}
.review blockquote { 
  margin: 0; 
}
.review blockquote p { 
  font-style: italic; 
  font-size: 14.5px; 
  line-height: 1.6; 
  color: var(--text-muted); 
}
.review figcaption { 
  font-size: 13.5px; 
  font-weight: 600; 
  color: var(--green-dark); 
}
.review-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 16px;
}

/* Carrousel */

.carousel {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.carousel-stage {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: clamp(200px, 30vw, 300px);
}

.carousel-item {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  aspect-ratio: 3 / 2;
  max-width: 62%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot);
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateX(110%) translateY(-4%) scale(.3);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  cursor: default;
  transition: transform .7s cubic-bezier(.45, 0, .2, 1), opacity .7s ease, box-shadow .7s ease;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Nom de l'animal le long de l'arrondi bas-gauche (arc calculé dans carousel.js) */
.carousel-name {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.carousel-name text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: .04em;
  fill: var(--green-dark);
}
.carousel-item.is-c .carousel-name {
  opacity: 1;
  transition-delay: .5s;
}

.carousel-item.is-c {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: var(--shadow-photo);
  pointer-events: auto;
}
.carousel-item.is-n,
.carousel-item.is-p {
  opacity: .45;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}
.carousel-item.is-n { transform: translateX(-50%) translateX(64%) translateY(-4%) scale(.42); }
.carousel-item.is-p { transform: translateX(-50%) translateX(-64%) translateY(-4%) scale(.42); }
.carousel-item.is-n:hover,
.carousel-item.is-p:hover { opacity: .65; }
.carousel-item.is-hl { transform: translateX(-50%) translateX(-110%) translateY(-4%) scale(.3); }

.carousel-controls { display: flex; align-items: center; gap: 16px; }

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--green-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.carousel-arrow:hover { 
  background: var(--green-dark); 
  color: var(--white); 
}

.carousel-dots { 
  display: flex; 
  gap: 8px; 
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dot);
  cursor: pointer;
  transition: width .3s, background-color .3s;
}
.carousel-dot.is-active { 
  width: 24px; 
  background: var(--green); 
}

/*Responsive*/

@media (min-width: 560px) {
  .values,
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .values,
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-inner { order: 1; padding-bottom: 0; }
  .hero-content {
    align-items: center;
    margin: 0 auto;
    text-align: center;
  }
  .hero-divider,
  .hero-kicker { margin-left: 0; }
  .hero-media {
    position: relative;
    order: 2;
    height: clamp(320px, 92vw, 460px);
    margin-top: -24px;
  }
  .hero-media img {
    left: 0;
    width: 100%;
    object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, black 28%);
            mask-image: linear-gradient(180deg, transparent 0, black 28%);
  }
  .hero-media::after { display: none; }
  .home-about-text { max-width: none; }
}

@media (max-width: 859px) {
  .home-about-photo { width: 100%; max-width: 560px; justify-self: center; }
}

@media (max-width: 480px) {
  .carousel-controls { gap: 10px; }
  .carousel-dots { gap: 6px; }
}
