* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  animation: slideInUp 1s ease-out;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-content .subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.2rem;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-3px);
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.3);
}

.nav-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.nav-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.nav-arrow.prev {
  left: 30px;
}

.nav-arrow.next {
  right: 30px;
}

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

@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content .subtitle {
    font-size: 1.2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-link {
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #f59e0b;
}

/* Animation des particules flottantes */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  animation: float 15s infinite linear;
  opacity: 0.7;
}
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Titre de section animé */
.section-title {
  background: linear-gradient(135deg, #1e40af, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* Cartes uniformes avec effets avancés */
.card-container {
  height: 520px;
  perspective: 1000px;
}
.card-hover {
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  height: 100%;
  overflow: hidden;
}
.card-hover:hover {
  transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3), inset 0 -5px 25px rgba(255, 255, 255, 0.2);
}

/* Numérotation des cartes */
.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  color: #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Effets image */
.image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d; /* nécessaire pour la 3D */
  backface-visibility: hidden;
}
.card-hover:hover .card-image {
  transform: scale(1.15) translate(-5%, -5%);
}
/* Overlay gradient */
.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(219, 39, 119, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.card-hover:hover .overlay-gradient {
  opacity: 1;
}

/* Titre sur l'image */
.card-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}
.card-hover:hover .card-title {
  transform: translateY(0);
  opacity: 1;
}

/* Contenu des cartes */
.card-content {
  padding: 24px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}
.card-content h4 {
  color: #1e293b;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}
.card-content p {
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Bouton "Voir plus" */
.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 25px;
  border: 1px solid #bfdbfe;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.see-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transition: left 0.6s ease;
}
.see-more-btn:hover::before {
  left: 100%;
}
.see-more-btn:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}
.see-more-btn svg {
  transition: transform 0.3s ease;
}
.see-more-btn:hover svg {
  transform: translateX(5px);
}

/* Animation d'apparition */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Section */
.cta-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.cta-btn {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}
.cta-btn:hover::before {
  left: 100%;
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.4), 0 8px 16px -8px rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .card-container {
    height: auto;
  }
  .card-content {
    height: auto;
    min-height: 200px;
  }
  .section-title {
    font-size: 2.5rem;
  }
}

.team-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 40px;
}

.section-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 50px;
  font-weight: 300;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-member {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.member-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #667eea;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.4s ease;
  position: relative;
}

.team-member:hover .member-photo {
  transform: scale(1.08);
  border-color: #764ba2;
  box-shadow: 0 15px 35px rgba(118, 75, 162, 0.5);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(1.1) contrast(1.05);
}

.team-member:hover .member-photo img {
  transform: scale(1.15);
  filter: brightness(1.2) contrast(1.1);
}

.member-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.member-role {
  font-size: 1rem;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.contact-info a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #764ba2;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .team-member {
    padding: 25px;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* === SYSTÈME D'ALERTES === */

/* Overlay pour les alertes */
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.alert-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Boîte d'alerte */
.alert-box {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.7) translateY(-20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.alert-overlay.show .alert-box {
  transform: scale(1) translateY(0);
}

/* Effet de fond animé */
.alert-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.alert-box:hover::before {
  left: 100%;
}

/* Icône de l'alerte */
.alert-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  color: white;
  animation: bounceIn 0.8s ease-out;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Couleurs pour les différents types d'alertes */
.alert-success .alert-icon {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.alert-error .alert-icon {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.alert-info .alert-icon {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.alert-warning .alert-icon {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Effet de pulsation pour l'icône */
.alert-icon::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulse 2s infinite;
}

/* Titre de l'alerte */
.alert-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  font-family: "Arial", sans-serif;
}

/* Message de l'alerte */
.alert-message {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  font-family: "Arial", sans-serif;
}

/* Bouton de l'alerte */
.alert-button {
  background: linear-gradient(135deg, #059669 0% 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.alert-button::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.5s ease;
}

.alert-button:hover::before {
  left: 100%;
}

.alert-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.alert-button:active {
  transform: translateY(-1px);
}

/* Animations */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .alert-box {
    padding: 30px 20px;
    margin: 20px;
  }

  .alert-icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }

  .alert-title {
    font-size: 24px;
  }

  .alert-message {
    font-size: 14px;
  }

  .alert-button {
    padding: 12px 25px;
    font-size: 14px;
  }
}

/* Animation d'entrée fluide */
.alert-overlay {
  animation: none;
}

.alert-overlay.show {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}
