/* ═══════════════════════════════════════════════
   TRISTAN PINEAU 2026 — theme.css
═══════════════════════════════════════════════ */

:root {
  --bg:      #0a0a0f;
  --bg2:     #0f0f18;
  --surface: #14141f;
  --border:  rgba(255,255,255,0.07);
  --accent:  #6ee7ff;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --text:    #e8e8f0;
  --muted:   #6b6b80;
  --white:   #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── NAV ── */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.8);
}

.site-title a {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.site-title a span { color: var(--accent); }

#primary-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

#primary-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

#primary-menu a:hover { color: var(--accent); }

#primary-menu li.contact-cta a {
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 500;
  transition: opacity 0.2s;
}

#primary-menu li.contact-cta a:hover { opacity: 0.85; color: var(--bg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,231,255,0.07) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.06) 0%, transparent 70%);
  bottom: -100px; left: 200px;
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(110,231,255,0.08);
  border: 1px solid rgba(110,231,255,0.2);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease forwards;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent3);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-content h1 .gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 3rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: fadeUp 0.6s 0.3s ease both;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(110,231,255,0.3);
  color: var(--bg);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-weight: 400;
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}

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

/* ── SECTIONS ── */
.tp-section { padding: 6rem 3rem; }
.tp-section--alt { background: var(--bg2); }

.section-header {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
}

/* ── SERVICES ── */
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--bg2);
  padding: 2.5rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover { background: var(--surface); }

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon { font-size: 1.8rem; margin-bottom: 1.2rem; display: block; }

.service-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ── SKILLS ── */
.skills-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.skill-item { margin-bottom: 2rem; }

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.skill-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.skill-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-intro {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PORTFOLIO ── */
.portfolio-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110,231,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(110,231,255,0.1);
  text-decoration: none;
  color: inherit;
}

