
/*
Theme Name: Iwacu Presse
Theme URI: https://www.iwacu-burundi.org/
Author: Laurence Dierickx
Author URI: https://www.iwacu-burundi.org/
Description: Nouveau design system pour le Groupe de Presse Iwacu, basé sur Bootstrap 5 avec une approche "Press-First" (Libre Baskerville & Inter).
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: iwacu
Tags: news, newspaper, magazine, white, red, responsive-layout, bootstrap-5

   TABLE DES MATIÈRES
   01. Variables & Tokens
   02. Base & Reset
   03. Utilitaires globaux
   04. Header — Barre hommage
   05. Header — Structure
   06. Header — Navigation principale
   07. Hero section
   08. Titres de rubriques
   09. Web TV & Grilles
   10. Catégorie — Layout Iwacu
   11. Article — Layout principal
   12. Article — Corps & Typographie
   13. Article — Sidebar
   14. Page institutionnelle (.page)
   15. Billet Antoine
   16. Longform
   17. Commentaires & Formulaire
   18. Footer
   19. Responsive
   20. Accessibilité & Focus
===================================================== */


/* =====================================================
   01. VARIABLES & TOKENS
===================================================== */

:root {
  /* — Couleurs de marque */
  --color-black:       #050505;
  --color-red:         #b11226;
  --color-green:       #0f7d3e;
  --color-dark-grey:   #545454;

  /* — Niveaux de gris */
  --color-grey-light:  #f4f4f4;
  --color-grey-medium: #dddddd;
  --color-text:        #1a1a1a;

  /* — Arrière-plans */
  --color-bg:          #ffffff;
  --color-bg-alt:      #f8f9fa;
  --color-bg-dark:     #111111;

  /* — Typographie */
  --font-serif:        'Libre Baskerville', serif;
  --font-sans:         'Inter', sans-serif;

  /* — Échelle typographique complète
       Couvre tout : du badge (xs) au titre de une (6xl)    */
  --text-xs:   0.65rem;   /*  ~10px — badges, labels caps   */
  --text-sm:   0.75rem;   /*  ~12px — meta, légendes        */
  --text-base: 0.85rem;   /*  ~14px — nav, corps secondaire */
  --text-md:   1rem;      /*  ~16px — corps principal       */
  --text-lg:   1.1rem;    /*  ~18px — corps article         */
  --text-xl:   1.25rem;   /*  ~20px — sous-titres           */
  --text-2xl:  1.4rem;    /*  ~24px — titres de cartes      */
  --text-3xl:  1.5rem;    /*  ~29px — section-title         */
  --text-4xl:  2.2rem;    /*  ~35px — titres hero           */
  --text-5xl:  2.6rem;      /*  ~48px — titre article page    */
  --text-6xl:  3rem;    /*  ~56px — titre article une     */

  /* — Espacements */
  --space-xs:  0.5rem;    /*   8px */
  --space-sm:  1rem;      /*  16px */
  --space-md:  1.5rem;    /*  24px */
  --space-lg:  2rem;      /*  32px */
  --space-xl:  3rem;      /*  48px */
  --space-2xl: 4rem;      /*  64px */
  --space-3xl: 5rem;      /*  80px */

  /* — Dimensions de layout */
  --sidebar-width:      300px;
  --content-max-width:  1200px;
  --article-max-width:  900px;
  --article-body-max:   1000px;

  /* — Transitions (source unique — plus d'inline ad hoc) */
  --transition-fast: all 0.2s ease-in-out;
  --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* — Focus ring accessible (rouge Iwacu semi-transparent) */
  --focus-ring: 0 0 0 3px rgba(177, 18, 38, 0.35);
}


/* =====================================================
   02. BASE & RESET
===================================================== */

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-black);
}

a {
  text-decoration: none;
  transition: var(--transition-base);
  color: inherit;
}

/* Surcharge Bootstrap : images sans arrondi (style presse papier) */
.img-fluid {
  border-radius: 0 !important;
  transition: opacity 0.3s ease;
}
.img-fluid:hover {
  opacity: 0.95;
}


/* =====================================================
   03. UTILITAIRES GLOBAUX
===================================================== */

