/*
Theme Name: Voltforge
Theme URI: https://voltforge.fr
Description: Thème Voltforge — Graphite & Cuivre. Conçu pour le blog Maker Pro.
Version: 1.0
Author: Voltforge
Author URI: https://voltforge.fr
Text Domain: voltforge

License: Proprietary
*/

/* ─── RESET & BASE ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --vf-bg: #1C1B1A;
  --vf-bg-alt: #222120;
  --vf-card: #282726;
  --vf-card-hover: #2E2D2B;
  --vf-border: #3A3836;
  --vf-white: #EDEBE8;
  --vf-text: #C8C4BF;
  --vf-muted: #8A8580;
  --vf-dim: #5C5855;
  --vf-copper: #E07A3A;
  --vf-copper-dim: #C06830;
  --vf-copper-bg: rgba(224,122,58,0.08);
  --vf-copper-border: rgba(224,122,58,0.25);
  --vf-green: #7EC87E;
  --vf-red: #D46464;
  --vf-font: 'Archivo', -apple-system, sans-serif;
  --vf-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--vf-font);
  background: var(--vf-bg);
  background-image: linear-gradient(rgba(58,56,54,0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(58,56,54,0.13) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--vf-text);
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vf-copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--vf-white); }

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

::selection { background: rgba(224,122,58,0.3); }

/* ─── HEADER ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--vf-border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(28,27,26,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-logo .logo-mark {
  font-family: var(--vf-mono);
  font-size: 14px;
  color: var(--vf-copper);
}

.site-logo .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--vf-white);
  letter-spacing: -0.01em;
}

.site-logo .logo-sub {
  font-family: var(--vf-mono);
  font-size: 10px;
  color: var(--vf-dim);
  margin-left: 4px;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-nav a {
  font-family: var(--vf-mono);
  font-size: 11px;
  color: var(--vf-muted);
  letter-spacing: 0.04em;
}

.site-nav a:hover { color: var(--vf-white); }

.nav-cta {
  padding: 5px 14px;
  border: 1px solid var(--vf-copper);
  border-radius: 4px;
  color: var(--vf-copper) !important;
  font-size: 11px !important;
}

.nav-cta:hover {
  background: var(--vf-copper) !important;
  color: var(--vf-bg) !important;
}

/* ─── MAIN CONTENT ─────────────────────────────────────── */
.site-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ─── BLOG INDEX / ARCHIVE ─────────────────────────────── */
.post-card {
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--vf-card);
  transition: border-color 0.25s, transform 0.25s;
}

.post-card:hover {
  border-color: var(--vf-copper-border);
  transform: translateY(-2px);
}

.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 24px;
}

.post-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-card-date {
  font-family: var(--vf-mono);
  font-size: 10px;
  color: var(--vf-dim);
}

.post-card-category {
  font-family: var(--vf-mono);
  font-size: 9px;
  color: var(--vf-copper);
  padding: 2px 8px;
  border: 1px solid var(--vf-copper-border);
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--vf-white);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-card h2 a { color: var(--vf-white); }
.post-card h2 a:hover { color: var(--vf-copper); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--vf-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card-read-more {
  font-family: var(--vf-mono);
  font-size: 11px;
  color: var(--vf-copper);
  font-weight: 500;
}

/* ─── SINGLE POST ──────────────────────────────────────── */
.single-header {
  margin-bottom: 40px;
}

.single-header h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: var(--vf-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.single-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--vf-mono);
  font-size: 11px;
  color: var(--vf-dim);
  flex-wrap: wrap;
}

.single-featured-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 32px;
  border: 1px solid var(--vf-border);
}

/* ─── ARTICLE CONTENT ──────────────────────────────────── */
.entry-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--vf-text);
}

.entry-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--vf-white);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--vf-copper);
  padding-left: 16px;
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--vf-white);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--vf-copper);
}

