/*
Theme Name: IXNews Tech
Theme URI: https://ixtr.ca
Author: IXNews
Author URI: https://ixtr.ca
Description: Theme WordPress moderne dark + orange pour plugin IXNews. Glassmorphism, animations, AdSense-ready, TOC auto, partage, articles similaires.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ixnews-tech
Tags: dark, tech, magazine, blog, news, glassmorphism, modern, adsense, two-columns, right-sidebar
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg: #0a0e1a;
  --bg-darker: #050810;
  --bg-card: rgba(22, 28, 45, 0.6);
  --bg-card-solid: #161c2d;
  --bg-hover: rgba(255, 140, 66, 0.08);
  --bg-glass: rgba(22, 28, 45, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.04);

  --text: #f0f4f8;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;

  --accent: #ff8c42;
  --accent-hover: #ff6b1a;
  --accent-glow: rgba(255, 140, 66, 0.4);
  --accent-bg: rgba(255, 140, 66, 0.12);
  --accent-gradient: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%);

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Space Grotesk', var(--font-sans);

  --max-width: 1320px;
  --content-width: 760px;
  --sidebar-width: 320px;
  --header-height: 72px;

  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;
  --gap-2xl: 60px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px var(--accent-glow);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-darker: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-solid: #ffffff;
  --bg-hover: rgba(255, 107, 26, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --border-light: rgba(15, 23, 42, 0.04);

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent: #ff6b1a;
  --accent-hover: #e85d0f;
  --accent-glow: rgba(255, 107, 26, 0.3);
  --accent-bg: rgba(255, 107, 26, 0.08);
  --accent-gradient: linear-gradient(135deg, #ff6b1a 0%, #ea580c 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Background avec gradient subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 140, 66, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--gap-md);
  color: var(--text);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 var(--gap-md); }

ul, ol { margin: 0 0 var(--gap-md); padding-left: 1.5rem; }

code, pre, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

code {
  background: var(--accent-bg);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 500;
}

pre {
  background: var(--bg-darker);
  padding: var(--gap-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border);
}

pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
}

blockquote {
  border-left: 4px solid var(--accent);
  margin: var(--gap-lg) 0;
  padding: var(--gap-md) var(--gap-lg);
  background: var(--accent-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  position: relative;
}
blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: serif;
}
blockquote p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--gap-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--gap-md) 0;
}
th, td {
  padding: var(--gap-sm) var(--gap-md);
  border: 1px solid var(--border);
  text-align: left;
}
th { background: var(--bg-card-solid); font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.site-main {
  padding: var(--gap-xl) 0;
  min-height: calc(100vh - var(--header-height) - 200px);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap-xl);
  align-items: start;
}

.layout-full {
  max-width: var(--content-width);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar-wrap { order: 2; }
}

/* ============================================================
   TOP BAR - Date/heure + Météo (v1.3.0)
   ============================================================ */
.top-bar {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 0;
  z-index: 101;
  position: relative;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}
.top-bar-datetime {
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}
.top-bar-weather {
  display: flex;
  gap: var(--gap-md);
  align-items: center;
  flex-wrap: wrap;
}
.weather-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.weather-city-name {
  color: var(--text-secondary);
  font-weight: 600;
}
.weather-city-temp {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}
.weather-city-icon {
  font-size: 0.85rem;
}
.weather-loading {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
  .top-bar-weather {
    gap: var(--gap-sm);
    font-size: 0.7rem;
  }
  .top-bar-datetime {
    font-size: 0.7rem;
  }
}

/* ============================================================
   NEWS TICKER - Ruban défilant (v1.3.0)
   ============================================================ */
.news-ticker-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card-solid);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 40px;
  position: relative;
}
.news-ticker-label {
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}
.ticker-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.news-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.news-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding-left: 100%;
}
.news-ticker-track:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  border-right: 1px solid var(--border-light);
}
.ticker-item:hover {
  color: var(--accent);
  text-decoration: none;
}
.ticker-category {
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .news-ticker-wrap {
    height: 36px;
  }
  .news-ticker-label {
    font-size: 0.6rem;
    padding: 0 10px;
  }
  .ticker-item {
    font-size: 0.75rem;
    padding: 0 12px;
  }
  .ticker-category {
    font-size: 0.55rem;
    padding: 1px 6px;
  }
  .news-ticker-track {
    animation-duration: 40s;
  }
}

/* ============================================================
   HEADER - Glassmorphism moderne
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(248, 250, 252, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--gap-lg);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.site-logo:hover {
  transform: scale(1.02);
  text-decoration: none;
}
.site-logo .logo-ix {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.site-logo .logo-news {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--gap-xs);
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  position: relative;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* Search moderne */
.search-wrap {
  position: relative;
}
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  width: 220px;
  transition: var(--transition);
  font-family: var(--font-sans);
  backdrop-filter: blur(10px);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  width: 280px;
  background: var(--bg-card-solid);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.search-input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--gap-sm);
  display: none;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.search-results.active { display: block; }

