/*
Theme Name: HotBelgium DarkMag
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.0
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 === */
header.site-header {
  background: #000;
  padding: 12px 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.site-title-text {
  font-size: 30px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
}
.site-title-text:hover { color: #fff; }

/* === NAVIGATION === */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 70%;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.main-nav a { color: #ccc; }
.main-nav a:hover { color: #fff; }

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fad300;
  background: none;
  border: none;
}

/* === 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);
}

/* === MENU MOBILE === */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border-top: 1px solid #222;
    z-index: 999;
    flex-direction: column;
  }
  .main-nav.active { display: flex; }
  .main-nav a {
    display: block;
    padding: 12px 16px;
    color: #fcd34d;
  }
  .main-nav a:hover {
    background: #222;
    color: #fff;
  }
}

/* === MENU DESKTOP === */
@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .main-nav { display: flex; background: transparent; border: 0; position: static; }
  .main-nav ul { flex-direction: row; gap: 20px; }
}

/* === 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;
  }
}
/* === CORRECTION ALIGNEMENT LOGO + TITRE === */
.site-branding {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap !important;
}

.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; }

/* === MENU NAVIGATION === */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

/* === MENU BURGER (MOBILE) === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #111;
    border-top: 1px solid #222;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 10px 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: 0px solid #222;
  }

  .main-nav li:first-child {
    border-top: none;
  }

  .main-nav a {
    display: block;
    padding: 14px;
    font-size: 16px;
    color: #fcd34d;
  }

  .main-nav a:hover {
    background: #222;
    color: #fff;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* === HEADER ALIGNEMENT GLOBAL === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  background: #000;
  padding: 12px 20px;
  border-bottom: 1px solid #333;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.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;
}
.site-title-text:hover { color: #fff; }

/* === MENU BURGER MOBILE (textes à gauche) === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start; /* Alignement à gauche */
    justify-content: flex-start;
    background: #111;
    border-top: 1px solid #222;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 0;
  }

  .main-nav.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .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%;
    padding: 14px 20px;
    font-size: 16px;
    color: #fad300;
    text-align: left;
  }

  .main-nav a:hover {
    background: #222;
    color: #fff;
  }
}

/* === 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);
}

/* ----- BURGER MOBILE ----- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    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);
}

/* ----- DESKTOP : on cache ----- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

.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;
    }
}
