/*
Theme Name:  AlphaVoid Crypto
Theme URI:   https://alphavoid.neant.be
Description: Thème standalone crypto/Web3. Design sombre, accent Bitcoin orange, SEO-optimisé, sidebar affiliée. Aucune dépendance au thème parent.
Author:      AlphaVoid
Author URI:  https://alphavoid.neant.be
Version:      2.1.3
License:     GNU General Public License v2 or later
Text Domain: alphavoid-crypto
Tags:        blog, dark, crypto, web3, custom-colors, full-site-editing
*/

/* ═══════════════════════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════════════════════ */
:root {
  --av-bg:           #0d0f14;
  --av-bg-card:      #151820;
  --av-bg-surface:   #1c1f2a;
  --av-border:       #2a2d3a;
  --av-orange:       #f7931a;
  --av-orange-hover: #e8820a;
  --av-orange-glow:  rgba(247,147,26,0.15);
  --av-text:         #e8eaf0;
  --av-text-muted:   #7a7f94;
  --av-text-faint:   #4a4f62;
  --av-green:        #00d395;
  --av-red:          #ff4d6d;
  --av-font:         'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --av-mono:         'JetBrains Mono','Fira Code',monospace;
  --av-radius:       8px;
  --av-radius-lg:    14px;
  --av-shadow:       0 4px 24px rgba(0,0,0,.4);
  --av-transition:   .2s ease;
  --av-content:      760px;
  --av-wide:         1100px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

html { scroll-behavior: smooth; }

body {
  background: var(--av-bg);
  color: var(--av-text);
  font-family: var(--av-font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--av-orange); text-decoration: none; transition: color var(--av-transition); }
a:hover { color: var(--av-orange-hover); }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--av-bg); }
::-webkit-scrollbar-thumb { background: var(--av-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--av-text-faint); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════════════════════════════ */
.av-site { display: flex; flex-direction: column; min-height: 100vh; }
.av-main  { flex: 1; }

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

.av-content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
@media(max-width:900px) {
  .av-content-wrap { grid-template-columns: 1fr; }
  .av-sidebar { order: -1; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.av-header {
  background: rgba(13,15,20,.96);
  border-bottom: 1px solid var(--av-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 200;
}
.av-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.av-logo a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--av-text);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.av-logo a::before { content: "⬡"; color: var(--av-orange); }
.av-logo a:hover { color: var(--av-text); }

.av-nav { display: flex; align-items: center; gap: .25rem; }
.av-nav a {
  color: var(--av-text-muted);
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: var(--av-radius);
  transition: all var(--av-transition);
}
.av-nav a:hover, .av-nav a.active {
  color: var(--av-text);
  background: var(--av-bg-surface);
}
.av-nav .av-nav-lang {
  margin-left: .5rem;
  padding: .3rem .6rem;
  border: 1px solid var(--av-border);
  border-radius: 20px;
  font-size: .78rem;
}
.av-nav .av-nav-lang:hover { border-color: var(--av-orange); color: var(--av-orange); }

/* Language switcher select */
.av-lang-switcher {
  margin-left: .75rem;
  flex-shrink: 0;
}
.av-lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--av-bg-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a7f94'/%3E%3C/svg%3E")
    no-repeat right .6rem center;
  background-size: 8px;
  border: 1px solid var(--av-border);
  border-radius: 20px;
  color: var(--av-text-muted);
  cursor: pointer;
  font-family: var(--av-font);
  font-size: .82rem;
  font-weight: 500;
  padding: .3rem 1.8rem .3rem .75rem;
  transition: border-color var(--av-transition), color var(--av-transition);
}
.av-lang-switcher select:hover,
.av-lang-switcher select:focus {
  border-color: var(--av-orange);
  color: var(--av-text);
  outline: none;
}
.av-lang-switcher select option {
  background: var(--av-bg-card);
  color: var(--av-text);
}

/* Mobile nav toggle */
.av-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--av-border);
  color: var(--av-text-muted);
  border-radius: var(--av-radius);
  padding: .4rem .7rem;
  cursor: pointer;
  font-size: 1.1rem;
}
@media(max-width:700px) {
  .av-nav-toggle { display: block; }
  .av-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--av-bg-card);
    border-bottom: 1px solid var(--av-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: .1rem;
  }
  .av-nav.open { display: flex; }
  .av-nav a { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.av-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#0d0f14 0%,#0f1520 50%,#12101a 100%);
  border-bottom: 1px solid var(--av-border);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.av-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,var(--av-orange-glow) 0%,transparent 70%);
  pointer-events: none;
}
.av-hero-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--av-orange);
  margin-bottom: 1rem;
}
.av-hero h1 {
  font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 800;
  color: var(--av-text);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.av-hero h1 span { color: var(--av-orange); }
.av-hero p {
  color: var(--av-text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE CARDS (listing)
═══════════════════════════════════════════════════════════════ */
.av-posts { display: flex; flex-direction: column; gap: 1.5rem; }

.av-card {
  background: var(--av-bg-card);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: 1.75rem;
  transition: border-color var(--av-transition), transform var(--av-transition);
}
.av-card:hover {
  border-color: var(--av-orange);
  transform: translateY(-2px);
}
.av-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}
.av-card-cats a, .av-tag {
  background: var(--av-bg-surface);
  color: var(--av-text-muted);
  border: 1px solid var(--av-border);
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 500;
  transition: all var(--av-transition);
}
.av-card-cats a:hover, .av-tag:hover {
  border-color: var(--av-orange);
  color: var(--av-orange);
  background: var(--av-orange-glow);
}
.av-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .7rem;
}
.av-card-title a { color: var(--av-text); transition: color var(--av-transition); }
.av-card-title a:hover { color: var(--av-orange); }

.av-card-excerpt {
  color: var(--av-text-muted);
  font-size: .93rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.av-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.av-card-meta {
  color: var(--av-text-faint);
  font-size: .78rem;
  font-family: var(--av-mono);
}
.av-read-more {
  color: var(--av-orange);
  font-size: .85rem;
  font-weight: 600;
  transition: gap var(--av-transition);
}
.av-read-more:hover { color: var(--av-orange-hover); }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE INDIVIDUEL (single)
═══════════════════════════════════════════════════════════════ */
.av-article-header {
  border-bottom: 1px solid var(--av-border);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}
.av-article-header .av-card-cats { margin-bottom: 1rem; }

.av-article-title {
  font-size: clamp(1.7rem,4vw,2.6rem);
  font-weight: 800;
  color: var(--av-text);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.av-article-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--av-text-faint);
  font-size: .8rem;
  font-family: var(--av-mono);
}
.av-article-meta span { display: flex; align-items: center; gap: .3rem; }

/* Contenu article */
.av-article-content {
  max-width: var(--av-content);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--av-text);
}
.av-article-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--av-text);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--av-orange);
}
.av-article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--av-text);
  margin: 2rem 0 .75rem;
}
.av-article-content p { margin-bottom: 1.4rem; }
.av-article-content strong { color: var(--av-orange); font-weight: 600; }
.av-article-content a {
  color: var(--av-orange);
  border-bottom: 1px solid var(--av-orange-glow);
  transition: border-color var(--av-transition);
}
.av-article-content a:hover { border-color: var(--av-orange); }
a[rel*="sponsored"] {
  background: var(--av-orange-glow);
  padding: 1px 6px;
  border-radius: 4px;
  border-bottom: none !important;
  font-weight: 600;
}
.av-article-content blockquote {
  border-left: 3px solid var(--av-orange);
  background: var(--av-bg-surface);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--av-radius) var(--av-radius) 0;
  margin: 2rem 0;
  color: var(--av-text-muted);
  font-style: italic;
}
.av-article-content ul, .av-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.av-article-content li { margin-bottom: .4rem; }
.av-article-content code, .av-article-content pre {
  font-family: var(--av-mono);
  background: var(--av-bg-surface);
  color: var(--av-orange);
  border-radius: 4px;
  font-size: .88em;
}
.av-article-content code { padding: .15em .4em; }
.av-article-content pre { padding: 1.2rem; overflow-x: auto; margin-bottom: 1.4rem; }

