/*
Theme Name:   Business 24 TV Child
Theme URI:    https://www.business24tv.com/
Description:  Thème enfant pour Times News — Design sombre/doré Business 24 TV Africa
Author:       Sylvestre
Author URI:   https://devs-projects.xyz/
Template:     times-news
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  business24tv-child
Tags:         dark, news, africa, business, tv, child-theme
*/

/* ============================================================
   VARIABLES GLOBALES — Palette Business 24 TV
   ============================================================ */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96B;
  --dark:        #080C17;
  --dark2:       #0E1425;
  --dark3:       #141B2E;
  --mid:         #1E2840;
  --text:        #D8DDE8;
  --muted:       #6B7591;
  --red:         #E03030;
  --white:       #F5F7FC;
  --max-width:   1400px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark) !important;
  color: var(--text) !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   TICKER — Bandeau défilant
   ============================================================ */
.b24-ticker {
  background: var(--gold);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 32px;
  position: relative;
  z-index: 200;
}

.b24-ticker__label {
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.b24-ticker__dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: b24-pulse 1.2s infinite;
  flex-shrink: 0;
}

.b24-ticker__track {
  display: flex;
  white-space: nowrap;
  animation: b24-ticker-scroll 40s linear infinite;
  gap: 60px;
  padding-left: 40px;
}

.b24-ticker__track:hover {
  animation-play-state: paused;
}

.b24-ticker__item {
  color: #000;
  cursor: default;
}

.b24-ticker__item a {
  color: #000;
  text-decoration: none;
}

.b24-ticker__item a:hover {
  text-decoration: underline;
}

@keyframes b24-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ANIMATIONS GLOBALES
   ============================================================ */
@keyframes b24-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes b24-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes b24-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */
.site-header,
#masthead,
.b24-header {
  background: var(--dark2) !important;
  border-bottom: 1px solid rgba(201,168,76,0.2) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
}

.b24-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ——— Logo custom (image uploadée) ——— */
.site-branding,
.b24-header .site-branding {
  display: flex;
  align-items: center;
}

/* Lien autour du logo custom */
.custom-logo-link,
.site-branding a.custom-logo-link {
  display:        flex !important;
  align-items:    center !important;
  text-decoration: none !important;
  border:         none !important;
  background:     none !important;
  padding:        0 !important;
}

/* Image logo — forcer taille et affichage */
.custom-logo,
.custom-logo-link img,
.site-branding img.custom-logo {
  max-height:    50px !important;
  width:         auto !important;
  height:        auto !important;
  max-width:     220px !important;
  display:       block !important;
  object-fit:    contain !important;
  /* Pas de filtre — respecter le logo couleur original */
}

/* ——— Logo texte (fallback si pas d'image) ——— */
.b24-logo,
.site-branding a.b24-logo {
  font-family:     'Barlow Condensed', sans-serif !important;
  font-weight:     800 !important;
  font-size:       1.8rem !important;
  letter-spacing:  -0.02em !important;
  color:           var(--white) !important;
  text-decoration: none !important;
  display:         flex !important;
  align-items:     center !important;
  gap:             2px !important;
}

.b24-logo__accent {
  color: var(--gold);
}

.b24-logo__sub {
  font-size:      0.6rem;
  font-weight:    600;
  color:          var(--muted);
  letter-spacing: 0.1em;
  margin-left:    4px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Actions header */
.b24-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Bouton DIRECT */
.b24-btn-live {
  background: var(--red);
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease;
  text-transform: uppercase;
}

.b24-btn-live:hover {
  background: #c02020;
  color: #fff !important;
}

.b24-btn-live__dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: b24-pulse 1s infinite;
  flex-shrink: 0;
}

/* Icône recherche */
.b24-search-toggle {
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
}

.b24-search-toggle:hover,
.b24-search-toggle:focus {
  color: var(--gold);
  outline: none;
}

/* Overlay de recherche */
.b24-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,23,0.95);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  animation: b24-fade-up 0.3s ease;
}

.b24-search-overlay.is-open {
  display: flex;
}

.b24-search-overlay__form {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
}

.b24-search-overlay__input {
  width: 100%;
  background: var(--mid);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 1.2rem;
  padding: 16px 24px;
  outline: none;
  transition: border-color 0.2s;
}

.b24-search-overlay__input:focus {
  border-color: var(--gold);
}

.b24-search-overlay__input::placeholder {
  color: var(--muted);
}

.b24-search-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.b24-search-overlay__close:hover {
  color: var(--white);
}

/* ============================================================
   NAVIGATION PRINCIPALE
   ============================================================ */
.b24-nav,
#site-navigation,
.main-navigation {
  background: var(--dark3) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.b24-nav__inner,
.b24-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  /* overflow-x: auto coupait les dropdowns — on scrolle uniquement si nécessaire
     via un wrapper interne, pas ici */
  overflow: visible;
  position: relative;
}

/* Wrapper scrollable pour le menu horizontal sur petits écrans
   sans couper les dropdowns verticaux */
.b24-nav__inner > ul,
#primary-menu {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.b24-nav__inner > ul::-webkit-scrollbar,
#primary-menu::-webkit-scrollbar { display: none; }

/* ——— NEUTRALISATION styles thème parent sur ul/li ——— */
.b24-nav ul,
.b24-nav ul li,
#site-navigation ul,
#site-navigation ul li,
#primary-menu,
#primary-menu li {
  list-style:      none !important;
  list-style-type: none !important;
  margin:          0 !important;
  padding:         0 !important;
}

/* Suppression des puces */
.b24-nav ul li::before,
.b24-nav ul li::marker,
#site-navigation ul li::before,
#site-navigation ul li::marker,
#primary-menu li::before,
#primary-menu li::marker {
  content: none !important;
  display: none !important;
}

/* ——— Niveau 1 : flex horizontal ——— */
#primary-menu,
.b24-nav > div > ul,
#site-navigation > nav > ul,
#site-navigation > div > ul {
  display:        flex !important;
  flex-direction: row !important;
  flex-wrap:      nowrap !important;
  align-items:    center !important;
  background:     transparent !important;
  border:         none !important;
  box-shadow:     none !important;
}

/* Li niveau 1 */
#primary-menu > li,
.b24-nav > div > ul > li,
#site-navigation > div > ul > li {
  display:  inline-flex !important;
  float:    none !important;
  position: relative !important;
  background: transparent !important;
  border:     none !important;
}

