/* =====================================================
   style.css — FICHIER UNIQUE, remplace Accueil1.css
   Regarde Movie
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&display=swap');

/* =====================================================
   ACCESSIBILITÉ — contenu invisible visuellement mais lu par
   les lecteurs d'écran et les robots d'indexation (SEO)
===================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================================================
   VARIABLES (dark par défaut)
===================================================== */
:root {
  --bg:           #0d0d0d;
  --bg-surface:   #161616;
  --bg-card:      #1c1c1c;
  --bg-card-hover:#222222;
  --text:         #f0f0f0;
  --text-dim:     #888888;
  --text-muted:   #555555;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --accent:       #e50914;
  --accent-hover: #ff1e2b;
  --accent-soft:  rgba(229,9,20,0.12);
  --header-bg:    rgba(13,13,13,0.92);
  --nav-bg:       linear-gradient(90deg, #cc00cc, #5500cc);
  --nav-shadow:   rgba(200,0,200,0.25);
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --radius:       10px;
  --radius-sm:    6px;
  --transition:   all 0.2s ease;
  --font-display: 'Bebas Neue', cursive;
  --font-body:    'DM Sans', sans-serif;

  /* Alias pour compatibilité watchlist.css / genre.css */
  --bg-color:   var(--bg);
  --text-color: var(--text);
  --card-bg:    var(--bg-card);
  --primary-red: var(--accent);
}

[data-theme="light"] {
  --bg:           #f7f7f7;
  --bg-surface:   #efefef;
  --bg-card:      #ffffff;
  --bg-card-hover:#f5f5f5;
  --text:         #111111;
  --text-dim:     #555555;
  --text-muted:   #999999;
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.18);
  --accent:       #e50914;
  --accent-hover: #c20710;
  --accent-soft:  rgba(229,9,20,0.08);
  --header-bg:    rgba(247,247,247,0.95);
  --shadow:       0 4px 20px rgba(0,0,0,0.1);

  --bg-color:   var(--bg);
  --text-color: var(--text);
  --card-bg:    var(--bg-card);
  --primary-red: var(--accent);
}


/* =====================================================
   BASE
===================================================== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

a    { text-decoration: none; color: inherit; }
img  { display: block; max-width: 100%; }
ul   { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

h1, h2, h3, h4, p { color: var(--text); }


/* =====================================================
   HEADER
===================================================== */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Logo */
.logo { flex-shrink: 0; }
.logo img { height: 44px; width: auto; object-fit: contain; }

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}
.logo-text span { color: var(--accent); }

/* Navigation principale */
.main-nav {
  background: var(--nav-bg);
  box-shadow: 0 4px 16px var(--nav-shadow);
  padding: 7px 22px;
  border-radius: 50px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.main-nav a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 0.75; }

/* Actions */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #e509cf;
  color: white;
}

/* Barre de recherche */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 10px;
  gap: 8px;
  transition: border-color 0.2s, width 0.3s;
}
.search-box:focus-within { border-color: var(--border-hover); }

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 90px;
}
.search-box input::placeholder { color: var(--text-muted); }

.search-btn {
  background: none;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}
.search-btn:hover { color: var(--text); }

/* Bouton compte */
.btn-account {
  background: var(--accent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-account:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ── Avatar connecté dans le header ── */
.btn-account.is-authed {
  background: transparent;
  padding: 3px 10px 3px 3px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.btn-account.is-authed:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
  transform: none;
}

/* Photo de profil circulaire */
.btn-account.is-authed img.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 2px solid var(--accent);
}

/* Initiales (fallback sans photo) */
.btn-account.is-authed span.account-avatar {
  width: 40px;
  height: 30px;
  border-radius: 50%;
  background: var(--user-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* Bouton thème */
.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-btn:hover  { border-color: var(--border-hover); color: var(--text); }
.theme-btn:active { transform: scale(0.9); }

/* Icônes thème */
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s;
}
.menu-toggle:hover { background: var(--bg-card); }
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   MENU MOBILE — PANNEAU LATÉRAL STYLÉ
   (structure reconstruite dynamiquement par app.js :
   enhanceMobileMenu() — voir setupMobileMenu)
===================================================== */

/* Fond flouté derrière le panneau */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Panneau */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: hidden;
  transform: translateX(100%);
  box-shadow: -24px 0 60px rgba(0,0,0,0.45);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1060;
  padding: 0;
}
.mobile-menu.active { transform: translateX(0); }

/* En-tête du panneau */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--nav-bg);
}
.mm-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  color: #fff;
}
.mm-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.mm-close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

/* Champ de recherche rapide */
.mm-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 20px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.mm-search:focus-within { border-color: var(--accent); color: var(--text-dim); }
.mm-search svg { flex-shrink: 0; }
.mm-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.mm-search input::placeholder { color: var(--text-muted); }

/* Corps scrollable des liens */
.mm-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 12px;
  scrollbar-width: thin;
}
.mm-body::-webkit-scrollbar { width: 5px; }
.mm-body::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

.mm-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 12px 8px;
}

/* Lien du menu — restructuré en JS avec icône + label + chevron */
.mobile-menu-link.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 4px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s, color 0.2s;
}
.mobile-menu.active .mobile-menu-link.mobile-menu-link {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-link:hover {
  background: var(--bg-card);
  color: var(--text);
}
.mobile-menu-link.is-current {
  background: var(--accent-soft);
  color: var(--accent);
}
.mobile-menu-link.is-current .mm-icon {
  background: var(--accent);
  color: #fff;
}

.mm-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-link:hover .mm-icon { color: var(--accent); }

.mm-label { flex: 1; min-width: 0; }

.mm-chevron {
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}
.mobile-menu-link:hover .mm-chevron { opacity: 0.8; transform: translateX(2px); }

/* Pied du panneau */
.mm-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.mm-theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.2s;
}
.mm-theme-btn:hover { border-color: var(--border-hover); }
.mm-theme-icon { font-size: 0.95rem; }
.mm-theme-btn span:nth-child(2) { flex: 1; text-align: left; }

