   12. CATEGORY SECTIONS
============================================================ */
.category-section {
  padding-block: var(--af-space-8);
}

.category-section:nth-child(odd) { background: var(--af-white); }
.category-section:nth-child(even) { background: var(--af-bg-main); }

/* Category section color accents */
.category-section[data-cat="politique"] .section-header::before { background: #C1121F; }
.category-section[data-cat="economie"] .section-header::before   { background: #1565C0; }
.category-section[data-cat="monde"] .section-header::before      { background: #2E7D32; }
.category-section[data-cat="societe"] .section-header::before    { background: #6A1B9A; }
.category-section[data-cat="culture"] .section-header::before    { background: #E65100; }
.category-section[data-cat="sport"] .section-header::before      { background: #00838F; }

/* Category lead + list layout */
.cat-lead-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--af-space-6);
  align-items: start;
}

.cat-lead-card {
  border-radius: var(--af-radius-md);
  overflow: hidden;
  background: var(--af-white);
  border: 1px solid var(--af-gray-200);
  transition: box-shadow var(--af-transition-fast);
}

.cat-lead-card:hover { box-shadow: var(--af-shadow-md); }

.cat-lead-card .card-img { overflow: hidden; }
.cat-lead-card .card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
}

.cat-lead-card:hover .card-img img { transform: scale(1.03); }

.cat-lead-card .card-body { padding: var(--af-space-4); }

.cat-lead-card .card-title {
  font-size: var(--af-text-xl);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  margin: var(--af-space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-lead-card .card-title a:hover { color: var(--af-primary); }

.cat-lead-card .card-excerpt {
  color: var(--af-gray-600);
  font-size: var(--af-text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--af-space-3);
}

/* Category small list */
.cat-small-list {
  display: flex;
  flex-direction: column;
  gap: var(--af-space-4);
}

/* ============================================================
   13. ARTICLE CARDS
============================================================ */

/* Standard card (image top) */
.article-card {
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid var(--af-gray-200);
  transition: box-shadow var(--af-transition-fast), transform var(--af-transition-fast);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--af-shadow-md);
  transform: translateY(-2px);
}

.article-card .card-img {
  overflow: hidden;
  flex-shrink: 0;
}

.article-card .card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
  display: block;
}

.article-card:hover .card-img img { transform: scale(1.04); }

.article-card .card-body {
  padding: var(--af-space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .card-title {
  font-size: var(--af-text-md);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  margin: var(--af-space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card .card-title a:hover { color: var(--af-primary); }

.article-card .card-excerpt {
  font-size: var(--af-text-sm);
  color: var(--af-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--af-space-3);
}

.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--af-space-3);
  border-top: 1px solid var(--af-gray-100);
  margin-top: auto;
}

/* Horizontal list card */
.article-list-card {
  display: flex;
  gap: var(--af-space-3);
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-100);
}

.article-list-card:last-child { border-bottom: none; }

.article-list-card .card-img {
  width: 110px;
  flex-shrink: 0;
  border-radius: var(--af-radius);
  overflow: hidden;
}

.article-list-card .card-img img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
}

.article-list-card:hover .card-img img { transform: scale(1.05); }

.article-list-card .card-body { flex: 1; min-width: 0; }

.article-list-card .card-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--af-space-2);
}

.article-list-card .card-title a:hover { color: var(--af-primary); }

/* Numbered list card (trending/popular) */
.article-ranked-card {
  display: flex;
  gap: var(--af-space-4);
  align-items: flex-start;
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-100);
}

.article-ranked-card:last-child { border-bottom: none; }

.article-ranked-card .rank-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--af-gray-200);
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
  font-family: var(--af-font-heading);
}

.article-ranked-card .card-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  color: var(--af-gray-900);
  line-height: var(--af-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-ranked-card .card-title a:hover { color: var(--af-primary); }

/* ============================================================
   14. LATEST NEWS SECTION
============================================================ */
.latest-news-section {
  background: var(--af-white);
  padding-block: var(--af-space-8);
  border-bottom: 1px solid var(--af-gray-200);
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-6);
}