/* Liens nav niveau 1 et niveaux inférieurs */
#primary-menu li a,
.b24-nav ul li a,
#site-navigation ul li a {
  color:           var(--muted) !important;
  text-decoration: none !important;
  font-size:       0.78rem !important;
  font-weight:     600 !important;
  letter-spacing:  0.1em !important;
  text-transform:  uppercase !important;
  white-space:     nowrap !important;
  display:         block !important;
  background:      transparent !important;
  line-height:     1 !important;
  transition:      all 0.2s ease !important;
}

/* Liens niveau 1 : padding + border-bottom */
#primary-menu > li > a,
.b24-nav > div > ul > li > a {
  padding:      14px 18px !important;
  border-bottom: 2px solid transparent !important;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a,
.b24-nav > div > ul > li > a:hover {
  color:               var(--gold) !important;
  border-bottom-color: var(--gold) !important;
  background:          transparent !important;
}

/* ——— Sous-menus (dropdown) ——— */
#primary-menu li ul,
.b24-nav ul ul,
#site-navigation ul ul {
  /* Cachés par défaut */
  display:     none !important;
  /* Positionnement */
  position:    absolute !important;
  top:         100% !important;
  left:        0 !important;
  z-index:     9999 !important;
  /* Mise en page colonne */
  flex-direction: column !important;
  min-width:   220px !important;
  /* Styles */
  background:  var(--dark2) !important;
  border:      1px solid rgba(201,168,76,0.25) !important;
  box-shadow:  0 8px 30px rgba(0,0,0,0.6) !important;
}

/* Affichage au survol */
#primary-menu li:hover > ul,
#primary-menu li:focus-within > ul,
.b24-nav ul li:hover > ul,
.b24-nav ul li:focus-within > ul {
  display: flex !important;
}

/* Li dans les sous-menus */
#primary-menu li ul li,
.b24-nav ul ul li {
  display:    block !important;
  width:      100% !important;
  position:   relative !important;
  background: transparent !important;
  border:     none !important;
  box-shadow: none !important;
}

/* Liens dans les sous-menus */
#primary-menu li ul li a,
.b24-nav ul ul li a {
  padding:      10px 20px !important;
  border-bottom: none !important;
  border-left:  3px solid transparent !important;
  font-size:    0.75rem !important;
  white-space:  normal !important;
  color:        var(--text) !important;
}

#primary-menu li ul li a:hover,
.b24-nav ul ul li a:hover {
  color:            var(--gold) !important;
  border-left-color: var(--gold) !important;
  padding-left:     24px !important;
  background:       rgba(201,168,76,0.05) !important;
}

/* Sous-sous-menus : décalés à droite */
#primary-menu li ul li ul,
.b24-nav ul ul ul {
  top:  0 !important;
  left: 100% !important;
}

/* Indicateur visuel sous-menu sur le li parent */
#primary-menu li:has(> ul) > a::after,
.b24-nav ul li:has(> ul) > a::after {
  content:      ' ▾';
  font-size:    0.6rem;
  opacity:      0.6;
  margin-left:  3px;
}

/* ============================================================
   HERO — Article principal + sidebar
   ============================================================ */
.b24-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px 20px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  animation: b24-fade-up 0.6s ease;
}

/* Grande image */
.b24-hero__main {
  position: relative;
  overflow: hidden;
  background: var(--mid);
  cursor: pointer;
}

.b24-hero__main a {
  display: block;
  position: relative;
  overflow: hidden;
}

.b24-hero__main img,
.b24-hero__main .wp-post-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.7);
}

.b24-hero__main:hover img,
.b24-hero__main:hover .wp-post-image {
  transform: scale(1.04);
}

.b24-hero__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  text-transform: uppercase;
  z-index: 2;
}

.b24-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(8,12,23,0.97));
  padding: 50px 28px 28px;
  z-index: 2;
}

.b24-hero__cat {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.b24-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}

.b24-hero__title a {
  color: var(--white) !important;
  transition: color 0.2s;
}

.b24-hero__title a:hover {
  color: var(--gold) !important;
}

.b24-hero__meta {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Sidebar hero */
.b24-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.b24-hero__sidebar-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.b24-hero__sidebar-item:first-child { padding-top: 0; }
.b24-hero__sidebar-item:last-child  { border-bottom: none; }

.b24-hero__sidebar-item img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.2s;
}

.b24-hero__sidebar-item:hover img {
  filter: brightness(1);
}

.b24-hero__sidebar-item:hover .b24-si__title {
  color: var(--gold);
}

.b24-si__cat {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.b24-si__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  transition: color 0.2s;
}

.b24-si__date {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 5px;
}

/* ============================================================
   LIVE STRIP
   ============================================================ */
.b24-live-strip {
  background: linear-gradient(135deg, var(--mid), var(--dark3));
  border: 1px solid rgba(201,168,76,0.25);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.b24-live-strip__badge {
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 10px 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.b24-live-strip__badge .b24-ticker__dot {
  width: 9px;
  height: 9px;
}

.b24-live-strip__text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}

.b24-live-strip__text p {
  color: var(--muted);
  font-size: 0.85rem;
}

.b24-live-strip__cta {
  margin-left: auto;
  background: var(--gold);
  color: #000 !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 30px;
  text-decoration: none !important;
  transition: background 0.2s ease;
  display: inline-block;
}

.b24-live-strip__cta:hover {
  background: var(--gold-light);
  color: #000 !important;
}

/* ============================================================
   SECTIONS — Titres et conteneurs
   ============================================================ */
.b24-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px;
  animation: b24-fade-up 0.6s ease 0.1s both;
}

.b24-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.b24-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.b24-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.b24-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  flex-shrink: 0;
}

.b24-see-all {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.b24-see-all:hover {
  opacity: 0.7;
  color: var(--gold);
}

/* ============================================================
   GRILLES — Cards vidéos / articles
   ============================================================ */
.b24-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.b24-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.b24-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

/* ——— CARD ——— */
.b24-card {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
  text-decoration: none !important;
}

.b24-card:hover {
  transform: translateY(-3px);
}

.b24-card:hover .b24-card__title {
  color: var(--gold);
}

.b24-card__thumb {
  position: relative;
  overflow: hidden;
  background: var(--mid);
  margin-bottom: 14px;
  height: 180px;
}

.b24-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.4s ease;
}

