/*
Theme Name: Blogamer V3
Theme URI: https://www.blogamer.fr
Description: Thème magazine gaming moderne pour Blogamer — Jeux vidéo, Tech & Geek, Esport, Vie de papa gamer.
Version: 3.1
Author: Antoine / Blogamer
Author URI: https://www.blogamer.fr
Text Domain: blogamer
Tags: gaming, magazine, responsive, custom-menu, featured-images, threaded-comments
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPLv2 or later
*/

/* ===================================================
   VARIABLES — THÈME CLAIR (fond blanc)
=================================================== */
:root {
  /* Catégories — couleurs vives, bon contraste sur fond blanc */
  --color-jv:       #7C3AED; /* Jeux vidéo — violet profond */
  --color-tech:     #1D4ED8; /* Tech & Geek — bleu profond */
  --color-esport:   #DC2626; /* Esport — rouge vif */
  --color-papa:     #059669; /* Vie de papa — vert émeraude */

  /* Brand */
  --color-brand:      #F59E0B;
  --color-brand-dark: #D97706;

  /* Fond & surfaces — THÈME BLANC */
  --color-bg:       #F5F5F7;   /* fond global légèrement gris */
  --color-surface:  #FFFFFF;   /* cartes / blocs */
  --color-surface2: #F0F2F5;   /* surfaces secondaires */
  --color-border:   #E2E8F0;   /* bordures */

  /* Textes — SOMBRES sur fond blanc */
  --color-heading:  #0F0F1A;   /* titres */
  --color-text:     #374151;   /* corps */
  --color-muted:    #6B7280;   /* méta, secondaire */
  --color-white:    #FFFFFF;

  /* Header (reste sombre pour l'identité gaming) */
  --header-bg:      #0C0C0F;
  --header-border:  #1E1E2A;
  --header-text:    #E8E8F0;
  --header-muted:   #9090A8;

  /* Typographie */
  --font-heading: 'Rajdhani', 'Exo 2', Arial Black, sans-serif;
  --font-body:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width:  1280px;
  --radius:     8px;
  --radius-lg:  16px;
  --gap:        24px;

  /* Ombres légères pour thème clair */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);

  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
a:hover { color: var(--color-brand); }
ul  { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

/* ===================================================
   UTILITIES
=================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ======= BADGES CATÉGORIES — fond coloré, texte blanc ======= */
.cat-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff !important;   /* toujours blanc, sur n'importe quel fond */
  line-height: 1.4;
  white-space: nowrap;
}

.cat-jeux-video,  .cat-badge--jv     { background: var(--color-jv); }
.cat-tech-geek,   .cat-badge--tech   { background: var(--color-tech); }
.cat-esport,      .cat-badge--esport { background: var(--color-esport); }
.cat-papa-gamer,  .cat-badge--papa   { background: var(--color-papa); }
.cat-badge--default { background: var(--color-brand); color: #000 !important; }

/* ===================================================
   SKIP LINK
=================================================== */
.skip-link {
  position: absolute; top: -999px; left: 20px;
  background: var(--color-brand); color: #000;
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 20px; }

/* ===================================================
   HEADER — RESTE SOMBRE (identité gaming)
=================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,15,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-brand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;      /* hauteur adaptée au logo */
  gap: 16px;
  overflow: hidden;  /* on clippe proprement dans le header */
}

/* ——— Logo ——— */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  /* hauteur fixe : empêche le logo d'agrandir le header */
  height: 52px;
  max-height: 52px;
  overflow: hidden;  /* clip tout ce qui dépasse */
}

/* Le lien wrapper injecté par WordPress */
.site-logo .custom-logo-link,
.site-logo a {
  display: flex;
  align-items: center;
  height: 52px;
  line-height: 0;
}

/*
 * FIX LOGO — WordPress injecte width/height directs sur l'img.
 * On doit surcharger avec des sélecteurs très spécifiques + !important.
 * On contraint la hauteur et on laisse la largeur s'adapter.
 */
