/*
Theme Name: LougaTV Pro
Theme URI: https://lougatv.sn
Author: LougaTV
Description: Thème LougaTV Pro – Édition élégante, compatible Elementor & Divi, lecteur Bradmax (HLS), auto-embed Facebook (vidéos/reels/watch) + YouTube dans les articles
Version: 5.1.0
License: GNU General Public License v2 or later
Text Domain: lougatv-pro
Tags: elementor, divi, television, video, news, senegal
*/

/* ================================================
   VARIABLES CSS — palette « Bissap & Sahel »
   Rouge bissap profond, or sable, fond chaleureux
================================================ */
:root {
  --ltv-rouge:      #B8132E;
  --ltv-rouge-h:    #8E0F24;
  --ltv-rouge-soft: rgba(184,19,46,0.16);
  --ltv-or:         #D9A441;
  --ltv-or-soft:    rgba(217,164,65,0.16);
  --ltv-noir:       #15110D;
  --ltv-sombre:     #1C1712;
  --ltv-gris:       #241E17;
  --ltv-carte:      #271F17;
  --ltv-bordure:    #3A2F23;
  --ltv-texte:      #DCD5C8;
  --ltv-muted:      #9C9183;
  --ltv-blanc:      #F8F4EC;

  --ltv-font-display: 'Playfair Display', 'Georgia', serif;
  --ltv-font-h:        'Inter', 'Arial', sans-serif;
  --ltv-font-b:         'Inter', 'Arial', sans-serif;

  --ltv-radius:    10px;
  --ltv-radius-l:  18px;
  --ltv-shadow:    0 8px 28px rgba(0,0,0,0.45);
  --ltv-shadow-h:  0 20px 52px rgba(0,0,0,0.55);

  /* Motif signature : ondes de diffusion, en arrière-plan discret */
  --ltv-ondes: radial-gradient(circle at 0% 50%, transparent 0, transparent 18px, rgba(217,164,65,0.05) 19px, rgba(217,164,65,0.05) 20px, transparent 21px),
               radial-gradient(circle at 0% 50%, transparent 0, transparent 38px, rgba(217,164,65,0.04) 39px, rgba(217,164,65,0.04) 40px, transparent 41px),
               radial-gradient(circle at 0% 50%, transparent 0, transparent 58px, rgba(217,164,65,0.03) 59px, rgba(217,164,65,0.03) 60px, transparent 61px);
}

/* ================================================
   RESET BASE
================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--ltv-font-b);
  background: var(--ltv-noir);
  color: var(--ltv-texte);
  margin: 0; padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Reset Elementor / Divi */
.elementor-section, .et_pb_section { background-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1,h2,h3,h4,h5,h6 { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ltv-or); outline-offset: 2px; border-radius: 4px;
}

/* ================================================
   TOPBAR
================================================ */
.ltv-topbar {
  background: linear-gradient(95deg, var(--ltv-rouge-h) 0%, var(--ltv-rouge) 55%, var(--ltv-rouge-h) 100%);
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
  z-index: 9999;
  position: relative;
}
.ltv-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ltv-ticker-zone { flex: 1; overflow: hidden; }
.ltv-ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ltv-ticker 40s linear infinite;
  font-family: var(--ltv-font-h);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ltv-blanc);
  letter-spacing: 0.3px;
}
@keyframes ltv-ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}
.ltv-topbar-date {
  font-size: 11.5px;
  font-family: var(--ltv-font-h);
  font-weight: 500;
  color: rgba(248,244,236,0.85);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* ================================================
   HEADER
================================================ */
.ltv-header {
  background: var(--ltv-sombre);
  background-image: var(--ltv-ondes);
  border-bottom: 1px solid var(--ltv-bordure);
  box-shadow: 0 1px 0 var(--ltv-rouge);
  position: sticky;
  top: 0;
  z-index: 9998;
  width: 100%;
  transition: box-shadow 0.3s;
}
.ltv-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

/* Logo */
.ltv-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.ltv-logo-icone {
  width: 44px; height: 44px;
  background: linear-gradient(145deg, var(--ltv-rouge) 0%, var(--ltv-rouge-h) 100%);
  border-radius: var(--ltv-radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 4px 14px rgba(184,19,46,0.35);
}
.ltv-logo-icone img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--ltv-radius); }
.ltv-logo-icone-img {
  width: auto; height: 52px; background: none; box-shadow: none; border-radius: 0;
}
.ltv-logo-icone-img img {
  width: auto; height: 52px; max-width: 220px; object-fit: contain; border-radius: 0;
}
.ltv-logo-icone span {
  font-family: var(--ltv-font-display);
  font-weight: 700; font-size: 16px;
  color: var(--ltv-blanc);
  text-align: center; line-height: 1.2;
}
.ltv-logo-nom {
  font-family: var(--ltv-font-display);
  font-weight: 600; font-size: 25px;
  color: var(--ltv-blanc);
  letter-spacing: 0.2px;
}
.ltv-logo-nom em { color: var(--ltv-or); font-style: italic; }

