/* ============================================================
   Tech etc.. — Feuille de style principale
   Thème : dark terminal · tech + musique
   ============================================================ */

/* === VARIABLES ================================================ */
:root {
  --bg:           #0d1117;
  --bg-card:      #161b22;
  --bg-hover:     #21262d;
  --bg-elevated:  #1b2230;
  --border:       #30363d;
  --text:         #e6edf3;
  --text-muted:   #8b98a6;
  --accent:       #58a6ff;
  --accent-green: #3fb950;
  --accent-orange:#d29922;
  --accent-red:   #f85149;
  --accent-purple:#bc8cff;
  --accent-music: #ff825c;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --radius:       8px;
  --radius-sm:    5px;
  --shadow:       0 10px 30px rgba(0,0,0,0.35);
  --shadow-soft:  0 4px 18px rgba(0,0,0,0.22);
  --transition:   0.2s ease;
  --ambient-x:    88%;
  --ambient-y:    12%;
  --ambient-opacity: 0.55;
  --ambient-color-1: rgba(255,130,92,0.10);
  --ambient-color-2: rgba(188,140,255,0.07);
}

/* === RESET ==================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 68px; scrollbar-gutter: stable; }
body {
  background:
    radial-gradient(circle at top left, rgba(88,166,255,0.18), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(188,140,255,0.12), transparent 24%),
    linear-gradient(180deg, rgba(11,16,22,0.94) 0%, rgba(9,14,19,0.94) 100%),
    url('../assets/fond%20tech-etc.JPG');
  background-size: auto, auto, auto, cover;
  background-position: top left, 20% 85%, top, center;
  background-attachment: scroll, scroll, scroll, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 36px, 36px 100%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.08) 70%, transparent);
  opacity: 0.45;
}
body::after {
  content: '';
  position: fixed;
  top: var(--ambient-y);
  left: var(--ambient-x);
  width: 42vw;
  height: 42vw;
  min-width: 320px;
  min-height: 320px;
  background: radial-gradient(circle, var(--ambient-color-1), var(--ambient-color-2) 42%, transparent 70%);
  filter: blur(28px);
  opacity: var(--ambient-opacity);
  pointer-events: none;
}
@keyframes ambient-shift {
  0% { transform: translate3d(-50%, -50%, 0) scale(1); }
  50% { transform: translate3d(calc(-50% - 1.5vw), calc(-50% + 1vh), 0) scale(1.03); }
  100% { transform: translate3d(-50%, -50%, 0) scale(1); }
}
body::after {
  animation: ambient-shift 20s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .hero::before,
  .hero::after,
  .hero-label::before { animation: none; }
  .article-card:hover { transform: none; }
  .articles-dot.active { transform: none; }
}

.site-datetime {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.25rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(88,166,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}

.site-datetime-date {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}

.site-datetime-date::after {
  content: '\2022';
  margin-left: 0.45rem;
  color: rgba(139,148,158,0.8);
}

.site-datetime-time {
  display: inline-block;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-shadow: none;
}

.site-datetime-timezone {
  display: none;
  margin-top: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
code, pre, kbd { font-family: var(--font-mono); }
ul, ol { list-style-position: outside; }

/* === CONTENEUR ================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === EN-TÊTE ================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(88,166,255,0.16);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 30px rgba(0,0,0,0.12);
}
.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  overflow: hidden;
  isolation: isolate;
  max-width: 1400px;
  gap: 1.5rem;
}
.site-header .container > :not(.site-header-media) {
  position: relative;
  z-index: 1;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(88,166,255,0.03), transparent 22%, transparent 78%, rgba(255,130,92,0.03));
  z-index: 0;
}
.site-header-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.site-header-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,17,23,0.42), rgba(13,17,23,0.12) 48%, rgba(13,17,23,0.4)),
    linear-gradient(180deg, rgba(88,166,255,0.08), rgba(255,130,92,0.03));
}
.site-header-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  opacity: 0.62;
  filter: saturate(1.22) contrast(1.12) brightness(0.75) blur(0.1px);
  transform: scale(1.06);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  text-shadow: 0 0 18px rgba(88,166,255,0.14);
  margin-right: auto;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo:hover .site-logo {
  transform: translateY(-1px);
  border-color: rgba(88,166,255,0.38);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 12px 26px rgba(0,0,0,0.42);
}
.site-logo {
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(88,166,255,0.18);
  background: #0b1016;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 10px 24px rgba(0,0,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.logo-dots { color: var(--accent); text-shadow: 0 0 18px rgba(88,166,255,0.55); }

nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
nav a:hover, nav a.active { color: var(--accent); text-decoration: none; }

.language-switch {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0.9rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.language-switch .lang-toggle {
  appearance: none;
  border: 0;
  background: rgba(88,166,255,0.10);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.language-switch .lang-toggle:hover {
  background: rgba(88,166,255,0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}

/* === HERO ===================================================== */
.hero {
  padding: 3rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-music));
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 18px rgba(63,185,80,0.35);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 680px;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(88,166,255,0.12);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff8c61 0%, #ffbf86 48%, #bc8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255,130,92,0.15);
}
.hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition), color var(--transition), transform var(--transition), background var(--transition);
}
.tag:hover { border-color: rgba(88,166,255,0.55); color: var(--accent); transform: translateY(-1px); background: rgba(88,166,255,0.08); }

