/*
Theme Name: TVMag Child
Theme URI: https://tvmag.info
Template: generatepress
Author: TVMag.info
Description: Thème enfant custom pour TVMag.info - L'actualité des médias
Version: 1.0.0
*/

/* ========================================
   VARIABLES & BASE
======================================== */
:root {
  --bleu-nuit: #0a1628;
  --bleu-profond: #0d1e38;
  --cyan: #00c8f0;
  --cyan-dark: #00a8cc;
  --blanc: #ffffff;
  --gris-clair: #f4f6f9;
  --gris-texte: #8a97a8;
  --gris-border: #e2e8f0;
  --rouge-breaking: #e63946;
  --font-titre: 'Barlow Condensed', sans-serif;
  --font-corps: 'Source Serif 4', serif;
  --font-ui: 'DM Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=DM+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-corps);
  background: var(--gris-clair);
  color: var(--bleu-nuit);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   TOPBAR
======================================== */
.tvmag-topbar {
  background: var(--bleu-nuit);
  color: var(--gris-texte);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tvmag-topbar .topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tvmag-topbar .topbar-date { text-transform: uppercase; letter-spacing: 0.08em; }

.tvmag-topbar .topbar-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin: 0 32px;
  overflow: hidden;
}

.tvmag-topbar .ticker-label {
  background: var(--cyan);
  color: var(--bleu-nuit);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  flex-shrink: 0;
}

.tvmag-topbar .ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,0.7);
}

.tvmag-topbar .topbar-social {
  display: flex;
  gap: 16px;
}

.tvmag-topbar .topbar-social a {
  color: var(--gris-texte);
  transition: color 0.2s;
}

.tvmag-topbar .topbar-social a:hover { color: var(--cyan); }

/* ========================================
   HEADER
======================================== */
.tvmag-header {
  background: var(--bleu-nuit);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tvmag-header .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.tvmag-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.tvmag-logo img {
  height: 38px;
  width: auto;
}

/* NAV PRINCIPALE */
.tvmag-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.tvmag-nav ul {
  display: flex;
  list-style: none;
  height: 100%;
  gap: 2px;
}

.tvmag-nav ul li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.tvmag-nav ul li a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  position: relative;
}

.tvmag-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.tvmag-nav ul li a:hover { color: var(--blanc); }
.tvmag-nav ul li a:hover::after { transform: scaleX(1); }
.tvmag-nav ul li.current-menu-item a { color: var(--cyan); }
.tvmag-nav ul li.current-menu-item a::after { transform: scaleX(1); }

/* DROPDOWN */
.tvmag-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bleu-profond);
  border-top: 3px solid var(--cyan);
  min-width: 200px;
  flex-direction: column;
  height: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 100;
}

.tvmag-nav ul li:hover > ul { display: flex; }

.tvmag-nav ul li ul li {
  height: auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tvmag-nav ul li ul li a {
  padding: 12px 18px;
  height: auto;
  font-size: 12px;
}

.tvmag-nav ul li ul li a::after { display: none; }

/* HEADER SEARCH BTN */
.header-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  font-size: 18px;
}

.header-search-btn:hover { color: var(--cyan); }

/* ========================================
   BREAKING NEWS BAND
======================================== */
.tvmag-breaking {
  background: var(--rouge-breaking);
  padding: 10px 0;
  display: none;
}

.tvmag-breaking .breaking-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.breaking-badge {
  background: var(--blanc);
  color: var(--rouge-breaking);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  flex-shrink: 0;
}

.breaking-text {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--blanc);
}

/* ========================================
   LAYOUT GÉNÉRAL
======================================== */
.tvmag-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HERO — À LA UNE
======================================== */
.tvmag-hero {
  background: var(--bleu-nuit);
  padding: 32px 0 0;
}

.tvmag-hero .hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 3px;
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-main:hover .hero-main-img { transform: scale(1.03); }

.hero-main-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.6) 60%, transparent 100%);
  padding: 40px 28px 28px;
}

.hero-main .article-cat {
  display: inline-block;
  background: var(--cyan);
  color: var(--bleu-nuit);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.hero-main h2 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.15;
  color: var(--blanc);
  margin-bottom: 10px;
}

.hero-main h2 a { color: inherit; }
.hero-main h2 a:hover { color: var(--cyan); }

