/* =============================================
   HOMEPAGE — styles spécifiques front-page.php
   ============================================= */

/* =================== ANIMATIONS SCROLL =================== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate="fade-left"]  { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate].is-visible   { opacity: 1; transform: none; }

/* =================== LAYOUT COMMUN =================== */
.ah-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ah-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ah-section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}

.ah-section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  color: var(--clr-primary-dark) !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: none !important;
}
.ah-section-title::after,
.ah-section-title::before { content: none !important; }

.ah-section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =================== STATS SECTION =================== */
.ah-stats {
  padding: clamp(3rem, 8vw, 5rem) 0 0;
  background: linear-gradient(168deg, #eff8ee 0%, #f6fbf5 55%, #ecf7ea 100%);
  position: relative;
}

.ah-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  padding: 0;
}

/* Card */
.ah-stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(125, 191, 120, 0.28);
  border-radius: clamp(16px, 3vw, 22px);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition:
    opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.ah-stat-card.is-visible {
  opacity: 1;
  transform: none;
}

.ah-stat-card:hover {
  box-shadow:
    0 20px 44px rgba(61, 107, 56, 0.12),
    0 0 0 1.5px rgba(125, 191, 120, 0.38);
  transform: translateY(-6px) scale(1.01);
}

.ah-stat-card.is-visible:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Halo pulsant */
.ah-stat-card__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(125, 191, 120, 0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: ah-halo 3.6s ease-in-out infinite;
}

@keyframes ah-halo {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Icône */
.ah-stat-card__icon {
  width: clamp(44px, 7vw, 56px);
  height: clamp(44px, 7vw, 56px);
  border-radius: 14px;
  background: rgba(125, 191, 120, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ah-stat-card__icon svg {
  width: clamp(20px, 3vw, 26px);
  height: clamp(20px, 3vw, 26px);
  stroke: #3d6b38;
}

/* Valeur */
.ah-stat-card__value {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--clr-primary-dark, #3d6b38);
  line-height: 1;
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
  font-style: normal;
}

/* Label */
.ah-stat-card__label {
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  color: var(--clr-text-muted, #5a7a55);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Vague de sortie */
.ah-stats__wave {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  line-height: 0;
}

.ah-stats__wave svg {
  display: block;
  width: 100%;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ah-stat-card {
    transition: box-shadow 0.2s;
    opacity: 1 !important;
    transform: none !important;
  }
  .ah-stat-card__halo { animation: none; }
  .ah-stat-card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 720px) {
  .ah-stats__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =================== BOUTONS =================== */
.ah-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.875rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.22s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.ah-btn--primary {
  background: var(--clr-primary-dark);
  color: #fff !important;
  border-color: var(--clr-primary-dark);
  box-shadow: 0 4px 14px rgba(61, 107, 56, 0.30);
}
.ah-btn--primary:hover {
  background: #2a5226;
  border-color: #2a5226;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(61, 107, 56, 0.42);
}

.ah-btn--outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.60);
}
.ah-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.ah-btn--green {
  background: var(--clr-primary-dark);
  color: #fff !important;
  border-color: var(--clr-primary-dark);
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(61, 107, 56, 0.28);
}
.ah-btn--green:hover {
  background: #2a5226;
  border-color: #2a5226;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(61, 107, 56, 0.40);
}

/* =================== HERO =================== */
.ah-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}

.ah-hero__bg-wrap {
  position: absolute;
  inset: 0;
}

.ah-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  transition: transform 9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-hero.is-loaded .ah-hero__bg { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .ah-hero__bg { transition: none; transform: none; }
}

.ah-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 38, 20, 0.88) 0%,
    rgba(61, 107, 56, 0.66) 50%,
    rgba(125, 191, 120, 0.24) 100%
  );
}

.ah-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.ah-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-primary-muted);
  margin-bottom: 1.5rem;
}

.ah-hero__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.5rem, 6vw, 4.25rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.08 !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  border: none !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.25);
}
.ah-hero__title::after,
.ah-hero__title::before { content: none !important; }

.ah-hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 580px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}

.ah-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ah-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.50);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.22s;
  animation: ah-bounce 2.4s ease-in-out infinite;
}
.ah-hero__scroll:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.ah-hero__scroll svg { width: 1.1rem; height: 1.1rem; }

@keyframes ah-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =================== ACCOMPAGNEMENTS =================== */
.ah-accompagnements {
  background: #FBFEFB;
  padding: 7rem 0;
  position: relative;
}

.ah-acc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ah-acc-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(185, 217, 181, 0.55);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-acc-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}

/* Image */
.ah-acc-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.ah-acc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-acc-card:hover .ah-acc-card__img { transform: scale(1.06); }