.b24-card:hover .b24-card__thumb img {
  transform: scale(1.06);
}

.b24-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(201,168,76,0.15);
  z-index: 2;
}

.b24-card:hover .b24-card__play {
  opacity: 1;
}

.b24-play-btn {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.b24-play-btn svg {
  margin-left: 3px;
}

.b24-card:hover .b24-play-btn {
  transform: scale(1.1);
}

.b24-card__cat {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.b24-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  transition: color 0.2s ease;
  margin-bottom: 6px;
}

.b24-card__date {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Durée vidéo */
.b24-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(8,12,23,0.85);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  z-index: 2;
  letter-spacing: 0.05em;
}

/* ============================================================
   GRILLE GRANDE + PETITS (Reportages)
   ============================================================ */
.b24-card--large .b24-card__thumb {
  height: 280px;
}

.b24-card--large .b24-card__title {
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
}

/* ============================================================
   EMISSIONS — Grille d'icônes
   ============================================================ */
.b24-emission-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.b24-emission-pill {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: block;
}

.b24-emission-pill:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.b24-emission-pill__icon {
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.b24-emission-pill:hover .b24-emission-pill__icon {
  background: rgba(201,168,76,0.3);
}

.b24-emission-pill__icon svg {
  color: var(--gold);
}

.b24-emission-pill__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.2s;
}

.b24-emission-pill:hover .b24-emission-pill__name {
  color: var(--gold);
}

/* ============================================================
   MAGAZINE PME
   ============================================================ */
.b24-mag-grid {
  display: grid;
  grid-template-columns: 200px 200px 1fr;
  gap: 24px;
  align-items: center;
}

.b24-mag-cover {
  border: 2px solid rgba(201,168,76,0.3);
  overflow: hidden;
}

.b24-mag-cover img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.b24-mag-cover:hover img {
  transform: scale(1.04);
}

.b24-mag-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
}

.b24-mag-desc h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.b24-mag-desc p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Bouton or */
.b24-btn-gold {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.b24-btn-gold:hover {
  background: var(--gold);
  color: #000 !important;
}

/* ============================================================
   BARRE SOCIALE
   ============================================================ */
.b24-social-bar {
  background: var(--dark3);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.b24-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.b24-social-link:hover {
  color: var(--gold);
}

.b24-social-link svg {
  flex-shrink: 0;
}

/* Compteurs abonnés */
.b24-social-link__count {
  font-size: 0.65rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
#colophon,
.b24-footer {
  background: var(--dark2) !important;
  border-top: 2px solid rgba(201,168,76,0.3) !important;
  padding: 50px 40px 28px !important;
}

.b24-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.b24-footer__brand p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-top: 12px;
}

.b24-footer__col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.b24-footer__col a {
  display: block;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.b24-footer__col a:hover {
  color: var(--white) !important;
}

.b24-footer__bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

.b24-footer__bottom a {
  color: var(--muted);
  transition: color 0.2s;
}

.b24-footer__bottom a:hover {
  color: var(--gold);
}

/* ============================================================
   SIDEBAR WORDPRESS
   ============================================================ */
.widget-area,
.sidebar {
  background: transparent;
}

.widget {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title,
.widget .widgettitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--gold);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--muted);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text);
  transition: color 0.2s;
}

.widget ul li a:hover {
  color: var(--gold);
}

/* Widget de recherche */
.widget_search input[type="search"] {
  width: 100%;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.widget_search input[type="search"]:focus {
  border-color: var(--gold);
}

.widget_search input[type="submit"] {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.widget_search input[type="submit"]:hover {
  background: var(--gold-light);
}

/* ============================================================
   ARTICLE SINGLE — Vue détaillée
   ============================================================ */
.single-post .entry-header,
.b24-single-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.single-post .entry-title,
.b24-single-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.single-post .entry-meta,
.b24-single-meta {
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 30px;
}

.single-post .entry-meta .cat-links a,
.b24-single-meta .b24-cat {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-post .entry-content,
.b24-single-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 60px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.single-post .entry-content p,
.b24-single-content p {
  margin-bottom: 1.5em;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin: 2em 0 0.8em;
}

.single-post .entry-content a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.single-post .entry-content a:hover {
  border-bottom-color: var(--gold);
}

.single-post .entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 2em 0;
  color: var(--muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.single-post .entry-content figure {
  margin: 2em 0;
}

.single-post .entry-content figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Thumbnail single */
.single-post .post-thumbnail {
  max-width: 860px;
  margin: 20px auto;
  padding: 0 40px;
}

.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  filter: brightness(0.9);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.b24-pagination,
.navigation.pagination {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--muted);
}

/* ============================================================
   CATEGORIE / ARCHIVE
   ============================================================ */
.b24-archive-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px 20px;
}

.b24-archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.b24-archive-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.b24-breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 40px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.b24-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.b24-breadcrumb a:hover {
  color: var(--gold);
}

.b24-breadcrumb__sep {
  opacity: 0.4;
}

.b24-breadcrumb__current {
  color: var(--text);
}

/* ============================================================
   PAGE 404
   ============================================================ */
.b24-404 {
  text-align: center;
  padding: 100px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.b24-404__code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.7;
}

.b24-404__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 16px;
}

.b24-404__text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   OVERRIDES TIMES NEWS — Neutralisation du thème parent
   ============================================================ */

/* Fond blanc → fond sombre */
body.b24-active,
.b24-active .site,
.b24-active #page {
  background: var(--dark) !important;
}

/* Suppression des styles parent conflictuels */
.b24-active .site-header {
  background: var(--dark2) !important;
}

.b24-active .main-navigation .menu > li > a {
  color: var(--muted) !important;
}

.b24-active .entry-title a {
  color: var(--white) !important;
}

.b24-active .entry-title a:hover {
  color: var(--gold) !important;
}

/* ============================================================
   CHARGEMENT / LAZY IMAGES
   ============================================================ */
.b24-img-lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.b24-img-lazy.loaded {
  opacity: 1;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.b24-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: b24-spin 0.8s linear infinite;
}

