/* ==============================================
   HERO COVER STYLES - CLEAN & FIXED
   ============================================== */

/* Hero Section */
.hero-cover {
  position: relative;
  /* 100vh moins la hauteur de: navbar (60px) + flash (40px) + contact ribbon (35px) = 135px */
  min-height: calc(100vh - 135px);
  /* Pas de hauteur fixe pour permettre l'extension si nécessaire */
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0; /* Pas de marge négative car navbar opaque */
  padding-top: 0;
}

/* Image de fond */
.hero-cover-bg {
  position: absolute;
  inset: 0;
  background-image: url("/static/cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Overlay sombre */
.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 31, 77, 0.75) 0%,
    rgba(0, 20, 50, 0.65) 50%,
    rgba(0, 31, 77, 0.7) 100%
  );
  z-index: 1;
}

/* Container */
.hero-cover-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  color: white;
  width: 100%;
}

/* Contenu principal */
.hero-cover-content {
  max-width: 800px;
  margin-bottom: 3rem;
}

/* Badge */
.hero-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 140, 0, 0.2);
  border: 1px solid rgba(255, 140, 0, 0.4);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-cover-badge i {
  color: var(--color-secondary);
}

/* Titre */
.hero-cover-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* First part of title - with blue background */
.hero-cover-title > span:first-child:not(.hero-cover-highlight),
.hero-first-word {
  background-color: rgba(224, 123, 0, 0.5);
  padding: 2px 10px;
  display: inline;
}

.hero-cover-highlight {
  display: block;
  color: var(--color-secondary);
  margin-top: 0.25rem;
}

/* Sous-titre */
.hero-cover-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Actions */
.hero-cover-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cover-primary,
.btn-cover-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-cover-primary {
  background: var(--color-secondary);
  color: white;
  border: none;
}

.btn-cover-primary:hover {
  background: #e07b00;
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.btn-cover-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cover-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Stats */
.hero-cover-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  background: rgba(0, 31, 77, 0.4); /* Fond semi-transparent pour lisibilité */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 800px;
}

.hero-cover-stat {
  text-align: center;
  flex: 1;
  min-width: 140px;
  padding: 0.5rem;
}

.hero-cover-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-cover-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-cover {
    min-height: calc(100vh - 130px);
    height: auto;
    padding: 2rem 0;
  }

  .hero-cover-container {
    padding: 3rem 1.5rem;
  }

  .hero-cover-title {
    font-size: 2rem;
  }

  .hero-cover-stats {
    padding: 1rem;
    gap: 1.5rem;
  }

  .hero-cover-stat {
    min-width: 120px;
  }

  .hero-cover-stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-cover-title {
    font-size: 1.75rem;
  }

  .hero-cover-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-cover-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
  }

  .hero-cover-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