.mm-toggle-track {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 20px;
  background: var(--border-hover);
  flex-shrink: 0;
  transition: background 0.25s;
}
.mm-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.25s;
}
.mm-theme-btn.is-dark .mm-toggle-track { background: var(--accent); }
.mm-theme-btn.is-dark .mm-toggle-thumb { transform: translateX(16px); }

.mm-account-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.mm-account-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Petit mobile : panneau plein écran */
@media (max-width: 380px) {
  .mobile-menu { width: 100vw; border-left: none; }
}

/* =====================================================
   RÉSULTATS DE RECHERCHE
===================================================== */
.search-results {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 90vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  z-index: 990;
  display: none;
  overflow: hidden;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-item:hover { background: var(--bg-card-hover); }

.search-item img {
  width: 36px; height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.search-item h4 { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.search-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 3px;
  display: inline-block;
}

/* =====================================================
   MODAL AUTH
===================================================== */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.auth-modal.hidden { display: none; }

.auth-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: min(400px, 90vw);
  position: relative;
}
.auth-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--text);
}
.auth-content input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.auth-content input:focus { outline: none; border-color: var(--accent); }

.auth-content button[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 4px;
  transition: background 0.2s;
}
.auth-content button[type="submit"]:hover { background: var(--accent-hover); }
.auth-content p { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }
.auth-content p a { color: var(--accent); }

.close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.5rem;
  background: none;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}
.close:hover { color: var(--text); }

/* Hero slider — styles déplacés dans hero-slider.css */

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.0;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 36px;
}

.btn-hero {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,9,20,0.35);
}

/* =====================================================
   SECTIONS
===================================================== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.collection-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.now-playing { padding: 40px 24px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill { font-family: var(--font-body); font-size: 1rem; }

.view-all-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: color 0.2s;
}
.view-all-link:hover { color: var(--accent); }

/* Badge */
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
  display: inline-block;
  transition: transform 0.2s;
}
.badge.pop { animation: pop 0.3s ease; }
@keyframes pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* =====================================================
   SLIDER
===================================================== */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.slider-track {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  will-change: transform;
}

.slider-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 1. Le conteneur (la carte du slider) */
.slider-card.card-large {
  width: 960px;   /* Largeur imposée au bloc */
  height: 240px;  /* Hauteur imposée au bloc */
  overflow: hidden; /* Sécurité : coupe tout ce qui dépasse si besoin */
}

/* 2. L'image à l'intérieur du conteneur */
.slider-card.card-large img {
  width: 100%;
  height: 100%; /* Force l'image à prendre toute la hauteur (240px) du conteneur */

  /* C'est ICI qu'on place les propriétés de l'image */
  object-fit: cover;
  object-position: 50% 50%; /* Ton réglage personnalisé */
}
/* Optionnel : Ajustement pour les écrans mobiles */
@media (max-width: 600px) {
  .slider-card {
    width: 160px;
  }
  .slider-card.card-large {
    width: 1110px;
    height: 250px;
  }
}

.slider-card:hover {
  transform: scale(1.07) translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  z-index: 10;
}
.slider-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 40px; height: 60px;
  border-radius: var(--radius-sm);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.slider-btn:hover { background: rgba(0,0,0,0.85); }
.slider-btn.prev { left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.slider-btn.next { right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* =====================================================
   GRILLES & CARTES
===================================================== */
.movie-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.movie-grid .card,
.cards .card {
  width: 100%;
}

.movie-grid-wrap {
  position: relative;
}

.movie-grid-wrap .movie-grid,
.movie-grid-wrap .cards {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  gap: 16px;
}
.movie-grid-wrap .movie-grid::-webkit-scrollbar,
.movie-grid-wrap .cards::-webkit-scrollbar { display: none; }

.movie-grid-wrap .movie-grid .card,
.movie-grid-wrap .cards .card {
  flex: 0 0 150px;
  width: 150px;
  scroll-snap-align: start;
}

.movie-grid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.movie-grid-arrow:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.movie-grid-arrow.left  { left: -18px; }
.movie-grid-arrow.right { right: -18px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border-color: var(--border-hover);
}

.card-image-container {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-surface);
}
.card-image-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image-container img { transform: scale(1.04); }

.card-content { padding: 12px; }

.card-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmdb-rating {
  font-size: 0.78rem;
  color: #f5c518;
  font-weight: 600;
}
.vote-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
}

.rating-box { display: none; }

.rated-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f5c518;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.25);
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.remove-btn {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(229,9,20,0.85);
  color: #fff;
  border: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 5;
}
.card:hover .remove-btn { opacity: 1; }
.remove-btn:hover { background: rgba(229,9,20,1); }

.seen-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  background: rgba(16, 185, 129, 0.93);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  animation: seenIn 0.25s ease both;
}

@keyframes seenIn {
  from { opacity: 0; transform: scale(0.8) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.card-image-container,
.sp-card-img,
.result-img,
.news-article-img {
  position: relative;
}

.card-removing {
  opacity: 0;
  transform: translateX(-40px) scale(0.85);
  transition: all 0.4s ease-out;
  pointer-events: none;
}

/* =====================================================
   TAGS (Recommandations par envie)
===================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.tags li {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tags li:hover,
.tags li.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================================================
   TRUST SECTION
===================================================== */
.trust-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 15px;
}
.trust-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.trust-icon { font-size: 2rem; margin-bottom: 8px; }
.trust-inner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.trust-inner p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; }

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px;
}

