/*
Theme Name: RTI News Imperial 2025
Theme URI: https://www.radioteleiimperial.com
Author: Radio Télé Impérial
Author URI: https://www.radioteleiimperial.com
Description: Thème newspaper professionnel pour Radio Télé Impérial - Media haïtien. Player radio, météo, ticker actualités, TV live, abonnement newsletter, traduction multilingue.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rti-theme
Tags: news, newspaper, responsive, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ──────────────── CSS VARIABLES ──────────────── */
:root {
  --rti-navy: #16265a;
  --rti-navy-dark: #0e1839;
  --rti-navy-mid: #16265a;
  --rti-red: #d32035;
  --rti-red-dark: #971827;
  --rti-red-light: #d32035;
  --rti-white: #ffffff;
  --rti-offwhite: #f3f4f8;
  --rti-gray-light: #e7e9f1;
  --rti-gray: #888;
  --rti-text: #161a2c;
  --rti-border: #e7e9f1;
  --rti-font-serif: 'Sora', 'Inter', Arial, sans-serif;
  --rti-font-sans: 'Inter', Arial, sans-serif;
}

/* ──────────────── RESET & BASE ──────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rti-font-sans);
  background: var(--rti-offwhite);
  color: var(--rti-text);
  font-size: 16px;
  line-height: 1.65;
  margin: 0; padding: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rti-navy); text-decoration: none; }
a:hover { color: var(--rti-red); }
ul, ol { padding-left: 1.5em; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rti-font-serif);
  line-height: 1.25;
  color: var(--rti-navy-dark);
}

/* ──────────────── UTILITIES ──────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section-heading {
  font-family: var(--rti-font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--rti-navy-dark);
  border-left: 4px solid var(--rti-red);
  padding-left: 14px;
  margin: 0 0 18px;
}
.btn-red {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--rti-red); color: white;
  border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 30px;
  font-family: var(--rti-font-sans);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-red:hover { background: var(--rti-red-dark); transform: translateY(-1px); color: white; }

/* ──────────────── TOP BAR ──────────────── */
#rti-topbar {
  background: var(--rti-navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 2px solid var(--rti-red);
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item .icon { color: var(--rti-red-light); font-size: 14px; }
#rti-live-time { font-weight: 700; color: var(--rti-red-light); letter-spacing: 1px; }
#rti-live-date { font-weight: 500; }

/* Weather */
.rti-weather {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 4px 14px; border-radius: 30px;
}
.rti-weather .temp { font-weight: 700; font-size: 14px; color: white; }
.rti-weather .city { font-size: 12px; color: rgba(255,255,255,0.55); }

/* Date courte (mobile) — masquée par défaut */
#rti-live-date-short { display: none; }

/* Bouton play radio dans la topbar (mobile) — masqué par défaut */
.rti-play-btn-topbar {
  display: none;
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.rti-play-btn-topbar svg { width: 11px; height: 11px; }

/* ──────────────── HEADER ──────────────── */
#masthead {
  background: linear-gradient(135deg, var(--rti-navy) 0%, var(--rti-navy-dark) 100%);
  padding: 18px 0;
  box-shadow: 0 8px 30px -10px rgba(11,20,48,0.5);
  position: sticky; top: 0; z-index: 500;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding img.custom-logo {
  width: 80px; height: 80px; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.site-branding .site-title-wrap { line-height: 1.1; }
.site-branding .site-title {
  font-family: var(--rti-font-serif);
  font-size: 26px; font-weight: 900;
  color: white; letter-spacing: -0.5px; margin: 0;
}
.site-branding .site-title a { color: white; text-decoration: none; }
.site-branding .site-description {
  font-size: 11px; color: rgba(255,255,255,0.5);
  letter-spacing: 2.5px; text-transform: uppercase; margin-top: 2px;
}
.header-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Radio Player Header */
.rti-radio-player {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  backdrop-filter: blur(6px);
  padding: 6px 8px 6px 16px;
  display: flex; align-items: center; gap: 10px;
  min-width: 190px;
}
.rti-live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rti-red-light);
  animation: rti-pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes rti-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.4); }
}
.rti-radio-player .station-info .label {
  font-size: 10px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.5px; display: block;
}
.rti-radio-player .station-info .name {
  font-size: 13px; font-weight: 700; color: white;
}
.rti-play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rti-red); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.1s;
}
.rti-play-btn:hover { background: var(--rti-red-dark); transform: scale(1.05); }
.rti-play-btn svg { width: 14px; height: 14px; fill: white; margin-left: 2px; }

