/* ══════════════════════════════════════════
   PORTFOLIO // CYBERPUNK 2077 EDGERUNNER
   style.css
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── VARIABLES ── */
:root {
  --cyan:       #00f0ff;
  --cyan-glow:  rgba(0, 240, 255, 0.25);
  --cyan-dim:   rgba(0, 240, 255, 0.08);
  --yellow:     #f5e642;
  --yellow-glow:rgba(245, 230, 66, 0.25);
  --yellow-dim: rgba(245, 230, 66, 0.08);
  --red:        #ff003c;
  --bg:         #060608;
  --bg2:        #0a0b0f;
  --surface:    #0e1017;
  --surface2:   #131520;
  --border:     rgba(0, 240, 255, 0.12);
  --border-y:   rgba(245, 230, 66, 0.15);
  --text:       #b0b8c8;
  --text-dim:   #4a5568;
  --heading:    #e8eaf0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
}

/* ── THÈME CLAIR ── */
body.light-mode {
  --cyan:        #0077aa;
  --cyan-glow:   rgba(0, 119, 170, 0.15);
  --cyan-dim:    rgba(0, 119, 170, 0.08);
  --yellow:      #b8860b;
  --yellow-glow: rgba(184, 134, 11, 0.15);
  --yellow-dim:  rgba(184, 134, 11, 0.08);
  --red:         #cc0033;
  --bg:          #f4f6f9;
  --bg2:         #ebeef3;
  --surface:     #ffffff;
  --surface2:    #f0f2f6;
  --border:      rgba(0, 0, 0, 0.1);
  --border-y:    rgba(184, 134, 11, 0.2);
  --text:        #333a45;
  --text-dim:    #7a8494;
  --heading:     #111827;
  cursor: auto;
}

/* Désactiver les effets en mode clair */
body.light-mode .scanlines,
body.light-mode .glitch-overlay,
body.light-mode .cursor-outer,
body.light-mode .cursor-inner,
body.light-mode canvas { display: none !important; }

body.light-mode .hero-bg-grid { opacity: 0.3; }
body.light-mode .hero-bg-lines { display: none; }
body.light-mode .title-accent { text-shadow: none; }
body.light-mode .stat-val { text-shadow: none; }
body.light-mode .cv-icon { text-shadow: none; }
body.light-mode .bar-fill { box-shadow: none; }
body.light-mode .xp-fill { box-shadow: none; }
body.light-mode .status-dot { box-shadow: none; }

/* Fond clair pour les grilles / nav */
body.light-mode nav {
  background: rgba(244, 246, 249, 0.95);
  border-bottom-color: rgba(0,0,0,0.08);
}
body.light-mode footer {
  background: var(--surface2);
}
body.light-mode body::before,
body.light-mode body::after { opacity: 0.05; }

/* Bouton thème */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--bg);
  background: var(--cyan);
  border: none;
  padding: .6rem 1.2rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 20px var(--cyan-glow);
}
.theme-toggle:hover { background: var(--yellow); transform: translateY(-2px); }
.theme-toggle-icon { font-size: .9rem; }

body.light-mode .theme-toggle {
  color: #fff;
  background: #0077aa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
body.light-mode .theme-toggle:hover { background: #005f8a; }

/* ── RESET ── */
*, *::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-body);
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; }

/* ── CUSTOM CURSOR ── */
.cursor-outer {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s ease, width .2s, height .2s, border-color .2s;
  mix-blend-mode: screen;
}
.cursor-inner {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan);
}
body:has(a:hover) .cursor-outer,
body:has(.btn:hover) .cursor-outer {
  width: 48px; height: 48px;
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 500;
}

/* ── GLITCH OVERLAY ── */
.glitch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 600;
  opacity: 0;
}
.glitch-overlay.active {
  animation: glitchFlash .15s steps(1) forwards;
}
@keyframes glitchFlash {
  0%   { opacity: 1; background: rgba(255,0,60,.04); clip-path: inset(20% 0 70% 0); }
  33%  { clip-path: inset(60% 0 10% 0); background: rgba(0,240,255,.04); }
  66%  { clip-path: inset(40% 0 40% 0); background: rgba(245,230,66,.03); }
  100% { opacity: 0; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6,6,8,.9);
  backdrop-filter: blur(16px);
  transition: padding .3s;
}
nav.scrolled { padding: .7rem 3rem; }