.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .main-nav    { display: none; }
  .menu-toggle { display: flex; }
  .btn-account { display: flex; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .header-actions { gap: 8px; }
  .logo img { height: 36px; }
  .search-box input { width: 70px; }

  .hero-content h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-sub { font-size: 0.95rem; }

  .btn-account {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
    height: 30px;
  }

  .btn-account.is-authed {
    padding: 3px !important;
  }
  .btn-account.is-authed span:not(.account-avatar) {
    display: none;
  }

  .movie-grid,
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .movie-grid-wrap .movie-grid .card,
  .movie-grid-wrap .cards .card {
    flex: 0 0 130px;
    width: 130px;
  }
  .movie-grid-arrow { display: none; }

  .footer-inner   { flex-direction: column; text-align: center; }
  .footer-copy    { text-align: center; }
  .footer-links   { justify-content: center; }
}

@media (max-width: 390px) {
  .search-box { display: none; }
}

/* ===================== SKELETON ===================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.movie-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

/* ===================== BANDEAU COOKIES ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f0f0f;
  border-top: 4px solid #e50914;
  padding: 18px 24px;
  z-index: 10000;
  display: none;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid #555;
  color: #ddd;
}

.btn-outline:hover {
  border-color: #e50914;
  color: white;
}

.btn-primary {
  background: linear-gradient(90deg, #e50914, #ff2d3d);
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

/* ===================== MODAL COOKIES ===================== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #1a1a1a;
  max-width: 520px;
  width: 90%;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #333;
}

.cookie-options {
  margin: 24px 0;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #333;
}

.cookie-option:last-child {
  border-bottom: none;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333;
  transition: .4s;
  border-radius: 50px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: #e50914;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-buttons button {
  flex: 1;
  padding: 14px;
}

/* =====================================================
   NEWS LIST — Grille de cartes d'articles
===================================================== */
.news-list-section {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px 28px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.news-list-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.news-list-item:hover .news-list-title {
  color: var(--accent);
}

.news-list-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 12px;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-list-body {
  flex: 1;
}

.news-list-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.news-list-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.news-list-date {
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
  }
}

@media (max-width: 600px) {
  .news-list-section {
    padding: 0 16px 22px;
  }
}

@media (max-width: 560px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   EDITORS PICK
===================================================== */
.editors-pick-section {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px 28px;
}

.editors-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 16px;
}

.editors-pick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.editors-pick-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.editors-pick-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
}

.editors-pick-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editors-pick-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #FFC107;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.editors-pick-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.editors-pick-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.editors-pick-quote {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}

.editors-pick-quote::before {
  content: "\201C";
  color: var(--accent);
  font-weight: 700;
}

.editors-pick-quote::after {
  content: "\201D";
  color: var(--accent);
  font-weight: 700;
}

.editors-pick-signature {
  margin-top: 8px;
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 900px) {
  .editors-pick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .editors-pick-section {
    padding: 0 16px 22px;
  }
}

/* =====================================================
   NEWS "À LA UNE" — CAROUSEL HORIZONTAL
===================================================== */
#news-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 28px;
}

.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.news-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-section-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

#news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.news-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 50px;
  padding: 4px 13px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.news-filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.news-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.news-carousel-wrapper {
  position: relative;
}

#news-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#news-grid::-webkit-scrollbar { display: none; }

#news-grid .news-card {
  flex: 0 0 calc(25% - 11px);
  min-width: 50px;
  max-width: 220px;
}

#news-grid .news-card--featured {
  flex: 0 0 calc(25% - 11px);
}

.news-scrollbar-track {
  width: 100%;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  margin-top: 10px;
  position: relative;
  cursor: pointer;
}

.news-scrollbar-thumb {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.1s;
  cursor: grab;
  min-width: 40px;
}
.news-scrollbar-thumb:active { cursor: grabbing; }

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  flex-shrink: 0;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--border-hover);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.news-card--featured .news-card-img-wrap {
  aspect-ratio: 16/9;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.news-card:hover .news-card-img-wrap img { transform: scale(1.05); }

.news-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid;
  backdrop-filter: blur(4px);
}

.news-vote {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(0,0,0,0.7);
  color: #f5c518;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
}

.news-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.news-card-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card--featured .news-card-title { font-size: 0.82rem; }

.news-card-excerpt {
  font-size: 0.73rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.news-author {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-date {
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-skeleton { pointer-events: none; flex: 0 0 calc(25% - 11px); min-width: 200px; }

.news-skeleton-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  animation: news-shimmer 1.6s infinite;
}

.news-skeleton-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-skeleton-line {
  height: 9px;
  background: var(--bg-surface);
  border-radius: 5px;
  animation: news-shimmer 1.6s infinite;
}

@keyframes news-shimmer {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 0.75; }
}

@media (max-width: 900px) {
  #news-grid .news-card,
  #news-grid .news-card--featured,
  .news-skeleton { flex: 0 0 calc(33.33% - 10px); }
}

@media (max-width: 600px) {
  #news-section { padding: 18px 16px 22px; }
  #news-grid .news-card,
  #news-grid .news-card--featured,
  .news-skeleton { flex: 0 0 calc(50% - 7px); min-width: 150px; }
}

/* =====================================================
   HOME ORIGINAL — Contenu éditorial
===================================================== */
.chiffre-section {
  background: linear-gradient(90deg, var(--accent) 0%, #8800cc 100%);
  padding: 10px clamp(16px, 4vw, 48px);
}
.chiffre-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.chiffre-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
}
.chiffre-text {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.chiffre-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
  display: none;
}
.chiffre-fact {
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  opacity: 0.95;
}
.chiffre-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chiffre-link:hover { opacity: 0.7; }
.chiffre-inner::after {
  content: "";
  display: block;
  width: 2px;
  height: 32px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
  order: 1;
}
.chiffre-number { order: 0; }
.chiffre-text   { order: 2; }
@media (max-width: 600px) {
  .chiffre-section { padding: 10px 16px; }
  .chiffre-inner { gap: 12px; }
  .chiffre-inner::after { display: none; }
  .chiffre-fact { font-size: 0.78rem; }
  .chiffre-link { display: none; }
}

.recent-articles-section {
  padding: 40px clamp(16px, 4vw, 60px);
}
.recent-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 16px auto 0;
}
.recent-article-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.recent-article-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.recent-article-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.recent-article-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.recent-article-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .recent-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .recent-articles-grid { grid-template-columns: 1fr; }
}