/* ============================================================
   RESPONSIVE — Tablette (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .b24-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .b24-emission-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .b24-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .b24-mag-grid {
    grid-template-columns: 160px 160px 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .b24-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .b24-hero__main img,
  .b24-hero__main .wp-post-image {
    height: 280px;
  }

  .b24-hero__title {
    font-size: 1.4rem;
  }

  .b24-hero__sidebar {
    display: none; /* masqué sur mobile, affichage vertical inline */
  }

  .b24-header__inner {
    padding: 0 20px;
    height: 60px;
  }

  .b24-logo {
    font-size: 1.4rem !important;
  }

  .b24-nav__inner,
  .b24-nav .nav-inner {
    padding: 0 16px;
  }

  .b24-section {
    padding: 24px 20px;
  }

  .b24-grid-4,
  .b24-grid-3,
  .b24-grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .b24-emission-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .b24-live-strip {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .b24-live-strip__cta {
    margin: 0 auto;
  }

  .b24-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .b24-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .b24-mag-grid {
    grid-template-columns: 1fr;
  }

  .b24-social-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
  }

  .single-post .entry-title,
  .b24-single-title {
    font-size: 1.6rem;
  }

  .single-post .entry-content,
  .b24-single-content {
    padding: 0 20px 40px;
  }

  .single-post .entry-header,
  .b24-single-header {
    padding: 24px 20px 0;
  }

  .single-post .post-thumbnail {
    padding: 0 20px;
  }
}

/* ============================================================
   RESPONSIVE — Très petit (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .b24-grid-4,
  .b24-grid-3 {
    grid-template-columns: 1fr;
  }

  .b24-emission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .b24-card--large .b24-card__thumb {
    height: 200px;
  }

  .b24-hero__title {
    font-size: 1.2rem;
  }

  .b24-mag-grid {
    grid-template-columns: 1fr 1fr;
  }

  .b24-mag-desc {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .b24-ticker,
  .b24-live-strip,
  .b24-social-bar,
  .b24-nav,
  header,
  footer {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ============================================================
   ELEMENTOR — Intégration palette B24
   Cible toutes les pages construites avec Elementor pour
   forcer le fond sombre, les polices et les couleurs sans
   casser le builder ni les widgets Elementor.
   ============================================================ */

/* ── 1. Fond & couleur de base sur le body Elementor ── */
body.elementor-page,
body.elementor-default,
.elementor-page #page,
.elementor-page .site-content,
.elementor-page #content {
  background: var(--dark) !important;
  color: var(--text) !important;
}

/* ── 2. Sections / conteneurs Elementor ── */
.elementor-section,
.elementor-container,
.e-container,
.e-con,
.elementor-widget-wrap {
  /* Ne pas forcer le fond ici — laisser Elementor gérer par section.
     On force uniquement si aucun fond n'est défini (transparent). */
}

/* Sections sans fond défini → fond sombre */
.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-top-section {
  max-width: 1400px;
}

/* Fond blanc/clair explicitement défini par Elementor → overrider */
.elementor-page .elementor-section[data-settings*='"background_color":"#ffffff"'],
.elementor-page .elementor-section[data-settings*='"background_color":"#fff"'],
.elementor-page .elementor-section[data-settings*='"background_color":"#FFFFFF"'] {
  background-color: var(--dark2) !important;
}

/* ── 3. Typographie globale sur pages Elementor ── */
.elementor-page,
.elementor-page p,
.elementor-page li,
.elementor-page td,
.elementor-page span:not(.elementor-icon):not([class*="eicon"]) {
  font-family: 'Barlow', sans-serif !important;
  color: var(--text);
}

.elementor-page h1,
.elementor-page h2,
.elementor-page h3,
.elementor-page .elementor-heading-title {
  font-family: 'Playfair Display', serif !important;
  color: var(--white) !important;
}

.elementor-page h4,
.elementor-page h5,
.elementor-page h6 {
  font-family: 'Barlow Condensed', sans-serif !important;
  color: var(--white) !important;
  letter-spacing: 0.06em;
}

/* Widget texte Elementor */
.elementor-widget-text-editor .elementor-widget-container,
.elementor-widget-text-editor p {
  color: var(--text) !important;
  font-family: 'Barlow', sans-serif !important;
  line-height: 1.75 !important;
}

/* Widget heading */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Playfair Display', serif !important;
  color: var(--white) !important;
}

/* ── 4. Boutons Elementor → palette or/rouge ── */
.elementor-button,
.elementor-button-wrapper .elementor-button {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
}

/* Bouton primaire sans couleur définie → or */
.elementor-button.elementor-size-md:not([style*="background"]),
.elementor-button-primary {
  background: var(--gold) !important;
  color: #000 !important;
  border: none !important;
}

.elementor-button.elementor-size-md:not([style*="background"]):hover {
  background: var(--gold-light) !important;
}

/* ── 5. Liens dans Elementor ── */
.elementor-page a:not(.elementor-button):not([class*="logo"]) {
  color: var(--gold);
  transition: color 0.2s;
}
.elementor-page a:not(.elementor-button):not([class*="logo"]):hover {
  color: var(--gold-light);
}

/* ── 6. Images Elementor ── */
.elementor-widget-image img,
.elementor-image img {
  max-width: 100%;
  height: auto;
}

/* ── 7. Séparateurs Elementor ── */
.elementor-divider-separator {
  border-color: rgba(201,168,76,0.25) !important;
}

/* ── 8. Colonnes / inner sections fond ── */
.elementor-column-wrap,
.elementor-widget-wrap,
.e-con-inner {
  /* transparent par défaut — Elementor gère */
}

/* Colonnes avec fond blanc détecté → sombre */
.elementor-column[style*="background-color: rgb(255, 255, 255)"],
.elementor-column[style*="background-color:#fff"],
.elementor-column[style*="background-color: #fff"],
.elementor-column[style*="background-color:#ffffff"],
.elementor-column[style*="background-color: #ffffff"] {
  background-color: var(--dark2) !important;
}

/* ── 9. Formulaires dans Elementor (Contact Form 7, WPForms…) ── */
.elementor-page input[type="text"],
.elementor-page input[type="email"],
.elementor-page input[type="tel"],
.elementor-page input[type="url"],
.elementor-page textarea,
.elementor-page select {
  background: var(--mid) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--white) !important;
  font-family: 'Barlow', sans-serif !important;
  padding: 10px 16px !important;
  transition: border-color 0.2s !important;
  border-radius: 0 !important;
}

