/*
Theme Name: Atlas Machines Blog
Theme URI: https://atlasmachines.ma/blog
Author: Atlas Machines — GP Contractor
Author URI: https://gpcontractor.ma
Description: Thème WordPress SEO local pour le blog d'Atlas Machines. Design dark aligné avec atlasmachines.ma. Optimisé pour le référencement local au Maroc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: atlasmachines-blog
Tags: dark, seo, local-seo, industrial, machines-outils, maroc, blog, responsive, custom-colors, custom-logo, featured-images, translation-ready
*/

/* ============================================
   ATLAS MACHINES BLOG — Thème WordPress
   Design dark aligné avec atlasmachines.ma
   ============================================ */

:root {
  --primary: #e50914;
  --primary-dark: #b00710;
  --bg-dark: #0a0a0a;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --text: #f5f5f5;
  --text-muted: #888;
  --border: #222;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --header-height: 70px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  padding-top: var(--header-height);
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo img {
  height: 40px;
  width: auto;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav ul li a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 5px 0;
}
.site-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.site-nav ul li a:hover::after,
.site-nav ul li.current-menu-item a::after { width: 100%; }
.site-nav ul li.current-menu-item a { color: var(--primary); }

.nav-gp img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.nav-gp:hover img { opacity: 1; }

/* ===== Mobile Menu ===== */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 1100;
  background: none;
  border: none;
  padding: 5px;
}
.menu-toggle span {
  width: 25px; height: 3px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
  display: block;
}
.menu-toggle.active span { background: #fff; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 997;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-overlay.active { display: block; opacity: 1; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #111;
    border-left: 1px solid var(--border);
    padding: 80px 25px 30px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
  }
  .site-nav.open { right: 0; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .site-nav ul li { width: 100%; }
  .site-nav ul li a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav ul li a::after { display: none; }
  .nav-gp img { height: 32px; }
}

@media (max-width: 480px) {
  .site-nav { width: 260px; }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: #0f0f0f;
  padding: 15px 0;
  border-bottom: 1px solid #222;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0; padding: 0;
  font-size: 13px;
}
.breadcrumbs li { color: #666; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: #444; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { color: #ff3b47; }
.breadcrumbs .active { color: #aaa; }

/* ===== Hero / Page Header ===== */
.page-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(229,9,20,0.08) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text);
  margin: 15px 0 20px;
  line-height: 1.2;
}
.page-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-hero p {
  color: rgba(245,245,245,0.7);
  font-size: 1.15rem;
  max-width: 800px;
}

/* ===== Blog Layout ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 60px 0;
}
@media (max-width: 992px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* ===== Article Cards ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  background: var(--bg-card-hover);
}
.post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #111;
}
.post-card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }
.post-card-thumbnail .post-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.post-card-meta .post-date i,
.post-card-meta .post-author i { color: var(--primary); margin-right: 5px; }
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  color: rgba(245,245,245,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 15px;
}
.post-card-readmore {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.post-card:hover .post-card-readmore { gap: 12px; }

/* ===== Single Post ===== */
.single-post-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}
.post-header {
  margin-bottom: 40px;
}
.post-header .post-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.post-header .post-cats a {
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.post-header .post-cats a:hover { background: var(--primary); color: #fff; }
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.post-header .post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.post-header .post-meta span i { color: var(--primary); margin-right: 5px; }
.post-header .post-meta .author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
}
.post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 500px;
}
.post-thumbnail img { width: 100%; object-fit: cover; }

/* ===== Article Content ===== */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245,245,245,0.85);
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin: 40px 0 15px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin: 30px 0 12px;
}
.article-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin: 25px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content strong { color: var(--text); }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { color: #ff3b47; }
.article-content ul, .article-content ol {
  list-style: none;
  margin: 18px 0;
  padding-left: 0;
}
.article-content ul li,
.article-content ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.article-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 2px;
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter);
  background: var(--primary);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 3px;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(229,9,20,0.05);
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
.article-content blockquote p { margin-bottom: 0; }
.article-content img {
  border-radius: var(--radius);
  margin: 25px 0;
}
.article-content pre {
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.article-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #ff6b6b;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}
.article-content table th,
.article-content table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.article-content table th {
  background: #1a1a1a;
  font-family: var(--font-display);
  color: var(--text);
}
.article-content table tr:nth-child(even) { background: #111; }

/* ===== Article Footer / Tags / Share ===== */
.post-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.post-tags a {
  background: #141414;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  transition: var(--transition);
}
.post-tags a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-share span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.post-share a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.post-share a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Author Box ===== */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  margin-top: 30px;
}
.author-box .author-img {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary);
}
.author-box .author-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.author-box .author-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Related Posts ===== */
.related-posts {
  margin-top: 50px;
}
.related-posts h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 25px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-muted); transition: var(--transition); }
.widget ul li a:hover { color: var(--primary); padding-left: 5px; }
.widget ul li .post-date {
  display: block;
  font-size: 0.75rem;
  color: #555;
  margin-top: 3px;
}