/* === MISE EN PAGE ============================================= */
main { flex: 1; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* === SECTION ARTICLES ========================================= */
.articles-section {
  min-width: 0; /* fix CSS grid overflow: 1fr doit ignorer le min-content */
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(88,166,255,0.12);
  margin-bottom: 1.25rem;
}
.articles-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.articles-section-header h2 { margin-bottom: 0; }
.articles-scroll-arrows {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.scroll-arrow {
  background: rgba(88,166,255,0.07);
  border: 1px solid rgba(88,166,255,0.22);
  color: var(--accent);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-weight: 600;
}
.scroll-arrow:hover:not(:disabled) {
  background: rgba(88,166,255,0.22);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88,166,255,0.25);
}
.scroll-arrow:disabled { opacity: 0.35; cursor: default; }
.articles-section h2 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.articles-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.articles-list {
  overflow: hidden;
  position: relative;
  padding-top: 6px;
  margin-top: -6px;
}
.articles-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: flex-start;
  min-width: 0;
}
.articles-page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}
.articles-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.articles-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.articles-dot:hover {
  border-color: var(--accent);
  background: rgba(88,166,255,0.12);
}
.articles-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(88,166,255,0.5);
}

/* === CARTE ARTICLE ============================================ */
.article-card {
  position: relative;
  min-width: 0;
  width: auto;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(88,166,255,0.06), rgba(255,130,92,0.04) 55%, rgba(188,140,255,0.06)),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    var(--bg-card);
  border: 1px solid rgba(88,166,255,0.14);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.article-card:hover {
  border-color: rgba(88,166,255,0.55);
  box-shadow: 0 12px 36px rgba(88,166,255,0.15), 0 0 0 1px rgba(88,166,255,0.08) inset;
  background:
    linear-gradient(135deg, rgba(88,166,255,0.1), rgba(255,130,92,0.07) 55%, rgba(188,140,255,0.1)),
    linear-gradient(180deg, rgba(88,166,255,0.08), rgba(255,255,255,0.02)),
    var(--bg-card);
  transform: translateY(-4px);
}
.article-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-music), var(--accent-purple));
  opacity: 0.85;
}
.article-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -28% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(88,166,255,0.16), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}
.article-card-inner { padding: 1.25rem 1.5rem; position: relative; }
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.article-date {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-music), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
  filter: drop-shadow(0 0 8px rgba(88,166,255,0.3));
}
.article-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.read-more:hover { gap: 0.6rem; transform: translateX(3px); text-decoration: none; filter: drop-shadow(0 0 6px rgba(88,166,255,0.3)); }
.read-more::after { content: '→'; }