/* Badge icône flottant */
.ah-acc-card__badge {
  position: absolute;
  bottom: -1.375rem;
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: var(--clr-primary-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(61, 107, 56, 0.40);
  z-index: 2;
  transition: background 0.25s, transform 0.25s;
}
.ah-acc-card:hover .ah-acc-card__badge {
  background: var(--clr-primary);
  transform: translateY(-2px);
}
.ah-acc-card__badge svg {
  width: 1.375rem;
  height: 1.375rem;
  stroke: #fff;
}

/* Corps de la carte */
.ah-acc-card__body {
  padding: 2.25rem 1.75rem 1.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

/* Liseré animé sous le titre au hover */
.ah-acc-card__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 2px;
  background: var(--clr-primary-muted);
  border-radius: 1px;
  transition: background 0.28s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
  transform: scaleX(0.3);
}
.ah-acc-card:hover .ah-acc-card__body::before {
  background: var(--clr-primary);
  transform: scaleX(1);
}

.ah-acc-card__title {
  font-family: var(--font-heading) !important;
  font-size: 1.2rem !important;
  color: var(--clr-primary-dark) !important;
  margin: 0.5rem 0 0 !important;
  padding: 0 !important;
  border: none !important;
}
.ah-acc-card__title::after,
.ah-acc-card__title::before { content: none !important; }

.ah-acc-card__text {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.68;
  margin: 0;
  flex: 1;
}

.ah-acc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: gap 0.22s, color 0.22s;
}
.ah-acc-card__link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.22s;
}
.ah-acc-card:hover .ah-acc-card__link {
  gap: 0.65rem;
  color: var(--clr-primary);
}
.ah-acc-card:hover .ah-acc-card__link svg { transform: translateX(3px); }

/* =================== ÉQUIPE =================== */
.ah-team {
  background: #F0F7EE;
  padding: 7rem 0;
  overflow: hidden; /* évite le scroll horizontal si les cercles débordent */
}

.fh-team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.fh-team__card {
  text-align: center;
  max-width: 200px;
}

.fh-team__photo-wrap {
  width: 180px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.fh-team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.fh-team__photo-wrap:hover .fh-team__photo {
  transform: scale(1.04);
}

.fh-team__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary-light, #d4edda);
  color: var(--clr-primary-dark, #2C4A28);
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.fh-team__name {
  font-family: var(--font-heading) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--clr-primary-dark) !important;
  margin: 0.6rem 0 0.2rem !important;
  padding: 0 !important;
  border: none !important;
}
.fh-team__name::after,
.fh-team__name::before { content: none !important; }

.fh-team__role {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-primary);
  margin: 0;
  line-height: 1.5;
}

/* =================== TÉMOIGNAGES =================== */
.ah-testimonials {
  background: #EBF5E9;
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

/* Fond décoratif global de section */
.ah-testimonials::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #D4ECD0 0%, transparent 70%);
  top: -180px;
  right: -160px;
  opacity: 0.45;
  pointer-events: none;
}

.ah-testimonials .ah-section-eyebrow { color: var(--clr-primary); }
.ah-testimonials .ah-section-title   { color: var(--clr-primary-dark) !important; }
.ah-testimonials .ah-section-subtitle {
  color: #2D3F2D;
  opacity: 0.65;
}

.ah-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
}

.ah-quote {
  position: relative;
  background: #fff;
  border: 0.5px solid #D4ECD0;
  border-left: 4px solid #B9D9B5;
  border-radius: 0 14px 14px 0;
  padding: 2.25rem 1.875rem 1.875rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(125, 191, 120, 0.08);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.32s ease,
              border-left-color 0.28s ease;
}
.ah-quote:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(125, 191, 120, 0.18);
  border-left-color: var(--clr-primary);
}

/* Guillemet géant décoratif — arrière-plan */
.ah-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 0.875rem;
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  line-height: 1;
  color: #7DBF78;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Badge "Témoignage" */
.ah-quote__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background: #EBF5E9;
  color: #3D6B38;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.25rem;
}

/* Étoile ✦ dans le coin supérieur droit */
.ah-quote__star {
  position: absolute;
  top: 1.25rem;
  right: 1.375rem;
  color: #B9D9B5;
  width: 1rem;
  height: 1rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  transition: color 0.28s, transform 0.28s;
}
.ah-quote:hover .ah-quote__star {
  color: var(--clr-primary);
  transform: scale(1.25) rotate(15deg);
}
.ah-quote__star svg { width: 100%; height: 100%; display: block; }