.elementor-page input[type="text"]:focus,
.elementor-page input[type="email"]:focus,
.elementor-page textarea:focus {
  border-color: var(--gold) !important;
  outline: none !important;
}

.elementor-page input[type="text"]::placeholder,
.elementor-page input[type="email"]::placeholder,
.elementor-page textarea::placeholder {
  color: var(--muted) !important;
}

.elementor-page input[type="submit"],
.elementor-page button[type="submit"],
.elementor-page .wpcf7-submit {
  background: var(--gold) !important;
  color: #000 !important;
  border: none !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  border-radius: 0 !important;
}

.elementor-page input[type="submit"]:hover,
.elementor-page .wpcf7-submit:hover {
  background: var(--gold-light) !important;
}

/* ── 10. Tableaux dans Elementor ── */
.elementor-page table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.elementor-page table th {
  background: var(--mid);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.elementor-page table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

.elementor-page table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ── 11. Popups & overlays Elementor ── */
.elementor-popup-modal .dialog-widget-content,
.elementor-location-popup .elementor-section-wrap {
  background: var(--dark2) !important;
  color: var(--text) !important;
}

/* ── 12. Canvas Elementor (page sans header/footer) ── */
body.elementor-editor-active,
.elementor-edit-mode {
  /* Laisser tel quel dans le builder pour ne pas gêner l'édition */
  background: var(--dark) !important;
}

/* ── 13. Widget icon-box, image-box ── */
.elementor-icon-box-title,
.elementor-image-box-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  color: var(--white) !important;
  letter-spacing: 0.05em;
}

.elementor-icon-box-description,
.elementor-image-box-description {
  color: var(--muted) !important;
  font-family: 'Barlow', sans-serif !important;
}

.elementor-icon {
  color: var(--gold) !important;
}

/* ── 14. Accordion / Toggle ── */
.elementor-accordion .elementor-tab-title,
.elementor-toggle .elementor-tab-title {
  background: var(--mid) !important;
  color: var(--white) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  letter-spacing: 0.05em;
  border-color: rgba(255,255,255,0.07) !important;
}

.elementor-accordion .elementor-tab-title.elementor-active,
.elementor-toggle .elementor-tab-title.elementor-active {
  color: var(--gold) !important;
  border-left: 3px solid var(--gold) !important;
}

.elementor-accordion .elementor-tab-content,
.elementor-toggle .elementor-tab-content {
  background: var(--dark3) !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.05) !important;
}

/* ── 15. Tabs Elementor ── */
.elementor-tabs .elementor-tab-title {
  background: var(--mid) !important;
  color: var(--muted) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.elementor-tabs .elementor-tab-title.elementor-active {
  background: var(--dark3) !important;
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
}

.elementor-tabs .elementor-tab-content {
  background: var(--dark3) !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.05) !important;
}

/* ── 16. Alerte / Notice dans Elementor ── */
.elementor-alert {
  background: var(--mid) !important;
  border-left: 3px solid var(--gold) !important;
  color: var(--text) !important;
}

.elementor-alert .elementor-alert-title {
  color: var(--white) !important;
}

