/* Hero accueil — carrousel cinématique interactif */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

.hero-cinema:focus {
  outline: none;
}

.hero-cinema:focus-visible .hero-cinema__arrow {
  outline: 2px solid var(--hc-rose-light);
  outline-offset: 2px;
}

.hero-cinema {
  --hc-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --hc-rose: var(--rotaract-rose, #D41367);
  --hc-rose-light: var(--rotaract-rose-light, #E0408F);
  position: relative;
  height: calc(100vh - var(--site-chrome-height, 0px));
  height: calc(100dvh - var(--site-chrome-height, 0px));
  min-height: 520px;
  max-height: 920px;
  overflow: hidden;
  background: #0a0c12;
  color: #fff;
}

.hero-cinema__slides {
  position: absolute;
  inset: 0;
}

.hero-cinema__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--hc-spring), visibility 1.1s;
  z-index: 0;
}

.hero-cinema__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-cinema__media {
  position: absolute;
  inset: -4%;
  overflow: hidden;
}

.hero-cinema__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s linear;
  will-change: transform;
}

.hero-cinema__slide.is-active .hero-cinema__media img {
  transform: scale(1);
}

.hero-cinema__slide[data-pos="right"] .hero-cinema__media img {
  object-position: 25% 70%;
}

.hero-cinema__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 12, 18, 0.88) 0%, rgba(10, 12, 18, 0.35) 42%, transparent 68%),
    linear-gradient(0deg, rgba(10, 12, 18, 0.75) 0%, transparent 45%);
  pointer-events: none;
}

.hero-cinema__slide[data-pos="right"] .hero-cinema__overlay {
  background:
    linear-gradient(255deg, rgba(10, 12, 18, 0.88) 0%, rgba(10, 12, 18, 0.3) 40%, transparent 65%),
    linear-gradient(0deg, rgba(10, 12, 18, 0.7) 0%, transparent 40%);
}

.hero-cinema__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(212, 19, 103, 0.15), transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 80%, rgba(23, 69, 143, 0.12), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.hero-cinema__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem) clamp(5.5rem, 10vw, 7rem);
  z-index: 2;
}

.hero-cinema__slide[data-pos="right"] .hero-cinema__content {
  justify-content: flex-end;
  text-align: right;
}

.hero-cinema__panel {
  max-width: 36rem;
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 0.9s var(--hc-spring) 0.15s, transform 0.9s var(--hc-spring) 0.15s;
}

.hero-cinema__slide.is-active .hero-cinema__panel {
  opacity: 1;
  transform: translateY(0);
}

.hero-cinema__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(212, 19, 103, 0.2);
  border: 1px solid rgba(212, 19, 103, 0.35);
  color: #f5c4d8;
  margin-bottom: 1rem;
}

.hero-cinema__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-cinema__title em {
  font-style: italic;
  color: #f5c4d8;
}

.hero-cinema__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.35rem;
  max-width: 32rem;
}

.hero-cinema__slide[data-pos="right"] .hero-cinema__lead {
  margin-left: auto;
}

.hero-cinema__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-cinema__slide[data-pos="right"] .hero-cinema__actions {
  justify-content: flex-end;
}

.hero-cinema__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--hc-spring), box-shadow 0.35s ease, background 0.35s ease;
}

.hero-cinema__btn--primary {
  background: linear-gradient(135deg, var(--hc-rose), var(--hc-rose-light));
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(212, 19, 103, 0.35);
}

.hero-cinema__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212, 19, 103, 0.45);
  color: #fff !important;
}

.hero-cinema__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.hero-cinema__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}

/* —— Contrôles —— */
.hero-cinema__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.hero-cinema__ui > * {
  pointer-events: auto;
}

.hero-cinema__tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.hero-cinema__tab {
  position: relative;
  flex: 1 1 8rem;
  min-width: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  border: none;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

.hero-cinema__tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-cinema__tab.is-active {
  background: rgba(212, 19, 103, 0.25);
  color: #fff;
}

.hero-cinema__tab-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.hero-cinema__tab-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cinema__tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--hc-rose-light);
  transition: width 0.1s linear;
}

.hero-cinema__tab.is-active .hero-cinema__tab-progress {
  width: var(--tab-progress, 0%);
}

.hero-cinema__arrows {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hero-cinema__arrow {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--hc-spring), background 0.3s ease, border-color 0.3s ease;
}

.hero-cinema__arrow:hover {
  transform: scale(1.08);
  background: rgba(212, 19, 103, 0.35);
  border-color: rgba(212, 19, 103, 0.5);
}

.hero-cinema__scroll {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(6.5rem, 12vw, 8.5rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-cinema__scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  animation: hc-scroll-pulse 2s ease-in-out infinite;
}

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

@media (max-width: 767px) {
  .hero-cinema__tabs {
    display: none;
  }

  .hero-cinema__content {
    padding-bottom: 5rem;
  }

  .hero-cinema__scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinema__slide,
  .hero-cinema__panel,
  .hero-cinema__media img {
    transition: none;
  }

  .hero-cinema__scroll-line {
    animation: none;
  }

  .hero-cinema__arrow:hover,
  .hero-cinema__btn--primary:hover {
    transform: none;
  }
}
