/* ============================ 
HERO
============================ */
.hero{position:relative; background:url('/medias/bannersoleil.webp');background-color:var(--primary); min-height: 40rem; overflow:hidden;display:grid;place-items:center;text-align:center; border-radius: 0px 0px 50px 50px;}

/* Nuages */
.cloud{position:absolute;top:8rem;opacity:.9;pointer-events:none}
.cloud.one{left:100%;width:100px;animation:cloudMove 55s linear infinite}
.cloud.two{left:100%;width:120px;top:16rem;animation:cloudMove 55s linear infinite 10s}
@keyframes cloudMove{to{transform:translateX(-130vw)}}

/* Accroche */
.container-hero {padding:25px;}
.container-hero h1 {font-size:1.2rem;letter-spacing:.5px;margin-top:.5rem; text-transform:uppercase;color:white;}
.container-hero h2 {font-size: 3.55em;color:white;}
.cta-group{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap; z-index: 2;}

/* Maison */
.house{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:600px;max-width:70%;z-index: 1}

/* Responsive */
@media(max-width:840px){
  .cloud.one{width:90px}
  .cloud.two{width:110px}
  .container-hero h1 {font-size:0.8rem;}
  .container-hero h2 {font-size: 1.65em;}
}

/* ============================== 
  ICON AUTHORITY
============================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

/* Carte Stat */
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Ligne animée au hover */
.stat::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.stat:hover::after {
  opacity: 1;
  width: 80%;
}

/* Icône circulaire */
.icon-circle {
  width: clamp(80px, 6vw, 100px);
  height: clamp(80px, 6vw, 100px);
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(27,145,246,0.3);
  transition: transform 0.3s ease;
}

.icon-circle:hover {
  transform: scale(1.08);
}

.icon-stats {
  width: clamp(40px, 4vw, 55px);
  height: clamp(40px, 4vw, 55px);
}

/* Texte */
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
}

.stat-label-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--dark);
}

.stat-label small {
  color: var(--light-dark);
}

/* ============================== 
  NOS AVANTAGES EN GRAPHIQUE
  ==============================*/

.advantages-graphic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.program-card {
  background: rgba(255, 255, 255);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.icon-highlight {
  position: relative;
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 20px;
  overflow: hidden;
  z-index: 2;
}

.icon-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 0;
  height: 40%;
  background: rgba(27, 145, 246, 0.4);
  border-radius: 50px;
  transform: rotate(-2deg);
  z-index: 3;
  clip-path: polygon(
    0% 30%, 10% 10%, 90% 0%, 100% 20%, 
    95% 70%, 80% 100%, 10% 90%, 0% 70%
  );
}

.icon-highlight.animate::after {
  animation: markerHandDraw 1.5s ease-out forwards; /* Durée augmentée */
}

@keyframes markerHandDraw {
  0% {
    width: 0;
    transform: rotate(-2deg) translateY(0px);
  }
  20% {
    transform: rotate(-2deg) translateY(-1px);
  }
  40% {
    transform: rotate(-2deg) translateY(1px);
  }
  60% {
    transform: rotate(-2deg) translateY(-1px);
  }
  80% {
    transform: rotate(-2deg) translateY(1px);
  }
  100% {
    width: 75%;
    transform: rotate(-2deg) translateY(0px);
  }
}

.program-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.program-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-style: italic;
}

.program-description {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.5;
}

.program-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(27, 145, 246, 0.1), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  opacity: 0;
}

.program-card:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
  opacity: 1;
}

/*  ==============================
    BANNIÈRE DES COURS  
==============================*/
.courses-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.course-banner-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 350px;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-banner-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 20%, transparent 80%);
  color: white;
  text-align: left;
}

.card-overlay .btn-light {
  align-self: flex-start;
  background-color: #f5d7aa;
  color: black;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-shadow: none;
}

.card-overlay .btn-light:hover {
  background-color: #e0c28f;
}

/* =======================
  SECTION TEMOIGNAGES 
======================= */
.testimonial-swiper {
  position: relative;
  padding: 0 40px;
  margin: 50px 0;
  overflow: hidden;
  width: 100%;
}

.testimonial-card {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 145, 246, 0.08) 0%, rgba(27, 145, 246, 0.03) 100%);
  border-radius: 25px;
  padding: 40px 30px 30px 80px; /* Plus d'espace à gauche pour l'avatar */
  box-shadow: 0 20px 40px rgba(27, 145, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  border: 1px solid rgba(27, 145, 246, 0.1);
  margin: 30px 20px; /* Marge pour laisser place aux éléments qui débordent */
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(27, 145, 246, 0.15);
}