/* ============================================================
   15. SIDEBAR
============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--af-space-6);
}

.widget {
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid var(--af-gray-200);
}

.widget-header {
  padding: var(--af-space-4);
  border-bottom: 1px solid var(--af-gray-200);
  position: relative;
}

.widget-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--af-primary);
}

.widget-title {
  font-size: var(--af-text-md);
  font-weight: 800;
  color: var(--af-gray-900);
  margin: 0;
  padding-left: var(--af-space-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.widget-body { padding: var(--af-space-4); }

/* Popular posts widget */
.widget-popular-posts { }
.widget-popular-posts .post-item {
  display: flex;
  gap: var(--af-space-3);
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-100);
}
.widget-popular-posts .post-item:last-child { border-bottom: none; }
.widget-popular-posts .post-img {
  width: 75px;
  height: 55px;
  flex-shrink: 0;
  border-radius: var(--af-radius-sm);
  overflow: hidden;
}
.widget-popular-posts .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-popular-posts .post-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-popular-posts .post-title a:hover { color: var(--af-primary); }
.widget-popular-posts .post-date {
  font-size: var(--af-text-xs);
  color: var(--af-gray-400);
  margin-top: var(--af-space-1);
}

/* Categories widget */
.widget-categories .cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--af-space-2) 0;
  border-bottom: 1px solid var(--af-gray-100);
  font-size: var(--af-text-sm);
}
.widget-categories .cat-item:last-child { border-bottom: none; }
.widget-categories .cat-item a {
  display: flex;
  align-items: center;
  gap: var(--af-space-2);
  color: var(--af-gray-700);
  font-weight: 600;
  transition: color var(--af-transition-fast);
}
.widget-categories .cat-item a:hover { color: var(--af-primary); }
.widget-categories .cat-item a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--af-primary);
  flex-shrink: 0;
}
.widget-categories .count {
  font-size: var(--af-text-xs);
  color: var(--af-gray-400);
  background: var(--af-gray-100);
  padding: 2px 8px;
  border-radius: var(--af-radius-full);
}

/* Tags widget */
.widget-tags .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--af-space-2);
}
.widget-tags .tag-item a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--af-gray-100);
  color: var(--af-gray-700);
  font-size: var(--af-text-xs);
  border-radius: var(--af-radius-full);
  font-weight: 600;
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
  border: 1px solid var(--af-gray-200);
}
.widget-tags .tag-item a:hover {
  background: var(--af-primary);
  color: var(--af-white);
  border-color: var(--af-primary);
}

/* Ad widget */
.widget-ad {
  border: none;
  background: transparent;
}
.widget-ad .ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background: var(--af-gray-50);
  border: 1px dashed var(--af-gray-300);
  border-radius: var(--af-radius-md);
  color: var(--af-gray-400);
  font-size: var(--af-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   16. SINGLE POST
============================================================ */
.single-post-wrap {
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid var(--af-gray-200);
  margin-bottom: var(--af-space-6);
}

/* Post hero image */
.single-hero {
  position: relative;
  overflow: hidden;
  background: var(--af-gray-900);
}

.single-hero img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}

.single-hero figcaption {
  padding: var(--af-space-2) var(--af-space-4);
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
  background: var(--af-gray-50);
  border-top: 1px solid var(--af-gray-200);
}

/* Post header */
.single-post-header {
  padding: var(--af-space-8);
  border-bottom: 1px solid var(--af-gray-200);
}

.single-post-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--af-gray-900);
  line-height: var(--af-leading-tight);
  margin: var(--af-space-3) 0;
  letter-spacing: -0.02em;
}

.single-post-subtitle {
  font-size: var(--af-text-xl);
  color: var(--af-gray-600);
  font-weight: 400;
  font-family: var(--af-font-heading);
  font-style: italic;
  margin-bottom: var(--af-space-4);
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--af-space-4);
  padding-top: var(--af-space-4);
  border-top: 1px solid var(--af-gray-100);
}