.article-link {
  color: var(--color-black);
  transition: var(--transition-fast);
}
.article-link:hover {
  color: var(--color-red) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* Label générique : petites capitales grasses */
.x-small {
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Surcharge Bootstrap .lead */
.lead {
  font-size: var(--text-md);
  font-weight: 300;
}

.bg-light-paper {
  background-color: var(--color-bg-alt);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.ad-space {
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  font-family: var(--font-sans);
  color: #999;
}

.section-title {
  border-top: 3px solid var(--color-black);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--text-3xl);
}

/* Surcharge Bootstrap .btn-danger */
.btn-danger {
  font-size: var(--text-base);
}


/* =====================================================
   04. HEADER — BARRE HOMMAGE
===================================================== */

.promo-bar {
  background: linear-gradient(90deg, #000 0%, #1a1a1a 50%, #000 100%);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #333;
  padding: 5px !important;
}

.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1050;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.offcanvas-start {
    width: 300px; /* Adjust width as needed */
}

/* =====================================================
   05. HEADER — STRUCTURE
===================================================== */

.site-header {
  background: var(--color-bg);
}

/* — Barre supérieure */
.header-upper {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

/* Manchette centrale */
.manchette-menu {
  text-align: center;
  white-space: nowrap;
  margin-top: 20px;
}
.manchette-link {
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark-grey);
  transition: var(--transition-fast);
}
.manchette-link:hover { color: var(--color-red); }
.manchette-sep {
  margin: 0 0.4rem;
  color: #aaa;
}

/* Top bar (droite) */
.top-bar {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}
.top-bar a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  padding: 6px 12px;
  border: 1px solid var(--color-grey-medium);
  transition: var(--transition-fast);
}
.top-bar a:last-child {
  background-color: var(--color-black);
  color: #fff;
  border-color: var(--color-black);
}
.top-bar a:hover,
.top-bar a:focus-visible {
  background-color: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  outline: none;
}

/* Icônes gauche (loupe, hamburger) */
.header-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--space-sm);
  white-space: nowrap;
}
.header-icon {
  color: var(--color-dark-grey);
  font-size: 1.5rem;
  text-decoration: none;
  line-height: 1;
  padding-top: 20px;
  transition: var(--transition-fast);
}
.header-icon:hover { color: var(--color-red); }

/* Logo
   CORRECTION : padding réduit (50px → 30px) affiné par breakpoint */
.logo-bar {
  text-align: center;
  padding: 30px 0;
}
.logo-bar .navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-red);
}
.logo-bar img {
  width: 200px;
  height: auto;
  padding: 5px 0 10px 0;
  transition: transform 0.3s ease;
}
.page .logo-bar img,
.single .logo-bar img {
  width: 180px;
}


/* =====================================================
   06. HEADER — NAVIGATION PRINCIPALE
===================================================== */

/* Le conteneur principal reste le même */
.bottom-menu {
    background-color: var(--color-bg);
    border: none;
    position: relative;
    padding: 0.3rem 0;
}

/* Ligne grise traversante */
.bottom-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    background-color: var(--color-grey-medium);
    z-index: 1;
}

/* On remplace .navbar-nav par .navbar-nav (ta classe sur le UL) */
.bottom-menu .navbar-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    list-style: none; /* Important pour enlever les puces WP */
    margin: 0;
    padding: 0;
    gap: 0; /* On gère l'espace avec les tirets */
}

/* On cible .menu-item au lieu de .nav-item */
.bottom-menu .menu-item {
    background-color: var(--color-bg); /* Cache la ligne derrière chaque élément */
    display: flex;
    align-items: center;
}

/* On cible l'élément <a> directement au lieu de .nav-link */
.bottom-menu .menu-item a {
    background-color: var(--color-bg);
    padding: 0 4px;
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    color: #111;
    text-decoration: none; /* Enlève le soulignement par défaut */
    transition: var(--transition-fast);
}

.bottom-menu .menu-item a:hover {
    color: var(--color-green);
}

/* Séparateurs cadratin : On cible .menu-item au lieu de .nav-item */
.bottom-menu .menu-item:not(:last-child)::after {
    content: '—';
    margin: 0 5px;
    color: var(--color-grey-medium);
    background-color: var(--color-bg);
}

/* Surcharge Bootstrap pour le centrage si nécessaire */
.navbar-collapse {
    flex-grow: 0; /* Empêche le menu de prendre toute la largeur */
    width: 100%;
}web

/* =====================================================
   07. HERO SECTION (LGC Style)
===================================================== */

.gc-photo { position: relative; }

/* CORRECTION : z-index explicite pour éviter les masquages */
.gc-photo-title {
  background: var(--color-bg);
  padding: var(--space-lg);
  position: absolute;
  bottom: -2rem;
  left: var(--space-md);
  max-width: 90%;
  box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-grey-light);
  z-index: 2;
}
/* Le wrapper parent compense le débordement du titre flottant */
.gc-photo-wrapper {
  padding-bottom: 3rem;
}

