/**
 * UTA EDI FORM - Homepage Styles
 */

/* Animations Globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Hero Section avec vidéo */
.hero-section {
  position: relative;
  color: var(--text-light);
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-section:hover .hero-video {
  transform: translateX(-50%) translateY(-50%) scale(1.05);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 57, 84, 0.9) 0%, rgba(26, 95, 138, 0.8) 100%);
  z-index: -1;
}

.hero-container {
  width: 100%;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  margin-left: 250px; /* Pour s'aligner avec la navbar verticale */
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Logo héros */
.hero-logo {
  text-align: center;
  margin-bottom: var(--spacing-md);
  animation: zoomIn 1s ease-out forwards;
}

.hero-logo-image {
  max-width: 100%;
  height: auto;
  width: 500px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.hero-logo:hover .hero-logo-image {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hero-tagline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-title span {
  color: var(--yellow); /* Changé de turquoise à yellow pour plus de visibilité */
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 6px;
  background-color: var(--yellow);
  bottom: 5px;
  left: 0;
  z-index: -1;
  opacity: 0.3;
  border-radius: 3px;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-cta .btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-cta .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.hero-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.hero-cta .btn-primary {
  background-color: var(--azure);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-cta .btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-cta .btn-primary:hover {
  background-color: var(--dark-blue);
}

.hero-cta .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ajustement pour les médias queries */
@media (max-width: 768px) {
  .hero-content {
    margin-left: 0;
    margin-top: 60px; /* Espace pour le bouton de menu mobile */
    text-align: center;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    height: 70vh;
    min-height: 500px;
  }
}

/* Popular Courses Section */
.popular-courses {
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.popular-courses::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(17, 217, 103, 0.05);
  border-radius: var(--radius-round);
  z-index: 0;
}

.popular-courses .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  animation: fadeInUp 0.8s ease-out forwards;
}

.popular-courses .section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--azure) 0%, var(--turquoise) 100%);
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  top: 0;
}

.course-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  top: -10px;
}

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-level {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background-color: var(--dark-blue);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(11, 57, 84, 0.2);
  z-index: 2;
}

.course-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

.promo-badge {
  background-color: var(--red);
}

.partner-badge {
  background-color: var(--turquoise);
}

.discount-badge {
  background-color: var(--green);
}

.course-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.2rem;
  color: var(--dark-blue);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.course-card:hover .card-title {
  color: var(--azure);
}

.card-text {
  margin-bottom: var(--spacing-md);
  color: #555;
  line-height: 1.6;
}

.course-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: #666;
}

.course-rating {
  display: flex;
  align-items: center;
}

.course-rating-stars {
  display: flex;
  color: var(--yellow);
  margin-right: var(--spacing-xs);
}

.course-duration {
  display: flex;
  align-items: center;
}

.course-duration i {
  margin-right: var(--spacing-xs);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--azure);
}

.course-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azure);
  text-decoration: none;
  position: relative;
  padding-right: 20px;
  transition: all 0.3s ease;
}

.course-action::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.course-action:hover {
  color: var(--dark-blue);
  padding-right: 25px;
}

.course-action:hover::after {
  transform: translate(5px, -50%);
}

/* FAQ Section Enhancements */
.faq-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 350px;
  height: 350px;
  background-color: rgba(26, 95, 138, 0.05);
  border-radius: var(--radius-round);
  z-index: 0;
}

.faq-section::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 350px;
  height: 350px;
  background-color: rgba(239, 71, 111, 0.05);
  border-radius: var(--radius-round);
  z-index: 0;
}

.faq-section .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  animation: fadeInUp 0.8s ease-out forwards;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  color: #666;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-item {
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  background-color: var(--white);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
}

.faq-item:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  border-left: 4px solid var(--azure);
}