.single-author-info {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.single-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--af-gray-200);
}

.single-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-author-name {
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-900);
}

.single-author-name a:hover { color: var(--af-primary); }
.single-post-date { color: var(--af-gray-500); font-size: var(--af-text-sm); }

/* Post content */
.single-post-content {
  padding: var(--af-space-8);
  overflow: hidden;
  max-width: 100%;
}

.entry-content {
  max-width: 72ch;
  width: 100%;
  font-size: var(--af-text-lg);
  line-height: var(--af-leading-relaxed);
  color: var(--af-gray-800);
  overflow-wrap: break-word;
  word-break: break-word;
}

.entry-content > * + * { margin-top: var(--af-space-5); }
.entry-content p { margin-bottom: var(--af-space-5); }

.entry-content h2 {
  font-size: var(--af-text-2xl);
  font-weight: 800;
  margin-top: var(--af-space-10);
  margin-bottom: var(--af-space-4);
  padding-bottom: var(--af-space-2);
  border-bottom: 2px solid var(--af-gray-200);
  position: relative;
}

.entry-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: var(--af-primary);
}

.entry-content h3 {
  font-size: var(--af-text-xl);
  font-weight: 700;
  margin-top: var(--af-space-8);
  margin-bottom: var(--af-space-3);
}

.entry-content h4 {
  font-size: var(--af-text-lg);
  font-weight: 700;
  margin-top: var(--af-space-6);
  margin-bottom: var(--af-space-2);
}

.entry-content ul, .entry-content ol {
  padding-left: var(--af-space-6);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--af-space-2); }

.entry-content a {
  color: var(--af-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--af-primary-dark); }

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--af-radius-md);
  margin-block: var(--af-space-6);
}

.entry-content figure {
  max-width: 100%;
  margin-block: var(--af-space-6);
}

.entry-content table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
  max-width: 100%;
  height: auto;
}

.entry-content figcaption {
  font-size: var(--af-text-sm);
  color: var(--af-gray-500);
  text-align: center;
  margin-top: var(--af-space-2);
  font-style: italic;
}

/* In-article ad */
.in-article-ad {
  margin-block: var(--af-space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--af-gray-50);
  border: 1px dashed var(--af-gray-300);
  border-radius: var(--af-radius);
  padding: var(--af-space-4);
}

/* Post tags */
.single-post-tags {
  padding: 0 var(--af-space-8) var(--af-space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--af-space-2);
}

.single-post-tags .tags-label {
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-700);
}

.single-post-tags .tag-link {
  display: inline-block;
  padding: 4px 12px;
  background: var(--af-gray-100);
  color: var(--af-gray-700);
  font-size: var(--af-text-xs);
  border-radius: var(--af-radius-full);
  font-weight: 600;
  border: 1px solid var(--af-gray-200);
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
}

.single-post-tags .tag-link:hover {
  background: var(--af-primary);
  color: var(--af-white);
  border-color: var(--af-primary);
}

/* Share bar */
.share-bar {
  padding: var(--af-space-4) var(--af-space-8);
  border-top: 1px solid var(--af-gray-200);
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  flex-wrap: wrap;
}

.share-bar .share-label {
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-700);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--af-space-2);
  padding: var(--af-space-2) var(--af-space-4);
  border-radius: var(--af-radius);
  font-size: var(--af-text-xs);
  font-weight: 700;
  color: var(--af-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity var(--af-transition-fast);
}

.share-btn:hover { opacity: 0.88; color: var(--af-white); }
.share-btn svg { width: 14px; height: 14px; }