.gc-photo-text {
  margin-top: 3.5rem;
  padding-left: var(--space-md);
  font-size: var(--text-md);
  color: var(--color-dark-grey);
  max-width: 85%;
}

/* Filets verticaux entre colonnes (desktop uniquement) */
@media (min-width: 992px) {
  .header-row { position: relative; }
  .header-row::before {
    content: '';
    position: absolute;
    top: 44px; bottom: 0; left: 58.33%;
    width: 1px;
    background: var(--color-grey-medium);
  }
  .header-row::after {
    content: '';
    position: absolute;
    top: 44px; bottom: 0; left: 75%;
    width: 1px;
    background: var(--color-grey-medium);
  }
}


/* =====================================================
   08. TITRES DE RUBRIQUES
===================================================== */

.rubrique-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}
.rubrique-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  padding-right: 15px;
  white-space: nowrap;
}
.rubrique-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-grey-medium);
}

.titre-ligne .ligne { height: 3px; display: flex; }
.titre-ligne .debut { background-color: var(--color-red); flex-basis: 25%; }
.titre-ligne .fin   { background-color: var(--color-grey-medium); flex-grow: 1; }

.gc-double-line {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  position: relative;
}
.gc-double-line::after {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 120px;
  height: 5px;
  background: var(--color-black);
}


/* =====================================================
   09. WEB TV & GRILLES
===================================================== */

.webtv-title{padding-top: 20px;
  font-size: 1.7em;}

html body.home.blog.wp-theme-iwacu-presse section.container.my-5.webtv-editorial div.row.g-5.align-items-start div.col-lg-7
{padding-top:20px;}

.title-webtv {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-black);
  display: inline-block;
  position: relative;
  padding-top: 30px;
}

h3.fw-bold{font-size:1.6em;}

.title-webtv::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--color-red);
  margin-top: 8px;
}

.webtv-editorial {
  padding: var(--space-2xl) 0;
  background-color: #fafafa;
  border-top: 1px solid #eee;
}
.webtv-readmore a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-green);
  transition: var(--transition-fast);
}
.webtv-readmore a:hover { color: var(--color-black); }

.webtv-container {
 
  padding-bottom: 60px;
  margin-top:20px;
}

.main-video-featured {
  background: var(--color-bg);
  padding: 30px;
  border: 1px solid #eee;
  margin-bottom: 50px;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.badge-live {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 700;
}
.meta-left {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-dark-grey);
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* — Grille Magazine */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.mag-card {
  background: var(--color-bg);
  border: 1px solid #e0e0e0;
  padding: 25px;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}
.mag-card:hover {
  border-top: 3px solid var(--color-red);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.mag-category {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 10px;
}
.mag-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  line-height: 1.4;
  margin-bottom: 20px;
}
.mag-title a { color: var(--color-black); transition: var(--transition-fast); }
.mag-title a:hover { color: var(--color-red); }
.mag-meta {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #bbb;
  border-top: 1px solid #f5f5f5;
  padding-top: 10px;
}

/* — Grille Grand Continent */
.gc-container {
  max-width: var(--content-max-width);
  margin: var(--space-lg) auto;
  padding: 0 20px;
}
.gc-category-header { margin-bottom: 50px; text-align: left; }
.gc-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: 8px;
  display: block;
}
.gc-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 60px 40px;
}
.gc-item { display: flex; flex-direction: column; }
.gc-img-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}
.gc-meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 12px;
}
.gc-sep { margin: 0 5px; color: #ccc; }
.gc-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 15px;
}
.gc-title a { color: var(--color-black); transition: var(--transition-fast); }
.gc-title a:hover { color: var(--color-red); }
.gc-excerpt {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gc-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.gc-keyword {
  background: var(--color-black);
  color: #fff !important;
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-fast);
}
.gc-keyword:hover { background: var(--color-red); }
.gc-comments { font-family: var(--font-sans); font-size: var(--text-xs); color: #bbb; }


/* =====================================================
   10. CATÉGORIE — LAYOUT IWACU
===================================================== */

.iw-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-2xl) 20px;
}
.iw-cat-header { margin-bottom: 50px; }
.iw-cat-title {
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.iw-red-line { width: 60px; height: 4px; background: var(--color-red); margin-top: 10px; }

.iw-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 60px;
}

.iw-hero-flex { display: flex; gap: 30px; align-items: center; margin-bottom: 60px; }
.iw-hero-text { flex: 1; }
.iw-hero-text h2 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin: 15px 0;
}
.iw-hero-img { flex: 1; }
.iw-hero-img img { width: 100%; height: auto; }