.search-result-item {
  padding: var(--gap-sm);
  border-radius: var(--radius-sm);
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
  transition: var(--transition-fast);
}
.search-result-item:hover {
  background: var(--bg-hover);
  text-decoration: none;
  transform: translateX(4px);
}
.search-result-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.search-result-title {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.05rem;
  backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    padding: var(--gap-md);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .main-navigation.active { transform: translateY(0); }
  .nav-menu {
    flex-direction: column;
    gap: 0;
  }
  .nav-menu a {
    display: block;
    padding: var(--gap-md);
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
  }
  .search-input { width: 150px; }
  .search-input:focus { width: 200px; }
  .search-results { width: calc(100vw - 32px); right: -16px; }
}

/* ============================================================
   FEATURED - Hero cards modernes (v1.2.0)
   ============================================================ */
.featured-section {
  margin-bottom: var(--gap-2xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-lg);
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.featured-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  display: block;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-card:hover img { transform: scale(1.05); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gap-xl);
}
.featured-card-category,
.featured-mini-category {
  display: inline-flex;
  align-items: center;
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--gap-sm);
  align-self: flex-start;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.featured-card-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--gap-sm);
  letter-spacing: -0.03em;
}
.featured-card-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  display: flex;
  gap: var(--gap-md);
  align-items: center;
}

.featured-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap-lg);
}
.featured-mini {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.featured-mini:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-mini:hover img { transform: scale(1.05); }
.featured-mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gap-lg);
}
.featured-mini-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 var(--gap-lg);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  letter-spacing: -0.02em;
}
.section-title::before {
  content: '';
  width: 5px;
  height: 28px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   ARTICLE GRID - Cards glassmorphism modernes (v1.2.0)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}
@media (max-width: 980px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: block;
  aspect-ratio: 4 / 3;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 32px var(--accent-glow);
  text-decoration: none;
}
.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover .article-card-img { transform: scale(1.1); }

.article-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gap-lg);
}
.article-card-category {
  display: inline-flex;
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--gap-sm);
  align-self: flex-start;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.article-card-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--gap-sm);
  letter-spacing: -0.02em;
}
.article-card-meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  display: flex;
  gap: var(--gap-md);
  align-items: center;
}

.article-card.read .article-card-overlay::after {
  content: 'LU';
  position: absolute;
  top: var(--gap-sm);
  right: var(--gap-sm);
  background: var(--success);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   SIDEBAR - Glassmorphism widgets
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--gap-md));
}
.widget {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.widget:hover {
  border-color: var(--border-strong);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  letter-spacing: -0.01em;
}
.widget-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--border-light);
}
.widget li:last-child { border-bottom: none; }
.widget a {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: var(--transition-fast);
}
.widget a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: trending;
}
.trending-item {
  display: flex;
  gap: var(--gap-md);
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--border-light);
  counter-increment: trending;
  align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trending-item::before {
  content: counter(trending, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  width: 32px;
  line-height: 1.2;
}
.trending-item a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   ADSENSE ZONES
   ============================================================ */
.ad-zone {
  margin: var(--gap-lg) 0;
  text-align: center;
  position: relative;
}
.ad-zone-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--gap-xs);
  font-weight: 500;
}
.ad-zone-content {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
}
.ad-zone-header .ad-zone-content {
  min-height: 90px;
}
.ad-zone-sidebar .ad-zone-content {
  min-height: 250px;
}
.ad-zone-incontent .ad-zone-content {
  min-height: 250px;
}
.ad-zone-after .ad-zone-content {
  min-height: 250px;
}

/* Sidebar ad full width */
.sidebar .ad-zone {
  margin: 0 0 var(--gap-md) 0;
}

/* ============================================================
   SINGLE ARTICLE - Layout pleine largeur centré (v1.2.0)
   ============================================================ */

/* Wrapper global qui centre tout sur content-width */
.single-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}

.single-header {
  margin: 0 0 var(--gap-lg);
  text-align: left;
}

.single-category {
  display: inline-flex;
  align-items: center;
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--gap-md);
  box-shadow: 0 4px 16px var(--accent-glow);
  text-decoration: none;
  transition: var(--transition);
}
.single-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff !important;
  text-decoration: none;
}