/* Navigation */
.ltv-nav { flex: 1; }
.ltv-nav ul { display: flex; gap: 2px; flex-wrap: wrap; }
.ltv-nav a {
  display: block;
  padding: 9px 15px;
  font-family: var(--ltv-font-h);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ltv-texte);
  border-radius: var(--ltv-radius);
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s;
}
.ltv-nav a:hover { background: rgba(217,164,65,0.1); color: var(--ltv-or); }
.ltv-nav .current-menu-item > a,
.ltv-nav .current_page_item > a { background: var(--ltv-rouge-soft); color: var(--ltv-or); }

/* Bouton DIRECT */
.ltv-btn-direct {
  background: linear-gradient(135deg, var(--ltv-rouge) 0%, var(--ltv-rouge-h) 100%);
  color: var(--ltv-blanc) !important;
  font-family: var(--ltv-font-h);
  font-weight: 600; font-size: 12.5px;
  padding: 10px 20px;
  border-radius: var(--ltv-radius);
  display: inline-flex; align-items: center; gap: 9px;
  letter-spacing: 1.2px;
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(184,19,46,0.4);
}
.ltv-btn-direct:hover { box-shadow: 0 6px 22px rgba(184,19,46,0.55); transform: translateY(-1px); }
.ltv-point-live {
  width: 8px; height: 8px;
  background: var(--ltv-blanc);
  border-radius: 50%;
  animation: ltv-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ltv-pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* Hamburger */
.ltv-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}
.ltv-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ltv-blanc);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.ltv-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ltv-toggle.open span:nth-child(2) { opacity: 0; }
.ltv-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   PLAYER HERO
================================================ */
.ltv-hero { background: #000; width: 100%; }
.ltv-hero-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 500px;
}
.ltv-player-wrap { position: relative; background: #000; }
.ltv-player-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.ltv-player-ratio iframe,
.ltv-player-ratio video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; display: block;
}
.ltv-badge-live {
  position: absolute; top: 16px; left: 16px;
  background: var(--ltv-rouge); color: var(--ltv-blanc);
  font-family: var(--ltv-font-h); font-weight: 600; font-size: 10.5px;
  padding: 6px 14px; border-radius: 20px;
  letter-spacing: 2px; display: flex; align-items: center; gap: 7px;
  z-index: 5; pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.ltv-player-info {
  background: var(--ltv-gris);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--ltv-bordure);
}
.ltv-emission-label {
  font-size: 10px; font-family: var(--ltv-font-h); font-weight: 600;
  color: var(--ltv-or); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 4px;
}
.ltv-emission-nom {
  font-family: var(--ltv-font-display); font-size: 18px;
  color: var(--ltv-blanc); font-weight: 600;
}
.ltv-heure { font-family: var(--ltv-font-h); font-size: 18px; font-weight: 600; color: var(--ltv-blanc); }