.iw-stream-container h4 { font-family: var(--font-sans); margin-top: 14px; }
.iw-stream-wrapper { margin-top: var(--space-xl); }
.iw-stream-item {
  border-left: 1px solid #e5e5e5 !important;
  padding-left: 2.5rem;
  padding-bottom: 3.5rem;
  position: relative;
  transition: border-color 0.3s ease;
}
.iw-stream-item:hover { border-left-color: var(--color-red) !important; }
.iw-stream-item .badge-date {
  position: absolute;
  left: 0; top: 0;
  transform: translateX(-50%);
  background-color: var(--color-bg-alt);
  border: 1px solid #e5e5e5;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 8px;
  text-transform: uppercase;
  z-index: 2;
}
.iw-date { font-family: var(--font-sans); font-size: var(--text-sm); color: #999; min-width: 80px; }
.iw-stream-content h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 5px; }
.iw-author { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 700; text-transform: uppercase; color: var(--color-red); }

.category h2 { font-size: var(--text-3xl); }
.category h3 { font-size: var(--text-2xl); }
.category .stream-content h3 { font-size: var(--text-2xl); }


/* =====================================================
   11. ARTICLE — LAYOUT PRINCIPAL
===================================================== */

.article-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.article-header {
  text-align: center;
  max-width: var(--article-max-width);
  margin: 0 auto 60px auto;
}
.kicker {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: 20px;
  display: block;
}
.article-title {
  font-family: var(--font-serif);
  font-size: var(--text-6xl);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 700;
}
.article-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  color: var(--color-dark-grey);
  line-height: 1.5;
  margin-bottom: 30px;
  font-weight: 400;
}

/* CORRECTION : flex-wrap pour éviter les ruptures imprévisibles
   quand auteur + date + rubrique + temps de lecture s'accumulent  */
.article-metadata {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--color-grey-medium);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
}

.featured-image { margin: 0 -20px 60px -20px; }
.featured-image img { width: 100%; height: auto; display: block; }
.featured-image figcaption {
  padding: 15px 20px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-dark-grey);
  background: var(--color-grey-light);
  border-bottom: 1px solid var(--color-grey-medium);
}

.article-body-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 60px;
  max-width: var(--article-body-max);
  margin: 0 auto;
  
}


/* =====================================================
   12. ARTICLE — CORPS & TYPOGRAPHIE
===================================================== */

.article-content p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  color: var(--color-text);
}

/* Lettrine — désactivée sous 640px (voir section 20) */
.article-content p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 5rem;
  float: left;
  line-height: 0.85;
  margin-right: 12px;
  margin-top: 5px;
  color: var(--color-dark-grey);
}

.article-content h2 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-black);
  margin: var(--space-xl) 0 var(--space-md) 0;
  padding-bottom: 10px;
  line-height: 1.3;
}
.single .article-content h2 {
  letter-spacing: 0.08em;
  margin: var(--space-2xl) 0 var(--space-md) 0;
  border-bottom: 1px solid var(--color-grey-medium);
}

blockquote {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-black);
  border-top: 2px solid var(--color-black);
  border-bottom: 2px solid var(--color-black);
  padding: 30px 0;
  margin: 40px 0;
  text-align: center;
}

.bg-dark h3 { color: #ffffff; }


/* =====================================================
   13. ARTICLE — SIDEBAR
===================================================== */

.article-sidebar {
  width: var(--sidebar-width);
}
.sidebar-block { margin-bottom: 50px; }
.sidebar-block h4 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.newsletter-sidebar {
  background-color: var(--color-grey-light);
  padding: 25px;
  border: 1px solid var(--color-grey-medium);
  transition: var(--transition-base);
}
.newsletter-sidebar:hover { border-color: var(--color-red); }
.newsletter-sidebar h4 {
  border-bottom: none !important;
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
  color: var(--color-black);
}
.newsletter-sidebar p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-dark-grey);
  margin-bottom: 20px;
}
.newsletter-sidebar .btn-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff !important;
  background-color: var(--color-red);
  padding: 10px 20px;
  text-decoration: none !important;
  width: 100%;
  text-align: center;
  transition: var(--transition-fast);
}
.newsletter-sidebar .btn-link:hover { background-color: var(--color-black); }

.related-list { list-style: none; padding: 0; margin-bottom: 30px; }
.related-list li {
  padding: 10px 0 15px 0;
  border-bottom: 1px solid var(--color-grey-light);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.3;
}
.related-list a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--color-black);
  line-height: 1.3;
  transition: var(--transition-fast);
}
.related-list a:hover { color: var(--color-red); }

