/* Ouverture : photos plein écran, en-tête (marque + navigation) et accroche superposés. */
@layer components {
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(600px, 88vh, 860px);
    overflow: hidden;
    background: var(--color-steel);
    color: var(--color-cream);
  }

  .hero__media {
    position: absolute;
    inset: 0;
  }

  /* Dégradés qui garantissent la lisibilité du texte sur les photos. */
  .hero__shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
      linear-gradient(
        to top,
        rgb(var(--rgb-night) / 0.92) 0%,
        rgb(var(--rgb-night) / 0.72) 40%,
        rgb(var(--rgb-night) / 0.36) 64%,
        rgb(var(--rgb-night) / 0) 86%
      ),
      linear-gradient(to bottom, rgb(var(--rgb-night) / 0.64) 0%, rgb(var(--rgb-night) / 0) 34%);
  }

  /* Barre d'en-tête : marque à gauche, navigation à droite. */
  .hero__bar {
    position: relative;
    z-index: var(--z-hero-content);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 32px;
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding: 20px var(--gutter);
  }

  .hero__brand {
    display: inline-block;
    padding: 10px 0;
  }

  /* Logo horizontal « négatif », sans signature : 200 px minimum à l'écran (charte graphique). */
  .hero__logo {
    display: block;
    width: clamp(200px, 17vw, 250px);
    height: auto;
  }

  .hero__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 26px;
  }

  .hero__nav-link {
    display: inline-block;
    padding: 12px 0;
    font-size: 15px;
    color: var(--color-cream);
  }

  .hero__nav-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-brass-light);
    text-underline-offset: 8px;
  }

  /* Sélecteur de langue : globe + une pastille par langue disponible (nom de la langue, dans sa langue).
     Fond sombre et bordure claire : lisible quelle que soit la photo du diaporama. */
  .hero__langs {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-cream);
  }

  .hero__langs-icon {
    flex: none;
    margin-inline-end: 2px;
  }

  .hero__lang {
    padding: 8px 12px;
    border: 1px solid rgba(246, 241, 233, 0.75);
    background: rgb(var(--rgb-night) / 0.5);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .hero__lang:hover {
    background: rgba(246, 241, 233, 0.24);
    text-decoration: none;
  }

  /* Accroche, ancrée en bas de l'ouverture. */
  .hero__body {
    position: relative;
    z-index: var(--z-hero-content);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: auto auto 0;
    padding: 0 var(--gutter) clamp(48px, 7vw, 88px);
  }

  .hero__copy {
    --stack-gap: 24px;
    flex: 1 1 420px;
    min-width: 0;
    max-width: 980px;
  }

  .hero__title {
    font-size: clamp(42px, 5.4vw, 80px);
    line-height: 1;
    color: var(--color-cream);
    text-shadow: 0 2px 28px rgba(20, 12, 6, 0.35);
  }

  .hero__lead {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-linen);
  }

  .hero__cta {
    margin-top: 8px;
  }

  .hero__controls {
    display: flex;
    flex: none;
    gap: 12px;
  }
}
