/*
Theme Name: JeuneOptimiste
Theme URI: https://jeuneoptimiste.com
Author: JeuneOptimiste Team
Author URI: https://jeuneoptimiste.com
Description: Thème professionnel pour JeuneOptimiste — média panafricain d'information et d'inspiration pour la jeunesse africaine. Inclut WebTV, Radio en direct, breaking news, et contenu multilingue.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: africanews24
Tags: news, magazine, africa, media, tv, radio, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   VARIABLES CSS GLOBALES
============================================================ */
:root {
  --an-red:        #CC0000;
  --an-red-dark:   #990000;
  --an-red-light:  #FF2222;
  --an-gold:       #F5A623;
  --an-dark:       #0A0A0A;
  --an-darker:     #050505;
  --an-mid:        #1A1A1A;
  --an-muted:      #2C2C2C;
  --an-border:     #333333;
  --an-text:       #E8E8E8;
  --an-text-muted: #999999;
  --an-white:      #FFFFFF;
  --an-live:       #FF3B3B;
  --an-font-head:  'Oswald', sans-serif;
  --an-font-serif: 'Playfair Display', serif;
  --an-font-body:  'Source Sans 3', sans-serif;
  --an-radius:     3px;
  --an-shadow:     0 4px 20px rgba(0,0,0,0.6);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--an-font-body);
  background: var(--an-darker);
  color: var(--an-text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--an-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--an-font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--an-white);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--an-text); line-height: 1.7; }

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-fluid { width: 100%; padding: 0 20px; }
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm  { gap: 8px; }
.gap-md  { gap: 16px; }
.gap-lg  { gap: 24px; }
.mb-sm   { margin-bottom: 16px; }
.mb-md   { margin-bottom: 24px; }
.mb-lg   { margin-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   SECTION TITLES
============================================================ */
.section-title {
  font-family: var(--an-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--an-red);
  padding: 24px 0 16px;
  border-top: 3px solid var(--an-red);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--an-border); }
.section-title .see-all {
  font-size: 11px; color: var(--an-text-muted); font-weight: 400;
  letter-spacing: 1px; cursor: pointer; white-space: nowrap;
}
.section-title .see-all:hover { color: var(--an-red); }

/* ============================================================
   TOP BAR
============================================================ */
#topbar {
  background: var(--an-red-dark);
  padding: 6px 0;
  font-size: 12px;
  font-family: var(--an-font-head);
  letter-spacing: 0.05em;
}
#topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-ticker { display: flex; align-items: center; gap: 12px; overflow: hidden; flex: 1; }
.ticker-label {
  background: var(--an-white); color: var(--an-red-dark);
  padding: 2px 8px; font-weight: 700; font-size: 10px;
  white-space: nowrap; flex-shrink: 0; border-radius: 1px;
}
.ticker-wrap { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-text {
  display: inline-block;
  animation: an-ticker 30s linear infinite;
}
@keyframes an-ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-200%); }
}
.topbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-date  { color: rgba(255,255,255,0.7); font-size: 11px; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { color: rgba(255,255,255,0.7); font-size: 13px; }
.topbar-social a:hover { color: white; }

/* ============================================================
   HEADER
============================================================ */
#masthead {
  background: var(--an-dark);
  border-bottom: 3px solid var(--an-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--an-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo-box {
  background: var(--an-red);
  color: white;
  font-family: var(--an-font-head);
  font-weight: 700;
  font-size: 24px;
  padding: 8px 14px;
  line-height: 1;
}
.logo-sub {
  font-family: var(--an-font-head);
  font-size: 12px;
  font-weight: 400;
  color: var(--an-text-muted);
  padding-left: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Primary Navigation */
#primary-navigation { display: flex; align-items: center; }
#primary-navigation ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
#primary-navigation ul ul { display: none; }
#primary-navigation .menu-item > a {
  font-family: var(--an-font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  color: var(--an-text);
  border-radius: var(--an-radius);
  display: block;
  transition: all 0.2s;
}
#primary-navigation .menu-item > a:hover,
#primary-navigation .current-menu-item > a { background: var(--an-red); color: white; }

/* Live button in nav */
#primary-navigation .menu-item-live > a {
  background: var(--an-live);
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}
#primary-navigation .menu-item-live > a::before {
  content: '';
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
  animation: an-blink 1s ease-in-out infinite;
}
@keyframes an-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-search {
  background: none; border: 1px solid var(--an-border);
  color: var(--an-text-muted); padding: 7px 12px; border-radius: var(--an-radius);
  cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.btn-search:hover { border-color: var(--an-red); color: white; }
.btn-lang {
  background: var(--an-muted); border: none; color: var(--an-text);
  padding: 7px 10px; border-radius: var(--an-radius); cursor: pointer;
  font-family: var(--an-font-head); font-size: 12px; letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-lang:hover, .btn-lang.active { background: var(--an-red); color: white; }
.btn-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.btn-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--an-text); transition: all 0.3s;
}

/* ============================================================
   SUB-NAV (Categories strip)
============================================================ */
#sub-navigation {
  background: var(--an-mid);
  border-bottom: 1px solid var(--an-border);
  overflow-x: auto;
  scrollbar-width: none;
}
#sub-navigation::-webkit-scrollbar { display: none; }
#sub-navigation .container { display: flex; white-space: nowrap; }
#sub-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
#sub-navigation .menu-item > a {
  font-family: var(--an-font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 14px;
  color: var(--an-text-muted);
  display: block;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
#sub-navigation .menu-item > a:hover,
#sub-navigation .current-menu-item > a {
  color: white;
  border-bottom-color: var(--an-red);
}

/* ============================================================
   BREAKING NEWS BAR
============================================================ */
.breaking-bar {
  background: var(--an-red);
  padding: 10px 0;
  overflow: hidden;
}
.breaking-bar .container { display: flex; align-items: center; gap: 16px; }
.breaking-label {
  background: white; color: var(--an-red);
  font-family: var(--an-font-head); font-weight: 700;
  font-size: 11px; letter-spacing: 2px;
  padding: 3px 10px; flex-shrink: 0; border-radius: 1px;
}
.breaking-text {
  font-family: var(--an-font-head); font-size: 13px;
  font-weight: 500; color: white; overflow: hidden; white-space: nowrap; flex: 1;
}
.breaking-text span { display: inline-block; animation: an-ticker 20s linear infinite; }