/* ── 17. Carte / Card widget Pro ── */
.elementor-posts .elementor-post__card,
.elementor-posts-container .elementor-post {
  background: var(--dark3) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

.elementor-posts .elementor-post__title a {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif !important;
}

.elementor-posts .elementor-post__title a:hover {
  color: var(--gold) !important;
}

.elementor-posts .elementor-post__excerpt p {
  color: var(--muted) !important;
}

/* ── 18. Slider / Carousel Elementor ── */
.elementor-swiper-button,
.swiper-button-prev,
.swiper-button-next {
  color: var(--gold) !important;
}

.swiper-pagination-bullet-active {
  background: var(--gold) !important;
}

/* ── 19. Page Elementor sans sidebar (canvas full-width) ── */
.elementor-page .site-content > article,
.elementor-page .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── 20. Assurer que le wrapper de page ne crée pas de fond blanc ── */
.elementor-page #page,
.elementor-page .site,
.elementor-page #content,
.elementor-page main,
.elementor-page #primary,
.elementor-page .content-area {
  background: transparent !important;
}

/* ============================================================
   ESPACES PUBLICITAIRES — Times News Sidebars
   ============================================================ */

/* ── Advertise Area (au-dessus du header) ── */
.b24-advertise-area {
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.b24-advertise-area__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b24-advertise-area .widget,
.b24-advertise-area .widget_media_image {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b24-advertise-area img {
  max-height: 90px;
  width: auto;
  display: block;
}

/* ── Side Header Banner (à droite du logo dans le header) ── */
.b24-side-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  overflow: hidden;
}

.b24-side-banner .widget,
.b24-side-banner .widget_media_image {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.b24-side-banner img {
  max-height: 56px;
  width: auto;
  display: block;
}

/* ── TimesNews Template Sections ── */
.b24-tn-sections {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.b24-tn-section__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.b24-tn-section .widget,
.b24-tn-section .widget_media_image,
.b24-tn-section .widget_text {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.b24-tn-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Liens dans les zones pub */
.b24-advertise-area a,
.b24-side-banner a,
.b24-tn-section a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.b24-advertise-area a:hover,
.b24-side-banner a:hover,
.b24-tn-section a:hover {
  opacity: 0.85;
}

/* ── Responsive pub ── */
@media (max-width: 768px) {
  .b24-advertise-area__inner {
    padding: 8px 20px;
  }

  .b24-advertise-area img {
    max-height: 60px;
  }

  .b24-side-banner {
    display: none; /* Masqué sur mobile — header trop étroit */
  }

  .b24-tn-sections {
    padding: 0 20px 30px;
  }
}

/* ============================================================
   LAYOUT PRINCIPAL — Contenu + Colonne publicitaire
   ============================================================ */

/* Wrapper flex global */
.b24-layout {
  display: block;
  width: 100%;
}

.b24-layout--with-sidebar {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Zone contenu principale */
.b24-layout__main {
  flex: 1 1 auto !important;
  min-width: 0;
  overflow: hidden;
}

/* Quand sidebar active : sections internes pleine largeur de leur conteneur */
.b24-layout--with-sidebar .b24-hero,
.b24-layout--with-sidebar .b24-section,
.b24-layout--with-sidebar .b24-live-strip,
.b24-layout--with-sidebar .b24-divider,
.b24-layout--with-sidebar .b24-pagination,
.b24-layout--with-sidebar .b24-archive-header,
.b24-layout--with-sidebar .b24-breadcrumb,
.b24-layout--with-sidebar .b24-404,
.b24-layout--with-sidebar .b24-tn-sections {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Colonne publicitaire — largeur fixe intégrée dans le max-width global */
.b24-pub-col {
  width: 220px;
  flex: 0 0 220px;
  padding: 24px 10px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: none;
  align-self: flex-start;
}

.b24-pub-col::-webkit-scrollbar { display: none; }

/* Padding réduit sur les sections internes quand sidebar présente */
.b24-layout--with-sidebar .b24-section,
.b24-layout--with-sidebar .b24-hero,
.b24-layout--with-sidebar .b24-live-strip {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.b24-layout--with-sidebar .b24-section-header {
  margin-bottom: 16px;
}

.b24-layout--with-sidebar .b24-grid-4 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

.b24-layout--with-sidebar .b24-grid-3 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.b24-layout--with-sidebar .b24-emission-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Slot pub — images 100% largeur colonne */
.b24-pub-slot {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.2);
  overflow: hidden;
}

.b24-pub-slot .widget,
.b24-pub-slot .widget_media_image,
.b24-pub-slot .widget_text,
.b24-pub-slot .widget_custom_html {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.b24-pub-slot img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  transition: opacity 0.2s ease;
}

.b24-pub-slot a:hover img {
  opacity: 0.88;
}

.b24-pub-slot .widget-title,
.b24-pub-slot .widgettitle {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  background: var(--mid) !important;
}

.b24-pub-slot .widget-title::before {
  display: none !important;
}

/* ── Side Header Banner — taille correcte ── */
.b24-side-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
  max-height: 70px;
}

.b24-side-banner .widget,
.b24-side-banner .widget_media_image {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

/* Image side header : taille maximale dans le header */
.b24-side-banner img {
  max-height: 60px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* ── Advertise Area — taille correcte ── */
.b24-advertise-area__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.b24-advertise-area .widget,
.b24-advertise-area .widget_media_image {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.b24-advertise-area img {
  max-height: 100px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* ── Responsive — colonne pub ── */
@media (max-width: 1200px) {
  .b24-pub-col {
    width: 190px;
    flex: 0 0 190px;
    padding: 20px 8px 20px 10px;
  }
}

@media (max-width: 1024px) {
  .b24-pub-col {
    width: 170px;
    flex: 0 0 170px;
    padding: 16px 6px 16px 8px;
    gap: 12px;
  }
  .b24-layout--with-sidebar .b24-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .b24-layout--with-sidebar {
    flex-direction: column !important;
    max-width: 100%;
  }
  .b24-layout__main {
    width: 100% !important;
  }
  .b24-pub-col {
    width: 100% !important;
    flex: none !important;
    position: static !important;
    max-height: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    padding: 12px 16px !important;
    gap: 12px !important;
  }
  .b24-pub-slot {
    flex: 1;
    min-width: 130px;
    max-width: 180px;
  }
  .b24-side-banner {
    display: none;
  }
}

/* ============================================================
   FILTRES — Barre de filtres (reportages, JT, émissions)
   ============================================================ */
.b24-filters {
  max-width: 100%;
  padding: 16px 40px;
  background: var(--dark3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.b24-layout--with-sidebar .b24-filters {
  padding: 16px 20px;
}

.b24-filters__form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.b24-filters__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 12px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  transition: border-color 0.2s;
}

.b24-filters__search:focus-within {
  border-color: var(--gold);
}

.b24-filters__search svg {
  color: var(--muted);
  flex-shrink: 0;
}

.b24-filters__input {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  padding: 10px 0;
  width: 100%;
  outline: none;
}

.b24-filters__input::placeholder {
  color: var(--muted);
}

.b24-filters__select {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  padding: 10px 32px 10px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7591' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.b24-filters__select:focus {
  border-color: var(--gold);
}

.b24-filters__btn {
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.b24-filters__btn:hover {
  background: var(--gold-light);
}

.b24-filters__reset {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.b24-filters__reset:hover {
  color: var(--red);
}

.b24-filters__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .b24-filters {
    padding: 12px 16px;
  }
  .b24-filters__search {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .b24-filters__count {
    margin-left: 0;
  }
}

/* ============================================================
   GRILLE ÉMISSIONS — Miniatures avec image + nom
   ============================================================ */
.b24-emissions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.b24-emission-card {
  display: block;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.b24-emission-card:hover {
  transform: translateY(-3px);
}

.b24-emission-card__thumb {
  position: relative;
  overflow: hidden;
  background: var(--mid);
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
}

.b24-emission-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.b24-emission-card:hover .b24-emission-card__thumb img {
  filter: brightness(1);
  transform: scale(1.04);
}

.b24-emission-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.15);
}

.b24-emission-card__count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--gold);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
}

.b24-emission-card__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
  line-height: 1.3;
}

.b24-emission-card:hover .b24-emission-card__name {
  color: var(--gold);
}

.b24-emission-card__desc {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .b24-emissions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .b24-emissions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .b24-emissions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ============================================================
   SINGLE — Titre visible + suppression image si vidéo
   ============================================================ */

/* Titre article — couleur forcée */
.b24-single-title,
.single-post .entry-title,
.single .entry-title,
h1.entry-title {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif !important;
}

/* Iframe / vidéo dans le contenu : wrapper responsive */
.b24-single-content iframe,
.entry-content iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto 24px;
}

/* ============================================================
   PAGES STATIQUES — Fond blanc → fond sombre + police visible
   ============================================================ */

/* Pages WordPress normales (pas Elementor) */
.page:not(.elementor-page) #primary,
.page:not(.elementor-page) .site-content,
.page:not(.elementor-page) main,
.page:not(.elementor-page) .entry-content,
.page:not(.elementor-page) .entry-content p,
.page:not(.elementor-page) .entry-content li,
.page:not(.elementor-page) .entry-content td {
  background: transparent !important;
  color: var(--text) !important;
}

.page:not(.elementor-page) .entry-title,
.page:not(.elementor-page) h1.entry-title {
  color: var(--white) !important;
  font-family: 'Playfair Display', serif !important;
}

.page:not(.elementor-page) .entry-content h1,
.page:not(.elementor-page) .entry-content h2,
.page:not(.elementor-page) .entry-content h3,
.page:not(.elementor-page) .entry-content h4 {
  color: var(--white) !important;
}

.page:not(.elementor-page) .entry-content a {
  color: var(--gold) !important;
}

/* Fond page .hentry / article */
.page article.hentry,
.page .post,
.single article.hentry {
  background: transparent !important;
}

/* ============================================================
   SUPPRESSION "ARTICLES RELATIFS" — sur toutes les pages
   Times News affiche les related posts via plusieurs hooks/classes
   ============================================================ */

/* Classes communes des plugins/thèmes de related posts */
.related-posts,
.related_posts,
.yarpp-related,
.jetpack-related-posts,
.jp-relatedposts,
.crp_related,
.rpwwt-related-posts,
.zrp-relatedposts,
.related-articles,
.more-from-category,
#related-posts,
#yarpp-related,
.single-related-posts,
.post-related,

/* Times News spécifique */
.thim-related-posts,
.thim_related_posts,
[class*="related-post"],
[class*="related_post"],
[id*="related-post"],
[id*="related_post"],

/* Sections "Vous aimerez aussi" */
.you-may-also-like,
.also-like,
.more-stories {
  display: none !important;
}

/* ============================================================
   PAGE SINGLE / PAGES STATIQUES — Masquer sidebar Times News
   si elle contient des "articles relatifs" générés par le thème
   ============================================================ */
.single .widget_related_posts,
.page .widget_related_posts,
.single [class*="related"],
.page [class*="related"]:not(.b24-pub-col):not(.b24-pub-slot) {
  display: none !important;
}

/* ============================================================
   MENU RESPONSIVE — Hamburger + Drawer mobile
   ============================================================ */

/* Bouton hamburger — masqué sur desktop */
.b24-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.b24-menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation X quand ouvert */
.b24-menu-toggle.is-open .b24-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.b24-menu-toggle.is-open .b24-menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.b24-menu-toggle.is-open .b24-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay sombre derrière le drawer */
.b24-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,12,23,0.7);
  z-index: 149;
  backdrop-filter: blur(2px);
}

.b24-nav-overlay.is-open {
  display: block;
}

/* ── MOBILE : drawer latéral ── */
@media (max-width: 900px) {

  /* Afficher le bouton hamburger */
  .b24-menu-toggle {
    display: flex;
  }

  /* Cacher la nav par défaut */
  .b24-nav {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: var(--dark2) !important;
    border-right: 1px solid rgba(201,168,76,0.2) !important;
    border-bottom: none !important;
    z-index: 150 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    padding-top: 70px !important;
  }

  /* Ouvrir le drawer */
  .b24-nav.is-open {
    left: 0 !important;
  }

  .b24-nav__inner,
  .b24-nav .nav-inner {
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
  }

  /* Menu vertical dans le drawer */
  #primary-menu,
  .b24-nav > div > ul,
  #site-navigation > div > ul,
  #site-navigation > nav > ul {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  #primary-menu > li,
  .b24-nav > div > ul > li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }

  /* Liens niveau 1 dans le drawer */
  #primary-menu > li > a,
  .b24-nav > div > ul > li > a {
    padding: 14px 24px !important;
    border-bottom: none !important;
    border-left: 3px solid transparent !important;
    font-size: 0.82rem !important;
    color: var(--text) !important;
  }

  #primary-menu > li > a:hover,
  #primary-menu > li.current-menu-item > a {
    border-left-color: var(--gold) !important;
    color: var(--gold) !important;
    padding-left: 28px !important;
    background: rgba(201,168,76,0.05) !important;
  }

  /* Sous-menus dans le drawer — visibles directement */
  #primary-menu li ul,
  .b24-nav ul ul {
    position: static !important;
    display: none !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    background: var(--dark3) !important;
    border: none !important;
    border-left: 3px solid rgba(201,168,76,0.2) !important;
    box-shadow: none !important;
    margin-left: 16px !important;
  }

  /* Sous-menu ouvert via JS toggle */
  #primary-menu li.b24-submenu-open > ul,
  .b24-nav ul li.b24-submenu-open > ul {
    display: flex !important;
  }

  #primary-menu li ul li a,
  .b24-nav ul ul li a {
    padding: 10px 20px !important;
    border-left: none !important;
    font-size: 0.78rem !important;
    color: var(--muted) !important;
  }

  #primary-menu li ul li a:hover {
    color: var(--gold) !important;
    background: rgba(201,168,76,0.05) !important;
    padding-left: 26px !important;
  }

  /* Toggle bouton sous-menu dans le drawer */
  .b24-submenu-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 8px !important;
  }

  /* Indicateur ▾ masqué sur mobile */
  #primary-menu li:has(> ul) > a::after {
    display: none !important;
  }

  /* Logo dans le drawer (fermeture) */
  .b24-nav__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
  }

  .b24-nav__close:hover {
    color: var(--white);
  }
}

/* ── Très petit écran ── */
@media (max-width: 480px) {
  .b24-nav {
    width: 100% !important;
  }
}

/* ============================================================
   HOME LAYOUT — 2 colonnes (Main + Sidebar droite)
   ============================================================ */
.b24-home-layout {
  display: flex;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 0;
}

/* Colonne principale */
.b24-home-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* Colonne sidebar droite */
.b24-home-sidebar {
  width: 300px;
  flex: 0 0 300px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: none;
  align-self: flex-start;
}
.b24-home-sidebar::-webkit-scrollbar { display: none; }

/* Sections dans la colonne principale sans max-width propre */
.b24-home-main .b24-section,
.b24-home-main .b24-live-strip,
.b24-home-main .b24-divider,
.b24-home-main .b24-section--flush {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── PUB INLINE (dans la colonne principale) ── */
.b24-home-pub {
  padding: 0 40px 24px;
  display: flex;
  justify-content: center;
}
.b24-home-pub .widget,
.b24-home-pub .widget_media_image {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.b24-home-pub img {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 120px;
  object-fit: contain;
}

/* ============================================================
   À LA UNE — Hero + Articles secondaires
   ============================================================ */
.b24-section--flush {
  padding: 24px 40px 0;
}

.b24-aune-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  min-height: 300px;
}

/* Hero (grand article gauche) */
.b24-aune__hero {
  display: block;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  background: var(--mid);
}
.b24-aune__hero-img {
  position: relative;
  overflow: hidden;
  height: 300px;
}
.b24-aune__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.4s ease;
}
.b24-aune__hero:hover .b24-aune__hero-img img {
  transform: scale(1.04);
}
.b24-aune__hero-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mid);
}
.b24-aune__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  text-transform: uppercase;
  z-index: 2;
}
.b24-aune__hero-body {
  padding: 12px 0 0;
}
.b24-aune__hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.b24-aune__hero:hover .b24-aune__hero-title {
  color: var(--gold);
}
.b24-aune__hero-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Articles secondaires (colonne droite de la une) */
.b24-aune__secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.b24-aune__sec-item {
  display: block;
  text-decoration: none !important;
  flex: 1;
}
.b24-aune__sec-img {
  position: relative;
  overflow: hidden;
  height: 80px;
  background: var(--mid);
  margin-bottom: 6px;
}
.b24-aune__sec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.3s ease;
}
.b24-aune__sec-item:hover .b24-aune__sec-img img {
  transform: scale(1.05);
}
.b24-aune__sec-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--gold);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  text-transform: uppercase;
}
.b24-aune__sec-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  transition: color 0.2s;
  margin: 0;
}
.b24-aune__sec-item:hover .b24-aune__sec-title {
  color: var(--gold);
}