/* TV Button */
.rti-tv-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--rti-red); color: white;
  border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 30px;
  font-family: var(--rti-font-sans);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.rti-tv-btn:hover { background: var(--rti-red-dark); transform: translateY(-1px); color: white; }
.rti-tv-btn svg { width: 18px; height: 18px; fill: white; }

/* Subscribe Button */
.rti-subscribe-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.35); cursor: pointer;
  padding: 10px 20px; border-radius: 30px;
  font-family: var(--rti-font-sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.rti-subscribe-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7); color: white;
}

/* ──────────────── NAVIGATION ──────────────── */
#site-navigation {
  background: var(--rti-navy-dark);
  border-bottom: 3px solid var(--rti-red);
}
.nav-menu-wrapper {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
#site-navigation .nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; white-space: nowrap;
}
#site-navigation .nav-menu li { position: relative; }
#site-navigation .nav-menu > li > a {
  display: inline-block; color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  padding: 12px 16px;
  text-transform: uppercase; letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
#site-navigation .nav-menu > li > a:hover,
#site-navigation .nav-menu > li.current-menu-item > a {
  color: white;
  border-bottom-color: var(--rti-red-light);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
#site-navigation .nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--rti-navy); min-width: 200px;
  list-style: none; padding: 4px 0; margin: 0;
  border-top: 2px solid var(--rti-red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 999;
}
#site-navigation .nav-menu li:hover > .sub-menu { display: block; }
#site-navigation .nav-menu .sub-menu li a {
  display: block; padding: 9px 16px;
  color: rgba(255,255,255,0.75); font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
#site-navigation .nav-menu .sub-menu li a:hover {
  background: rgba(255,255,255,0.08); color: white;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: rgba(255,255,255,0.8);
}
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* ──────────────── BREAKING NEWS ──────────────── */
.rti-breaking {
  background: var(--rti-red); color: white;
  padding: 8px 0; overflow: hidden;
}
.breaking-inner {
  display: flex; align-items: center; gap: 12px;
}
.breaking-label {
  background: var(--rti-navy-dark); color: white;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 5px 14px; border-radius: 30px;
  flex-shrink: 0;
}
.rti-ticker-wrap { overflow: hidden; flex: 1; }
.rti-ticker {
  font-size: 14px; font-weight: 500;
  animation: rti-ticker 32s linear infinite;
  display: inline-block; white-space: nowrap;
}
@keyframes rti-ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ──────────────── MAIN LAYOUT ──────────────── */
#primary-content {
  max-width: 1200px; margin: 24px auto; padding: 0 16px;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
}

/* ──────────────── FEATURED / HERO POST ──────────────── */
.rti-featured-post {
  background: white; border-radius: 20px; overflow: hidden;
  border: none; box-shadow: 0 1px 3px rgba(20,30,60,0.06); margin-bottom: 24px;
}
.featured-thumbnail {
  width: 100%; height: 320px; overflow: hidden; position: relative;
}
.featured-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.featured-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--rti-red); color: white;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 30px;
}
.featured-content { padding: 22px 24px; }
.post-category {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--rti-red); margin-bottom: 8px;
}
.featured-content h2 {
  font-family: var(--rti-font-serif);
  font-size: 26px; font-weight: 700; line-height: 1.3;
  color: var(--rti-navy-dark); margin-bottom: 12px;
}
.featured-content h2 a { color: inherit; }
.featured-content h2 a:hover { color: var(--rti-red); }
.featured-content .excerpt { color: #555; font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.post-meta {
  font-size: 12px; color: var(--rti-gray);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.post-meta .read-more {
  font-size: 12px; font-weight: 700;
  color: var(--rti-red); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-left: auto;
}
.post-meta .read-more:hover { color: var(--rti-red-dark); }

/* ──────────────── NEWS GRID ──────────────── */
.rti-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.rti-news-card {
  background: white; border: none;
  border-radius: 16px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(20,30,60,0.06);
  display: flex; flex-direction: column;
}
.rti-news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(20,30,60,0.18); }
.card-thumbnail { height: 160px; overflow: hidden; }
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.rti-news-card:hover .card-thumbnail img { transform: scale(1.04); }
.card-content { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-content h3 {
  font-family: var(--rti-font-serif);
  font-size: 15px; font-weight: 700; line-height: 1.35;
  color: var(--rti-navy-dark); margin-bottom: 8px; margin-top: 4px;
}
.card-content h3 a { color: inherit; }
.card-content h3 a:hover { color: var(--rti-red); }
.card-content .excerpt { font-size: 13px; color: #666; line-height: 1.55; margin-bottom: 10px; flex: 1; }
.card-meta { font-size: 11px; color: var(--rti-gray); margin-top: auto; }

/* ──────────────── SINGLE POST ──────────────── */
.single-post article {
  background: white; border: none;
  border-radius: 20px; overflow: hidden; padding: 30px;
  box-shadow: 0 1px 3px rgba(20,30,60,0.06);
}
.single-post .post-header { margin-bottom: 24px; }
.single-post h1.entry-title {
  font-size: 32px; font-weight: 900; line-height: 1.2;
  color: var(--rti-navy-dark); margin-bottom: 14px;
}
.entry-content { font-size: 16px; line-height: 1.75; color: #333; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 22px; border-left: 3px solid var(--rti-red); padding-left: 12px; margin: 1.5em 0 0.8em; }
.entry-content img { border-radius: 4px; margin: 1em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--rti-red);
  background: var(--rti-offwhite); margin: 1.5em 0;
  padding: 16px 20px; border-radius: 0 4px 4px 0;
  font-style: italic; font-size: 18px; color: var(--rti-navy);
}

/* ──────────────── SIDEBAR ──────────────── */
.rti-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: white; border: none;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,30,60,0.06);
}
.widget-title {
  background: var(--rti-navy); color: white;
  padding: 13px 18px;
  font-family: var(--rti-font-serif);
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.8px;
  border-left: none;
  margin: 0;
}
.widget-content { padding: 14px 16px; }

