/* Styles pour le carrousel 3D circulaire */
.circular-carousel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: visible;
}

/* Bordure pointillée autour de l'image */
.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;
}

/* Image centrale */
.circular-carousel-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid white;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  z-index: 2;
  position: relative;
}

/* Conteneur pour les éléments qui tournent */
.circular-carousel {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  left: -100px;
  transform-style: preserve-3d;
  animation: rotate 30s linear infinite;
  z-index: 5;
  perspective: 1000px;
  will-change: transform;
}

/* Style des éléments individuels */
.carousel-item {
  position: absolute;
  width: 120px;
  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;
  transform-style: preserve-3d;
  animation: anti-rotate 30s linear infinite;
  backface-visibility: visible;
  text-align: center;
  opacity: 1;
  z-index: 20;
}

/* Position de chaque élément autour du cercle */
.item-0 { transform: rotateY(0deg) translateZ(250px); }
.item-40 { transform: rotateY(40deg) translateZ(250px); }
.item-80 { transform: rotateY(80deg) translateZ(250px); }
.item-120 { transform: rotateY(120deg) translateZ(250px); }
.item-160 { transform: rotateY(160deg) translateZ(250px); }
.item-200 { transform: rotateY(200deg) translateZ(250px); }
.item-240 { transform: rotateY(240deg) translateZ(250px); }
.item-280 { transform: rotateY(280deg) translateZ(250px); }
.item-320 { transform: rotateY(320deg) translateZ(250px); }

/* Éléments qui tournent autour du cercle */
.circular-carousel .carousel-item {
  backface-visibility: visible;
  transform-origin: center;
  visibility: visible !important;
  pointer-events: auto;
}

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

.carousel-item:hover .icon-circle {
  transform: scale(1.1);
}

/* Couleurs spécifiques pour chaque domaine */
.web-icon {
  border-color: #0099cc;
}

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

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

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

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

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

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

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

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

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

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

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

.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;
}

/* Texte des éléments du carrousel */
.carousel-item h4 {
  font-size: 14px;
  color: #25AAE2;
  margin: 5px 0 0 0;
  text-align: center;
  font-weight: 600;
}

.carousel-item p {
  font-size: 12px;
  color: #6c757d;
  margin: 3px 0 0 0;
  text-align: center;
  line-height: 1.2;
}

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

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

/* Vague bleue en bas */
.hero-wave {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 137px;
  background-color: #25AAE2;
  border-radius: 50% 50% 0 0;
  z-index: -1;
}