.site-logo img,
.site-logo .custom-logo,
.site-logo .custom-logo-link img,
.site-logo a img,
a.custom-logo-link img,
header .site-logo img {
  height: 52px  !important;
  width: auto   !important;
  max-height: 52px !important;
  max-width: 240px !important;
  object-fit: contain !important;
  display: block !important;
}

.site-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--color-brand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.site-logo__text span { color: var(--color-brand); }

/* ——— Navigation principale ——— */
.primary-nav { flex: 1; min-width: 0; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;   /* FIX : jamais de retour à la ligne */
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav ul::-webkit-scrollbar { display: none; }

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 7px 11px;
  border-radius: var(--radius);
  color: #FFFFFF;          /* ← BLANC, toujours lisible sur header sombre */
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  display: block;
  opacity: 0.85;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: #FFFFFF;
  opacity: 1;
  background: rgba(255,255,255,.12);
}

/* Item actif : soulignement couleur brand */
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: 5px;
}

/* Couleurs accent par rubrique au survol */
.primary-nav .menu-jeux-video  > a:hover { color: #C4B5FD !important; opacity:1; }
.primary-nav .menu-tech-geek   > a:hover { color: #93C5FD !important; opacity:1; }
.primary-nav .menu-esport      > a:hover { color: #FCA5A5 !important; opacity:1; }
.primary-nav .menu-papa        > a:hover { color: #6EE7B7 !important; opacity:1; }

/* ——— Barre de recherche header ——— */
.header-search { display: flex; align-items: center; flex-shrink: 0; }

.header-search form {
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.header-search form:focus-within { border-color: var(--color-brand); }

.header-search input[type="search"] {
  background: none; border: none; outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 7px 14px;
  width: 160px;
}
.header-search input[type="search"]::placeholder { color: var(--header-muted); }

.header-search button {
  background: none; border: none;
  color: var(--header-muted);
  padding: 7px 12px;
  cursor: pointer;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--color-brand); }

/* ——— Burger menu ——— */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 7px 11px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===================================================
   TICKER BREAKING NEWS
=================================================== */
.breaking-ticker {
  background: var(--color-brand);
  overflow: hidden; height: 34px;
  display: flex; align-items: center;
}
.breaking-ticker__label {
  background: var(--color-brand-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; padding: 0 14px; height: 100%;
  display: flex; align-items: center;
  flex-shrink: 0; white-space: nowrap;
}
.breaking-ticker__track { display: flex; overflow: hidden; flex: 1; }
.breaking-ticker__items {
  display: flex; gap: 40px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap; font-size: 0.82rem;
  font-weight: 600; color: #000;
}
.breaking-ticker__items a { color: #000; text-decoration: underline; }
@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===================================================
   HERO
=================================================== */
.site-hero {
  position: relative; height: 500px;
  overflow: hidden; margin-bottom: var(--gap);
}
.hero-slide { position: relative; height: 100%; width: 100%; }
.hero-slide__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.55);
  transition: transform 8s ease;
}
.hero-slide:hover .hero-slide__img { transform: scale(1.03); }
.hero-slide__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 40px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
}
.hero-slide__cat { margin-bottom: 10px; }
.hero-slide__title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: #fff; margin-bottom: 10px; max-width: 700px;
}
.hero-slide__meta {
  font-size: 0.85rem; color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero-slide__meta a { color: rgba(255,255,255,.75); }
.hero-slide__meta a:hover { color: var(--color-brand); }
.hero-slide__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-brand); color: #000;
  font-family: var(--font-heading); font-size: 0.85rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 20px; border-radius: var(--radius); margin-top: 14px;
  transition: background var(--transition), transform var(--transition);
}
.hero-slide__btn:hover {
  background: var(--color-brand-dark); color: #fff;
  transform: translateY(-2px);
}

/* ===================================================
   LAYOUT
=================================================== */
.site-main { padding: var(--gap) 0 60px; }

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* ===================================================
   SECTION HEADER
=================================================== */
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
}
.section-header__icon { font-size: 1.3rem; }
.section-header__title {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-heading);
}
.section-header__line { flex: 1; height: 2px; border-radius: 1px; }

