/* =====================================================
   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');

/* =====================================================
   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);
  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 8px;
  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); }

/* 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;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; 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
===================================================== */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  z-index: 999;
}
.mobile-menu.active { max-height: 400px; padding: 12px 0; }

.mobile-menu a {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--text); background: var(--bg-card); }

/* =====================================================
   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: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
}

.collection-section {
  max-width: 1400px;
  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
===================================================== */
/* =====================================================
   GRILLES — grille normale (genre, animés, streaming…)
   Sur l'accueil, movie-grid-scroll.js active le scroll
===================================================== */
.movie-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

/* Carte standard */
.movie-grid .card,
.cards .card {
  width: 100%;
}

/* =====================================================
   MODE SCROLL HORIZONTAL — activé par JS sur l'accueil
   (.movie-grid-wrap est injecté par movie-grid-scroll.js)
===================================================== */
.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;
}

/* Flèches — style identique à .trending-arrow */
.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;
  /* Tronque les titres longs */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Note TMDB */
.tmdb-rating {
  font-size: 0.78rem;
  color: #f5c518;
  font-weight: 600;
}
.vote-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
}

/* Étoiles utilisateur */
.rating-box {
  display: flex;
  gap: 2px;
  margin-top: 6px;
}
.star-item {
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}
.star-item:hover,
.star-item.filled { color: #f5c518; }
.star-item:hover  { transform: scale(1.2); }

/* Bouton supprimer (watchlist) */
.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); }

/* =====================================================
   BADGE "VU ✓" — visible sur toutes les cartes
   Positionné en haut à GAUCHE pour ne pas entrer
   en conflit avec les badges de note (haut à droite)
===================================================== */
.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;
  /* Entrée douce */
  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); }
}

/* Compatibilité tous les containers d'images du site */
.card-image-container,
.sp-card-img,
.result-img,
.news-article-img {
  position: relative; /* déjà set dans chaque CSS, mais on s'assure */
}

/* Animation suppression */
.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; }


/* =====================================================
   ÉTAT VIDE
===================================================== */
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px;
}

/* =====================================================
   ANIMATIONS AU SCROLL
===================================================== */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .main-nav    { display: none; }
  .menu-toggle { display: flex; }
  .btn-account { display: none; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .search-box input { width: 100px; }

  .hero-content h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-sub { font-size: 0.95rem; }

  /* Grille normale : colonnes plus petites */
  .movie-grid,
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  /* Mode scroll (accueil) : cartes plus petites, flèches masquées */
  .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; }
}

/* ===================== 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; }
}

/* Grille skeleton */
.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: 3px solid #e50914;
  padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  font-size: 0.95rem;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text p {
  margin: 0;
  color: #ddd;
  line-height: 1.5;
}

.cookie-text a {
  color: #e50914;
  text-decoration: underline;
}

.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);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

/* ===================== 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;
}

/* ===================== MODAL ===================== */
.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;
}