/* Latest Posts Widget */
.rti-latest-post {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--rti-gray-light);
}
.rti-latest-post:last-child { border-bottom: none; padding-bottom: 0; }
.rti-latest-post img {
  width: 62px; height: 52px;
  object-fit: cover; border-radius: 3px; flex-shrink: 0;
}
.rti-latest-post .info h4 {
  font-family: var(--rti-font-serif);
  font-size: 13px; font-weight: 700; line-height: 1.3;
  color: var(--rti-navy-dark); margin-bottom: 4px;
}
.rti-latest-post .info h4 a { color: inherit; }
.rti-latest-post .info h4 a:hover { color: var(--rti-red); }
.rti-latest-post .time { font-size: 11px; color: var(--rti-gray); }

/* Social Widget */
.rti-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rti-social-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; border-radius: 5px; color: white;
  text-decoration: none; font-size: 13px; font-weight: 700;
  transition: opacity 0.2s, transform 0.1s;
}
.rti-social-link:hover { opacity: 0.85; transform: scale(1.02); }
.rti-social-link.facebook { background: #1877f2; }
.rti-social-link.twitter { background: #14171a; }
.rti-social-link.youtube { background: #ff0000; }
.rti-social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366); }

/* Player Widget */
.rti-player-widget {
  text-align: center;
}
.player-box {
  background: linear-gradient(135deg, var(--rti-navy) 0%, var(--rti-navy-dark) 100%);
  padding: 18px;
  border-radius: 14px; display: flex;
  align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 12px;
}
.player-box .station-name {
  font-family: var(--rti-font-serif);
  font-size: 16px; font-weight: 700; color: white;
}
.player-box .station-sub {
  font-size: 12px; color: rgba(255,255,255,0.5);
}

/* ──────────────── SUBSCRIBE MODAL ──────────────── */
#rti-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,15,35,0.72); z-index: 9999;
  align-items: center; justify-content: center;
}
#rti-modal-overlay.active { display: flex; }
.rti-modal {
  background: white; width: 100%; max-width: 480px;
  margin: 16px; border-radius: 20px; overflow: hidden;
  animation: rti-slideUp 0.3s ease;
}
@keyframes rti-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rti-modal-header {
  background: linear-gradient(135deg, var(--rti-navy) 0%, var(--rti-navy-dark) 100%);
  padding: 26px 26px 20px;
  position: relative;
}
.rti-modal-header h2 {
  font-family: var(--rti-font-serif);
  font-size: 20px; font-weight: 700;
  color: white; margin: 0 0 4px;
}
.rti-modal-header p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }
.rti-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 22px;
  line-height: 1; transition: color 0.2s;
}
.rti-modal-close:hover { color: white; }
.rti-modal-body { padding: 22px 24px; }
.rti-form-row { margin-bottom: 14px; }
.rti-form-row label {
  display: block; font-size: 11px; font-weight: 700;
  color: #666; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.rti-form-row input,
.rti-form-row select {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--rti-border);
  border-radius: 10px; font-family: var(--rti-font-sans);
  font-size: 14px; color: var(--rti-text);
  transition: border-color 0.2s; outline: none;
}
.rti-form-row input:focus,
.rti-form-row select:focus { border-color: var(--rti-navy); }
.rti-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rti-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 13px; color: #555;
}
.rti-checkbox-row input[type="checkbox"] {
  width: auto; margin-top: 2px; accent-color: var(--rti-red); cursor: pointer;
}
.rti-form-submit {
  width: 100%; padding: 14px;
  background: var(--rti-red); color: white;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: var(--rti-font-sans);
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background 0.2s;
}
.rti-form-submit:hover { background: var(--rti-red-dark); }
.rti-form-note {
  text-align: center; font-size: 11px; color: var(--rti-gray); margin-top: 10px;
}