.nav-left { display: flex; align-items: center; gap: 1.5rem; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .1em;
  color: var(--heading);
}
.logo-bracket { color: var(--cyan); }
.logo-text { color: var(--yellow); }

.nav-status { display: flex; align-items: center; gap: .4rem; }
.status-dot {
  width: 6px; height: 6px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff88;
  animation: statusBlink 2s infinite;
}
@keyframes statusBlink { 0%,100%{opacity:1} 50%{opacity:.4} }
.status-text {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: #00ff88;
  letter-spacing: .15em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  letter-spacing: .12em;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-time {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}

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

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-lines::before,
.hero-bg-lines::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.hero-bg-lines::before {
  top: 30%;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), var(--cyan), var(--cyan-dim), transparent);
  animation: lineMove 4s ease-in-out infinite alternate;
}
.hero-bg-lines::after {
  top: 70%;
  background: linear-gradient(90deg, transparent, var(--yellow-dim), var(--yellow), var(--yellow-dim), transparent);
  animation: lineMove 4s 1s ease-in-out infinite alternate-reverse;
}
@keyframes lineMove { from{opacity:.3} to{opacity:.8} }

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s ease both;
}
.eyebrow-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--cyan);
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--cyan);
  letter-spacing: .2em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: .95;
  color: var(--heading);
  margin-bottom: 1.5rem;
  animation: fadeUp .8s .1s ease both;
}
.title-accent {
  color: var(--yellow);
  text-shadow: 0 0 30px var(--yellow-glow), 0 0 60px rgba(245,230,66,.15);
}
.title-line {
  display: inline-block;
  position: relative;
}
.title-line.glitching {
  animation: textGlitch .15s steps(2) forwards;
}
@keyframes textGlitch {
  0%   { transform: translate(-2px, 0) skewX(-1deg); color: var(--red); }
  33%  { transform: translate(2px, -1px) skewX(1deg); }
  66%  { transform: translate(-1px, 1px); color: var(--cyan); }
  100% { transform: translate(0); color: inherit; }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  animation: fadeUp .8s .2s ease both;
  letter-spacing: .05em;
}
.subtitle-tag { color: var(--yellow); margin-right: .5rem; }
.type-cursor {
  display: inline-block;
  color: var(--cyan);
  animation: blink .8s steps(1) infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: fadeUp .8s .3s ease both;
}
.text-yellow { color: var(--yellow); }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .8s .4s ease both;
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  padding: .85rem 2rem;
  cursor: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform .3s ease;
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn-primary::before { background: var(--yellow); }
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn-outline::before { background: var(--cyan-dim); transform: translateX(0); opacity: 0; }
.btn-outline:hover { color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }

.btn-full { width: 100%; justify-content: center; }

.btn-glitch { position: relative; }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeUp .8s .5s ease both;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .15em;
  margin-top: .2rem;
}
.stat-divider {
  font-family: var(--font-mono);
  color: var(--border);
  font-size: 1.2rem;
}

/* ── HERO SIDE CARD ── */
.hero-side {
  position: relative;
  z-index: 2;
  margin-left: 4rem;
  animation: fadeUp .8s .6s ease both;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  width: 220px;
  position: relative;
}
.side-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
}
.side-card-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--cyan);
  letter-spacing: .15em;
  margin-bottom: 1rem;
}
.side-card-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
}
.side-card-line span:last-child { color: var(--cyan); min-width: 2.5rem; text-align: right; }
.bar { flex: 1; height: 4px; background: var(--surface2); overflow: hidden; }
.bar-fill {
  height: 100%;
  width: var(--w);
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: barGrow 1.5s ease both;
}
.bar-fill.bar-yellow {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
}
@keyframes barGrow { from{width:0} to{width:var(--w)} }
.side-card-footer {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: #00ff88;
  border-top: 1px solid var(--border);
  padding-top: .8rem;
  margin-top: .8rem;
  letter-spacing: .1em;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .2em;
  animation: fadeUp 1s 1.5s ease both;
}
.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:.5} 50%{transform:scaleY(1.3);opacity:1} }