.section--jv     .section-header__title { color: var(--color-jv); }
.section--tech   .section-header__title { color: var(--color-tech); }
.section--esport .section-header__title { color: var(--color-esport); }
.section--papa   .section-header__title { color: var(--color-papa); }

.section--jv     .section-header__line { background: var(--color-jv); }
.section--tech   .section-header__line { background: var(--color-tech); }
.section--esport .section-header__line { background: var(--color-esport); }
.section--papa   .section-header__line { background: var(--color-papa); }

.section-header__more {
  font-size: 0.78rem; font-weight: 600;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 4px 12px; border-radius: 999px;
  transition: all var(--transition); white-space: nowrap;
}
.section-header__more:hover { color: var(--color-brand); border-color: var(--color-brand); }

/* ===================================================
   CARDS ARTICLES — fond blanc, ombre légère
=================================================== */
.posts-grid { display: grid; gap: 18px; }
.posts-grid--3col { grid-template-columns: repeat(3, 1fr); }
.posts-grid--2col { grid-template-columns: repeat(2, 1fr); }
.posts-grid--1col { grid-template-columns: 1fr; }

.post-card {
  background: var(--color-surface);   /* blanc */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Bordure couleur hover */
.post-card--jv:hover     { border-color: var(--color-jv); }
.post-card--tech:hover   { border-color: var(--color-tech); }
.post-card--esport:hover { border-color: var(--color-esport); }
.post-card--papa:hover   { border-color: var(--color-papa); }

.post-card__thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); }
.post-card__thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--color-surface2);
  display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem;
}
.post-card__cat { position: absolute; top: 10px; left: 10px; }

.post-card__body { padding: 14px 18px 16px; }

/* ——— TITRE DE CARTE — sombre sur fond blanc ——— */
.post-card__title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--color-heading);   /* #0F0F1A — toujours lisible */
  margin: 8px 0 7px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.post-card:hover .post-card__title { color: var(--color-brand); }

.post-card__excerpt {
  font-size: 0.83rem; color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--color-border);
  font-size: 0.76rem; color: var(--color-muted);
}
.post-card__meta { display: flex; align-items: center; gap: 10px; }

/* Card horizontale */
.post-card--horizontal { display: grid; grid-template-columns: 130px 1fr; }
.post-card--horizontal .post-card__thumb { aspect-ratio: unset; height: 100%; min-height: 105px; }
.post-card--horizontal .post-card__body  { padding: 12px 14px; }
.post-card--horizontal .post-card__title { font-size: 0.87rem; -webkit-line-clamp: 3; }

/* Card featured */
.post-card--featured .post-card__title { font-size: 1.15rem; -webkit-line-clamp: 3; }

/* ===================================================
   HOMEPAGE — Layout sections
=================================================== */
.home-main-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-bottom: 40px;
}
.home-main-grid .post-card:first-child { grid-column: 1 / -1; }
.home-section { margin-bottom: 44px; }

/* ===================================================
   ARTICLE SINGLE
=================================================== */
.single-article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.single-article__hero { position: relative; aspect-ratio: 16/7; overflow: hidden; }
.single-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.single-article__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}
.single-article__header {
  padding: 28px 36px 22px;
  border-bottom: 1px solid var(--color-border);
}
.single-article__cat { margin-bottom: 14px; }
.single-article__title {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  color: var(--color-heading);
  margin-bottom: 14px; line-height: 1.2;
}
.single-article__meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 0.83rem; color: var(--color-muted);
}
.single-article__meta a { color: var(--color-muted); }
.single-article__meta a:hover { color: var(--color-brand); }
.single-article__meta-sep { color: var(--color-border); }
.single-article__body { padding: 36px; }