/* ============================================================
   LIVE / DIRECT SECTION
============================================================ */
.section-live {
  background: var(--an-dark);
  padding: 20px 0 30px;
  border-bottom: 1px solid var(--an-border);
}
.live-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* Main player */
.live-player-wrap {
  background: #000;
  border-radius: var(--an-radius);
  overflow: hidden;
  position: relative;
}
.live-player-area {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #0a0a0a, #1a0000);
}
.live-player-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.live-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--an-live); color: white;
  font-family: var(--an-font-head); font-weight: 700;
  font-size: 15px; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 2px;
}
.live-badge::before {
  content: ''; width: 8px; height: 8px;
  background: white; border-radius: 50%;
  animation: an-blink 1s ease-in-out infinite;
}
.live-channel-name {
  font-family: var(--an-font-head); font-size: 28px;
  font-weight: 700; color: white;
  text-shadow: 0 2px 20px rgba(204,0,0,0.8);
}
.live-play-btn {
  width: 72px; height: 72px;
  background: rgba(204,0,0,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.2);
}
.live-play-btn:hover {
  background: var(--an-red); transform: scale(1.1);
  box-shadow: 0 0 30px rgba(204,0,0,0.6);
}
.play-tri { width:0; height:0; border-top:13px solid transparent; border-bottom:13px solid transparent; border-left:22px solid white; margin-left:4px; }
.live-info-bar {
  position: absolute; bottom:0; left:0; right:0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  padding: 24px 20px 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.live-prog-meta { font-family: var(--an-font-head); font-size: 11px; color: var(--an-gold); letter-spacing: 2px; margin-bottom: 4px; }
.live-prog-title { font-family: var(--an-font-head); font-size: 17px; font-weight: 600; color: white; }
.live-ctrl-btns { display: flex; gap: 8px; }
.live-ctrl-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  color: white; padding: 5px 10px; border-radius: 2px; cursor: pointer;
  font-size: 11px; font-family: var(--an-font-head); letter-spacing: 1px;
  transition: all 0.2s;
}
.live-ctrl-btn:hover { background: rgba(204,0,0,0.5); }

/* Channels sidebar */
.channels-sidebar { display: flex; flex-direction: column; gap: 14px; }
.channels-label {
  font-family: var(--an-font-head); font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--an-text-muted); border-bottom: 1px solid var(--an-border); padding-bottom: 10px;
}
.channel-card {
  background: var(--an-mid); border: 1px solid var(--an-border);
  border-radius: var(--an-radius); overflow: hidden;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: stretch;
}
.channel-card:hover { border-color: var(--an-red); transform: translateX(3px); }
.channel-card.is-active { border-color: var(--an-red); background: var(--an-muted); }
.channel-thumb {
  width: 90px; flex-shrink: 0; position: relative;
  background: #000; display: flex; align-items: center; justify-content: center;
}
.channel-thumb-label {
  font-family: var(--an-font-head); font-size: 10px; font-weight: 700;
  color: white; text-align: center; padding: 8px; line-height: 1.3;
}
.ch-live-badge {
  position: absolute; top: 5px; left: 5px;
  background: var(--an-live); color: white; font-size: 8px;
  font-family: var(--an-font-head); padding: 2px 5px;
  border-radius: 1px; font-weight: 700; letter-spacing: 1px;
}
.channel-info { padding: 10px 12px; flex: 1; }
.channel-name { font-family: var(--an-font-head); font-size: 14px; font-weight: 600; color: white; margin-bottom: 3px; }
.channel-desc { font-size: 11px; color: var(--an-text-muted); line-height: 1.4; margin-bottom: 6px; }
.channel-now { font-size: 10px; color: var(--an-gold); font-family: var(--an-font-head); letter-spacing: 0.5px; }

/* Mini radio widget */
.radio-mini-player {
  background: linear-gradient(135deg, var(--an-mid), var(--an-muted));
  border: 1px solid var(--an-border); border-radius: var(--an-radius);
  padding: 14px; display: flex; align-items: center; gap: 12px;
}
.radio-mini-icon {
  width: 44px; height: 44px; background: var(--an-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.radio-mini-info { flex: 1; }
.radio-mini-label { font-size: 10px; color: var(--an-text-muted); letter-spacing: 1px; font-family: var(--an-font-head); margin-bottom: 2px; }
.radio-mini-title { font-family: var(--an-font-head); font-weight: 600; color: white; font-size: 14px; margin-bottom: 4px; }
.radio-wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.wave-bar { width: 3px; background: var(--an-red); border-radius: 2px; animation: an-wave 0.8s ease-in-out infinite; }
.wave-bar:nth-child(1){height:5px;animation-delay:0s}
.wave-bar:nth-child(2){height:12px;animation-delay:0.1s}
.wave-bar:nth-child(3){height:8px;animation-delay:0.2s}
.wave-bar:nth-child(4){height:16px;animation-delay:0.3s}
.wave-bar:nth-child(5){height:6px;animation-delay:0.4s}
.wave-bar:nth-child(6){height:12px;animation-delay:0.2s}
@keyframes an-wave { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.3)} }
.radio-mini-play {
  width: 36px; height: 36px; background: var(--an-red); border: none;
  border-radius: 50%; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0;
}
.radio-mini-play:hover { background: var(--an-red-light); transform: scale(1.1); }

