:root {
  --bg: #101418;
  --text: #f1f5f9;
  --muted: #A8E0F7;
  --accent: #99C5AC;
  --card: #161b22;
  --border: #222933;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

nav a {
  margin-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

/* Hero / accueil */
.hero {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.search {
  margin-top: 2rem;
  max-width: 450px;
}

.search input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
}

/* Main content */
main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.weekly h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.card img {
  width: 100%;
  border-radius: 4px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.read {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  background: #101418;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  font-size: 0.9rem;
}

footer h4 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

footer a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
/* Formulaire avancé */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

form select, form input, form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #95d5b1;
}

#formMsg {
  font-size: 0.9rem;
  color: var(--muted);
}


@media (max-width: 700px) {
  .card {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
}
/* Bouton hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}
/* ---------- Desktop / Mobile switch ---------- */
.nav-desktop {
  display: flex;
  gap: 1.4rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* ---------- Menu mobile ---------- */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #0b0b0d; /* PLUS FONCÉ */
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 1000;
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile a {
  font-size: 1.1rem;
}

.nav-mobile .secondary {
  opacity: 0.7;
  font-size: 0.95rem;
}

.mobile-search {
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: #151518;
  color: var(--text);
  margin-bottom: 10px;
}

/* Séparateur */
.nav-divider {
  height: 1px;
  background: #222933;
  margin: 15px 0;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
/* Mobile */
@media (max-width: 700px) {

  .burger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.1rem;
  }

  .mobile-search {
    margin-top: 2rem;
  }
}
/* Scroll to top progress */
#scrollTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#scrollTop svg {
  position: absolute;
  transform: rotate(-90deg);
}

#scrollTop circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.1s linear;
}

#scrollTop span {
  position: relative;
  color: var(--text);
  font-size: 1.1rem;
}
/* Pop-up maintenance */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: var(--card);
  color: var(--text);
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.popup-content h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.popup-content p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.popup-content button {
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-content button:hover {
  background: #b38f42;
}

/* ================= POP-UP GLOBAL ================= */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup[hidden] {
  display: none;
}
.popup.hidden {
  display: none;
}
.popup-content {
  position: relative;
  background: var(--card);
  color: var(--text);
  padding: 2rem;
  border-radius: 10px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  animation: popupFade 0.25s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-content h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.popup-content p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Bouton principal */
.popup-content button {
  padding: 0.7rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.popup-content button:hover {
  background: #b38f42;
  transform: translateY(-1px);
}

/* Bouton fermeture (croix) */
.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.popup-close:hover {
  color: var(--text);
}
.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.profile-icon:hover {
  transform: scale(1.05);
  opacity: 0.85;
}
/* Bandeau avis disponible */
.avis-banner {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(
    90deg,
    rgba(201,162,77,0.15),
    rgba(201,162,77,0.05)
  );
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.avis-banner span {
  color: var(--text);
}

.avis-banner a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.avis-banner a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .avis-banner {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}
/* ================= VIDEO YOUTUBE ================= */

.trailer-section {
  margin-top: 3rem;
}

.trailer-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#loadMoreBtn {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.8rem 1.8rem;
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#loadMoreBtn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}

#loadMoreBtn:active {
  transform: translateY(0);
}.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fav-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.fav-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

.heart {
  width: 20px;
  height: 20px;
  fill: transparent;
  stroke: var(--muted);
  stroke-width: 2;
  transition: 0.3s ease;
}

/* Actif */
.fav-btn.active .heart {
  fill: var(--accent);
  stroke: var(--accent);
  animation: popHeart 0.35s ease;
}

/* Glow subtil */
.fav-btn.active {
  box-shadow: 0 0 12px rgba(201,162,77,0.5);
}

/* Animation */
@keyframes popHeart {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* IMPORTANT : rendre .card relative */
.card {
  position: relative;
}
.favorites-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.favorites-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.favorites-container::-webkit-scrollbar {
  height: 6px;
}

.favorites-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.favorite-card {
  min-width: 220px;
  background: var(--card);
  border-radius: 8px;
  padding: 1rem;
  flex-shrink: 0;
  position: relative;
  transition: 0.25s ease;
}

.favorite-card:hover {
  transform: translateY(-4px);
}

.favorite-card img {
  width: 220px;
  height: 330px;
 border-radius: 6px;
  margin-bottom: 0.8rem;
}

.favorite-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.remove-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--accent);
  font-weight: bold;
}

/* Bouton supprimer tout */

.clear-btn {
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.clear-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fav-btn.active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: particle 0.4s ease forwards;
}

@keyframes particle {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1;}
  50% { transform: translate(-150%, -150%) scale(1.2); opacity: 0.8;}
  100% { transform: translate(-200%, -200%) scale(0); opacity: 0;}
}
.view-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  background: rgba(201,162,77,0.2);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.view-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.05);
}
.history-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.history-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.history-container::-webkit-scrollbar {
  height: 6px;
}

