/* ============================================================
   Accueil : bandeau, carrousel, dernières sorties, Top 10
   ============================================================ */

/* ── Bandeau (h1 + intro + chiffres) ── */
.masthead {
  display: grid; gap: var(--s-4); align-items: end;
  padding-top: var(--s-6); padding-bottom: var(--s-5);
}
.masthead__title { font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -.015em; }
.masthead__intro { margin-top: 6px; max-width: 70ch; color: var(--text-2); font-size: var(--fs-md); }
.masthead__stats { display: flex; gap: var(--s-6); }
.masthead__stats div { display: flex; flex-direction: column-reverse; }
.masthead__stats dt { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: var(--tracking-caps); font-weight: 600; }
.masthead__stats dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; line-height: 1.1; }
@media (min-width: 960px) { .masthead { grid-template-columns: 1fr auto; } .masthead__stats { padding-bottom: 2px; } }

/* ── Carrousel ── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(300px, 34vw, 440px);
  border-radius: var(--r-3); background: var(--surface-1);
}
.hero__slide {
  position: absolute; inset: 0; visibility: hidden; opacity: 0;
  transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}
.hero__slide.is-active { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease); z-index: 1; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 600ms var(--ease); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 20, .94) 0%, rgba(12, 10, 20, .78) 32%, rgba(12, 10, 20, .15) 70%, rgba(12, 10, 20, 0) 100%),
    linear-gradient(0deg, rgba(12, 10, 20, .7) 0%, rgba(12, 10, 20, 0) 45%);
}
.hero__fg {
  position: absolute; right: 4%; bottom: 0; height: 108%; width: auto; max-width: 48%;
  object-fit: contain; object-position: bottom right; z-index: 1; pointer-events: none;
  transition: transform 600ms var(--ease);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-3);
  max-width: min(560px, 62%); padding: var(--s-8) var(--s-10) var(--s-12);
}
.hero__label { color: var(--violet); }
.hero__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.hero__sub { color: var(--text-2); font-size: var(--fs-lg); max-width: 46ch; }
.hero .btn-group { margin-top: var(--s-2); }

.hero__controls {
  position: absolute; z-index: 3; left: var(--s-10); right: var(--s-6); bottom: var(--s-5);
  display: flex; align-items: center; gap: var(--s-2);
}
.hero__dots { display: flex; gap: 6px; margin-right: auto; }
.hero__dot { width: 32px; height: 20px; display: grid; align-items: center; }
.hero__dot span { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; position: relative; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--violet); }
.hero__dot[aria-current="true"] span::after { width: 100%; }
.hero.is-playing .hero__dot.is-active span::after { width: 0; animation: hero-progress 6.5s linear forwards; }
@keyframes hero-progress { to { width: 100%; } }
.hero__dot:hover span { background: rgba(255, 255, 255, .4); }
.hero__arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-2);
  background: rgba(12, 10, 20, .6); color: var(--text); border: 1px solid rgba(255, 255, 255, .08);
  transition: background var(--d-fast) var(--ease);
}
.hero__arrow:hover { background: rgba(12, 10, 20, .9); }

@media (max-width: 767px) {
  .hero { height: 380px; }
  .hero__content { max-width: none; justify-content: flex-end; padding: var(--s-6) var(--s-5) 64px; }
  .hero__media::after { background: linear-gradient(0deg, rgba(12, 10, 20, .96) 10%, rgba(12, 10, 20, .55) 55%, rgba(12, 10, 20, .1) 100%); }
  .hero__fg { max-width: 70%; height: 80%; right: -6%; opacity: .55; }
  .hero__sub { font-size: var(--fs-md); }
  .hero__controls { left: var(--s-5); right: var(--s-4); bottom: var(--s-4); }
  .hero__arrow { display: none; }
}

/* ── Grille principale : sorties (8) + Top 10 (4) ── */
.home-grid { display: grid; gap: var(--s-12); margin-top: var(--s-10); }
@media (min-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-10); align-items: start; }
  .home-top { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* Dernières sorties */
.releases { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .releases { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.release {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft);
}
.release__cover { width: 72px; }
.release__body { min-width: 0; display: flex; flex-direction: column; }
.release__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; line-height: var(--lh-snug); letter-spacing: 0; }
.release__title a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.release__title a:hover { color: var(--violet-light); }
.release__meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-3); min-width: 0; }
.release__meta .dot::before { content: "·"; }
.release__chapters { list-style: none; padding: 0; margin-top: var(--s-2); display: grid; gap: 1px; }
.release__ch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 4px var(--s-2); margin-inline: calc(-1 * var(--s-2)); border-radius: var(--r-1);
  font-size: var(--fs-sm); color: var(--text-2);
}
.release__ch:hover { background: var(--surface-2); color: var(--text); }
.release__ch-num { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.release__ch time { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }

/* Top 10 */
.top-list { counter-reset: none; display: grid; }
.top-item {
  display: grid; grid-template-columns: 34px 48px minmax(0, 1fr); align-items: center; gap: var(--s-3);
  padding: var(--s-2) 0; border-bottom: 1px solid var(--line-soft);
}
.top-item:last-child { border-bottom: 0; }
.top-item__rank {
  font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; line-height: 1; text-align: center;
  color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: -.04em;
}
.top-item--podium .top-item__rank { color: var(--amber); }
.top-item__cover { width: 48px; }
.top-item__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 600; font-size: var(--fs-md); line-height: var(--lh-snug); color: var(--text); }
.top-item__title:hover { color: var(--violet-light); }
.top-item__meta { display: flex; align-items: center; gap: var(--s-2); margin-top: 2px; font-size: var(--fs-xs); }
.top-item__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-item__rating .i { fill: currentColor; }
.top-note { display: flex; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.top-note .i { margin-top: 2px; }

/* Rejoindre (bas de page) */
.home-join {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding-top: var(--s-6); padding-bottom: var(--s-6);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.home-join__title { font-size: var(--fs-lg); margin-bottom: 4px; }
.home-join p { font-size: var(--fs-md); max-width: 64ch; }