/* Cercles décoratifs flottants */
.ah-quote__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #B9D9B5;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}
.ah-quote__circle--sm {
  width: 80px;
  height: 80px;
  bottom: -26px;
  right: -26px;
}
.ah-quote__circle--md {
  width: 140px;
  height: 140px;
  bottom: -56px;
  right: -56px;
}
.ah-quote__circle--lg {
  width: 200px;
  height: 200px;
  bottom: -88px;
  right: -88px;
}

.ah-quote__text {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  color: #2D3F2D;
  line-height: 1.80;
  font-style: italic;
  margin: 0;
  flex: 1;
}

.ah-quote__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px dashed #B9D9B5;
}

/* Avatar avec double ring */
.ah-quote__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #B9D9B5;
  outline: 4px solid #EBF5E9;
  outline-offset: 0;
  box-shadow: 0 2px 10px rgba(61, 107, 56, 0.12);
  display: block;
}

.ah-quote__author {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-primary-dark);
}

.ah-quote__context {
  display: block;
  font-size: 0.78rem;
  color: #2D3F2D;
  opacity: 0.50;
  margin-top: 0.1rem;
}

.ah-quote__mark { display: none; }

/* =================== CTA ESPACE MEMBRE =================== */
.ah-cta {
  background: #F0F7EE;
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Cercles décoratifs */
.ah-cta::before,
.ah-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}
.ah-cta::before {
  width: 420px;
  height: 420px;
  background: var(--clr-primary);
  top: -120px;
  right: -100px;
}
.ah-cta::after {
  width: 280px;
  height: 280px;
  background: var(--clr-primary-dark);
  bottom: -80px;
  left: -60px;
}

.ah-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.ah-cta__icon-wrap {
  width: 5.5rem;
  height: 5.5rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 28px rgba(61, 107, 56, 0.20);
}
.ah-cta__icon-wrap svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--clr-primary-dark);
}

.ah-cta__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  color: #2D4A2D !important;
  line-height: 1.2 !important;
  margin: 0 0 1.125rem !important;
  padding: 0 !important;
  border: none !important;
}
.ah-cta__title::after,
.ah-cta__title::before { content: none !important; }

.ah-cta__subtitle {
  font-size: 1.05rem;
  color: #526052;
  margin: 0 auto 2.5rem;
  max-width: 480px;
  line-height: 1.72;
}

/* =================== SÉPARATEURS WAVE =================== */
@keyframes wave-sway {
  from { transform: translateX(0); }
  to   { transform: translateX(-50px); }
}

.section-sep {
  display: block;
  line-height: 0;
  overflow: hidden;
  margin-top: -2px;
  margin-bottom: -2px;
  pointer-events: none;
}
.section-sep svg {
  display: block;
  width: calc(100% + 100px);
  height: 80px;
  margin-left: -50px;
}

/* Sep 1 — intérieur du hero, positionné en bas */
.section-sep--1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
}
.section-sep--1 svg {
  animation: wave-sway 8s ease-in-out infinite alternate;
}

/* Sep 2 — Accompagnements → Équipe */
.section-sep--2 {
  background: #FBFEFB;
}
.section-sep--2 svg {
  animation: wave-sway 8s ease-in-out 1.5s infinite alternate;
}

/* Sep 3 — Équipe → Témoignages */
.section-sep--3 {
  background: #F0F7EE;
}
.section-sep--3 svg {
  animation: wave-sway 8s ease-in-out 3s infinite alternate;
}

/* Sep 4 — Témoignages → CTA */
.section-sep--4 {
  background: #EBF5E9;
}
.section-sep--4 svg {
  animation: wave-sway 8s ease-in-out 4.5s infinite alternate;
}

/* Sep 5 — CTA → Footer (multi-couches, très design) */
.section-sep--footer {
  background: #F0F7EE; /* correspond au bg .ah-cta */
  margin: 0;
  position: relative;
  z-index: 0;
}
.section-sep--footer svg {
  height: 130px;
  width: calc(100% + 140px);
  margin-left: -70px;
  animation: wave-footer 14s ease-in-out infinite alternate;
}
.section-sep--footer path:nth-child(1) {
  animation: wave-drift-r 18s ease-in-out infinite alternate;
}
.section-sep--footer path:nth-child(2) {
  animation: wave-drift-l 13s ease-in-out 0.8s infinite alternate;
}
.section-sep--footer path:nth-child(3) {
  animation: wave-drift-r 11s ease-in-out 1.6s infinite alternate;
}
.section-sep--footer path:nth-child(4) {
  animation: wave-drift-l 9s ease-in-out 2.4s infinite alternate;
}

@keyframes wave-footer  { from { transform: translateX(0); } to { transform: translateX(-70px); } }
@keyframes wave-drift-r { from { transform: translateX(0); } to { transform: translateX(35px); } }
@keyframes wave-drift-l { from { transform: translateX(0); } to { transform: translateX(-35px); } }

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .section-sep svg,
  .section-sep--footer path { animation: none; }
}

