/* --------------------------------------------------
   Bandeau « Réveillon du Nouvel An » de la page d'accueil
   À charger après custom.css. Reprend les codes du thème :
   fond sombre, sous-titre, polices Marcellus / Jost, angles droits,
   boutons en capitales espacées. Seul le bouton passe au rouge.
   -------------------------------------------------- */

:root {
  --reveillon-red: #b3122b;
  --reveillon-red-hover: #c8152f;
  --reveillon-champagne: #e8cf95;
}

section.reveillon-band {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(179, 18, 43, 0.38), transparent 62%),
    var(--bg-dark-1);
}

.reveillon-band .subtitle { color: var(--reveillon-champagne); }

/* Trois infos clés, séparées par un filet fin */
.reveillon-infos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 34px 0 38px;
  padding: 0;
}
.reveillon-infos li {
  padding: 4px 30px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.reveillon-infos li:first-child { border-left: 0; }
.reveillon-infos strong {
  display: block;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  color: #fff;
}
.reveillon-infos span {
  display: block;
  font-size: 14px;
  color: var(--dark-body-font-color, rgba(255, 255, 255, 0.75));
}

/* Bouton rouge avec feux d'artifice intégrés */
a.btn-main.btn-reveillon,
a.btn-main.btn-reveillon:visited {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 18px 46px;
  font-size: 14px;
  letter-spacing: 3px;
  color: #fff;
  background: var(--reveillon-red);
  box-shadow:
    inset 0 0 0 1px rgba(232, 207, 149, 0.5),
    0 10px 30px rgba(179, 18, 43, 0.35);
  transition: background-color 0.2s, box-shadow 0.2s;
}
a.btn-main.btn-reveillon:hover,
a.btn-main.btn-reveillon:focus-visible {
  background: var(--reveillon-red-hover);
  box-shadow:
    inset 0 0 0 1px rgba(232, 207, 149, 0.8),
    0 12px 36px rgba(179, 18, 43, 0.55);
}

.btn-reveillon__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.btn-reveillon__label {
  position: relative;
  z-index: 1;
}

.reveillon-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

@media only screen and (max-width: 767px) {
  section.reveillon-band { padding: 64px 0; }
  .reveillon-infos { flex-direction: column; gap: 14px; }
  .reveillon-infos li {
    border-left: 0;
    padding: 0;
  }
  .reveillon-infos strong { font-size: 24px; }
  a.btn-main.btn-reveillon { padding: 16px 30px; font-size: 13px; letter-spacing: 2px; }
}

/* Feux d'artifice en fond du bandeau (derrière le texte) */
section.reveillon-band { overflow: hidden; }
.reveillon-band__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.reveillon-band > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Aperçu du réveillon en bas du hero (visible sans scroller) ---------- */
.reveillon-teaser-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 118px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.reveillon-teaser {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  max-width: 100%;
  padding: 12px 14px 12px 28px;
  background: rgba(20, 8, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 207, 149, 0.35);
}
.reveillon-teaser__text { text-align: left; line-height: 1.25; }
.reveillon-teaser__date {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--reveillon-champagne);
}
.reveillon-teaser__text strong {
  display: block;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  color: #fff;
}
a.btn-main.btn-reveillon.btn-reveillon--sm {
  padding: 14px 30px;
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* Chevron vers le bas : mène au détail de la soirée */
a.reveillon-chevron {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: reveillon-bounce 2.2s ease-in-out infinite;
}
a.reveillon-chevron span {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
a.reveillon-chevron:hover { color: var(--reveillon-champagne); }
@keyframes reveillon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  a.reveillon-chevron { animation: none; }
}

@media only screen and (max-width: 767px) {
  .hero-strip { display: none; }
  .reveillon-teaser-wrap { bottom: 72px; padding: 0 10px; }
  .reveillon-teaser {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    padding: 18px 22px;
    text-align: center;
  }
  a.btn-main.btn-reveillon.btn-reveillon--sm { min-width: 220px; }
  .reveillon-teaser__text { text-align: center; }
  .reveillon-teaser__text strong { font-size: 22px; }
  a.reveillon-chevron { bottom: 20px; }
}

/* ---------- Hero : tenir compte de la barre du navigateur sur téléphone ----------
   100vh = hauteur écran SANS barre d'adresse/barre du bas : le bas du hero
   (donc le rectangle du réveillon) passait sous la barre de Chrome.
   100svh = hauteur réellement visible. Deux déclarations : l'ancienne reste en repli. */
#hero-home.full-height {
  height: 100vh !important;
  height: 100svh !important;
}
#hero-home .vertical-center {
  min-height: 100vh;
  min-height: 100svh;
}