.single .article-sidebar { padding-top: 10px; }
.single .sidebar-block   { margin-bottom: 65px; }
.single .newsletter-sidebar {
  background-color: var(--color-grey-light);
  padding: 30px 20px;
  border-top: 4px solid var(--color-red);
}
.single .newsletter-sidebar h4 {
  border-bottom: none !important;
  margin-bottom: 15px !important;
  font-size: var(--text-base) !important;
}
.single .newsletter-sidebar p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}
.single .btn-link {
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
	width:100%;
	height:auto;
	margin:0 0 30px 0;
}

.alignnone {
    float: none;
    margin: 0;
}

/* =====================================================
   14. PAGE INSTITUTIONNELLE (.page)
===================================================== */

.page .article-container { max-width: 100%; padding: 0; }
.page .article-header {
  text-align: left !important;
  margin-left: 0; margin-right: auto;
  max-width: 100%;
  border-bottom: none;
  margin-bottom: 30px;
}
.page .article-body-wrapper { margin-top: 20px; }
.page .article-title        { font-size: var(--text-5xl); margin-top: 10px; }
.page .kicker-title {
  font-family: var(--font-sans) !important;
  color: var(--color-black) !important;
  font-weight: 800;
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.page .article-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  text-align: left;
  color: var(--color-dark-grey);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--color-red);
  padding-left: 20px;
}
.page .article-content > p:first-of-type::first-letter {
  font-size: inherit !important;
  float: none !important;
  line-height: inherit !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
}
.page .article-content h2 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: var(--space-2xl) 0 var(--space-md) 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-grey-medium);
}
.page .article-content ul { list-style: none; padding-left: 0; }
.page .article-content ul li {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-grey-light);
}
.page .article-content ul li strong {
  color: var(--color-black);
  text-transform: uppercase;
  font-size: var(--text-base);
  display: inline-block;
  width: 100px;
}
.page .newsletter-sidebar {
  background-color: var(--color-black);
  color: #fff;
  border-top: none;
}
.page .newsletter-sidebar p { color: #ccc; }
.page .newsletter-sidebar .btn-link {
  background-color: #fff;
  color: var(--color-black) !important;
}
.page .newsletter-sidebar .btn-link:hover {
  background-color: var(--color-red);
  color: #fff !important;
}


/* =====================================================
   15. BILLET ANTOINE
===================================================== */

.billet-antoine .article-title { font-size: 3.2rem; letter-spacing: -1px; }
.billet-antoine .kicker {
  color: var(--color-black);
  border-bottom: 2px solid var(--color-red);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 30px;
}
.billet-antoine .article-content > p:first-of-type::first-letter {
  color: var(--color-black);
  font-size: 6rem;
  line-height: 0.7;
}
.billet-antoine .article-metadata { text-align: left; display: block; }

@media (min-width: 992px) {
  .billet-antoine .article-body-wrapper { gap: 80px; }
}


/* =====================================================
   16. LONGFORM — FORMAT IMMERSIF
===================================================== */

body.longform .article-container { max-width: 100%; padding: 0; }
.lf-hero {
  position: relative;
  height: 80vh;
  background: #000;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}
.lf-hero img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.lf-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-md);
  width: 100%;
  max-width: var(--article-max-width);
  margin: 0 auto;
  color: #fff;
}
.lf-body { max-width: 800px; margin: 0 auto; padding: 0 var(--space-md); }
.lf-lead {
  font-family: var(--font-serif);
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.6;
  color: #444;
  border-bottom: 1px solid #eee;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
}
.chapter-wrapper { margin: var(--space-3xl) 0; }
.chapter-img {
  width: 100vw;
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  margin-bottom: var(--space-md);
}
.chapter-img img { width: 100%; max-height: 80vh; object-fit: cover; }
.chapter-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
}
.caption_img_slf {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-dark-grey);
  margin-top: var(--space-xs);
}
body.longform .article-content p { font-size: 1.25rem; margin-bottom: 1.8rem; }

/* --- ARCHIVE LONGFORM (SANS IMAGE) --- */

.longform-card {
    background: #fff;
    transition: all 0.3s ease;
    min-height: 220px;
    border: 1px solid #111 !important; /* Bordure noire fine */
}

/* Titre dans la carte */
.longform-card .mag-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #111;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Effet au survol de la case entière */
.post-item a:hover .longform-card {
    border-color: #dc3545 !important; /* La bordure devient rouge */
    background-color: #fcfcfc;
}

.post-item a:hover .mag-title {
    color: #dc3545 !important; /* Le titre devient rouge */
}