.share-btn.share-facebook { background: #1877F2; }
.share-btn.share-twitter  { background: #000000; }
.share-btn.share-whatsapp { background: #25D366; }
.share-btn.share-telegram { background: #2AABEE; }
.share-btn.share-copy     { background: var(--af-gray-700); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--af-space-4);
  padding: var(--af-space-6) var(--af-space-8);
  border-top: 1px solid var(--af-gray-200);
}

.post-nav-item {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  padding: var(--af-space-4);
  background: var(--af-gray-50);
  border-radius: var(--af-radius);
  border: 1px solid var(--af-gray-200);
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
}

.post-nav-item:hover {
  background: var(--af-white);
  border-color: var(--af-primary);
  box-shadow: var(--af-shadow-sm);
}

.post-nav-item.nav-next { justify-content: flex-end; text-align: right; }

.post-nav-label {
  font-size: var(--af-text-xs);
  font-weight: 700;
  color: var(--af-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  color: var(--af-gray-900);
  line-height: var(--af-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-arrow { flex-shrink: 0; color: var(--af-primary); }
.post-nav-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   17. AUTHOR BOX
============================================================ */
.author-box {
  background: var(--af-gray-50);
  border: 1px solid var(--af-gray-200);
  border-radius: var(--af-radius-md);
  padding: var(--af-space-6);
  display: flex;
  gap: var(--af-space-5);
  margin-bottom: var(--af-space-6);
}

.author-box .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--af-white);
  box-shadow: var(--af-shadow-sm);
}

.author-box .author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box .author-info { flex: 1; }

.author-box .author-name {
  font-size: var(--af-text-lg);
  font-weight: 800;
  color: var(--af-gray-900);
  margin-bottom: var(--af-space-2);
}

.author-box .author-name a:hover { color: var(--af-primary); }

.author-box .author-role {
  font-size: var(--af-text-xs);
  color: var(--af-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--af-space-3);
}

.author-box .author-bio {
  font-size: var(--af-text-sm);
  color: var(--af-gray-600);
  line-height: var(--af-leading-relaxed);
}

.author-box .author-social {
  display: flex;
  gap: var(--af-space-2);
  margin-top: var(--af-space-3);
}

.author-box .author-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--af-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--af-gray-600);
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
}

.author-box .author-social a:hover { background: var(--af-primary); color: var(--af-white); }
.author-box .author-social svg { width: 14px; height: 14px; }

/* ============================================================
   18. RELATED POSTS
============================================================ */
.related-posts {
  margin-bottom: var(--af-space-8);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-4);
}

/* ============================================================
   19. ARCHIVE & SEARCH
============================================================ */
.archive-header {
  background: var(--af-secondary);
  color: var(--af-white);
  padding: var(--af-space-10) 0;
  margin-bottom: var(--af-space-8);
}

.archive-header .archive-label {
  font-size: var(--af-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-primary-light);
  margin-bottom: var(--af-space-2);
}

.archive-header .archive-title {
  font-size: var(--af-text-4xl);
  font-weight: 900;
  color: var(--af-white);
  margin: 0;
}

.archive-header .archive-count {
  color: rgba(255,255,255,0.6);
  font-size: var(--af-text-sm);
  margin-top: var(--af-space-2);
}

.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-6);
  margin-bottom: var(--af-space-8);
}

/* Search results */
.search-results-header {
  padding: var(--af-space-6) 0;
  border-bottom: 1px solid var(--af-gray-200);
  margin-bottom: var(--af-space-6);
}

.search-query-highlight { color: var(--af-primary); font-weight: 800; }

.search-result-item {
  display: flex;
  gap: var(--af-space-4);
  padding: var(--af-space-4) 0;
  border-bottom: 1px solid var(--af-gray-100);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-img {
  width: 150px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--af-radius);
  overflow: hidden;
  background: var(--af-gray-100);
}

.search-result-img img { width: 100%; height: 100%; object-fit: cover; }

.search-result-title {
  font-size: var(--af-text-lg);
  font-weight: 700;
  color: var(--af-gray-900);
  margin-bottom: var(--af-space-2);
}