/* === BADGES CATÉGORIES ======================================== */
.badge {
  display: inline-block;
  font-size: 0.67rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.cat-cybersec  { background: rgba(248,81,73,.12);  color: #f85149; border: 1px solid rgba(248,81,73,.25); }
.cat-formation { background: rgba(88,166,255,.1);  color: #58a6ff; border: 1px solid rgba(88,166,255,.25); }
.cat-lab       { background: rgba(63,185,80,.1);   color: #3fb950; border: 1px solid rgba(63,185,80,.25); }
.cat-project   { background: rgba(188,140,255,.1); color: #bc8cff; border: 1px solid rgba(188,140,255,.25); }
.cat-dev       { background: rgba(210,153,34,.1);  color: #d29922; border: 1px solid rgba(210,153,34,.25); }
.cat-musique   { background: rgba(255,130,92,.1);  color: #ff825c; border: 1px solid rgba(255,130,92,.25); }
.cat-default   { background: rgba(125,133,144,.1); color: var(--text-muted); border: 1px solid rgba(125,133,144,.25); }

/* === BARRE LATÉRALE ========================================== */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget h3 {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.author-bio { text-align: center; }
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(88,166,255,0.35);
  box-shadow: 0 0 0 4px rgba(88,166,255,0.08);
  margin: 0 auto 0.75rem;
}
.author-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.author-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.5; }
.author-links { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.author-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}
.author-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.label-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.label-cloud a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.label-cloud a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.project-promo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.project-promo a { font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.project-promo a:hover { text-decoration: underline; }

/* === PAGE ARTICLE ============================================= */
.article-page { padding: 2.5rem 0 4rem; max-width: 1040px; margin: 0 auto; }
.article-page,
.about-page,
.project-page {
  position: relative;
}
.article-page::before,
.about-page::before,
.project-page::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(78vw, 760px);
  height: 260px;
  background: radial-gradient(circle, rgba(88,166,255,0.12), rgba(255,130,92,0.05) 38%, transparent 70%);
  pointer-events: none;
  filter: blur(14px);
  z-index: -1;
}
.article-page::after,
.about-page::after,
.project-page::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(188,140,255,0.08), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 1.75rem;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--accent); text-decoration: none; }

.article-page-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: calc(var(--radius) + 4px);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-page-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.article-page h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 44ch;
}

/* Corps de l'article */
.article-body { font-size: 1.1rem; line-height: 1.7; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2.25rem 0 0.75rem; color: var(--text); }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.75rem 0 0.6rem; color: var(--text); }
.article-body h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--text); }
.article-body h2,
.article-body h3 {
  position: relative;
  padding-left: 0.9rem;
}
.article-body h2::before,
.article-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 3px;
  height: 0.95em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-music));
  box-shadow: 0 0 18px rgba(88,166,255,0.24), 0 0 24px rgba(255,130,92,0.1);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.86em;
  color: var(--accent-green);
}
.article-body pre {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  border: 1px solid rgba(88,166,255,0.14);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  box-shadow: var(--shadow-soft);
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
  background: linear-gradient(90deg, rgba(88,166,255,0.08), rgba(255,255,255,0.02));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body img {
  margin: 1.75rem auto;
  box-shadow: 0 12px 42px rgba(0,0,0,0.4), 0 0 0 1px rgba(88,166,255,0.12);
  border: 1px solid rgba(88,166,255,0.14);
}
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.article-gallery figure {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(88,166,255,0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-soft);
}
.article-gallery img {
  margin: 0 0 0.75rem;
  width: 100%;
}
.article-gallery figcaption {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.article-body .separator { text-align: center; margin: 1.5rem 0; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.75rem 0; border-radius: var(--radius); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.article-body a { color: var(--accent); }
.article-body a:hover { color: var(--accent-music); }
.article-body strong, .article-body b { color: var(--text); font-weight: 600; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}
.article-body th, .article-body td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th { background: var(--bg-card); color: var(--text-muted); font-weight: 600; }

/* Schéma conceptuel générique pour illustrer un enchaînement/flux dans un article
   (introduit pour l'article Death Stranding 2 / Woodkid, réutilisable ailleurs). */
.concept-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 1.75rem 0 2rem;
}
.concept-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  text-align: center;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
}
.concept-node.is-accent {
  border-color: rgba(255,130,92,0.35);
  color: var(--accent-music);
}
.concept-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.4;
}
.concept-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.concept-row .concept-node { flex: 1 1 130px; }
.concept-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.85rem !important;
}

/* === PAGE À PROPOS / CV ===================================== */
.about-page, .cv-page { max-width: 780px; margin: 0 auto; padding: 3rem 0 4rem; }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(88,166,255,0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22,27,34,0.92), rgba(27,34,48,0.78));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.profile-badge-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(88,166,255,0.35);
  box-shadow: 0 0 0 4px rgba(88,166,255,0.08);
}
.profile-badge-copy { display: flex; flex-direction: column; gap: 0.1rem; }
.about-page .page-eyebrow, .cv-page .page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0;
}
.profile-badge-note {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.about-page h1, .cv-page h1 { font-size: 2.2rem; margin-bottom: 0.5rem; line-height: 1.2; }
.about-page .lead, .cv-page .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 620px;
}
.about-section { margin-bottom: 2.5rem; }
.about-section h2 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.about-section h2::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.about-section p { color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.7; }
.about-section ul { padding-left: 1.25rem; color: var(--text-muted); }
.about-section li { margin-bottom: 0.35rem; }

.social-links { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(88,166,255,0.06); text-decoration: none; }

