/* Styles améliorés pour les cartes d'offres de stage */
.offers-section {
  padding: 80px 0;
  position: relative;
  overflow: visible;
}

.offers-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.03) 0%, rgba(0, 153, 204, 0.05) 100%);
  z-index: -1;
}

.offers-section .section-title {
  margin-bottom: 60px;
}

.offers-section .section-title h2 {
  position: relative;
  display: inline-block;
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(to right, #25AAE2, #0099cc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleShine 3s infinite;
}

@keyframes titleShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes width-pulse {
  0% {
    width: 40px;
    opacity: 1;
  }
  50% {
    width: 80px;
    opacity: 0.8;
  }
  100% {
    width: 40px;
    opacity: 1;
  }
}

.offers-container {
  padding: 15px 0;
}

.offre-card {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  max-width: none;
  height: 100%;
  margin-bottom: 0;
  border: 1px solid rgba(0, 166, 81, 0.08);
}

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

.offre-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 153, 204, 0.2);
  z-index: 1;
}

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

@keyframes shimmer {
  0% {
    opacity: 0.5;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(100%);
  }
}

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

.offre-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid #f0f4f8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offre-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.offre-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #25AAE2;
  margin: 0 0 5px;
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  position: relative;
}

.offre-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  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.85rem;
  font-weight: 600;
  color: #25AAE2;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

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

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

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

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

.offre-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.offre-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 15px;
}

.offre-date {
  font-size: 0.8rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 5px;
}

.offre-btn {
  display: inline-block;
  padding: 6px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #25AAE2, #0099cc);
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 153, 204, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.offre-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: left 0.7s ease;
  z-index: -1;
}

.offre-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 153, 204, 0.3);
  color: white;
}

.offre-btn:hover::before {
  left: 100%;
}

/* Badge pour les nouvelles offres */
.offre-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #25AAE2, #0099cc);
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(3deg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: rotate(3deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.05);
  }
  100% {
    transform: rotate(3deg) scale(1);
  }
}

/* Animation au scroll pour les cartes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

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

/* Responsive */
/* carousel swiper gère le responsive */

/* Swiper carousel offres */
.offers-swiper {
  width: 100%;
  padding: 15px 45px 50px;
}
.offers-swiper .swiper-slide {
  height: auto;
  width: 280px;
}
@media (max-width: 991px) {
  .offers-swiper .swiper-slide { width: 260px; }
}
@media (max-width: 576px) {
  .offers-swiper .swiper-slide { width: 82vw; }
}
.offers-swiper .swiper-slide .offre-card {
  height: 100%;
  margin-bottom: 0;
}
.offers-swiper .swiper-button-next,
.offers-swiper .swiper-button-prev {
  color: #25AAE2;
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  top: 45%;
}
.offers-swiper .swiper-button-next::after,
.offers-swiper .swiper-button-prev::after {
  font-size: 14px;
  font-weight: 800;
}
.offers-swiper .swiper-pagination-bullet-active {
  background: #25AAE2;
}