.about-snippet-section {
  background: var(--bg-surface);
  padding: 48px clamp(20px, 5vw, 60px);
}
.about-snippet-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-snippet-inner h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}
.about-snippet-inner p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-align: left;
}
.about-snippet-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.about-snippet-link:hover { text-decoration: underline; }

.ticker-section {
  background: #0a0a0f;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
  position: relative;
}

.ticker-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, #8800cc 60%, transparent 100%);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 20px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  z-index: 1;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 0 0 rgba(255,45,85,0.7);
  animation: ticker-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ticker-pulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,45,85,0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255,45,85,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,45,85,0); }
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 90s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-items {
  display: flex;
  align-items: center;
  padding: 0 48px;
  white-space: nowrap;
}

.ticker-item {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  padding: 0 6px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.ticker-item strong {
  font-weight: 700;
  color: #fff;
}

.ticker-sep {
  font-size: 0.35rem;
  color: rgba(255,255,255,0.2);
  padding: 0 22px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ticker-label { padding: 0 12px; letter-spacing: 2px; }
  .ticker-item  { font-size: 0.72rem; }
  .ticker-track { animation-duration: 70s; }
}

/* =====================================================
   HERO SLIDER — Slider héro + espace pub
===================================================== */
.pub-banner {
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  margin-top: 64px;
}

.pub-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 970px;
  height: 90px;
  position: relative;
  overflow: hidden;
}

.pub-banner img {
    display: block;
    margin: 0 auto;
    max-width: 970px;
    width: 100%;
}

.pub-label {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pub-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 10px;
}

.pub-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.4;
}

.pub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  background: #000;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.leaving {
  opacity: 0;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease;
  z-index: 0;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.0);
}

.hero-slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  transition: transform 6s ease;
  z-index: 0;
}

.hero-slide.active .hero-slide-bg-img {
  transform: scale(1.0);
}

.hero-slide-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(8,8,8,0.90) 0%, rgba(8,8,8,0.55) 45%, rgba(8,8,8,0.1) 75%, transparent 100%),
    linear-gradient(to bottom, transparent 30%, rgba(8,8,8,0.45) 70%, var(--bg) 100%);
}

[data-theme="light"] .hero-slide-gradient {
  background:
    linear-gradient(to right, rgba(247,247,247,0.25) 0%, rgba(247,247,247,0.4) 22%, rgba(247,247,247,0.06) 58%, transparent 82%),
    linear-gradient(to bottom, transparent 70%, rgba(247,247,247,0.25) 90%, var(--bg) 100%);
}
[data-theme="light"] .hero-slide-overview {
  text-shadow: 0 1px 3px rgba(247,247,247,0.9), 0 0 14px rgba(247,247,247,0.7);
}

[data-theme="light"] .hero-slide-title {
  text-shadow: 0 1px 3px rgba(247,247,247,0.6);
}

.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5% 60px;
  max-width: 1280px;
  margin: 0 auto;
  left: 0; right: 0;
  gap: 32px;
}

.hero-slide-inner {
  flex: 1;
  max-width: 500px;
  animation: heroSlideIn 0.8s ease both;
}

.hero-slide.active .hero-slide-inner {
  animation: heroSlideIn 0.8s ease both;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hero-genre-tag {
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.35);
  color: #ff8080;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
[data-theme="light"] .hero-genre-tag { color: #c0392b; }

.hero-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
}
[data-theme="light"] .hero-year { background: rgba(0,0,0,0.06); }

.hero-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
[data-theme="light"] .hero-slide-title { text-shadow: none; }

.hero-slide-overview {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 20px;
  max-width: 420px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.hero-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,9,20,0.4);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.hero-btn-secondary.in-list {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.4);
  color: #22c55e;
}
[data-theme="light"] .hero-btn-secondary {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}

.hero-slide-poster {
  flex-shrink: 0;
  width: 140px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  transform: perspective(800px) rotateY(-6deg);
  transition: transform 0.4s ease;
}
.hero-slide-poster:hover {
  transform: perspective(800px) rotateY(0deg) translateY(-4px);
}
.hero-slide-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.hero-arrow:hover {
  background: rgba(229, 9, 20, 0.8);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow--prev {
  left: 14px;
  right: auto;
}

.hero-arrow--next {
  right: 14px;
  left: auto;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}
.hero-dot:hover:not(.active) { background: rgba(255,255,255,0.65); }

@media (max-width: 900px) {
  .hero-slider    { height: 44vh; min-height: 280px; }
  .hero-slide-poster { display: none; }
  .hero-slide-content { padding: 0 5% 60px; }
  .pub-banner-inner { height: 70px; }
}

@media (max-width: 600px) {
  .hero-slider    { height: 40vh; min-height: 260px; }
  .pub-banner     { padding: 8px 16px; }
  .pub-banner-inner { width: 100%; height: 90px; }
  .hero-slide-gradient {
    background:
      linear-gradient(to bottom, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.6) 50%, var(--bg) 100%),
      linear-gradient(to right, rgba(8,8,8,0.7) 0%, transparent 100%);
  }
  .hero-slide-content { align-items: flex-end; padding: 0 5% 60px; }
  .hero-slide-overview { display: none; }
  .hero-slide-title { font-size: 1.4rem; }
  .hero-arrow { display: none; }
}

