/*
Theme Name: ZPGarage Blog
Theme URI: https://zpgarage.com
Author: ZP Digital
Author URI: https://zpdigital.com
Description: Thème blog officiel de ZPGarage — la plateforme de gestion tout-en-un pour les garages modernes. Design dark/light avec palette indigo, typographie Inter. Cohérent avec l'interface de la plateforme ZPGarage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fatasoft-blog
Tags: blog, dark, modern, two-columns, custom-colors, custom-menu, featured-images, post-thumbnails, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS — cohérents avec la plateforme Fatasoft
   ============================================================ */
:root {
  /* Primary palette */
  --color-primary:        #4F46E5;
  --color-primary-hover:  #4338CA;
  --color-primary-light:  #818CF8;
  --color-primary-glow:   rgba(79, 70, 229, 0.3);

  /* Dark theme (default) */
  --bg:         #0F172A;
  --bg-paper:   #1E293B;
  --bg-raised:  #253247;
  --text:       #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim:   #64748B;
  --divider:    #334155;

  /* Semantic */
  --color-success: #2e7d32;
  --color-info:    #1565c0;
  --color-warning: #e65100;
  --color-error:   #c62828;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Sizing */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-btn: 14px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.5);
  --shadow-primary: 0 2px 8px var(--color-primary-glow);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.35s ease;

  /* Layout */
  --header-height: 70px;
  --sidebar-width: 300px;
  --content-max:   1200px;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg:         #F8FAFC;
  --bg-paper:   #FFFFFF;
  --bg-raised:  #F1F5F9;
  --text:       #1E293B;
  --text-muted: #64748B;
  --text-dim:   #94A3B8;
  --divider:    #E2E8F0;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-paper); }
::-webkit-scrollbar-thumb { background: #6366F1; border-radius: 8px; border: 2px solid var(--bg-paper); }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-light); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); letter-spacing: -0.4px; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.375rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.25rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-paper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-raised);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--color-primary-light);
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
pre code { background: none; padding: 0; color: var(--text); }

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--divider);
  text-align: left;
}
th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-paper);
}
tr:hover td { background: var(--bg-raised); }

/* Forms */
input, textarea, select {
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.65rem 1rem;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

/* Buttons */
.btn, button[type="submit"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary, button[type="submit"], input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--color-primary-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-light);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  flex: 1;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2rem;
  align-items: start;
}

.content-area.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(30, 41, 59, 0.85);
  border-bottom: 1px solid var(--divider);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--color-primary-light); }

.site-title span {
  color: var(--color-primary);
}

.site-description {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Primary nav */
.primary-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
  color: var(--text);
  background: var(--bg-raised);
}
.nav-menu .current-menu-item > a {
  color: var(--color-primary-light);
}

/* Dropdown */
.nav-menu .menu-item-has-children {
  position: relative;
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  z-index: 100;
  list-style: none;
}
.nav-menu .menu-item-has-children:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
  padding: 0.55rem 0.85rem;
  display: block;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Search form in header */
.header-search {
  position: relative;
}
.header-search input[type="search"] {
  width: 220px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  background: var(--bg-raised);
  border-radius: 50px;
  border-color: transparent;
}
.header-search input[type="search"]:focus { width: 260px; border-color: var(--color-primary); }
.header-search .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-primary-light);
  border-color: var(--color-primary);
  background: var(--bg-paper);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.menu-toggle:hover { color: var(--text); }

/* ============================================================
   HERO / PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--divider);
}
.page-header-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.page-header-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Blog hero */
.blog-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  margin-bottom: 3rem;
}
.blog-hero h1 {
  margin-bottom: 1rem;
}
.blog-hero h1 span { color: var(--color-primary); }
.blog-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-raised);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-raised), var(--divider));
}
.post-card-thumb-placeholder svg { width: 48px; height: 48px; color: var(--text-dim); }

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-category {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.post-category:hover { background: rgba(99, 102, 241, 0.2); color: var(--color-primary-light); }

.post-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.post-card-title a { color: var(--text); transition: color var(--transition-fast); }
.post-card-title a:hover { color: var(--color-primary-light); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
  margin-top: auto;
}

.post-author-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.post-author-mini .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--divider);
}
.post-author-mini .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.read-more-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.read-more-link:hover { gap: 0.5rem; color: var(--color-primary); }