/* Sidebar playlist / programme */
.ltv-sidebar {
  background: var(--ltv-sombre);
  border-left: 1px solid var(--ltv-bordure);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ltv-sidebar-titre {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ltv-bordure);
  font-family: var(--ltv-font-h); font-size: 11px; font-weight: 600;
  color: var(--ltv-blanc); letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
}
.ltv-sidebar-titre::before {
  content: ''; width: 4px; height: 14px;
  background: var(--ltv-or); border-radius: 2px; display: block;
}
.ltv-affiche-jour {
  display: block; width: 100%; height: 220px;
  background: var(--ltv-carte); border-bottom: 1px solid var(--ltv-bordure);
  overflow: hidden; flex-shrink: 0;
}
.ltv-affiche-jour img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ltv-affiche-jour-vide {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 140px; padding: 20px; border: 1px dashed var(--ltv-bordure); border-bottom: 1px solid var(--ltv-bordure);
}
.ltv-affiche-jour-vide span {
  font-family: var(--ltv-font-h); font-size: 12px; color: var(--ltv-muted);
}
.ltv-playlist { overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--ltv-bordure) transparent; }
.ltv-playlist::-webkit-scrollbar { width: 3px; }
.ltv-playlist::-webkit-scrollbar-thumb { background: var(--ltv-bordure); }
.ltv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s;
}
.ltv-item:hover { background: var(--ltv-gris); }
.ltv-item.actif { background: var(--ltv-rouge-soft); border-left: 3px solid var(--ltv-rouge); }
.ltv-item-thumb {
  width: 56px; height: 40px; border-radius: 6px;
  background: var(--ltv-carte); flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.ltv-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ltv-item-info { flex: 1; min-width: 0; }
.ltv-item-titre {
  font-size: 12.5px; font-weight: 600; color: var(--ltv-blanc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
  font-family: var(--ltv-font-h);
}
.ltv-item-meta { font-size: 10.5px; color: var(--ltv-muted); display: flex; gap: 6px; }
.ltv-item-duree { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 3px; }

/* ================================================
   PROGRAMME BAR
================================================ */
.ltv-programme {
  background: var(--ltv-sombre);
  border-top: 1px solid var(--ltv-bordure);
  border-bottom: 1px solid var(--ltv-bordure);
}
.ltv-programme-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: stretch;
}
.ltv-prog-label {
  background: var(--ltv-rouge); color: var(--ltv-blanc);
  font-family: var(--ltv-font-h); font-weight: 600; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 18px; display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.ltv-prog-scroll {
  flex: 1; overflow-x: auto; display: flex;
  scrollbar-width: none;
}
.ltv-prog-scroll::-webkit-scrollbar { display: none; }
.ltv-prog-slot {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-right: 1px solid var(--ltv-bordure);
  white-space: nowrap; flex-shrink: 0; cursor: pointer;
  transition: background 0.15s;
}
.ltv-prog-slot:hover { background: var(--ltv-gris); }
.ltv-prog-slot.en-cours { background: var(--ltv-rouge-soft); }
.ltv-prog-heure { font-family: var(--ltv-font-h); font-size: 12px; font-weight: 600; color: var(--ltv-or); }
.ltv-prog-nom { font-size: 12.5px; color: var(--ltv-blanc); font-weight: 500; font-family: var(--ltv-font-b); }
.ltv-prog-badge {
  background: var(--ltv-rouge); color: var(--ltv-blanc);
  font-size: 9px; font-family: var(--ltv-font-h); font-weight: 600;
  padding: 2px 8px; border-radius: 3px; letter-spacing: 1px;
}

/* ================================================
   SECTIONS GÉNÉRIQUES
================================================ */
.ltv-section { padding: 64px 0; }
.ltv-section-alt { background: var(--ltv-sombre); }
.ltv-contenu { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.ltv-titre-section {
  display: flex; align-items: center; gap: 16px; margin-bottom: 36px;
}
.ltv-titre-section::before {
  content: ''; width: 5px; height: 30px;
  background: linear-gradient(180deg, var(--ltv-or), var(--ltv-rouge)); border-radius: 3px; flex-shrink: 0;
}
.ltv-titre-section h2 {
  font-family: var(--ltv-font-display); font-weight: 600; font-size: 27px;
  color: var(--ltv-blanc); letter-spacing: 0.2px;
  margin: 0;
}
.ltv-voir-plus {
  margin-left: auto; font-family: var(--ltv-font-h);
  font-size: 11px; font-weight: 600;
  color: var(--ltv-or); letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.2s;
}
.ltv-voir-plus:hover { color: var(--ltv-blanc); }

/* ================================================
   CARTES ANIMATEURS
================================================ */
.ltv-animateurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ltv-anim-card {
  position: relative; border-radius: var(--ltv-radius-l);
  overflow: hidden; background: var(--ltv-carte);
  cursor: pointer; aspect-ratio: 3/4;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
  border: 1px solid var(--ltv-bordure);
}
.ltv-anim-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,0.45); border-color: var(--ltv-or); }
.ltv-anim-card.vedette { grid-column: span 2; aspect-ratio: unset; min-height: 480px; }
.ltv-anim-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.45s; }
.ltv-anim-card:hover .ltv-anim-photo { transform: scale(1.04); }
.ltv-anim-initiale {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--ltv-font-display); font-weight: 600; font-size: 58px;
  color: var(--ltv-or); background: var(--ltv-gris);
}
.ltv-anim-card.vedette .ltv-anim-initiale { font-size: 100px; }
.ltv-anim-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(10,8,6,0.6) 55%, rgba(10,8,6,0.97) 100%);
  pointer-events: none;
}
.ltv-anim-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ltv-rouge); color: var(--ltv-blanc);
  font-family: var(--ltv-font-h); font-size: 9px; font-weight: 600;
  padding: 5px 11px; border-radius: 20px; letter-spacing: 1.5px; text-transform: uppercase; z-index: 2;
}
.ltv-anim-badge.or { background: var(--ltv-or); color: #241405; }
.ltv-anim-badge-static {
  position: static; display: inline-flex; align-items: center;
  background: var(--ltv-rouge); color: var(--ltv-blanc);
  font-family: var(--ltv-font-h); font-size: 10px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.ltv-anim-badge-static.or { background: var(--ltv-or); color: #241405; }
.ltv-anim-infos { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px; z-index: 2; }
.ltv-anim-nom {
  font-family: var(--ltv-font-display); font-weight: 600; font-size: 19px;
  color: var(--ltv-blanc); line-height: 1.2; margin-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.ltv-anim-card.vedette .ltv-anim-nom { font-size: 30px; margin-bottom: 7px; }
.ltv-anim-role {
  font-size: 11px; color: var(--ltv-or);
  font-family: var(--ltv-font-h); font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px;
}
.ltv-anim-emission { font-size: 12.5px; color: rgba(248,244,236,0.65); margin-bottom: 11px; }
.ltv-anim-reseaux { display: flex; gap: 8px; }
.ltv-btn-reseau {
  width: 29px; height: 29px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--ltv-blanc); font-size: 11px; font-weight: 600;
  font-family: var(--ltv-font-h); text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.ltv-btn-reseau:hover { background: var(--ltv-rouge); border-color: var(--ltv-rouge); }

/* ================================================
   CARTES VIDEOS
================================================ */
.ltv-videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ltv-video-card {
  background: var(--ltv-carte); border-radius: var(--ltv-radius-l);
  overflow: hidden; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid var(--ltv-bordure);
}
.ltv-video-card:hover { transform: translateY(-4px); box-shadow: var(--ltv-shadow-h); border-color: var(--ltv-or); }
.ltv-video-thumb {
  position: relative; aspect-ratio: 16/9;
  background: var(--ltv-gris); overflow: hidden;
}
.ltv-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.ltv-video-card:hover .ltv-video-thumb img { transform: scale(1.05); }
.ltv-video-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ltv-gris); gap: 8px;
}
.ltv-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,8,6,0.42); opacity: 0; transition: opacity 0.2s;
}
.ltv-video-card:hover .ltv-play-overlay { opacity: 1; }
.ltv-play-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ltv-rouge);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 9px rgba(184,19,46,0.22);
  transition: transform 0.2s;
}
.ltv-video-card:hover .ltv-play-icon { transform: scale(1.1); }
.ltv-video-duree {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,8,6,0.85); color: var(--ltv-blanc);
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 3px;
}
.ltv-video-corps { padding: 16px; }
.ltv-video-cat {
  --cat: var(--ltv-rouge); --cat-bg: var(--ltv-rouge-soft); --cat-border: rgba(184,19,46,0.35);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-family: var(--ltv-font-h); font-weight: 600;
  color: var(--cat); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px;
  background: var(--cat-bg); border: 1px solid var(--cat-border);
  padding: 4px 11px 4px 8px; border-radius: 20px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.ltv-cat-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--cat); box-shadow: 0 0 6px var(--cat);
  transition: background 0.25s, box-shadow 0.25s;
}
.ltv-video-card:hover .ltv-video-cat, .ltv-news-card:hover .ltv-news-cat {
  background: var(--cat); color: var(--ltv-blanc); transform: translateY(-1px);
}
.ltv-video-card:hover .ltv-cat-dot, .ltv-news-card:hover .ltv-cat-dot {
  background: var(--ltv-blanc); box-shadow: none;
}
.ltv-video-titre {
  font-family: var(--ltv-font-h); font-weight: 600; font-size: 13.5px;
  color: var(--ltv-blanc); line-height: 1.45; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ltv-video-date { font-size: 11px; color: var(--ltv-muted); }

/* Badges source vidéo */
.ltv-source-badge {
  position: absolute; top: 9px; left: 9px;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  color: white; font-family: var(--ltv-font-h);
  border: none; display: flex; align-items: center; gap: 3px;
}
.ltv-fb-badge { background: #1877F2; }
.ltv-yt-badge { background: #D8302A; }

/* ================================================
   MODAL VIDÉO
================================================ */
.ltv-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,8,6,0.95);
  z-index: 99999;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: ltv-fade-in 0.2s ease;
}
.ltv-modal.visible { display: flex; }
@keyframes ltv-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ltv-modal-inner {
  position: relative;
  width: 100%; max-width: 960px;
  background: #000;
  border-radius: var(--ltv-radius-l);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
  animation: ltv-slide-up 0.25s ease;
}
@keyframes ltv-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ltv-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.15);
  color: white; border: none;
  width: 38px; height: 38px;
  border-radius: 50%; font-size: 16px;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ltv-modal-close:hover { background: var(--ltv-rouge); }