/* =====================================================
   TOUTES-COULEURS — variables & accents (rose)
===================================================== */
:root {
  --accent:       #ff00cc !important;
  --accent-hover: #cc00aa !important;
  --accent-soft:  rgba(255,0,204,0.12) !important;
  --nav-bg:       linear-gradient(90deg, #ff00cc, #7700ff) !important;
  --nav-shadow:   rgba(255,0,204,0.25) !important;
  --primary-red:  #ff00cc !important;
}

[data-theme="light"] {
  --accent:       #cc0099 !important;
  --accent-hover: #aa0080 !important;
  --accent-soft:  rgba(204,0,153,0.08) !important;
}

.btn-account,
.btn-hero,
.btn-watchlist,
.btn-create-list,
.btn-modal-create,
.btn-explore,
.dsi-add-btn,
.hero-btn-primary,
#login-btn {
  background: #ff00cc !important;
}

.btn-account:hover,
.btn-hero:hover,
.btn-watchlist:hover,
.btn-create-list:hover,
.btn-modal-create:hover:not(:disabled),
.btn-explore:hover,
.hero-btn-primary:hover,
#login-btn:hover {
  background: #cc00aa !important;
}

.btn-watchlist.active { background: #ff00cc !important; }

.main-nav {
  background: linear-gradient(90deg, #ff00cc, #7700ff) !important;
  box-shadow: 0 4px 16px rgba(255,0,204,0.25) !important;
}

.logo-text span,
.view-all-link:hover,
.auth-content p a,
.footer-copy a,
.news-author,
.trailer-filter-btn.active,
.genre-tag,
.list-card-name { color: #ff00cc; }

.search-box:focus-within { border-color: rgba(255,0,204,0.5) !important; }
.auth-content input:focus { border-color: #ff00cc !important; }

.badge,
.lists-count-badge,
.fav-count { background: #ff00cc !important; }

.news-filter-btn.active,
.trailer-filter-btn.active,
.lists-tab.active {
  background: #ff00cc !important;
  border-color: #ff00cc !important;
}

.lists-tab.active {
  background: none !important;
  color: #ff00cc !important;
  border-bottom-color: #ff00cc !important;
}

.news-scrollbar-thumb,
.trailer-scrollbar-thumb { background: #ff00cc !important; }

.hero-genre-tag {
  background: rgba(255,0,204,0.15) !important;
  border-color: rgba(255,0,204,0.35) !important;
  color: #ff88ee !important;
}

.hero-dot.active { background: #ff00cc !important; }
.hero-arrow:hover { background: rgba(255,0,204,0.8) !important; }

.genre-tag {
  background: rgba(255,0,204,0.1) !important;
  border-color: rgba(255,0,204,0.2) !important;
  color: #ff00cc !important;
}
.genre-tag:hover {
  background: #ff00cc !important;
  color: #fff !important;
}

.ring-fill { stroke: #ff00cc !important; }

.trailer-play-btn {
  background: rgba(255,0,204,0.9) !important;
}
.trailer-card:hover .trailer-play-btn {
  background: #ff00cc !important;
}

.trailer-modal-close:hover { background: #ff00cc !important; }

.heading-accent { background: #ff00cc !important; }

.news-section-title::after { background: #ff00cc !important; }

.genre-overlay-tag:hover,
.genre-item:hover {
  background: #ff00cc !important;
  border-color: #ff00cc !important;
}

.remove-btn,
.drawer-film-remove,
.delete-btn {
  background: rgba(229,9,20,0.85) !important;
}

.emoji-opt.selected {
  border-color: #ff00cc !important;
  background: rgba(255,0,204,0.08) !important;
}

.vis-btn.active {
  background: rgba(255,0,204,0.1) !important;
  border-color: #ff00cc !important;
}

.tags li:hover,
.tags li.active {
  background: #ff00cc !important;
  border-color: #ff00cc !important;
}

.genre-pill.active {
  background: #ff00cc !important;
}

.hero-eyebrow {
  color: #ff00cc !important;
  background: rgba(255,0,204,0.1) !important;
  border-color: rgba(255,0,204,0.2) !important;
}

.star-item.filled,
.star-item:hover { color: #ff00cc !important; }

.breadcrumb a:hover { color: #ff00cc !important; }

.provider-logo:hover { border-color: #ff00cc !important; }

.actor-card:hover .actor-photo-wrap { border-color: #ff00cc !important; }

.director-name { color: #f0f0f0; }

.genre-toggle-btn:hover { border-color: #ff00cc !important; }

#genre-name-display {
  background: linear-gradient(to right, #ff00cc, #7700ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* =====================================================
   FOOTER
===================================================== */
.main-footer {
  background: var(--bg-surface);
  color: var(--text-dim);
  padding: 80px 24px 40px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 2fr;
  gap: 50px 40px;
}

.brand-col .logo-text {
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  line-height: 1.65;
  font-size: 0.93rem;
  max-width: 320px;
  margin-bottom: 20px;
  color: var(--text-dim);
}

.tmdb-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e50914;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
}
.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 15px 32px;
  background: linear-gradient(90deg, #e50914, #ff2d3d);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
}

.social-section {
  margin-top: 24px;
}

.social-section h4 {
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  font-size: 1.65rem;
  color: var(--text-dim);
  transition: all 0.25s ease;
  line-height: 1;
}

.social-icons a:hover {
  color: #e50914;
  transform: scale(1.2);
}

.footer-bottom {
  max-width: 900px;
  margin: 60px auto 0;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
}
.footer-legal-links a {
  margin-right: 18px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--text-dim);
}

.heart {
  color: #e50914;
}

.footer-legal-links a.highlight-link {
  color: #e50914;
  font-weight: 600;
  margin-left: 8px;
}

.footer-legal-links a.highlight-link:hover {
  color: #ff2d3d;
  text-decoration: underline;
}

.footer-legal-links a {
  margin-right: 16px;
}

.partners-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.partners-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 20px;
}

.partners-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 20px;
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.partners-logos img {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: grayscale(60%);
}

.partners-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .main-footer {
    padding: 60px 16px 36px;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

.ig-stop-1 { stop-color: #FFDC80; }
.ig-stop-2 { stop-color: #FCAF45; }
.ig-stop-3 { stop-color: #F77737; }
.ig-stop-4 { stop-color: #C13584; }
.ig-stop-5 { stop-color: #833AB4; }

/* =====================================================
   NOTIFICATIONS
===================================================== */
.notif-bell-wrapper {
  position: relative;
  flex-shrink: 0;
}
.notif-bell-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.notif-bell-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.notif-bell-btn.has-notif {
  border-color: var(--accent);
  color: var(--accent);
  animation: bell-ring 0.6s ease 0s 2;
}

@keyframes bell-ring {
  0%,100% { transform: rotate(0deg); }
  20%     { transform: rotate(-15deg); }
  40%     { transform: rotate(15deg); }
  60%     { transform: rotate(-10deg); }
  80%     { transform: rotate(10deg); }
}

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg);
  pointer-events: none;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 5000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--text);
}
.notif-mark-all {
  background: none; border: none;
  color: var(--accent); font-size: 0.72rem;
  font-weight: 700; cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}
.notif-mark-all:hover { opacity: 0.7; }

.notif-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-surface);
}

.notif-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; gap: 8px; text-align: center;
}
.notif-empty span { font-size: 2rem; }
.notif-empty p    { font-size: 0.82rem; color: var(--text-muted); }

.notif-item {
  display: flex; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-surface); }
.notif-item.unread { background: rgba(255,0,204,0.04); }

.notif-item-poster {
  position: relative; flex-shrink: 0;
  width: 44px; height: 66px;
  border-radius: 6px; overflow: hidden;
  background: var(--bg-surface);
}
.notif-item-poster img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.notif-no-poster {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.notif-unread-dot {
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}

.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item-meta {
  font-size: 0.68rem; color: var(--accent);
  font-weight: 600; margin-bottom: 4px;
}
.notif-item-overview {
  font-size: 0.72rem; color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.notif-item-time {
  font-size: 0.65rem; color: var(--text-muted);
}

.notif-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  max-width: 320px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.notif-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.notif-toast-inner {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.notif-toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.notif-toast-title {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2px;
}
.notif-toast-msg {
  font-size: 0.82rem; color: var(--text);
  line-height: 1.4;
}
.notif-toast-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 0.8rem; padding: 0; margin-left: auto;
  flex-shrink: 0; line-height: 1;
  transition: color 0.2s;
}
.notif-toast-close:hover { color: var(--text); }

@media (max-width: 600px) {
  .notif-panel {
    position: fixed;
    top: 64px; left: 8px; right: 8px;
    width: auto;
  }
  .notif-toast {
    left: 12px; right: 12px;
    max-width: none;
  }
}

/* =====================================================
   trending.css — Section Tendances
   À inclure dans le <head> avec style.css
===================================================== */

/* ---- EN-TÊTE DE SECTION ---- */
.trending-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.trending-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* ---- ONGLETS ---- */
.trending-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
}

.tab-btn {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--text);
  color: var(--bg);
}

[data-theme="light"] .tab-btn.active {
  background: #111;
  color: #fff;
}

/* ---- WRAPPER SCROLL ---- */
.trending-scroll-wrapper {
  position: relative;
}

/* ---- TRACK (scroll horizontal) ---- */
.trending-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  /* Cache la scrollbar */
  scrollbar-width: none;
}
.trending-track::-webkit-scrollbar { display: none; }

/* ---- FLÈCHES ---- */
.trending-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%); /* Ajusté pour être au niveau des images */
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.trending-arrow:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.trending-arrow.left  { left: -18px; }
.trending-arrow.right { right: -18px; }

/* ---- CARTE ---- */
.trend-card {
  flex-shrink: 0;
  width: 150px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.trend-card:hover { transform: translateY(-4px); }

/* Image */
.trend-card-img {
  position: relative;
  width: 150px;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.trend-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.trend-card:hover .trend-card-img img { transform: scale(1.05); }

/* Overlay badges (type + note) */
.trend-card-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.trend-type-badge {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.trend-rating {
  background: rgba(0,0,0,0.7);
  color: #f5c518;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ---- BARRES DE SON (style AlloCiné) ---- */
.trend-soundbars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 6px 4px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.trend-card:hover .trend-soundbars { opacity: 1; }

.soundbar {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #1db954; /* Vert style Spotify/AlloCiné */
  animation: soundwave 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}

/* Chaque barre a une hauteur et un délai différent */
.soundbar:nth-child(1) { height: 8px;  animation-delay: 0.0s; }
.soundbar:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.soundbar:nth-child(3) { height: 12px; animation-delay: 0.05s; }
.soundbar:nth-child(4) { height: 20px; animation-delay: 0.25s; }
.soundbar:nth-child(5) { height: 10px; animation-delay: 0.1s;  }
.soundbar:nth-child(6) { height: 14px; animation-delay: 0.2s;  }

@keyframes soundwave {
  from { transform: scaleY(0.4); opacity: 0.7; }
  to   { transform: scaleY(1.0); opacity: 1;   }
}

/* ---- INFOS SOUS LA CARTE ---- */
.trend-card-info {
  padding: 10px 2px 4px;
}

.trend-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  /* Tronque à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.trend-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- ANIMATION D'ENTRÉE DES CARTES ---- */
.trend-card {
  animation: fadeSlideIn 0.35s ease both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SQUELETTE DE CHARGEMENT ---- */
.trending-skeleton {
  display: flex;
  gap: 16px;
  padding: 8px 4px;
}

.trend-card-skeleton {
  flex-shrink: 0;
  width: 150px;
  height: 220px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .trend-card     { width: 120px; }
  .trend-card-img { width: 120px; height: 178px; }
  .trending-arrow { display: none; }
}
/* =====================================================
   tonight.css — Mode "Ce soir ?"
   Regarde Movie
===================================================== */
/* =====================================================
   BOUTON FLOTTANT (FAB)
===================================================== */
.tonight-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 7000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e50914, #ff416c);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(229,9,20,0.45), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fabPulse 3s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(229,9,20,0.45), 0 2px 8px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 8px 48px rgba(229,9,20,0.7),  0 2px 8px rgba(0,0,0,0.3); }
}
.tonight-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 48px rgba(229,9,20,0.6), 0 4px 16px rgba(0,0,0,0.3);
  animation: none;
}
.tonight-fab-icon { font-size: 1.2rem; }
.tonight-fab-label { letter-spacing: 0.3px; }

@media (max-width: 600px) {
  .tonight-fab { bottom: 20px; right: 16px; padding: 12px 16px; }
  .tonight-fab-label { display: none; }
  .tonight-fab { border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .tonight-fab-icon { font-size: 1.4rem; }
}
/* =====================================================
   MODAL OVERLAY
===================================================== */
.tonight-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tonight-modal.hidden { display: none; }
/* Règle générique de sécurité : garantit que .hidden masque bien tout
   élément à l'intérieur de la modale, même si aucune feuille de style
   globale ne définit .hidden (ex: pages sans funfacts-page.css) */
#tonight-modal .hidden { display: none !important; }
.tonight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
}
/* =====================================================
   PANNEAU
===================================================== */
.tonight-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tonight-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* =====================================================
   ÉTAPES
===================================================== */
.tonight-step { animation: stepIn 0.35s ease both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tonight-step.hidden { display: none; }
/* En-tête étape */
.tonight-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.tonight-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.tonight-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #e50914, #ff416c);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.tonight-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  white-space: nowrap;
}
/* Question */
.tonight-question {
  text-align: center;
  margin-bottom: 28px;
}
.tonight-emoji { font-size: 2.8rem; margin-bottom: 12px; line-height: 1; }

.tonight-question h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 6px;
}
.tonight-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
/* =====================================================
   CHOIX
===================================================== */
.tonight-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.tonight-choices--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tonight-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.tonight-choices--grid .tonight-choice {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  gap: 8px;
}
.tonight-choice:hover {
  border-color: var(--accent);
  background: rgba(229,9,20,0.06);
  transform: translateY(-2px);
}
.tonight-choice.selected {
  border-color: var(--accent);
  background: rgba(229,9,20,0.1);
}
.choice-icon  { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.choice-label { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.choice-sub   { font-size: 0.75rem; color: var(--text-muted); }
/* =====================================================
   BOUTON FERMER
===================================================== */
.tonight-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.tonight-close:hover { background: var(--bg-surface); color: var(--text); }
/* =====================================================
   LOADING
===================================================== */
.tonight-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
  min-height: 300px;
}
.tonight-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#tonight-loading-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: opacity 0.3s;
}
/* =====================================================
   RÉSULTAT
===================================================== */
.tonight-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 20px;
}
.tonight-result-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
/* Poster */
.tonight-result-poster {
  flex-shrink: 0;
  width: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  position: relative;
}
.tonight-result-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.tonight-result-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
/* Infos résultat */
.tonight-result-info { flex: 1; min-width: 0; }

.tonight-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.meta-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}
[data-theme="light"] .meta-badge { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
.tonight-vote-badge { color: #f5c518 !important; background: rgba(245,197,24,0.1) !important; border-color: rgba(245,197,24,0.25) !important; }
.tonight-result-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.1;
}
.tonight-result-overview {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.tonight-result-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tonight-genre-tag {
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.22);
  color: #ff8080;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
[data-theme="light"] .tonight-genre-tag { color: #c0392b; }
/* Actions résultat */
.tonight-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tonight-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.tonight-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.tonight-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.tonight-btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}
/* Bouton recommencer */
.tonight-restart {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
}
.tonight-restart:hover { color: var(--text); }
/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 520px) {
  .tonight-panel { padding: 24px 20px; border-radius: 20px; }
  .tonight-question h2 { font-size: 1.5rem; }
  .tonight-choices--grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tonight-result-card { flex-direction: column; align-items: center; }
  .tonight-result-poster { width: 120px; }
  .tonight-result-info { width: 100%; }
  .tonight-result-actions { justify-content: center; }
}
/* =====================================================
   BOUTON RETOUR (étapes 1, 2, 3)
===================================================== */
.tonight-back {
  position: absolute;
  top: 16px;
  left: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.tonight-back:hover { background: var(--bg-surface); color: var(--text); }

/* =====================================================
   PLATEFORMES DE STREAMING
===================================================== */
.tonight-providers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.tonight-providers-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.tonight-provider-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
/* =====================================================
   ACCESSIBILITÉ — respect de "réduire les animations"
===================================================== */
@media (prefers-reduced-motion: reduce) {
  .tonight-fab { animation: none !important; }
  .tonight-panel, .tonight-step, .tonight-choice, .tonight-type-btn,
  .tonight-fab, .tonight-result-card {
    transition: none !important;
    animation: none !important;
  }
}
/* =====================================================
   Étape 0 — Toggle Film / Série
===================================================== */
.tonight-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  flex: 1;
}
.tonight-type-btn:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tonight-type-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tonight-type-btn .choice-icon { font-size: 2rem; }
.tonight-type-btn .choice-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.tonight-type-btn .choice-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
/* =====================================================
   funfacts.css — Section Fun Facts
===================================================== */

#funfacts-section {
  padding: 48px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#funfacts-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.ff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 var(--section-px, 24px);
}

.ff-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ff-title .pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.ff-refresh-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ff-refresh-btn:hover { border-color: var(--accent); color: var(--accent); }
.ff-refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Loading ── */
#funfacts-loading {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Grille de cartes ── */
#funfacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 var(--section-px, 24px);
}

/* ── Carte ── */
.ff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--ff-color, var(--accent));
}
.ff-card:hover {
  transform: translateY(-4px);
  border-color: var(--ff-color, var(--accent));
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.ff-card-inner {
  display: flex;
  gap: 14px;
  padding: 16px;
}

/* ── Poster ── */
.ff-poster {
  flex-shrink: 0;
  width: 72px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}
.ff-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.ff-card:hover .ff-poster img { transform: scale(1.05); }

.ff-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.ff-card:hover .ff-poster-overlay { opacity: 1; }
.ff-poster-link {
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 4px;
}

/* ── Corps ── */
.ff-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.ff-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.ff-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-dim);
  flex: 1;
}
.ff-text strong { color: var(--text); }
.ff-text em { color: var(--ff-color, var(--accent)); font-style: italic; }

.ff-vote {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ff-stars { color: #f5c518; }

/* ── Responsive ── */
@media (max-width: 600px) {
  #funfacts-grid { grid-template-columns: 1fr; }
}
/* =====================================================
   trailers.css — Section Bandes-annonces
   Style AlloCiné
   Regarde Movie
===================================================== */

/* =====================================================
   SECTION
===================================================== */
#trailers-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 28px;
}

/* En-tête avec titre + filtres sur la même ligne */
.trailers-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.trailers-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================================================
   FILTRES — style pills comme AlloCiné
===================================================== */
#trailers-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trailer-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.trailer-filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.trailer-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================================================
   GRILLE HORIZONTALE SCROLLABLE
===================================================== */
.trailers-carousel-wrapper { position: relative; }

#trailers-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#trailers-grid::-webkit-scrollbar { display: none; }

/* =====================================================
   CARTE BANDE-ANNONCE
===================================================== */
.trailer-card {
  flex: 0 0 calc(25% - 11px);
  min-width: 200px;
  max-width: 320px;
  cursor: pointer;
}

/* Vignette vidéo */
.trailer-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 8px;
}

.trailer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s;
}

/* Overlay sombre + bouton play */
.trailer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.trailer-card:hover .trailer-overlay { background: rgba(0,0,0,0.55); }
.trailer-card:hover .trailer-thumb img { transform: scale(1.05); opacity: 0.85; }

/* Bouton play */
.trailer-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(229,9,20,0.9);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  padding-left: 3px; /* Optique play */
}
.trailer-card:hover .trailer-play-btn {
  transform: scale(1.12);
  background: var(--accent);
}

/* Infos texte */
.trailer-info { padding: 0 2px; }

.trailer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.trailer-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   SCROLLBAR CUSTOM
===================================================== */
.trailer-scrollbar-track {
  width: 100%;
  height: 3px;
  background: var(--bg-surface);
  border-radius: 2px;
  margin-top: 8px;
  position: relative;
  cursor: pointer;
}

.trailer-scrollbar-thumb {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 0; top: 0;
  min-width: 40px;
  cursor: grab;
  transition: opacity 0.2s;
}
.trailer-scrollbar-thumb:active { cursor: grabbing; }

/* =====================================================
   MODAL YOUTUBE
===================================================== */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.trailer-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.trailer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}

.trailer-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  animation: trailerModalIn 0.3s ease both;
}

@keyframes trailerModalIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.trailer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.trailer-modal-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 48px);
}

.trailer-modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.trailer-modal-close:hover { background: var(--accent); }

.trailer-modal-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.trailer-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   SKELETON
===================================================== */
.trailer-skeleton {
  pointer-events: none;
}

.trailer-skeleton-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border-radius: 10px;
  margin-bottom: 8px;
  animation: tr-shimmer 1.6s infinite;
}

.trailer-skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.trailer-skeleton-line {
  height: 9px;
  background: var(--bg-surface);
  border-radius: 5px;
  animation: tr-shimmer 1.6s infinite;
  margin: 0 auto;
}

@keyframes tr-shimmer {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 0.75; }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .trailers-header { gap: 12px; }
  .trailers-title  { font-size: 1.3rem; }
  .trailer-card, .trailer-skeleton {
    flex: 0 0 calc(33.33% - 10px);
  }
}

@media (max-width: 600px) {
  #trailers-section { padding: 18px 16px 22px; }
  .trailers-header  { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trailer-card, .trailer-skeleton {
    flex: 0 0 calc(50% - 7px);
    min-width: 150px;
  }
  .trailer-play-btn { width: 38px; height: 38px; }
  .trailer-modal-box { border-radius: 10px; }
}
