/* ==================== TÉMOIGNAGES PAGE ==================== */

/* ========== HERO SECTION ========== */
.cp-testimonials-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
  overflow: hidden;
}

.cp-testimonials-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.05), transparent);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.cp-testimonials-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.cp-testimonials-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.cp-label-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInDown 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

.cp-label-line--center {
  justify-content: center;
}

.cp-line {
  width: 40px;
  height: 1px;
  background: #B6FF47;
}

.cp-label-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #B6FF47;
  font-weight: 500;
}

.cp-testimonials-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.1;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

.cp-testimonials-hero-title .cp-accent {
  color: #B6FF47;
  font-style: italic;
}

.cp-testimonials-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== GRILLE TÉMOIGNAGES ========== */
.cp-testimonials-section {
  background: #0a0a0a;
  padding: 80px 20px;
  min-height: auto;
}

.cp-testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.cp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  grid-auto-rows: auto;
}

/* Masonry effect : certaines cartes sont plus grandes */
.cp-testimonial-card--lg {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .cp-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(300px, auto);
  }

  .cp-testimonial-card--lg {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cp-testimonials-grid > :nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .cp-testimonials-grid > :nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
  }
}

@media (min-width: 1200px) {
  .cp-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .cp-testimonial-card--lg {
    grid-column: span 1;
    grid-row: span 2;
  }
}

/* CARTES TÉMOIGNAGES */
.cp-testimonial-card {
  position: relative;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(182, 255, 71, 0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  animation: fadeInScale 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.cp-testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.cp-testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.cp-testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.cp-testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.cp-testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.cp-testimonial-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pseudo-élément de background animé au survol */
.cp-testimonial-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 0;
}

.cp-testimonial-card:hover::before {
  opacity: 1;
}

/* Interaction au survol */
.cp-testimonial-card:hover {
  transform: translateY(-12px);
  border-color: rgba(182, 255, 71, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(182, 255, 71, 0.2),
    inset 0 1px 0 rgba(182, 255, 71, 0.1);
}

.cp-testimonial-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Étoiles */
.cp-testimonial-stars {
  display: flex;
  gap: 4px;
}

.cp-star {
  color: #B6FF47;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.cp-testimonial-card:hover .cp-star {
  opacity: 1;
}

/* Citation */
.cp-testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* Auteur */
.cp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(182, 255, 71, 0.1);
}

.cp-testimonial-avatar {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #B6FF47;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cp-testimonial-card:hover .cp-testimonial-avatar {
  border-color: #fff;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(182, 255, 71, 0.3);
}

.cp-testimonial-info {
  flex: 1;
}

.cp-testimonial-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
  letter-spacing: 0.5px;
}

.cp-testimonial-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ========== SECTION CTA FINALE ========== */
.cp-testimonials-cta {
  padding: 6rem 3rem;
  background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(182, 255, 71, 0.1);
  position: relative;
  overflow: hidden;
}

.cp-testimonials-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.08), transparent);
  border-radius: 50%;
  z-index: 0;
}

.cp-testimonials-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cp-testimonials-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.5px;
}

.cp-testimonials-cta-title .cp-accent {
  color: #B6FF47;
  font-style: italic;
}

.cp-testimonials-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 2rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.cp-testimonials-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.cp-testimonials-cta-avis {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid rgba(182, 255, 71, 0.1);
}

.cp-testimonials-cta-avis h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: #ffffff;
  margin: 0 0 12px;
}

.cp-testimonials-cta-avis p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
}

/* BOUTONS CTA */
.cp-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid transparent;
  cursor: pointer;
}

.cp-btn-primary {
  background: #B6FF47;
  color: #050505;
}

.cp-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(182, 255, 71, 0.4);
}

.cp-btn-secondary {
  border: 2px solid #B6FF47;
  color: #B6FF47;
  background: transparent;
}

.cp-btn-secondary:hover {
  background: rgba(182, 255, 71, 0.1);
  box-shadow: 0 15px 40px rgba(182, 255, 71, 0.2);
  transform: translateY(-4px);
}

/* ========== SECTION TÉMOIGNAGES HOME (Accueil) ========== */

.cp-testimonials-home {
  background: #0a0a0a;
  padding: 80px 20px;
  text-align: center;
}

.cp-testimonials-home-label {
  margin-bottom: 2rem;
}

.cp-testimonials-home-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #ffffff;
  margin: 0 0 3rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.cp-testimonials-home-title .cp-accent {
  color: #B6FF47;
  font-style: italic;
}

.cp-testimonials-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cp-testimonial-card-home {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(182, 255, 71, 0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  opacity: 0;
  animation: fadeInScale 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.cp-testimonial-card-home:nth-child(1) { animation-delay: 0.1s; }
.cp-testimonial-card-home:nth-child(2) { animation-delay: 0.2s; }
.cp-testimonial-card-home:nth-child(3) { animation-delay: 0.3s; }
.cp-testimonial-card-home:nth-child(4) { animation-delay: 0.4s; }

.cp-testimonial-card-home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 0;
}

.cp-testimonial-card-home:hover::before {
  opacity: 1;
}

.cp-testimonial-card-home:hover {
  transform: translateY(-12px);
  border-color: rgba(182, 255, 71, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(182, 255, 71, 0.2),
    inset 0 1px 0 rgba(182, 255, 71, 0.1);
}

/* Responsive home testimonials */
@media (max-width: 768px) {
  .cp-testimonials-home {
    padding: 60px 20px;
  }

  .cp-testimonials-home-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .cp-testimonials-grid-home {
    gap: 1.5rem;
  }

  .cp-testimonial-card-home {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cp-testimonials-home-title {
    font-size: 1.5rem;
  }

  .cp-testimonials-grid-home {
    grid-template-columns: 1fr;
  }

  .cp-testimonial-card-home {
    padding: 1.25rem;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .cp-testimonials-section {
    padding: 4rem 1.5rem;
  }

  .cp-testimonials-cta {
    padding: 4rem 1.5rem;
  }

  .cp-testimonials-hero {
    padding: 4rem 1.5rem;
    min-height: 35vh;
  }

  .cp-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cp-testimonials-grid > :nth-child(1),
  .cp-testimonials-grid > :nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .cp-testimonial-quote {
    font-size: 1rem;
  }

  .cp-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

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

  .cp-testimonials-cta-title {
    font-size: 1.5rem;
  }

  .cp-testimonial-card {
    padding: 1.25rem;
  }

  .cp-testimonials-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cp-btn {
    width: 100%;
  }
}
