/* ============================================================
   ENZO FOURRIER — PORTFOLIO NOUVELLE GÉNÉRATION
   style.css — Système de styles complet
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES — THEME ADAPTATIF
   ============================================================ */
:root {
  /* Light Mode */
  --bg-primary:       #FFFFFF;
  --bg-secondary:     #F8F7FF;
  --bg-tertiary:      #F0EEFF;
  --text-primary:     #0A0A0F;
  --text-secondary:   #3D3D5C;
  --text-muted:       #7B7B9E;
  --accent-1:         #7C3AED;
  --accent-2:         #4C1D95;
  --accent-3:         #6D28D9;
  --accent-light:     #A78BFA;
  --accent-cyan:      #818CF8;
  --glass-bg:         rgba(255, 255, 255, 0.65);
  --glass-border:     rgba(124, 58, 237, 0.18);
  --glass-shadow:     0 8px 32px rgba(124, 58, 237, 0.1);
  --card-bg:          rgba(248, 247, 255, 0.85);
  --nav-glass:        rgba(255, 255, 255, 0.88);
  --shadow-glow:      0 0 50px rgba(124, 58, 237, 0.18);
  --progress-bg:      rgba(124, 58, 237, 0.1);
  --timeline-line:    rgba(124, 58, 237, 0.25);
  --input-bg:         rgba(248, 247, 255, 0.9);
  --scrollbar-thumb:  rgba(124, 58, 237, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary:       #0A0A0F;
    --bg-secondary:     #0F0F1A;
    --bg-tertiary:      #13131F;
    --text-primary:     #F0EEFF;
    --text-secondary:   #C4B5FD;
    --text-muted:       #6B6B8E;
    --accent-1:         #8B5CF6;
    --accent-2:         #7C3AED;
    --accent-3:         #A78BFA;
    --accent-light:     #C4B5FD;
    --accent-cyan:      #818CF8;
    --glass-bg:         rgba(15, 15, 26, 0.72);
    --glass-border:     rgba(139, 92, 246, 0.22);
    --glass-shadow:     0 8px 32px rgba(139, 92, 246, 0.14);
    --card-bg:          rgba(19, 19, 31, 0.82);
    --nav-glass:        rgba(10, 10, 15, 0.88);
    --shadow-glow:      0 0 60px rgba(139, 92, 246, 0.22);
    --progress-bg:      rgba(139, 92, 246, 0.14);
    --timeline-line:    rgba(139, 92, 246, 0.35);
    --input-bg:         rgba(19, 19, 31, 0.9);
    --scrollbar-thumb:  rgba(139, 92, 246, 0.4);
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: none;
  overflow-x: hidden;
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}

::selection { background: var(--accent-1); color: #fff; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.34,1.56,0.64,1),
              height 0.35s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.3s, border-color 0.2s;
  opacity: 0.55;
  will-change: transform;
}

#cursor-ring.hovered {
  width: 58px;
  height: 58px;
  opacity: 0.35;
  border-color: var(--accent-light);
}

/* ============================================================
   CANVAS
   ============================================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#code-rain-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 3rem;
  box-shadow: var(--glass-shadow);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  position: relative;
  z-index: 2;
  cursor: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
  cursor: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-cyan));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-1);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  cursor: none;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent-1); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 3rem 5rem;
}

/* ============================================================
   AURORA HERO
   ============================================================ */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.aurora-orb-1 {
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.45) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation: auroraFloat1 12s ease-in-out infinite;
}

.aurora-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(129,140,248,0.3) 0%, transparent 65%);
  top: 10%; right: -8%;
  animation: auroraFloat2 15s ease-in-out infinite;
}

.aurora-orb-3 {
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.25) 0%, transparent 60%);
  bottom: 5%; left: 30%;
  animation: auroraFloat3 18s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .aurora-orb-1 { opacity: 0.65; }
  .aurora-orb-2 { opacity: 0.45; }
  .aurora-orb-3 { opacity: 0.35; }
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, 30px) scale(1.08); }
  66%       { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-50px, 40px) scale(1.05); }
  70%       { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes auroraFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-40px, -30px) scale(1.06); }
}



.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--glass-border);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2.2rem;
  animation: fadeSlideUp 0.8s ease both;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(3.8rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}

.name-first { display: block; color: var(--text-primary); }

.name-last {
  display: block;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-cyan) 55%, var(--accent-light) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.8s 0.15s ease both, gradientShift 5s ease infinite;
}

.hero-typing {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  margin: 1.8rem 0 1.2rem;
  min-height: 2em;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-1);
  margin-left: 1px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 2.8rem;
  animation: fadeSlideUp 0.8s 0.4s ease both;
}

.hero-tagline strong { color: var(--text-secondary); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideUp 0.8s 0.5s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  background: var(--accent-1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.38);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(124, 58, 237, 0.52);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  background: transparent;
  color: var(--accent-1);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--glass-border);
  cursor: none;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--accent-1);
  background: rgba(124, 58, 237, 0.07);
  transform: translateY(-3px);
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px dashed var(--glass-border);
  cursor: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-cv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-cv:hover {
  border-color: var(--accent-1);
  border-style: solid;
  color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.15);
}

.btn-cv:hover::before { opacity: 1; }
.btn-cv i { font-size: 1rem; }

.hero-socials {
  display: flex;
  gap: 0.9rem;
  animation: fadeSlideUp 0.8s 0.6s ease both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: none;
}

.social-link:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeSlideUp 1s 1.1s ease both;
  z-index: 2;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--glass-border);
  border-radius: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease infinite;
}