.ltv-modal-titre {
  padding: 14px 56px 14px 20px;
  font-family: var(--ltv-font-h); font-size: 14px; font-weight: 600;
  color: var(--ltv-blanc); background: var(--ltv-gris);
  border-bottom: 1px solid var(--ltv-bordure);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ltv-modal-player { position: relative; padding-top: 56.25%; }
.ltv-modal-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
/* Mode auto : la vidéo Facebook garde son format réel (portrait, carré, paysage) au lieu d'être forcée en 16:9 */
.ltv-modal-player.is-auto {
  padding-top: 0; min-height: 200px; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: auto;
}
.ltv-modal-player.is-auto .fb-video,
.ltv-modal-player.is-auto .fb-video span,
.ltv-modal-player.is-auto iframe {
  position: static !important;
  max-width: 100%; max-height: 85vh;
}
/* Lien de secours Facebook — toujours visible par-dessus l'iframe */
.ltv-fb-fallback-link {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: #1877F2; color: var(--ltv-blanc); text-decoration: none;
  font-family: var(--ltv-font-h); font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
}
.ltv-fb-fallback-link:hover { background: #0e5bc4; transform: translateY(-1px); }

/* ================================================
   CARTES NEWS
================================================ */
.ltv-news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; align-items: start; }
.ltv-news-card {
  display: block;
  background: var(--ltv-carte); border-radius: var(--ltv-radius-l);
  overflow: hidden; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 1px solid var(--ltv-bordure);
}
.ltv-news-card:hover { transform: translateY(-4px); box-shadow: var(--ltv-shadow-h); border-color: var(--ltv-or); }
.ltv-news-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ltv-gris); display: block; }
.ltv-news-placeholder {
  width: 100%; aspect-ratio: 16/9; background: var(--ltv-gris);
  display: flex; align-items: center; justify-content: center;
}
.ltv-news-corps { padding: 18px; }
.ltv-news-cat {
  --cat: var(--ltv-rouge); --cat-bg: var(--ltv-rouge-soft); --cat-border: rgba(184,19,46,0.35);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ltv-font-h); font-size: 10px; font-weight: 600;
  color: var(--cat); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 11px;
  background: var(--cat-bg); border: 1px solid var(--cat-border);
  padding: 4px 11px 4px 8px; border-radius: 20px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.ltv-news-titre {
  font-family: var(--ltv-font-h); font-weight: 600; font-size: 14.5px;
  color: var(--ltv-blanc); line-height: 1.45; margin-bottom: 11px;
}
.ltv-news-card:first-child .ltv-news-titre { font-family: var(--ltv-font-display); font-weight: 600; font-size: 20px; }
.ltv-news-meta { font-size: 11px; color: var(--ltv-muted); }