.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--gap-md);
  letter-spacing: -0.03em;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  align-items: center;
  padding: var(--gap-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.single-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.single-author {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px var(--accent-glow);
  flex-shrink: 0;
}

.featured-image-wrap {
  margin: 0 0 var(--gap-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured-image-wrap img {
  width: 100%;
  height: auto;
}

/* Body de l'article - tout est centré sur content-width */
.article-body {
  width: 100%;
}

/* Article content */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.85;
}
.article-content p { margin: 0 0 var(--gap-md); }
.article-content h2 {
  margin-top: var(--gap-xl);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}
.article-content h3 {
  margin-top: var(--gap-lg);
  font-size: 1.25rem;
}
.article-content ul, .article-content ol {
  margin: 0 0 var(--gap-md) 0;
  padding-left: 1.5rem;
}
.article-content li { margin-bottom: var(--gap-sm); }
.article-content strong {
  color: var(--accent);
  font-weight: 600;
}
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 140, 66, 0.4);
  text-underline-offset: 3px;
}
.article-content img {
  border-radius: var(--radius-md);
  margin: var(--gap-md) 0;
}
.article-content figure { margin: var(--gap-md) 0; }
.article-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--gap-sm);
}

/* TOC moderne */
.toc {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md) var(--gap-lg);
  margin: var(--gap-xl) 0;
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 var(--gap-md);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.toc-title::before {
  content: '☰';
  color: var(--accent);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc-list > li {
  margin-bottom: var(--gap-sm);
  counter-increment: toc;
  padding-left: 28px;
  position: relative;
}
.toc-list > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.toc-list a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.toc-list a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.toc-list .toc-sub {
  list-style: none;
  padding-left: var(--gap-md);
  margin-top: var(--gap-sm);
  counter-reset: none;
}
.toc-list .toc-sub li::before {
  content: '↳';
  color: var(--text-muted);
}

/* Share buttons moderne */
.share-section {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--gap-xl) 0;
  flex-wrap: wrap;
}
.share-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: var(--gap-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}
.share-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  text-decoration: none;
}
.share-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4); }
.share-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4); }
.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
.share-btn.copy:hover { background: var(--success); border-color: var(--success); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); }

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin: var(--gap-md) 0;
}
.tag-link {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.tag-link:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Related */
.related-section {
  margin-top: var(--gap-2xl);
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--gap-sm);
  margin: var(--gap-2xl) 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--gap-sm);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-2px);
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-header {
  margin-bottom: var(--gap-xl);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.archive-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 var(--gap-sm);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.archive-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   FOOTER - Moderne avec notice legale (v1.2.1)
   ============================================================ */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: var(--gap-2xl) 0 var(--gap-md);
  margin-top: var(--gap-2xl);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}
@media (max-width: 768px) { .footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-widgets { grid-template-columns: 1fr; } }

.footer-widget h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 var(--gap-md);
}
.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-widget li { padding: 4px 0; }
.footer-widget a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.footer-widget a:hover { color: var(--accent); }

/* Notice legale (v1.2.1) */
.footer-legal {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--gap-md);
}
.footer-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}
@media (max-width: 768px) {
  .footer-legal-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
}
.footer-legal-col h4.footer-legal-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 var(--gap-sm);
}
.footer-legal-col p {
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.6;
  margin: 0 0 var(--gap-sm);
}
.footer-legal-text {
  font-style: italic;
}
.footer-legal-copyright {
  font-weight: 500;
  color: var(--text-secondary);
}
.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-legal-links li { padding: 3px 0; }
.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.825rem;
  transition: var(--transition-fast);
}
.footer-legal-links a:hover { color: var(--accent); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--gap-md);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}
.footer-bottom a {
  color: var(--accent);
  font-weight: 600;
}
.footer-bottom a:hover { color: var(--accent-hover); }

.footer-badges {
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.footer-badge:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============================================================
   READING PROGRESS BAR - gradient moderne
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 999;
  width: 0;
  transition: width 0.1s ease;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.reading-time::before { content: '⏱'; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: var(--gap-2xl) 0;
}
.error-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.error-404 p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: var(--gap-2xl);
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--border);
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}
.comment-list { list-style: none; padding: 0; }
.comment {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-md);
  margin-bottom: var(--gap-md);
}
.comment .children {
  list-style: none;
  padding-left: var(--gap-lg);
  margin-top: var(--gap-md);
}
.comment-author { font-weight: 600; color: var(--text); }
.comment-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--gap-sm);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   ANIMATIONS - Reveal au scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gap-md);
  background: var(--accent-gradient);
  color: #fff;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--gap-sm); }

/* ============================================================
   MOBILE OPTIMIZATIONS (v1.2.1)
   ============================================================ */