/* ============================================================
   SECTIONS — BASE
   ============================================================ */
section {
  padding: 8rem 3rem;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-1);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent-1);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.section-number {
  position: absolute;
  top: 6rem;
  right: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(7rem, 14vw, 16rem);
  color: var(--accent-1);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  cursor: none;
}

.glass-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow: var(--shadow-glow), var(--glass-shadow);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: center;
}

.hex-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hex-outer {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.hex-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-cyan), var(--accent-light), var(--accent-1));
  animation: rotateBorder 4s linear infinite;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  z-index: 0;
}

.hex-inner {
  position: absolute;
  inset: 6px;
  background: var(--bg-secondary);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hex-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hex-placeholder {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.traits-grid {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trait-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s;
  cursor: none;
}

.trait-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
}

.trait-badge i { font-size: 0.75rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.stat-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.3rem 1rem;
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills { background: var(--bg-primary); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  cursor: none;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-1);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-name-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-1);
  flex-shrink: 0;
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.skill-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-1);
  font-weight: 500;
}

.skill-bar-track {
  height: 6px;
  background: var(--progress-bg);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1), var(--accent-cyan));
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 12px;
  height: 12px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-1), 0 0 18px var(--accent-1);
  opacity: 0;
  transition: opacity 0.3s 1.1s;
}

.skill-bar-fill.animated::after { opacity: 1; }

/* ============================================================
   TIMELINE — FORMATIONS & EXPÉRIENCES
   ============================================================ */
#formations { background: var(--bg-secondary); }
#experiences { background: var(--bg-primary); }

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1) 0%, var(--timeline-line) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.95rem;
  top: 1.2rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  animation: pulseDot 2.5s ease infinite;
  z-index: 2;
}

#experiences .timeline-dot { border-color: var(--bg-primary); }

.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  cursor: none;
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-1);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.timeline-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.8rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-1);
}

.tag i { font-size: 0.65rem; }

/* Expandable experiences */
.exp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: none;
}

.exp-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 0.75rem;
  transition: transform 0.3s, background 0.2s;
  flex-shrink: 0;
}

.timeline-card.expanded .exp-toggle-icon {
  transform: rotate(45deg);
  background: var(--accent-1);
  color: #fff;
}

.exp-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-details-inner {
  padding-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 1.2rem;
}

.exp-details-inner p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.exp-details-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   INTERESTS
   ============================================================ */
#interests { background: var(--bg-secondary); }

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.interest-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.2rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.interest-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-1);
}

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

.interest-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1.3rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
  position: relative;
  z-index: 1;
}

.interest-card:hover .interest-icon {
  background: var(--accent-1);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.interest-card:hover .interest-icon i { color: #fff; }

.interest-icon i { color: var(--accent-1); transition: color 0.3s; }

.interest-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.interest-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg-primary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--input-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-input.error,
.form-textarea.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }

.form-input.valid,
.form-textarea.valid { border-color: #10b981; }

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
}

.form-error.show { display: block; }

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent-1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

.form-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--accent-1);
  font-weight: 600;
  font-size: 1.05rem;
}

.form-success i { display: block; font-size: 2.5rem; margin-bottom: 0.8rem; }

/* Contact Info */
.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: none;
}

.contact-item:hover {
  border-color: var(--accent-1);
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.18);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.contact-item:hover .contact-item-icon {
  background: var(--accent-1);
  color: #fff;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-item-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981;
}

.avail-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ============================================================
   PROJETS SCOLAIRES
   ============================================================ */
#projects { background: var(--bg-secondary); }

/* Filtres */
.projects-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: none;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

/* Grille */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* Carte projet */
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, opacity 0.3s;
  cursor: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-1);
}

.project-card.filtered-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

/* Visuel haut de carte */
.project-visual {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(129,140,248,0.08) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(124,58,237,0.2) 0%, transparent 70%);
}

.project-icon-big {
  font-size: 3.2rem;
  color: var(--accent-1);
  opacity: 0.6;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
}

.project-card:hover .project-icon-big {
  transform: scale(1.15) rotate(-5deg);
  opacity: 0.9;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124,58,237,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

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

.project-overlay-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Corps de carte */
.project-body { padding: 1.5rem 1.6rem 1.8rem; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.project-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.project-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-status--wip {
  background: rgba(251,191,36,0.12);
  color: #f59e0b;
  border: 1px solid rgba(251,191,36,0.25);
}

.project-status--done {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.22);
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  background: rgba(124,58,237,0.09);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 6px;
  color: var(--accent-1);
  letter-spacing: 0.04em;
}

/* Carte "Ajout à venir" */
.project-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-style: dashed;
  background: transparent;
}

.project-card--add:hover {
  background: rgba(124,58,237,0.04);
  transform: translateY(-6px) scale(1.02);
}

.project-add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.project-add-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(124,58,237,0.1);
  border: 2px dashed var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-1);
  transition: all 0.3s;
}

.project-card--add:hover .project-add-icon {
  background: var(--accent-1);
  color: #fff;
  border-style: solid;
  border-color: var(--accent-1);
  transform: rotate(90deg);
}

.project-add-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--add { min-height: 160px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer strong { color: var(--accent-1); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hex-wrapper { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 5rem 1.5rem; }
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.7rem 1.5rem; }
  #hero { padding: 6rem 1.5rem 4rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .interests-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .section-number { display: none; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
}

/* Pas de curseur custom sur mobile/touch */
@media (hover: none) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  a, button { cursor: pointer; }
}
