/* ============================================================
   LUTV MADAGASCAR — PAGE ACTUALITÉS
   Styles spécifiques (le commun est dans style.css)
   ============================================================ */

/* ============================================================
   HERO PAGE — titre compact
   ============================================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: var(--violet-clair); }
.page-hero .breadcrumb span { margin: 0 8px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   BARRE DE RECHERCHE + FILTRES
   ============================================================ */
.filters-bar {
  background: white;
  padding: 24px 5%;
  border-bottom: 1px solid rgba(79,70,229,0.08);
  box-shadow: 0 4px 24px rgba(79,70,229,0.04);
  position: sticky;
  top: 66px;
  z-index: 100;
}
.filters-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gris-clair);
  padding: 5px;
  border-radius: 50px;
}
.tab {
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #64748b;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
}
.tab:hover { color: var(--bleu-fonce); }
.tab.active {
  background: white;
  color: var(--bleu-fonce);
  box-shadow: 0 4px 12px rgba(79,70,229,0.1);
}
.tab.active i { color: var(--violet); }

/* Search */
.search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 220px;
}
.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--gris-clair);
  transition: 0.3s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--violet);
  background: white;
  box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
}

/* ============================================================
   BARRE CATÉGORIES
   ============================================================ */
.cat-bar {
  background: white;
  padding: 0 5% 20px;
  border-bottom: 1px solid rgba(79,70,229,0.06);
  position: sticky;
  top: 130px;
  z-index: 99;
}
.cat-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #64748b;
  background: var(--gris-clair);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  text-decoration: none;
}
.cat-pill:hover {
  color: var(--violet);
  border-color: rgba(139,92,246,0.3);
}
.cat-pill.active {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 6px 18px rgba(79,70,229,0.3);
  border-color: transparent;
}

/* ============================================================
   LAYOUT PRINCIPAL — Grille avec sidebar
   ============================================================ */
.actualites-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 5% 70px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ============================================================
   COLONNE PRINCIPALE
   ============================================================ */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* --- Article en vedette (1er) --- */
.article-featured {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(79,70,229,0.05);
  transition: 0.3s;
}
.article-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
.article-featured .article-thumb {
  aspect-ratio: 16/8;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: block;
}
.article-featured .article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(139,92,246,0.3), transparent 60%);
  pointer-events: none;
}
.article-featured .article-content {
  padding: 30px 34px 34px;
}

.article-cat-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  background: rgba(139,92,246,0.12);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.article-featured h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bleu-fonce);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.article-featured h2 a {
  color: inherit;
  text-decoration: none;
}
.article-featured h2 a:hover { color: var(--violet); }
.article-featured p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta i { color: var(--violet); font-size: 0.78rem; }

/* --- Article standard (item) --- */
.article-item {
  background: white;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(79,70,229,0.05);
  transition: 0.3s;
}
.article-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(139,92,246,0.2);
}
.article-item .article-thumb {
  background: linear-gradient(135deg, #312e81, #8B5CF6);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: block;
}
.article-item .article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 40%, rgba(139,92,246,0.4), transparent 65%);
  pointer-events: none;
}
.article-item .article-thumb.video::before {
  content: "\f144";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.9);
  font-size: 2rem;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.article-item .article-thumb.video::after {
  background: linear-gradient(0deg, rgba(15,23,42,0.5) 0%, transparent 60%);
}
.article-item .article-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item h3 a {
  color: inherit;
  text-decoration: none;
}
.article-item h3 a:hover { color: var(--violet); }
.article-item p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.duration-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  background: white;
  border: 1.5px solid rgba(79,70,229,0.1);
  color: var(--bleu-fonce);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0 12px;
  text-decoration: none;
}
.page-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
}
.page-btn.active {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(79,70,229,0.3);
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 190px;
}
.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(79,70,229,0.05);
}
.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bleu-fonce);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}
.sidebar-card h3 i {
  color: var(--violet);
  font-size: 0.95rem;
}

/* Widget live */
.widget-live {
  background: linear-gradient(135deg, #0F172A 0%, #1e1b4b 100%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  border: none;
}
.widget-live::before {
  content: "";
  position: absolute;
  top: -30%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(239,68,68,0.35), transparent 70%);
  pointer-events: none;
}
.widget-live .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rouge-live);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.widget-live .live-tag .dot {
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  animation: pulseLive 1.4s infinite;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.widget-live h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.widget-live p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.widget-live .live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--bleu-fonce);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.3s;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.widget-live .live-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

/* Widget populaire */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.popular-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: 0.3s;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
}
.popular-item:hover { transform: translateX(4px); }
.popular-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gris-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--violet);
}
.popular-item:first-child .popular-num {
  background: var(--gradient-accent);
  color: white;
}
.popular-text { flex: 1; min-width: 0; }
.popular-text h5 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bleu-fonce);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-text span {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Widget catégories */
.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  transition: 0.3s;
  text-decoration: none;
}
.sidebar-cat:hover {
  background: rgba(139,92,246,0.08);
  color: var(--violet);
}
.sidebar-cat .count {
  background: var(--gris-clair);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}
.sidebar-cat:hover .count {
  background: var(--violet);
  color: white;
}

/* Widget newsletter */
.widget-newsletter {
  background: linear-gradient(135deg, #0F172A 0%, #4c1d95 100%);
  border-radius: 20px;
  padding: 26px 24px;
  color: white;
  position: relative;
  overflow: hidden;
}
.widget-newsletter::before {
  content: "";
  position: absolute;
  bottom: -40%; left: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,0.35), transparent 70%);
  pointer-events: none;
}
.widget-newsletter h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.widget-newsletter p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.widget-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.widget-newsletter input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: inherit;
  font-size: 0.88rem;
}
.widget-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.widget-newsletter input:focus {
  outline: none;
  border-color: var(--violet-clair);
  background: rgba(255,255,255,0.12);
}
.widget-newsletter button {
  padding: 12px 20px;
  border-radius: 10px;
  background: white;
  color: var(--bleu-fonce);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
}
.widget-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .actualites-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sidebar { position: static; }
  .article-item { grid-template-columns: 200px 1fr; }

  .filters-bar { top: 66px; padding: 18px 5%; }
  .cat-bar { top: 118px; }
}

@media (max-width: 640px) {
  .article-item {
    grid-template-columns: 1fr;
  }
  .article-item .article-thumb {
    aspect-ratio: 16/9;
    min-height: 0;
  }
  .article-featured .article-content { padding: 22px; }
  .article-featured h2 { font-size: 1.35rem; }

  .filters-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .search-box { max-width: none; }
}

/* ============================================================
   WIDGET LIVE — PLAYER + ÉTAT HORS ANTENNE
   ============================================================ */
.widget-live.is-active {
  padding: 20px;
}

.live-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.live-player-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.widget-live .live-tag.offline {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
}

/* ===================================================================================
NEWSLETTER - Feedback formulaire
======================================================================================*/
.newsletter-feedback {
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    min-height: 0;
    transition: all 0.3s ease;
}

.newsletter-feedback.success {
    color: #86efac;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.newsletter-feedback.error {
    color: #fca5a5;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