/* ============================================================
   HERO NEWS GRID
============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--an-border);
  border-radius: var(--an-radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.hero-main {
  grid-column: 1; grid-row: 1 / 3;
  position: relative; min-height: 420px; cursor: pointer; overflow: hidden;
}
.hero-secondary {
  position: relative; min-height: 200px; cursor: pointer; overflow: hidden;
}
.hero-sidebar {
  grid-column: 3; grid-row: 1 / 3;
  background: var(--an-mid); display: flex; flex-direction: column;
}
.post-thumbnail-fill {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s;
}
.hero-main:hover .post-thumbnail-fill { transform: scale(1.04); }
.hero-secondary:hover .post-thumbnail-fill { transform: scale(1.04); }
.hero-overlay {
  position: absolute; bottom:0; left:0; right:0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  padding: 30px 24px 22px;
}
.hero-sec-overlay {
  position: absolute; bottom:0; left:0; right:0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  padding: 20px 16px 14px;
}
.post-category-label {
  display: inline-block;
  background: var(--an-red); color: white;
  font-family: var(--an-font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; padding: 3px 10px; margin-bottom: 10px;
  border-radius: 1px; text-transform: uppercase;
}
.hero-main .entry-title {
  font-family: var(--an-font-serif); font-size: 26px; font-weight: 700;
  line-height: 1.25; color: white; margin-bottom: 8px;
}
.hero-secondary .entry-title {
  font-family: var(--an-font-head); font-size: 16px; font-weight: 600;
  line-height: 1.3; color: white; margin-bottom: 6px; transition: color 0.2s;
}
.hero-secondary:hover .entry-title { color: var(--an-gold); }
.entry-meta-small { font-size: 12px; color: rgba(255,255,255,0.55); }

/* Sidebar news list */
.sidebar-news-item {
  padding: 14px 16px; border-bottom: 1px solid var(--an-border);
  cursor: pointer; transition: background 0.2s;
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1;
}
.sidebar-news-item:hover { background: var(--an-muted); }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-cat { font-family: var(--an-font-head); font-size: 10px; letter-spacing: 2px; color: var(--an-red); margin-bottom: 5px; }
.sidebar-title {
  font-family: var(--an-font-head); font-size: 14px; font-weight: 500;
  line-height: 1.4; color: var(--an-text); margin-bottom: 6px; transition: color 0.2s;
}
.sidebar-news-item:hover .sidebar-title { color: var(--an-gold); }

/* ============================================================
   POST / NEWS CARDS
============================================================ */
.post-card {
  background: var(--an-mid); border-radius: var(--an-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--an-border);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border-color: rgba(204,0,0,0.4);
}
.card-thumb-wrap { position: relative; padding-top: 60%; overflow: hidden; background: var(--an-muted); }
.card-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .card-thumb { transform: scale(1.06); }
.card-body { padding: 14px; }
.card-category { font-family: var(--an-font-head); font-size: 10px; letter-spacing: 2px; color: var(--an-red); margin-bottom: 7px; }
.card-title {
  font-family: var(--an-font-head); font-size: 15px; font-weight: 500;
  line-height: 1.35; color: var(--an-text); margin-bottom: 8px; transition: color 0.2s;
}
.post-card:hover .card-title { color: var(--an-gold); }
.card-excerpt {
  font-size: 13px; color: var(--an-text-muted); line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 11px; color: #666; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   VIDEO CARDS (WebTV)
============================================================ */
.video-card {
  background: #000; border-radius: var(--an-radius); overflow: hidden;
  cursor: pointer; border: 1px solid var(--an-border); transition: border-color 0.2s, transform 0.2s;
}
.video-card:hover { border-color: var(--an-red); transform: translateY(-2px); }
.video-thumb-wrap { position: relative; padding-top: 56.25%; overflow: hidden; background: var(--an-muted); }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .video-thumb { transform: scale(1.04); }
.video-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.video-card:hover .video-overlay { background: rgba(0,0,0,0.4); }
.video-play-circle {
  width: 54px; height: 54px; background: rgba(204,0,0,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.8); transition: all 0.25s;
}
.video-card:hover .video-play-circle { opacity: 1; transform: scale(1); }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.85); color: white; font-size: 10px;
  font-family: var(--an-font-head); padding: 2px 6px; border-radius: 2px;
}
.video-info { padding: 12px; }
.video-category { font-family: var(--an-font-head); font-size: 10px; letter-spacing: 2px; color: var(--an-red); margin-bottom: 5px; }
.video-title { font-family: var(--an-font-head); font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--an-text); margin-bottom: 6px; transition: color 0.2s; }
.video-card:hover .video-title { color: var(--an-gold); }
.video-meta { font-size: 11px; color: var(--an-text-muted); }

/* ============================================================
   RADIO SECTION
============================================================ */
.section-radio {
  background: linear-gradient(135deg, #0d0000 0%, #1a0505 50%, #0d0000 100%);
  padding: 40px 0;
  border-top: 3px solid var(--an-red);
  position: relative; overflow: hidden;
}
.section-radio::before {
  content: '📻'; position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%); font-size: 280px; opacity: 0.03;
}
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.radio-eyebrow {
  font-family: var(--an-font-head); font-size: 11px; letter-spacing: 3px;
  color: var(--an-red); margin-bottom: 12px;
}
.radio-big-title {
  font-family: var(--an-font-serif); font-size: 40px; font-weight: 900;
  color: white; line-height: 1.1; margin-bottom: 12px;
}
.radio-big-title em { font-style: normal; color: var(--an-red); }
.radio-desc { font-size: 15px; color: var(--an-text-muted); line-height: 1.6; margin-bottom: 20px; }
.radio-freqs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.freq-chip {
  background: var(--an-muted); border: 1px solid var(--an-border);
  color: var(--an-text-muted); font-family: var(--an-font-head);
  font-size: 11px; padding: 4px 12px; border-radius: 20px;
  transition: all 0.2s; cursor: pointer;
}
.freq-chip:hover { border-color: var(--an-red); color: var(--an-red); }
.btn-radio-listen {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--an-red); color: white; padding: 12px 24px;
  border-radius: var(--an-radius); font-family: var(--an-font-head);
  font-size: 14px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-radio-listen:hover { background: var(--an-red-light); transform: translateY(-2px); }
.program-list { display: flex; flex-direction: column; gap: 10px; }
.program-list-label {
  font-family: var(--an-font-head); font-size: 11px; letter-spacing: 2px;
  color: var(--an-text-muted); margin-bottom: 4px;
}
.program-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--an-radius); padding: 12px 14px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 12px;
}
.program-item:hover { background: rgba(204,0,0,0.09); border-color: rgba(204,0,0,0.25); }
.program-item.is-live { border-color: var(--an-red); background: rgba(204,0,0,0.07); }
.prog-time { font-family: var(--an-font-head); font-size: 15px; font-weight: 600; color: var(--an-red); min-width: 55px; }
.prog-details { flex: 1; }
.prog-name { font-family: var(--an-font-head); font-size: 14px; font-weight: 500; color: white; margin-bottom: 2px; }
.prog-desc { font-size: 11px; color: var(--an-text-muted); }
.prog-on-air {
  font-size: 9px; background: var(--an-live); color: white;
  font-family: var(--an-font-head); padding: 2px 7px;
  border-radius: 20px; letter-spacing: 1px;
}

