/*
Theme Name: HotBelgium DarkMag 2.4.4
Theme URI: https://hotbelgium.be
Author: Saad Van Nassouwe
Author URI: https://belge.media/auteur/saad-van-nassouwe/
Description: Copie indépendante du thème HotBelgium, corrections vidéo/SEO et robustesse, apparence conservée.
Version: 2.4.14
Requires at least: 6.2
Requires PHP: 7.4
License: GNU GPL v2 or later
Text Domain: belgemedia
*/

/* === GLOBAL === */
body {
  background: #111;
  color: #f5f5f5;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

a {
  color: #fad300;
  text-decoration: none;
  transition: 0.3s;
}
a:hover { color: #fff; }

h1,h2,h3,h4,h5,h6 {
  color: inherit;
  margin: 0 0 12px;
  font-weight: 600;
}

h1 { font-size: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4 { font-size: 15px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

figure { margin: 0; }

/* === HEADER ET NAVIGATION === */
header.site-header {
  background: #000;
  padding: 12px 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1000;
}

.site-branding {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap !important;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: 38px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.site-title-text {
  font-size: 30px;
  font-weight: 500;
  color: #fad300;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.site-title-text:hover { color: #fff; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: nowrap;
  max-width: 70%;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.main-nav a { color: #ccc; }
.main-nav a:hover { color: #fff; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  color: #fad300;
  background: none;
  border: none;
  line-height: 1;
}
.burger-icon { font-size: 24px; }
.burger-label {
  font-size: 15px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.arrow {
  font-size: 9px;
  transform: translateY(-1px);
}

/* Menu ouvert au-dessus des raccourcis flottants, sous les dialogues métier. */
@media (max-width: 1100px) {
  header.site-header.is-menu-open { z-index: 9991; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: #111;
    border-top: 1px solid #222;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 0;
  }
  .main-nav.active {
    display: flex !important;
    animation: fadeIn 0.3s ease-in-out;
  }
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  .main-nav li {
    width: 100%;
    border-top: 1px solid #222;
  }
  .main-nav li:first-child { border-top: none; }
  .main-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 16px;
    color: #fad300;
    text-align: left;
  }
  .main-nav a:hover {
    background: #222;
    color: #fff;
  }
}

@media (min-width: 1101px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    background: transparent;
    border: 0;
    position: static;
  }
}

/* === TITRE PRINCIPAL (home/cat/tag) === */
.container > h1 {
  margin: 20px 0 15px;
  font-size: 24px;
  text-align: center;
}
.container > h1 small {
  font-size: 0.5em;
  color: #aaa;
  margin-left: 8px;
}

/* === ARTICLES GRID === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 15px 0;
}
.articles-grid article {
  background: #000;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.articles-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.articles-grid article h2 {
  margin-bottom: 6px;
}
.articles-grid article p {
  margin-top: 0;
}

/* === VIGNETTES (16/9) === */
.thumb,
.single-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #0f0f0f;
}
.thumb img,
.single-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* === HERO === */
.hero-article {
  position: relative;
  margin: 15px 0 30px;
  border-radius: 10px;
  overflow: hidden;
}
.hero-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(70%);
  transition: transform 0.4s ease;
}
.hero-article:hover .hero-thumb img { transform: scale(1.05); }
.hero-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.hero-content h1,
.hero-content h2 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #fad300;
}
.hero-content p { font-size: 15px; margin: 0; }

/* === PAGINATION === */
.articles-pagination {
  margin: 15px 0;
  text-align: center;
}
.articles-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.articles-pagination .page-numbers {
  flex: 0 0 auto;
  padding: 6px 10px;
  background: #222;
  border-radius: 4px;
  color: #fad300;
  font-size: 14px;
  white-space: nowrap;
}
.articles-pagination .page-numbers:hover {
  background: #333;
  color: #fff;
}
.articles-pagination .page-numbers.current {
  background: #fad300;
  color: #111;
  font-weight: bold;
}

/* === FOOTER === */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 18px;
  margin-top: 30px;
  font-size: 14px;
}

.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 0;
  padding: 0;
}
.footer-menu li { display: inline; }
.footer-menu a {
  color: #fcd34d;
  text-decoration: none;
  font-size: 14px;
}
.footer-menu a:hover { color: #fff; }

/* === BOUTON REMONTER EN HAUT === */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: #fad300;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-left: 3px solid #111;
  border-bottom: 3px solid #111;
  transform: rotate(135deg);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: #fff;
  transform: translateY(-3px);
}

/* === SINGLE AVEC SIDEBAR === */
.single-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: flex-start;
  margin-top: 20px;
}