.search-result-title a:hover { color: var(--af-primary); }

.search-result-excerpt {
  font-size: var(--af-text-sm);
  color: var(--af-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 404 */
.error-404-wrap {
  text-align: center;
  padding: var(--af-space-20) var(--af-space-4);
}

.error-404-wrap .error-number {
  font-size: 10rem;
  font-weight: 900;
  color: var(--af-gray-200);
  line-height: 1;
  font-family: var(--af-font-heading);
}

.error-404-wrap .error-title {
  font-size: var(--af-text-3xl);
  font-weight: 800;
  color: var(--af-gray-900);
  margin-bottom: var(--af-space-4);
}

.error-404-wrap .error-text {
  color: var(--af-gray-500);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--af-space-6);
}

/* ============================================================
   20. FOOTER
============================================================ */
.site-footer {
  background: var(--af-secondary);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

.footer-top {
  padding: var(--af-space-12) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--af-space-8);
}

.footer-about .footer-logo {
  margin-bottom: var(--af-space-4);
}

.footer-about .footer-logo .logo-text {
  color: var(--af-white);
  font-size: var(--af-text-2xl);
}

.footer-about .footer-logo .logo-text span { color: var(--af-primary-light); }

.footer-desc {
  font-size: var(--af-text-sm);
  line-height: var(--af-leading-relaxed);
  color: rgba(255,255,255,0.60);
  margin-bottom: var(--af-space-4);
}

.footer-social {
  display: flex;
  gap: var(--af-space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
  border: 1px solid rgba(255,255,255,0.10);
}

.footer-social a:hover { background: var(--af-primary); color: var(--af-white); border-color: var(--af-primary); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col-title {
  font-size: var(--af-text-md);
  font-weight: 800;
  color: var(--af-white);
  margin-bottom: var(--af-space-4);
  padding-bottom: var(--af-space-2);
  border-bottom: 2px solid var(--af-primary);
  display: inline-block;
}

.footer-links { display: flex; flex-direction: column; gap: var(--af-space-2); }

.footer-links a {
  font-size: var(--af-text-sm);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: var(--af-space-2);
  transition: color var(--af-transition-fast);
}

.footer-links a::before {
  content: '›';
  color: var(--af-primary-light);
  font-weight: 700;
}

.footer-links a:hover { color: var(--af-white); }

/* Footer newsletter */
.footer-newsletter-form {
  display: flex;
  gap: var(--af-space-2);
  margin-top: var(--af-space-4);
}

.footer-newsletter-form input {
  flex: 1;
  padding: var(--af-space-2) var(--af-space-3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--af-radius);
  color: var(--af-white);
  font-size: var(--af-text-sm);
  outline: none;
}

.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form input:focus { border-color: var(--af-primary); }

.footer-newsletter-form button {
  padding: var(--af-space-2) var(--af-space-4);
  background: var(--af-primary);
  color: var(--af-white);
  border-radius: var(--af-radius);
  font-size: var(--af-text-sm);
  font-weight: 700;
  transition: background var(--af-transition-fast);
}

.footer-newsletter-form button:hover { background: var(--af-primary-dark); }

/* Footer bottom */
.footer-bottom {
  padding: var(--af-space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--af-space-3);
  font-size: var(--af-text-xs);
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: var(--af-space-4);
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--af-transition-fast);
}

.footer-bottom-links a:hover { color: var(--af-white); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--af-space-6);
  right: var(--af-space-6);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--af-primary);
  color: var(--af-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--af-shadow-md);
  z-index: var(--af-z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: transform var(--af-transition), opacity var(--af-transition), box-shadow var(--af-transition), background-color var(--af-transition), border-color var(--af-transition), color var(--af-transition);
  cursor: pointer;
}

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

.back-to-top:hover { background: var(--af-primary-dark); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ============================================================
   21. NEWSLETTER SECTION (homepage block)
============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--af-secondary) 0%, var(--af-secondary-light) 100%);
  padding: var(--af-space-12) 0;
  color: var(--af-white);
}