/* ──────────────── PAGINATION ──────────────── */
.rti-pagination {
  display: flex; gap: 6px; align-items: center;
  justify-content: center; margin: 24px 0;
}
.rti-pagination a,
.rti-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--rti-border); border-radius: 50%;
  font-size: 14px; font-weight: 600; color: var(--rti-navy);
  text-decoration: none; transition: all 0.2s;
}
.rti-pagination a:hover { background: var(--rti-navy); color: white; border-color: var(--rti-navy); }
.rti-pagination .current { background: var(--rti-red); color: white; border-color: var(--rti-red); }

/* ──────────────── FOOTER ──────────────── */
#colophon {
  background: var(--rti-navy-dark);
  color: rgba(255,255,255,0.7);
  margin-top: 48px;
  border-top: 3px solid var(--rti-red);
}
.footer-widgets {
  max-width: 1200px; margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.footer-brand .logo-wrap img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand .site-name {
  font-family: var(--rti-font-serif);
  font-size: 18px; font-weight: 700; color: white;
}
.footer-brand .tagline { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.5); }
.footer-col-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: white;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55); font-size: 13px;
  transition: color 0.2s; text-decoration: none;
}
.footer-col ul li a:hover { color: var(--rti-red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 14px 16px;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 960px) {
  #primary-content { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-branding .site-title { font-size: 18px; }
  .header-tools { flex-wrap: wrap; }
  .rti-radio-player { min-width: unset; }
  .featured-content h2 { font-size: 20px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 20px; }
  .menu-toggle { display: flex; align-items: center; padding: 10px 16px; }
  #site-navigation .nav-menu {
    display: none; flex-direction: column; white-space: normal;
    padding: 8px 0;
  }
  #site-navigation .nav-menu.toggled { display: flex; }
  #site-navigation .nav-menu > li > a { padding: 10px 16px; border-bottom: none; }
  .rti-form-row-2 { grid-template-columns: 1fr; }
  .rti-news-grid { grid-template-columns: 1fr; }
}

/* ──────────────── COMMENTS ──────────────── */
#comments { background: white; border: none; box-shadow: 0 1px 3px rgba(20,30,60,0.06); border-radius: 16px; padding: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--rti-gray-light); }
.comment .comment-author { font-weight: 700; color: var(--rti-navy); }
.comment-respond h2 { font-size: 20px; border-left: 3px solid var(--rti-red); padding-left: 12px; }

/* ═══════════════════════════════════════
   TOPBAR FIXES — no emojis, SVG icons
═══════════════════════════════════════ */
.topbar-icon {
  width: 13px; height: 13px;
  fill: rgba(255,255,255,.45);
  flex-shrink: 0;
  vertical-align: middle;
}
#rti-topbar .topbar-item {
  display: flex; align-items: center; gap: 6px;
}
#rti-live-time { font-weight: 700; color: rgba(255,255,255,.95); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
#rti-live-date { color: rgba(255,255,255,.8); }
.topbar-right { display: flex; align-items: center; }
/* Remove FM/Canal text from old header */
#rti-topbar .topbar-inner > div:last-child:not(.topbar-right) { display: none; }