/* ============================================================
   OPINION CARDS
============================================================ */
.opinion-card {
  background: var(--an-mid); border: 1px solid var(--an-border);
  border-left: 3px solid var(--an-red); border-radius: var(--an-radius);
  padding: 20px; cursor: pointer; transition: all 0.2s;
}
.opinion-card:hover { background: var(--an-muted); transform: translateY(-2px); }
.opinion-quote-mark {
  font-family: var(--an-font-serif); font-size: 52px;
  color: var(--an-red); line-height: 0.8; margin-bottom: 12px; opacity: 0.65;
}
.opinion-excerpt {
  font-size: 14px; line-height: 1.6; color: var(--an-text);
  margin-bottom: 16px; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.opinion-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  background: var(--an-muted); border: 2px solid var(--an-border); flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: var(--an-font-head); font-size: 13px; font-weight: 600; color: white; }
.author-role { font-size: 11px; color: var(--an-text-muted); }

/* ============================================================
   WIDGETS
============================================================ */
.widget-area { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--an-mid); border: 1px solid var(--an-border);
  border-radius: var(--an-radius); padding: 16px;
}
.widget-title {
  font-family: var(--an-font-head); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--an-red); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--an-border);
}

/* Weather widget */
.weather-list { display: flex; flex-direction: column; gap: 8px; }
.weather-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.weather-row:last-child { border-bottom: none; }
.w-city { color: var(--an-text); }
.w-icon { font-size: 16px; }
.w-temp { font-family: var(--an-font-head); font-size: 15px; color: var(--an-gold); }

/* Trending widget */
.trending-list { display: flex; flex-direction: column; }
.trending-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: all 0.2s; }
.trending-item:last-child { border-bottom: none; }
.trending-num { font-family: var(--an-font-head); font-size: 18px; font-weight: 700; color: var(--an-border); min-width: 22px; transition: color 0.2s; }
.trending-item:hover .trending-num { color: var(--an-red); }
.trending-tag { font-size: 13px; color: var(--an-text); transition: color 0.2s; }
.trending-item:hover .trending-tag { color: var(--an-gold); }

/* Poll widget */
.poll-question { font-size: 13px; color: var(--an-text); line-height: 1.5; margin-bottom: 14px; }
.poll-options { display: flex; flex-direction: column; gap: 10px; }
.poll-opt { cursor: pointer; }
.poll-opt-label { font-size: 13px; color: var(--an-text); margin-bottom: 4px; }
.poll-bar-track { background: var(--an-muted); height: 5px; border-radius: 3px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--an-red); border-radius: 3px; }
.poll-pct { font-size: 11px; color: var(--an-text-muted); text-align: right; margin-top: 2px; }
.poll-footer { margin-top: 12px; font-size: 11px; color: #555; }

/* Newsletter widget */
.widget-newsletter p { font-size: 13px; color: var(--an-text-muted); margin-bottom: 12px; }
.newsletter-form { display: flex; }
.newsletter-input {
  flex: 1; background: var(--an-muted); border: 1px solid var(--an-border);
  border-right: none; color: var(--an-text); padding: 9px 12px;
  font-size: 13px; outline: none; border-radius: 2px 0 0 2px;
}
.newsletter-input:focus { border-color: var(--an-red); }
.newsletter-btn {
  background: var(--an-red); border: none; color: white; padding: 9px 14px;
  cursor: pointer; font-family: var(--an-font-head); font-size: 12px;
  letter-spacing: 1px; border-radius: 0 2px 2px 0; transition: background 0.2s;
}
.newsletter-btn:hover { background: var(--an-red-light); }

/* Tags widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
  background: var(--an-muted); border: 1px solid var(--an-border);
  color: var(--an-text-muted); font-size: 11px;
  font-family: var(--an-font-head); letter-spacing: 1px;
  padding: 4px 10px; border-radius: 20px; cursor: pointer;
  transition: all 0.2s; text-transform: uppercase;
}
.tag-link:hover { background: var(--an-red); border-color: var(--an-red); color: white; }

/* ============================================================
   SINGLE POST PAGE
============================================================ */
.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; padding: 30px 0; }
.entry-header { margin-bottom: 24px; }
.entry-header .entry-title {
  font-family: var(--an-font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; line-height: 1.2; color: white; margin-bottom: 16px;
}
.entry-byline { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--an-border); border-bottom: 1px solid var(--an-border); margin-bottom: 24px; }
.byline-author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--an-text-muted); }
.byline-date { font-size: 13px; color: var(--an-text-muted); }
.byline-reading { font-size: 13px; color: var(--an-text-muted); }
.entry-content { font-size: 16px; line-height: 1.8; }
.entry-content p { color: var(--an-text); margin-bottom: 20px; }
.entry-content h2 { font-family: var(--an-font-head); font-size: 22px; color: white; margin: 32px 0 16px; padding-left: 14px; border-left: 3px solid var(--an-red); }
.entry-content blockquote {
  background: var(--an-mid); border-left: 4px solid var(--an-red);
  padding: 20px 24px; margin: 24px 0; border-radius: 0 var(--an-radius) var(--an-radius) 0;
}
.entry-content blockquote p { font-style: italic; font-size: 18px; color: var(--an-text); margin: 0; }
.entry-featured-image { margin-bottom: 28px; border-radius: var(--an-radius); overflow: hidden; }
.entry-featured-image img { width: 100%; height: auto; }
.share-bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 0;
  border-top: 1px solid var(--an-border); margin-top: 30px;
}
.share-label { font-family: var(--an-font-head); font-size: 12px; letter-spacing: 2px; color: var(--an-text-muted); }
.share-btn {
  background: var(--an-muted); border: 1px solid var(--an-border);
  color: var(--an-text); padding: 6px 16px; border-radius: 2px;
  font-family: var(--an-font-head); font-size: 12px; letter-spacing: 1px;
  cursor: pointer; transition: all 0.2s;
}
.share-btn:hover { background: var(--an-red); border-color: var(--an-red); color: white; }

