/* ===== Modern UI for LirFlix ===== */
/* Police moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #0f172a;           
  --panel: #111827;        
  --text: #e5e7eb;         
  --muted: #9ca3af;       
  --accent: #22d3ee;       
  --accent-contrast: #0b1220;
  --ring: rgba(34,211,238,.25);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

body.theme-slate-rose {
  --bg: #0b0f19;
  --panel: #111325;
  --text: #f3f4f6;
  --muted: #a1a1aa;
  --accent: #fb7185;          
  --accent-contrast: #180a0d;
  --ring: rgba(251,113,133,.25);
}

/* Thème 3: Onyx Lime */
body.theme-onyx-lime {
  --bg: #0b0b0c;
  --panel: #141417;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #84cc16;          
  --accent-contrast: #0b0b0c;
  --ring: rgba(132,204,22,.28);
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(90rem 60rem at 10% -10%, rgba(255,255,255,0.03), transparent),
              radial-gradient(60rem 40rem at 110% 10%, rgba(255,255,255,0.03), transparent),
              var(--bg);
  color: var(--text);
}


h1 { text-align: center; margin: 24px 0 10px; font-weight: 700; letter-spacing: .2px; }
a { color: var(--text); text-decoration: none; }

/* ===== Navbar / Filtres ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.15));
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 12px 0;
}
.navbar ul {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; padding: 0 16px; margin: 0;
}
.filter-btn {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  cursor: pointer; font-weight: 600; letter-spacing: .2px;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.filter-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.filter-btn.active {
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 8px 24px var(--ring);
}

.emissions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  padding: 0 20px 28px;
  max-width: 1200px; margin: 0 auto;
}
.card { position: relative; 
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, opacity .2s;
}
.epi-badge{
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #22d3ee;         
  color: #0b1220;              
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  z-index: 2;
}
.card{ 
  position:relative;
  overflow: hidden; 
  margin-bottom: 15px;
}
.badge-top{
  position:absolute; top:10px; left:10px;
  padding:6px 10px; border-radius:999px;
  background:linear-gradient(90deg,#ff7a7a,#ffb36a);
  color:#1a1a1a; font-weight:800; font-size:.85rem;
  box-shadow:0 8px 20px #ff7a7a33;
}
.card-image {
 position:relative;
 display: inline-block;
 }
.card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: none;   
}
.card h2 {
  margin: 10px 8px 4px; font-size: 17px; font-weight: 700;
}
.card p {
  margin: 0 8px 10px; font-size: 13px; color: var(--muted); line-height: 1.45;
  flex-grow: 1; margin-bottom: 20spx;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.card.hide { opacity: 0; transform: scale(.98); pointer-events: none; }

.card:hover, .card h2, .card p { text-decoration: none; }

.card::before {
    content: attr(data-chaine); 
    position:absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    z-index: 3;
}

/* ===== Pages d’émission ===== */
.page {
  max-width: 900px; margin: 28px auto; padding: 22px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.page h1 { margin: 0 0 18px; text-align: left; }

/* Bloc image + texte */
.bloc {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap;
}
.affiche {
  width: 260px;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  border: none;   
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.bloc p {
  flex: 1; font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0;
}

/* Titre de section (liste des épisodes) */
.page h2 {
  text-align: center; font-style: italic; text-decoration: underline;
  margin: 20px 0 14px;
}

/* Liste d’épisodes centrée + boutons modernes */
.page ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.page ul li { margin: 10px 0; }
.page ul li a {
  display: inline-block; padding: 9px 16px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  font-weight: 600;
}
.page ul li a:hover {
  transform: translateY(-2px);
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 10px 28px var(--ring);
}

/* Bouton retour */
.retour { text-align: center; margin-top: 24px; }
.btn-retour {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--panel); color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  font-weight: 700;
}
.btn-retour:hover {
  transform: translateY(-2px);
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 12px 30px var(--ring);
}

.rating {
  display: flex; flex-direction: row-reverse; justify-content: center;
  gap: 6px; font-size: 28px; cursor: pointer; margin: 6px 0 18px;
}
.rating span { color: rgba(255,255,255,.25); transition: color .2s; }
.rating span.active, .rating span:hover, .rating span:hover ~ span { color: #ffd166; }

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
  .emissions { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 0 14px 24px; }
  .card img { height: 140px; }
  .bloc { gap: 14px; }
  .affiche { width: 100%; max-width: 360px; }
  .page h1 { font-size: 22px; }
  .page ul li a, .btn-retour, .filter-btn { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .card h2 { font-size: 16px; }
  .card p { font-size: 12px; }
  .page h1 { font-size: 20px; }
  .page ul li a { font-size: 13px; }
}
/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  background: transparent;
  border-top: none;
  box-shadow: none;
}

.footer p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social svg {
  width: 24px;
  height: 24px;
}

.social:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
/* Formulaire Tally */
.tally-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.tally-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.tally-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 600px) {
.tally-container iframe {
  height: 300px;
}
}
/* Badge "Le plus regardé" / "Tendance" */
.badge-top{
  position:absolute; top:10px; left:10px;
  overflow: hidden;
  padding:6px 12px; border-radius:999px;
  font-weight:800; font-size:.85rem; line-height:1;
  color:#1a1a1a;
  background:linear-gradient(90deg,#ff7a7a,#ffb36a);
  box-shadow:0 8px 20px #ff7a7a33;
  z-index:3;

  /* Effets animés (pulse + glow + léger tilt) */
  animation:badge-pulse 2.2s ease-in-out infinite, badge-glow 3s ease-in-out infinite;
  transform:translateZ(0); will-change: transform, box-shadow;
}

/* Halo brillant autour (lueur douce) */
.badge-top::before{
  content:""; position:absolute; inset:-6px; border-radius:inherit;
  background:radial-gradient(40% 60% at 30% 40%, #ffc6a855, transparent 70%);
  filter:blur(8px); z-index:-1; pointer-events:none;
}

/* Reflet qui traverse (shimmer) */
.badge-top::after{
  content:""; position:absolute;
  inset: 0;
  border-radius: inherit;
  background:linear-gradient(120deg, transparent 45%, rgba (255,255,255,.85) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size:200% 100%;
  transform: translateX(-150%);
  animation:badge-shimmer 4s linear infinite;
  pointer-events:none;
  overflow:hidden
}

/* Animations */
@keyframes badge-pulse{
  0%,100% { transform:translateZ(0) scale(1); }
  50%     { transform:translateZ(0) scale(1.05); }
}
@keyframes badge-glow{
  0%,100% { box-shadow:0 8px 20px #ff7a7a33; }
  50%     { box-shadow:0 10px 26px #ff9b6a55; }
}
@keyframes badge-shimmer{
  0%   { transform:translateX(-120% 0); }
  100% { transform:translateX(120% 0); }
}

/* Thème clair éventuel */
:root[data-theme="light"] .badge-top{
  color:#0d0d0d;
  background:linear-gradient(90deg,#ff9b6a,#ffd36a);
  box-shadow:0 8px 20px #ffb36a33;
}

@media (prefers-reduced-motion: reduce){
  .badge-top,
  .badge-top::after{
    animation: none !important;
  }
}
/* commun */
.badge-top-1, .badge-top-2, .badge-top-3 {
  position:absolute; top:10px; left:10px;
  padding:6px 12px; border-radius:999px;
  font-weight:800; font-size:.85rem; line-height:1;
  color:#fff; z-index:3;
}

/* TOP 1  */
.badge-top-1 {
  background:linear-gradient(90deg,#ff7a7a,#ffb36a);
  animation:badge-pulse 2.2s ease-in-out infinite, badge-glow 3s ease-in-out infinite;
}
.badge-top-1::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(
    120deg,
    transparent 45%,
    rgba(255,255,255,.85) 50%,
    transparent 55%
  );
  background-repeat:no-repeat;
  background-size:200% 100%;
  animation:badge-shimmer 3.5s linear infinite;
  pointer-events:none;
}
@keyframes badge-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.05);}}
@keyframes badge-glow{0%,100%{box-shadow:0 8px 20px #ff7a7a33;}50%{box-shadow:0 10px 26px #ff9b6a55;}}
@keyframes badge-shimmer{0%{background-position:-120% 0;}100%{background-position:120% 0;}}

.badge-nouveau {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffb347, #ff9800); /* dégradé plus doux */
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 10px; /* plus petit pour mobile */
  padding: 2px 8px; /* plus compact */
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap; /* empêche le retour à la ligne */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
  opacity: 0.95;
}


@keyframes shine {
  0% {background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.card   {
  position: relative;
}

/* TOP 2  */
.badge-top-2 {
  background:linear-gradient(90deg,#9a6aff,#c86aff);
  box-shadow:0 8px 20px #9a6aff44;
  position:absolute
}

/* TOP 3  */
.badge-top-3 {
  background:linear-gradient(90deg,#4caf50,#81c784);
  box-shadow:0 8px 20px #4caf5044;
  position: absolute;
}
.badge-top-custom {
position: absolute;
top: 10px;
left: 10px;
padding: 6px 12px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 800;
line-height: 1;
color: #1a1a1a;
background: linear-gradient(90deg, #ff7a7a, #ffb36a);
box-shadow: 0 8px 20px rgba(255, 122, 122, 0.2);
z-index: 3;
animation: badge-pulse 2.2s ease-in-out infinite, badge-glow 3s ease-in-out infinite;
}
.badge-new {
  position:absolute; top:8px; right:8px;
  min-width:22px; height:22px; padding:0 6px;
  border-radius:999px; background:#e63946; color:#fff;
  font-size:12px; font-weight:800; display:flex;
  align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  pointer-events:none; animation:new-pop .45s ease;
}
 
@keyframes new-pop{
  0%{transform:scale(0);opacity:0;}
  60%{transform:scale(1.15);opacity:1;}
  100%{transform:scale(1);}}
.next-ep{
  display: inline-block;
  margin-top:10px;
  font-weight:bold;
  font-size:0.85rem;
  background-color:#00c2ff;
  color: white; 
  padding: 4px 10px;
  border-radius: 9999px;
}
.next-ep .small{ font-weight:600; opacity:.8 }
.ad-banner { 
  display:flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 728px;
}
/* Layout 2 colonnes pour les pages émission */
.two-cols{
  display:flex;
  gap:24px;
  align-items:flex-start;
  max-width:1100px;            
  margin:0 auto;               
  padding:0 16px;
}

.ad-rail{
  width:160px;
  min-width:160px;
  position:sticky;
  top:16px;
}

.episodes-col{
  flex:1;                      
}

@media (max-width: 900px){
  .two-cols{ display:block; }
  .ad-rail{ display:none; }
}
.card .badge-dispo {
  position: absolute;
  z-index: 3;
  bottom: 134px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e63946;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
  animation: dispoPop 1s ease-in-out infinite; 
}
@keyframes dispoPop {
  0% { transform: translateX(-50%) scale(1); opacity: .95; }
  50% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: .95; }
  }
.badge-dispo {
  display: none !important;
  }
.telegram-banner {
  background-color: red;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  margin: 30px auto; 
  width: 100%;
  display: flex;
  justify-content: center;/* espace au-dessus */
}
.telegram-banner a {
  color: white;
  text-decoration: none;
  max-width: 1200px;
  display: block;
}

.telegram-banner a:hover {
  text-decoration: underline;
}
.sv-btn{
  appearance:none; border:0; border-radius:12px; padding:14px 16px;
  font-weight:700; cursor:pointer; width:100%;
  background:#22d3ee; color:#0f172a;
  transition:transform .12s ease, box-shadow .12s ease, background .2s ease;
  box-shadow:0 6px 16px rgba(34,211,238,.25);
}
.sv-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(34,211,238,.28); }
.sv-btn:active{ transform:translateY(0); box-shadow:0 4px 12px rgba(34,211,238,.22); }

@media (max-width: 768px) {
  /* 2 cartes fixes par ligne */
  .emissions {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 0 10px 20px;
    max-width: 100%;
  }

  /* cartes fluides + vignettes */
  .card img {
    width: 100%;
    height: auto;            /* évite les déformations */
    aspect-ratio: 16/9;      /* garde un ratio propre */
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
  }

  /* petits ajustements de typo */
  .card h2 { font-size: 16px; }
  .card p  { font-size: 12px; }
}
@media (max-width: 768px) {
  html, body { height: auto; }
  body {
    min-height: 100svh;      /* viewport réel mobile */
    display: flex;
    flex-direction: column;
  }
  main { flex: 1; }
}
@supports (height: 100dvh) {
  @media (max-width: 768px) {
    body { min-height: 100dvh; }
  }
}

#go-latest {
  display: inline-block; /* caché par défaut sur PC */
  background: linear-gradient(90deg, #4caf50, #81c784);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px; /* pastille arrondie */
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
  cursor: pointer;
  margin: 16px auto 0;
  width: fit-content;
  transition: all 0.25s ease;
  animation: pulse-green 2.5s ease-in-out infinite;
}

#go-latest:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.45);
}

/* Animation légère */
@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 10px 24px rgba(129, 199, 132, 0.45); }
}

/* Visible uniquement sur téléphone */
@media (min-width: 1024px) {
  .ep-toolbar {
    display: none !important;
  }

  #go-lastest { display: inline-block;}
}

.ep-toolbar {
  display: flex;
justify-content: center;
margin: 12px 0 16px; 
}

a.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}
.report-container {
  text-align: center;      /* centre horizontalement */
  margin-top: 12px;        /* petit espace au-dessus */
  margin-bottom: 10px;     /* espace avant le bouton “Émission terminée” */
}

.btn-report {
  background-color: #ffb347; /* orange clair */
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-report:hover {
  background-color: #ff9800;
  transform: scale(1.05);
}
/* === POPUP LIRFLIX === */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #0f172a;
  color: #fff;
  border-radius: 15px;
  max-width: 360px;
  padding: 22px 20px;
  text-align: center;
  border: 1px solid rgba(0,255,255,0.3);
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
  animation: fadeInUp 0.4s ease;
}

.popup-content.glow {
  box-shadow: 0 0 25px rgba(0,255,255,0.5), 0 0 50px rgba(0,255,255,0.3);
  animation: neonPulse 2.5s infinite ease-in-out;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.popup-logo {
  font-size: 1.6em;
}

.popup-content h3 {
  margin: 0;
  color: #00eaff;
  font-weight: 600;
  text-shadow: 0 0 10px #00eaff;
}

.popup-content a {
  color: #00eaff;
  font-weight: 600;
  text-decoration: underline;
}

.popup-content a:hover {
  color: #5efcff;
}

.popup-content button {
  margin-top: 18px;
  background: linear-gradient(90deg, #ff4d4d, #ff9900);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,255,128,0.4);
}

.popup-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,128,0.6);
}

/* 🔹 Animations */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(0,255,255,0.5), 0 0 50px rgba(0,255,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(0,255,255,0.8), 0 0 80px rgba(0,255,255,0.4); }
}
/* 1) Make footer stick to bottom only when content is short */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full height */
}

/* main content area (change .page ou .content selon ton html) */
.page {
  flex: 1 0 auto;
}

footer {
  margin-top: 0;
  margin-top: auto;
}

/* 2) clearfix pour les éléments flottants */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
.card.finale {
    border: 2px solid #ff2b2b;       /* rouge vif */
    border-radius: 14px;
    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.6),   /* halo proche */
        0 0 16px rgba(255, 0, 0, 0.4),  /* halo moyen */
        0 0 28px rgba(255, 0, 0, 0.25); /* halo large */
    transition: .2s ease-in-out;
}
.badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff2b2b;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 50, 50, 0.6);
}
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.show-image {
  display: block;
  width: 100%;
  border-radius: 10px;
}
/* Conteneur de l'image */
.image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/* Image de la carte */
.image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Badge BIENTÔT SUPPRIMÉ */
.badge-soon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: red;
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 11px;
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  opacity: 0.95;
}

