/**
 * HERO.CSS - Section Hero de la Page d'Accueil
 * Agence Archimède - Architecture CSS Modulaire
 */

/* ===== SECTION HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 2rem;
  background: #ffffff !important;
  background-color: #ffffff !important;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

/* .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  pointer-events: none;
} */

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  padding: 0 2rem;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Force white background on all hero elements */
/* AVANT: appliquait un reset à tous les éléments, y compris le bouton */
/* APRÈS: on exclut .btn, .btn--primary et .hero__cta-button */
.hero :not(.btn):not(.btn--primary):not(.hero__cta-button),
.hero :not(.btn):not(.btn--primary):not(.hero__cta-button)::before,
.hero :not(.btn):not(.btn--primary):not(.hero__cta-button)::after {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.hero,
.hero__container,
.hero__content {
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: auto;
  justify-items: start;
}

.hero__text {
  padding-right: 0;
  background: #ffffff !important;
  max-width: 500px;
  text-align: left;
  margin-left: 0 !important;
}

.hero__title {
  color: #1f2937;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}

.hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #6f64db, #8b7ee8);
  margin-top: 1.5rem;
  border-radius: 2px;
}

.hero__features {
  margin-bottom: 2.5rem;
}

.hero__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero__bullet {
  color: #6f64db;
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.hero__feature span:last-child {
  color: #4b5563;
  font-weight: 400;
}

.hero__cta {
  margin-top: 3rem;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: 0;
  padding-left: 0;
  background: #ffffff !important;
}

.hero__image-img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero__image-img:hover {
  opacity: 0.95;
}

.hero__cta-button {
  background: linear-gradient(135deg, #6f64db, #8b7ee8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(111, 100, 219, 0.3);
  border: none;
  letter-spacing: 0.025em;
}

.hero__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(111, 100, 219, 0.4);
  background: linear-gradient(135deg, #5a52c7, #7c3aed);
}

/* Sécurisation du style du CTA dans la hero */
.hero .btn,
.hero .btn.btn--primary,
.hero .hero__cta-button {
  text-decoration: none !important;
  color: #ffffff !important;
  background: var(--primary-color) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(111, 100, 219, 0.4) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero {
    padding: 4rem 1.5rem;
  }
  
  .hero__container {
    max-width: 900px;
    padding: 0 1.5rem;
  }
  
  .hero__content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
    min-height: auto;
  }
  
  .hero__container {
    padding: 0 1rem;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    justify-items: center; /* AJOUT : centre les éléments de la grille */
  }
  
  .hero__text {
    max-width: 100%;
    order: 1;
    text-align: center;
    margin: 0 auto;
    margin-left: auto !important; /* AJOUT : override le margin-left: 0 !important */
    margin-right: auto !important; /* AJOUT : centre complètement */
  }
  
  .hero__image {
    order: 2;
    text-align: center;
  }
  
  .hero__title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 1.5rem;
    text-align: center; /* AJOUT : centre le titre */
  }
  
  .hero__title::after {
    width: 60px;
    margin: 1rem auto 0;
  }
  
  .hero__features {
    margin-bottom: 2rem;
    text-align: center;
    display: flex; /* AJOUT : utilise flexbox */
    flex-direction: column; /* AJOUT : colonne verticale */
    align-items: center; /* AJOUT : centre les éléments */
  }
  
  .hero__feature {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    justify-content: center; /* AJOUT : centre le contenu de chaque feature */
  }
  
  .hero__cta {
    margin-top: 2rem;
    text-align: center; /* AJOUT : centre le bouton */
  }
  
  .hero__cta-button {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .hero__image-img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0.75rem;
  }
  
  .hero__container {
    padding: 0 0.75rem;
  }
  
  .hero__content {
    gap: 2rem;
  }
  
  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    margin-bottom: 1.25rem;
  }
  
  .hero__features {
    margin-bottom: 1.5rem;
  }
  
  .hero__feature {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .hero__cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    gap: 0.4rem;
    border-radius: 10px;
  }
  
  .hero__image-img {
    height: 220px;
  }
}