/*
Theme Name: Conseil Crypto
Theme URI: https://conseil-crypto.fr
Author: conseil-crypto.fr
Description: Thème minimaliste pour analyses géopolitiques et crypto
Version: 1.0
*/

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

:root {
  --green: #1a8c63;
  --green-light: #e8f5ef;
  --green-dark: #0f5c40;
  --blue: #1a4a8c;
  --blue-light: #e8eef8;
  --text: #0f1c14;
  --text-muted: #5a6b62;
  --border: #d4e0d8;
  --bg: #f7faf8;
  --white: #ffffff;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--green); }

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* HERO */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-green {
  background: var(--green);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--text-muted); transform: translateY(-1px); }

/* STATS */
.stats-bar {
  max-width: 700px;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ARTICLES */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.section-link {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.tag-geo { background: #fff3e8; color: #8c4a1a; }
.tag-crypto { background: var(--blue-light); color: var(--blue); }
.tag-marche { background: var(--green-light); color: var(--green-dark); }
.tag-finance { background: #f0e8f5; color: #5a1a8c; }

.article-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 300;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.free-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
}

.lock-badge {
  background: #fff8e8;
  color: #8c6a1a;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
}

/* SINGLE POST */
.post-container {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.post-header { margin-bottom: 3rem; }

.post-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 400;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 20px; }

.post-content p { margin-bottom: 1.2rem; }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content strong { font-weight: 500; color: var(--text); }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
}

.post-content th {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
}

.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.post-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* NEWSLETTER */
.newsletter-section {
  background: var(--text);
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.newsletter-section h2 {
  font-family: var(--serif);
  font-size: 36px;
  color: white;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.newsletter-section h2 em { color: #5dca9e; font-style: italic; }

.newsletter-section p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }

.btn-white {
  background: white;
  color: var(--text);
  border: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
}

.newsletter-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .newsletter-form { flex-direction: column; }
}