/* Widget categories */
.widget-categories ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget-categories ul li .cat-count {
  background: rgba(229,9,20,0.1);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Widget search */
.widget-search form {
  display: flex;
  gap: 0;
}
.widget-search input[type="search"] {
  flex: 1;
  background: #111;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 15px;
  color: var(--text);
  font-size: 0.9rem;
}
.widget-search input[type="search"]:focus { outline: none; border-color: var(--primary); }
.widget-search button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}
.widget-search button:hover { background: var(--primary-dark); }

/* Widget tags */
.widget-tags .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget-tags .tagcloud a {
  background: #141414;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem !important;
  transition: var(--transition);
}
.widget-tags .tagcloud a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination .page-numbers {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(229,9,20,0.1), rgba(229,9,20,0.02));
  border-top: 1px solid rgba(229,9,20,0.2);
  border-bottom: 1px solid rgba(229,9,20,0.2);
  padding: 50px 0;
  text-align: center;
}
.cta-section h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.cta-section p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(229,9,20,0.4); }
.btn-secondary { background: transparent; color: var(--text); border: 2px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { border-color: var(--text); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a, .footer-col ul li { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li i { color: var(--primary); margin-right: 8px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 15px; }
.footer-gp img { height: 30px; width: auto; opacity: 0.7; transition: opacity var(--transition); }
.footer-gp:hover img { opacity: 1; }
.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--primary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===== WhatsApp Float ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 55px; height: 55px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-btn:hover { transform: scale(1.1); color: #fff; }

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-spinner {
  width: 50px; height: 50px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-content p {
  font-family: var(--font-display);
  letter-spacing: 3px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== 404 Page ===== */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}
.error-404 h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.error-404 h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.error-404 p { color: var(--text-muted); margin-bottom: 25px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .single-post-layout { padding: 30px 15px; }
  .article-content { font-size: 1rem; }
  .author-box { flex-direction: column; text-align: center; }
  .post-share { flex-wrap: wrap; }
}

/* ============================================
   SHORTCODES : REVIEW & COMPARE
   ============================================ */

/* Review Box */
.review-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  margin: 25px 0;
}
.review-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}
.review-box .stars {
  color: #ffc107;
  font-size: 1.2rem;
}
.review-box .review-rating {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.review-box .review-price {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 15px;
}

/* Compare Table */
.compare-table {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table thead {
  background: #1a1a1a;
}
.compare-table th {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--border);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.compare-table td {
  padding: 15px;
  border: 1px solid var(--border);
}
.compare-table tbody tr:nth-child(even) {
  background: #111;
}
.compare-table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* ============================================
   AMÉLIORATIONS SEO LOCAL
   ============================================ */

/* SEO Content Blocks */
.seo-local-block {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.seo-local-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

/* Internal Links Grid */
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.internal-links-grid a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  font-size: 0.9rem;
}
.internal-links-grid a:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.internal-links-grid a i {
  color: var(--primary);
}

/* FAQ Section in articles */
.article-content details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin: 15px 0;
  overflow: hidden;
}
.article-content details summary {
  padding: 18px 25px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.article-content details summary::-webkit-details-marker { display: none; }
.article-content details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
}
.article-content details[open] summary::after {
  transform: rotate(45deg);
}
.article-content details summary:hover {
  background: var(--bg-card-hover);
}
.article-content details .details-content {
  padding: 0 25px 20px;
  color: rgba(245,245,245,0.8);
  line-height: 1.7;
}

/* Related Posts */
.related-posts {
  margin-top: 50px;
}
.related-posts h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 25px;
}
.related-posts h3 i {
  color: var(--primary);
  margin-right: 10px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  margin: 40px 0;
}
.author-box .author-img {
  border-radius: 50%;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}
.author-box .author-info h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.author-box .author-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.post-tags a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  transition: var(--transition);
}
.post-tags a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.post-tags a i {
  margin-right: 5px;
  font-size: 0.75rem;
}

/* Post Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}
.post-share span {
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.post-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.post-share a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Post Footer */
.post-footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 10px; }
  .review-box { padding: 18px; }
  .review-box h3 { font-size: 1.1rem; }
  .internal-links-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
}