/* === PAGE ARCHIVES =========================================== */
.archive-page { max-width: 980px; margin: 0 auto; padding: 3rem 0 4rem; }
.archive-page .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2rem;
}
.archive-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.archive-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.archive-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 0 0 2.5rem;
}
.archive-summary-item {
  border: 1px solid rgba(88,166,255,0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.archive-summary-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.archive-summary-item strong {
  font-size: 1rem;
  color: var(--text);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.archive-section {
  background:
    linear-gradient(135deg, rgba(88,166,255,0.05), rgba(255,130,92,0.03) 55%, rgba(188,140,255,0.05)),
    var(--bg-card);
  border: 1px solid rgba(88,166,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.archive-section h2 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.archive-section h2::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.archive-section p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.archive-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.archive-links li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.8rem;
  align-items: baseline;
}
.archive-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.archive-links a {
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}
.archive-links a:hover { color: var(--accent); text-decoration: none; }

/* === PAGE RESSOURCES ========================================= */
.resources-page { max-width: 1040px; margin: 0 auto; padding: 3rem 0 4rem; }
.resources-page .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2rem;
}
.resources-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid rgba(88,166,255,0.16);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at top right, rgba(63,185,80,0.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(255,130,92,0.12), transparent 30%),
    linear-gradient(135deg, rgba(22,27,34,0.98), rgba(27,34,48,0.9));
  box-shadow: var(--shadow-soft);
}
.resources-hero::after {
  content: '';
  position: absolute;
  inset: auto -12% -34% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(88,166,255,0.12), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.resources-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  max-width: 12ch;
}
.resources-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.resources-summary-item {
  border: 1px solid rgba(88,166,255,0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--bg-card);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.resources-summary-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.resources-summary-item strong {
  font-size: 1rem;
  color: var(--text);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.resource-card {
  background:
    linear-gradient(135deg, rgba(88,166,255,0.05), rgba(255,130,92,0.03) 55%, rgba(188,140,255,0.05)),
    var(--bg-card);
  border: 1px solid rgba(88,166,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.resource-card h2 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.resource-card h2::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.resource-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.resource-list li { margin: 0; }
.resource-link {
  display: block;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(88,166,255,0.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.resource-link:hover {
  border-color: rgba(88,166,255,0.42);
  background: rgba(88,166,255,0.05);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.resource-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}
.resource-link-title {
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.resource-link-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(88,166,255,0.18);
  background: rgba(88,166,255,0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  white-space: nowrap;
}
.resource-link-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.resource-link-url {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
}
.resource-link-url::after { content: '↗'; }

/* === PAGE ONLYAUDIO ========================================== */
.project-page { padding: 3rem 0 4rem; }
.project-hero {
  background:
    radial-gradient(circle at top right, rgba(255,130,92,0.2), transparent 30%),
    radial-gradient(circle at bottom left, rgba(88,166,255,0.12), transparent 32%),
    linear-gradient(135deg, rgba(88,166,255,0.14), rgba(188,140,255,0.1));
  border: 1px solid rgba(88,166,255,0.24);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.project-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}
.project-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.85rem; }
.project-hero h1 { text-shadow: 0 0 24px rgba(88,166,255,0.12); }
.project-hero .tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.cta-btn:hover { background: #4493e8; text-decoration: none; transform: translateY(-1px); }
.article-body .cta-btn { color: #fff; }
.article-body .cta-btn:hover { color: #fff; }
.article-body .cta-btn-ghost { color: var(--text-muted); }
.article-body .cta-btn-ghost:hover { color: var(--accent); }
.cta-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
}
.cta-btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.section-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.feature-card {
  background:
    linear-gradient(135deg, rgba(88,166,255,0.05), rgba(255,130,92,0.03)),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    var(--bg-card);
  border: 1px solid rgba(88,166,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(188,140,255,0.55);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(188,140,255,0.05) inset;
}
.feature-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.feature-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.platforms { display: flex; gap: 0.65rem; flex-wrap: wrap; margin: 0.75rem 0 2rem; }
.platform-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.api-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.api-block pre {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-green);
  white-space: pre;
  overflow-x: auto;
}

.stack-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 2rem; }
.stack-item {
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.contribute-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.contribute-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contribute-list li::before { content: '→'; color: var(--accent); }

/* === PAGE CLI ================================================ */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.cli-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.cli-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88,166,255,0.18);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at top right, rgba(63,185,80,0.15), transparent 26%),
    radial-gradient(circle at bottom left, rgba(88,166,255,0.14), transparent 28%),
    linear-gradient(135deg, rgba(22,27,34,0.96), rgba(27,34,48,0.88));
  box-shadow: var(--shadow-soft);
  padding: 2.25rem;
}
.cli-hero::after {
  content: '';
  position: absolute;
  inset: auto -12% -28% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,130,92,0.09), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.cli-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
}
.cli-hero .lead {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.cli-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.cli-pill,
.cli-command-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.cli-score {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(88,166,255,0.14);
  border-radius: var(--radius);
  background: rgba(13,17,23,0.55);
}
.cli-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cli-score-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green);
}
.cli-score-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.cli-progress {
  margin-top: 0.85rem;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.cli-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-green), var(--accent-music));
  transition: width 0.25s ease;
}
.cli-reset {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}
.cli-reset:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(88,166,255,0.06);
  transform: translateY(-1px);
}
.cli-section {
  margin-top: 2rem;
}
.cli-section h2 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cli-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.quiz-grid,
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.cli-journey {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.15rem;
  border: 1px solid rgba(88,166,255,0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88,166,255,0.08), rgba(255,130,92,0.05) 60%, rgba(188,140,255,0.08));
}
.cli-journey-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cli-journey p,
.cli-level-header p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.cli-continue {
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #66aaff);
  color: #fff;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(88,166,255,0.22);
  transition: transform var(--transition), filter var(--transition), opacity var(--transition);
}
.cli-continue:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.cli-continue[hidden] {
  display: none;
}
.cli-level-header {
  margin-bottom: 1rem;
}
.cli-level-header h2 {
  margin-bottom: 0.15rem;
}
.quiz-card,
.exercise-card,
.command-card {
  border: 1px solid rgba(88,166,255,0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(88,166,255,0.05), rgba(255,130,92,0.03) 56%, rgba(188,140,255,0.05)),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}
.quiz-card,
.exercise-card { padding: 1.15rem; }
.quiz-card h3,
.exercise-card h3,
.command-card h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.quiz-card p,
.exercise-card p,
.command-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.95rem;
}
.quiz-option {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), color var(--transition);
}
.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(88,166,255,0.07);
  transform: translateY(-1px);
}
.quiz-option.selected {
  border-color: rgba(88,166,255,0.55);
  background: rgba(88,166,255,0.12);
}
.quiz-option.correct {
  border-color: rgba(63,185,80,0.65);
  background: rgba(63,185,80,0.14);
}
.quiz-option.wrong {
  border-color: rgba(248,81,73,0.7);
  background: rgba(248,81,73,0.12);
}
.feedback,
.exercise-feedback {
  margin-top: 0.85rem;
  min-height: 1.3em;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.feedback.is-correct,
.exercise-feedback.is-correct { color: var(--accent-green); }
.feedback.is-wrong,
.exercise-feedback.is-wrong { color: var(--accent-red); }
.exercise-form { margin-top: 0.85rem; }
.exercise-input-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.exercise-input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.72rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.exercise-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.12);
}
.exercise-check {
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  padding: 0.72rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.exercise-check:hover {
  background: #4493e8;
  transform: translateY(-1px);
}
.exercise-check:disabled,
.quiz-option:disabled { cursor: default; opacity: 0.85; }
.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.command-card { padding: 1rem 1.05rem; }
.command-card code {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

/* === PAGE 404 ================================================= */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  flex: 1;
}
.not-found .err-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }
.btn-home {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-home:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* === PIED DE PAGE ============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.site-footer p { color: var(--text-muted); font-size: 0.84rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.81rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-note { font-size: 0.72rem; color: var(--border); }

/* === RESPONSIVE =============================================== */
@media (max-width: 840px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .sidebar-widget.author-bio { display: none; } /* masqué sur mobile */
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .site-header .container { overflow: visible; isolation: auto; }
  .logo {
    font-size: 1.08rem;
    gap: 0.5rem;
  }
  .site-logo {
    width: 1.7rem;
    height: 1.7rem;
  }
  .language-switch {
    margin-right: 0.5rem;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0b1016;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    z-index: 99;
  }
  nav.open { display: flex; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .article-card-inner { padding: 1rem 1.1rem; }
  .article-page { padding: 1.5rem 0 3rem; }
  .about-page, .project-page { padding: 1.5rem 0 3rem; }
  .cli-page { padding: 1.5rem 0 3rem; }
  .cli-hero { padding: 1.4rem; }
  .exercise-input-row { flex-direction: column; }
  .exercise-check { width: 100%; }
  .site-datetime { display: none; }
}

@media (max-width: 640px) and (orientation: portrait) {
  .site-header .container {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .logo {
    margin-right: 0;
  }

  .language-switch {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0;
  }

  .site-datetime {
    order: 4;
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0.1rem 0 0;
  }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .project-hero { padding: 2rem 1.25rem; }
  .cli-hero h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-media {
    display: none;
  }
}

/* === CYBER NEWS TICKER ======================================== */
.cyber-ticker-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0 0 2.5rem;
}
.cyber-ticker {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  background: linear-gradient(90deg, rgba(22,27,34,0.92), rgba(22,27,34,0.85));
  border: 1px solid rgba(88,166,255,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  height: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.cyber-ticker-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0 1.25rem;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(63,185,80,0.3);
  background: rgba(63,185,80,0.1);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cyber-ticker-btn:hover {
  background: rgba(63,185,80,0.18);
  border-color: rgba(63,185,80,0.55);
  color: var(--accent-green);
  text-decoration: none;
}
@media (max-width: 640px) {
  .cyber-ticker-btn span:last-child { display: none; }
  .cyber-ticker-btn { padding: 0 0.9rem; }
}
.cyber-ticker-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
  border-right: 1px solid rgba(88,166,255,0.25);
  background: rgba(88,166,255,0.08);
  flex-shrink: 0;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.03);
}
.cyber-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.cyber-ticker-track::before,
.cyber-ticker-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 1;
  pointer-events: none;
}
.cyber-ticker-track::before {
  left: 0;
  background: linear-gradient(to right, rgba(22,27,34,0.9), transparent);
}
.cyber-ticker-track::after {
  right: 0;
  background: linear-gradient(to left, rgba(22,27,34,0.9), transparent);
}
.cyber-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  height: 48px;
  animation: ticker-scroll 45s linear infinite;
}
.cyber-ticker-inner:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cyber-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(230,237,243,0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), text-shadow var(--transition);
  padding: 0 1.25rem;
}
.cyber-ticker-item:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(88,166,255,0.4);
  text-decoration: none;
}
.cyber-ticker-sep {
  color: rgba(88,166,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0 0.4rem;
  flex-shrink: 0;
}
.cyber-ticker-placeholder {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 1.5rem;
  opacity: 0.55;
  animation: pulse-fade 1.5s ease-in-out infinite;
}
@keyframes pulse-fade {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.25; }
}

