/* Novastream — finition visuelle partagée */
:root {
  --bg: #08090c;
  --bg-soft: #0e1014;
  --bg-elevated: #15171c;
  --card: #15171c;
  --card-hover: #202229;
  --line: rgba(255,255,255,.09);
  --text: #f5f5f6;
  --text-muted: #a3a5ad;
  --ember: #f01624;
  --ember-dark: #a90d18;
  --ember-soft: rgba(240,22,36,.13);
  --ember-glow: rgba(240,22,36,.24);
}

html { background: #08090c; }
body {
  background:
    radial-gradient(ellipse at 50% -18rem, rgba(128,24,32,.13), transparent 42rem),
    #08090c;
  color: var(--text);
}

/* Barre flottante plus lisible et mieux détachée du contenu. */
.nav.cinema-nav {
  top: 14px;
  left: max(18px, calc((100vw - 1480px) / 2));
  right: max(18px, calc((100vw - 1480px) / 2));
  width: auto;
  max-width: none;
  min-height: 62px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(10,11,14,.84);
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(125%);
}
.nav.cinema-nav.scrolled {
  min-height: 58px;
  background: rgba(9,10,13,.96);
  border-color: rgba(255,255,255,.11);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.nav.cinema-nav .brand-name { letter-spacing: -.045em; }
.nav.cinema-nav .nav-links a { border-radius: 8px; }
.nav.cinema-nav .nav-links a.is-active { background: rgba(240,22,36,.15); }
.nav.cinema-nav .btn-primary { box-shadow: 0 5px 16px rgba(240,22,36,.18); }

/* Bannière avec texte net et arrivée moins abrupte sur les affiches. */
.hero {
  min-height: 620px;
  height: min(82vh, 850px);
  background: #08090c;
}
.hero-slide-bg::after {
  background:
    linear-gradient(0deg, #08090c 0%, rgba(8,9,12,.78) 10%, transparent 43%),
    linear-gradient(90deg, rgba(8,9,12,.96) 0%, rgba(8,9,12,.78) 31%, rgba(8,9,12,.34) 58%, rgba(8,9,12,.05) 100%);
}
.hero-title { max-width: 700px; text-shadow: 0 2px 28px rgba(0,0,0,.32); }
.hero-desc { color: #dedee2; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero-actions .btn-primary { box-shadow: 0 8px 24px rgba(240,22,36,.24); }

/* Rythme plus régulier entre sections et affiches. */
.rows.container { padding-top: 26px; }
.row-block { margin-bottom: clamp(44px, 5vw, 72px); }
.row-head { margin-bottom: 20px; }
.row-title { font-size: clamp(19px, 2vw, 24px); }
.row-title .dash { width: 3px; height: 22px; border-radius: 3px; }
.row-link { color: #b8b9c0; }
.row-link:hover { color: #fff; }
.row-scroll { gap: clamp(13px, 1.35vw, 20px); }
.card { border-radius: 10px; }
.card-poster { border-radius: 10px; background: #17191e; box-shadow: 0 8px 26px rgba(0,0,0,.32); }
.card:hover .card-poster { box-shadow: 0 18px 38px rgba(0,0,0,.48); }
.card-info h4 { line-height: 1.4; }
.card-info p { color: #989aa3; }
.cta-band {
  border-color: rgba(255,255,255,.1);
  border-radius: 14px;
  background: linear-gradient(115deg, rgba(33,20,23,.92), rgba(16,17,21,.96) 60%);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

/* Même finition pour catalogue, fiches et formulaires. */
.public-panel, .community-panel, .auth-card, .member-account-card, .member-form {
  box-shadow: 0 14px 38px rgba(0,0,0,.2);
}
.public-toolbar input:focus-visible,
.public-toolbar select:focus-visible,
.community-form input:focus-visible,
.community-form textarea:focus-visible,
.auth-form input:focus-visible {
  outline: 2px solid rgba(240,22,36,.8);
  outline-offset: 2px;
}
:focus-visible { outline-color: #ff4b56; }

@media (max-width: 720px) {
  .nav.cinema-nav {
    top: 8px;
    left: 10px;
    right: 10px;
    min-height: 54px;
    padding: 8px 11px;
    border-radius: 12px;
  }
  .nav.cinema-nav.scrolled { min-height: 52px; }
  .hero { min-height: 570px; height: 76svh; }
  .hero-slide-bg::after {
    background:
      linear-gradient(0deg, #08090c 0%, rgba(8,9,12,.91) 23%, rgba(8,9,12,.45) 68%, rgba(8,9,12,.22) 100%),
      linear-gradient(90deg, rgba(8,9,12,.55), transparent);
  }
  .rows.container { padding-top: 18px; }
  .row-head { margin-bottom: 15px; }
  .row-scroll { gap: 13px; }
  .cta-band { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Retouche clean : commandes, hauteur du hero et confort téléphone */
.btn,
button.btn,
.hero-actions .btn,
.nav.cinema-nav .btn-primary {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-primary,
.nav.cinema-nav .btn-primary {
  border: 1px solid #e50914;
  background: #e50914;
  color: #fff;
}
.btn-primary:hover,
.nav.cinema-nav .btn-primary:hover {
  border-color: #f12430;
  background: #f12430;
  box-shadow: 0 5px 14px rgba(229,9,20,.17);
  transform: translateY(-1px);
}
.btn-primary:active,
.nav.cinema-nav .btn-primary:active { transform: translateY(0); }
.btn-outline,
.btn-ghost,
.hero-actions .btn-outline,
.hero-actions .btn-ghost {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,21,25,.78);
  color: #f1f1f3;
}
.btn-outline:hover,
.btn-ghost:hover,
.hero-actions .btn-outline:hover,
.hero-actions .btn-ghost:hover {
  border-color: rgba(255,255,255,.3);
  background: #202126;
  box-shadow: none;
  transform: translateY(-1px);
}
.nav.cinema-nav .btn-primary { min-height: 42px; }
.row-nav {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(15,16,19,.9);
  box-shadow: 0 5px 16px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.row-nav.next { background: rgba(15,16,19,.9); }
.row-nav:hover { border-color: rgba(255,255,255,.28); background: #222329; }
.hero-actions .btn-primary { box-shadow: 0 5px 16px rgba(229,9,20,.16); }

.hero {
  height: min(74vh, 780px);
  min-height: 590px;
}
.hero-slide { padding-top: 88px; padding-bottom: 64px; }
.hero-dots { bottom: 28px; }

@media (max-width: 720px) {
  .nav.cinema-nav,
  .nav.cinema-nav.scrolled {
    min-height: 56px;
    height: 56px;
    padding: 6px 10px;
    gap: 8px;
  }
  .nav.cinema-nav .brand { min-height: 44px; gap: 8px; }
  .nav.cinema-nav .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .nav.cinema-nav .brand-name { font-size: 1.12rem; }
  .nav.cinema-nav .nav-tools { gap: 8px; }
  .nav.cinema-nav .nav-tools .btn { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .nav.cinema-nav .burger { width: 42px; height: 42px; border-radius: 9px; }

  .hero {
    height: min(67svh, 610px);
    min-height: 465px;
    max-height: 610px;
  }
  .hero-slide { padding: 0 0 76px; }
  .hero-slide-content { padding: 0 20px; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); line-height: 1.02; margin-bottom: 12px; }
  .hero-desc { max-width: 38ch; font-size: 13px; line-height: 1.55; margin-bottom: 14px; -webkit-line-clamp: 3; }
  .hero-meta { gap: 8px 10px; margin-bottom: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .hero-dots { right: 20px; bottom: 23px; }

  .rows.container { padding: 16px 16px 48px; }
  .row-block { margin-bottom: 38px; }
  .row-head { margin-bottom: 13px; }
  .row-title { font-size: 19px; }
  .row-scroll { gap: 12px; padding-bottom: 12px; }
  .card { width: clamp(138px, 40vw, 172px); }
  .card-info { padding-top: 9px; }
  .card-info h4 { font-size: 12px; }
  .card-info p { font-size: 10px; }
  .cta-band { padding: 20px; gap: 10px; }
  .cta-band .btn { min-height: 42px; }
}

@media (max-width: 380px) {
  .nav.cinema-nav .brand-name { font-size: 1rem; }
  .nav.cinema-nav .nav-tools .btn { padding: 0 10px; }
  .hero { min-height: 440px; height: min(64svh, 560px); }
  .hero-slide-content { padding: 0 17px; }
  .hero-title { font-size: 34px; }
  .hero-actions { gap: 7px; }
  .hero-actions .btn { padding: 0 11px; font-size: 11px; }
}

/* Bandeau Telegram NovaStream, inspire du repere fourni */
.telegram-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: -12px 0 clamp(42px, 5vw, 68px);
  padding: 14px 16px;
  border: 1px solid rgba(52,166,219,.24);
  border-radius: 15px;
  background: linear-gradient(105deg, rgba(12,23,30,.96), rgba(11,17,22,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  color: #f6f8fa;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.telegram-banner:hover {
  border-color: rgba(52,166,219,.45);
  background: linear-gradient(105deg, rgba(14,29,38,.98), rgba(12,19,25,.98));
  box-shadow: 0 9px 25px rgba(0,0,0,.22);
  transform: translateY(-1px);
}
.telegram-banner:focus-visible { outline: 2px solid #36a9e0; outline-offset: 3px; }
.telegram-banner-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #229ed9;
  color: #fff;
}
.telegram-banner-icon svg { display: block; width: 23px; height: 23px; }
.telegram-banner-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.telegram-banner-kicker { color: #7ac8ea; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.telegram-banner-copy strong { font-size: 15px; font-weight: 750; letter-spacing: -.025em; line-height: 1.25; }
.telegram-banner-description { color: #a6adb4; font-size: 11px; line-height: 1.4; }
.telegram-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(75,183,230,.4);
  border-radius: 999px;
  background: transparent;
  color: #8fd0ef;
  font-size: 11px;
  font-weight: 750;
  transition: background-color .18s ease, transform .18s ease, border-color .18s ease;
}
.telegram-banner:hover .telegram-banner-action { background: rgba(34,158,217,.16); border-color: rgba(75,183,230,.6); transform: translateY(-1px); }
@media (max-width: 720px) {
  .telegram-banner {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 11px 12px;
    margin: -6px 0 38px;
    padding: 13px;
    border-radius: 13px;
  }
  .telegram-banner-icon { grid-column: 1; grid-row: 1; }
  .telegram-banner-copy { grid-column: 2; grid-row: 1; }
  .telegram-banner-copy strong { font-size: 13px; }
  .telegram-banner-description { font-size: 10px; }
  .telegram-banner-action { grid-column: 1 / -1; width: 100%; min-height: 40px; border-radius: 9px; }
}
