/* =============================================================================
   INDEX.CSS — Styles spécifiques à la page d'accueil Y.C. Aligator Film
   ============================================================================= */

/* ─── UTILITAIRES ────────────────────────────────────────────────────────────── */

.container { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: var(--lgrey);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + 5rem) 2.5rem 4rem;
}

.hero-logo {
  width: min(480px, 76vw);
  margin-bottom: 3.5rem;
  filter: invert(1);
}

.hero-rule {
  width: 1px;
  height: 2.5rem;
  background: rgba(248, 248, 246, 0.2);
  margin: 0 auto 2.2rem;
}

.hero-claim {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(248, 248, 246, 0.6);
  max-width: 38ch;
  line-height: 1.6;
  margin-bottom: 2.8rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(248, 248, 246, 0.3);
  padding: 0.85rem 2rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 2.5rem;
  border-top: 1px solid rgba(248, 248, 246, 0.08);
}

.hero-meta {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.3);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.3);
}

.hero-scroll-line {
  width: 2rem;
  height: 1px;
  background: rgba(248, 248, 246, 0.2);
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────────── */

#about {
  background: var(--white);
  border-top: 3px solid var(--black);
  padding: 7rem 2.5rem;
}

.about-intro {
  max-width: 640px;
  margin-top: 3.5rem;
}

.about-intro h2 { margin-bottom: 1.2rem; }
.about-intro p  { color: #3a3a3a; font-size: 0.97rem; margin-bottom: 1.8rem; }
.about-intro p em { font-style: italic; }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.about-link:hover { opacity: 0.5; }

/* ─── FILMS ──────────────────────────────────────────────────────────────────── */

#films {
  background: var(--black);
  color: var(--white);
  padding: 7rem 2.5rem;
}

#films .section-eyebrow { color: rgba(248, 248, 246, 0.4); }
#films .section-eyebrow::after { background: rgba(248, 248, 246, 0.12); }
#films h2 { color: var(--white); margin-bottom: 0; }

.films-list {
  margin-top: 3rem;
  border-top: 1px solid rgba(248, 248, 246, 0.1);
}

.film-row {
  border-bottom: 1px solid rgba(248, 248, 246, 0.1);
  cursor: pointer;
}

.film-row-header {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 2rem;
  padding: 1.6rem 0;
  transition: padding-left 0.3s;
}

.film-row:hover .film-row-header { padding-left: 0.5rem; }

.film-year {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(248, 248, 246, 0.3);
  letter-spacing: 0.05em;
}

.film-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: opacity 0.2s;
}

.film-row:hover .film-title { opacity: 0.55; }

.film-type {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.22);
  white-space: nowrap;
}

.film-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 0 0 6.5rem;
}

.film-body.open {
  max-height: 10rem;
  padding-bottom: 1.8rem;
}

.film-desc {
  font-size: 0.88rem;
  color: rgba(248, 248, 246, 0.45);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 54ch;
}

.films-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.5rem, calc((100vw - 1100px) / 2));
  box-sizing: border-box;
  overflow: hidden;
  border-top: 0;
  padding-bottom: .5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.films-track {
  --films-half-gap: .75rem;
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: home-films-scroll 34s linear infinite;
  will-change: transform;
}

.films-carousel:hover .films-track,
.films-carousel:focus-within .films-track {
  animation-play-state: paused;
}

@keyframes home-films-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--films-half-gap))); }
}

.home-film-card {
  width: clamp(220px, 23vw, 300px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-film-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(248, 248, 246, 0.045);
  border: 1px solid rgba(248, 248, 246, 0.1);
  margin-bottom: 1.25rem;
}

.home-film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease, filter .35s ease;
}

.home-film-card:hover .home-film-poster img { transform: scale(1.025); filter: brightness(.78); }

.home-film-poster-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: rgba(248, 248, 246, 0.18);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
}

.home-film-content { display: flex; flex-direction: column; flex: 1; }

.home-film-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(248, 248, 246, 0.32);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.home-film-title {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin-bottom: .8rem;
}

.home-film-synopsis {
  color: rgba(248, 248, 246, 0.44);
  font-size: .78rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.home-film-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  margin-top: auto;
  color: rgba(248, 248, 246, .72);
  border-bottom: 1px solid rgba(248, 248, 246, .2);
  padding-bottom: .25rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.home-film-link svg { transition: transform .2s; }
.home-film-link:hover { color: var(--white); }
.home-film-link:hover svg { transform: translateX(4px); }

.films-catalogue-link {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.5);
  transition: color 0.2s;
  width: fit-content;
}

.films-catalogue-link:hover { color: var(--white); }
.films-catalogue-link svg { transition: transform 0.2s; }
.films-catalogue-link:hover svg { transform: translateX(4px); }

/* ─── NEWS ───────────────────────────────────────────────────────────────────── */

#news {
  background: var(--white);
  border-top: 1px solid var(--lgrey);
  padding: 7rem 2.5rem;
}

#news h2 { margin-bottom: 3rem; }

.news-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--lgrey);
  transition: padding-left 0.3s;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.news-item:first-of-type { border-top: 1px solid var(--lgrey); }
.news-item:hover { padding-left: 0.6rem; }

.news-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey);
  padding-top: 0.3rem;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.news-body {
  font-size: 0.88rem;
  color: #3a3a3a;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ─── CONTACT CTA ────────────────────────────────────────────────────────────── */

#contact-cta {
  background: var(--black);
  color: var(--white);
  padding: 7rem 2.5rem;
}

.cta-inner {
  max-width: 640px;
}

.cta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.35);
  margin-bottom: 1.2rem;
}

#contact-cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 0.92rem;
  color: rgba(248, 248, 246, 0.5);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 0.9rem 2rem;
  transition: background 0.2s, letter-spacing 0.2s;
}

.cta-btn:hover {
  background: var(--lgrey);
  letter-spacing: 0.32em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  #about, #films, #news, #contact-cta { padding: 5rem 1.5rem; }

  .news-item { grid-template-columns: 1fr; gap: 0.4rem; }

  .hero-footer-bar { flex-direction: column; gap: 1rem; align-items: flex-start; }

  .film-row-header {
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
  }
  .film-type { display: none; }
  .film-body.open { padding-left: 0; }
  .films-carousel {
    padding-left: 1.5rem;
  }
  .films-track {
    --films-half-gap: .5rem;
    gap: 1rem;
    animation-duration: 28s;
  }
  .home-film-card { width: min(72vw, 280px); }
}

@media (prefers-reduced-motion: reduce) {
  .films-carousel {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: thin;
  }
  .films-track { animation: none; }
  .films-track > [aria-hidden="true"] { display: none; }
}