/* Tablettes (max 980px) */
@media (max-width: 980px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-wrap {
    order: 2;
    margin-top: var(--gap-xl);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --gap-xl: 32px;
    --gap-2xl: 48px;
  }

  .container {
    padding: 0 var(--gap-md);
  }

  /* Header */
  .header-inner {
    gap: var(--gap-sm);
  }
  .site-logo {
    font-size: 1.25rem;
  }
  .search-input {
    width: 130px;
    padding: 8px 12px 8px 34px;
    font-size: 0.8rem;
  }
  .search-input:focus {
    width: 180px;
  }
  .search-results {
    width: calc(100vw - 32px);
    right: -16px;
    max-height: 320px;
  }

  /* Navigation mobile */
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    padding: var(--gap-md);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .main-navigation.active {
    transform: translateY(0);
  }
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-menu a {
    display: block;
    padding: var(--gap-md);
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    width: 100%;
  }
  .nav-menu a:hover,
  .nav-menu .current-menu-item > a {
    background: var(--bg-hover);
  }

  /* Menu toggle */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Featured section */
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    min-height: 280px;
  }
  .featured-card-overlay {
    padding: var(--gap-md);
  }
  .featured-card-title {
    font-size: 1.25rem;
  }
  .featured-secondary {
    grid-template-rows: auto auto;
  }
  .featured-mini {
    min-height: 180px;
  }
  .featured-mini-title {
    font-size: 1rem;
  }

  /* Articles grid - 1 colonne sur mobile */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .article-card {
    aspect-ratio: 16 / 9;
  }
  .article-card-title {
    font-size: 1.1rem;
  }
  .article-card-overlay {
    padding: var(--gap-md);
  }

  /* Section title */
  .section-title {
    font-size: 1.25rem;
    margin-bottom: var(--gap-md);
  }

  /* Single article */
  .single-wrap {
    padding: 0;
  }
  .single-header {
    margin-bottom: var(--gap-md);
  }
  .single-title {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    line-height: 1.2;
  }
  .single-meta {
    gap: var(--gap-sm);
    font-size: 0.8rem;
    flex-wrap: wrap;
    padding: var(--gap-sm) 0;
  }
  .author-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* Article content */
  .article-content {
    font-size: 1rem;
    line-height: 1.75;
  }
  .article-content h2 {
    font-size: 1.375rem;
    margin-top: var(--gap-lg);
  }
  .article-content h3 {
    font-size: 1.125rem;
    margin-top: var(--gap-md);
  }
  .article-content p,
  .article-content ul,
  .article-content ol {
    font-size: 1rem;
  }

  /* TOC */
  .toc {
    padding: var(--gap-md);
    margin: var(--gap-md) 0;
  }
  .toc-list a {
    font-size: 0.875rem;
  }

  /* Featured image */
  .featured-image-wrap {
    border-radius: var(--radius-md);
    margin-bottom: var(--gap-md);
  }

  /* Share buttons */
  .share-section {
    gap: var(--gap-xs);
    padding: var(--gap-md) 0;
  }
  .share-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
  .share-label {
    font-size: 0.8rem;
    width: 100%;
    margin-bottom: var(--gap-xs);
  }

  /* Tags */
  .tag-link {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  /* Related */
  .related-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .related-section {
    margin-top: var(--gap-xl);
    padding-top: var(--gap-lg);
  }

  /* Pagination */
  .pagination {
    gap: var(--gap-xs);
    margin: var(--gap-xl) 0;
  }
  .pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .footer-legal-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .footer-legal {
    padding: var(--gap-md) 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--gap-sm);
    font-size: 0.8rem;
  }
  .footer-badges {
    justify-content: center;
  }

  /* Widgets */
  .widget {
    padding: var(--gap-md);
  }
  .sidebar {
    position: static;
  }

  /* Ad zones */
  .ad-zone-content {
    min-height: 100px !important;
  }

  /* Search results mobile */
  .search-result-item img {
    width: 40px;
    height: 40px;
  }
  .search-result-title {
    font-size: 0.8rem;
  }

  /* 404 */
  .error-404 h1 {
    font-size: 5rem;
  }
  .error-404 p {
    font-size: 1rem;
  }
}

/* Petits mobiles (max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--gap-sm);
  }
  .site-logo {
    font-size: 1.125rem;
  }
  .search-input {
    width: 100px;
    font-size: 0.75rem;
  }
  .search-input:focus {
    width: 140px;
  }
  .featured-card {
    min-height: 220px;
  }
  .featured-card-title {
    font-size: 1.1rem;
  }
  .article-card {
    aspect-ratio: 4 / 3;
  }
  .article-card-title {
    font-size: 1rem;
  }
  .article-card-meta {
    font-size: 0.7rem;
  }
  .single-title {
    font-size: 1.25rem;
  }
  .single-meta {
    font-size: 0.75rem;
  }
  .share-btn {
    width: 34px;
    height: 34px;
  }
  .footer-badge {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* Scroll top button visibility */
.scroll-top {
  display: none;
}
.scroll-top.visible {
  display: inline-flex;
}