/* ——— Contenu article ——— */
.article-content { font-size: 1rem; line-height: 1.85; color: var(--color-text); }
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--color-heading); margin: 2rem 0 1rem; }
.article-content h2 { font-size: 1.55rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content p  { margin-bottom: 1.2rem; }
.article-content a  {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover { color: var(--color-brand); }
.article-content img {
  max-width: 100%; border-radius: var(--radius);
  margin: 1.5rem auto; box-shadow: var(--shadow-md);
}
.article-content blockquote {
  border-left: 4px solid var(--color-brand);
  padding: 12px 20px; margin: 1.5rem 0;
  background: #FFF8E7; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--color-muted);
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem; margin-bottom: 1.2rem;
}
.article-content li { list-style: disc; margin-bottom: 0.5rem; }
.article-content code {
  font-family: var(--font-mono); background: var(--color-surface2);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; color: var(--color-esport);
}
.article-content pre {
  background: #1E1E2A; border-radius: var(--radius);
  padding: 20px; overflow-x: auto; margin-bottom: 1.2rem;
}
.article-content pre code { background: none; color: #E8E8F0; padding: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.article-content th,
.article-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px; text-align: left; font-size: 0.9rem;
}
.article-content th { background: var(--color-surface2); font-weight: 700; color: var(--color-heading); }

/* Tags article */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 20px 36px; border-top: 1px solid var(--color-border);
}
.article-tag {
  background: var(--color-surface2); border: 1px solid var(--color-border);
  color: var(--color-muted); font-size: 0.78rem;
  padding: 4px 12px; border-radius: 999px;
  transition: all var(--transition);
}
.article-tag:hover { color: var(--color-brand); border-color: var(--color-brand); }

/* Partage */
.article-share {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-top: 1px solid var(--color-border);
  background: var(--color-surface2); flex-wrap: wrap;
}
.article-share__label {
  font-family: var(--font-heading); font-size: 0.82rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-muted);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer; border: none; color: #fff;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn--twitter  { background: #1DA1F2; }
.share-btn--facebook { background: #1877F2; }
.share-btn--copy     { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }

/* Articles liés */
.related-posts { padding: 28px 36px; border-top: 1px solid var(--color-border); }

/* ===================================================
   PAGINATION
=================================================== */
.pagination {
  display: flex; justify-content: center;
  gap: 6px; margin: 36px 0; flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: 0.88rem;
  color: var(--color-muted); transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pagination .page-numbers:hover,
.pagination .current {
  background: var(--color-brand); border-color: var(--color-brand);
  color: #000; font-weight: 700;
}

/* ===================================================
   SIDEBAR
=================================================== */
.sidebar { position: sticky; top: 110px; } /* 68px header + 34px ticker + 8px marge */

.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 20px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-heading);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand);
  display: block;
}

/* Articles récents sidebar */
.widget-recent-post {
  display: flex; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--color-border);
}
.widget-recent-post:last-child { border-bottom: none; }
.widget-recent-post__thumb {
  flex-shrink: 0; width: 60px; height: 60px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--color-surface2);
}
.widget-recent-post__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.widget-recent-post:hover .widget-recent-post__thumb img { transform: scale(1.1); }
.widget-recent-post__title {
  font-size: 0.8rem; font-weight: 600;
  color: var(--color-heading);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.widget-recent-post:hover .widget-recent-post__title { color: var(--color-brand); }
.widget-recent-post__date { font-size: 0.72rem; color: var(--color-muted); margin-top: 4px; }

/* Catégories sidebar */
.widget-cat-list li {
  padding: 7px 0; border-bottom: 1px solid var(--color-border);
}
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list a {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 0.87rem; color: var(--color-text);
  transition: color var(--transition);
}
.widget-cat-list a:hover { color: var(--color-brand); }
.widget-cat-list .cat-count {
  background: var(--color-surface2); font-size: 0.72rem;
  padding: 2px 8px; border-radius: 999px; color: var(--color-muted);
}

/* Widget À propos */
.widget-about { text-align: center; }
.widget-about__avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--color-surface2);
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; overflow: hidden;
}
.widget-about__avatar img { width: 100%; height: 100%; object-fit: cover; }
.widget-about__name {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 700; color: var(--color-heading); margin-bottom: 5px;
}
.widget-about__bio {
  font-size: 0.8rem; color: var(--color-muted);
  line-height: 1.5; margin-bottom: 12px;
}
.widget-about__socials { display: flex; justify-content: center; gap: 8px; }
.widget-about__socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-surface2); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all var(--transition); color: var(--color-muted);
}
.widget-about__socials a:hover {
  background: var(--color-brand); border-color: var(--color-brand);
  color: #000; transform: translateY(-2px);
}