/* ================================================
   ARTICLE SINGLE — page actualité individuelle
================================================ */
.ltv-single-head { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.ltv-single-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ltv-font-h); font-size: 11px; font-weight: 600;
  color: var(--ltv-muted); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px; transition: color 0.2s;
}
.ltv-single-back:hover { color: var(--ltv-or); }
.ltv-single-titre {
  font-family: var(--ltv-font-display); font-weight: 600; font-size: 34px;
  color: var(--ltv-blanc); line-height: 1.25; margin: 14px 0 18px;
}
.ltv-single-meta {
  font-size: 13px; color: var(--ltv-muted);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 26px; border-bottom: 1px solid var(--ltv-bordure); margin-bottom: 30px;
}
.ltv-single-meta .ltv-meta-sep { opacity: 0.5; }

.ltv-single-hero { max-width: 760px; margin: 0 auto 36px; padding: 0 20px; }
.ltv-single-hero img {
  width: 100%; max-height: 420px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--ltv-radius); border: 1px solid var(--ltv-bordure);
}

.ltv-single-body { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; }
.ltv-single-content { color: var(--ltv-texte); font-size: 17px; line-height: 1.85; }
.ltv-single-content p { margin: 0 0 22px; }
.ltv-single-content h2 { font-family: var(--ltv-font-display); color: var(--ltv-blanc); font-size: 26px; font-weight: 600; margin: 38px 0 16px; }
.ltv-single-content h3 { font-family: var(--ltv-font-h); color: var(--ltv-blanc); font-size: 19px; font-weight: 600; margin: 28px 0 14px; }
.ltv-single-content a { color: var(--ltv-or); text-decoration: underline; text-decoration-color: rgba(217,164,65,0.4); }
.ltv-single-content a:hover { color: var(--ltv-blanc); }
.ltv-single-content img { width: 100%; border-radius: var(--ltv-radius); margin: 8px 0 24px; }
.ltv-single-content blockquote {
  border-left: 3px solid var(--ltv-or); margin: 28px 0; padding: 4px 0 4px 22px;
  font-family: var(--ltv-font-display); font-style: italic; color: var(--ltv-blanc); font-size: 19px;
}
.ltv-single-content ul, .ltv-single-content ol { margin: 0 0 22px; padding-left: 22px; }
.ltv-single-content li { margin-bottom: 8px; list-style: revert; color: var(--ltv-texte); }

.ltv-single-share {
  display: flex; align-items: center; gap: 10px; margin-top: 42px;
  padding-top: 30px; border-top: 1px solid var(--ltv-bordure);
}
.ltv-single-share span {
  font-size: 12px; color: var(--ltv-muted); font-family: var(--ltv-font-h);
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-right: 6px;
}
.ltv-share-btn {
  width: 35px; height: 35px; border-radius: 50%;
  background: var(--ltv-carte); border: 1px solid var(--ltv-bordure);
  display: flex; align-items: center; justify-content: center;
  color: var(--ltv-texte); font-size: 13px; font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ltv-share-btn:hover { background: var(--ltv-rouge); border-color: var(--ltv-rouge); color: var(--ltv-blanc); }

.ltv-single-related { margin-top: 0; }

/* Commentaires WordPress (gabarit par défaut) sur fond sombre */
#comments, .comments-area { max-width: 760px; margin: 0 auto; color: var(--ltv-texte); }
#comments .comment-reply-title, #comments h2, #comments h3 { font-family: var(--ltv-font-display); color: var(--ltv-blanc); }
#comments .comment-list { list-style: none; padding: 0; }
#comments textarea, #comments input[type="text"], #comments input[type="email"], #comments input[type="url"] {
  width: 100%; background: var(--ltv-carte); border: 1px solid var(--ltv-bordure);
  border-radius: var(--ltv-radius); color: var(--ltv-texte); padding: 10px 12px; font-size: 14px;
  font-family: var(--ltv-font-b);
}
#comments .submit, #comments input[type="submit"] {
  background: var(--ltv-rouge); color: var(--ltv-blanc); border: none;
  border-radius: var(--ltv-radius); padding: 11px 22px; font-family: var(--ltv-font-h);
  font-weight: 600; cursor: pointer;
}

/* ================================================
   ANIMATEUR — page profil individuel
================================================ */
.ltv-anim-single {
  display: grid; grid-template-columns: 340px 1fr; gap: 52px;
  max-width: 1100px; margin: 0 auto; padding: 52px 20px 84px; align-items: start;
}
.ltv-anim-single-photo { position: sticky; top: 96px; }
.ltv-anim-single-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  border-radius: var(--ltv-radius-l); border: 1px solid var(--ltv-bordure); display: block;
}
.ltv-anim-single-initiale {
  width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  font-family: var(--ltv-font-display); font-weight: 600; font-size: 88px;
  color: var(--ltv-or); background: var(--ltv-carte); border-radius: var(--ltv-radius-l);
  border: 1px solid var(--ltv-bordure);
}
.ltv-anim-single-titre {
  font-family: var(--ltv-font-display); font-weight: 600; font-size: 38px;
  color: var(--ltv-blanc); margin-bottom: 12px; line-height: 1.2;
}
.ltv-anim-single-role {
  font-size: 14px; color: var(--ltv-muted); margin-bottom: 30px;
  padding-bottom: 26px; border-bottom: 1px solid var(--ltv-bordure);
}
.ltv-anim-bio-vide { color: var(--ltv-muted); font-style: italic; margin-bottom: 16px; }
.ltv-anim-single-reseaux { display: flex; gap: 10px; margin-top: 34px; }
.ltv-anim-single-reseaux .ltv-btn-reseau {
  width: 37px; height: 37px; background: var(--ltv-carte); border-color: var(--ltv-bordure);
}

