/* Hero / cinéma Boubou — démo vidéo */

/* Mode paysage 16:9 natif (hero #accueil, fichier boubou-promo-landscape.mp4) */
.hb-boubou-cinema--landscape {
  min-height: unset;
  max-height: min(78svh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  width: 100%;
}

.hb-boubou-cinema--landscape .hb-boubou-cinema__video {
  object-fit: cover;
  object-position: center center;
}

.hb-boubou-cinema--landscape.is-revealed .hb-boubou-cinema__video {
  animation-name: hb-boubou-kenburns-landscape;
}

@keyframes hb-boubou-kenburns-landscape {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-0.6%, -1%, 0);
  }
}

.hb-boubou-cinema--landscape .hb-boubou-cinema__content {
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 56px);
  max-width: min(520px, 55%);
}

.hb-boubou-cinema--landscape .hb-boubou-cinema__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: 8px;
}

.hb-boubou-cinema--landscape .hb-boubou-cinema__title br {
  display: none;
}

.hb-boubou-cinema--landscape .hb-boubou-cinema__lead {
  margin-bottom: 18px;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
}

.hb-boubou-cinema--landscape .hb-boubou-cinema__vignette {
  background: radial-gradient(
      ellipse 90% 80% at 30% 50%,
      transparent 0%,
      rgba(10, 8, 7, 0.2) 50%,
      rgba(10, 8, 7, 0.55) 100%
    ),
    linear-gradient(180deg, rgba(10, 8, 7, 0.45) 0%, transparent 22%, transparent 62%, rgba(10, 8, 7, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 8, 7, 0.7) 0%, transparent 50%);
}

/* Plein écran vertical (ancien mode, si réutilisé) */
.hb-boubou-cinema {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: min(92svh, 920px);
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0807;
}

.hb-boubou-cinema__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hb-boubou-cinema__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  opacity: 0;
  filter: brightness(0.72) contrast(1.05) saturate(1.08);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.6s ease;
}

.hb-boubou-cinema.is-revealed .hb-boubou-cinema__video {
  opacity: 1;
  transform: scale(1);
  filter: brightness(0.88) contrast(1.02) saturate(1.12);
  animation: hb-boubou-kenburns 22s ease-in-out infinite alternate;
}

@keyframes hb-boubou-kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
  }
}

.hb-boubou-cinema__shimmer {
  position: absolute;
  inset: -40% -20%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(212, 188, 130, 0.12) 48%,
    rgba(255, 252, 246, 0.22) 50%,
    rgba(212, 188, 130, 0.1) 52%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
}

.hb-boubou-cinema.is-revealed .hb-boubou-cinema__shimmer {
  animation: hb-boubou-shimmer 2.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes hb-boubou-shimmer {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-12deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-12deg);
  }
}

.hb-boubou-cinema__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hb-boubou-cinema__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
      ellipse 80% 70% at 50% 45%,
      transparent 0%,
      rgba(10, 8, 7, 0.25) 55%,
      rgba(10, 8, 7, 0.75) 100%
    ),
    linear-gradient(180deg, rgba(10, 8, 7, 0.55) 0%, transparent 28%, transparent 55%, rgba(10, 8, 7, 0.92) 100%),
    linear-gradient(90deg, rgba(10,  8, 7, 0.65) 0%, transparent 42%, transparent 58%, rgba(10, 8, 7, 0.5) 100%);
}

.hb-boubou-cinema__content {
  position: relative;
  z-index: 6;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(40px, 8vw, 88px);
  max-width: 720px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.hb-boubou-cinema.is-revealed .hb-boubou-cinema__content {
  opacity: 1;
  transform: translateY(0);
}

.hb-boubou-cinema__eyebrow {
  display: block;
  font-size: clamp(0.625rem, 1.4vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 188, 130, 0.95);
  margin-bottom: 14px;
}

.hb-boubou-cinema__rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #d4bc82, transparent);
  margin-bottom: 20px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

.hb-boubou-cinema.is-revealed .hb-boubou-cinema__rule {
  transform: scaleX(1);
}

.hb-boubou-cinema__title {
  font-family: var(--hb-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fffaf2;
  margin: 0 0 12px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hb-boubou-cinema__title em {
  font-style: italic;
  font-weight: 300;
  color: #e8d4a0;
}

.hb-boubou-cinema__lead {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.82);
  margin: 0 0 28px;
  max-width: 36ch;
  letter-spacing: 0.02em;
}

.hb-boubou-cinema__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hb-boubou-cinema__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a962 0%, #a68b4b 48%, #8f7340 100%);
  color: #1a1513;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-boubou-cinema__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hb-boubou-cinema__sound {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  color: #fffaf2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s, border-color 0.25s;
}

.hb-boubou-cinema__sound:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(232, 212, 160, 0.45);
}

.hb-boubou-cinema__scroll {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(24px, 5vw, 48px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}

.hb-boubou-cinema.is-revealed .hb-boubou-cinema__scroll {
  opacity: 1;
}

.hb-boubou-cinema__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(212, 188, 130, 0.8), transparent);
  animation: hb-boubou-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hb-boubou-scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.6);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .hb-boubou-cinema:not(.hb-boubou-cinema--landscape) {
    min-height: min(88svh, 780px);
  }

  .hb-boubou-cinema--landscape {
    max-height: min(56vw, 72svh);
    aspect-ratio: 16 / 9;
  }

  .hb-boubou-cinema--landscape .hb-boubou-cinema__content {
    max-width: 100%;
    padding-bottom: 20px;
  }

  .hb-boubou-cinema--landscape .hb-boubou-cinema__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hb-boubou-cinema__content {
    max-width: 100%;
    padding-bottom: 72px;
  }

  .hb-boubou-cinema__scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-boubou-cinema__video,
  .hb-boubou-cinema.is-revealed .hb-boubou-cinema__video {
    animation: none;
    transform: none;
    transition: opacity 0.4s ease;
  }

  .hb-boubou-cinema__shimmer {
    display: none;
  }

  .hb-boubou-cinema__content {
    transition: opacity 0.4s ease;
    transform: none;
  }

  .hb-boubou-cinema__scroll-line {
    animation: none;
  }
}

body.dark .hb-boubou-cinema {
  background: #050403;
}
