

header[role="banner"] {
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 2rem;
  min-height: 40vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-shadow: inset 0 -60px 60px -30px rgba(143, 21, 21, 0.08);
}

header {
  margin: 0 0 2rem;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.header-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.65) 100%
  );
}

header[role="banner"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    var(--base-beige-color) 80%,
    var(--base-beige-color) 100%
  );
  pointer-events: none;
}

h1 {
  font-family: var(--global-font-family-titre);
  color: var(--base-noir-color);
  font-size: var(--font-size-h1);
  margin: 0 0 0.5rem 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  animation: 0.8s ease-out fadeInDown;
  color: var(--base-rouge-color);
}

.subtitle {
  font-size: var(--font-size-h3);
  color: var(--base-rouge-color);
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: saturate(120%) blur(2px);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  animation: 0.8s ease-out 0.2s both fadeInUp;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries */
@media (max-width: 768px) {
  header[role="banner"] {
    padding: 2.5rem 1rem;
    min-height: 34vh;
  }
  
  h1 {
    font-size: var(--font-size-h1-mobile);
  }
  
  .subtitle {
    font-size: var(--font-size-h3-mobile);
  }
}

@media (max-width: 480px) {
  header[role="banner"] {
    padding: 2rem 1rem;
    min-height: 30vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  .subtitle {
    animation: none;
  }
}
