/*
Theme Name: noxurai
Theme URI: https://noxurai.com
Author: noxurai Team
Author URI: https://noxurai.com
Description: Thème WordPress premium pour noxurai - Actualités et innovations en Intelligence Artificielle
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ia-horizon
Tags: blog, news, dark-mode, light-mode, custom-menu, custom-logo, featured-images
*/

/* ============================================
   noxurai - Premium AI News Website
   Style CSS Complet
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Dark mode (default) */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a1f35;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(17, 24, 39, 0.6);
  --bg-navbar: rgba(10, 14, 26, 0.85);
  --bg-input: rgba(30, 38, 60, 0.8);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-heading: #ffffff;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-hero: linear-gradient(180deg, rgba(10,14,26,0) 0%, rgba(10,14,26,0.8) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(139,92,246,0.5));
  --gradient-newsletter: linear-gradient(135deg, #1a1040 0%, #0f1a3a 50%, #0a1628 100%);

  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);

  --border-color: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(59, 130, 246, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  --navbar-height: 72px;
  --container-max: 1280px;
  --container-padding: 24px;
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-navbar: rgba(248, 250, 252, 0.9);
  --bg-input: rgba(241, 245, 249, 0.9);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-heading: #0f172a;

  --gradient-newsletter: linear-gradient(135deg, #ede9fe 0%, #dbeafe 50%, #e0f2fe 100%);

  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.15);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.15);

  --border-color: rgba(148, 163, 184, 0.2);
  --border-glow: rgba(59, 130, 246, 0.2);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg-primary);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-heading);
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-heading);
}

/* ---------- Focus States ---------- */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

a:hover {
  color: var(--accent-purple);
}

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

ul, ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.section-badge i {
  font-size: 0.75rem;
}

.section-title {
  margin-bottom: 16px;
  position: relative;
}

.section-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  height: 60px;
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--border-glow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-heading);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover {
  transform: scale(1.03);
  color: var(--text-heading);
}


.navbar-logo-full {
  gap: 0;
}

.navbar-logo .brand-full-logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .navbar-logo .brand-full-logo {
    height: 40px;
  }
}

.navbar-logo .logo-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.navbar-logo .logo-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.navbar-logo .logo-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: -3px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-variation-settings: 'wght' 900;
  letter-spacing: -0.01em;
}


.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-heading);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: inline-block;
}

/* Subscribe Button */
.btn-subscribe {
  padding: 8px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 10002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 10001;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(100%);
  transition: all var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu .nav-link {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  color: var(--text-heading);
  padding-left: 12px;
  border-bottom-color: var(--accent-blue);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Animated background gradients */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.hero-bg .orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ---------- Articles / News Grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.article-card:hover::before {
  opacity: 1;
}

.article-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.article-image .img-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.9);
}