.project-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.project-thumb--sport    { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.project-thumb--ecom     { background: linear-gradient(135deg, #1a0533, #2d1b69, #1e3a5f); }
.project-thumb--portfolio{ background: linear-gradient(135deg, #0d1117, #161b22, #0d2137); }
.project-thumb--saas     { background: linear-gradient(135deg, #0f1923, #1a2744, #0f2855); }
.project-thumb--corporate{ background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.project-thumb--landing  { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }
.project-thumb--blog     { background: linear-gradient(135deg, #141e30, #243b55, #1a2a4a); }

.project-live-badge {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  color: var(--accent3);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-live-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent3);
  border-radius: 50%;
}

.project-body { padding: 1.4rem; }

.project-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

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

.project-stack { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.stack-tag {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
}

.project-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.project-card:hover .project-arrow { color: var(--accent); transform: translateX(3px); }

/* Featured card */
.project-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.project-card--featured .project-thumb { height: 100%; min-height: 180px; }
.project-card--featured .project-body  { padding: 2rem; }
.project-card--featured .project-title { font-size: 1.3rem; }
.project-card--featured .project-desc  { font-size: 0.9rem; max-width: 500px; }
.project-card--featured .project-footer{ padding: 1rem 2rem 1.5rem; border-top: none; }

/* ── CONTACT ── */
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-size: 0.9rem;
}

.contact-link:hover {
  border-color: rgba(110,231,255,0.3);
  background: rgba(110,231,255,0.04);
  color: var(--accent);
  text-decoration: none;
}

.contact-link-icon {
  font-size: 1.2rem;
  width: 2.5rem; height: 2.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.avail-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

.avail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: var(--text);
}

.avail-row--open {
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.15);
}

.avail-row--partial {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.avail-status-open {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent3);
}

.avail-status-partial {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
}

/* ── FOOTER ── */
#colophon {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

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

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BLOG (archive/single) ── */
.site-main { padding: 8rem 3rem 4rem; max-width: 860px; margin: 0 auto; }
.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
}
.entry-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--accent); }
.entry-meta { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; }
article.post, article.page { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.entry-content { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.entry-content a { color: var(--accent); }
.entry-content h2, .entry-content h3 { font-family: 'Syne', sans-serif; color: var(--white); margin: 2rem 0 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #masthead { padding: 1rem 1.5rem; }
  #primary-menu { display: none; }
  #hero, .tp-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .project-card--featured .project-thumb { min-height: 140px; height: 140px; }
  .contact-inner { grid-template-columns: 1fr; }
  #colophon { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* ── BLOG LISTING ── */
.blog-header {
  margin-bottom: 3rem;
}

.blog-subtitle {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 0.8rem;
  max-width: 540px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.blog-card {
  list-style: none;
}

.blog-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.blog-card-inner:hover {
  transform: translateY(-5px);
  border-color: rgba(110,231,255,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  text-decoration: none;
  color: inherit;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.blog-card-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.blog-card-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent);
  background: rgba(110,231,255,0.08);
  border: 1px solid rgba(110,231,255,0.15);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

.blog-card-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: auto;
  transition: letter-spacing 0.2s;
}

.blog-card-inner:hover .blog-card-cta {
  letter-spacing: 0.1em;
}

.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  color: var(--accent);
  border-color: rgba(110,231,255,0.3);
}

.blog-empty {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
}

/* ── SINGLE ARTICLE ── */
.entry-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.entry-header .blog-card-meta {
  margin-bottom: 1rem;
}

.entry-header .entry-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.entry-content {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
}

.entry-content h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  line-height: 1.2;
}

.entry-content h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin: 2rem 0 0.8rem;
}

.entry-content p { margin-bottom: 1.4rem; }

.entry-content a { color: var(--accent); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }

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

.entry-content code {
  font-family: 'DM Mono', monospace;
  font-size: 0.85em;
  background: rgba(110,231,255,0.08);
  border: 1px solid rgba(110,231,255,0.15);
  color: var(--accent);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

.entry-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
}

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

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

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

.entry-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.entry-back:hover { color: var(--accent); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   BLOG — LISTING
══════════════════════════════════════════ */

.blog-wrap { padding-top: 5rem; }

.blog-hero {
  position: relative;
  padding: 5rem 3rem 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
  margin: 1rem 0 1.5rem;
}

.blog-hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  font-weight: 300;
  line-height: 1.7;
}

.blog-hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Card principale */
.bcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.bcard:hover {
  transform: translateY(-6px);
  border-color: rgba(110,231,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(110,231,255,0.08);
  text-decoration: none;
  color: inherit;
}

/* Thumb colorée par index */
.bcard-thumb {
  height: 130px;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.bcard-thumb--0 { background: linear-gradient(135deg, #0f2027, #1a3a4a, #0d4f6e); }
.bcard-thumb--1 { background: linear-gradient(135deg, #1a0533, #3b1f6e, #1e1f5f); }
.bcard-thumb--2 { background: linear-gradient(135deg, #0d1f0d, #1a3a1a, #0d3f2e); }
.bcard-thumb--3 { background: linear-gradient(135deg, #2a1a0a, #3d2a10, #1e1040); }
.bcard-thumb--4 { background: linear-gradient(135deg, #0f0f1f, #1a1a3a, #0d2050); }

.bcard-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.bcard-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  position: absolute;
  bottom: -0.5rem;
  right: 1rem;
  letter-spacing: -0.05em;
  user-select: none;
}

.bcard-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.bcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bcard-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(110,231,255,0.07);
  border: 1px solid rgba(110,231,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.bcard-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bcard-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

.bcard-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

.bcard-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  transition: gap 0.2s;
}

.bcard:hover .bcard-cta { gap: 0.7rem; }

/* Pagination */
.blog-pager { margin-top: 1rem; }

.blog-pager .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pager .page-numbers {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.blog-pager .page-numbers.current,
.blog-pager .page-numbers:hover {
  color: var(--accent);
  border-color: rgba(110,231,255,0.3);
  background: rgba(110,231,255,0.05);
}

.blog-empty {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  padding: 3rem 0;
  text-align: center;
}

/* ══════════════════════════════════════════
   BLOG — SINGLE
══════════════════════════════════════════ */

.single-wrap { padding-top: 5rem; }

.single-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.entry-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.entry-back:hover { color: var(--accent); }

.single-header {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.single-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.single-lead {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--accent2);
  padding-left: 1.2rem;
  margin-top: 1.2rem;
}

/* Content */
.entry-content { font-size: 1rem; line-height: 1.9; color: var(--muted); font-weight: 300; }
.entry-content h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--white);
  letter-spacing: -0.025em;
  margin: 3rem 0 1rem;
  line-height: 1.2;
}
.entry-content h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 2rem 0 0.7rem;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content strong { color: var(--text); font-weight: 500; }
.entry-content em { color: var(--text); }
.entry-content code {
  font-family: 'DM Mono', monospace;
  font-size: 0.85em;
  background: rgba(110,231,255,0.08);
  border: 1px solid rgba(110,231,255,0.15);
  color: var(--accent);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}
.entry-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
}
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
}
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content li { margin-bottom: 0.6rem; }

/* Nav prev/next */
.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.single-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.single-nav-item:hover {
  border-color: rgba(110,231,255,0.3);
  background: rgba(110,231,255,0.03);
}

.single-nav-item--right { text-align: right; }

.single-nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.single-nav-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-hero, .blog-container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .single-container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .single-nav { grid-template-columns: 1fr; }
}