.longform-card .date {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.longform-card .card-author {
    border-color: #eee !important;
}

/* Animation d'apparition pour l'infinite scroll */
.post-item {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Masquer la pagination standard */
.pagination-infinite {
    visibility: hidden;
    height: 0;
}

/* --- PAGE AUTEUR --- */

.author-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.author-avatar img.grayscale {
    filter: grayscale(100%);
    opacity: 0.5;
}

.author-post-card {
    background: #fff;
    min-height: 160px;
    border: 1px solid #111 !important;
    transition: all 0.3s ease;
}

.author-post-card .mag-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2em;
    line-height: 1.4;
    color: #111;
    font-weight: 700;
    transition: color 0.2s;
}

/* Hover effect */
.post-item a:hover .author-post-card {
    border-color: #dc3545 !important;
    background-color: #fcfcfc;
}

.post-item a:hover .mag-title {
    color: #dc3545 !important;
}

.author-links .btn {
    border-radius: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Sticky sidebar adjustment */
@media (max-width: 991px) {
    .author-profile-card {
        position: static !important;
        margin-bottom: 50px;
        text-align: center;
    }
}

/* --- STYLE PAGE MOT-CLÉ (TAG) --- */

.tag-card {
    background: #fff;
    min-height: 200px;
    border: 1px solid #111 !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-card .mag-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #111;
    font-weight: 700;
}

/* Hover effect spécifique */
.post-item a:hover .tag-card {
    border-color: #dc3545 !important;
    box-shadow: 6px 6px 0px rgba(220, 53, 69, 0.1); /* Petit effet de relief rouge */
}

.post-item a:hover .mag-title {
    color: #dc3545 !important;
}

.tag-description {
    font-family: 'Inter', sans-serif;
    border-left: 3px solid #dc3545;
    padding-left: 20px;
    margin-top: 20px;
}

.card-author {
    border-color: #eee !important;
}


/* --- PAGE HOMMAGE JEAN BIGIRIMANA --- */

.jean-hero {
    background: #000 url('path/to/texture.png'); /* Optionnel : une texture subtile */
    border-bottom: 5px solid #dc3545;
}

.jean-hero h1.display-1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: -2px;
    line-height: 1;
}

.jean-main-img img {
    filter: sepia(20%) contrast(110%);
    transition: filter 0.5s ease;
}

.jean-main-img:hover img {
    filter: sepia(0%) contrast(100%);
}

.memorial-sidebar blockquote {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: 0;
    border: none;
}

.hover-red:hover {
    color: #dc3545 !important;
}

.section-title-clean {
    border-bottom: 1px solid #111;
    line-height: 0.1em;
    margin: 10px 0 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-title-clean span {
    background: #fff;
    padding: 0 15px 0 0;
}

/* On réutilise les cartes du Longform mais en format plus serré */
.finding-jean .author-post-card {
    min-height: 140px;
    border: 1px solid #ddd !important; /* Bordure plus discrète ici */
}

.finding-jean .author-post-card:hover {
    border-color: #dc3545 !important;
}
/* =====================================================
   17. COMMENTAIRES & FORMULAIRE
===================================================== */

#comments {
  margin: 80px auto 0;
  padding: 40px;
  background-color: var(--color-grey-light);
  max-width: var(--article-body-max);
}
#comments h3 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.total-comments {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-dark-grey);
  margin-bottom: 30px;
}
.commentlist { list-style: none; padding: 0; margin: 0; }
.commentBox {
  background: var(--color-bg);
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--color-grey-medium);
  transition: var(--transition-base);
}
.commentBox:hover { border-color: var(--color-red); }
.comment-author .fn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.commenttext p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}
.reply {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-dark-grey);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.reply:hover { color: var(--color-black); }
.reply .ion  { font-size: 10px; color: var(--color-red); }
.navigation {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  margin: 20px 0;
}

/* Annulation lettrine dans les commentaires */
#comments .commenttext p:first-of-type::first-letter {
  font-size: inherit; float: none; line-height: inherit;
  margin-right: 0; margin-top: 0;
  color: inherit; font-weight: inherit; font-family: inherit;
}

/* — Formulaire */
.comment-respond {
  background: #f9f9f9;
  padding: 2.5rem;
  margin-top: var(--space-2xl);
  border-top: 3px solid #eee;
}
.comment-reply-title h4 span {
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--color-text);
}
.comment-notes {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-dark-grey);
  margin-bottom: var(--space-md);
}
.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-grey-medium);
  border-radius: 0;
  background: var(--color-bg);
  font-family: var(--font-sans);
  transition: border-color 0.3s ease;
}
.comment-form textarea { min-height: 150px; }
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-red);
  outline: none;
  box-shadow: var(--focus-ring);
}
.comment-form label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: #333;
}
.comment-form .submit {
  display: inline-block;
  background-color: var(--color-red);
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-base);
}
.comment-form .submit:hover {
  background-color: var(--color-black);
  transform: translateY(-2px);
}
#comment { display: none !important; }