@media (max-width: 800px) {
  .ltv-anim-single { grid-template-columns: 1fr; gap: 26px; }
  .ltv-anim-single-photo { position: static; max-width: 280px; margin: 0 auto; }
}

/* ================================================
   PAGINATION — pages de catégorie / archives
================================================ */
.ltv-pagination { display: flex; justify-content: center; margin-top: 44px; }
.ltv-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; margin: 0 4px;
  border-radius: var(--ltv-radius); background: var(--ltv-carte);
  border: 1px solid var(--ltv-bordure); color: var(--ltv-texte);
  font-family: var(--ltv-font-h); font-weight: 600; font-size: 13px;
  text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ltv-pagination .page-numbers:hover { background: var(--ltv-rouge); border-color: var(--ltv-rouge); color: var(--ltv-blanc); }
.ltv-pagination .page-numbers.current { background: var(--ltv-rouge); border-color: var(--ltv-rouge); color: var(--ltv-blanc); }
.ltv-pagination .page-numbers.dots { background: transparent; border: none; }

/* ================================================
   FOOTER
================================================ */
.ltv-footer {
  background: var(--ltv-sombre);
  background-image: var(--ltv-ondes);
  border-top: 1px solid var(--ltv-bordure);
  padding: 56px 0 0;
}
.ltv-footer-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px 44px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px;
  border-bottom: 1px solid var(--ltv-bordure);
}
.ltv-footer-desc { font-size: 13px; color: var(--ltv-muted); line-height: 1.8; margin: 14px 0 20px; }
.ltv-footer-reseaux { display: flex; gap: 10px; flex-wrap: wrap; }
.ltv-footer-reseaux a {
  width: 37px; height: 37px; border-radius: var(--ltv-radius);
  background: var(--ltv-carte); border: 1px solid var(--ltv-bordure);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.ltv-footer-reseaux a:hover { background: var(--ltv-rouge); border-color: var(--ltv-rouge); }
.ltv-footer-col h4 {
  font-family: var(--ltv-font-h); font-weight: 600; font-size: 12px;
  color: var(--ltv-blanc); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 18px; padding-bottom: 11px;
  border-bottom: 2px solid var(--ltv-or); display: inline-block;
}
.ltv-footer-col li { margin-bottom: 9px; }
.ltv-footer-col li a {
  font-size: 13px; color: var(--ltv-muted);
  display: flex; align-items: center; gap: 7px;
  transition: color 0.2s;
}
.ltv-footer-col li a::before { content: '›'; color: var(--ltv-or); font-size: 16px; }
.ltv-footer-col li a:hover { color: var(--ltv-blanc); }
.ltv-footer-bas {
  max-width: 1400px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ltv-footer-copy { font-size: 12px; color: var(--ltv-muted); }
.ltv-footer-liens { display: flex; gap: 18px; }
.ltv-footer-liens a { font-size: 12px; color: var(--ltv-muted); transition: color 0.2s; }
.ltv-footer-liens a:hover { color: var(--ltv-or); }

/* ================================================
   ZONE ELEMENTOR / DIVI
================================================ */
.ltv-page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 24px 84px;
  min-height: 60vh;
}
.elementor-widget-container { color: var(--ltv-texte); }
.elementor-heading-title { color: var(--ltv-blanc) !important; font-family: var(--ltv-font-display) !important; }
.elementor-widget-text-editor p { color: var(--ltv-texte); }
#page-container { background: var(--ltv-noir); }
.et_pb_section { padding: 0 !important; }
.et_pb_row { max-width: 1400px; }

/* ================================================
   BOUTONS ADMIN EDIT
================================================ */
.ltv-btn-admin {
  margin-left: 12px;
  background: rgba(255,255,255,0.07);
  color: var(--ltv-texte) !important;
  font-size: 11px; font-family: var(--ltv-font-h); font-weight: 500;
  padding: 6px 13px; border-radius: var(--ltv-radius);
  border: 1px solid var(--ltv-bordure);
  transition: background 0.2s; text-decoration: none !important;
}
.ltv-btn-admin:hover { background: var(--ltv-rouge); border-color: var(--ltv-rouge); color: white !important; }
.ltv-anim-edit-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: white;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 10; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s;
}
.ltv-anim-edit-btn:hover { background: var(--ltv-rouge); }
.ltv-anim-add-photo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ltv-rouge); color: white !important;
  font-size: 11px; font-family: var(--ltv-font-h); font-weight: 600;
  padding: 9px 15px; border-radius: var(--ltv-radius);
  text-decoration: none !important; z-index: 10; white-space: nowrap;
}
.ltv-anim-add-photo:hover { background: var(--ltv-rouge-h); }
.ltv-anim-guide {
  background: var(--ltv-carte); border: 2px dashed var(--ltv-bordure);
  border-radius: var(--ltv-radius-l); padding: 44px;
  text-align: center; margin-bottom: 34px;
}
.ltv-anim-guide-icon { font-size: 48px; margin-bottom: 12px; }
.ltv-anim-guide h3 { font-family: var(--ltv-font-display); font-size: 19px; color: var(--ltv-blanc); margin-bottom: 9px; }
.ltv-anim-guide p { font-size: 14px; color: var(--ltv-muted); margin-bottom: 22px; }
.ltv-anim-guide strong { color: var(--ltv-blanc); }
.ltv-anim-demo { opacity: 0.5; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1100px) {
  .ltv-animateurs-grid { grid-template-columns: repeat(3, 1fr); }
  .ltv-anim-card.vedette { grid-column: span 2; }
  .ltv-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .ltv-hero-grid { grid-template-columns: 1fr; }
  .ltv-sidebar { max-height: 280px; }
  .ltv-animateurs-grid { grid-template-columns: 1fr 1fr; }
  .ltv-anim-card.vedette { grid-column: span 2; min-height: 340px; }
  .ltv-videos-grid { grid-template-columns: 1fr 1fr; }
  .ltv-news-grid { grid-template-columns: 1fr 1fr; }
  .ltv-news-card:first-child { grid-column: span 2; }
  .ltv-nav { display: none; }
  .ltv-nav.visible {
    display: flex; flex-direction: column;
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--ltv-sombre);
    padding: 14px; border-bottom: 1px solid var(--ltv-bordure); z-index: 9997;
  }
  .ltv-nav.visible ul { flex-direction: column; gap: 4px; }
  .ltv-nav.visible a { font-size: 14px; padding: 11px 15px; }
  .ltv-toggle { display: flex; }
}
@media (max-width: 560px) {
  .ltv-animateurs-grid { grid-template-columns: 1fr; }
  .ltv-anim-card.vedette { grid-column: span 1; aspect-ratio: 3/4; min-height: unset; }
  .ltv-videos-grid { grid-template-columns: 1fr; }
  .ltv-news-grid { grid-template-columns: 1fr; }
  .ltv-news-card:first-child { grid-column: span 1; }
  .ltv-footer-grid { grid-template-columns: 1fr; }
  .ltv-titre-section h2 { font-size: 20px; }
}

