/* Carrousel 3D avec image centrale */
:root {
  --primary-color: #0099cc;  /* Bleu principal */
  --secondary-color: #25AAE2; /* Vert principal */
  --dark-color: #2c3e50;
  --light-color: #f9fafc;
  --light-bg: #f5f9ff;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --success-color: #27ae60;
  --text-color: #333;
  --text-secondary: #6c757d;
  --green-light: #ebfff0;
  --blue-light: #e6f7ff;
  --white-color: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.circular-carousel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  overflow: visible;
  transform-style: preserve-3d;
}

/* Cercle extérieur avec pointillés */
.circular-carousel-container::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 3px dotted #25AAE2;
  border-radius: 50%;
  z-index: 1;
  top: -10px;
  left: -10px;
}

/* Cercle blanc autour de l'image */
.circular-carousel-container:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 15px solid white;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

/* Vague bleue en bas */
.hero-wave {
  position: absolute;
  bottom: -70px;
  left: -5%;
  height: 130px;
  background-color: #25AAE2;
  border-radius: 50% 50% 0 0;
  z-index: -1;
  color: white;
  padding: 10px;
  font-size: 18px;
}

/* Image de l'étudiant à l'intérieur du cercle */
.circular-carousel-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
}

.carousel-center-image {
  z-index: 0;
    left: 27px !important;
    top: 0 !important;
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 166, 81, 0.4), 0 0 80px rgba(0, 153, 204, 0.3);
  animation: pulse-glow 4s ease-in-out infinite alternate;
  border: 8px solid #fff;

  transform: translate(-50%, -50%);
}

.carousel-center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-shadow {
  position: absolute;
  bottom: -30px;
  width: 80%;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(10px);
  z-index: 1;
}

.circular-carousel {
  position: absolute;
  width: 650px;
  height: 650px;
  top: -125px;
  left: -125px;
  transform-style: preserve-3d;
  animation: rotate 30s linear infinite;
  z-index: 10;
  pointer-events: none; /* Permet aux clics de passer à travers */
}

.carousel-item {
  position: absolute;
  width: 100px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 15;
  animation: anti-rotate 30s linear infinite;
}

.carousel-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Positionnement des domaines autour du cercle - style carte */
.carousel-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 120px;
  position: absolute;
  transform-style: preserve-3d;
  animation: anti-rotate 30s linear infinite;
  pointer-events: auto; /* Restaurer les clics sur les éléments */
  text-align: center;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}

/* Positions des éléments du carrousel */
.item-0 { transform: rotateY(0deg) translateZ(280px); }
.item-40 { transform: rotateY(40deg) translateZ(280px); }
.item-80 { transform: rotateY(80deg) translateZ(280px); }
.item-120 { transform: rotateY(120deg) translateZ(280px); }
.item-160 { transform: rotateY(160deg) translateZ(280px); }
.item-200 { transform: rotateY(200deg) translateZ(280px); }
.item-240 { transform: rotateY(240deg) translateZ(280px); }
.item-280 { transform: rotateY(280deg) translateZ(280px); }
.item-320 { transform: rotateY(320deg) translateZ(280px); }

/* Icônes du carrousel circulaire */
.icon-circle {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 8px auto;
  background: white;
  border: 2px solid;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-item:hover .icon-circle {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon-circle i {
  font-size: 26px;
  color: var(--primary-color);
}

.web-icon {
  border-color: #0099cc;
}

.web-icon i {
  color: #0099cc;
}

.marketing-icon {
  border-color: #9b59b6;
}

.marketing-icon i {
  color: #9b59b6;
}

.design-icon {
  border-color: #e74c3c;
}

.design-icon i {
  color: #e74c3c;
}

.finance-icon {
  border-color: #f39c12;
}

.finance-icon i {
  color: #f39c12;
}

.engineering-icon {
  border-color: #3498db;
}

.engineering-icon i {
  color: #3498db;
}

.health-icon {
  border-color: #e74c3c;
}

.health-icon i {
  color: #e74c3c;
}

.education-icon {
  border-color: #f1c40f;
}

.education-icon i {
  color: #f1c40f;
}

.agriculture-icon {
  border-color: #2ecc71;
}

.agriculture-icon i {
  color: #2ecc71;
}

.law-icon {
  border-color: #34495e;
}

.law-icon i {
  color: #34495e;
}

.carousel-item h4 {
  font-size: 14px;
  color: var(--primary-color);
  margin: 5px 0 0 0;
  text-align: center;
  font-weight: 600;
}

.carousel-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 3px 0 0 0;
  text-align: center;
  line-height: 1.2;
}

/* Animation pour le carrousel */
@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes anti-rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(-360deg);
  }
}

/* Positions des éléments du carrousel */
.item-0 { transform: rotateY(0deg) translateZ(280px); }
.item-40 { transform: rotateY(40deg) translateZ(280px); }
.item-80 { transform: rotateY(80deg) translateZ(280px); }
.item-120 { transform: rotateY(120deg) translateZ(280px); }
.item-160 { transform: rotateY(160deg) translateZ(280px); }
.item-200 { transform: rotateY(200deg) translateZ(280px); }
.item-240 { transform: rotateY(240deg) translateZ(280px); }
.item-280 { transform: rotateY(280deg) translateZ(280px); }
.item-320 { transform: rotateY(320deg) translateZ(280px); }

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 30px rgba(0, 166, 81, 0.3), 0 0 60px rgba(0, 153, 204, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 166, 81, 0.5), 0 0 80px rgba(0, 153, 204, 0.3);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 166, 81, 0.3), 0 0 60px rgba(0, 153, 204, 0.2);
    transform: scale(1);
  }
}

/* Stats Counter - Style Moderne */
.stats-section {
  padding: 70px 0;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.stats-counter-modern {
  margin: 30px 0;
}

.stat-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 25px 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 166, 81, 0.15);
}

.stat-icon-container {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.stat-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 28px;
  color: #fff;
}

.stat-icon-offers {
  background: linear-gradient(135deg, #25AAE2, #88bd40);
}

.stat-icon-students {
  background: linear-gradient(135deg, #0099cc, #31c1f9);
}

.stat-icon-companies {
  background: linear-gradient(135deg, #25AAE2, #06cc63);
}

.stat-icon-success {
  background: linear-gradient(135deg, #0099cc, #007eab);
}

.stat-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.counter-number {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #25AAE2, #0099cc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
}

/* Styles des Témoignages */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--light-bg);
  position: relative;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 350px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--green-light);
}

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

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

.testimonial-name {
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 5px;
}

.testimonial-position {
  font-size: 14px;
  color: var(--primary-color);
}

.testimonial-rating {
  display: flex;
  margin-bottom: 15px;
  color: #f1c40f;
}

.testimonial-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 60px;
  color: var(--green-light);
  opacity: 0.6;
  z-index: 0;
}

/* Styles des cartes de partenaires */
.modern-partner-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modern-partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 166, 81, 0.2);
}

.partner-card-header {
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 166, 81, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.partner-logo-img {
  max-width: 80%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.modern-partner-card:hover .partner-logo-img {
  transform: scale(1.05);
}

.modern-partner-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modern-partner-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.partner-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 500;
}

.modern-partner-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.partner-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #777;
}

.partner-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.partner-meta span i {
  color: var(--secondary-color);
}

.modern-partner-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.modern-partner-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 166, 81, 0.2);
  color: white;
  text-decoration: none;
}