/* GUILLEMETS DEBORDANT */
.quote-open, .quote-close {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(27, 145, 246, 0.2);
  border: 2px solid white;
}

.quote-open {
  top: -10px;
  left: 15px;
}

.quote-close {
  bottom: -10px;
  right: 15px;
}

/* CONTENU INTERIEUR (STYLE CARTE) */
.testimonial-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px 25px 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* AVATAR STYLE BULLE DE DISCUSSION */
.testimonial-avatar {
  position: absolute;
  top: 50%;
  left: -35px;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(27, 145, 246, 0.3);
  background: white;
  z-index: 3;
}

/* Centrage parfait des slides */
.swiper-wrapper {
  align-items: center;
}
.swiper-slide {
  max-height: 80%; /* Largeur automatique */
  margin: 0 auto; /* Centrage horizontal */
}

.testimonial-avatar::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  z-index: 2;
}

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

/* TITRE  */
.testimonial-title {
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
}

/* TEXTE */
.testimonial-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* SIGNATURE STYLE HANDWRITING */
.testimonial-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid rgba(27, 145, 246, 0.1);
  font-size: 1.1rem;
  color: var(--primary);
  text-align: center;
  font-weight: 500;
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  position: relative;
  font-style: italic;
}

/* Style manuscrit personnalisé si Dancing Script n'est pas chargée */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600&display=swap');

/*  ETOILES/RATING */
.testimonial-rating {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  gap: 3px;
}

.testimonial-rating .star {
  color: #ffd700;
  font-size: 16px;
}

/* SWIPER NAVIGATION */
.swiper-button-prev, .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  margin-top: 0;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(27, 145, 246, 0.3);
  color: white;
  font-size: 18px;
  font-weight: bold;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 3px solid white;
}

.swiper-button-prev {
  left: 5px;
}

.swiper-button-next {
  right: 5px;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 30px rgba(27, 145, 246, 0.4);
}

/* PAGINATION */
.swiper-pagination {
  position: relative;
  margin-top: 40px;
}

.swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: var(--gradient);
  opacity: 0.3;
  margin: 0 6px;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Tablettes */
@media (max-width: 1024px) {
  .testimonial-swiper {
    padding: 0 30px;
  }
  
  .swiper-button-prev {
    left: 0;
  }
  
  .swiper-button-next {
    right: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .testimonial-swiper {
    padding: 0 15px;
    margin: 30px 0;
    overflow: visible;
  }

  .testimonial-card {
    /* Simplification du layout pour mobile */
    padding: 25px 20px 20px 20px;
    margin: 20px 5px;
    border-radius: 20px;
    min-height: 320px;
  }

  /* Avatar repositionné au centre sur mobile */
  .testimonial-avatar {
    position: static;
    transform: none;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border: 3px solid white;
  }

  /* Suppression de la bulle de discussion sur mobile */
  .testimonial-avatar::after {
    display: none;
  }

  /* Guillemets plus petits */
  .quote-open, .quote-close {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .quote-open {
    top: -10px;
    left: 15px;
  }

  .quote-close {
    bottom: -10px;
    right: 15px;
  }

  /* Contenu centré */
  .testimonial-content {
    padding: 20px 15px 15px;
    text-align: center;
  }

  /* Texte adapté */
  .testimonial-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .testimonial-text {
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 15px;
  }

  .testimonial-footer {
    font-size: 1rem;
    padding-top: 15px;
  }

  /* Navigation plus petite */
  .swiper-button-prev, .swiper-button-next {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .swiper-button-prev {
    left: -5px;
  }

  .swiper-button-next {
    right: -5px;
  }

  /* Pagination */
  .swiper-pagination {
    margin-top: 30px;
  }

  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 4px;
  }

  /* Fix pour le centrage des slides */
  .swiper-wrapper {
    align-items: stretch;
  }

  .swiper-slide {
    height: auto;
    max-height: none;
  }
}

/* Très petits mobiles */
@media (max-width: 480px) {
  .testimonial-card {
    padding: 20px 15px 15px 15px;
    margin: 15px 2px;
    min-height: 300px;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .quote-open, .quote-close {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .testimonial-content {
    padding: 15px 12px 12px;
  }

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

  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .testimonial-footer {
    font-size: 0.95rem;
  }

  .swiper-button-prev, .swiper-button-next {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

/* Fix pour les anciennes règles qui pourraient créer des conflits */
@media (max-width: 768px) {
  .advantages-graphic {
    grid-template-columns: 1fr;
  }
}