.faq-question {
  padding: var(--spacing-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(26, 95, 138, 0.03);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin: 0;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
  color: var(--azure);
}

.faq-toggle {
  color: var(--azure);
  font-size: 1.1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(26, 95, 138, 0.1);
  transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
  background-color: var(--azure);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
  color: #555;
  line-height: 1.6;
}

.faq-answer p, .faq-answer ul {
  margin-bottom: var(--spacing-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.2s;
}

.faq-answer ul {
  padding-left: var(--spacing-lg);
}

.faq-answer li {
  margin-bottom: var(--spacing-xs);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}

.faq-item.active .faq-answer p,
.faq-item.active .faq-answer ul {
  opacity: 1;
  transform: translateY(0);
}

.faq-more {
  text-align: center;
  margin-top: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.faq-more .btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-more .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Testimonials Section Enhancements */
.testimonials-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.testimonials-section .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
}

.testimonials-section .section-subtitle {
  margin-bottom: var(--spacing-xl);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 2;
}

.testimonial-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
  border-top: 5px solid transparent;
}

.testimonial-item:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  top: -10px;
  border-top: 5px solid var(--azure);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-round);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  border: 3px solid var(--azure);
  box-shadow: 0 5px 15px rgba(26, 95, 138, 0.15);
  transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(26, 95, 138, 0.25);
}

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

.testimonial-rating {
  color: var(--yellow);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.testimonial-content {
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -5px;
  font-size: 5rem;
  color: rgba(26, 95, 138, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content p {
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-bottom: var(--spacing-xs);
}

.testimonial-name {
  font-weight: 600;
  color: var(--azure);
  font-size: 1.1rem;
}

.testimonial-position {
  font-size: 0.9rem;
  color: #666;
}

.testimonial-course {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--azure);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  box-shadow: 0 4px 10px rgba(26, 95, 138, 0.2);
  transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-course {
  background-color: var(--dark-blue);
  box-shadow: 0 6px 15px rgba(11, 57, 84, 0.3);
}

.testimonials-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonials-cta .btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonials-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Arabic Voyage Promo Section Adjustments */
.arabic-promo-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #f5f9fa 0%, #e8f4e9 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.arabic-promo-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--green) 0%, var(--azure) 100%);
}

.arabic-promo-banner {
  position: relative;
}

.arabic-promo-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  color: #444;
}

.arabic-promo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.arabic-promo-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.arabic-promo-group {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.arabic-promo-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.arabic-promo-group h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--azure);
  display: flex;
  align-items: center;
}

.arabic-promo-group h3 i {
  margin-right: var(--spacing-xs);
  color: var(--green);
  font-size: 1.2rem;
}

.arabic-promo-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arabic-promo-group ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.arabic-promo-group ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.arabic-promo-gift {
  background: linear-gradient(135deg, var(--azure) 0%, #3a7fb8 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  position: relative;
  box-shadow: 0 10px 25px rgba(26, 95, 138, 0.15);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.arabic-promo-gift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(26, 95, 138, 0.2);
}

.gift-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--red);
  color: white;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(239, 71, 111, 0.3);
  animation: pulse 2s infinite;
}

.arabic-promo-gift h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.arabic-promo-gift p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.arabic-pricing {
  flex-direction: column;
  align-items: flex-start;
}

.promo-price-range {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--azure);
  margin-bottom: 5px;
}

.promo-price-info {
  font-size: 0.95rem;
  color: #666;
}

.arabic-promo-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--azure);
  border: 2px solid var(--azure);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: rgba(26, 95, 138, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 95, 138, 0.15);
}

.arabic-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.arabic-image:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.arabic-image img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.5s ease;
}

.arabic-image:hover img {
  transform: scale(1.05);
}

/* Responsive styles for Arabic Section */
@media (max-width: 992px) {
  .arabic-promo-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .arabic-promo-col {
    max-width: 500px;
    margin: 0 auto;
  }

  .arabic-pricing {
    align-items: center;
  }

  .arabic-promo-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .arabic-promo-section {
    padding: var(--spacing-lg) 0;
  }

  .arabic-promo-subtitle {
    font-size: 1rem;
  }

  .arabic-promo-group h3 {
    font-size: 1rem;
  }

  .arabic-promo-gift h4 {
    font-size: 1.1rem;
  }

  .arabic-promo-gift p,
  .arabic-promo-group ul li {
    font-size: 0.9rem;
  }

  .promo-price-range {
    font-size: 1.5rem;
  }

  .arabic-promo-cta {
    flex-direction: column;
  }
}