.hero-main .article-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-secondary-item {
  position: relative;
  overflow: hidden;
  flex: 1;
  cursor: pointer;
  min-height: 160px;
}

.hero-secondary-item:hover .hero-sec-img { transform: scale(1.05); }

.hero-sec-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: absolute;
  inset: 0;
}

.hero-secondary-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.3) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-secondary-item .article-cat {
  display: inline-block;
  background: var(--cyan);
  color: var(--bleu-nuit);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 8px;
  width: fit-content;
}

.hero-secondary-item h3 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.2;
  color: var(--blanc);
}

.hero-secondary-item h3 a { color: inherit; }
.hero-secondary-item h3 a:hover { color: var(--cyan); }

/* ========================================
   RUBRIQUES — SECTION TITRE
======================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--bleu-nuit);
}

.section-header h2 {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bleu-nuit);
  position: relative;
}

.section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--cyan);
  margin-right: 10px;
  vertical-align: middle;
}

.section-header .voir-tout {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cyan-dark);
  transition: color 0.2s;
}

.section-header .voir-tout:hover { color: var(--bleu-nuit); }

/* ========================================
   GRILLE D'ARTICLES
======================================== */
.tvmag-main-content {
  padding: 40px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--blanc);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10,22,40,0.12);
}

.article-card .card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.article-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-thumb img { transform: scale(1.05); }

.article-card .card-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--cyan);
  color: var(--bleu-nuit);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.article-card .card-body {
  padding: 16px;
}

.article-card h3 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--bleu-nuit);
  margin-bottom: 8px;
}

.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--cyan-dark); }

.article-card .card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6a7a;
  margin-bottom: 12px;

}

.article-card .card-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gris-texte);
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--gris-border);
  padding-top: 10px;
}

.card-meta .author { font-weight: 600; color: var(--bleu-nuit); }

.article-card-h {
  display: flex;
  gap: 14px;
  background: var(--blanc);
  padding: 14px;
  border-bottom: 1px solid var(--gris-border);
  transition: background 0.2s;
}

.article-card-h:hover { background: #f8fafc; }

.article-card-h .card-h-thumb {
  width: 90px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
}

.article-card-h .card-h-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card-h:hover .card-h-thumb img { transform: scale(1.08); }

.article-card-h .card-h-body { flex: 1; }

.article-card-h h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--bleu-nuit);
  margin-bottom: 6px;
}

.article-card-h h4 a { color: inherit; }
.article-card-h h4 a:hover { color: var(--cyan-dark); }

.article-card-h .card-h-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gris-texte);
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar-widget {
  background: var(--blanc);
  margin-bottom: 28px;
}

.sidebar-widget .widget-title {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanc);
  background: var(--bleu-nuit);
  padding: 12px 16px;
  border-left: 4px solid var(--cyan);
}

.sidebar-pub {
  background: var(--gris-border);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========================================
   SECTIONS RUBRIQUES
======================================== */
.tvmag-section {
  margin-bottom: 48px;
}

.tvmag-section.dark-bg {
  background: var(--bleu-nuit);
  padding: 36px 0;
  margin: 0 0 48px;
}

.tvmag-section.dark-bg .section-header h2 { color: var(--blanc); }
.tvmag-section.dark-bg .section-header h2::before { background: var(--cyan); }
.tvmag-section.dark-bg .voir-tout { color: var(--cyan); border-color: var(--cyan); }
.tvmag-section.dark-bg .article-card { background: rgba(255,255,255,0.05); }
.tvmag-section.dark-bg .article-card h3 { color: var(--blanc); }
.tvmag-section.dark-bg .article-card .card-excerpt { color: rgba(255,255,255,0.6); }
.tvmag-section.dark-bg .article-card .card-meta { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); }
.tvmag-section.dark-bg .card-meta .author { color: rgba(255,255,255,0.8); }

/* ========================================
   ARTICLE SINGLE
======================================== */
.tvmag-single {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.single-header { margin-bottom: 28px; }

.single-cat {
  display: inline-block;
  background: var(--cyan);
  color: var(--bleu-nuit);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.single-header h1 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.1;
  color: var(--bleu-nuit);
  margin-bottom: 16px;
}

.single-header .single-chapo {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: #3a4a5a;
  border-left: 4px solid var(--cyan);
  padding-left: 18px;
  margin-bottom: 20px;
  font-style: italic;
}

.single-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gris-texte);
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--gris-border);
  border-bottom: 1px solid var(--gris-border);
  margin-bottom: 28px;
}