/* ============================================================
   SIDEBAR DROITE — Blocs
   ============================================================ */
.b24-hs-block {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.b24-hs-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  background: var(--mid);
}

.b24-hs-block__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.b24-hs-block__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--gold);
  flex-shrink: 0;
}

.b24-hs-block__see-all {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.b24-hs-block__see-all:hover {
  opacity: 0.7;
  color: var(--gold);
}

/* Items JT */
.b24-hs-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none !important;
  transition: background 0.2s;
}
.b24-hs-item:last-child { border-bottom: none; }
.b24-hs-item:hover { background: rgba(255,255,255,0.02); }

.b24-hs-item__img {
  width: 80px;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--mid);
}
.b24-hs-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.2s;
}
.b24-hs-item:hover .b24-hs-item__img img { filter: brightness(1); }
.b24-hs-item__placeholder {
  width: 100%;
  height: 100%;
  background: var(--mid);
}

.b24-hs-item__body { flex: 1; min-width: 0; }
.b24-hs-item__title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 4px;
  transition: color 0.2s;
}
.b24-hs-item:hover .b24-hs-item__title { color: var(--gold); }
.b24-hs-item__date {
  color: var(--muted);
  font-size: 0.68rem;
}

/* PME Magazine covers */
.b24-hs-pme-covers {
  display: flex;
  gap: 8px;
  padding: 12px;
  flex-wrap: wrap;
}
.b24-hs-pme-cover {
  flex: 1;
  min-width: 80px;
  max-width: 120px;
  display: block;
  text-decoration: none !important;
  transition: transform 0.2s;
}
.b24-hs-pme-cover:hover { transform: translateY(-2px); }
.b24-hs-pme-cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(201,168,76,0.2);
}
.b24-hs-pme-label {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 5px;
}

