/* ============================================================
   HDJEA — Histoire d'un Jeune Entrepreneur Antillais
   Netflix / Prime Video inspired dark theme
   ============================================================ */

:root {
  --bg: #0b0b0f;
  --bg-soft: #14141b;
  --surface: #1a1a22;
  --surface-2: #20202a;
  --text: #f5f5f7;
  --text-dim: #b3b3bd;
  --text-faint: #7a7a86;
  --accent: #e50914;
  --accent-hover: #f6121d;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.55);
  --maxw: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, video { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: "Anton", sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 2px 18px rgba(229, 9, 20, 0.45);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.4);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease);
}
.nav__cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ===================== SHARED MEDIA (video bg) ===================== */
.media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* block right-click / drag on the video itself */
}
/* transparent guard layer above the video to intercept context menu */
.media__guard {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.media__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.media__scrim--hero {
  background:
    linear-gradient(to right, rgba(11, 11, 15, 0.85) 0%, rgba(11, 11, 15, 0.35) 45%, rgba(11, 11, 15, 0.05) 70%),
    linear-gradient(to top, rgba(11, 11, 15, 0.95) 0%, rgba(11, 11, 15, 0) 38%),
    radial-gradient(120% 80% at 70% 30%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 100%);
}
.media__scrim--footer {
  background:
    linear-gradient(to top, rgba(11, 11, 15, 0.96) 0%, rgba(11, 11, 15, 0.25) 45%, rgba(11, 11, 15, 0.6) 100%),
    radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: flex-end; /* logo on right-side region */
}
.hero__panel {
  width: min(620px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 1s var(--ease) both;
}
.logo-guard {
  position: relative;
  display: block;
  width: min(560px, 88%);
}
.logo-guard__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.hero__logo,
.footer-hero__logo {
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.7));
}
.hero__tagline {
  margin: 24px 0 0;
  width: 100%;
  max-width: 500px;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.hero__actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.hero__actions .btn {
  justify-content: center;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 19px);
  padding: 15px 34px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn__icon { width: 24px; height: 24px; fill: currentColor; }
.btn--play {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 34px rgba(229, 9, 20, 0.45);
}
.btn--play:hover { background: var(--accent-hover); transform: translateY(-2px) scale(1.02); }
.btn--ghost {
  background: rgba(109, 109, 110, 0.5);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(109, 109, 110, 0.7); transform: translateY(-2px); }

/* ===================== SCROLL CUE ===================== */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-cue__mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  position: relative;
}
.scroll-cue__dot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: dotMove 1.6s ease-in-out infinite;
}

/* ===================== ÉPISODES ===================== */
.episodes {
  position: relative;
  z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 60px);
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(229, 9, 20, 0.08), transparent 60%);
}
.episodes__head { margin-bottom: clamp(34px, 5vw, 56px); }
.section-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1;
}
.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.5);
}
.section-sub {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 560px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

/* ===================== EPISODE CARD ===================== */
.card {
  position: relative;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-card);
}
.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: brightness(0.82);
}
.card:hover .card__thumb img { transform: scale(1.08); filter: brightness(1); }
.card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover .card__play { opacity: 1; }
.card__play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.92);
  display: grid;
  place-items: center;
  transform: scale(0.8);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card:hover .card__play-btn { transform: scale(1); }
.card__play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
.card__body { padding: 18px 20px 22px; }
.card__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ===================== FOOTER HERO ===================== */
.footer-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-hero__content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.footer-hero__content .logo-guard {
  width: min(560px, 88vw);
}
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
}
.site-footer > p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.5;
}
.footer-follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-follow__text {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.footer-follow__popcorn {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  margin-left: 0.05em;
  vertical-align: -0.15em;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.footer-follow__arrow {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: footerArrowBounce 2s ease-in-out infinite;
}
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}
.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===================== REVEAL ANIM ===================== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ===================== KEYFRAMES ===================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes dotMove {
  0% { opacity: 0; top: 8px; }
  40% { opacity: 1; }
  80% { opacity: 0; top: 22px; }
  100% { opacity: 0; }
}
@keyframes footerArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .hero .media__video {
    object-position: 30% center;
  }
  .hero__content { justify-content: center; }
  .hero__panel { width: 100%; }
  .nav__links a:not(.nav__cta) { display: none; }

  .footer-hero {
    justify-content: space-between;
    padding-top: 72px;
    min-height: 100svh;
    height: auto;
  }
  .footer-hero__content {
    flex: 1;
    justify-content: center;
    padding: 24px 20px 32px;
    gap: 20px;
  }
  .footer-hero__content .logo-guard {
    width: min(340px, 82vw);
  }
  .footer-hero__content .btn--play {
    width: 100%;
    max-width: 320px;
  }
  .site-footer {
    position: relative;
    flex-shrink: 0;
    padding: 28px 20px 36px;
    gap: 16px;
    background: transparent;
  }
  .footer-follow {
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }
  .footer-follow__text {
    font-size: 15px;
    line-height: 1.45;
    max-width: 28ch;
  }
  .site-footer > p {
    font-size: 12px;
    max-width: 32ch;
  }
}
@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .hero__actions {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }
  .grid { grid-template-columns: 1fr; }

  .footer-hero {
    padding-top: 64px;
  }
  .footer-hero__content {
    padding: 16px 16px 24px;
    gap: 16px;
  }
  .footer-hero__content .logo-guard {
    width: min(300px, 88vw);
  }
  .site-footer {
    padding: 24px 16px 32px;
    gap: 14px;
  }
  .footer-follow__text {
    font-size: 14px;
    max-width: 26ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
