/* 1. Reset basique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Dimensions et position de la bannière */
#banner {
  position: relative;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

/* Bannière pour la page de détail d'actualité */
.detail-banner {
  background-image: linear-gradient(to top, rgba(20,20,20,0.6) 0%, rgba(20,20,20,0.0) 60%), url('../public/actualite/acase_ens.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  position: relative;
  top: 0; /* Assure que la bannière commence juste après l'en-tête */
  margin-top: 0; /* Ajouté pour éviter tout espace au-dessus */
}

/* 3. Couche semi-transparente pour lisibilité */
#banner .overlay {
  position: absolute;
  inset: 0; /* top/right/bottom/left = 0 */
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}

.detail-banner-overlay {
  width: 100%;
  padding: 2rem 3rem;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* 4. Styles du titre et du bouton */
#banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.detail-banner-title {
  font-size: 2.5rem;
  font-family: 'Bergant', Arial, sans-serif;
  margin: 0;
}

#banner button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #333;
  background: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

#banner button:hover {
  background: #f0f0f0;
}

.detail-banner-subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
}