/* ============================================================
   COMMENTS
============================================================ */
.comments-section { padding: 30px 0; border-top: 3px solid var(--an-red); margin-top: 30px; }
.comments-title { font-family: var(--an-font-head); font-size: 18px; margin-bottom: 20px; color: white; }
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.comment-item { background: var(--an-mid); border: 1px solid var(--an-border); border-radius: var(--an-radius); padding: 16px; }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--an-muted); overflow: hidden; flex-shrink: 0; }
.comment-author-name { font-family: var(--an-font-head); font-size: 14px; font-weight: 600; color: white; }
.comment-date { font-size: 11px; color: var(--an-text-muted); }
.comment-body { font-size: 14px; color: var(--an-text); line-height: 1.6; }
.comment-form-area { background: var(--an-mid); border: 1px solid var(--an-border); border-radius: var(--an-radius); padding: 20px; }
.comment-form-title { font-family: var(--an-font-head); font-size: 15px; font-weight: 600; color: white; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: var(--an-text-muted); font-family: var(--an-font-head); letter-spacing: 1px; text-transform: uppercase; }
.form-input, .form-textarea {
  background: var(--an-muted); border: 1px solid var(--an-border);
  color: var(--an-text); padding: 9px 12px; font-size: 14px;
  border-radius: var(--an-radius); outline: none; font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--an-red); }
.form-textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  background: var(--an-red); border: none; color: white; padding: 11px 28px;
  font-family: var(--an-font-head); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; border-radius: var(--an-radius); cursor: pointer;
  transition: all 0.2s; margin-top: 8px;
}
.btn-submit:hover { background: var(--an-red-light); }

/* ============================================================
   PAGES
============================================================ */
/* À propos / About */
.page-hero {
  background: linear-gradient(135deg, var(--an-dark), var(--an-mid));
  padding: 60px 0;
  border-bottom: 1px solid var(--an-border);
  text-align: center;
}
.page-hero h1 { font-family: var(--an-font-serif); font-size: 3rem; font-weight: 900; margin-bottom: 16px; }
.page-hero h1 span { color: var(--an-red); }
.page-hero p { font-size: 18px; color: var(--an-text-muted); max-width: 600px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 0; }
.stat-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; }
.stat-box { background: var(--an-mid); border: 1px solid var(--an-border); border-top: 3px solid var(--an-red); border-radius: var(--an-radius); padding: 20px; text-align: center; }
.stat-num { font-family: var(--an-font-head); font-size: 36px; font-weight: 700; color: var(--an-red); }
.stat-label { font-size: 12px; color: var(--an-text-muted); margin-top: 6px; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.team-card { background: var(--an-mid); border: 1px solid var(--an-border); border-radius: var(--an-radius); overflow: hidden; text-align: center; padding-bottom: 16px; cursor: pointer; transition: transform 0.2s; }
.team-card:hover { transform: translateY(-4px); border-color: rgba(204,0,0,0.4); }
.team-photo { width: 100%; padding-top: 100%; position: relative; background: var(--an-muted); }
.team-photo-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.team-name { font-family: var(--an-font-head); font-size: 15px; font-weight: 600; color: white; margin-top: 12px; padding: 0 12px; }
.team-role { font-size: 12px; color: var(--an-text-muted); margin-top: 4px; padding: 0 12px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-detail-label { font-family: var(--an-font-head); font-size: 12px; letter-spacing: 2px; color: var(--an-red); margin-bottom: 4px; }
.contact-detail-value { font-size: 14px; color: var(--an-text); }
.contact-form { background: var(--an-mid); border: 1px solid var(--an-border); border-radius: var(--an-radius); padding: 28px; }
.contact-form-title { font-family: var(--an-font-head); font-size: 18px; margin-bottom: 20px; color: white; }

/* ============================================================
   SEARCH / ARCHIVE
============================================================ */
.search-header { padding: 30px 0; border-bottom: 1px solid var(--an-border); margin-bottom: 24px; }
.search-header h1 { font-family: var(--an-font-head); font-size: 20px; color: var(--an-text-muted); }
.search-header h1 span { color: white; }
.search-form-big { display: flex; max-width: 600px; margin-top: 14px; }
.search-input-big {
  flex: 1; background: var(--an-mid); border: 1px solid var(--an-border);
  border-right: none; color: var(--an-text); padding: 12px 16px; font-size: 15px;
  outline: none; border-radius: 2px 0 0 2px;
}
.search-input-big:focus { border-color: var(--an-red); }
.search-submit-big {
  background: var(--an-red); border: none; color: white; padding: 12px 22px;
  font-family: var(--an-font-head); font-size: 14px; letter-spacing: 1px;
  cursor: pointer; border-radius: 0 2px 2px 0; transition: background 0.2s;
}
.search-submit-big:hover { background: var(--an-red-light); }
.archive-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
.posts-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--an-border); cursor: pointer; transition: all 0.2s;
}
.post-list-item:hover { padding-left: 8px; border-bottom-color: rgba(204,0,0,0.3); }
.post-list-thumb { width: 120px; height: 80px; flex-shrink: 0; border-radius: var(--an-radius); overflow: hidden; background: var(--an-muted); }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-cat { font-family: var(--an-font-head); font-size: 10px; letter-spacing: 2px; color: var(--an-red); margin-bottom: 5px; }
.post-list-title { font-family: var(--an-font-head); font-size: 15px; font-weight: 500; color: var(--an-text); line-height: 1.35; margin-bottom: 6px; transition: color 0.2s; }
.post-list-item:hover .post-list-title { color: var(--an-gold); }
.post-list-meta { font-size: 11px; color: #666; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.page-num {
  width: 38px; height: 38px;
  background: var(--an-mid); border: 1px solid var(--an-border);
  color: var(--an-text-muted); display: flex; align-items: center; justify-content: center;
  font-family: var(--an-font-head); font-size: 14px; cursor: pointer; border-radius: var(--an-radius);
  transition: all 0.2s;
}
.page-num:hover, .page-num.current { background: var(--an-red); border-color: var(--an-red); color: white; }

