	/*
Theme Name: Portfolio NOC
Theme URI: https://mon-portfolio.fr
Author: Antoine Sipp
Description: Portfolio SISR - Thème Dashboard NOC pour administrateur réseau
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: portfolio-noc
*/

/* ─────────────────────────────────────────
   VARIABLES & RESET
───────────────────────────────────────── */
:root {
  --bg:          #09100f;
  --surface:     #0e1a18;
  --surface2:    #132420;
  --border:      rgba(0, 255, 160, 0.12);
  --green:       #00ffa0;
  --green-dim:   #00c278;
  --amber:       #f5a623;
  --red:         #ff4757;
  --blue:        #4fc3f7;
  --text:        #cde8df;
  --muted:       #4a7060;
  --font-mono:   'Share Tech Mono', monospace;
  --font-display:'Syne', sans-serif;
}

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

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;
}

/* Scan-line overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,160,0.012) 2px,
    rgba(0,255,160,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dim); }

img { max-width: 100%; height: auto; display: block; }

/* ─────────────────────────────────────────
   TOPBAR / HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(9,16,15,0.97);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding .logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,160,0.4); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,255,160,0); }
}

.site-branding .site-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-status {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-status span { color: var(--green); }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-navigation ul li a {
  display: block;
  padding: 0 1.1rem;
  height: 52px;
  line-height: 52px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--green);
  background: rgba(0,255,160,0.05);
}

/* ─────────────────────────────────────────
   LAYOUT PRINCIPAL
───────────────────────────────────────── */
.site-main {
  margin-top: 52px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-label::before {
  content: '> ';
  color: var(--green);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero-title .highlight {
  color: var(--green);
  display: block;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.badge {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--green-dim);
  background: rgba(0,255,160,0.05);
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: var(--green);
  color: var(--bg);
}

/* Dashboard panel côté droit du hero */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
}

.hero-panel::before {
  content: 'NETWORK STATUS';
  position: absolute;
  top: -1px; left: 1.5rem;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: var(--surface);
  padding: 0 8px;
  transform: translateY(-50%);
}

.panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.metric {
  background: var(--surface);
  padding: 1rem;
}

.metric-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.metric-value.amber { color: var(--amber); }
.metric-value.blue  { color: var(--blue); }
.metric-value.red   { color: var(--red); }

.panel-bars { display: flex; flex-direction: column; gap: 10px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  font-size: 10px;
  color: var(--muted);
  width: 60px;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(0,255,160,0.08);
  border-radius: 0;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
  animation: bar-load 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes bar-load {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.bar-fill.amber { background: var(--amber); }
.bar-fill.blue  { background: var(--blue); }
.bar-fill.red   { background: var(--red); }

.bar-val {
  font-size: 11px;
  color: var(--text);
  width: 36px;
  text-align: right;
}

.panel-log {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}

.panel-log .log-ok   { color: var(--green); }
.panel-log .log-warn { color: var(--amber); }
.panel-log .log-err  { color: var(--red); }

/* ─────────────────────────────────────────
   SECTIONS GÉNÉRIQUES
───────────────────────────────────────── */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-tag::before { content: '// '; color: var(--green); }

.section-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────
   COMPÉTENCES
───────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
}

.skill-card {
  background: var(--surface);
  padding: 1.5rem;
  transition: background 0.2s;
}

.skill-card:hover {
  background: var(--surface2);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.skill-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.skill-bar-track {
  height: 4px;
  background: rgba(0,255,160,0.08);
  margin-bottom: 6px;
}

.skill-bar-fill {
  height: 100%;
  background: var(--green);
}

.skill-level {
  font-size: 10px;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   PROJETS
───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
}

.project-card {
  background: var(--surface);
  padding: 1.5rem;
  position: relative;
  transition: background 0.2s;
}

.project-card:hover { background: var(--surface2); }

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover::before { opacity: 1; }

.project-id {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.project-status {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 9px;
  padding: 3px 8px;
  letter-spacing: 0.1em;
}

.project-status.ok   { color: var(--green); border: 1px solid rgba(0,255,160,0.3); }
.project-status.warn { color: var(--amber); border: 1px solid rgba(245,166,35,0.3); }

/* ─────────────────────────────────────────
   À PROPOS
───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
}

.about-avatar {
  width: 80px; height: 80px;
  border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.about-role {
  font-size: 11px;
  color: var(--green-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.about-info-row {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.about-info-row span { color: var(--text); }

.about-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.about-text p { margin-bottom: 1rem; }

.about-text strong { color: var(--green); font-weight: 400; }

/* ─────────────────────────────────────────
   VEILLE TECHNOLOGIQUE RSS
───────────────────────────────────────── */
.veille-intro {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.veille-rss {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  padding: 1.2rem 1.5rem;
}

.rss-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rss-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  gap: 1rem;
}

.rss-item:last-child {
  border-bottom: none;
}

.rss-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.rss-item a:hover {
  color: var(--green);
}

.rss-date {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
  text-align: center;
}

.contact-section .section-title { margin-bottom: 0.5rem; }

.contact-section p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: var(--border);
  max-width: 500px;
  margin: 0 auto;
}

.contact-link {
  flex: 1;
  background: var(--surface2);
  padding: 1rem;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.contact-link:hover {
  background: rgba(0,255,160,0.08);
  color: var(--green);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-right { color: var(--green); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero          { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }
  .about-grid    { grid-template-columns: 1fr; }
  .topbar-status { display: none; }

  .main-navigation ul li a {
    padding: 0 0.7rem;
    font-size: 11px;
  }

  .rss-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ─────────────────────────────────────────
   ANIMATIONS ENTRÉE
───────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left > * {
  animation: fade-up 0.6s ease-out both;
}
.hero-left > *:nth-child(1) { animation-delay: 0.1s; }
.hero-left > *:nth-child(2) { animation-delay: 0.2s; }
.hero-left > *:nth-child(3) { animation-delay: 0.3s; }
.hero-left > *:nth-child(4) { animation-delay: 0.4s; }
.hero-left > *:nth-child(5) { animation-delay: 0.5s; }

.hero-panel {
  animation: fade-up 0.7s 0.3s ease-out both;
}

/* ─────────────────────────────────────────
   CONTENU WORDPRESS (articles, pages)
───────────────────────────────────────── */
.entry-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.4rem; color: var(--green); }
.entry-content h3 { font-size: 1.1rem; }

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

.entry-content a { color: var(--green); border-bottom: 1px solid rgba(0,255,160,0.3); }

.entry-content code {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  font-size: 12px;
  color: var(--amber);
}

.entry-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

/* Supprime tout ce qui pourrait bloquer le clic */
.project-card::before,
.project-card::after {
  display: none !important;
  pointer-events: none !important;
}

/* Assure que les boutons sont au-dessus et cliquables */
.hero-cta {
  position: relative !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
  cursor: pointer !important; /* curseur main */
}