.article-image .img-gradient.grad-1 {
  background: linear-gradient(135deg, #1e3a5f, #3b82f6, #06b6d4);
}
.article-image .img-gradient.grad-2 {
  background: linear-gradient(135deg, #3b1f6e, #8b5cf6, #a855f7);
}
.article-image .img-gradient.grad-3 {
  background: linear-gradient(135deg, #1a3c34, #10b981, #06b6d4);
}
.article-image .img-gradient.grad-4 {
  background: linear-gradient(135deg, #3b1234, #ec4899, #f43f5e);
}
.article-image .img-gradient.grad-5 {
  background: linear-gradient(135deg, #3b2f1a, #f59e0b, #ef4444);
}
.article-image .img-gradient.grad-6 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.article-card:hover .img-gradient {
  transform: scale(1.05);
  transition: transform var(--transition-slow);
}

.article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.category-breaking { background: var(--accent-red); }
.category-recherche { background: var(--accent-purple); }
.category-tutoriel { background: var(--accent-green); }
.category-analyse { background: var(--accent-blue); }
.category-opinion { background: var(--accent-orange); }
.category-tech { background: var(--accent-cyan); }

.article-body {
  padding: 20px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--accent-blue);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.article-card .article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
}

.article-card .article-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- OpenClaw Section ---------- */
.openclaw-section {
  background: var(--bg-secondary);
}

.openclaw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-blue);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.feature-card h4 {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Code Snippet */
.code-demo {
  max-width: 700px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.code-header {
  background: #1e1e2e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.code-lang {
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: 'Space Grotesk', monospace;
}

.code-body {
  background: #11111b;
  padding: 24px;
  overflow-x: auto;
}

.code-body pre {
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #cdd6f4;
  white-space: pre;
  margin: 0;
}

.code-body .keyword { color: #cba6f7; }
.code-body .string { color: #a6e3a1; }
.code-body .function { color: #89b4fa; }
.code-body .comment { color: #6c7086; font-style: italic; }
.code-body .variable { color: #f38ba8; }
.code-body .operator { color: #89dceb; }

.openclaw-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Topics Section ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.topic-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.topic-card:hover::before {
  transform: scaleX(1);
}

.topic-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.topic-card h4 {
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 0.85rem;
}

.topic-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 500;
}

/* ---------- Newsletter Section ---------- */
.newsletter-section {
  background: var(--gradient-newsletter);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  animation: orbFloat 30s ease-in-out infinite;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.newsletter-content h2 {
  margin-bottom: 12px;
}

.newsletter-content > p {
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-base);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
}

.newsletter-form .btn-primary {
  white-space: nowrap;
}

.newsletter-message {
  font-size: 0.85rem;
  min-height: 24px;
  margin-top: 8px;
  transition: all var(--transition-base);
}

.newsletter-message.success {
  color: var(--accent-green);
}

.newsletter-message.error {
  color: var(--accent-red);
}

.newsletter-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 12px;
}

/* ---------- Community Section ---------- */
.community-section {
  background: var(--bg-secondary);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.community-stat {
  text-align: center;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.community-stat:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-blue);
}

.community-stat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.community-stat .stat-number {
  font-size: 2rem;
  display: block;
  margin-bottom: 4px;
}

.community-stat .stat-label {
  font-size: 0.85rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.testimonial-quote {
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.testimonial-info .name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.9rem;
}

.testimonial-info .role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-heading);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand .footer-logo .logo-icon {
  display: inline-flex;
  align-items: center;
}

.footer-brand .footer-logo .logo-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.footer-brand > p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--accent-blue);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-bottom-links a:hover {
  color: var(--accent-blue);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 9999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Fade In animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive: 1280px ---------- */
@media (max-width: 1280px) {
  .container {
    max-width: 1100px;
  }
}

/* ---------- Responsive: 1024px ---------- */
@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .openclaw-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Responsive: 768px ---------- */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero-stats {
    gap: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .openclaw-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .community-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .btn-subscribe {
    display: none;
  }
}

/* ---------- Responsive: 480px ---------- */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
    --navbar-height: 64px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .code-body {
    padding: 16px;
  }

  .code-body pre {
    font-size: 0.75rem;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- WordPress Specific Styles ---------- */

/* Single Post */
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.single-post-content .post-header {
  margin-bottom: 40px;
  text-align: center;
}

.single-post-content .post-category {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--gradient-primary);
  margin-bottom: 16px;
}

.single-post-content .post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.single-post-content .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.single-post-content .post-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.single-post-content .post-body p {
  margin-bottom: 1.5em;
}

.single-post-content .post-body h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.single-post-content .post-body h3 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.single-post-content .post-body ul,
.single-post-content .post-body ol {
  margin: 1em 0;
  padding-left: 2em;
  list-style: disc;
}

.single-post-content .post-body ol {
  list-style: decimal;
}

.single-post-content .post-body blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.single-post-content .post-body img {
  border-radius: var(--radius-md);
  margin: 2em auto;
}

.single-post-content .post-body code {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.single-post-content .post-body pre {
  background: #11111b;
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2em 0;
}

.single-post-content .post-body pre code {
  background: none;
  padding: 0;
}

/* Blog / Archive */
.blog-content {
  padding: 120px 0 80px;
}

.blog-content .section-header {
  margin-bottom: 40px;
}

/* Page */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-content .page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-content .page-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.page-content .page-body p {
  margin-bottom: 1.5em;
}

/* 404 */
.error-404-content {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.error-404-content .error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-content .error-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-404-content .error-text {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.pagination a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.pagination .current {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* WordPress menu classes */
.navbar-nav .menu-item a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.navbar-nav .menu-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar-nav .menu-item a:hover,
.navbar-nav .current-menu-item a {
  color: var(--text-heading);
}

.navbar-nav .menu-item a:hover::after,
.navbar-nav .current-menu-item a::after {
  width: 100%;
}

/* WordPress nav menu reset */
.navbar-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}



/* Fix Mobile Menu WordPress List Items */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.mobile-menu li {
    width: 100%;
}

.mobile-menu li a {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

.mobile-menu li a:hover,
.mobile-menu li.current-menu-item a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Fix Readability for Cards */
.article-card {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
}

.article-body {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
}

.article-title {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.article-excerpt {
    color: var(--text-secondary) !important;
    opacity: 0.9;
}

/* Si c'est une carte "Hero" avec texte sur image */
.hero-card .article-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: white;
    padding: 2rem 1.5rem;
}

.hero-card .article-title, 
.hero-card .article-excerpt {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Fix Readability CRITIQUE - Carte Mistral */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-secondary) !important; /* Force le fond sombre/clair uni */
}

/* Image en haut */
.article-image {
    height: 200px;
    flex-shrink: 0;
    position: relative;
}

/* Corps en bas - Fond uni OBLIGATOIRE */
.article-body {
    flex-grow: 1;
    background-color: var(--bg-secondary) !important;
    padding: 1.5rem !important;
    color: var(--text-primary) !important;
}

/* Titre */
.article-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important; /* Blanc en dark mode */
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
}

/* Extrait */
.article-excerpt {
    font-size: 1rem !important; /* Plus gros */
    line-height: 1.6 !important;
    color: var(--text-secondary) !important; /* Gris clair sur fond sombre */
    opacity: 1 !important;
}

/* Si jamais il y a un overlay bizarre, on le tue */
.article-card * {
    text-shadow: none !important;
}

/* ULTIMATE FIX - Mistral Card */
.news-grid article.article-card {
    background-color: #1a1f2e !important;
    display: block !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="light"] .news-grid article.article-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

.news-grid article .article-image {
    height: 200px !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
}

.news-grid article .article-body {
    position: static !important; /* Empêche le texte de monter sur l'image */
    background: transparent !important;
    padding: 1.5rem !important;
    width: 100% !important;
}

.news-grid article h3 {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    margin-top: 0 !important;
}

[data-theme="light"] .news-grid article h3 {
    color: #111827 !important;
}

.news-grid article p {
    color: #9ca3af !important;
    font-size: 1rem !important;
}

[data-theme="light"] .news-grid article p {
    color: #4b5563 !important;
}

/* FIX FINAL : Pas de fond coloré sur les cartes ! */
.article-card {
    background: var(--bg-secondary) !important; /* Gris foncé / Blanc */
    background-image: none !important;
}

.article-body {
    background: transparent !important;
}

.article-title {
    color: var(--text-primary) !important; /* Blanc / Noir */
}

.article-excerpt {
    color: var(--text-secondary) !important; /* Gris clair / Gris foncé */
}

/* Seul le badge de catégorie garde sa couleur */
.article-category.category-breaking {
    background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
    color: white !important;
}

/* Fix Readability Specific Text */
.article-card p, .article-excerpt, .hero-subtitle {
    color: #cbd5e1 !important; /* Gris très clair (presque blanc) sur fond sombre */
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important; /* Ombre portée pour détacher du fond */
}

[data-theme="light"] .article-card p, 
[data-theme="light"] .article-excerpt {
    color: #334155 !important; /* Gris foncé sur fond clair */
    text-shadow: none !important;
}

/* Single Article intro banner readability (e.g. Breaking Mistral) */
.single-post-content .post-body .article-meta {
  display: block !important;
  color: #ffffff !important;
}

.single-post-content .post-body .article-meta p,
.single-post-content .post-body .article-meta span,
.single-post-content .post-body .article-meta strong {
  color: #ffffff !important;
  opacity: 1 !important;
}

.single-post-content .post-body .article-meta p {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* ===== Article quick summary + tutorial levels ===== */
.article-actions {
  padding: 0 20px 20px;
}

.article-summary-toggle {
  width: 100%;
  border: 1px solid var(--border-color);
  background: rgba(99, 145, 255, 0.12);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-summary-toggle:hover {
  border-color: var(--accent-blue);
  background: rgba(99, 145, 255, 0.2);
}

.article-summary {
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tutorial-level-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tutorial-level-prefix,
.tutorial-level-label {
  font-weight: 600;
}

.tutorial-stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
  letter-spacing: 1px;
}

.post-quick-tools {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.summary-toggle-btn {
  border: 1px solid var(--border-color);
  background: rgba(99, 145, 255, 0.12);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.article-summary-box {
  margin-top: 8px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: left;
  padding: 16px 18px;
}

.article-summary-box h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.article-summary-box p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== IDE-like code blocks in tutorials/articles ===== */
.single-post-content .post-body pre {
  position: relative;
  background: #0f172a !important;
  border: 1px solid #263247;
  border-radius: 12px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.45);
}

.single-post-content .post-body pre::before {
  content: attr(data-language);
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93c5fd;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
  z-index: 3;
}

.single-post-content .post-body pre code.hljs,
.single-post-content .post-body pre code {
  display: block;
  background: transparent !important;
  color: #e2e8f0;
  margin: 0;
  padding: 18px 18px 18px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  tab-size: 2;
}

.single-post-content .post-body :not(pre) > code {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
  color: #c4b5fd;
}

/* ===== Related posts (single) ===== */
.related-posts-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.related-posts-section h3 {
  margin-bottom: 18px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-post-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all .2s ease;
}

.related-post-item a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 14px;
}

.related-post-item h4 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.related-post-item p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.related-post-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo-full {
  gap: 0;
}

.footer-logo .brand-full-logo-footer {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo .brand-full-logo-footer {
    height: 36px;
  }
}
