/* STYLES DU MENU ET DE L’OUVERTURE UNIQUEMENT */
.rp-entete,
.rp-ouverture {
  font-family: Arial, sans-serif;
  color: #f3f1ed;
}

.rp-entete :focus-visible,
.rp-ouverture :focus-visible {
  outline: 2px solid #f3f1ed;
  outline-offset: 5px;
}

/* NAVBAR TRANSLUCIDE */
.rp-entete {
  position: fixed;
  top: 18px;
  right: clamp(16px, 2vw, 40px);
  left: clamp(16px, 2vw, 40px);
  z-index: 1000;

  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;

  background: rgba(18, 22, 23, 0.65);

  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  color-scheme: dark;
}

.rp-logo {
  display: grid;
  place-items: center;
  justify-self: start;

  width: 60px;
  height: 60px;
}

.rp-logo img {
  display: block;
  width: 45px;
  height: 54px;
  object-fit: contain;
}

.rp-navigation {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(2px, 0.5vw, 12px);
  min-width: 0;
}

.rp-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 12px;

  border: 1px solid transparent;
  border-radius: 30px;

  color: inherit;

  font-size: 11px;
  font-weight: 700;

  text-decoration: none;
  white-space: nowrap;

  transition: background 180ms ease;
}

.rp-navigation a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rp-navigation a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.rp-actions-navigation {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

#rp-navigation-rapide {
  width: 215px;
  min-height: 46px;
  padding: 12px 16px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.04);
  color: #f3f1ed;

  font: 700 11px Arial, sans-serif;
  cursor: pointer;
}

#rp-navigation-rapide option {
  background: #171b1d;
  color: #f3f1ed;
}

.rp-bouton-menu {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 46px;
  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.05);
  color: #f3f1ed;

  font: 700 12px Arial, sans-serif;
  cursor: pointer;
}

/* VIDÉO ET VIGNETAGE */
.rp-ouverture {
  position: relative;
  isolation: isolate;

  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 440px;

  overflow: hidden;
  background: #05070b;
}

.rp-ouverture video {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.rp-ouverture::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.08) 38%,
    rgba(0, 0, 0, 0.18) 62%,
    #05070b 100%
  );

  pointer-events: none;
}

/* GRAND TITRE EN BAS À GAUCHE */
.rp-texte-ouverture {
  position: absolute;
  z-index: 2;

  right: calc(clamp(22px, 5vw, 100px) + 90px);
  bottom: clamp(40px, 6vh, 80px);
  left: clamp(22px, 5vw, 100px);

  pointer-events: none;
}

.rp-surtitre {
  margin: 0 0 18px;

  color: #e4d4b9;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

#rp-titre {
  margin: 0;

  font-size: clamp(54px, 8vw, 154px);
  font-weight: 900;

  line-height: 0.88;
  letter-spacing: -0.055em;
}

/* FLÈCHE RONDE TRANSLUCIDE */
.rp-descendre {
  position: absolute;
  right: clamp(22px, 5vw, 100px);
  bottom: 50px;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 62px;
  height: 62px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;

  background: rgba(18, 22, 23, 0.45);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  color: #f3f1ed;
  font-size: 28px;
  text-decoration: none;

  transition:
    background 180ms ease,
    transform 180ms ease;
}

.rp-descendre:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(3px);
}

/* MENU COMPACT */
@media (max-width: 1150px) {
  .rp-entete {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rp-bouton-menu {
    display: inline-flex;
  }

  .rp-navigation {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;
    left: 0;

    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 6px;
    padding: 16px;

    max-height: calc(100dvh - 130px);
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;

    background: rgba(18, 22, 23, 0.96);

    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  }

  .rp-menu-ouvert .rp-navigation {
    display: grid;
  }
}

/* MOBILE */
@media (max-width: 720px) {
  .rp-entete {
    top: 12px;
    right: 12px;
    left: 12px;

    padding: 8px 10px;
    border-radius: 23px;
  }

  .rp-logo {
    width: 48px;
    height: 50px;
  }

  .rp-logo img {
    width: 35px;
    height: 43px;
  }

  #rp-navigation-rapide {
    display: none;
  }

  .rp-texte-ouverture {
    right: 22px;
    bottom: 115px;
    left: 22px;
  }

  .rp-surtitre {
    font-size: 9px;
    letter-spacing: 2px;
  }

  #rp-titre {
    font-size: clamp(46px, 12vw, 82px);
  }

  .rp-descendre {
    right: 22px;
    bottom: 32px;

    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-navigation a,
  .rp-descendre {
    transition: none;
  }
}