.cyber-ticker-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 0.4rem;
  margin-bottom: 1.75rem;
  letter-spacing: 0.5px;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .cyber-ticker-label span:last-child { display: none; }
  .articles-section-header { flex-wrap: wrap; gap: 0.5rem; }
  .articles-page {
    grid-template-columns: 1fr !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cyber-ticker-inner { animation: none; }
  .articles-track { transition: none; }
}

/* === CAROUSEL — ACCESSIBILITÉ ================================= */
.scroll-arrow:focus-visible,
.articles-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Compteur "x / n" sur mobile étroit (1 colonne) */
.articles-counter {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}
@media (max-width: 499px) {
  .articles-counter { display: block; }
  .articles-dots    { display: none; }
}

/* Lien "Voir tous les articles" */
.articles-all-link {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.articles-all-link:hover { color: var(--accent); text-decoration: none; }

/* Nuage de tags — bouton "voir plus" */
.label-cloud-toggle {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.24rem 0.6rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.label-cloud-toggle:hover { color: var(--accent); border-color: rgba(88,166,255,0.45); }

/* === ARTICLES BILINGUES FR/EN ================================= */
.lang-fr,
.lang-en { display: none; }

html[lang="fr"] .lang-fr { display: block; }
html[lang="en"] .lang-en { display: block; }

/* ============================================================
   IDENTITE 2026 — CARTE DE VISITE
   Systeme monochrome, editorial et adaptatif clair / sombre.
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --bg-hover: #eeeeeb;
  --bg-elevated: #f1f1ee;
  --border: #d7d7d2;
  --border-strong: #262626;
  --text: #111111;
  --text-muted: #62625e;
  --accent: #111111;
  --accent-green: #2f6652;
  --accent-orange: #6f5a35;
  --accent-red: #853f3f;
  --accent-purple: #5e536d;
  --accent-music: #3c3c3a;
  --surface-glass: rgba(247, 247, 245, 0.96);
  --surface-soft: rgba(17, 17, 17, 0.035);
  --surface-hover: rgba(17, 17, 17, 0.065);
  --radius: 0;
  --radius-sm: 0;
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.09);
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.005em;
}

/* Les diagonales reprennent le motif filaire de la carte. */
body::before {
  position: fixed;
  inset: 0 0 auto auto;
  width: min(43vw, 680px);
  height: min(72vh, 760px);
  opacity: 1;
  mask-image: linear-gradient(to bottom left, #000 0 58%, transparent 96%);
  background:
    linear-gradient(45deg, transparent 49.75%, var(--border) 49.8% 50.2%, transparent 50.25%) 0 0 / 210px 210px,
    linear-gradient(135deg, transparent 49.75%, var(--border) 49.8% 50.2%, transparent 50.25%) 105px 0 / 210px 210px;
}

body::after { display: none; }

::selection { background: var(--text); color: var(--bg-card); }

a { color: var(--text); text-underline-offset: 0.22em; }
a:hover { color: var(--text); }

.container { max-width: 1180px; padding-inline: clamp(1.1rem, 3vw, 2.5rem); }

.site-header {
  background: var(--surface-glass);
  border-bottom: 5px solid var(--text);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header::before,
.site-header-media { display: none; }
.site-header .container { height: 74px; max-width: 1500px; overflow: visible; }
.logo {
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-shadow: none;
}
.site-logo {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 0;
  filter: grayscale(1) contrast(1.25);
  box-shadow: none;
}
.logo-dots { color: var(--text); text-shadow: none; }
nav { gap: clamp(1rem, 2.2vw, 2rem); }
nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.45rem;
  height: 2px;
  background: currentColor;
  transition: right var(--transition);
}
nav a:hover::after,
nav a.active::after { right: 0; }
nav a:hover,
nav a.active { color: var(--text); }

.language-switch,
.site-datetime {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
}
.language-switch .lang-toggle {
  border-radius: 0;
  background: var(--text);
  color: var(--bg-card);
}
.language-switch .lang-toggle:hover { background: var(--text); color: var(--bg-card); }
.site-datetime-time { color: var(--text); }
.site-datetime-date::after { color: var(--border-strong); }
.menu-toggle { border-color: var(--text); border-radius: 0; }

.hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 0;
  overflow: visible;
}
.hero::before {
  content: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
}
.hero-inner { max-width: 900px; z-index: 1; }
.hero-label,
.page-eyebrow {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.hero-label::before {
  width: 30px;
  height: 2px;
  border-radius: 0;
  background: var(--text);
  box-shadow: none;
  animation: none;
}
.hero h1 {
  max-width: 850px;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: clamp(2.55rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.067em;
  text-shadow: none;
  max-inline-size: 100%;
  overflow-wrap: normal;
}
.hero h1 em {
  color: var(--text);
  background: none;
  text-shadow: none;
  font-style: normal;
  font-weight: 400;
}
.hero p {
  max-width: 710px;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}
.hero-tags { gap: 0.5rem; }
.tag,
.platform-badge,
.stack-item,
.cli-pill,
.cli-command-chip {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  color: var(--text-muted);
}
.tag { padding: 0.38rem 0.72rem; }
.tag:hover { border-color: var(--text); color: var(--text); background: var(--bg-card); transform: translateY(-2px); }

.cyber-ticker-row { margin-top: 2.25rem; margin-bottom: 0; gap: 0; }
.cyber-ticker,
.cyber-ticker-btn {
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
}
.cyber-ticker-label {
  border-right-color: var(--border);
  background: var(--text);
  color: var(--bg-card);
}
.cyber-ticker-btn {
  margin-left: -1px;
  color: var(--text);
}
.cyber-ticker-btn:hover { border-color: var(--text); background: var(--text); color: var(--bg-card); }
.cyber-ticker-track::before { background: linear-gradient(to right, var(--bg-card), transparent); }
.cyber-ticker-track::after { background: linear-gradient(to left, var(--bg-card), transparent); }
.cyber-ticker-item { color: var(--text-muted); }
.cyber-ticker-item:hover { color: var(--text); text-shadow: none; }
.cyber-ticker-sep { color: var(--border-strong); }
.cyber-ticker-note { opacity: 1; }

.page-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); padding-top: 2rem; }
.articles-section { border-bottom-color: var(--border); }
.articles-section-header { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.articles-section h2,
.section-title,
.cli-section h2,
.resource-card h2,
.archive-section h2 {
  color: var(--text);
  letter-spacing: 0.16em;
}
.articles-section h2::after,
.section-title::after,
.cli-section h2::after,
.resource-card h2::after { background: transparent; }
.scroll-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.scroll-arrow:hover:not(:disabled) { background: var(--text); color: var(--bg-card); box-shadow: none; transform: none; }
.articles-page { gap: 1px; background: var(--border); border: 1px solid var(--border); }
.article-card {
  border: 0;
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
}
.article-card::before { width: 44px; height: 5px; background: var(--text); opacity: 1; }
.article-card::after { display: none; }
.article-card:hover {
  border-color: transparent;
  background: var(--bg-hover);
  box-shadow: none;
  transform: none;
}
.article-card-inner { padding: 1.5rem; }
.article-card h3 { font-size: 1.08rem; line-height: 1.35; }
.article-card h3 a:hover { color: var(--text); background: none; filter: none; text-decoration: underline; }
.article-card p { color: var(--text-muted); }
.read-more { color: var(--text); }
.read-more:hover { gap: 0.5rem; transform: none; filter: none; }
.badge {
  border: 0;
  border-radius: 0;
  background: var(--text) !important;
  color: var(--bg-card) !important;
  box-shadow: none;
  backdrop-filter: none;
}
.articles-dot { border-radius: 0; border-color: var(--border-strong); }
.articles-dot.active { background: var(--text); border-color: var(--text); box-shadow: none; transform: none; }

.sidebar-widget,
.archive-section,
.archive-summary-item,
.resources-summary-item,
.resource-card,
.feature-card,
.api-block,
.quiz-card,
.exercise-card,
.command-card {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
}
.sidebar-widget { position: relative; padding: 1.4rem; }
.sidebar-widget::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 36px;
  height: 4px;
  background: var(--text);
}
.sidebar-widget h3 { color: var(--text); border-bottom-color: var(--border); }
.author-avatar { border-radius: 0; border: 0; box-shadow: none; filter: grayscale(1); }
.author-links a,
.label-cloud a,
.label-cloud-toggle { border-radius: 0; background: transparent; }
.author-links a:hover,
.label-cloud a:hover,
.label-cloud-toggle:hover { border-color: var(--text); color: var(--text); }

.article-page,
.about-page,
.project-page { background: var(--bg-card); border-color: var(--border); box-shadow: var(--shadow-soft); }
.article-page::before,
.about-page::before,
.project-page::before { background: var(--text); }
.article-header { border-bottom-color: var(--border); }
.article-header h1,
.about-page h1,
.cv-page h1,
.archive-hero h1,
.resources-hero h1,
.cli-hero h1 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.055em;
}
.article-body { color: var(--text); }
.article-body h2 { border-bottom-color: var(--border); }
.article-body p,
.article-body li { color: var(--text-muted); }
.article-body strong { color: var(--text); }
.article-body a { color: var(--text); text-decoration-color: var(--border-strong); }
.article-body code,
.command-card code { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.article-body pre { background: #202020; border-color: #202020; }
.article-body pre code { color: #f3f3f0; }
.article-body blockquote { background: var(--bg-elevated); border-left-color: var(--text); }
.article-body img { border-radius: 0; border-color: var(--border); }

.archive-hero,
.resources-hero,
.cli-hero,
.project-hero {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-card);
  box-shadow: none;
}
.archive-hero::after,
.resources-hero::after,
.cli-hero::after { display: none; }
.archive-summary { gap: 1px; background: var(--border); border: 1px solid var(--border); }
.archive-summary-item { border: 0; }
.archive-summary-item strong { color: var(--text); }
.archive-grid,
.resources-grid { gap: 1rem; }
.archive-section h2::after { background: var(--border); }
.archive-links li { border-bottom-color: var(--border); }
.archive-links a { color: var(--text); }
.resource-link { border-radius: 0; border-color: var(--border); background: var(--surface-soft); }
.resource-link:hover { border-color: var(--text); background: var(--bg-hover); box-shadow: none; transform: none; }
.resource-link-meta { border-radius: 0; color: var(--text); border-color: var(--border); background: var(--bg-card); }
.resource-link-title { color: var(--text); }

.project-hero { border-top: 5px solid var(--text); }
.project-hero h1 { text-shadow: none; }
.project-badge { color: var(--text-muted); }
.cta-btn,
.exercise-check,
.cli-continue {
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--bg-card);
  box-shadow: none;
}
.cta-btn:hover,
.exercise-check:hover,
.cli-continue:hover { background: var(--bg-card); color: var(--text); transform: none; }
.article-body .cta-btn:hover { color: var(--text); }
.cta-btn-ghost { border-radius: 0; }
.feature-card:hover { border-color: var(--text); transform: none; box-shadow: none; }
.api-block pre { color: var(--text); }
.stack-item { color: var(--text); }

.cli-score,
.cli-journey {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-elevated);
}
.cli-score-value,
.cli-journey-label { color: var(--text); }
.cli-progress { border-radius: 0; background: var(--bg-card); }
.cli-progress span { border-radius: 0; background: var(--text); }
.cli-reset,
.quiz-option,
.exercise-input { border-radius: 0; background: var(--bg-card); }
.quiz-option:hover,
.quiz-option.selected { border-color: var(--text); background: var(--bg-hover); transform: none; }
.exercise-input:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--surface-hover); }