.entry-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--vf-copper);
  margin: 24px 0 10px;
  font-family: var(--vf-mono);
  letter-spacing: 0.04em;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content ul, .entry-content ol {
  margin: 12px 0 20px 0;
  padding-left: 20px;
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.entry-content strong {
  color: var(--vf-white);
  font-weight: 600;
}

.entry-content blockquote {
  border-left: 3px solid var(--vf-copper);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--vf-copper-bg);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--vf-muted);
}

.entry-content code {
  background: var(--vf-bg-alt);
  border: 1px solid var(--vf-border);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--vf-mono);
  font-size: 13px;
  color: var(--vf-copper);
}

.entry-content pre {
  background: var(--vf-bg-alt);
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.entry-content th {
  background: var(--vf-bg-alt);
  color: var(--vf-white);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-family: var(--vf-mono);
  border-bottom: 2px solid var(--vf-copper);
}

.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--vf-border);
  font-size: 14px;
}

.entry-content tr:hover td {
  background: var(--vf-copper-bg);
}

/* ─── AMAZON BUTTONS ───────────────────────────────────── */
.btn-amazon {
  display: inline-block;
  background: var(--vf-copper);
  color: var(--vf-bg) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  margin: 6px 0;
  transition: all 0.2s;
}

.btn-amazon:hover {
  background: var(--vf-copper-dim);
  color: var(--vf-white) !important;
  transform: translateY(-1px);
}

/* ─── KEYPOINTS & AVIS BOXES ──────────────────────────── */
.vf-keypoints {
  background: var(--vf-bg-alt);
  border-left: 4px solid var(--vf-copper);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.vf-keypoints h4 {
  color: var(--vf-copper);
  margin: 0 0 10px;
  font-size: 14px;
  font-family: var(--vf-mono);
}

.vf-keypoints ul {
  margin: 0;
  padding-left: 18px;
}

.vf-keypoints li {
  color: var(--vf-text);
  font-size: 13px;
}

.vf-avis {
  background: var(--vf-copper-bg);
  border-left: 4px solid var(--vf-copper);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.vf-avis h4 {
  color: var(--vf-copper);
  margin: 0 0 10px;
}

/* ─── HERO IMAGE ───────────────────────────────────────── */
.vf-hero-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--vf-border);
}

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--vf-border);
  padding: 32px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .mark {
  font-family: var(--vf-mono);
  font-size: 12px;
  color: var(--vf-copper);
}

.footer-brand .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--vf-white);
}

.footer-brand .desc {
  font-family: var(--vf-mono);
  font-size: 11px;
  color: var(--vf-dim);
}

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

.footer-links a {
  font-family: var(--vf-mono);
  font-size: 11px;
  color: var(--vf-muted);
}

.footer-copy {
  max-width: 820px;
  margin: 12px auto 0;
  text-align: center;
  font-family: var(--vf-mono);
  font-size: 10px;
  color: var(--vf-dim);
}

/* ─── PAGINATION ───────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--vf-border);
  border-radius: 4px;
  font-family: var(--vf-mono);
  font-size: 12px;
  color: var(--vf-muted);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--vf-copper);
  color: var(--vf-copper);
}

.pagination .current {
  background: var(--vf-copper);
  border-color: var(--vf-copper);
  color: var(--vf-bg);
}

/* ─── SIDEBAR (disabled) ──────────────────────────────── */
.widget-area { display: none; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .site-content { padding: 32px 16px; }
  .logo-sub { display: none; }
  .post-card-image { height: 180px; }
  .post-card-body { padding: 18px; }
  .post-card h2 { font-size: 17px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .single-header h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .post-card-image { height: 150px; }
}

/* ─── WP ADMIN BAR FIX ─────────────────────────────────── */
#wpadminbar { background: var(--vf-bg) !important; }

/* ─── HIDE WP DEFAULT STUFF ────────────────────────────── */
.wp-block-post-author,
.wp-block-post-terms,
.wp-block-comments,
.comment-respond { display: none; }
