/* Goldiro GCI Blog - Modern Dark */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAFBFA;
  --bg-raised: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-hover: #F3F5F3;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --accent: #16A34A;
  --accent-soft: rgba(22, 163, 74, 0.08);
  --accent-border: rgba(22, 163, 74, 0.2);
  --accent-hover: #15803D;
  --green-light: #DCFCE7;
  --text: #111714;
  --text-secondary: #4B5B52;
  --text-muted: #8A998F;
  --border: #E2E8E4;
  --border-hover: #CBD5CD;
  --max-width: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Geist', -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--accent-hover);
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 450;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover {
  color: var(--text);
  background: var(--bg-hover);
}
nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--text-secondary);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-cta:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}
.nav-cta svg {
  opacity: 0.5;
  transition: opacity 0.15s;
}
.nav-cta:hover svg {
  opacity: 0.8;
}

/* ===================== FEATURED HERO ===================== */
.featured-hero {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.featured-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.featured-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.featured-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
}

/* Image placeholders */
.featured-img-placeholder.trading {
  background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 40%, #A7F3D0 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-img-placeholder.trading::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(22, 163, 74, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(5, 150, 105, 0.08) 0%, transparent 50%);
}
.featured-img-placeholder.trading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background:
    repeating-linear-gradient(90deg,
      transparent 0%, transparent 8%,
      rgba(22, 163, 74, 0.18) 8%, rgba(22, 163, 74, 0.18) 9.5%,
      transparent 9.5%, transparent 17.5%
    );
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.card-img-placeholder {
  width: 100%;
  height: 170px;
  transition: transform 0.4s;
}

.card-img-placeholder.finance {
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
  position: relative;
  overflow: hidden;
}
.card-img-placeholder.finance::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 45%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.card-img-placeholder.entreprise {
  background: linear-gradient(145deg, #F5F3FF 0%, #EDE9FE 50%, #DDD6FE 100%);
  position: relative;
  overflow: hidden;
}
.card-img-placeholder.entreprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 45%);
}

.card-img-placeholder.securite {
  background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 50%, #A7F3D0 100%);
  position: relative;
  overflow: hidden;
}
.card-img-placeholder.securite::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 45% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 45%);
}

.card-img-placeholder.guide {
  background: linear-gradient(145deg, #FEF9EC 0%, #FEF3C7 50%, #FDE68A 100%);
  position: relative;
  overflow: hidden;
}
.card-img-placeholder.guide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 45%, rgba(245, 158, 11, 0.1) 0%, transparent 45%);
}

.placeholder-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 65%;
  opacity: 1;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

.badge.small {
  font-size: 0.65rem;
  padding: 3px 10px;
}

.featured-content h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.8px;
}
.featured-content h1 a {
  color: var(--text);
  background: linear-gradient(to right, var(--text), var(--text)) no-repeat 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.3s;
}
.featured-content h1 a:hover {
  background-size: 100% 1px;
  color: var(--text);
}

.featured-content > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.avatar.small {
  width: 24px;
  height: 24px;
  font-size: 0.5rem;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.author-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.author-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.featured-meta time {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 100px;
  width: fit-content;
  transition: background 0.15s, transform 0.15s;
}
.btn-read:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-read::after {
  content: '\2192';
  font-size: 0.95rem;
  transition: transform 0.15s;
}
.btn-read:hover::after {
  transform: translateX(3px);
}

/* ===================== LAYOUT ===================== */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  width: 100%;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

/* ===================== ARTICLE CARDS ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.article-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-img {
  display: block;
  overflow: hidden;
}

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

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-body h3 {
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.card-body h3 a {
  color: var(--text);
}
.card-body h3 a:hover {
  color: var(--accent-hover);
}

.card-body > p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.author-small {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 450;
}

.card-footer time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
}

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

.sidebar-widget {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.widget-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

/* Categories */
.category-list {
  list-style: none;
}
.category-list li {
  margin-bottom: 2px;
}
.category-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 450;
  transition: background 0.15s, color 0.15s;
}
.category-list a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-dot.trading { background: var(--accent); }
.cat-dot.finance { background: #3B82F6; }
.cat-dot.entreprise { background: #8B5CF6; }
.cat-dot.securite { background: #10B981; }
.cat-dot.guide { background: #F59E0B; }

.cat-count {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
}

/* Popular */
.popular-list {
  list-style: none;
}
.popular-list li {
  margin-bottom: 0.25rem;
}
.popular-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.popular-list a:hover {
  background: var(--bg-hover);
}

.pop-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 22px;
  padding-top: 3px;
}

.pop-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 450;
}
.popular-list a:hover .pop-title {
  color: var(--text);
}

/* Newsletter */
.newsletter-widget {
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}
.newsletter-widget {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.newsletter-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.newsletter-widget p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  font-family: var(--font);
}
.nl-input::placeholder {
  color: var(--text-muted);
}
.nl-input:focus {
  border-color: var(--accent-border);
}

.nl-input {
  background: var(--bg-raised);
}

.nl-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: var(--font);
}
.nl-btn:hover {
  opacity: 0.85;
}
.nl-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* About */
.about-text {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.btn-platform {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-platform:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding: 3.5rem 2rem 3rem;
}

.footer-brand-col {
  max-width: 280px;
  flex-shrink: 0;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-link-group h5 {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.footer-link-group a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 0.15s;
}
.footer-link-group a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-lei {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem !important;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===================== ARTICLE PAGE ===================== */
.article-header {
  padding: 3.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.article-header h1 {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 700;
  position: relative;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  position: relative;
}
.article-meta span + span::before {
  content: " \00b7 ";
  margin: 0 0.4rem;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 2rem 0 0.5rem;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.article-body ul, .article-body ol {
  margin: 0.5rem 0 1.2rem 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.75;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.back-link:hover {
  color: var(--text);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .featured-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .featured-img-placeholder {
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .featured-content h1 {
    font-size: 1.5rem;
  }
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  nav ul {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .layout {
    padding: 2rem 1.25rem;
  }
  .featured-hero {
    padding: 2.5rem 1.25rem;
  }
  .article-header h1 {
    font-size: 1.5rem;
  }
}