/* Featured post (first post larger) */
.post-card.post-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card.post-featured .post-card-thumb { aspect-ratio: auto; }
.post-card.post-featured .post-card-title { font-size: 1.5rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  transition: all var(--transition-fast);
}
.page-numbers a:hover {
  color: var(--color-primary-light);
  border-color: var(--color-primary);
  background: var(--bg-raised);
}
.page-numbers .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero {
  margin-bottom: 3rem;
}
.post-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/7;
}
.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-header { margin-bottom: 2rem; }

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  margin-bottom: 2.5rem;
}
.post-byline .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}
.post-byline-info {}
.post-byline-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.post-byline-date {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Post content */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a { color: var(--color-primary-light); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--color-primary); }
.entry-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
}
.entry-content ul, .entry-content ol {
  margin-bottom: 1.5rem;
}
.entry-content li { color: var(--text-muted); margin-bottom: 0.5rem; }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}
.post-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--text-muted);
  border: 1px solid var(--divider);
  transition: all var(--transition-fast);
}
.post-tag:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-primary-light);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}
.post-nav-link {
  display: block;
  padding: 1.25rem;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  color: var(--text);
}
.post-nav-link:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.post-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.post-nav-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-link.next-post { text-align: right; }

/* Related posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--divider);
}
.related-posts-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--divider);
}

/* Search widget */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}
.widget_search input[type="search"] {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.55rem 0.9rem;
}
.widget_search .search-submit {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Categories / recent posts */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.widget ul li a:hover {
  color: var(--color-primary-light);
  background: var(--bg-raised);
}
.widget ul li .count {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-raised);
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
}

/* Tag cloud */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.widget_tag_cloud a {
  font-size: 0.8rem !important;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--text-muted);
  border: 1px solid var(--divider);
  transition: all var(--transition-fast);
}
.widget_tag_cloud a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-primary-light);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--divider);
}
.comments-title {
  font-size: 1.35rem;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.comment {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.comment-author .avatar {
  border-radius: 50%;
  border: 2px solid var(--divider);
  width: 40px;
  height: 40px;
}
.comment-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.comment-metadata {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.comment-body p { font-size: 0.95rem; }

.comment-reply-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-top: 0.75rem;
  display: inline-block;
}

/* Comment form */
.comment-respond {
  margin-top: 3rem;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.comment-reply-title {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}
.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--divider);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

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

.footer-brand .site-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-primary-light); }

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.social-link:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--color-primary-light); }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}
.footer-badge svg { color: #4ade80; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header {
  margin-bottom: 2.5rem;
}
.search-form-large {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
}
.search-form-large input { font-size: 1.05rem; padding: 0.75rem 1.25rem; }
.search-form-large button { flex-shrink: 0; }

.search-results-count {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 5rem 2rem;
}
.error-404-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
  letter-spacing: -8px;
}
.error-404 h1 { margin-bottom: 1rem; }
.error-404 p { max-width: 500px; margin: 0 auto 2rem; }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.category-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
}
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.category-info .archive-title { font-size: 1.75rem; margin-bottom: 0.4rem; }
.category-info .archive-description { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-primary { color: var(--color-primary-light); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.badge-primary { background: rgba(99,102,241,0.15); color: var(--color-primary-light); }
.badge-success { background: rgba(46,125,50,0.15); color: #4ade80; }

.divider { border: none; border-top: 1px solid var(--divider); margin: 2rem 0; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein { animation: fadeInUp 0.45s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  .widget-area { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .related-posts-grid { grid-template-columns: 1fr 1fr; }
  .post-card.post-featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .primary-navigation { display: none; }
  .primary-navigation.is-open {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--bg-paper);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 998;
    border-top: 1px solid var(--divider);
  }
  .primary-navigation.is-open .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .primary-navigation.is-open .nav-menu a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .menu-toggle { display: flex; }
  .header-search { display: none; }

  .posts-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .post-byline { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .post-card-body { padding: 1.15rem; }
  .error-404-code { font-size: 5rem; }
}

/* ============================================================
   LAYOUT AVEC SIDEBAR (override du grid principal)
   ============================================================ */
.content-area--sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.posts-grid--sidebar {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
   HERO HOMEPAGE
   ============================================================ */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  margin-bottom: 0;
}

/* Blobs décoratifs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: rgba(79, 70, 229, 0.18);
  top: -200px; right: -100px;
  animation: blob-float 8s ease-in-out infinite;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: rgba(129, 140, 248, 0.12);
  bottom: -150px; left: -80px;
  animation: blob-float 10s ease-in-out infinite reverse;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(79,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
@keyframes blob-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Texte hero */
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-primary-light);
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.3);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79,70,229,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(79,70,229,0.1); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--text);
  margin: 0;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

.btn-glass {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
  transform: translateY(-2px);
}
[data-theme="light"] .btn-glass {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-muted);
}
[data-theme="light"] .btn-glass:hover {
  background: rgba(0,0,0,0.07);
  color: var(--text);
}

/* Stats inline hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-dim); font-weight: 500; }
.hero-stat-sep {
  width: 1px; height: 36px;
  background: var(--divider);
}

/* ---- Mockup app ---- */
.hero-visual { display: flex; justify-content: flex-end; }

.app-mockup {
  width: 100%;
  max-width: 460px;
  background: var(--bg-paper);
  border-radius: var(--radius-xl);
  border: 1px solid var(--divider);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.15);
  overflow: hidden;
}