/* Tags en bas d'article */
.av-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--av-border);
}

/* Disclaimer affilié */
.av-affiliate-disclaimer {
  background: var(--av-bg-surface);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  padding: .85rem 1.1rem;
  font-size: .77rem;
  color: var(--av-text-faint);
  margin-top: 2.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.av-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.av-widget {
  background: var(--av-bg-card);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: 1.25rem;
}
.av-widget-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--av-text-muted);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--av-border);
}
.av-widget input[type="search"], .av-widget input[type="text"] {
  width: 100%;
  background: var(--av-bg-surface);
  border: 1px solid var(--av-border);
  color: var(--av-text);
  border-radius: var(--av-radius);
  padding: .55rem .9rem;
  font-size: .9rem;
  outline: none;
}
.av-widget input:focus { border-color: var(--av-orange); box-shadow: 0 0 0 3px var(--av-orange-glow); }

/* Widget affilié */
.av-affiliate-widget {
  border: 1px solid var(--av-orange);
  border-radius: var(--av-radius-lg);
  padding: 1.25rem;
  background: linear-gradient(135deg,var(--av-bg-surface),var(--av-bg-card));
  text-align: center;
}
.av-badge {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--av-orange);
  font-weight: 700;
  margin-bottom: .5rem;
}
.av-affiliate-widget h4 { color: var(--av-text); font-size: 1rem; font-weight: 700; margin: .4rem 0; }
.av-affiliate-widget p { color: var(--av-text-muted); font-size: .83rem; margin-bottom: 1rem; line-height: 1.5; }

