@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);
  }
}

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

@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.carousel-center-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 166, 81, 0.4), 0 0 60px rgba(0, 153, 204, 0.3);
  animation: pulse-glow 4s ease-in-out infinite alternate;
  border: 6px solid #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.carousel-center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Suppression de l'effet de zoom */
}

.carousel-center-image::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25AAE2, #0099cc);
  z-index: -1;
  opacity: 0.7;
  animation: rotate 10s linear infinite;
}

.carousel-shadow {
  position: absolute;
  width: 200px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  bottom: 30%;
  z-index: 1;
  transform: translateZ(-50px) rotateX(90deg);
  filter: blur(5px);
}

.circular-carousel {
  position: relative;
  width: 600px;
  transform-style: preserve-3d;
  animation: rotateCarousel 25s linear infinite;
}

.carousel-item {
  position: absolute;
  width: 110px;
  height: 110px;
  left: calc(50% - 55px);
  top: calc(50% - 55px);
  border-radius: 12px;
  background: var(--white-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  backface-visibility: visible;
}

.carousel-item:hover {
  /* Suppression de tout effet au survol */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Icônes du carrousel circulaire */
.icon-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--green-light);
  /* Suppression de la transition */
}

.carousel-item:hover .icon-circle {
  /* Suppression de l'effet de survol */
  transform: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.icon-circle i {
  font-size: 32px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.web-icon {
  border-color: #25AAE2;
  background: var(--green-light);
}

.marketing-icon {
  border-color: #0099cc;
  background: var(--blue-light);
}

.design-icon {
  border-color: #f97d09;
  background: #fff9f0;
}

.finance-icon {
  border-color: #9c27b0;
  background: #f3e5f5;
}

.engineering-icon {
  border-color: #e91e63;
  background: #fce4ec;
}

.health-icon {
  border-color: #f44336;
  background: #ffebee;
}

.education-icon {
  border-color: #3f51b5;
  background: #e8eaf6;
}

.agriculture-icon {
  border-color: #4caf50;
  background: #e8f5e9;
}

.law-icon {
  border-color: #ff9800;
  background: #fff3e0;
}

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

.carousel-item p {
  font-size: 11px;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
}

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

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

@keyframes borderGlow {
  0% {
    box-shadow: 0 0 5px rgba(0, 166, 81, 0.3);
    border-color: rgba(0, 166, 81, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 153, 204, 0.5);
    border-color: rgba(0, 153, 204, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 166, 81, 0.3);
    border-color: rgba(0, 166, 81, 0.5);
  }
}

/* Positions des éléments du carrousel */
.carousel-item {
  position: absolute;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

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

/* Styles pour les cartes d'offres de stage */
.offre-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  max-width: 450px;
  animation: fadeIn 0.8s ease-out forwards;
  border: 1px solid rgba(0, 166, 81, 0.1);
}

.offre-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 153, 204, 0.3);
}

.offre-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #25AAE2, #0099cc);
  animation: borderGlow 3s infinite;
}

.offre-header {
  padding: 18px 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(182deg, #25AAE2, rgba(0, 153, 204, 0.05));
}

.offre-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #25AAE2;
  margin-bottom: 8px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

.offre-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #25AAE2, #0099cc);
  transition: width 0.3s ease;
}

.offre-card:hover .offre-title::after {
  width: 100%;
}

.offre-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: #25AAE2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.offre-company i {
  font-size: 0.85rem;
}

.offre-content {
  padding: 20px 25px;
}

.offre-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.offre-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6c757d;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.offre-detail-item i {
  color: #0099cc;
  font-size: 0.85rem;
}

.offre-card:hover .offre-detail-item {
  background: rgba(0, 153, 204, 0.08);
}

.offre-description {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.modern-partner-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #25AAE2, #0099cc);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 153, 204, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modern-partner-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.modern-partner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 153, 204, 0.3);
  color: white;
}

.modern-partner-btn:hover::before {
  left: 100%;
  animation: shine 1.5s infinite;
}

/* Section titre pour les offres de stage */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  animation: fadeIn 0.8s ease-out forwards;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #25AAE2;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #25AAE2, #0099cc);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: borderGlow 3s infinite;
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 700px;
  margin: 15px auto 0;
}

/* Animation pour les entrées d'éléments */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease-out forwards;
}

/* Animation décalée pour les cartes */
.offre-card:nth-child(1) {
  animation-delay: 0.1s;
}

.offre-card:nth-child(2) {
  animation-delay: 0.3s;
}

.offre-card:nth-child(3) {
  animation-delay: 0.5s;
}

.offre-card:nth-child(4) {
  animation-delay: 0.7s;
}

.offre-card:nth-child(5) {
  animation-delay: 0.9s;
}