.history-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.history-card {
  min-width: 220px;
  background: var(--card);
  border-radius: 8px;
  padding: 1rem;
  flex-shrink: 0;
  position: relative;
  transition: 0.25s ease;
}

.history-card:hover {
  transform: translateY(-4px);
}

.history-card img {
  width: 220px;
  height: 330px;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.history-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.remove-history {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--accent);
  font-weight: bold;
}

/* Bouton supprimer tout */
.clear-btn {
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.clear-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.favorites-wrapper,
.history-wrapper {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(23,23,26,0.8);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  opacity: 0; /* invisible par défaut */
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  pointer-events: auto;
}

.scroll-arrow svg {
  stroke: var(--accent);
  transition: stroke 0.2s, transform 0.2s;
}

.scroll-arrow:hover {
  background: rgba(201,162,77,0.25);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left { left: 4px; }
.scroll-arrow.right { right: 4px; }

/* Affichage seulement si scroll possible */
.scroll-arrow.show { opacity: 0.8; }
.scroll-arrow.show:hover { opacity: 1; }

/* Conteneurs scrollables */
.favorites-container,
.history-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

/* Scrollbar discrète */
.favorites-container::-webkit-scrollbar,
.history-container::-webkit-scrollbar {
  height: 6px;
}

.favorites-container::-webkit-scrollbar-thumb,
.history-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.public-stats {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: 0.2s;
}

.stat-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stat-icon {
  width: 16px;
  height: 16px;
  fill: var(--muted);
  transition: 0.2s;
}

.stat-item:hover .stat-icon {
  fill: var(--accent);
}


.rating-stars {
  display: flex;
  gap: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.rating-stars .star {
  color: #ccc;
  transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star:hover ~ .star {
  color: gold;
}

/* ================= RANKING PREMIUM ================= */

.ranking-section {
  margin-top: 3rem;
}

.ranking-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.ranking-title {
  font-size: 1.8rem;
}

.ranking-title span {
  color: var(--accent);
}

.ranking-filters {
  display: flex;
  gap: 0.8rem;
}

.ranking-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.ranking-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.ranking-table th,
.ranking-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.ranking-table th {
  color: var(--muted);
  text-align: left;
  font-weight: 500;
}

.ranking-table tr {
  transition: background 0.2s, transform 0.2s;
}

.ranking-table tr:hover {
  background: rgba(255,255,255,0.03);
}

/* TOP 3 */

.top-1 {
  background: rgba(201,162,77,0.18);
  box-shadow: inset 4px 0 0 var(--accent);
}

.top-2 {
  background: rgba(201,162,77,0.1);
}

.top-3 {
  background: rgba(201,162,77,0.05);
}

/* Animation montée */

.row-up {
  animation: rise 0.4s ease;
}

@keyframes rise {
  from { transform: translateY(6px); }
  to { transform: translateY(0); }
}

/* Evolution */

.delta {
  font-weight: 600;
}

.delta.up {
  color: #4caf50;
}

.delta.down {
  color: #f44336;
}

.delta.same {
  color: var(--muted);
}

.hot-badge {
  background: rgba(255,69,0,0.15);
  color: #ff784e;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-left: 6px;
}

/* Totaux */

.ranking-totals {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ranking-total-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 768px) {
  .ranking-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tracking-section { margin-top: 3rem; }
.tracking-section h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.tracking-section form { margin-bottom: 2rem; }
.tracking-section form label { font-weight: 500; margin-top: 1rem; display: block; }
.tracking-section form select,
.tracking-section form input,
.tracking-section form textarea,
.tracking-section form button {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
}
.tracking-section form button {
  margin-top: 1rem;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}
.tracking-section form button:hover { background: #b38f42; }

.tracking-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.tracking-controls { display: flex; gap: 1rem; margin-bottom: 1rem; }
.tracking-controls button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.tracking-controls button:hover { background: #222933; }

.tracking-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.tracking-card img { width: 60px; height: 90px; object-fit: cover; border-radius: 4px; }
.tracking-card h3 { font-size: 1.1rem; margin: 0; flex: 1; }
.tracking-card .status { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.tracking-card button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.tracking-card button:hover { color: var(--text); }

/* Suggestions Footer */
.footer-suggestions {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.suggestions-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.suggestions-wrapper::-webkit-scrollbar {
  height: 6px;
}

.suggestions-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.suggestion-card {
  min-width: 220px;
  background: var(--card);
  border-radius: 8px;
  padding: 1rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.suggestion-card img {
  width: 220px;
  height: 330px;
 border-radius: 6px;
  margin-bottom: 0.8rem;
}

.suggestion-card span {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.4rem;
}

.suggestion-card .read {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

.suggestion-card button {
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.suggestion-card button.interested {
  background: var(--accent);
  color: var(--bg);
}

.suggestion-card button.interested:hover {
  background: #b38f42;
  transform: translateY(-1px);
}

.suggestion-card button.not-interested {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.suggestion-card button.not-interested:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 700px) {
  .suggestions-wrapper {
    gap: 1rem;
  }

  .suggestion-card {
    min-width: 160px;
  }
}

/* Pop-up consentement */
#consentPopup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#consentPopup .popup-content {
  background: var(--card);
  color: var(--text);
  padding: 2rem;
  border-radius: 10px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: popupFade 0.25s ease;
}

#consentPopup .popup-content h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}

#consentPopup .popup-content a {
  color: var(--accent);
  text-decoration: underline;
}

#consentPopup .popup-content button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#consentPopup #acceptBtn { background: var(--accent); color: var(--bg); }
#consentPopup #acceptBtn:hover { background: #b38f42; }
#consentPopup #declineBtn { background: var(--border); color: var(--text); }
#consentPopup #declineBtn:hover { background: #222933; }

@keyframes popupFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.legal-section {
  background: var(--card);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 1rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.legal-section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.8rem;
  color: var(--text);

}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

#results {
  margin-top: 10px;
}

#results div:hover {
  background: #1f1f24;
}


/* ================= INFO PG PRO ================= */

.rating-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Icône i */
.info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

/* Hover premium */
.info-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

/* ================= TOOLTIP ================= */

.tooltip {
  position: absolute;

  /* PC = au dessus */
  bottom: 140%;
  left: 50%;

  transform: translateX(-50%) scale(0.95);

  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);

  padding: 10px 12px;
  border-radius: 8px;

  width: 260px;
  max-width: calc(100vw - 24px);

  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  box-shadow: 0 10px 25px rgba(0,0,0,0.35);

  z-index: 9999;

  word-wrap: break-word;
}

/* Hover PC */
.rating-info:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

/* Mobile actif JS */
.tooltip.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {

  .rating-info {
    position: static;
  }

  .tooltip {

    position: fixed;

    top: 50%;
    left: 50%;

    bottom: auto;

    transform: translate(-50%, -50%) scale(0.95);

    width: min(280px, calc(100vw - 24px));

    max-height: 70vh;
    overflow-y: auto;

    border-radius: 12px;

    padding: 14px;

    z-index: 99999;
  }

  .tooltip.active {
    transform: translate(-50%, -50%) scale(1);
  }

}


    .search-box {
      margin-bottom: 2rem;
    }

    .search-box input {
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: #121214;
      color: var(--text);
      font-size: 1rem;
    }

    .faq-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 1rem;
      padding: 1rem;
    }

    summary {
      cursor: pointer;
      font-weight: bold;
      color: var(--accent);
    }

    details p {
      color: var(--muted);
      margin-top: 0.8rem;
    }

    .category {
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      font-size: 1.3rem;
      color: var(--accent);
    }

    .hidden {
      display: none;
    }




    .card {
      background: var(--card);
      border: 1px solid var(--border);
      padding: 1.5rem;
      border-radius: 10px;
      margin-bottom: 1.5rem;
    }

    .title {
      font-size: 1.4rem;
      font-weight: bold;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }

    .short {
      margin-bottom: 0.8rem;
    }

    details {
      background: #121214;
      padding: 1rem;
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    summary {
      cursor: pointer;
      font-weight: bold;
      color: var(--accent);
    }

    details p, ul {
      color: var(--muted);
    }

    .highlight {
      border-left: 4px solid var(--accent);
      padding-left: 1rem;
      margin: 1rem 0;
      color: var(--muted);
    }

    .faq details {
      margin-bottom: 1rem;
    }

.video-note {
  margin-top: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: rgba(201,162,77,0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}


/* 🔥 Bouton partage */
.share-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* version mobile */
.share-btn.mobile {
  width: 100%;
  text-align: left;
}

/* 🔥 popup */
.share-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
}

.share-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-popup {
  max-width: 450px;
}

.popup-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.share-app {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.75rem;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.share-app:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.share-app img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.qr-box {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.qr-box img {
  background: white;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

#shareSelect {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  margin-top: 10px;
}

.watched {
  background: #99C5AC;
  color: black;
  font-weight: bold;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

#seasonProgress {
  height: 100%;
  width: 0%;
  background: #99C5AC;
  transition: width 0.25s ease;
}

#infoBox {
  color: #99C5AC;
  font-size: 14px;
  margin-bottom: 8px;
}

.gate {
  position: fixed;
  inset: 0;
  background: #101418;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.gate-box {
  text-align: center;
  color: white;
  padding: 20px;
}



/* ================= 404 PAGE ================= */

.error-page {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 40%),
    linear-gradient(180deg, #0b0b0b 0%, #111111 100%);

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;

  overflow: hidden;
}

.error-container {
  position: relative;

  width: 100%;
  max-width: 650px;

  background: rgba(20,20,20,0.85);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 24px;

  padding: 55px 35px;

  text-align: center;

  backdrop-filter: blur(14px);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.45),
    0 0 80px rgba(255,255,255,0.03);

  overflow: hidden;
}

/* Glow derrière */
.error-glow {
  position: absolute;

  width: 350px;
  height: 350px;

  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);

  top: -120px;
  left: 50%;

  transform: translateX(-50%);

  pointer-events: none;
}

/* 404 */
.error-code {
  font-size: clamp(5rem, 12vw, 9rem);

  font-weight: 800;

  margin: 0;

  line-height: 1;

  letter-spacing: 4px;

  color: white;

  text-shadow:
    0 0 20px rgba(255,255,255,0.08),
    0 0 60px rgba(255,255,255,0.05);
}

/* titre */
.error-title {
  margin-top: 20px;

  font-size: 1.8rem;
  font-weight: 700;

  color: white;
}

/* texte */
.error-text {
  margin-top: 12px;

  color: rgba(255,255,255,0.65);

  line-height: 1.6;

  font-size: 1rem;
}

/* boutons */
.error-buttons {
  margin-top: 35px;

  display: flex;
  justify-content: center;
  gap: 15px;

  flex-wrap: wrap;
}

/* style bouton */
.error-btn {
  position: relative;

  padding: 14px 22px;

  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.08);

  text-decoration: none;

  font-weight: 600;

  transition: 0.25s ease;

  cursor: pointer;

  font-size: 0.95rem;
}

/* bouton principal */
.primary-btn {
  background: white;
  color: black;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.12);
}

/* bouton secondaire */
.secondary-btn {
  background: rgba(255,255,255,0.04);

  color: white;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.08);

  transform: translateY(-2px);
}

/* mobile */
@media (max-width: 600px) {

  .error-container {
    padding: 45px 22px;
  }

  .error-title {
    font-size: 1.45rem;
  }

  .error-text {
    font-size: 0.95rem;
  }

  .error-buttons {
    flex-direction: column;
  }

  .error-btn {
    width: 100%;
  }

}



  .reset-container {
    max-width: 450px;
    margin: 6rem auto;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .reset-container h1 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.8rem;
  }

  .reset-container p {
    color: var(--muted);
    margin-bottom: 1.5rem;
  }

  .reset-msg {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  .success { color: #4caf50; }
  .error { color: #ff5c5c; }

  /* 🌍 Lang switch */
  .lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
  }

  .lang-switch button {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 60px;
  }

  .lang-switch button:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* ================= FORM MOBILE FRIENDLY ================= */

  label {
    display: block;
    margin: 0.6rem 0 0.3rem;
    font-size: 0.95rem;
  }

  input {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    outline: none;
  }

  input:focus {
    border-color: var(--accent);
  }

  button[type="submit"] {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
  }

  button[type="submit"]:active {
    transform: scale(0.98);
  }

  /* ================= MOBILE ================= */

  @media (max-width: 600px) {
    .reset-container {
      margin: 2rem 1rem;
      padding: 1.3rem;
      border-radius: 10px;
    }

    .reset-container h1 {
      font-size: 1.5rem;
    }

    .reset-container p {
      font-size: 0.95rem;
    }

    input {
      font-size: 0.95rem;
      padding: 0.85rem;
    }

    button[type="submit"] {
      font-size: 0.95rem;
      padding: 0.9rem;
    }
  }

.mini-header {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mini-header .logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);

  cursor: default;
  user-select: none;
}

.mini-header .logo span {
  color: var(--accent);
}
.mini-header .logo {
  text-shadow: 0 0 20px rgba(201, 162, 77, 0.15);
}


    .verify-container {
      max-width: 450px;
      margin: 6rem auto;
      padding: 2rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      text-align: center;
    }

    .verify-container h1 {
      color: var(--accent);
      font-size: 1.7rem;
      margin-bottom: 1rem;
    }

    .verify-container p {
      color: var(--muted);
      margin-bottom: 1.5rem;
    }

    .status {
      margin-top: 1rem;
      font-size: 1rem;
    }

    .success { color: #4caf50; }
    .error { color: #ff5c5c; }

    .btn {
      margin-top: 1.5rem;
      padding: 0.9rem 1.2rem;
      width: 100%;
      border: none;
      border-radius: 10px;
      background: var(--accent);
      color: #000;
      font-weight: bold;
      cursor: pointer;
    }

    .btn:active {
      transform: scale(0.98);
    }

    @media (max-width: 600px) {
      .verify-container {
        margin: 2rem 1rem;
        padding: 1.3rem;
      }

      .verify-container h1 {
        font-size: 1.4rem;
      }
    }

/* ================= GALERIE ================= */

.gallery {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.gallery h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

/* grille responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* item image */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

/* image */
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* hover PC */
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* overlay léger au hover */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.35),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ================= MOBILE ================= */

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .gallery-item img {
    height: 160px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }
}


    .steps {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .step {
      background: var(--card);
      border-left: 4px solid var(--accent);
      padding: 15px;
      border-radius: 8px;
    }


    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }


    .btn {
      display: inline-block;
      margin-top: 20px;
      padding: 12px 18px;
      background: var(--accent);
      color: #0b0f14;
      text-decoration: none;
      border-radius: 10px;
      font-weight: bold;
    }
    h2 {
      font-size: 28px;
      margin-bottom: 25px;
      border-left: 4px solid var(--accent);
      padding-left: 12px;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    .gallery img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      border-radius: 16px;
      border: 1px solid var(--border);
    }

    .card-2 {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 25px;
    }

.card-2 a {
  color: var(--accent);
  text-decoration: underline;
}
    .details-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }

    .detail-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 20px;
    }

    .detail-card h3 {
      margin-top: 0;
      color: var(--muted);
      font-size: 18px;
    }

    ul {
      padding-left: 20px;
    }

    .cta {
      text-align: center;
      padding: 50px 20px;
      background: var(--card);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .btn {
      display: inline-block;
      margin-top: 20px;
      padding: 14px 24px;
      background: var(--accent);
      color: #0f1418;
      text-decoration: none;
      border-radius: 12px;
      font-weight: bold;
      transition: .2s;
    }

    .btn:hover {
      transform: translateY(-2px);
    }