/* ── SECTIONS COMMON ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}
.section-num {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--surface2);
  line-height: 1;
  user-select: none;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cyan);
  letter-spacing: .2em;
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--heading);
  line-height: 1;
}

/* ── DIVIDER ── */
.divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── SKILLS GRID ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.skill-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0,240,255,.1), 0 0 0 1px var(--border);
}
.skill-card:hover::after { transform: scaleX(1); }

.skill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.skill-icon { font-size: 1.5rem; }
.skill-cat {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  letter-spacing: .15em;
  border: 1px solid var(--border);
  padding: .2rem .6rem;
}
.skill-cat.tag-yellow { color: var(--yellow); }

.skill-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,240,255,.2);
  padding: .2rem .6rem;
}
.tag.tag-yellow {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: rgba(245,230,66,.2);
}

.skill-xp { display: flex; align-items: center; gap: .6rem; }
.xp-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.xp-bar { flex: 1; height: 3px; background: var(--surface2); overflow: hidden; }
.xp-fill {
  height: 100%;
  width: 0;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.xp-fill.xp-yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow-glow); }

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.project-card:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(245,230,66,.08);
}

.card-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--cyan);
  border-style: solid;
}
.card-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.card-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.project-card:hover .card-corner { border-color: var(--yellow); }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-num {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.project-status {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  padding: .15rem .6rem;
  border: 1px solid;
}
.status-done  { color: var(--cyan); border-color: var(--cyan); }
.status-stage { color: var(--yellow); border-color: var(--yellow); }
.status-wip   { color: var(--red); border-color: var(--red); }

.project-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .7rem;
}
.project-desc {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-type {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.project-link {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--cyan);
  letter-spacing: .08em;
  transition: color .2s, letter-spacing .2s;
}
.project-link:hover { color: var(--yellow); letter-spacing: .15em; }

.project-card--featured {
  border-color: rgba(245,230,66,.15);
}
.project-card--featured::before {
  content: '★ FEATURED';
  position: absolute;
  top: .8rem; right: 0;
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid var(--border-y);
  border-right: none;
  padding: .2rem .6rem;
  letter-spacing: .1em;
}
.project-card--wip { opacity: .75; }

/* ── CV SECTION ── */
.cv-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.cv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.cv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--cyan));
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift { 0%{background-position:0%} 100%{background-position:200%} }

.cv-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .15em;
  margin-bottom: 1.5rem;
}
.cv-icon-wrap { margin-bottom: 1rem; }
.cv-icon {
  font-size: 2.5rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}
.cv-title {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--heading);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.cv-desc {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.cv-card-top { margin-bottom: 2rem; }
.cv-card-bottom {}
.cv-meta {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.cv-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
}
.contact-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--yellow);
  letter-spacing: .2em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  transition: color .2s;
}
.contact-item:hover { color: var(--cyan); }
.contact-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--cyan);
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.contact-item:hover .contact-icon {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  position: relative;
  z-index: 1;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 3rem; right: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--yellow), var(--cyan), transparent);
  opacity: .3;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { display: flex; flex-direction: column; gap: .4rem; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: .1em;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .2em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-right { display: none; }
  #hero { flex-direction: column; gap: 3rem; padding: 8rem 1.5rem 4rem; }
  .hero-side { margin-left: 0; }
  .section { padding: 5rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .cv-container { grid-template-columns: 1fr; }
  .section-num { font-size: 4rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3.5rem; }
}

/* ══════════════════════════════════════════
   NOUVELLES SECTIONS — ENTREPRISE / ARTICLES / CONTACT
   ══════════════════════════════════════════ */

/* ── PANEL GÉNÉRIQUE ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
}
.panel .corner-tl,
.panel .corner-br {
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--cyan);
  border-style: solid;
}
.panel .corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.panel .corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.panel-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  letter-spacing: .18em;
  margin-bottom: 1rem;
}

/* ── ENTREPRISE ── */
.entreprise-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.entreprise-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  text-shadow: 0 0 20px var(--yellow-glow);
  margin-bottom: 1rem;
}
.entreprise-desc {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.entreprise-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.infra-item { text-align: center; }
.infra-val {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}
.infra-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .12em;
}