.single-meta .author { font-weight: 600; color: var(--bleu-nuit); }

.single-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 32px;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2a3a4a;
}

.single-content h2 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 24px;
  color: var(--bleu-nuit);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gris-border);
}

.single-content h3 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 20px;
  color: var(--bleu-nuit);
  margin: 28px 0 10px;
}

.single-content p { margin-bottom: 20px; }

.single-content blockquote {
  border-left: 4px solid var(--cyan);
  background: var(--gris-clair);
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--bleu-profond);
}

.single-content a { color: var(--cyan-dark); border-bottom: 1px solid; }

.single-tags {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--gris-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--bleu-nuit);
  border: 1px solid var(--gris-border);
  padding: 4px 12px;
  transition: all 0.2s;
}

.tag-item:hover {
  background: var(--bleu-nuit);
  color: var(--blanc);
  border-color: var(--bleu-nuit);
}

.single-share {
  margin: 28px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.single-share span {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gris-texte);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; color: white; }
.share-btn.tw { background: #000; color: white; }
.share-btn.li { background: #0a66c2; color: white; }

/* ========================================
   FOOTER — TOUT EN BLANC
======================================== */
.tvmag-footer {
  background: var(--bleu-nuit);
  color: rgba(255,255,255,0.9);
  margin-top: 60px;
}

.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 48px 0;
}

.footer-top .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo img { height: 36px; margin-bottom: 16px; }

.footer-about {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan) !important;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanc) !important;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.9) !important;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--cyan) !important; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.7) !important;
}

.footer-bottom a { color: rgba(255,255,255,0.8) !important; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--cyan) !important; }

/* GeneratePress footer widgets override */
.footer-widgets,
.footer-widgets p,
.footer-widgets a,
.footer-widgets li,
.footer-widgets span,
.footer-widgets h1,
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4,
.inside-footer-widgets,
.inside-footer-widgets p,
.inside-footer-widgets a,
.inside-footer-widgets li,
.inside-footer-widgets span {
  color: rgba(255,255,255,0.9) !important;
  opacity: 1 !important;
}

.footer-widgets a:hover,
.inside-footer-widgets a:hover {
  color: var(--cyan) !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .tvmag-hero .hero-grid { grid-template-columns: 1fr 280px; }
  .content-layout { grid-template-columns: 1fr; }
  .tvmag-sidebar { display: none; }
  .footer-top .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .tvmag-topbar { display: none; }
  .tvmag-header .header-inner { height: 56px; }
  .tvmag-nav { display: none; }
  .tvmag-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-secondary { flex-direction: row; }
  .hero-secondary-item { min-height: 120px; }
  .articles-grid-3 { grid-template-columns: 1fr; }
  .articles-grid-2 { grid-template-columns: 1fr; }
  .tvmag-single { grid-template-columns: 1fr; padding: 24px 16px; }
  .footer-top .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========================================
   MENU BURGER MOBILE
======================================== */
.burger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) { .burger-btn { display: block; } }

.mobile-menu {
  display: none;
  background: var(--bleu-profond);
  border-top: 3px solid var(--cyan);
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; padding: 8px 0; }

.mobile-menu ul li a {
  display: block;
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--cyan);
  background: rgba(255,255,255,0.03);
}

/* ========================================
   UTILITAIRES
======================================== */
.tvmag-section-spacer { padding: 40px 0; }
.text-cyan { color: var(--cyan); }
.bg-bleu { background: var(--bleu-nuit); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ========================================
   ARTICLE CARD OVERLAY (homepage)
======================================== */
.article-card-overlay {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0a1628;
  cursor: pointer;
  border-radius: 4px;
}

.article-card-overlay .card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.article-card-overlay .card-overlay-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.article-card-overlay .card-overlay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card-overlay .card-no-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1628, #00c8f0);
}

.article-card-overlay:hover .card-overlay-thumb img {
  transform: scale(1.05);
}

