/*
Theme Name: LeboTech Portfolio
Theme URI: https://lebotech.org
Author: Nathan LEBOSSÉ
Author URI: https://lebotech.org
Description: Thème portfolio dark tech pour Nathan LEBOSSÉ – BTS SIO SISR
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lebotech
*/

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

:root {
  --bg: #0b0c10;
  --surface: #13141a;
  --surface2: #1a1c24;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.14);
  --text: #e8e9ed;
  --muted: #7a7c8a;
  --accent: #00e5a0;
  --accent2: #4fa3ff;
  --accent3: #ff6b6b;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11,12,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px; margin: 0 auto;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.tag-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border: 0.5px solid var(--accent);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1rem;
}
.tag-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 1.5rem;
}
h1.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0b0c10;
  border: none;
  font-weight: 500;
}
.btn-primary:hover { background: #00ffb3; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 0.5px solid var(--border-bright);
}
.btn-outline:hover { border-color: var(--text); }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}
.stat-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* SECTIONS */
.portfolio-section {
  max-width: 900px; margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 0.5px solid var(--border);
}
.section-header {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 3rem;
}
.section-num { font-size: 11px; color: var(--accent); letter-spacing: 0.15em; font-weight: 500; }
h2.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.skill-card {
  background: var(--surface);
  padding: 1.5rem;
  transition: background 0.2s;
}
.skill-card:hover { background: var(--surface2); }
.skill-icon { font-size: 1.4rem; margin-bottom: 0.75rem; display: block; }
.skill-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.skill-desc { font-size: 13px; color: var(--muted); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.pill {
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  border: 0.5px solid var(--border-bright);
  color: var(--muted);
  background: var(--bg);
}
.pill-accent { border-color: rgba(0,229,160,0.3); color: var(--accent); background: rgba(0,229,160,0.05); }
.pill-blue { border-color: rgba(79,163,255,0.3); color: var(--accent2); background: rgba(79,163,255,0.05); }

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.project-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.project-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.project-card:hover::before { opacity: 1; }
.project-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent), transparent); }
.project-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent2), transparent); }
.project-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent3), transparent); }
.project-card:nth-child(n+4)::before { background: linear-gradient(90deg, var(--accent), transparent); }

.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.project-emoji { font-size: 1.4rem; }
.project-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-active { background: rgba(0,229,160,0.1); color: var(--accent); border: 0.5px solid rgba(0,229,160,0.3); }
.status-wip { background: rgba(255,198,0,0.1); color: #ffc600; border: 0.5px solid rgba(255,198,0,0.3); }
.status-archived { background: rgba(122,124,138,0.1); color: var(--muted); border: 0.5px solid rgba(122,124,138,0.3); }

.project-title-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.project-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.project-techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }

/* TIMELINE */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 0.5px;
  background: var(--border-bright);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: -1.5rem; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.15);
}
.timeline-date { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-title-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-org { font-size: 13px; color: var(--muted); }
.timeline-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* CONTACT */
.contact-intro { font-size: 14px; color: var(--muted); margin-bottom: 2rem; max-width: 480px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 13px; color: var(--text); font-family: var(--font-mono); margin-top: 2px; }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto;
}

/* TUTOS */
.tutos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tuto-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.tuto-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.tuto-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.tuto-card:hover::before { opacity: 1; }
.tuto-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tuto-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tuto-read { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.tuto-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  color: var(--text); line-height: 1.3;
}
.tuto-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.tuto-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.5rem; border-top: 0.5px solid var(--border); }
.tuto-date { font-size: 11px; color: var(--muted); }
.tuto-arrow { color: var(--accent2); font-size: 14px; transition: transform 0.2s; }
.tuto-card:hover .tuto-arrow { transform: translateX(4px); }

/* SINGLE ARTICLE */
.article-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 8rem 2rem 5rem;
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  margin-bottom: 2.5rem;
}
.article-back:hover { color: var(--text); }
.article-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.1; color: var(--text);
  margin-bottom: 1.25rem;
}
.article-meta {
  display: flex; gap: 1.5rem; align-items: center;
  font-size: 12px; color: var(--muted);
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 2.5rem;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Article body typography */
.article-body { line-height: 1.85; font-size: 15px; color: var(--text); }
.article-body h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.3px; color: var(--text);
  margin: 2.5rem 0 1rem; padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}
.article-body h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--text); margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body a { color: var(--accent2); text-decoration: none; border-bottom: 0.5px solid rgba(79,163,255,0.4); transition: border-color 0.2s; }
.article-body a:hover { border-color: var(--accent2); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { color: var(--muted); font-style: italic; }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.article-body pre {
  background: var(--surface);
  border: 0.5px solid var(--border-bright);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  border: 0.5px solid var(--border-bright);
}
.article-body pre code {
  background: none; border: none; padding: 0;
  color: var(--text);
}
.article-body img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; border: 0.5px solid var(--border); }
.article-body hr { border: none; border-top: 0.5px solid var(--border); margin: 2.5rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 13px; }
.article-body th { text-align: left; padding: 8px 12px; background: var(--surface); border: 0.5px solid var(--border-bright); color: var(--muted); font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.article-body td { padding: 8px 12px; border: 0.5px solid var(--border); }

.article-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}
.article-nav a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.article-nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .article-wrap { padding: 6rem 1rem 3rem; }
}
.admin-bar nav.site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav.site-nav { top: 46px; }
}

/* RESPONSIVE */
@media (max-width: 640px) {
  nav.site-nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 6rem 1rem 3rem; }
  .portfolio-section { padding: 3rem 1rem; }
  .hero-stats { gap: 1.5rem; }
}
