/*! blog.css - Design moderne inspiré de Yuive & Adnimi | Responsive + Dark Mode | 2026 */

/* ========== 1. RESET & VARIABLES (Yuive / Adnimi) ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Mode clair (par défaut) */
:root {
  --primary: #ff6600;           /* Orange signature Yuive */
  --primary-light: #ff8533;
  --primary-dark: #cc5200;
  --secondary: #1e3a8a;         /* Bleu profond Adnimi */
  --accent: #10b981;            /* Touche turquoise */
  --bg-gradient: linear-gradient(145deg, #f9f7fc 0%, #eaeef5 100%);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-dark: rgba(20, 25, 36, 0.6);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 8px 32px rgba(31, 38, 135, 0.08);
  --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --white: #ffffff;
  --light-gray: #f3f4f6;
  --border-color: #e5e7eb;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-gradient: linear-gradient(145deg, #111827 0%, #1f2937 100%);
    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-dark: #f9fafb;
    --text-muted: #9ca3af;
    --white: #1f2937;
    --light-gray: #374151;
    --border-color: #374151;
    --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 25px 40px -12px rgba(0, 0, 0, 0.4);
  }
}

body {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.2s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 2. TYPOGRAPHIE ========== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* ========== 3. NAVIGATION (Glassmorphisme) ========== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-left { display: flex; align-items: center; }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.logo:hover { transform: translateY(-2px); }
.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.nav-center { flex: 1; display: flex; justify-content: center; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* Search */
.search-container { position: relative; }
.search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}
.search-btn:hover { color: var(--primary); }
.search-box {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  width: 300px;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
  border: 1px solid var(--border-color);
}
.search-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text-dark);
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}
.search-submit {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}
.search-submit:hover { background: var(--primary-dark); }

.btn-login {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}
.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 102, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ========== 4. SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid var(--border-color);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.close-search {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}
.close-search:hover { color: var(--primary); }
.search-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.search-input-group input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--white);
  color: var(--text-dark);
}
.search-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.search-modal-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-modal-btn:hover { background: var(--primary-dark); }
.search-suggestions h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background: var(--light-gray);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== 5. BLOG HERO ========== */
.blog-hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 0L0 0 892.25 114.72 1200 0z" fill="%23ffffff"/></svg>');
  background-size: 100% 100px;
  background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
  .blog-hero::before { filter: invert(1); }
}
.blog-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.blog-hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
}
.blog-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: white;
}
.blog-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== 6. LAYOUT PRINCIPAL ========== */
.blog-container { padding: 4rem 0; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

/* Featured Article */
.featured-article { margin-bottom: 4rem; }
.featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(0);
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.featured-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-card:hover .featured-image img { transform: scale(1.05); }
.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.featured-content { padding: 2.5rem; display: flex; flex-direction: column; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-category {
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 500;
}
.article-date, .article-read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name { font-weight: 600; color: var(--text-dark); }
.author-role { font-size: 0.875rem; color: var(--text-muted); }
.read-more-btn {
  align-self: flex-start;
  background: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}
.read-more-btn:hover {
  background: var(--primary-dark);
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
}

/* Articles Grid */
.recent-articles { margin-bottom: 3rem; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(0);
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.article-card:hover .article-image img { transform: scale(1.08); }
.article-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.article-content { padding: 1.5rem; }
.article-content .article-meta { margin-bottom: 0.75rem; font-size: 0.8rem; }
.article-content .article-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.article-content .article-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.article-author-small {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-author-small img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.article-author-small span {
  font-size: 0.875rem;
  font-weight: 500;
}
.article-link {
  background: var(--light-gray);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.article-link:hover {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-dark);
}
.pagination-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.pagination-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

/* ========== 7. SIDEBAR (Widgets modernes) ========== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(0);
  transition: var(--transition);
}
.sidebar-widget:hover { box-shadow: var(--shadow-md); }
.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.widget-title i { color: var(--primary); }
.widget-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.newsletter-form input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  transition: var(--transition);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}
.subscribe-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.subscribe-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 102, 0, 0.2);
}
.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.privacy-note a { color: var(--primary); text-decoration: none; }
.privacy-note a:hover { text-decoration: underline; }

/* Catégories */
.categories-list { list-style: none; }
.categories-list li { border-bottom: 1px solid var(--border-color); }
.categories-list li:last-child { border-bottom: none; }
.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}
.categories-list a:hover { color: var(--primary); transform: translateX(4px); }
.category-name { font-weight: 500; }
.category-count {
  background: var(--light-gray);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  min-width: 28px;
  text-align: center;
}

/* Articles populaires */
.popular-articles { display: flex; flex-direction: column; gap: 1rem; }
.popular-article {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.popular-article:last-child { border-bottom: none; padding-bottom: 0; }
.popular-rank {
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.popular-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.popular-content h4 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}
.popular-content h4 a:hover { color: var(--primary); }
.popular-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags-container .tag {
  background: var(--light-gray);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.tags-container .tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* About widget */
.about-content { text-align: center; }
.about-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  border-radius: 50%;
  background: var(--light-gray);
  padding: 0.5rem;
}
.about-content p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.about-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.about-link:hover { gap: 0.8rem; color: var(--primary-dark); }

/* ========== 8. MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: var(--transition);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.close-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}
.mobile-nav {
  list-style: none;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav li { margin-bottom: 1rem; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--light-gray);
  color: var(--primary);
}
.mobile-search {
  padding: 1.5rem;
  display: flex;
  gap: 0.5rem;
}
.mobile-search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-dark);
}
.mobile-search-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  width: 44px;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-search-btn:hover { background: var(--primary-dark); }

/* ========== 9. FOOTER ========== */
.blog-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}
.footer-logo {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
}
.logo-text h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.logo-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-column h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-column ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}
.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.copyright a {
  color: var(--primary);
  text-decoration: none;
}
.copyright a:hover { text-decoration: underline; }

/* ========== 10. RESPONSIVE ========== */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .menu-toggle { display: block; }
  .search-box { display: none; }
  .blog-hero-title { font-size: 2.5rem; }
  .featured-card { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-stats { flex-direction: column; gap: 1.5rem; }
  .footer-links { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .blog-hero-title { font-size: 2rem; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .search-modal { padding: 1.5rem; }
  .search-input-group { flex-direction: column; }
  .featured-content { padding: 1.5rem; }
}

/* ========== 11. UTILITAIRES & ANIMATIONS ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-gray); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.fade-in {
  animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading {
  position: relative;
  overflow: hidden;
}
.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}