.badge-bottom {
  background: linear-gradient(to top, red 80%, rgba(255, 0, 0, 0.6));
}
.badge-nouveau,
.badge-soon {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.6);
  }
}
.badge-soon {
  animation: pulseGlowRed 2s infinite;
}

@keyframes pulseGlowRed {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  }
}
/* Par défaut : vue mobile */
.ad-rail {
  display: none; /* pas de pub colonne */
}

.ad-mobile-bottom {
  display: block;
  text-align: center;
  margin: 20px 0;
}

/* Écrans larges (PC) */
@media (min-width: 769px) {
  .ad-rail {
    display: block;      /* pub verticale à gauche */
  }

  .ad-mobile-bottom {
    display: none;       /* pas de pub sous Accueil sur PC */
  }
}
/* --- LAYOUT DES DEUX COLONNES --- */
.page.two-cols {
  display: flex;
  gap: 24px;
}

/* COLONNE PUB PC */
.ad-rail {
  width: 160px;
  flex-shrink: 0;
}

/* COLONNE CONTENU */
.episodes-col {
  flex: 1;
}

/* PUB MOBILE : masquée par défaut sur PC */
.ad-mobile-bottom {
  display: none;
  text-align: center;
  margin-top: 16px;
}

/* --- VERSION MOBILE --- */
@media (max-width: 768px) {
  .page.two-cols {
    flex-direction: column;      /* contenu + pub en colonne */
  }

  .ad-rail {
    display: none;               /* cache la pub verticale */
  }

  .ad-mobile-bottom {
    display: block;              /* affiche la bannière 320x50 */
  }
}
/* Sur mobile : on cache la pub de gauche */
@media (max-width: 768px) {
  .ad-rail {
    display: none !important;
  }
}
/* Recentre la colonne des épisodes sur mobile */
@media screen and (max-width: 768px) {
  .two-cols {
    flex-direction: column !important;
    align-items: center !important;
  }

  .episodes-col {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box;
  }

  .episodes-list {
    margin: 0 auto !important;
    padding: 0;
    text-align: center;
  }

  .episodes-list li a {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
/* MOBILE — Cache la pub PC */
@media screen and (max-width: 768px) {
  .ad-rail {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Recentre la colonne des épisodes */
  .two-cols {
    flex-direction: column !important;
    align-items: center !important;
  }

  .episodes-col {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box;
  }

  .episodes-list {
    margin: 0 auto !important;
    text-align: center;
  }

  .episodes-list li a {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
body {
  overflow-x: hidden;
  }
.ad-container {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
.legal-notice {
max-width: 900px;
margin: 0 auto 2rem auto;
padding: 1.2rem 1.5rem;
border-radius: 14px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #e4e7f5;
font-size: 0.9rem;
line-height: 1.5;
text-align: center;
}

.legal-notice p {
margin: 0;
}
.footer-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #e4e7f5;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Colonne gauche */
.footer-left h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: #e4e7f5;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.footer-social img {
  width: 24px;
  height: 24px;
}

.footer-social:hover {
  opacity: 0.75;
}

/* Colonne droite */
.footer-right {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive mobile */
@media (max-width: 700px) {
  .footer-split {
    flex-direction: column;
  }

  .footer-right {
    width: 100%;
    max-width: none;
  }
}
.footer-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #e4e7f5;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 200, 255, 0.2);
}

/* COLONNE GAUCHE */
.footer-left h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #00c8ff; /* bleu Lirflix */
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: #d1e8ff;
  font-size: 1rem;
  transition: 0.25s;
}

.footer-social img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(71%) sepia(52%) saturate(7484%) hue-rotate(169deg) brightness(102%) contrast(101%);
}

.footer-social:hover {
  color: #00c8ff;
  transform: translateX(4px);
}

/* COLONNE DROITE */
.footer-right {
  background: rgba(0, 200, 255, 0.06); /* fond bleu très léger */
  border: 1px solid rgba(0, 200, 255, 0.25);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d3eaff;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .footer-split {
    flex-direction: column;
    text-align: left;
  }

  .footer-right {
    width: 100%;
    max-width: none;
  }
}
/* CENTRER LE FOOTER SUR MOBILE */
@media screen and (max-width: 768px) {
    .footer-split {
        display: flex;
        flex-direction: column;
        align-items: center;      /* CENTRE TOUT HORIZONTALEMENT */
        text-align: center;       /* CENTRE LE TEXTE */
        gap: 20px;                /* ESPACE ENTRE GAUCHE & DROITE */
    }

    .footer-left,
    .footer-right {
        width: 100%;              /* PREND LA LARGEUR POUR BIEN CENTRER */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}
.alert-banner {
    background: #b91c1c; /* Rouge sombre */
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.4);
    border: 1px solid #7f1d1d;
}
.alert-banner {
    animation: pop 0.25s ease-out;
}

@keyframes pop {
    0% { transform: scale(.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* Popup d'information */
.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.alert-box {
    background: #111827;
    padding: 26px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    color: white;
    border: 1px solid #22d3ee;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    animation: popup .25s ease-out;
}

.alert-btn {
    margin-top: 18px;
    padding: 10px 18px;
    background: #22d3ee;
    color: black;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

@keyframes popup {
    0% { transform: scale(.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* ---- BONNET DE NOËL SUR LES CARDS ---- */
.card {
    position: relative;
}

.card::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background-image: url("images/santa.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* le bonnet ne bloque pas les clics */
}

/* ---- FLOCONS DE NEIGE ---- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("images/flocons.png"); /* flocons transparents */
    animation: snow 12s linear infinite;
    opacity: 0.25; /* léger */
}

@keyframes snow {
    from { background-position: 0 -1000px; }
    to   { background-position: 0 1000px; }
}
.candy-title {
    font-weight: 900;
    font-size: 26px;
    background: repeating-linear-gradient(
        45deg,
        #ff6b6b 0 12px,
        #ffffff 12px 24px,
        #ff9b9b 24px 36px,
        #ffffff 36px 48px
    );
    -webkit-background-clip: text;
    color: transparent;
}
.candy-text {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: repeating-linear-gradient(
        -45deg,
        #ffffff 0,
        #ffffff 8px,
        #d60000 8px,
        #d60000 16px
    );
    -webkit-background-clip: text;
    color: transparent;
}
.header-xmas {
  display: flex;
  justify-content: center;
  padding: 14px 24px;
  background: #111827;
  border-bottom: 2px solid #22d3ee;
}

.logo-xmas {
  height: 48px;        /* ajuste ici si trop grand */
  object-fit: contain;
  margin-top: 4px;
}
.logo-xmas {
  height: 40px;              /* taille réelle utilisée par le header */
  object-fit: contain;
  margin-top: 4px;

  transform: scale(5.2);     /* ← augmente la taille visuelle */
  transform-origin: center;  /* centre l’agrandissement */
}
.logo-xmas {
  filter: drop-shadow(0 3px 6px rgba(255,255,255,0.25));
}
.logo {
  width: 240px;         /* taille fixe propre */
  height: auto;
  image-rendering: -webkit-optimize-contrast; /* meilleur rendu iPhone */
  image-rendering: crisp-edges;
}
/* Header fixe, propre, ne bouge plus */
.header {
    height: 120px;           /* ← ajuste si tu veux plus petit/grand */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111827;
    border-bottom: 2px solid #22d3ee;
    overflow: hidden;       /* ← ESSENTIEL, empêche le header de s'agrandir */
}

/* Logo HD qui s'adapte */
.logo {
    height: 180px;           /* ← taille réelle affichée */
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast; /* fix iPhone flou */
    image-rendering: crisp-edges;
}
/* FORCE LE HEADER À RESTER FIXE */
header {
    height: 120px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;  /* empêche le logo de sortir */
}

/* LOGO NOËL */
header img#logo-noel {
    height: 200px !important;   /* taille réelle du logo */
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}
header {
    padding: 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}