@media only screen and (max-width: 767px) {
  /* Le titre se centre dans la zone libre au-dessus de l'aperçu du réveillon */
  #hero-home .vertical-center {
    padding-bottom: 210px;
    box-sizing: border-box;
  }
  .reveillon-teaser-wrap { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .reveillon-teaser { padding: 14px 20px; gap: 10px; }
  .reveillon-teaser__text strong { font-size: 20px; }
  a.btn-main.btn-reveillon.btn-reveillon--sm { padding: 12px 24px; }
  a.reveillon-chevron { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Hero : nouvelle disposition (titre centré, actions collées au réveillon) ---------- */

/* Sous-titre « Hôtel-restaurant » en blanc (il était marron) */
#hero-home h1 .subtitle,
#hero-home .hero-actions .subtitle {
  color: #fff;
}

/* Ordinateur : disposition d'origine ; le bloc « téléphone » est masqué et
   .hero-stack disparaît (display: contents) pour que l'aperçu et le chevron
   gardent leur positionnement absolu par rapport au hero. */
@media only screen and (min-width: 768px) {
  .hero-stack { display: contents; }
  .hero-actions { display: none; }
}

/* Téléphone */
@media only screen and (max-width: 767px) {
  /* Le titre reste au centre du hero, en plus grand */
  #hero-home .vertical-center { padding-bottom: 0; }
  #hero-home h1.fs-96 { font-size: clamp(56px, 19vw, 84px) !important; line-height: 1.1; }

  /* Le sous-titre et le bouton d'origine laissent la place au bloc du bas */
  #hero-home h1 .hero-subtitle,
  .hero-cta-desktop { display: none; }

  /* Pile en bas du hero : sous-titre + bouton, puis réveillon, puis chevron */
  .hero-stack {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 10px;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .hero-actions .subtitle { margin: 0; line-height: 1.5; }

  .hero-stack .reveillon-teaser-wrap {
    position: static;
    width: 100%;
    padding: 0;
  }
  .hero-stack a.reveillon-chevron {
    position: static;
    margin: -4px 0 0;
    height: 34px;
  }
}

/* Petits écrans en hauteur réduite : on compacte pour que rien ne se chevauche */
@media only screen and (max-width: 767px) and (max-height: 720px) {
  #hero-home h1.fs-96 { font-size: clamp(48px, 16vw, 64px) !important; }
  .hero-stack { gap: 10px; }
  .hero-stack a.reveillon-chevron { display: none; }
}

/* ---------- Bouton « Voir la carte » + visionneuse PDF ---------- */
.reveillon-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
a.btn-main.btn-carte,
a.btn-main.btn-carte:visited {
  display: inline-block;
  padding: 16px 40px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
a.btn-main.btn-carte:hover,
a.btn-main.btn-carte:focus-visible {
  color: #1c1c1a;
  background: #fff;
  box-shadow: inset 0 0 0 1px #fff;
}

.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 4, 5, 0.82);
}
.pdf-viewer[hidden] { display: none; }
.pdf-viewer__box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  height: 92vh;
  height: 92dvh;
  background: #1c1c1a;
  border: 1px solid rgba(232, 207, 149, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.pdf-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  color: #fff;
}
.pdf-viewer__bar strong {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: 20px;
}
.pdf-viewer__actions { display: inline-flex; align-items: center; gap: 18px; }
a.pdf-viewer__link {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--reveillon-champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pdf-viewer__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.pdf-viewer__close:hover,
.pdf-viewer__close:focus-visible { color: var(--reveillon-champagne); outline: 2px solid currentColor; outline-offset: 2px; }
.pdf-viewer__frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #525659;
}
body.pdf-viewer-open { overflow: hidden; }

@media only screen and (max-width: 767px) {
  .pdf-viewer { padding: 0; }
  .pdf-viewer__box { height: 100vh; height: 100dvh; max-width: none; border: 0; }
  a.btn-main.btn-carte { padding: 14px 28px; }
}


/* ---------- Boutons du bandeau : pile verticale, même largeur ---------- */
.reveillon-actions {
  width: min(100%, 340px);
  margin: 0 auto;
}
.reveillon-actions a.btn-main {
  display: block;
  width: 100%;
  padding: 17px 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
}

/* Téléphone : masquer le sous-titre et le bouton d'origine du hero.
   Il faut !important : Bootstrap impose `.d-block { display: block !important }`
   sur le sous-titre, et le thème a `a.btn-main:visited { display: inline-block }`
   (plus précis) qui réaffichait le bouton pour les liens déjà visités. */
@media only screen and (max-width: 767px) {
  #hero-home h1 .hero-subtitle,
  #hero-home .hero-cta-desktop {
    display: none !important;
  }
}