.newsletter-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.newsletter-inner .newsletter-icon {
  font-size: 3rem;
  margin-bottom: var(--af-space-4);
}

.newsletter-inner h2 {
  font-size: var(--af-text-3xl);
  font-weight: 800;
  color: var(--af-white);
  margin-bottom: var(--af-space-2);
}

.newsletter-inner p {
  color: rgba(255,255,255,0.70);
  margin-bottom: var(--af-space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--af-space-3);
  max-width: 480px;
  margin-inline: auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--af-space-3) var(--af-space-4);
  border-radius: var(--af-radius);
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: var(--af-white);
  font-size: var(--af-text-base);
  outline: none;
  transition: border-color var(--af-transition-fast);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--af-primary-light); }

.newsletter-form button {
  padding: var(--af-space-3) var(--af-space-6);
  background: var(--af-primary);
  color: var(--af-white);
  border-radius: var(--af-radius);
  font-weight: 700;
  font-size: var(--af-text-sm);
  white-space: nowrap;
  transition: background var(--af-transition-fast);
}

.newsletter-form button:hover { background: var(--af-primary-dark); }

/* ============================================================
   22. AD ZONES
============================================================ */
.ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--af-gray-50);
  border: 1px dashed var(--af-gray-300);
  border-radius: var(--af-radius);
  overflow: hidden;
  text-align: center;
}

.ad-zone-leaderboard { min-height: 90px; } /* 728×90 */
.ad-zone-rectangle   { min-height: 250px; width: 100%; max-width: 300px; } /* 300×250 */
.ad-zone-billboard   { min-height: 250px; } /* 970×250 */
.ad-zone-inline      { min-height: 280px; margin-block: var(--af-space-6); } /* in-article */

/* ============================================================
   23. BREADCRUMBS
============================================================ */
.breadcrumbs {
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--af-space-1);
  margin-bottom: var(--af-space-4);
}

.breadcrumbs a {
  color: var(--af-gray-500);
  transition: color var(--af-transition-fast);
}

.breadcrumbs a:hover { color: var(--af-primary); }

.breadcrumbs .sep {
  color: var(--af-gray-300);
  font-size: 10px;
}

.breadcrumbs .current { color: var(--af-gray-800); font-weight: 600; }
   26. RTL SUPPORT
============================================================ */
[dir="rtl"] .section-header::before { left: auto; right: 0; }
[dir="rtl"] .widget-header::before  { left: auto; right: 0; }
[dir="rtl"] .footer-links a::before { content: '‹'; }
[dir="rtl"] .breadcrumbs .sep       { transform: scaleX(-1); }
[dir="rtl"] .post-nav-arrow         { transform: scaleX(-1); }
[dir="rtl"] .entry-content ul,
[dir="rtl"] .entry-content ol       { padding-left: 0; padding-right: var(--af-space-6); }

/* ============================================================
   27. WORDPRESS CORE CLASSES
============================================================ */
.alignleft  { float: left; margin-right: var(--af-space-4); margin-bottom: var(--af-space-4); }
.alignright { float: right; margin-left: var(--af-space-4); margin-bottom: var(--af-space-4); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--af-space-4); }
.alignwide  { width: 100%; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); max-width: 100vw; }

.wp-caption { margin-bottom: var(--af-space-4); }
.wp-caption img { display: block; }
.wp-caption-text { font-size: var(--af-text-xs); color: var(--af-gray-500); text-align: center; margin-top: var(--af-space-2); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--af-space-3); margin-bottom: var(--af-space-4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--af-radius-sm); }

.sticky { border-left: 3px solid var(--af-primary); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* Comments */
.comments-area { margin-top: var(--af-space-8); }
.comments-title { font-size: var(--af-text-2xl); font-weight: 800; margin-bottom: var(--af-space-6); }
.comment-list { margin-bottom: var(--af-space-6); }
.comment { padding: var(--af-space-4) 0; border-bottom: 1px solid var(--af-gray-200); }
.comment:last-child { border-bottom: none; }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: var(--af-text-xs); color: var(--af-gray-500); }
.comment-content { margin-top: var(--af-space-2); font-size: var(--af-text-sm); }