/* ═══════════════════════════════════════
   TRANSLATE BUTTON
═══════════════════════════════════════ */
.rti-translate-wrap { position: relative; }
.rti-translate-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600;
  padding: 0 14px; height: 38px;
  font-family: inherit;
  border-left: 1px solid rgba(255,255,255,.1);
  transition: color .2s;
}
.rti-translate-btn:hover { color: #fff; }
.rti-lang-dd {
  display: none;
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--rti-navy-dark, #0f1a38);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; overflow: hidden;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  z-index: 9999;
}
.rti-lang-dd.show { display: block; }
.rti-lang-dd a {
  display: block; padding: 9px 14px;
  font-size: 12.5px; color: rgba(255,255,255,.65);
  text-decoration: none; transition: background .15s, color .15s;
}
.rti-lang-dd a:hover { background: rgba(255,255,255,.08); color: #fff; }
.rti-lang-dd a.on { color: #fff; font-weight: 700; background: rgba(255,255,255,.04); }

/* ═══════════════════════════════════════
   HEADER — fix overflow so player stays inside
═══════════════════════════════════════ */
#masthead { overflow: hidden; }
.header-inner {
  flex-wrap: nowrap !important;
  overflow: hidden;
}
.header-tools {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
  flex-wrap: nowrap;
}
.rti-radio-player {
  flex-shrink: 0;
  white-space: nowrap;
}
.station-info .label { font-size: 9px; }
.station-info .name  { font-size: 12px; white-space: nowrap; }

/* ═══════════════════════════════════════
   HAMBURGER BUTTON (mobile)
═══════════════════════════════════════ */
.rti-ham-btn {
  display: none;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  cursor: pointer; flex-shrink: 0;
}
.rti-ham-btn span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px; transition: all .28s;
}
.rti-ham-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rti-ham-btn.open span:nth-child(2) { opacity: 0; }
.rti-ham-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   MOBILE DRAWER
═══════════════════════════════════════ */
.rti-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
}
.rti-drawer.open { display: block; }
.rti-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
}
.rti-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 285px;
  background: linear-gradient(160deg, var(--rti-navy), var(--rti-navy-dark));
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.rti-drawer.open .rti-drawer-panel { transform: translateX(0); }
.rti-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rti-drawer-title {
  font-family: var(--rti-font-serif, 'Merriweather', serif);
  font-size: 15px; font-weight: 700; color: #fff;
}
.rti-drawer-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none;
  cursor: pointer; color: rgba(255,255,255,.6);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.rti-drawer-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.rti-drawer-player {
  margin: 14px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
}
.rti-drawer-nav { flex: 1; padding: 6px 0; }
.rti-drawer-menu { list-style: none; margin: 0; padding: 0; }
.rti-drawer-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.7);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.rti-drawer-menu li a:hover,
.rti-drawer-menu li.current-menu-item a {
  color: #fff; background: rgba(255,255,255,.05);
  border-left-color: var(--rti-red, #d32035);
}
.rti-drawer-foot {
  padding: 14px 18px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 9px;
}
.rti-drawer-langs {
  display: flex; gap: 7px; flex-wrap: wrap;
}
.rti-dlang {
  flex: 1; min-width: 44px;
  padding: 7px 4px; border-radius: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.6);
  cursor: pointer; text-align: center;
  font-family: inherit; transition: all .15s;
}
.rti-dlang:hover, .rti-dlang.on {
  background: rgba(255,255,255,.14); color: #fff;
}
.rti-dlang.on { border-color: var(--rti-red, #d32035); color: #ffaaaa; }

/* ═══════════════════════════════════════
   GOOGLE TRANSLATE — hide banner
═══════════════════════════════════════ */
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ═══════════════════════════════════════
   RESPONSIVE — show hamburger, hide tools
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .rti-ham-btn { display: flex !important; }
  .header-tools .rti-radio-player,
  .header-tools .rti-tv-btn,
  .header-tools .rti-subscribe-btn { display: none !important; }
  #site-navigation { display: none; }

  /* ── TOPBAR : tout sur une seule ligne, plus compact ── */
  #rti-topbar { font-size: 10.5px; padding: 5px 0; }
  .topbar-inner { flex-wrap: nowrap; gap: 6px; }
  .topbar-left { gap: 8px; flex-wrap: nowrap; overflow: hidden; flex: 1; min-width: 0; }
  .topbar-item { gap: 3px; flex-shrink: 0; }
  .topbar-icon { width: 11px; height: 11px; }

  /* Date : version courte uniquement */
  #rti-live-date { display: none; }
  #rti-live-date-short { display: inline; }

  /* Météo réduite, sans le nom de la ville */
  .rti-weather { padding: 3px 8px; gap: 4px; flex-shrink: 0; }
  .rti-weather .temp { font-size: 11px; }
  .rti-weather .city { display: none; }

  /* Colonne droite : bouton play + langue, compacts */
  .topbar-right { gap: 4px; flex-shrink: 0; }
  .rti-play-btn-topbar { display: flex; }
  .rti-translate-btn { padding: 0 6px; height: 26px; font-size: 10.5px; gap: 3px; border-left: none; }
}