.info-list { display: flex; flex-direction: column; gap: .8rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-key {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .08em;
}
.info-val { font-weight: 600; color: var(--heading); }
.text-cyan { color: var(--cyan) !important; }

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.mission-list li {
  font-size: .9rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
}
.mission-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ── ARTICLES ── */
.articles-intro { margin-bottom: 2rem; }
.articles-info-panel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.articles-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.articles-info-panel p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.article-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.article-meta { display: flex; align-items: center; gap: 1rem; }
.article-num {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.article-date {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
}
.article-status {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  padding: .15rem .6rem;
  border: 1px solid;
}

.article-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .7rem;
}
.article-excerpt {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.article-env {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.env-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-skills { display: flex; flex-wrap: wrap; gap: .4rem; }
.article-btn {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  padding: .35rem .8rem;
  cursor: pointer;
  letter-spacing: .08em;
  transition: background .2s, color .2s;
}
.article-btn:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* Article contenu déplié */
.article-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-section { margin-bottom: 1.2rem; }
.article-section-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--yellow);
  letter-spacing: .12em;
  margin-bottom: .5rem;
}
.article-section p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.article-list {
  list-style: none;
  padding: 0;
}
.article-list li {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  padding: .3rem 0;
  padding-left: 1rem;
  position: relative;
}
.article-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  padding: 1rem;
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--cyan);
  line-height: 1.7;
}
.code-comment { color: var(--text-dim); }

/* Carte "Ajouter un article" */
.article-card--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 200px;
  border-style: dashed;
  border-color: var(--border);
  opacity: .6;
  cursor: default;
}
.article-card--add:hover { border-color: var(--cyan); opacity: 1; transform: none; }
.add-icon {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text-dim);
}
.add-text {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.add-sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
}
.contact-card-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  letter-spacing: .18em;
  margin-bottom: 1rem;
}
.contact-avail {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: .95rem;
}
.contact-card-desc {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.contact-info-list { display: flex; flex-direction: column; gap: .8rem; }
.contact-info-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
}
.contact-info-row a { color: var(--text-dim); transition: color .2s; }
.contact-info-row a:hover { color: var(--cyan); }
.contact-info-icon { color: var(--cyan); width: 16px; text-align: center; }

.contact-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: border-color .3s, transform .3s;
  text-decoration: none;
}
.contact-link-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
}
.clc-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: .4rem;
}
.clc-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .15em;
}
.clc-val {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--heading);
  word-break: break-all;
}

/* ── RESPONSIVE NOUVELLES SECTIONS ── */
@media (max-width: 900px) {
  .entreprise-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-links-grid { grid-template-columns: 1fr 1fr; }
}

/* ── CV SOLO (sans bloc contact) ── */
.cv-solo {
  max-width: 480px;
}

/* ── VEILLE TECHNOLOGIQUE ── */
.veille-intro { margin-bottom: 2rem; }

.veille-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.veille-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.veille-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.veille-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.veille-card:hover::before { transform: scaleX(1); }

.veille-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.veille-topic-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.veille-topic {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--cyan);
  letter-spacing: .15em;
  margin-bottom: .3rem;
}
.veille-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}
.veille-desc {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.veille-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.veille-sources-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
.veille-source-link {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,240,255,.2);
  padding: .15rem .5rem;
  transition: background .2s;
}
.veille-source-link:hover { background: rgba(0,240,255,.15); }

.veille-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.veille-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.veille-date {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
}

/* Sources habituelles */
.veille-sources-panel { margin-top: 0; }
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.source-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.source-item:hover { border-color: var(--yellow); transform: translateY(-2px); }
.source-icon { font-size: 1.2rem; }
.source-name {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--heading);
  font-weight: 600;
}
.source-desc {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .veille-grid { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-solo { max-width: 100%; }
}