/* Pub dans sidebar */
.b24-hs-block--pub .widget,
.b24-hs-block--pub .widget_media_image {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.b24-hs-block--pub img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}
.b24-hs-block--pub .widget-title { display: none !important; }

/* Newsletter */
.b24-hs-block--newsletter {
  padding: 14px;
  background: var(--dark2);
  border-color: var(--gold);
}
.b24-hs-block--newsletter .b24-hs-block__title {
  margin-bottom: 8px;
}
.b24-hs-newsletter__text {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.b24-hs-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.b24-hs-newsletter__input {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.b24-hs-newsletter__input:focus { border-color: var(--gold); }
.b24-hs-newsletter__input::placeholder { color: var(--muted); }
.b24-hs-newsletter__btn {
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.b24-hs-newsletter__btn:hover { background: var(--gold-light); }

/* ============================================================
   RESPONSIVE HOME LAYOUT
   ============================================================ */
@media (max-width: 1200px) {
  .b24-home-sidebar {
    width: 260px;
    flex: 0 0 260px;
  }
  .b24-aune-grid {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 1024px) {
  .b24-home-sidebar {
    width: 220px;
    flex: 0 0 220px;
    padding: 16px 10px;
  }
  .b24-aune-grid {
    grid-template-columns: 1fr;
  }
  .b24-aune__secondary {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .b24-aune__sec-item { flex: 1; min-width: 160px; }
  .b24-home-main .b24-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .b24-home-main .b24-emission-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .b24-home-layout {
    flex-direction: column;
  }
  .b24-home-sidebar {
    width: 100%;
    flex: none;
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }
  .b24-hs-block {
    flex: 1;
    min-width: 260px;
  }
  .b24-hs-block--newsletter {
    min-width: 200px;
  }
  .b24-section--flush {
    padding: 16px 20px 0;
  }
  .b24-home-pub {
    padding: 0 20px 16px;
  }
  .b24-home-main .b24-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .b24-home-sidebar {
    flex-direction: column;
  }
  .b24-hs-block {
    min-width: 100%;
  }
  .b24-home-main .b24-grid-4 {
    grid-template-columns: 1fr !important;
  }
  .b24-home-main .b24-emission-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}



/* RAJOUT*/

@media (max-width: 991px) {  
	.affichepetit{display:flex !important}
	.affichegrand{display:none !important}
}

@media (min-width: 992px) {  
	.affichepetit{display:none !important}
	.affichegrand{display:block !important}
}

.b24-ticker__label {
  z-index: 1;
}

.b24-advertise-area__inner {
  padding: 12px !important;
}

.b24-ticker strong,
.b24-ticker a { color:#000 !important; opacity:1 !important}

.b24-pub-col{max-height:unset !important}

.b24-single-meta,
.wpr-grid-filters.elementor-clearfix.wpr-grid-filters-sep-right,
.wpr-grid-pagination.elementor-clearfix.wpr-grid-pagination-load-more,
.single-post.post-thumbnail,
.b24-archive-header p,
.inner-block .wpr-button-effect.wpr-button-none{
  display: none !important;
}
