/* ─── 1. VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --bg:          #0f1628;
  --bg2:         #1a2040;
  --bg3:         #141d35;
  --blue:        #4a7fd4;
  --blue-bright: #6699ff;
  --red:         #ff2d2d;
  --red-glow:    rgba(255,45,45,0.35);
  --text:        #ffffff;
  --text2:       #a0b0d0;
  --border:      rgba(74,127,212,0.18);
  --card-bg:     rgba(26,32,64,0.85);
}

/* ─── 2. RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
a { text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── 3. SCANLINES ──────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px
  );
}

/* ─── 4. HEADER ─────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15,22,40,0.85);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text2); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--blue-bright); }

/* ─── 5. CURSOR ─────────────────────────────────────────────────────────────── */
#cursor {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue);
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
}
#cursor-trail {
  width: 28px;
  height: 28px;
  border: 1px solid var(--blue-bright);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease, top 0.08s ease;
}

/* ─── 6. PROGRESS BAR ───────────────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--blue), var(--blue-bright), var(--red));
  box-shadow: 0 0 8px var(--blue);
  z-index: 1000;
  transition: width 0.1s;
}

/* ─── 7. BOUTONS PARTAGÉS ───────────────────────────────────────────────────── */
.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue-bright);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.btn-cta:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,127,212,0.3);
}
.portfolio-link {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue-bright);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.portfolio-link:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,127,212,0.3);
}

/* ─── 8. SKILL CHIPS ────────────────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.skill-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--blue-bright);
  background: rgba(74,127,212,0.08);
  transition: background 0.2s, border-color 0.2s;
}
.skill-chip:hover {
  background: rgba(74,127,212,0.2);
  border-color: rgba(74,127,212,0.5);
}

/* ─── 9. KEYES CARD ─────────────────────────────────────────────────────────── */
.keyes-card {
  border: 1px solid rgba(255,45,45,0.25);
  border-radius: 16px;
  background: rgba(255,45,45,0.05);
  padding: 28px 32px;
  margin-bottom: 40px;
  transition: border-color 0.3s, background 0.3s;
}
.keyes-card:hover {
  border-color: rgba(255,45,45,0.5);
  background: rgba(255,45,45,0.08);
}
.keyes-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #ff6666;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.keyes-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.keyes-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.78rem;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
}

/* ─── 10. FOOTER ────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px;
  color: var(--text2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ─── 11. SCROLL REVEAL ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text2);
  line-height: 1.6;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue-bright);
  border: 1px solid rgba(74,127,212,0.3);
  border-radius: 20px;
  padding: 6px 16px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── BILAN ─────────────────────────────────────────────────────────────────── */
.bilan-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
}
.bilan-header { margin-bottom: 48px; }
.bilan-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0;
}
.bilan-subtitle { color: var(--text2); font-size: 1rem; }
.bilan-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.bilan-text p { color: var(--text2); line-height: 1.75; font-size: 1rem; }