.av-btn {
  display: inline-block;
  background: var(--av-orange);
  color: #fff;
  font-weight: 700;
  padding: .6rem 1.4rem;
  border-radius: var(--av-radius);
  font-size: .88rem;
  transition: background var(--av-transition), transform var(--av-transition);
  border-bottom: none !important;
}
.av-btn:hover { background: var(--av-orange-hover) !important; color: #fff; transform: translateY(-1px); }

/* Recent posts list */
.av-recent-posts { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.av-recent-posts li a {
  color: var(--av-text-muted);
  font-size: .88rem;
  line-height: 1.4;
  transition: color var(--av-transition);
}
.av-recent-posts li a:hover { color: var(--av-orange); }
.av-recent-posts li time { display: block; color: var(--av-text-faint); font-size: .73rem; font-family: var(--av-mono); margin-top: .15rem; }

/* Tag cloud */
.av-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.av-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.av-pagination a, .av-pagination span {
  background: var(--av-bg-card);
  border: 1px solid var(--av-border);
  color: var(--av-text-muted);
  padding: .5rem 1rem;
  border-radius: var(--av-radius);
  font-size: .88rem;
  transition: all var(--av-transition);
}
.av-pagination a:hover { border-color: var(--av-orange); color: var(--av-orange); }
.av-pagination .current { background: var(--av-orange); border-color: var(--av-orange); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   PAGE TITRES (archive, search, 404)
═══════════════════════════════════════════════════════════════ */
.av-page-header {
  background: var(--av-bg-card);
  border-bottom: 1px solid var(--av-border);
  padding: 2rem 0;
  margin-bottom: 0;
}
.av-page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--av-text);
}
.av-page-header p { color: var(--av-text-muted); margin-top: .4rem; }

/* 404 */
.av-404 { text-align: center; padding: 5rem 1rem; }
.av-404 .av-404-code { font-size: 8rem; font-weight: 800; color: var(--av-border); line-height: 1; }
.av-404 h1 { font-size: 1.8rem; font-weight: 700; color: var(--av-text); margin: 1rem 0 .5rem; }
.av-404 p { color: var(--av-text-muted); margin-bottom: 2rem; }

/* Barre de recherche standalone */
.av-search-form { display: flex; gap: .6rem; max-width: 500px; margin: 1.5rem auto 0; }
.av-search-form input {
  flex: 1;
  background: var(--av-bg-surface);
  border: 1px solid var(--av-border);
  color: var(--av-text);
  border-radius: var(--av-radius);
  padding: .65rem 1rem;
  font-size: .95rem;
  outline: none;
}
.av-search-form input:focus { border-color: var(--av-orange); }
.av-search-form button {
  background: var(--av-orange);
  color: #fff;
  border: none;
  border-radius: var(--av-radius);
  padding: .65rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--av-transition);
}
.av-search-form button:hover { background: var(--av-orange-hover); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.av-footer {
  background: var(--av-bg-card);
  border-top: 1px solid var(--av-border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.av-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media(max-width:700px) { .av-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Brand column */
.av-footer-logo {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--av-text);
  letter-spacing: -.5px;
  text-decoration: none;
}
.av-footer-logo:hover { color: var(--av-orange); }
.av-footer-brand p {
  color: var(--av-text-muted);
  font-size: .85rem;
  margin-top: .75rem;
  line-height: 1.6;
}
.av-footer-social { margin-top: 1rem; }
.av-footer-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--av-text-muted);
  border: 1px solid var(--av-border);
  border-radius: 20px;
  padding: .25rem .75rem;
  text-decoration: none;
  transition: border-color var(--av-transition), color var(--av-transition);
}
.av-footer-lang-badge:hover { border-color: var(--av-orange); color: var(--av-orange); }

/* Nav/Partners columns */
.av-footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--av-text-muted);
  margin-bottom: 1rem;
}
.av-footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.av-footer-links a {
  color: var(--av-text-faint);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--av-transition);
}
.av-footer-links a:hover { color: var(--av-orange); }

/* Bottom bar */
.av-footer-bottom {
  border-top: 1px solid var(--av-border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.av-footer-bottom > p:first-child {
  color: var(--av-text-faint);
  font-size: .8rem;
}
.av-footer-disclaimer {
  font-size: .72rem;
  color: var(--av-text-faint);
  line-height: 1.5;
  max-width: 680px;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITAIRES
═══════════════════════════════════════════════════════════════ */
.av-tag-up   { color: var(--av-green); }
.av-tag-down { color: var(--av-red); }
.av-tag-crypto { color: var(--av-orange); font-family: var(--av-mono); }

/* WP Admin Bar */
.admin-bar .av-header { top: 32px; }
@media screen and (max-width:782px) { .admin-bar .av-header { top: 46px; } }