/* ============================================================
   FOOTER
============================================================ */
#colophon {
  background: #060606;
  border-top: 3px solid var(--an-red);
  padding: 40px 0 0;
  margin-top: 50px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--an-border);
}
.footer-logo-area .logo-box { display: inline-block; margin-bottom: 14px; }
.footer-about { font-size: 13px; color: var(--an-text-muted); line-height: 1.7; margin-bottom: 16px; }
.footer-social-links { display: flex; gap: 10px; }
.footer-social-link {
  width: 34px; height: 34px; background: var(--an-muted); border-radius: var(--an-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--an-text-muted); font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.footer-social-link:hover { background: var(--an-red); color: white; }
.footer-col-heading {
  font-family: var(--an-font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--an-red);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--an-border);
}
.footer-nav-list { display: flex; flex-direction: column; gap: 6px; }
.footer-nav-list a {
  font-size: 13px; color: var(--an-text-muted); display: flex; align-items: center; gap: 6px;
}
.footer-nav-list a::before { content: '›'; color: var(--an-red); }
.footer-nav-list a:hover { color: var(--an-gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 11px; color: #444;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #444; font-size: 11px; }
.footer-bottom-links a:hover { color: var(--an-text-muted); }


/* ============================================================
   RESPONSIVE COMPLET — Mobile First
   Breakpoints: 480, 640, 768, 960, 1200
============================================================ */

/* ---- 1200px — Large tablette / petit desktop ---- */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-sidebar { display: none; }
  .hero-main { grid-row: 1; min-height: 360px; }
  .footer-widgets { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr) !important; }
  .news-grid.grid-4 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---- 960px — Tablette portrait ---- */
@media (max-width: 960px) {
  .container { padding: 0 16px; }

  /* Header */
  .header-inner { height: 60px; gap: 12px; }
  .logo-box { font-size: 20px; padding: 7px 10px; }
  .logo-sub { display: none; }

  /* Navigation principale : cacher pour tablette, hamburger */
  #primary-navigation { display: none !important; }
  .btn-hamburger { display: flex !important; }

  /* Sous-navigation */
  #sub-navigation .container { padding: 0 12px; }

  /* Live section */
  .live-grid { grid-template-columns: 1fr; gap: 16px; }
  .channels-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Hero grid */
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .hero-sidebar { display: none; }
  .hero-main { grid-column: 1 / 3; min-height: 320px; }
  .hero-secondary { min-height: 180px; }

  /* Grilles */
  .news-grid, .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .webtv-grid, .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* Radio */
  .radio-grid { grid-template-columns: 1fr; gap: 24px; }
  .radio-big-title { font-size: 28px; }
  .section-radio { padding: 28px 0; }

  /* Opinion */
  .grid-3 .opinion-card { grid-column: auto; }

  /* Single layout */
  .single-layout { grid-template-columns: 1fr; }
  .single-layout .widget-area { display: none; }

  /* Archive */
  .archive-grid { grid-template-columns: 1fr; }

  /* Pages */
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-boxes { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ---- 768px — Tablette petite ---- */
@media (max-width: 768px) {
  /* Topbar */
  #topbar .topbar-right { display: none; }
  #topbar .container { justify-content: center; }
  .ticker-wrap { max-width: 80vw; }

  /* Header */
  .header-inner { height: 56px; }
  .logo-box { font-size: 18px; }

  /* Breaking bar */
  .breaking-bar .breaking-label { display: none; }

  /* Hero */
  .hero-main .entry-title { font-size: 20px; }
  .hero-overlay { padding: 20px 14px 14px; }
  .hero-sec-overlay { padding: 12px 10px 10px; }

  /* Grilles */
  .news-grid, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }

  /* Section live player */
  .live-player-area { min-height: 200px; }
  .live-channel-name { font-size: 20px; }
  .live-play-btn { width: 56px; height: 56px; }
  .channels-sidebar { grid-template-columns: 1fr; }

  /* Radio */
  .radio-big-title { font-size: 24px; }
  .radio-freqs { gap: 6px; }
  .freq-chip { font-size: 10px; padding: 3px 8px; }

  /* Stat boxes */
  .stat-boxes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-num { font-size: 28px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Footer */
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-logo-area { text-align: center; }
  .footer-social-links { justify-content: center; }
}

/* ---- 640px — Mobile large ---- */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { padding: 0 12px; }

  /* Header */
  .header-inner { height: 54px; gap: 8px; }
  .logo-box { font-size: 16px; padding: 6px 9px; }
  .btn-search { display: none; }
  .btn-lang { padding: 6px 8px; font-size: 11px; }

  /* Topbar : simplifier */
  #topbar { padding: 5px 0; font-size: 11px; }

  /* Hero grid : 1 colonne */
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-main { grid-column: 1; min-height: 260px; }
  .hero-secondary { display: none; }
  .hero-main .entry-title { font-size: 18px; }
  .hero-overlay { padding: 16px 12px 12px; }

  /* Grilles : 1 colonne */
  .news-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; gap: 10px; }
  .webtv-grid { grid-template-columns: 1fr !important; }

  /* Post cards */
  .post-card { display: flex; flex-direction: row; gap: 0; }
  .post-card .card-thumb-wrap { padding-top: 0; width: 110px; min-width: 110px; height: 90px; flex-shrink: 0; }
  .post-card .card-thumb { position: relative; width: 100%; height: 100%; object-fit: cover; }
  .post-card .card-body { padding: 10px 12px; flex: 1; }
  .post-card .card-excerpt { display: none; }
  .post-card .card-title { font-size: 13px; -webkit-line-clamp: 3; }

  /* Section live */
  .live-grid { gap: 12px; }
  .live-channel-name { font-size: 16px; }
  .live-badge { font-size: 12px; padding: 4px 10px; }
  .channels-sidebar { grid-template-columns: 1fr; }
  .channel-card { flex-direction: row; }
  .channel-thumb { width: 80px; flex-shrink: 0; }
  .radio-mini-player { padding: 10px 12px; }

  /* Radio */
  .section-radio { padding: 24px 0; }
  .radio-big-title { font-size: 22px; }
  .program-item { padding: 10px 12px; gap: 10px; }
  .prog-time { font-size: 13px; min-width: 45px; }
  .prog-name { font-size: 13px; }

  /* Opinion */
  .opinion-card { padding: 14px; }
  .opinion-quote-mark { font-size: 36px; }

  /* Section titles */
  .section-title { font-size: 11px; padding: 18px 0 12px; }

  /* Widgets */
  .widget { padding: 12px; }
  .weather-row { font-size: 12px; }

  /* Single article */
  .single-layout { grid-template-columns: 1fr; gap: 0; }
  .entry-header .entry-title { font-size: 1.5rem; }
  .entry-byline { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .share-bar { flex-wrap: wrap; gap: 8px; }
  .share-btn { font-size: 11px; padding: 5px 10px; }

  /* Search */
  .search-form-big { flex-direction: column; }
  .search-input-big { border-right: 1px solid var(--an-border); border-bottom: none; border-radius: 2px 2px 0 0; }
  .search-submit-big { border-radius: 0 0 2px 2px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 10px; }

  /* Page hero */
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: 2rem; }

  /* Stats */
  .stat-boxes { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-num { font-size: 26px; }
  .stat-box { padding: 14px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Footer */
  .footer-col-heading { font-size: 11px; }
  .footer-nav-list a { font-size: 12px; }
  #colophon { padding: 28px 0 0; }

  /* Pagination */
  .pagination { flex-wrap: wrap; gap: 4px; }
  .page-num { width: 32px; height: 32px; font-size: 12px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid var(--an-border) !important; border-bottom: none; border-radius: 2px 2px 0 0 !important; }
  .newsletter-btn { border-radius: 0 0 2px 2px !important; padding: 9px !important; text-align: center; }

  /* Video cards : horizontal sur mobile */
  .video-card { display: flex; flex-direction: row; }
  .video-thumb-wrap { padding-top: 0; width: 130px; min-width: 130px; height: 80px; flex-shrink: 0; }
  .video-info { padding: 8px 10px; flex: 1; }
  .video-title { font-size: 12px; -webkit-line-clamp: 3; }
  .video-duration { font-size: 9px; }

  /* Tags */
  .tags-cloud { gap: 5px; }
  .tag-link { font-size: 10px; padding: 3px 8px; }
}

/* ---- 480px — Petits mobiles ---- */
@media (max-width: 480px) {
  .container { padding: 0 10px; }
  html { font-size: 14px; }

  .header-inner { height: 50px; }
  .logo-box { font-size: 15px; padding: 5px 8px; }

  .hero-main { min-height: 220px; }
  .hero-main .entry-title { font-size: 16px; }

  .post-card .card-thumb-wrap { width: 90px; min-width: 90px; height: 80px; }
  .post-card .card-title { font-size: 12px; }

  .channel-thumb { width: 70px; }
  .channel-name { font-size: 13px; }

  .radio-big-title { font-size: 20px; }
  .btn-radio-listen { font-size: 12px; padding: 10px 16px; }

  .stat-boxes { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .section-title { letter-spacing: 1.5px; }

  /* Topbar minimal */
  .ticker-label { font-size: 9px; padding: 2px 6px; }
  .ticker-text { font-size: 11px; }

  /* Mobile menu plus large */
  #mobile-menu { width: 100%; max-width: 100%; }
}

/* ---- UTILITAIRES RESPONSIVE ---- */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .show-mobile-only { display: none !important; }
}

/* Viewport meta fix pour les inputs */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important; /* Évite le zoom iOS sur focus */
  }
}

/* Amélioration touch targets */
@media (hover: none) and (pointer: coarse) {
  .post-card,
  .video-card,
  .channel-card,
  .program-item,
  .sidebar-news-item {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(204, 0, 0, 0.1);
  }
  .btn-search, .btn-lang, .btn-hamburger,
  .live-play-btn, .radio-mini-play,
  .btn-radio-listen, .btn-submit {
    min-height: 44px;
    min-width: 44px;
  }
  nav a, .footer-nav-list a {
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }
  #sub-navigation li>a {
    padding: 12px 14px !important;
  }
}