.app-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--divider);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-url {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
}

.app-mockup-body { padding: 1rem; }

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.mockup-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.mockup-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: rgba(99,102,241,0.15);
  color: var(--color-primary-light);
}

.mockup-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.mockup-col { display: flex; flex-direction: column; gap: 0.5rem; }
.mockup-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 0.25rem;
}

.mockup-card {
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  transition: border-color 0.2s;
}
.mockup-card-high { border-left: 2px solid #f59e0b; }
.mockup-card-active { border-left: 2px solid var(--color-primary); }
.mockup-card-done { border-left: 2px solid #22c55e; opacity: 0.75; }
.mockup-card-title { font-size: 0.68rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; line-height: 1.3; }
.mockup-card-meta {
  font-size: 0.62rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  overflow: hidden;
}
.mockup-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 2px;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--divider);
}
.mockup-metric { text-align: center; }
.mockup-metric-val {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.mockup-metric-lbl { font-size: 0.6rem; color: var(--text-dim); }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
}
.features-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.feature-pill:hover { background: var(--bg-raised); }
.feature-pill-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  flex-shrink: 0;
}
.feature-pill-text {
  display: flex; flex-direction: column; gap: 3px;
}
.feature-pill-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.feature-pill-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ============================================================
   CATEGORY CHIPS NAV
   ============================================================ */
.category-chips-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.75rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-paper);
  border: 1.5px solid var(--divider);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.cat-chip:hover {
  color: var(--color-primary-light);
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.07);
  transform: translateY(-1px);
}
.cat-chip-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.cat-chip-active:hover { color: #fff; background: var(--color-primary-hover); }
.cat-chip-count {
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.cat-chip:not(.cat-chip-active) .cat-chip-count {
  background: var(--bg-raised);
  color: var(--text-dim);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--divider);
}
.section-heading-left {}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
}

/* ============================================================
   ARTICLE VEDETTE V2 (dans sidebar layout)
   ============================================================ */