/* Forms */
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: var(--af-space-3);
  border: 1px solid var(--af-gray-200);
  border-radius: var(--af-radius);
  font-size: var(--af-text-base);
  outline: none;
  transition: border-color var(--af-transition-fast);
  margin-bottom: var(--af-space-4);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--af-primary); }

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form input[type="submit"] {
  width: auto;
  background: var(--af-primary);
  color: var(--af-white);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--af-transition-fast);
}

.comment-form input[type="submit"]:hover { background: var(--af-primary-dark); }

/* ============================================================
   FLOATING SHARE BAR (sidebar sticky on single posts)
============================================================ */
.share-floating {
  position: fixed;
  left: var(--af-space-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--af-space-2);
  z-index: var(--af-z-sticky);
}

.share-floating__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--af-gray-200);
  border-radius: 50%;
  color: var(--af-gray-600);
  margin-bottom: var(--af-space-1);
}

.share-floating__label svg { width: 16px; height: 16px; }

.share-floating__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--af-white);
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast);
  cursor: pointer;
  border: none;
}

.share-floating__btn svg { width: 16px; height: 16px; }
.share-floating__btn--copy { background: var(--af-gray-700); }
.share-floating__btn:hover { transform: scale(1.1); opacity: 0.9; }

/* Compact share */
.share-compact {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.share-compact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
}

.share-compact__btn svg { width: 14px; height: 14px; }
.share-compact__btn:hover { opacity: 0.75; }

/* Share btn label (hide on small screens) */
@media (max-width: 640px) {
  .share-btn__label { display: none; }
  .share-btn { padding: var(--af-space-2); }
}

/* Hide floating share on small screens */
@media (max-width: 1280px) {
  .share-floating { display: none; }
}

/* ============================================================
   POST META INLINE STYLES (template-parts/single/meta.php)
============================================================ */
.post-meta--single {
  padding-block: var(--af-space-4);
  border-top: 1px solid var(--af-gray-100);
  flex-wrap: wrap;
}

.post-meta__author-wrap {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.post-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.post-meta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta__author-name {
  display: block;
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-900);
}

.post-meta__author-name:hover { color: var(--af-primary); }

.post-meta__date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
}

.post-meta__date svg { width: 12px; height: 12px; flex-shrink: 0; }

.post-meta__reading-time,
.post-meta__views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
}

.post-meta__reading-time svg,
.post-meta__views svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ============================================================
   LOAD MORE BUTTON
============================================================ */
.load-more-wrap {
  text-align: center;
  padding-top: var(--af-space-8);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--af-space-3);
  padding: var(--af-space-3) var(--af-space-8);
  background: var(--af-white);
  color: var(--af-gray-700);
  border: 2px solid var(--af-gray-200);
  border-radius: var(--af-radius);
  font-size: var(--af-text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast), box-shadow var(--af-transition-fast), background-color var(--af-transition-fast), border-color var(--af-transition-fast), color var(--af-transition-fast);
  font-family: var(--af-font-sans);
}

.load-more-btn:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
  background: rgba(193,18,31,.04);
}