.article-card-overlay .card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.5) 40%, transparent 100%);
  padding: 50px 18px 18px;
}

.article-card-overlay .card-overlay-cat {
  display: inline-block;
  background: #00c8f0;
  color: #0a1628;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 8px;
}

.article-card-overlay .card-overlay-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 6px;
}

.article-card-overlay .card-overlay-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  margin: 0;
}

.article-card-overlay:hover .card-overlay-excerpt {
  max-height: 80px;
  opacity: 1;
}

.article-card-overlay .card-overlay-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ========================================
   FIL EN CONTINU DANS LE HERO
======================================== */
.hero-fil {
  background: #0d1e38;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-fil-list {
  overflow-y: auto;
  flex: 1;
  max-height: 480px;
}

.hero-fil-list::-webkit-scrollbar {
  width: 3px;
}

.hero-fil-list::-webkit-scrollbar-track {
  background: #0a1628;
}

.hero-fil-list::-webkit-scrollbar-thumb {
  background: #e63946;
}

/* Vignettes compactes 3 en ligne */
.article-card-overlay-sm {
  aspect-ratio: 16/9 !important;
}

.article-card-overlay-sm .card-overlay-title {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

/* ========================================
   CARTE SM — image + bandeau bleu dessous
======================================== */
.article-card-sm {
  position: relative;
  background: #0a1628;
  display: flex;
  flex-direction: column;
}

.article-card-sm .card-sm-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.article-card-sm .card-sm-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}

.article-card-sm .card-sm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.article-card-sm:hover .card-sm-thumb img {
  transform: scale(1.05);
}

.article-card-sm .card-sm-body {
  background: #00c8f0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.article-card-sm .card-sm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.article-card-sm .card-sm-cat {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
}

.article-card-sm .card-sm-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 4px;

}

.article-card-sm .card-sm-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  text-align: right;
}

/* ========================================
   BOUTON PROGRAMME TV
======================================== */
.main-navigation ul li a[href*="programme-tv"],
nav ul li a[href*="programme-tv"],
.tvmag-nav ul li a[href*="programme-tv"] {
  background: #00c8f0 !important;
  color: #0a1628 !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 2px;
}

.main-navigation ul li a[href*="programme-tv"]:hover,
nav ul li a[href*="programme-tv"]:hover,
.tvmag-nav ul li a[href*="programme-tv"]:hover {
  background: #00a8cc !important;
  color: #0a1628 !important;
}

.main-navigation ul li a[href*="programme-tv"]::after,
nav ul li a[href*="programme-tv"]::after,
.tvmag-nav ul li a[href*="programme-tv"]::after {
  display: none !important;
}

/* ========================================
   BOUTON PROGRAMME TV — FIX HAUTEUR
======================================== */
li#menu-item-222 {
  align-self: center !important;
  height: auto !important;
}

li#menu-item-222 > a {
  background: #00c8f0 !important;
  color: #0a1628 !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  display: inline-block !important;
  height: auto !important;
  line-height: 1.4 !important;
  align-self: center !important;
}

li#menu-item-222 > a:hover {
  background: #00a8cc !important;
  color: #0a1628 !important;
}

/* ========================================
   MENU STICKY FIX
======================================== */
.site-header,
#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

.admin-bar .site-header,
.admin-bar #masthead {
    top: 32px !important;
}


/* ========================================
   TOPBAR FIX
======================================== */
.top-bar {
    display: none !important;
}

.site-top-bar {
    display: none !important;
}

