/* ============================================
   COMBATTANT CONSCIENT — Ghost Theme
   Martin Thauvoye · Encre & Acier
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ---- VARIABLES ---- */
:root {
  --bg:           #0a0a0a;
  --bg-card:      #111111;
  --bg-hover:     #161616;
  --text:         #f0f0f0;
  --text-soft:    rgba(240,240,240,0.55);
  --text-muted:   rgba(240,240,240,0.25);
  --accent:       #cc0000;
  --accent-glow:  rgba(204,0,0,0.12);
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(204,0,0,0.35);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --radius:       4px;
  --transition:   0.2s ease;
  --max-w:        640px;
  --max-w-article:720px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- MAIN LAYOUT ---- */
.site-main {
  min-height: 100vh;
}

/* ---- HOME / BIO ---- */
.home-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}



.bio-avatar-wrap {
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}

.bio-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(204,0,0,0.5);
  box-shadow: 0 0 40px rgba(204,0,0,0.18);
  object-fit: cover;
  display: block;
}

.bio-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(204,0,0,0.5);
  box-shadow: 0 0 40px rgba(204,0,0,0.18);
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
}

.bio-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
  animation: fadeUp 0.5s 0.05s ease both;
}

.bio-name {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--text);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1;
  animation: fadeUp 0.5s 0.1s ease both;
}

.bio-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.75;
  max-width: 360px;
  margin-bottom: 52px;
  animation: fadeUp 0.5s 0.15s ease both;
}

.bio-desc strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- BIO LINKS ---- */
.bio-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 52px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.bio-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  background: rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}

.bio-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}

.bio-link:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
  color: var(--text);
}

.bio-link:hover::before { transform: scaleY(1); }

.bio-link-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}

.bio-link:hover .bio-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- DIVIDER ---- */
.section-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.25s ease both;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- ARTICLE LIST (home) ---- */
.home-posts {
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s 0.3s ease both;
}

.home-post-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.home-post-item:first-child { border-top: 1px solid var(--border); }

.home-post-item:hover .home-post-title { color: var(--accent); }
.home-post-item:hover .home-post-arrow { opacity: 1; transform: translateX(0); }

.home-post-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(240,240,240,0.4);
  white-space: nowrap;
  padding-top: 3px;
  min-width: 72px;
}

.home-post-content { flex: 1; min-width: 0; }

.home-post-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(240,240,240,0.88);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-post-excerpt {
  font-size: 0.75rem;
  color: rgba(240,240,240,0.45);
  font-weight: 300;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-post-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
  align-self: center;
  flex-shrink: 0;
}

.home-posts-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 16px 0;
  transition: color var(--transition);
}

.home-posts-more:hover { color: var(--accent); }

/* ---- BLOG PAGE ---- */
.blog-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 100px;
}

.page-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-post-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-decoration: none;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.blog-post-item:hover { padding-left: 8px; }
.blog-post-item:hover .blog-post-title { color: var(--accent); }

.blog-post-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 4px;
  min-width: 72px;
}

.blog-post-content { flex: 1; min-width: 0; }

.blog-post-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.blog-post-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.blog-post-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(204,0,0,0.3);
  padding: 2px 7px;
  border-radius: 2px;
  margin-top: 8px;
}

/* ---- ARTICLE PAGE ---- */
.article-wrap {
  max-width: var(--max-w-article);
  margin: 0 auto;
  padding: 72px 24px 100px;
}

.article-header {
  margin-bottom: 52px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.article-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(204,0,0,0.3);
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
}

.article-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.article-feature-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 52px;
  border: 1px solid var(--border);
}

/* ---- ARTICLE CONTENT ---- */
.gh-content {
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}

.gh-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 48px 0 20px;
  line-height: 1.1;
}

.gh-content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: 0.02em;
}

.gh-content p { margin-bottom: 20px; }

.gh-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color var(--transition);
}

.gh-content a:hover { color: var(--accent); }

.gh-content strong {
  color: var(--text);
  font-weight: 600;
}

.gh-content em { font-style: italic; }

.gh-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(204,0,0,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.gh-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.65;
}

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

.gh-content li {
  margin-bottom: 8px;
}

.gh-content ul li::marker { color: var(--accent); }

.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--text);
}

.gh-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}

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

.gh-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.gh-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 32px auto;
}

/* ---- ARTICLE FOOTER ---- */
.article-footer {
  max-width: var(--max-w);
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.article-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.article-author-info {}

.article-author-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.article-author-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.article-author-bio {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 3px;
  line-height: 1.5;
}

/* ---- ABOUT PAGE ---- */
.about-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 100px;
}

.about-hero {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(204,0,0,0.4);
  box-shadow: 0 0 40px rgba(204,0,0,0.15);
  object-fit: cover;
  flex-shrink: 0;
}

.about-intro {}

.about-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 10px;
}

.about-subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
}

.about-content {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.8;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  letter-spacing: 0.05em;
  margin: 40px 0 16px;
}

.about-content p { margin-bottom: 18px; }

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

/* ---- SITE FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.site-footer-text a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.site-footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 0 0;
}

.pagination a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--accent-glow);
}

.pagination-info {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ---- NEWSLETTER / CTA ---- */
.cta-block {
  margin-top: 64px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(204,0,0,0.03);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto 28px;
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { border-color: var(--border-hover); }

.cta-btn {
  padding: 12px 22px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.cta-btn:hover { background: #aa0000; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .site-nav { display: none; }

  .bio-name { font-size: 2.6rem; }
  .article-title { font-size: 2.2rem; }
  .page-title { font-size: 2.2rem; }

  .about-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cta-form { flex-direction: column; }
  .cta-input { width: 100%; }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---- KOENIG EDITOR — classes requises ---- */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 24px);
  margin-right: calc(50% - 50vw + 24px);
  max-width: 1000px;
  width: calc(100vw - 48px);
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.kg-image { max-width: 100%; }

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: var(--text-soft);
  transition: border-color var(--transition);
  margin: 24px 0;
}

.kg-bookmark-card:hover { border-color: var(--border-hover); }

.kg-video-card video { width: 100%; border-radius: var(--radius); }

.kg-callout-card {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(204,0,0,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  display: flex;
  gap: 12px;
}

/* ---- SOCIAL ICONS ---- */
.bio-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
}

.bio-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
}

.bio-social:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

.bio-social svg {
  width: 14px;
  height: 14px;
  fill: rgba(240,240,240,0.35);
  transition: fill var(--transition);
}

.bio-social:hover svg {
  fill: rgba(240,240,240,0.85);
}