/* Smooth scroll mobile */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Safe area pour iPhone avec notch */
@supports (padding: env(safe-area-inset-top)) {
  #masthead { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  #topbar   { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  #colophon .footer-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   AMÉLIORATIONS RESPONSIVE COMPLÈTES v1.7
   Mobile-first — Téléphone & Tablette
============================================================ */

/* ---- Safe area barre radio (iPhone notch/home indicator) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  body.jo-radio-active { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .jo-radio-bar--bottom {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(56px + env(safe-area-inset-bottom));
  }
  .jo-radio-bar--bottom .jo-radio-bar__inner { margin-bottom: env(safe-area-inset-bottom); }
}

/* ---- TABLETTE : 768px–1024px ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 0 20px; }

  /* Header */
  .header-inner { gap: 12px; }
  .main-nav > ul { gap: 0; }
  .main-nav > ul > li > a { padding: 0 10px; font-size: 12px; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-secondary { grid-template-columns: 1fr; }
  .hero-main { min-height: 340px; }

  /* Grilles */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .news-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Single */
  .single-layout { grid-template-columns: 1fr 280px; gap: 28px; }

  /* Radio grid */
  .radio-grid { grid-template-columns: 1fr; gap: 30px; }
  .radio-big-title { font-size: 28px; }

  /* Footer */
  .footer-widgets { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---- MOBILE LARGE : 480px–768px ---- */
@media (min-width: 481px) and (max-width: 768px) {
  /* Navigation sub */
  #sub-navigation { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #sub-navigation::-webkit-scrollbar { display: none; }
  #sub-navigation ul { flex-wrap: nowrap; }

  /* Hero : garder 2 colonnes si possible */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-secondary { display: grid; grid-template-columns: 1fr 1fr; }

  /* Cards : format horizontal sur tablette/mobile large */
  .post-card { display: flex; flex-direction: row; }
  .post-card .card-thumb-wrap { padding-top: 0; width: 140px; min-width: 140px; height: 100px; flex-shrink: 0; }
  .post-card .card-body { padding: 10px 14px; }
  .post-card .card-excerpt { display: none; }

  /* Section live */
  .live-grid { grid-template-columns: 1fr; }
}

/* ---- MOBILE : max 480px ---- */
@media (max-width: 480px) {

  /* ============ HEADER MOBILE ============ */
  .an24-lang-switcher { gap: 3px; }
  .btn-lang { padding: 4px 7px !important; font-size: 10px !important; }

  /* Menu hamburger plus accessible */
  .btn-hamburger { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }

  /* ============ TOPBAR MOBILE ============ */
  #topbar { padding: 4px 0; }
  .ticker-wrap { max-width: calc(100vw - 80px); }

  /* ============ NAV SECONDAIRE ============ */
  #sub-navigation { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; }
  #sub-navigation::-webkit-scrollbar { display: none; }
  #sub-navigation ul { flex-wrap: nowrap; display: flex; }
  #sub-navigation ul li { flex-shrink: 0; }

  /* ============ SECTION TITRES ============ */
  .section-title { font-size: 10px; letter-spacing: 1px; margin-bottom: 10px; }

  /* ============ CARDS HORIZONTALES ============ */
  /* Déjà défini dans 640px — on renforce */
  .post-card .card-thumb-wrap { width: 100px; min-width: 100px; height: 75px; border-radius: 4px 0 0 4px; }
  .post-card .card-title { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 3; }
  .post-card .card-meta { display: none; }
  .post-card .card-category { font-size: 9px; padding: 1px 5px; }
  .post-card .card-read-time { display: none; }

  /* ============ HERO ============ */
  .hero-main { min-height: 200px; border-radius: 0; }
  .hero-main .entry-title { font-size: 15px; line-height: 1.3; }
  .hero-main .card-category { font-size: 9px; }
  .hero-overlay { padding: 12px 10px 10px; }

  /* ============ LIVE / TV ============ */
  .live-section { padding: 20px 0; }
  .live-player-area { min-height: 180px; border-radius: 6px; }
  .live-channel-name { font-size: 15px; }
  .live-play-btn { width: 48px; height: 48px; }
  .channels-sidebar { gap: 6px; }
  .channel-card { padding: 8px 10px; gap: 8px; }
  .channel-thumb { width: 60px; height: 40px; }
  .channel-name { font-size: 12px; }

  /* ============ RADIO PAGE MOBILE ============ */
  .radio-grid { grid-template-columns: 1fr; gap: 20px; }
  .radio-big-title { font-size: 19px; line-height: 1.3; }
  .radio-big-title em { display: block; }
  .radio-desc { font-size: 13px; }
  .radio-freqs { gap: 5px; }
  .freq-chip { font-size: 10px; padding: 3px 8px; }
  .btn-radio-listen { width: 100%; text-align: center; justify-content: center; }
  .program-list { margin-top: 16px; }
  .program-item { padding: 10px 12px; }
  .prog-time { font-size: 12px; min-width: 42px; }
  .prog-name { font-size: 12px; }

  /* ============ ARTICLE SINGLE ============ */
  .entry-header { padding: 0 0 16px; }
  .entry-header .entry-title { font-size: 1.4rem; line-height: 1.3; }
  .entry-content { font-size: 15px; line-height: 1.8; }
  .entry-content p { margin-bottom: 1.2em; }
  .entry-byline { flex-direction: column; gap: 6px; align-items: flex-start; }
  .author-avatar { width: 28px; height: 28px; }
  .byline-author { font-size: 12px; }

  /* Share bar : scroll horizontal */
  .share-bar { overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .share-bar::-webkit-scrollbar { display: none; }
  .share-btn { flex-shrink: 0; font-size: 11px; padding: 6px 12px; }

  /* Related articles */
  .related-grid { grid-template-columns: 1fr !important; }

  /* ============ FOOTER MOBILE ============ */
  .footer-widgets { grid-template-columns: 1fr; gap: 20px; }
  .footer-logo-area { text-align: left; }
  .footer-about { font-size: 12px; }
  .footer-col-heading { font-size: 11px; margin-bottom: 8px; }
  .footer-nav-list { column-count: 2; column-gap: 10px; }
  .footer-nav-list a { font-size: 12px; padding: 4px 0; min-height: 36px; display: flex; align-items: center; }
  .footer-social-links { gap: 8px; margin-top: 14px; }
  .footer-social-link { width: 36px; height: 36px; font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 14px 0; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 8px 12px; }
  .footer-bottom-links a { font-size: 11px; }

  /* ============ WEBTV MOBILE ============ */
  .webtv-grid { grid-template-columns: 1fr !important; }
  .video-card { display: flex; flex-direction: row; }
  .video-thumb-wrap { padding-top: 0; width: 120px; min-width: 120px; height: 75px; }
  .video-title { font-size: 12px; -webkit-line-clamp: 3; }
  .video-category { font-size: 9px; }

  /* ============ SONDAGES ============ */
  .poll-option { padding: 8px 10px; font-size: 13px; }
  .poll-result-bar { height: 28px; }
  .poll-result-pct { font-size: 12px; }

  /* ============ POPUPS MOBILE ============ */
  .an24-popup-box { width: calc(100vw - 20px) !important; max-width: 100% !important; margin: 10px; border-radius: 10px; }
  .an24-popup-box.size-large, .an24-popup-box.size-fullscreen { width: calc(100vw - 20px) !important; }
  .an24-popup-nl-inner { padding: 20px 16px; }
  .an24-popup-nl-title { font-size: 1.4rem; }

  /* ============ RECHERCHE ============ */
  .search-overlay-input { font-size: 1.3rem; }
  .search-overlay-inner { padding: 16px; }

  /* ============ PAGE CONTACT ============ */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-detail { padding: 12px 14px; }

  /* ============ PAGE ABOUT ============ */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .team-card { padding: 12px; }
  .team-photo { width: 60px; height: 60px; }
  .team-name { font-size: 13px; }

  /* ============ ÉMISSIONS MOBILE ============ */
  .emissions-grid { grid-template-columns: 1fr !important; }
  .emission-card { flex-direction: row !important; }
  .emission-thumb { width: 100px !important; height: 70px !important; flex-shrink: 0; }

  /* ============ SCROLLBAR CUSTOM ============ */
  * { scrollbar-width: thin; scrollbar-color: #333 transparent; }
  *::-webkit-scrollbar { width: 4px; height: 4px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
}

/* ---- TRÈS PETITS ÉCRANS : max 360px ---- */
@media (max-width: 360px) {
  .container { padding: 0 8px; }
  .header-inner { height: 48px; }
  .logo-box { font-size: 14px; padding: 5px 7px; }
  .btn-hamburger svg { width: 18px; height: 18px; }
  .hero-main { min-height: 180px; }
  .hero-main .entry-title { font-size: 14px; }
  .post-card .card-thumb-wrap { width: 85px; min-width: 85px; height: 68px; }
  .news-grid { gap: 8px; }
  .an24-lang-switcher { display: none; } /* Trop petit, on masque */
}

/* ---- LANDSCAPE MOBILE (téléphone en mode paysage) ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .jo-radio-bar { height: 44px; }
  .jo-radio-bar__inner { height: 44px; }
  .jo-radio-bar__play-btn { width: 30px; height: 30px; }
  body.jo-radio-active { padding-bottom: 44px; }
  .hero-main { min-height: 160px; }
  .mobile-menu { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- IMPRESSION (masquer les éléments interactifs) ---- */
@media print {
  #topbar, #masthead, #sub-navigation, .jo-radio-bar,
  .jo-radio-reopen, .share-bar, .an24-popup-overlay,
  .an24-cookie-banner, .sidebar, .footer-widgets { display: none !important; }
  body { padding: 0 !important; color: #000 !important; background: #fff !important; }
  .entry-content { font-size: 12pt; line-height: 1.6; }
  a { color: #000 !important; text-decoration: none !important; }
}