.site-footer {
  border-top: 5px solid var(--text);
  background: var(--bg-card);
}
.footer-links a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--text) !important; outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --bg-card: #191919;
    --bg-hover: #222222;
    --bg-elevated: #242424;
    --border: #3a3a38;
    --border-strong: #8a8a84;
    --text: #f2f2ee;
    --text-muted: #b8b8b1;
    --accent: #f2f2ee;
    --accent-green: #a9c7bb;
    --accent-orange: #c9b88f;
    --accent-red: #d7a3a3;
    --accent-purple: #c0b4cc;
    --accent-music: #deded8;
    --surface-glass: rgba(16, 16, 16, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
  }
  .site-logo { filter: grayscale(1) brightness(1.45) contrast(1.05); }
  .author-avatar { filter: grayscale(1) brightness(0.9); }
  .article-body pre { background: #080808; border-color: #3a3a38; }
  .badge { background: var(--text) !important; color: #111 !important; }
}

@media (max-width: 1040px) {
  .site-datetime-date { display: none; }
  .site-datetime-date::after { display: none; }
  nav { gap: 1rem; }
}

@media (max-width: 840px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-widget.author-bio { display: block; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sidebar-widget { margin-bottom: 0; }
  .sidebar-widget:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { overflow-x: clip; }
  html { scroll-padding-top: 72px; }
  .site-header .container { min-height: 68px; padding-block: 0.55rem; }
  .site-logo { width: 2rem; height: 2rem; }
  nav {
    top: 100%;
    padding: 1.5rem;
    border-bottom: 5px solid var(--text);
    background: var(--bg-card);
  }
  nav a { width: 100%; font-size: 0.88rem; }
  .site-datetime { background: var(--bg-card); }
  .hero { min-height: auto; padding: 4.25rem 0 5.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero p { font-size: 0.98rem; }
  .cyber-ticker-row { margin-top: 1.5rem; }
  .page-layout { padding-top: 1.5rem; }
  .articles-section-header { flex-wrap: nowrap; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar-widget:last-child:nth-child(odd) { grid-column: auto; }
  .article-page,
  .about-page,
  .project-page { box-shadow: none; }
}

@media (max-width: 420px) {
  .logo { font-size: 1rem; }
  .language-switch { margin-left: auto; }
  .site-datetime { display: none !important; }
  .hero { padding-top: 3.5rem; }
  .hero-label { letter-spacing: 0.1em; }
  .hero-tags { gap: 0.35rem; }
  .tag { font-size: 0.67rem; padding: 0.32rem 0.5rem; }
  .cyber-ticker-btn { padding-inline: 0.75rem; }
}