.load-more-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.load-more__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--af-gray-300);
  border-top-color: var(--af-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FLOATING SHARE BAR (continued)
============================================================ */

/* ============================================================
   28. ACCESSIBILITY (continued)
============================================================ */
:focus-visible {
  outline: 3px solid var(--af-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--af-space-4);
  z-index: 9999;
  padding: var(--af-space-2) var(--af-space-4);
  background: var(--af-primary);
  color: var(--af-white);
  font-weight: 700;
  border-radius: var(--af-radius);
}

.skip-link:focus { left: var(--af-space-4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================================
   Algerie Focus — v15 INP additions
   Append to assets/css/below-fold.css (loaded async, non-blocking).
   These back the JS changes: autocomplete is now built with createElement
   (styles live here instead of inline), and load-more stagger is pure CSS.
   ============================================================ */

/* ── Search autocomplete dropdown (was inline cssText in main.js) ── */
.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--af-bg-card, #fff);
	border-radius: 0 0 8px 8px;
	box-shadow: var(--af-shadow-lg, 0 8px 24px rgba(0, 0, 0, .18));
	max-height: 360px;
	overflow-y: auto;
	z-index: 999;
	/* contain isolates layout/paint so keystroke re-renders don't invalidate the page */
	contain: layout paint;
}

.search-suggestions__empty {
	padding: 12px 16px;
	color: var(--af-gray-500, #888);
	font-size: 13px;
}

.search-suggestions__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--af-gray-100, #f0f0f0);
	text-decoration: none;
	color: var(--af-gray-900, #222);
	font-size: 13px;
}

.search-suggestions__thumb {
	width: 50px;
	height: 36px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.search-suggestions__body { min-width: 0; }

.search-suggestions__title {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-suggestions__meta {
	font-size: 11px;
	color: var(--af-gray-500, #888);
	margin-top: 2px;
}

.search-suggestions__cat {
	color: var(--af-primary, #C1121F);
	font-weight: 700;
}

html.dark-mode .search-suggestions {
	background: var(--af-bg-dark-card, #1f2937);
}
html.dark-mode .search-suggestions__row {
	color: #e0e0e0;
	border-bottom-color: rgba(255, 255, 255, .08);
}

/* ── Load-more card entrance — CSS stagger via --i (no JS timers) ── */
.af-card-enter {
	/* compositor-only properties → no layout, no paint storm */
	animation: afCardEnter .35s ease both;
	animation-delay: calc(var(--i, 0) * 60ms);
	will-change: transform, opacity;
}

@keyframes afCardEnter {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Respect users who asked for less motion. */
@media (prefers-reduced-motion: reduce) {
	.af-card-enter { animation: none; }
	.af-fade-in    { animation: none; }
}

/* ============================================================
   Garde-fou Auto Ads — v15.0.4
   Empêche AdSense Auto Ads d'injecter DANS le slider hero et
   d'écraser l'article épinglé. La vraie correction reste de
   désactiver "Annonces dans la page" dans le compte AdSense ;
   ceci est une protection de secours côté thème.
   ============================================================ */

/* Toute insertion Auto Ads à l'intérieur d'un conteneur protégé est neutralisée */
[data-no-autoads] .google-auto-placed,
[data-no-autoads] ins.adsbygoogle[data-anchor-status],
.hero-main .google-auto-placed,
.hero-section .google-auto-placed {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
}

/* ============================================================
   Menu mobile — éléments mobile-only — v15.0.7
   Le bouton fermer + les liens sociaux + séparateurs sont injectés
   dans #primary-menu et ne doivent JAMAIS apparaître dans le menu
   horizontal desktop. Cachés par défaut, affichés sous 769px.
   ============================================================ */
.af-menu-close,
.af-menu-social,
.af-menu-extra,
.af-menu-sep {
	display: none;
}

@media (max-width: 768px) {
	.af-menu-close {
		display: flex;
		position: absolute;
		top: 14px;
		right: 16px;
		background: none;
		border: none;
		color: #fff;
		cursor: pointer;
		padding: 6px;
		z-index: 2;
	}
	.af-menu-extra { display: list-item; }
	.af-menu-sep {
		display: block;
		height: 1px;
		margin: 12px 20px;
		background: rgba(255,255,255,0.12);
	}
	.af-menu-social {
		display: flex;
		gap: 18px;
		justify-content: center;
		padding: 20px;
		margin-top: auto;
	}
	.af-menu-social-link { color: rgba(255,255,255,0.85); }
}