/* Tags widget */
.widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tag {
  background: var(--color-surface2); border: 1px solid var(--color-border);
  color: var(--color-muted); font-size: 0.76rem;
  padding: 4px 10px; border-radius: 999px;
  transition: all var(--transition);
}
.widget-tag:hover { color: var(--color-brand); border-color: var(--color-brand); }

/* ===================================================
   ARCHIVE / CATEGORY
=================================================== */
.archive-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px; margin-bottom: 28px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.archive-header::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
}
.archive-header--jv::before     { background: var(--color-jv); }
.archive-header--tech::before   { background: var(--color-tech); }
.archive-header--esport::before { background: var(--color-esport); }
.archive-header--papa::before   { background: var(--color-papa); }
.archive-header__icon { font-size: 2.2rem; margin-bottom: 10px; }
.archive-header__title { font-size: 1.9rem; color: var(--color-heading); margin-bottom: 6px; }
.archive-header__desc  { color: var(--color-muted); font-size: 0.92rem; }

/* ===================================================
   SEARCH
=================================================== */
.search-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.search-header__title { font-size: 1.4rem; color: var(--color-heading); margin-bottom: 14px; }
.search-form-large {
  display: flex;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden; max-width: 600px;
  transition: border-color var(--transition);
}
.search-form-large:focus-within { border-color: var(--color-brand); }
.search-form-large input[type="search"] {
  flex: 1; background: none; border: none; outline: none;
  color: var(--color-heading); font-size: 1rem;
  padding: 12px 18px; font-family: var(--font-body);
}
.search-form-large button {
  background: var(--color-brand); border: none;
  color: #000; padding: 12px 18px; cursor: pointer;
  font-family: var(--font-heading); font-size: 0.88rem;
  font-weight: 700; transition: background var(--transition);
}
.search-form-large button:hover { background: var(--color-brand-dark); color: #fff; }

/* ===================================================
   404
=================================================== */
.error-404 { text-align: center; padding: 70px 20px; }
.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900; color: var(--color-brand);
  line-height: 1; margin-bottom: 14px;
}
.error-404__title { font-size: 1.7rem; color: var(--color-heading); margin-bottom: 10px; }
.error-404__desc  { color: var(--color-muted); margin-bottom: 28px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-brand); color: #000;
  font-family: var(--font-heading); font-size: 0.88rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 11px 22px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--color-brand-dark); color: #fff;
  transform: translateY(-2px);
}