.single-article {
  flex: 1 1 700px;
  background: #000;
  padding: 18px;
  border-radius: 8px;
  border: 0px solid #222;
  box-sizing: border-box;
}

.single-header h1 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 10px;
}

.single-header .meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 15px;
}

.single-content p {
  line-height: 1.7;
  margin-bottom: 0.8em;
}

.single-footer {
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
}

/* === SIDEBAR === */
.sidebar {
  flex: 0 0 300px;
  background: #000;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #222;
  color: #ccc;
  position: sticky;
  top: 25px;
  height: fit-content;
  box-sizing: border-box;
}

.sidebar h3 {
  color: #c9a85e;
  margin-bottom: 10px;
  font-size: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

.widget { margin-bottom: 20px; }

/* === AUTEUR === */
.author-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.author-photo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .single-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 20px;
    position: static;
  }
}
/* === SIDEBAR RESPONSIVE (fix overflow) === */
.sidebar {
  background: #000;
  padding: 15px;
  border-radius: 8px;
  border: 0px solid #222;
  color: #ccc;
  position: sticky;
  top: 25px;
  height: fit-content;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 900px) {
  .single-layout {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    margin-top: 20px;
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.adsbygoogle {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  border: 1px solid #222 !important;
  border-radius: 8px;
  padding: 10px;
}
.adsbygoogle a { color: #c9a85e !important; }


body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px; /* hauteur approximative du bandeau */
  background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
  pointer-events: none;
  z-index: 10;
}

/* Menu shortcode affiché comme liste de tags */
.hb-menu-shortcode ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hb-menu-shortcode li {
  display: inline;
}

.hb-menu-shortcode li::after {
  content: ", ";
  color: #fff;
}

.hb-menu-shortcode li:last-child::after {
  content: "";
}

.hb-menu-shortcode a {
  color: #f5c400;          /* jaune HotBelgium */
  text-decoration: none;
  font-weight: 500;
}

.hb-menu-shortcode a:hover {
  text-decoration: underline;
}

.thumb {
  position: relative;
  overflow: hidden;
}

.thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='32' cy='32' r='30' fill='rgba(0,0,0,0.55)'/%3E%3Cpolygon points='26,20 26,44 46,32' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
article:hover .thumb::after {
  transform: translate(-50%, -50%) scale(1.1);
}

.footer-sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 25px 0;
    background: #000;
}

.footer-sponsors a {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-sponsors img {
    height: 28px;
    width: auto;
    opacity: 0.85;
}

.footer-sponsors a:hover img {
    transform: scale(1.08);
    opacity: 1;
}



/* =========================================
   PREVIEW VIDEO SUR THUMBS
========================================= */

.thumb.has-preview {
  position: relative;
}

.thumb.has-preview .thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.thumb.has-preview .thumb-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: #000;
  transition: opacity 0.2s ease;
}

/* logo play visible par défaut */
.thumb.has-preview::after {
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* preview active */
.thumb.has-preview.is-previewing .thumb-preview {
  opacity: 1;
}

.thumb.has-preview.is-previewing .thumb-image {
  opacity: 0;
}

.thumb.has-preview.is-previewing::after {
  opacity: 0;
}

/* === PATCH FINAL : logo PLAY visible avant preview === */

/* logo PLAY visible par défaut, même sur les thumbs avec preview */
.thumb.has-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='32' cy='32' r='30' fill='rgba(0,0,0,0.55)'/%3E%3Cpolygon points='26,20 26,44 46,32' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  opacity: 1 !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* petit effet hover normal */
article:hover .thumb.has-preview::after {
  transform: translate(-50%, -50%) scale(1.1);
}

/* quand la preview tourne, on masque le PLAY */
.thumb.has-preview.is-previewing::after {
  opacity: 0 !important;
}

/* sécurité : au hover desktop, si la preview tourne, on masque aussi */
@media (hover: hover) and (pointer: fine) {
  .thumb.has-preview:hover.is-previewing::after {
    opacity: 0 !important;
  }
}

/* === VIDEOS SIMILAIRES === */

.related-videos {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 15px;
}

.related-videos article {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-videos article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.related-videos h2 {
  font-size: 15px;
  margin-top: 8px;
  color: #fad300;
}

/* MOBILE */
@media (max-width: 768px) {
  .related-videos {
    grid-template-columns: 1fr;
  }
}


.hb-actrice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* CARD */
.hb-actrice-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
}

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

/* IMAGE PORTRAIT */
.hb-actrice-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.hb-actrice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TITLE */
.hb-actrice-card h3 {
  font-size: 14px;
  color: #ffd700;
  padding: 10px;
}



.hb-breadcrumb {
  font-size: 13px;
  margin-bottom: 15px;
  color: #aaa;
}

.hb-breadcrumb a {
  color: #f5c400;
  text-decoration: none;
}

.hb-breadcrumb a:hover {
  text-decoration: underline;
}

.hb-breadcrumb span {
  color: #ccc;
}



/* =========================================================
   GRID CATEGORIES
========================================================= */

.hb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* =========================================================
   CARD
========================================================= */

.hb-category-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hb-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* =========================================================
   IMAGE CARREE
========================================================= */

.hb-category-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.hb-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Zoom léger au hover */
.hb-category-card:hover img {
    transform: scale(1.05);
}

/* =========================================================
   TITRE
========================================================= */

.hb-category-card h2 {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    padding: 12px;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

/* =========================================================
   LIENS
========================================================= */

.hb-category-card a {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .hb-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hb-category-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   INFOP PUB ADS 
========================================================= */
.sf-box {
    background: #122235;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
}

.sf-btn {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: #e41921;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

#sf-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* BOX */
.sf-box {
    position: relative;
    background: #000;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    width: 85%;
}
/* texte */
.sf-text {
    font-size: 14px;
    color: #ccc;
    margin: 10px 0;
}

/* ❌ bouton fermer */
.sf-close {
    color: #fff;
    cursor: pointer;
}
.sf-box {
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* HotBelgium 2.4.3 : accueil vidéo et adaptation tablettes */
.hb-front-page { padding-top: 24px; padding-bottom: 32px; }
.hb-home-content { min-width: 0; }
.hb-home-heading { margin: 0 0 26px; }
.hb-home-heading h1 { font-size: clamp(24px, 3vw, 34px); color: #fad300; }
.hb-home-heading p { color: #ddd; margin: 0; line-height: 1.6; }
.hb-home-section { margin-bottom: 36px; }
.hb-home-section > h2 { font-size: 23px; margin-bottom: 18px; }
.hb-home-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hb-home-video-card { background: #080808; border: 1px solid #292929; border-radius: 10px; overflow: hidden; min-width: 0; }
.hb-home-video-card a { display: block; height: 100%; }
.hb-home-video-image { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #1b1b1b; margin: 0; }
.hb-home-video-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-home-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.68); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; color: #fff; font-size: 21px; }
.hb-home-video-card h3 { font-size: 16px; line-height: 1.4; padding: 12px 14px; margin: 0; color: #fad300; overflow-wrap: anywhere; }
@media (min-width: 769px) and (max-width: 1100px) {
  .site-header { gap: 14px; }
  .site-branding img { max-width: 200px; height: auto; }
  .main-nav { min-width: 0; max-width: calc(100% - 214px); }
  .main-nav ul { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .main-nav a { font-size: 14px; }
  .hb-home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hb-front-page { padding-top: 18px; }
  .hb-home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hb-home-video-card h3 { font-size: 14px; padding: 10px; }
  .hb-home-play { width: 40px; height: 40px; font-size: 16px; }
  .site-branding img { max-width: min(250px, 62vw); height: auto; }
}
@media (max-width: 380px) {
  .hb-home-video-grid { gap: 9px; }
  .hb-home-video-card h3 { font-size: 13px; }
}

/* 2.4.4 : accueil — réutiliser les previews MP4 et le script du thème existant. */
.hb-home-video-image.thumb { display: block; width: 100%; }
.hb-home-video-image.thumb.has-preview .thumb-image { position: absolute; inset: 0; }
.hb-home-video-image.thumb.has-preview .thumb-preview { position: absolute; inset: 0; }
.hb-home-video-card .hb-home-video-image.thumb::after { pointer-events: none; }

/* 2.4.5 — Cohérence de la colonne latérale sur accueil et archives. */
.hb-public-layout {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  min-width: 0;
}
.hb-public-main {
  flex: 1 1 0;
  min-width: 0;
}
.hb-public-sidebar {
  flex: 0 0 300px;
  width: 300px;
  min-width: 0;
}
.hb-public-main .hb-home-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hb-public-main .hb-home-video-card h3 { font-size: 15px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hb-public-main .hb-home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hb-public-layout { flex-direction: column; }
  .hb-public-main { width: 100%; flex: auto; }
  .hb-public-sidebar { width: 100%; flex: auto; position: static; margin-top: 20px; }
  .hb-public-main .hb-home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .hb-public-main .hb-home-video-grid { gap: 9px; }
}

/* 2.4.6 — Correction ciblée : vignettes 16:9 sur la page d’accueil.
   La règle globale .thumb ajoute padding-top:56.25% ; cumulée avec
   aspect-ratio sur la home, elle rend les images anormalement hautes.
   Les archives et les lecteurs individuels ne sont pas modifiés. */
.hb-home-video-image.thumb {
  padding-top: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-bottom: 0;
}
.hb-home-video-image.thumb .thumb-image,
.hb-home-video-image.thumb .thumb-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2.4.7 — Navigation tablette et sidebar empilée sans colonne étroite. */
@media (max-width: 1100px) {
  header.site-header { flex-wrap: nowrap; gap: 12px; }
  header.site-header .site-branding { min-width: 0; flex: 0 1 auto; }
  header.site-header .site-branding img { max-width: min(250px, 60vw); height: auto; }
  header.site-header .menu-toggle { display: flex; flex: 0 0 auto; margin-left: auto; }
  header.site-header .main-nav { display: none; max-width: 100%; width: 100%; position: absolute; top: 100%; left: 0; background: #111; border-top: 1px solid #222; z-index: 999; padding: 0; }
  header.site-header .main-nav.active { display: flex !important; }
  header.site-header .main-nav ul { display: flex; flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 0; text-align: left; }
  header.site-header .main-nav li { width: 100%; border-top: 1px solid #222; }
  header.site-header .main-nav a { display: block; padding: 14px 20px; font-size: 16px; color: #fad300; }
}
@media (max-width: 900px) {
  .single-layout, .hb-public-layout { flex-direction: column; align-items: stretch; }
  .single-layout > .single-article, .single-layout > .sidebar,
  .hb-public-layout > .hb-public-main, .hb-public-layout > .hb-public-sidebar {
    flex: 0 1 auto; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  }
  .single-layout > .sidebar, .hb-public-layout > .hb-public-sidebar {
    position: static; margin-top: 20px; align-self: stretch;
  }
}
.hb-home-section-link { text-align: right; margin: 16px 0 0; }
.hb-home-section-link a { color: #fad300; font-weight: 600; display: inline-block; padding: 6px 0; }
.hb-home-section-link a:hover, .hb-home-section-link a:focus-visible { color: #fff; text-decoration: underline; }

/* 2.4.8 — recherche vidéo dédiée, fenêtre accessible sur tous écrans */
.site-header .hb-video-search-trigger { order: 3; background: transparent; color: #fad300; border: 1px solid #444; border-radius: 6px; padding: 7px 10px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.hb-video-search-trigger span[aria-hidden] { font-size: 27px; line-height: 20px; }
.hb-video-search-trigger:hover, .hb-video-search-trigger:focus-visible { border-color: #fad300; }
.hb-video-search-overlay[hidden] { display: none !important; }
.hb-video-search-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.82); display: flex; justify-content: center; align-items: flex-start; padding: min(18vh,130px) 16px 24px; box-sizing: border-box; }
.hb-video-search-panel { width: min(100%, 620px); position: relative; background: #141414; border: 1px solid #444; border-radius: 12px; padding: 28px; color: #fff; box-shadow: 0 15px 55px #000; }
.hb-video-search-panel h2 { color: #fad300; margin: 0 32px 20px 0; }
.hb-video-search-panel label { display: block; margin-bottom: 10px; }
.hb-video-search-form-row { display: flex; gap: 10px; }
.hb-video-search-form-row input { flex: 1; min-width: 0; background: #222; color: #fff; border: 1px solid #666; padding: 12px; border-radius: 6px; font-size: 16px; }
.hb-video-search-form-row button, .hb-search-again { background: #d82c2c; color: #fff; border: 0; border-radius: 6px; padding: 11px 15px; cursor: pointer; }
.hb-video-search-close { position: absolute; top: 12px; right: 14px; background: none; color: #fff; border: none; font-size: 32px; cursor: pointer; }
body.hb-search-open { overflow: hidden; }
.hb-video-search-results-heading { margin: 20px 0; }
.hb-video-search-results-heading h1 { font-size: 28px; color: #fad300; }
@media (max-width: 1100px) { .site-header .hb-video-search-trigger { order: 1; margin-left: auto; } .site-header .menu-toggle { order: 2; margin-left: 0; } .site-header .main-nav { order: 4; } .hb-search-label { display: none; } }
@media (max-width: 480px) { .hb-video-search-panel { padding: 22px 16px; } .hb-video-search-form-row { flex-direction: column; } }

/* 2.4.9 — Navigation en boutons, recherche d'accueil et espacements harmonisés. */
.site-header { gap: 16px; }
.site-header .site-branding { flex: 0 0 auto; }
.site-header .main-nav { flex: 1 1 auto; min-width: 0; max-width: none; justify-content: flex-end; }
.site-header .main-nav ul { gap: 6px; align-items: center; }
.site-header .main-nav li { margin: 0; }
.site-header .main-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px; border: 1px solid #3c3c3c; border-radius: 6px;
  background: #111; color: #eee; font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap; line-height: 1.25;
}
.site-header .main-nav a:hover, .site-header .main-nav a:focus-visible,
.site-header .main-nav .current-menu-item > a,
.site-header .main-nav .current-menu-ancestor > a { border-color: #fad300; color: #fad300; background: #1b1b1b; }
.site-header .hb-video-search-trigger { flex: 0 0 auto; margin: 0; order: 0; }
/* Uniformiser le haut du contenu sans toucher aux URL ou aux modèles vidéo. */
main.container.hb-public-layout, main.container.hb-front-page { padding-top: 24px; }
main.container.single-layout { padding-top: 24px; }
.hb-home-search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 100%; }
.hb-home-search-form input[type="search"] { flex: 1 1 auto; min-width: 0; width: 100%; background: #1d1d1d; color: #fff; border: 1px solid #555; border-radius: 6px; padding: 12px 14px; font-size: 16px; }
.hb-home-search-form input[type="search"]:focus { outline: 2px solid #fad300; outline-offset: 1px; }
.hb-home-search-form button { flex: 0 0 auto; background: #d82c2c; color: #fff; border: 0; border-radius: 6px; padding: 11px 18px; font-size: 15px; font-weight: 600; cursor: pointer; }
.hb-home-search-form button:hover, .hb-home-search-form button:focus-visible { background: #f13c3c; }
@media (max-width: 1100px) {
  .site-header { flex-wrap: nowrap; gap: 8px; }
  .site-header .site-branding { flex: 0 1 auto; min-width: 0; margin-right: auto; }
  .site-header .site-branding img { max-width: min(250px, 52vw); height: auto; }
  .site-header .hb-video-search-trigger { order: 1; margin-left: 0; }
  .site-header .menu-toggle { order: 2; margin-left: 0; flex: 0 0 auto; padding: 7px 10px; border: 1px solid #444; border-radius: 6px; background: #111; min-height: 36px; }
  .site-header .menu-toggle:hover, .site-header .menu-toggle:focus-visible { border-color: #fad300; }
  .site-header .main-nav { order: 4; flex: none; width: 100%; max-width: 100%; }
  .site-header .main-nav ul { gap: 0; align-items: stretch; }
  .site-header .main-nav a { display: block; border: 0; border-radius: 0; background: transparent; padding: 14px 20px; font-size: 16px; }
}
@media (max-width: 600px) {
  main.container.hb-public-layout, main.container.hb-front-page, main.container.single-layout { padding-top: 16px; }
  .hb-home-search-form { flex-wrap: wrap; }
  .hb-home-search-form input[type="search"] { flex-basis: 100%; }
  .hb-home-search-form button { width: 100%; }
  .site-header .menu-toggle { padding: 6px 8px; }
  .site-header .burger-label { font-size: 12px; }
}

/* 2.4.10 — Accueil : navigation par thèmes vidéo (étiquettes WordPress). */
.hb-home-topics { margin: 0 0 30px; }
.hb-home-topics h2 { font-size: 23px; margin: 0 0 16px; }
.hb-home-topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hb-home-topic { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 14px 15px; border: 1px solid #383838; border-radius: 8px; background: #171717; color: #fad300; font-weight: 600; line-height: 1.35; text-decoration: none; }
.hb-home-topic span:first-child { overflow-wrap: anywhere; }
.hb-home-topic span:last-child { flex: 0 0 auto; font-size: 20px; }
.hb-home-topic:hover, .hb-home-topic:focus-visible { background: #242424; border-color: #fad300; color: #fff; }
@media (max-width: 1100px) { .hb-home-topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .hb-home-topics-grid { gap: 8px; } .hb-home-topic { padding: 11px 10px; font-size: 13px; } }

/* Lien affilié discret entre le titre H1 et le lecteur vidéo. */
.hb-video-premium-link { margin: 8px 0 12px; font-size: 0.9rem; line-height: 1.5; }
.hb-video-premium-link a { color: #fad300; text-decoration: underline; text-underline-offset: 3px; }
.hb-video-premium-link a:hover, .hb-video-premium-link a:focus-visible { color: #fff; }