/* =====================================================
   18. FOOTER
===================================================== */

footer {
  background-color: var(--color-black);
  color: #ffffff;
  padding: 80px 0 40px 0;
  border-top: 6px solid var(--color-red);
  margin-top: 100px;
}
footer h5 {
  color: #efefef;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
}
footer .bg-light .fw-bold { color: #454545; }
footer .text-muted        { color: #888 !important; }
footer a.text-muted:hover { color: #fff !important; }
footer ul li              { margin-bottom: 12px; }
footer ul li a {
  color: #888;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: var(--transition-fast);
}
footer ul li a:hover { color: var(--color-red) !important; }

footer .newsletter-box {
  background-color: var(--color-bg-dark) !important;
  border: 1px solid #222;
  padding: var(--space-lg);
}
footer .newsletter-box h5 { border-bottom: none; margin-bottom: 10px; padding-bottom: 0; }
footer .newsletter-box p  { color: #666; font-family: var(--font-sans); font-size: var(--text-base); margin-bottom: 20px; }

footer .form-control {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #333 !important;
  border-radius: 0;
  color: #fff !important;
  padding-left: 0;
  font-size: 0.9rem;
}
footer .form-control::placeholder { color: #555; }

footer .btn-subscribe {
  color: var(--color-red);
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  padding-right: 0;
  transition: var(--transition-fast);
}
footer .btn-subscribe:hover { color: #fff; }
footer .btn-link { color: var(--color-red) !important; font-weight: 700; text-decoration: none; }

footer .social-links a {
  font-size: 1.2rem;
  margin-right: 15px;
  color: #444;
  transition: var(--transition-fast);
}
footer .social-links a:hover { color: #fff; }
footer .bi { color: #fff; transition: var(--transition-base); }
footer .bi:hover { color: var(--color-red); transform: translateY(-3px); }

footer .footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid #222; }
footer .footer-bottom p,
footer .footer-bottom a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #555 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
footer .bg-dark h3 { color: #ffffff; }


/* =====================================================
   19. RESPONSIVE
===================================================== */

/* — Tablette Bootstrap (≤ 991px)
   CORRECTION : sidebar visible et reorganisée en 2 colonnes
   plutôt que masquée d'un coup avec display:none          */
@media (max-width: 991px) {
  .article-body-wrapper {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    display: block;
    width: 100%;
    border-top: 2px solid var(--color-grey-medium);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
  }
  .article-sidebar .sidebar-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .iw-layout { grid-template-columns: 1fr; }
  .iw-hero-flex { flex-direction: column-reverse; }

  /* Logo : padding réduit sur tablette */
  .logo-bar { padding: 20px 0; }
}

/* — Mobile (≤ 767px) */
@media (max-width: 767px) {
  /* Logo compact */
  .logo-bar     { padding: 15px 0; }
  .logo-bar img { width: 160px; }

  /* Titres redimensionnés dans l'échelle */
  .article-title { font-size: var(--text-4xl); }
  .title-webtv   { font-size: var(--text-xl); }

  /* Grilles colonne unique */
  .gc-main-grid  { grid-template-columns: 1fr; }
  .magazine-grid { grid-template-columns: 1fr; }

  /* Sidebar masquée sur mobile (espace insuffisant) */
  .article-sidebar { display: none; }


  /* Formulaire et commentaires */
  .comment-respond { padding: var(--space-md); }
  #comments        { padding: 20px; }

  /* Hero Longform */
  .lf-hero { height: 60vh; }
}


/* --- GRILLE DES VIDÉOS (Rectangles) --- */

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mag-card.post-item {
    min-height: 100px;
    padding: 1rem !important; /* Un peu plus compact */
}

/* Style du titre des petites cartes */
.mag-card .mag-title {
    font-size: 0.95rem; /* Taille plus petite */
    line-height: 1.3;
    margin-bottom: 0;
}

.mag-card .mag-title a {
    color: #111;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limite à 3 lignes pour garder l'alignement */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Survol en ROUGE */
.mag-card .mag-title a:hover {
    color: #dc3545 !important; /* Rouge Bootstrap ou var(--color-red) */
    text-decoration: none;
}

/* Meta (Date) plus petite également */
.mag-card .mag-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- TITRE DE LA VIDÉO EN VEDETTE (Haut de page) --- */

.featured-info h1 {
    font-size: 1.75rem; margin-top:20px; /* Ajustement taille titre principal */
}

.featured-info h1 a {
    color: #111;
    transition: color 0.2s ease;
}

.featured-info h1 a:hover {
    color: #dc3545 !important;
}

/* --- SCRIPT & LOADER (Inchangé) --- */
.pagination-infinite {
    visibility: hidden;
    height: 0;
}

/* --- Style des articles en catégorie --- */

.article-title {
    font-size: 1.1rem; /* Taille plus petite que h5 standard */
    line-height: 1.3;
}

.article-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Survol ROUGE */
.article-title a:hover {
    color: #dc3545 !important; 
}

/* Optionnel : petit zoom sur l'image au survol */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 4px;
}
.img-hover-zoom img {
    transition: transform 0.5s ease;
}
.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Infinite Scroll Helpers */
.pagination-infinite {
    visibility: hidden;
    height: 0;
    margin: 0;
}

.post-item {
    animation: fadeInCategory 0.6s ease forwards;
}

@keyframes fadeInCategory {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mise en page Vidéo --- */
.webtv-single-wrapper {
    background-color: #fff;
}

.video-hero-section {
    padding: 40px 0;
    
}

.video-player-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
   
}

/* --- Titres et Typo --- */
.small-title {
    font-size: 0.9rem;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.small-title:hover {
    color: #dc3545 !important; /* Le fameux rouge au survol */
}

/* --- Sidebar "À suivre" --- */
.thumb-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100px;
}

.thumb-wrapper img {
    width: 100%;
    height: 65px;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 4px;
}

.up-next-item:hover .play-overlay {
    opacity: 1;
}

.x-small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* --- Tags --- */
.tags-list a {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-right: 5px;
}

.tags-list a:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
}

/* Badge Live Style */
.badge-live {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 3px;
    letter-spacing: 1px;
}


/* =====================================================
   20. ACCESSIBILITÉ & FOCUS
   CORRECTION : états :focus-visible sur tous les éléments
   interactifs — navigation clavier conforme WCAG 2.1 AA
===================================================== */

/* Règle socle : tous les interactifs */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Navigation principale */
.bottom-menu .nav-link:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
  color: var(--color-green);
}

/* Liens d'articles */
.article-link:focus-visible {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Bouton newsletter */
.newsletter-sidebar .btn-link:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Champs du formulaire commentaires */
.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
  border-color: var(--color-red);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Bouton submit */
.comment-form .submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-red);
}

/* --- ISOLATION DES COMMENTAIRES (Style propre) --- */

#comments {
    background: #fff;
    padding: 30px;
    margin-top: 50px;
    border-radius: 8px;
    color: #333 !important; /* Force le texte en noir/gris foncé */
}

/* On neutralise l'héritage du footer global sur la partie commentaire */
#comments .comment-meta, 
#comments .comment-metadata {
    background-color: #f8f9fa !important; /* Fond gris très clair */
    padding: 10px 15px !important;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
}

/* Force le texte des infos (auteur, date) en noir */
#comments .comment-meta a,
#comments .comment-metadata a,
#comments .comment-author b,
#comments .fn {
    color: #111 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Date du commentaire */
#comments .comment-metadata {
    font-size: 0.8rem;
    color: #666 !important;
}

/* Texte du commentaire lui-même */
.comment-content p {
    color: #333 !important;
    line-height: 1.6;
    padding: 0 15px;
}

/* Ajustement du formulaire pour ne pas être collé */
#respond {
    padding: 20px 0;
    margin-top: 30px;
}

#respond h3 {
    color: #111 !important;
    font-weight: 700;
    margin-bottom: 20px;
}

/* CORRECTION : lettrine désactivée sous 640px
   (évite qu'elle occupe ~40% de la largeur sur 375px) */
@media (max-width: 640px) {
  .article-content p:first-of-type::first-letter,
  .billet-antoine .article-content > p:first-of-type::first-letter {
    font-size: inherit;
    float: none;
    line-height: inherit;
    margin-right: 0;
    margin-top: 0;
  }
}
/* 1. À 1200px et moins : le menu manchette disparaît */
@media screen and (max-width: 1200px) {
    .manchette-menu {
        display: none !important;
    }
}

/* 2. À 800px et moins : images des articles à 100% */
@media screen and (max-width: 800px) {
    /* Cible l'image à la une */
    .featured-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Cible toutes les images insérées dans le corps de l'article */
    .article-content img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Optionnel : Ajuste les légendes pour qu'elles suivent la largeur */
    .article-content figure {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
}