/* ══════════════════════════════════
   SECTION TÉMOIGNAGES — CAROUSEL
   ══════════════════════════════════ */

.tm-section {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f0f7ee 0%, #ffffff 100%);
  overflow: hidden;
}

.tm-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.tm-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary, #7DBF78);
  margin-bottom: 12px;
}

.tm-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-forest, #3D6B38);
  margin: 0 0 16px;
  line-height: 1.15;
}

.tm-subtitle {
  font-size: 1.05rem;
  color: #5a7a56;
  margin: 0;
  line-height: 1.6;
}

.tm-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.tm-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 4px 24px;
  cursor: grab;
  user-select: none;
}

.tm-track::-webkit-scrollbar { display: none; }
.tm-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.tm-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 280px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(125, 191, 120, 0.18);
  border-radius: 20px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(61, 107, 56, 0.07), 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  opacity: 0;
  transform: translateY(32px);
  animation: tmCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-play-state: paused;
}

.tm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(61, 107, 56, 0.14), 0 4px 12px rgba(0,0,0,0.06);
}

.tm-card:nth-child(1) { animation-delay: 0.05s; }
.tm-card:nth-child(2) { animation-delay: 0.15s; }
.tm-card:nth-child(3) { animation-delay: 0.25s; }
.tm-card:nth-child(4) { animation-delay: 0.10s; }
.tm-card:nth-child(5) { animation-delay: 0.20s; }
.tm-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes tmCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.tm-card__quote-icon {
  color: var(--clr-primary, #7DBF78);
  opacity: 0.6;
  line-height: 1;
}

.tm-card__stars { display: flex; gap: 3px; }

.tm-star {
  font-size: 1rem;
  color: #d1d5db;
  transition: color 0.2s;
}

.tm-star--filled { color: #f59e0b; }

.tm-card__text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #4a6644;
  flex: 1;
  margin: 0;
  font-style: italic;
}

.tm-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 191, 120, 0.15);
  margin-top: auto;
}

.tm-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(125, 191, 120, 0.3);
  flex-shrink: 0;
}

.tm-card__avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7DBF78, #3D6B38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.tm-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tm-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-forest, #3D6B38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-card__role {
  font-size: 0.8rem;
  color: #7a9b76;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 191, 120, 0.4);
  background: #ffffff;
  color: var(--clr-forest, #3D6B38) !important;
  caret-color: var(--clr-forest, #3D6B38) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.tm-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  color: inherit !important;
  fill: none;
  pointer-events: none;
  flex-shrink: 0;
}

.tm-arrow svg path {
  stroke: currentColor !important;
}

.tm-arrow:hover {
  background: var(--clr-primary, #7DBF78);
  color: #ffffff !important;
  caret-color: #ffffff !important;
  border-color: var(--clr-primary, #7DBF78);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 24px rgba(125, 191, 120, 0.35);
}

.tm-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.tm-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.tm-arrow:disabled svg path {
  stroke: currentColor !important;
}

.tm-arrow--prev { left: 8px; }
.tm-arrow--next { right: 8px; }

.tm-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.tm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(125, 191, 120, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  color: transparent !important;
  caret-color: transparent !important;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tm-dot.is-active {
  background: var(--clr-primary, #7DBF78);
  width: 24px;
  border-radius: 4px;
}

.tm-dot:hover:not(.is-active) { background: rgba(125, 191, 120, 0.6); }

@media (max-width: 1024px) {
  .tm-card { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .tm-section { padding: 64px 0 56px; }
  .tm-carousel-wrapper { padding: 0 16px; }
  .tm-arrow { width: 36px; height: 36px; }
  .tm-arrow--prev { left: -4px; }
  .tm-arrow--next { right: -4px; }
  .tm-card { flex: 0 0 min(85vw, 320px); padding: 28px 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-card { animation: none; opacity: 1; transform: none; }
}

/* =================== RESET ASTRA HOME =================== */
body.home #content,
body.home .site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.home .ast-container,
body.home #primary {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.home .ast-article-single {
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .ah-acc__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ah-testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ah-hero { padding: 6rem 1.25rem 4rem; }
  .ah-hero__ctas { flex-direction: column; align-items: center; }
  .ah-hero__ctas .ah-btn { width: 100%; max-width: 320px; justify-content: center; }

  .ah-accompagnements,
  .ah-team,
  .ah-testimonials,
  .ah-cta { padding: 5rem 0; }

  .ah-acc__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .ah-container { padding: 0 1.25rem; }

  .fh-team__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
  .fh-team__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .fh-team__photo-wrap { width: 140px; height: 172px; }
}