/* ===================================================
   COMMENTAIRES
=================================================== */
.comments-area {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px; margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.comments-title {
  font-size: 1.2rem; color: var(--color-heading);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.comment-list { margin-bottom: 36px; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.comment:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; }
.comment-author-name { font-weight: 600; color: var(--color-heading); font-size: 0.88rem; }
.comment-date { font-size: 0.75rem; color: var(--color-muted); }
.comment-body p { font-size: 0.9rem; color: var(--color-text); line-height: 1.6; }

.comment-form label {
  display: block; font-size: 0.83rem;
  font-weight: 600; color: var(--color-muted); margin-bottom: 5px;
}
.comment-form input,
.comment-form textarea {
  width: 100%; background: var(--color-surface2);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-heading); font-family: var(--font-body);
  font-size: 0.9rem; padding: 10px 14px; margin-bottom: 14px;
  transition: border-color var(--transition); outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-brand); }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input[type="submit"] {
  width: auto; background: var(--color-brand);
  color: #000; font-family: var(--font-heading);
  font-weight: 700; font-size: 0.88rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; border: none;
  padding: 11px 26px; border-radius: var(--radius);
  transition: background var(--transition);
}
.comment-form input[type="submit"]:hover { background: var(--color-brand-dark); color: #fff; }

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: var(--header-bg);  /* sombre */
  border-top: 2px solid var(--color-brand);
  padding: 50px 0 0;
  color: #E8E8F0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
.footer-brand__logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-brand__logo-icon {
  width: 34px; height: 34px; background: var(--color-brand);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 900; color: #000;
}
.footer-brand__name {
  font-family: var(--font-heading); font-size: 1.35rem;
  font-weight: 900; color: #fff;
}
.footer-brand__name span { color: var(--color-brand); }
.footer-brand__desc { font-size: 0.83rem; color: #9090A8; line-height: 1.6; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all var(--transition); color: #9090A8;
}
.footer-social-btn:hover {
  background: var(--color-brand); border-color: var(--color-brand);
  color: #000; transform: translateY(-2px);
}
.footer-col__title {
  font-family: var(--font-heading); font-size: 0.78rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand); display: inline-block;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
  font-size: 0.85rem; color: #9090A8;
  transition: color var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.footer-col ul a:hover { color: var(--color-brand); }
.footer-col ul a::before { content: '›'; color: var(--color-brand); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom__copy { font-size: 0.8rem; color: #9090A8; }
.footer-bottom__copy a { color: var(--color-brand); }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { font-size: 0.8rem; color: #9090A8; transition: color var(--transition); }
.footer-nav a:hover { color: var(--color-brand); }

/* ===================================================
   BREADCRUMB SEO
=================================================== */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; font-size: 0.8rem;
  color: var(--color-muted); margin-bottom: 16px;
  padding: 10px 0;
}
.breadcrumb a { color: var(--color-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-brand); }
.breadcrumb__sep { color: var(--color-border); }
.breadcrumb__current { color: var(--color-text); font-weight: 500; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .home-main-grid { grid-template-columns: 1fr; }
  .home-main-grid .post-card:first-child { grid-column: unset; }
}

@media (max-width: 768px) {
  .primary-nav,
  .header-search { display: none; }
  .nav-toggle { display: block; }

  .primary-nav.is-open {
    display: block;
    position: fixed; inset: 64px 0 0 0;
    background: #0C0C0F; z-index: 99;
    overflow-y: auto; padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 2px; }
  .primary-nav.is-open a { display: block; padding: 13px 14px; font-size: 1rem; }

  .site-hero { height: 340px; }
  .hero-slide__content { padding: 18px 20px; }
  .single-article__header,
  .single-article__body,
  .article-tags,
  .article-share,
  .related-posts,
  .comments-area { padding-left: 18px; padding-right: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .posts-grid--3col,
  .posts-grid--2col { grid-template-columns: 1fr; }
  .post-card--horizontal { grid-template-columns: 90px 1fr; }
}

@media (max-width: 480px) {
  .header-inner { height: 58px; }
  .site-logo__text { font-size: 1.25rem; }
  .site-hero { height: 260px; }
  .archive-header,
  .search-header { padding: 20px 16px; }
}

/* ===================================================
   CLASSES WORDPRESS REQUISES
=================================================== */
.alignleft   { float: left;  margin: 0 20px 10px 0; }
.alignright  { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.alignwide   { max-width: 900px; margin: 0 auto; }
.alignfull   { max-width: 100%; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--color-muted); text-align: center; margin-top: 5px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gallery-item img { border-radius: var(--radius); }
.wp-block-quote { border-left: 4px solid var(--color-brand); padding: 12px 20px; margin: 1.5rem 0; background: #FFF8E7; font-style: italic; border-radius: 0 var(--radius) var(--radius) 0; }
.wp-block-code  { background: #1E1E2A; border-radius: var(--radius); padding: 20px; font-family: var(--font-mono); font-size: 0.9rem; color: #E8E8F0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