/* ========================================
   FIX BARRE BLANCHE — WRAPPERS GENERATEPRESS
   (header en bleu nuit, plus de liseré blanc)
======================================== */
.site-header,
#masthead,
.inside-header {
    background: #0a1628 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
/* ========================================
   FIX LIGNE CLAIRE — écart body qui transparaît
   (header + nav GP + topbar tous en bleu nuit, zéro marge)
======================================== */
#masthead,
.site-header,
.inside-header,
.main-navigation,
#site-navigation,
.inside-navigation,
.navigation-branding,
.menu-toggle,
.gen-sidebar-nav,
.generate-after-header,
.site-header .inside-navigation,
.tvmag-topbar,
.tvmag-header {
    background-color: #0a1628 !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.tvmag-topbar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ========================================
   FIX DÉFINITIF — bande claire = padding du body
   sous le header FIXE (sticky JS sur .tvmag-header)
   On remonte la topbar pour combler le vide.
   >>> Si bande encore visible : augmenter -40px / +48px
   >>> Si topbar trop haute : diminuer ces deux valeurs
======================================== */
.tvmag-topbar {
    margin-top: -40px !important;
    padding-top: 48px !important;   /* 40 (compense) + 8 (padding d'origine) */
    background-color: #0a1628 !important;
    position: relative;
    z-index: 1;
}

/* le body lui-même en bleu nuit derrière la zone du header */
html {
    background-color: #0a1628 !important;
}

/* ========================================
   BOUTON "TOUS LES ARTICLES" (homepage)
   Les deux boutons (haut + bas de page) en rectangle cyan.
   Spécificité renforcée + !important pour battre GeneratePress
   sur le bouton placé dans .main-col.
======================================== */
.tvmag-all-articles {
    text-align: center;
    margin: 40px auto;
    padding: 0 24px;
}

.tvmag-all-articles a,
.main-col .tvmag-all-articles a {
    display: inline-block !important;
    background: #00c8f0 !important;
    color: #0a1628 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 14px 38px !important;
    border-radius: 3px !important;
    border-bottom: none !important;
    transition: background 0.2s, transform 0.2s !important;
}

.tvmag-all-articles a:hover,
.main-col .tvmag-all-articles a:hover {
    background: #00a8cc !important;
    color: #0a1628 !important;
    transform: translateY(-2px);
}

/* ========================================
   FOOTER — AGRANDISSEMENT DES TEXTES
   Titres de colonnes + liens + présentation + bas de page
======================================== */
/* Titres de colonnes (RUBRIQUES, À PROPOS, NEWSLETTER, LÉGAL) */
.footer-col h4,
.footer-widgets .widget-title,
.inside-footer-widgets .widget-title {
    font-size: 16px !important;
    letter-spacing: 0.12em !important;
}

/* Liens des colonnes */
.footer-col ul li,
.footer-widgets li,
.inside-footer-widgets li {
    font-size: 18px !important;
    margin-bottom: 12px !important;
}

.footer-col ul li a,
.footer-widgets li a,
.inside-footer-widgets li a {
    font-size: 18px !important;
}

/* Texte de présentation (sous le logo) */
.footer-about,
.footer-widgets p,
.inside-footer-widgets p {
    font-size: 17px !important;
    line-height: 1.7 !important;
}

/* Texte newsletter "Recevez l'essentiel..." */
.footer-widgets .textwidget p,
.inside-footer-widgets .textwidget p {
    font-size: 17px !important;
}

/* Bas de page (copyright + Fait avec ❤️) */
.footer-bottom,
.footer-bottom a {
    font-size: 15px !important;
}

/* ========================================
   MENU MOBILE — N'AFFICHER QUE LES GRANDES CATÉGORIES
   (masque les sous-menus + les flèches de dépliage)
   UNIQUEMENT sur mobile, desktop inchangé
======================================== */
@media (max-width: 768px) {
    /* Cacher tous les sous-menus dans la navigation mobile */
    .main-navigation .sub-menu,
    .main-navigation ul ul,
    .gen-sidebar-nav .sub-menu,
    .slideout-navigation .sub-menu,
    .mobile-menu .sub-menu,
    .mobile-menu ul ul {
        display: none !important;
    }

    /* Cacher les flèches de dépliage (plus rien à déplier) */
    .main-navigation .dropdown-menu-toggle,
    .menu-item-has-children .dropdown-menu-toggle,
    .gen-sidebar-nav .dropdown-menu-toggle,
    .slideout-navigation .dropdown-menu-toggle {
        display: none !important;
    }
}

/* ========================================
   CONTENU PLEINE LARGEUR (pas de pub pour l'instant)
   On retire la colonne sidebar de droite : le contenu
   prend toute la largeur, aligné sur le hero + fil continu.
   >>> POUR REMETTRE LA PUB PLUS TARD : supprimer ce bloc
       (et enlever les display:none dans front-page.php)
======================================== */
.content-layout {
    grid-template-columns: 1fr !important;
}

.tvmag-sidebar {
    display: none !important;
}
