.hero {
    position: relative;
    display: block;
    width: 100%;
    min-height: 30vh;
    overflow: hidden;
    text-decoration: none;
    outline-offset: -4px; /* garde le focus visible et propre */
  }

  /* Léger effet au survol/focus pour indiquer que c'est cliquable */
  .hero:hover .hero__bg,
  .hero:focus-visible .hero__bg {
    transform: scale(1.03);
  }

  .hero__bg {
    transition: transform 0.4s ease;
  }

  /* L'image devient le fond via position absolute + object-fit */
  .hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
  }

  /* Voile sombre pour garder le texte lisible, quelle que soit l'image */
  .hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
  }

  .hero__title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.2;
    max-width: 40ch;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  @media (max-width: 600px) {
    .hero,
    .hero__content {
      min-height: 45vh;
    }
  }