/* =========================================
   DARK MODERN THEME — Portfolio Cyber
   ========================================= */
:root {
  --bg-dark: #0a0c10;
  --surface: #111316;
  --card-bg: #181c22;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #2d323a;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --transition: all 0.2s ease;
}

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

body {
  background: var(--bg-dark);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
}

.frame {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #1e40af);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: monospace;
  color: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, #a0c4ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0;
}

nav.tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.tab-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.profile {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile strong {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.clickable {
  cursor: pointer;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

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

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.skill-bar-container {
  width: 100%;
  height: 6px;
  background: #2d3748;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 10px;
}

.skill-category-title {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.mini-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.veille-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.veille-tag-small {
  background: rgba(59, 130, 246, 0.1);
  color: #90cdf4;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
}

.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ========== TIMELINE (frise verticale) ========== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(59, 130, 246, 0.3));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-marker {
  position: absolute;
  left: -0.9rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.timeline-date {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.timeline-place {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  header.top {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  nav.tabs {
    justify-content: center;
  }
  .timeline {
    padding-left: 1rem;
  }
  .timeline::before {
    left: 0;
  }
  .timeline-item {
    padding-left: 1rem;
  }
  .timeline-marker {
    left: -0.4rem;
  }
}

/* Animation intro (terminal) */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0c10;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
  transition: opacity 0.4s ease;
}

.terminal-box {
  background: #000000aa;
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #3b82f6;
  width: 90%;
  max-width: 600px;
}

#intro-lines .line {
  color: #0f0;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-family: monospace;
}