/*
Theme Name: Belge.Media DarkMag
Theme URI: https://belge.media
Author: Saad Van Nassouwe
Author URI: https://belge.media/auteur/saad-van-nassouwe/
Description: Thème magazine dark/classy optimisé SEO et AdSense pour Belge.Media
Version: 2.3
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: #ccccc;
  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: #c9a85e;
  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: #c9a85e;
  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: #c9a85e;
    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);
}