/* ================================================
   FIX PLAYER RATIO 16:9 — empêche vidéos verticales
================================================ */
.ltv-player-ratio {
  position: relative !important;
  width: 100% !important;
  padding-top: 56.25% !important;
  background: #000 !important;
  overflow: hidden !important;
  max-height: 600px;
}
.ltv-player-ratio iframe,
.ltv-player-ratio video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  object-fit: contain !important;
}
#ltv-bradmax-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
#ltv-bradmax-wrap video,
#ltv-bradmax-wrap .bp_player_wrapper,
#ltv-bradmax-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ════════════════════════════════════════════════════════
   ANIMATIONS PRO — Dynamique & Fluide
════════════════════════════════════════════════════════ */

/* Smooth transitions globales */
* {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

button, a, .clickable {
  position: relative;
  overflow: hidden;
}

/* Cartes avec elevation au hover */
.ltv-video-card,
.ltv-sondage-card,
.ltv-garde-card,
.ltv-comm-card,
.ltv-cand-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.ltv-video-card:hover,
.ltv-sondage-card:hover,
.ltv-garde-card:hover,
.ltv-comm-card:hover,
.ltv-cand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Boutons avec glow effect */
button:active,
.ltv-btn-admin:active,
.ltv-btn-direct:active {
  transform: scale(0.95);
}

/* Images avec zoom smooth */
img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover img {
  transform: scale(1.05);
}

/* Barres de progression animées */
.ltv-sondage-bar,
.ltv-wc-bar,
.ltv-garde-bar {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badges avec pulse */
.ltv-garde-dot,
.ltv-point-live {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Titres avec text-shadow au scroll */
.ltv-titre-section h2 {
  transition: text-shadow 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loader animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ltv-loader {
  animation: spin 1s linear infinite;
}

/* Fade transitions pour modales */
.ltv-modal {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.ltv-modal.visible {
  opacity: 1;
  visibility: visible;
}

/* Navigation smooth */
.ltv-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.ltv-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ltv-rouge);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ltv-nav a:hover::after {
  width: 100%;
}

/* Stagger animation pour listes */
.ltv-sondage-options > * {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ltv-sondage-options > *:nth-child(1) {
  animation-delay: 0.05s;
}
.ltv-sondage-options > *:nth-child(2) {
  animation-delay: 0.1s;
}
.ltv-sondage-options > *:nth-child(3) {
  animation-delay: 0.15s;
}
.ltv-sondage-options > *:nth-child(4) {
  animation-delay: 0.2s;
}
.ltv-sondage-options > *:nth-child(5) {
  animation-delay: 0.25s;
}
.ltv-sondage-options > *:nth-child(6) {
  animation-delay: 0.3s;
}
.ltv-sondage-options > *:nth-child(7) {
  animation-delay: 0.35s;
}
.ltv-sondage-options > *:nth-child(8) {
  animation-delay: 0.4s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow effects au hover */
.ltv-btn-direct:hover {
  box-shadow: 0 0 20px rgba(184, 19, 46, 0.6), 0 8px 24px rgba(184, 19, 46, 0.3);
}

/* Smooth color transitions */
.ltv-header {
  transition: box-shadow 0.3s ease;
}

/* Loading states */
[data-loading="true"] {
  pointer-events: none;
  opacity: 0.6;
}

/* Focus states pour accessibilité */
a:focus,
button:focus {
  outline: 2px solid var(--ltv-rouge);
  outline-offset: 2px;
}

/* Scroll reveal animations */
.ltv-section {
  opacity: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bounce au click des boutons */
button:active {
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Smooth expand/collapse */
details {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] {
  animation: expandDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes expandDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cursor interactions */
.clickable,
button,
a {
  cursor: pointer;
}

/* Disable animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════════════════════════════════════════════
   ACTUALITÉS — Animations Magazine
════════════════════════════════════════════════════════ */

.ltv-actu-card {
  animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.ltv-actu-card:nth-child(1) { animation-delay: 0.05s; }
.ltv-actu-card:nth-child(2) { animation-delay: 0.1s; }
.ltv-actu-card:nth-child(3) { animation-delay: 0.15s; }
.ltv-actu-card:nth-child(4) { animation-delay: 0.2s; }
.ltv-actu-card:nth-child(5) { animation-delay: 0.25s; }
.ltv-actu-card:nth-child(6) { animation-delay: 0.3s; }
.ltv-actu-card:nth-child(7) { animation-delay: 0.35s; }
.ltv-actu-card:nth-child(8) { animation-delay: 0.4s; }
.ltv-actu-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Featured article pulse */
.ltv-actu-card.featured {
  box-shadow: 0 0 0 1px rgba(184, 19, 46, 0.2);
}

.ltv-actu-card.featured:hover {
  box-shadow: 0 0 20px rgba(184, 19, 46, 0.3), 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ════════════════════════════════════════════════════════
   IMAGE FIXES — Chargement Garanti
════════════════════════════════════════════════════════ */

/* Assurer que les images s'affichent */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Images avec lazy loading */
img[loading="lazy"] {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05)) 0% center / 200% 100%;
  animation: shimmer 2s infinite;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

img[loading="lazy"][src*="http"] {
  opacity: 1;
  animation: none;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Photo profiles */
.ltv-autorite-photo,
.ltv-comb-image,
.ltv-mundial-banner-img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fallback placeholders */
.ltv-autorite-photo-placeholder,
.ltv-comb-placeholder,
.ltv-mundial-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(184,19,46,0.1), rgba(0,0,0,0.2));
}

/* ════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Optimisé pour tous les écrans
════════════════════════════════════════════════════════ */

/* Mobile First - Base pour 320px */
@media (max-width: 768px) {
  /* Spacing */
  .ltv-section { padding: 40px 0 !important; }
  .ltv-contenu { padding: 0 16px !important; }
  
  /* Typography */
  h1, .ltv-titre-section h2 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  h4, h5, h6 { font-size: 14px !important; }
  
  p { font-size: 13px !important; }
  
  /* Buttons */
  button, a.ltv-btn-admin, .ltv-btn { 
    padding: 10px 16px !important;
    font-size: 12px !important;
    width: auto;
  }
  
  /* Grilles */
  .ltv-grid, .ltv-card-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Flex */
  .ltv-flex-2, .ltv-flex-3, .ltv-flex-cols {
    flex-direction: column !important;
  }
}

@media (max-width: 560px) {
  /* Ultra mobile */
  .ltv-section { padding: 32px 0 !important; }
  .ltv-contenu { padding: 0 12px !important; }
  
  h1, .ltv-titre-section h2 { font-size: 20px !important; }
  h2 { font-size: 18px !important; }
  
  /* Hide on mobile */
  .ltv-desktop-only { display: none !important; }
  
  /* Full width */
  .ltv-card, .ltv-box {
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Reduce shadows on mobile */
  * {
    box-shadow: none !important;
  }
  
  .ltv-card, .ltv-box, [class*="card"], [class*="box"] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  }
}

@media (max-width: 480px) {
  /* Very small phones */
  .ltv-section { padding: 24px 0; }
  .ltv-contenu { padding: 0 10px; }
  
  /* Single column everything */
  [class*="grid"], [class*="flex"] {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  
  /* Smaller gaps */
  gap: 12px !important;
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .ltv-contenu { max-width: 100%; }
  
  /* 2 columns */
  [class*="grid-3"] { grid-template-columns: repeat(2, 1fr); }
  [class*="grid-4"] { grid-template-columns: repeat(2, 1fr); }
  [class*="grid-6"] { grid-template-columns: repeat(3, 1fr); }
}

/* Large screens */
@media (min-width: 1400px) {
  .ltv-contenu { max-width: 1400px; }
}

/* Touch optimization */
@media (hover: none) {
  /* Remove hover effects on touch devices */
  a:hover, button:hover {
    transform: none !important;
  }
  
  /* Larger touch targets */
  button, a, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Landscape mobile */
@media (max-height: 500px) {
  .ltv-section { padding: 20px 0; }
  h1, h2 { font-size: 18px; }
  p { font-size: 12px; }
}

/* Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img { image-rendering: -webkit-optimize-contrast; }
}

/* Print */
@media print {
  .ltv-header, .ltv-footer, .ltv-btn-admin, nav {
    display: none !important;
  }
  
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Already dark, but respect preference */
  :root {
    --ltv-fond: #0a0a0a;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