.post-featured--v2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 320px;
}
.post-card-thumb--featured {
  position: relative;
  aspect-ratio: auto;
}
.featured-overlay {
  position: absolute;
  top: 1rem; left: 1rem;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  background: rgba(245,158,11,0.9);
  color: #fff;
  backdrop-filter: blur(4px);
}
.post-card-body--featured { padding: 2rem 1.75rem; }
.post-card-title--featured { font-size: 1.35rem; }
.post-card-excerpt--featured { -webkit-line-clamp: 4; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.empty-state svg { color: var(--text-dim); }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { color: var(--text-muted); }

/* ============================================================
   SIDEBAR AMÉLIORÉE
   ============================================================ */
.widget-area {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* CTA plateforme dans sidebar */
.sidebar-platform-cta {
  background: linear-gradient(135deg, #3730a3, var(--color-primary), #6366F1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.sidebar-platform-cta::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.sidebar-platform-cta::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.sidebar-cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-cta-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: #fff;
}
.sidebar-cta-desc {
  font-size: 0.82rem;
  opacity: 0.82;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: #fff;
}
.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
}
.sidebar-cta-btn:hover {
  background: #f0f0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: var(--color-primary-hover);
}
.sidebar-cta-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* Widget de recherche sidebar */
.sidebar-search {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-search-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.sidebar-search-form {
  display: flex;
  gap: 0.4rem;
}
.sidebar-search-form input { font-size: 0.875rem; padding: 0.55rem 0.9rem; border-radius: var(--radius-sm); }
.sidebar-search-form button {
  flex-shrink: 0;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Widget articles récents */
.sidebar-recent {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--divider);
}
.recent-post-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--divider);
  transition: background var(--transition-fast);
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb {
  width: 58px; height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-raised);
}
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-raised), var(--divider));
  color: var(--text-dim);
}
.recent-post-info {}
.recent-post-title {
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
}
.recent-post-item:hover .recent-post-title { color: var(--color-primary-light); }
.recent-post-date { font-size: 0.72rem; color: var(--text-dim); }

/* Widget catégories sidebar */
.sidebar-categories {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-cat-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.sidebar-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.sidebar-cat-item a:hover {
  background: var(--bg-raised);
  color: var(--color-primary-light);
  padding-left: 0.9rem;
}
.sidebar-cat-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-raised);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  min-width: 24px;
  text-align: center;
}

/* Widget newsletter sidebar */
.sidebar-newsletter {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.sidebar-newsletter-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99,102,241,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--color-primary-light);
}
.sidebar-newsletter h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.sidebar-newsletter p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sidebar-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-newsletter-form input { font-size: 0.875rem; text-align: center; }
.sidebar-newsletter-form button { width: 100%; justify-content: center; }
.sidebar-newsletter-disclaimer {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ============================================================
   BANNIÈRE PLATEFORME (full width)
   ============================================================ */
.platform-banner {
  margin-top: 4rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e293b 100%);
  border: 1px solid rgba(99,102,241,0.25);
}
[data-theme="light"] .platform-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 40%, #f8fafc 100%);
  border-color: rgba(99,102,241,0.15);
}

.platform-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 3rem 3.5rem;
  position: relative;
  z-index: 1;
}
.platform-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  filter: blur(60px);
  pointer-events: none;
}

.platform-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(99,102,241,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid rgba(99,102,241,0.2);
}
.platform-banner-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
[data-theme="light"] .platform-banner-title { color: #1e1b4b; }
.platform-banner-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
[data-theme="light"] .platform-banner-desc { color: var(--text-muted); }

.platform-banner-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.platform-banner-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
[data-theme="light"] .platform-banner-feature { color: var(--text-muted); }
.platform-banner-feature svg { color: #4ade80; flex-shrink: 0; }

.platform-banner-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-align: center;
}
.platform-banner-cta .btn-primary {
  white-space: nowrap;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(79,70,229,0.5);
}
.platform-banner-cta .btn-primary:hover { box-shadow: 0 8px 30px rgba(79,70,229,0.6); }
.platform-banner-cta-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}
[data-theme="light"] .platform-banner-cta-note { color: var(--text-dim); }

/* ============================================================
   RESPONSIVE — nouvelles sections
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { justify-content: center; }
  .app-mockup { max-width: 100%; }
  .features-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .content-area--sidebar { grid-template-columns: 1fr; }
  .posts-grid--sidebar { grid-template-columns: repeat(2, 1fr); }
  .post-featured--v2 { grid-template-columns: 1fr; }
  .post-card-thumb--featured { aspect-ratio: 16/7; }
  .widget-area { position: static; }
  .platform-banner-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .platform-banner-features { justify-content: center; }
  .platform-banner-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  .home-hero { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { gap: 1rem; }
  .features-strip { padding: 1.25rem; }
  .features-strip-inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .posts-grid--sidebar { grid-template-columns: 1fr; }
  .category-chips-nav { gap: 0.4rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .platform-banner { border-radius: var(--radius-lg); }
  .platform-banner-inner { padding: 2rem 1.5rem; }
  .platform-banner-title { font-size: 1.5rem; }
}
