/* ---------- Variables ---------- */
:root {
  --bg: #05050d;
  --text: #e8eaff;
  --dim: #8a8fb8;
  --blue: #00c8ff;
  --violet: #8b5cf6;
  --pink: #ff3cac;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  padding-top: var(--header-h); /* compense le header fixe */
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.5;
}

/* ---------- Header : pleine largeur, fixe ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 5, 13, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.22);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(5, 5, 13, 0.94);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.4);
}

/* Rétro : lignes de balayage façon vieil écran CRT */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}
/* Halo qui suit le curseur (--mx / --my mis à jour en JS) */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(139, 92, 246, 0.28), rgba(255, 60, 172, 0.1) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.site-header:hover::after { opacity: 1; }

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.6), inset 0 0 8px rgba(0, 200, 255, 0.35);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 60, 172, 0.7), inset 0 0 10px rgba(255, 60, 172, 0.4);
}
.brand-name {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 0 6px rgba(0, 200, 255, 0.8), 0 0 18px rgba(0, 200, 255, 0.5);
  animation: flicker 2.4s .3s both; /* scintillement néon au chargement */
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .35; }
}

/* ---------- Navigation : une seule ligne ---------- */
.site-nav {
  position: relative;
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.site-nav a {
  position: relative;
  isolation: isolate;
  padding: 10px clamp(8px, 1.1vw, 16px);
  color: var(--dim);
  text-decoration: none;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  transition: color .2s ease, text-shadow .2s ease;
}
/* Halo violet qui suit le curseur sur le lien survolé */
.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70px circle at var(--x, 50%) var(--y, 50%), rgba(139, 92, 246, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity .2s ease;
}
.site-nav a:hover::before { opacity: 1; }

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  text-shadow: 0 0 6px var(--blue), 0 0 16px var(--blue);
}
.site-nav a.active {
  color: #fff;
  text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink);
}

/* Trait néon qui glisse sous le lien survolé / actif */
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  opacity: 0;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  box-shadow: 0 0 10px var(--violet), 0 0 20px var(--pink);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), width .3s ease, opacity .2s ease;
}

/* ---------- Boutons LinkedIn / GitHub ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  --glow: var(--blue);
  --glow-rgb: 0, 200, 255;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  background: rgba(13, 14, 32, 0.8);
  border: 1px solid rgba(138, 143, 184, 0.35);
  transition: transform .15s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.icon-btn.github { --glow: var(--pink); --glow-rgb: 255, 60, 172; }

.icon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60px circle at var(--x, 50%) var(--y, 50%), rgba(var(--glow-rgb), 0.35), transparent 70%);
  opacity: 0;
  transition: opacity .2s ease;
}
.icon-btn:hover::before { opacity: 1; }

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
  color: var(--glow);
  border-color: var(--glow);
  box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.55), inset 0 0 10px rgba(var(--glow-rgb), 0.2);
}

.site-header a:focus-visible,
.nav-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Burger (caché sur grand écran) ---------- */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(13, 14, 32, 0.8);
  border: 1px solid var(--violet);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .icon-btn span { display: none; }   /* icônes seules */
  .icon-btn { padding: 9px 11px; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  .nav-indicator { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(5, 5, 13, 0.97);
    border-bottom: 1px solid rgba(139, 92, 246, 0.55);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(138, 143, 184, 0.15); }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  .nav-indicator { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;            /* pleine largeur de la page */
    justify-self: stretch;  /* annule le justify-self: center du desktop */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    background: rgba(5, 5, 13, 0.97);
    border-bottom: 1px solid rgba(139, 92, 246, 0.55);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0); }

  /* Texte des liens plus grand */
  .site-nav a {
    padding: 18px 4px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(138, 143, 184, 0.15);
  }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 3vw, 40px);
  overflow: hidden;
}
/* Grille rétro en bas de la section */
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  pointer-events: none;
  background:
    linear-gradient(rgba(139, 92, 246, 0.25) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(139, 92, 246, 0.25) 1px, transparent 1px) 0 0 / 44px 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
/* Halo qui suit le curseur */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--hx, 72%) var(--hy, 28%),
              rgba(255, 60, 172, 0.13), rgba(139, 92, 246, 0.08) 45%, transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.prompt {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.95rem;
  color: var(--blue);
  margin: 0 0 16px;
}
.prompt::before { content: "julien@portfolio:~$ "; color: var(--dim); }
.caret {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-title {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.75), 0 0 28px rgba(139, 92, 246, 0.65), 0 0 60px rgba(255, 60, 172, 0.3);
}
.hero-role {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255, 60, 172, 0.6);
  margin: 0 0 22px;
}
.hero-role::before { content: "> "; color: var(--dim); text-shadow: none; }

.hero-lede {
  max-width: 60ch;
  color: #b9bedf;
  font-size: clamp(1rem, 2vw, 1.12rem);
  margin: 0 0 22px;
}

/* Technologies */
.chips {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 6px 10px;
  color: var(--text);
  border: 1px solid rgba(0, 200, 255, 0.4);
  background: rgba(0, 200, 255, 0.06);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chips li:hover {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255, 60, 172, 0.45);
}

/* Boutons */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, color .2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .2s ease;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  color: #05050d;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border: 1px solid transparent;
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.4);
}
.btn-primary::before { background: radial-gradient(90px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.4), transparent 70%); }
.btn-primary:hover { box-shadow: 0 0 26px rgba(0, 200, 255, 0.7), 0 0 46px rgba(139, 92, 246, 0.45); }

.btn-ghost {
  color: var(--text);
  background: rgba(13, 14, 32, 0.6);
  border: 1px solid var(--pink);
  box-shadow: 0 0 12px rgba(255, 60, 172, 0.25), inset 0 0 10px rgba(255, 60, 172, 0.1);
}
.btn-ghost::before { background: radial-gradient(90px circle at var(--x, 50%) var(--y, 50%), rgba(255, 60, 172, 0.35), transparent 70%); }
.btn-ghost:hover { color: #fff; box-shadow: 0 0 22px rgba(255, 60, 172, 0.6), inset 0 0 14px rgba(255, 60, 172, 0.25); }

/* Fenêtre "profil.txt" */
.terminal {
  position: relative;
  isolation: isolate;
  background: rgba(10, 11, 26, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), rgba(139, 92, 246, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}
.terminal:hover::before { opacity: 1; }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--dim);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border: 1.5px solid var(--violet); }
.terminal-body { padding: 20px 18px 22px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 20px; font-size: 0.95rem; }
.kv dt { font-family: 'Space Mono', ui-monospace, monospace; font-size: 0.78rem; color: var(--blue); padding-top: 3px; }
.kv dd { margin: 0; }
.status { display: flex; align-items: center; gap: 8px; }
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.terminal-sub { font-family: 'Space Mono', ui-monospace, monospace; font-size: 0.78rem; color: var(--dim); margin: 0 0 10px; }
.interests { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; line-height: 1.9; color: #c4c8e6; }
.interests li::before { content: "> "; color: var(--blue); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cta-row { flex-direction: column; }
  .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .status::before { animation: none; }
}

/* ---------- Sections de test (à supprimer) ---------- */
.demo {
  min-height: 100vh;
  display: grid;
  place-items: center;
  border-bottom: 1px dashed rgba(139, 92, 246, 0.3);
}
.demo h2 { font-family: 'Space Mono', monospace; margin: 0; }

/* ---------- Photo de profil ---------- */
.profile-head {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}
.profile-head .kv { margin: 0; }

.avatar {
  --zoom: 1.35;   /* niveau de zoom */
  --dx: 0%;       /* déplacement horizontal : + = vers la droite, - = vers la gauche */
  --dy: -15%;     /* déplacement vertical : + = vers le bas, - = vers le haut */
  position: relative;
  margin: 7px;
  width: 132px;
  height: 132px;
}

/* Cadre néon : il découpe ce qui dépasse de l'image zoomée */
.avatar-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid var(--blue);
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.55), 0 0 30px rgba(139, 92, 246, 0.35);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translate(var(--dx), var(--dy)) scale(var(--zoom));
  transform-origin: center;
}

/* Coins de visée roses autour de la photo */
.avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
  --c: var(--pink);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 14px no-repeat;
  filter: drop-shadow(0 0 4px var(--pink));
  transition: inset .25s ease;
}

/* Au survol de la fenêtre : les coins s'écartent et le cadre passe en rose */
.terminal:hover .avatar::before { inset: -11px; }
.terminal:hover .avatar-frame {
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 60, 172, 0.55), 0 0 34px rgba(139, 92, 246, 0.35);
}

@media (max-width: 520px) {
  .profile-head { grid-template-columns: 1fr; gap: 16px; }
  .avatar { width: 160px; height: 160px; }
}

/* ---------- Structure commune des sections ---------- */
.section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) clamp(16px, 3vw, 40px);
}
/* Filet néon en haut de chaque section */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--pink), transparent);
  box-shadow: 0 0 14px var(--violet);
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: clamp(28px, 5vw, 52px); }
.section-head .prompt { margin-bottom: 12px; }
.section-title {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.7), 0 0 26px rgba(139, 92, 246, 0.55);
}
.section-lede {
  max-width: 62ch;
  margin: 0;
  color: #b9bedf;
  font-size: clamp(1rem, 2vw, 1.12rem);
}

/* ---------- Compétences ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.skill-card:nth-child(1) { grid-column: span 7; }
.skill-card:nth-child(2) { grid-column: span 5; }
.skill-card:nth-child(3) { grid-column: span 4; }
.skill-card:nth-child(4) { grid-column: span 8; }

.skill-card {
  position: relative;
  isolation: isolate;
  background: rgba(10, 11, 26, 0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* Halo qui suit le curseur */
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-rgb), 0.2), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.32);
}

.card-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
}
.card-dots { display: flex; gap: 6px; }
.card-dots span { width: 10px; height: 10px; border: 1.5px solid var(--accent); }
.card-bar h3 {
  margin: 0;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
}
.card-file {
  margin-left: auto;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--dim);
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45), inset 0 0 10px rgba(var(--accent-rgb), 0.15);
}
.tile-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-shadow: 0 0 8px var(--accent);
}
.tile-text { min-width: 0; line-height: 1.35; }
.tile-name { display: block; font-weight: 700; font-size: 0.98rem; }
.tile-sub {
  display: block;
  margin-top: 2px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--dim);
}

/* Apparition au scroll (uniquement si JavaScript est actif) */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}
.reveal.in .tile {
  animation: tile-in .45s ease backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 250ms);
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 900px) {
  .skills-grid > .skill-card { grid-column: 1 / -1; }
}

/* =========================================================
   EXPÉRIENCES
========================================================= */

.experience-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.experience-list::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 7px;
  width: 1px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(var(--accent-rgb), .4),
      rgba(139, 92, 246, .35),
      transparent
    );
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 1.25rem;
}

.experience-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.experience-marker span {
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 10px rgba(var(--accent-rgb), .7),
    0 0 25px rgba(var(--accent-rgb), .25);
}

.experience-content {
  position: relative;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), .055),
      rgba(255,255,255,.015)
    );
  overflow: hidden;
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.experience-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      400px circle at 0% 0%,
      rgba(var(--accent-rgb), .12),
      transparent 60%
    );
  opacity: .7;
}

.experience-content:hover {
  transform: translateX(6px);
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 0 35px rgba(var(--accent-rgb), .08);
}

.experience-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.experience-type,
.experience-card h3,
.experience-company,
.experience-description,
.experience-tags {
  position: relative;
  z-index: 1;
}

.experience-type {
  margin: 0 0 .45rem;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text);
}

.experience-date {
  flex-shrink: 0;
  padding: .35rem .65rem;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: 999px;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: .65rem;
  letter-spacing: .08em;
}

.experience-company {
  margin: .5rem 0 1rem;
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .75rem;
}

.experience-description {
  max-width: 800px;
  margin: 0;
  color: var(--dim);
  line-height: 1.75;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.experience-tags span,
.project-stack span,
.veille-tags span {
  padding: .35rem .65rem;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .05);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: .65rem;
}


/* =========================================================
   PROJETS
========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  min-width: 0;
}

.project-featured {
  grid-column: span 2;
}

.project-window {
  height: 100%;
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: 14px;
  background: rgba(255,255,255,.015);
  overflow: hidden;
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.project-window:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), .55);
  box-shadow:
    0 15px 50px rgba(0,0,0,.3),
    0 0 35px rgba(var(--accent-rgb), .08);
}

.project-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 42px;
  padding: 0 .9rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), .15);
  background: rgba(0,0,0,.2);
}

.project-bar .card-dots {
  flex-shrink: 0;
}

.project-file {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-status {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: .65rem;
}

.project-body {
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.project-body::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -100px;
  bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), .1),
    transparent 70%
  );
  pointer-events: none;
}

.project-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: rgba(var(--accent-rgb), .15);
  font-family: "Space Mono", monospace;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.project-type {
  position: relative;
  margin: 0 0 .5rem;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  letter-spacing: .12em;
}

.project-body h3 {
  position: relative;
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.project-description {
  position: relative;
  max-width: 800px;
  margin: 0;
  color: var(--dim);
  line-height: 1.75;
}

.project-stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.project-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.project-path {
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: .65rem;
}

.project-link {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  text-decoration: none;
  transition: text-shadow .2s ease;
}

.project-link:hover {
  text-shadow: 0 0 12px rgba(var(--accent-rgb), .8);
}

.project-link-disabled {
  cursor: default;
  opacity: .65;
}


/* =========================================================
   VEILLE
========================================================= */

.veille-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.veille-terminal {
  min-width: 0;
  border: 1px solid rgba(0, 200, 255, .18);
  border-radius: 14px;
  background: rgba(0,0,0,.2);
  overflow: hidden;
}

.veille-terminal-body {
  padding: 1.5rem;
}

.terminal-line {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  line-height: 1.7;
}

.terminal-prompt {
  color: var(--blue);
}

.terminal-symbol {
  color: var(--violet);
}

.terminal-path {
  color: var(--pink);
}

.veille-markdown {
  color: var(--dim);
  line-height: 1.8;
}

.veille-markdown p {
  margin: 0 0 1rem;
}

.veille-markdown .markdown-comment {
  color: var(--blue);
  font-family: "Space Mono", monospace;
}

.veille-markdown ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

.veille-markdown li::marker {
  color: var(--violet);
}

.veille-topics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.veille-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 12px;
  background: rgba(255,255,255,.015);
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.veille-card:hover {
  transform: translateX(5px);
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), .07);
}

.veille-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(var(--accent-rgb), .3);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), .06);
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  box-shadow: inset 0 0 20px rgba(var(--accent-rgb), .04);
}

.veille-card-number {
  margin: 0 0 .3rem;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: .65rem;
  letter-spacing: .1em;
}

.veille-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
}

.veille-card p:not(.veille-card-number) {
  margin: 0;
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.65;
}

.veille-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .9rem;
}

.veille-tags span {
  font-size: .58rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-column: span 1;
  }

  .veille-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .experience-card {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: .75rem;
  }

  .experience-content {
    padding: 1.15rem;
  }

  .experience-top {
    flex-direction: column;
  }

  .experience-date {
    align-self: flex-start;
  }

  .project-body {
    padding: 1.35rem;
  }

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .veille-card {
    grid-template-columns: 1fr;
  }

  .veille-card-icon {
    width: 48px;
    height: 48px;
  }

}

/* =========================================================
   VEILLE
========================================================= */

.veille-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.veille-terminal {
  min-width: 0;
  border: 1px solid rgba(0, 200, 255, .18);
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
  overflow: hidden;
  transition:
    border-color .3s ease,
    box-shadow .3s ease;
}

.veille-terminal:hover {
  border-color: rgba(0, 200, 255, .4);
  box-shadow: 0 0 35px rgba(0, 200, 255, .06);
}

.veille-terminal-body {
  padding: 1.5rem;
}

.terminal-line {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  line-height: 1.7;
}

.terminal-prompt {
  color: var(--blue);
}

.terminal-symbol {
  color: var(--violet);
}

.terminal-path {
  color: var(--pink);
}

.veille-markdown {
  color: var(--dim);
  line-height: 1.8;
}

.veille-markdown p {
  margin: 0 0 1rem;
}

.veille-markdown .markdown-comment {
  color: var(--blue);
  font-family: "Space Mono", monospace;
}

.veille-markdown ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

.veille-markdown li {
  margin-bottom: .35rem;
}

.veille-markdown li::marker {
  color: var(--violet);
}


/* ---------------------------------------------------------
   Fichiers de veille
--------------------------------------------------------- */

.veille-files {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.veille-file-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .015);
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.veille-file-card:hover {
  transform: translateX(5px);
  border-color: rgba(139, 92, 246, .45);
  box-shadow: 0 0 30px rgba(139, 92, 246, .07);
}

.veille-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;

  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 10px;

  background: rgba(139, 92, 246, .06);

  color: var(--violet);

  font-family: "Space Mono", monospace;
  font-size: .75rem;
}

.veille-file-type {
  margin: 0 0 .3rem;

  color: var(--violet);

  font-family: "Space Mono", monospace;
  font-size: .62rem;
  letter-spacing: .1em;
}

.veille-file-content h3 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
}

.veille-file-content p {
  margin: 0;
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.65;
}

.veille-file-status {
  display: inline-block;
  margin-top: .9rem;

  color: var(--dim);

  font-family: "Space Mono", monospace;
  font-size: .6rem;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {

  .veille-dashboard {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .veille-file-card {
    grid-template-columns: 1fr;
  }

  .veille-file-icon {
    width: 48px;
    height: 48px;
  }

}

/* =========================================================
   VEILLE — DOCUMENTS
========================================================= */

.veille-documents {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.veille-document {
  overflow: hidden;

  border: 1px solid rgba(0, 200, 255, .18);
  border-radius: 14px;

  background: rgba(255, 255, 255, .015);

  transition:
    border-color .3s ease,
    box-shadow .3s ease;
}

.veille-document:hover {
  border-color: rgba(0, 200, 255, .4);

  box-shadow:
    0 0 40px rgba(0, 200, 255, .06);
}


/* ---------------------------------------------------------
   En-tête du document
--------------------------------------------------------- */

.veille-document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 1rem 1.25rem;

  border-bottom: 1px solid rgba(255, 255, 255, .06);

  background: rgba(0, 0, 0, .2);
}

.veille-document-title {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.veille-document-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(0, 200, 255, .2);
  border-radius: 8px;

  background: rgba(0, 200, 255, .04);

  font-size: 1.1rem;
}

.veille-document-type {
  margin: 0 0 .25rem;

  color: var(--blue);

  font-family: "Space Mono", monospace;
  font-size: .6rem;
  letter-spacing: .1em;
}

.veille-document-title h3 {
  margin: 0;

  color: var(--text);

  font-size: 1rem;
}

.veille-document-path {
  color: var(--dim);

  font-family: "Space Mono", monospace;
  font-size: .62rem;
}


/* ---------------------------------------------------------
   IFRAME
--------------------------------------------------------- */

.veille-frame {
  position: relative;

  width: 100%;
  height: 650px;

  background: #fff;
}

.veille-frame iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}


/* Excel un peu plus grand */

.veille-excel {
  height: 750px;
}


/* ---------------------------------------------------------
   Footer document
--------------------------------------------------------- */

.veille-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: .8rem 1.25rem;

  border-top: 1px solid rgba(255, 255, 255, .06);

  color: var(--dim);

  font-family: "Space Mono", monospace;
  font-size: .6rem;
}

.veille-document-footer a {
  color: var(--blue);

  text-decoration: none;

  transition:
    color .2s ease,
    text-shadow .2s ease;
}

.veille-document-footer a:hover {
  color: var(--text);

  text-shadow:
    0 0 12px rgba(0, 200, 255, .7);
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 700px) {

  .veille-document-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .veille-document-path {
    font-size: .55rem;
  }

  .veille-frame {
    height: 500px;
  }

  .veille-excel {
    height: 600px;
  }

  .veille-document-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* =========================================================
   CONTACT
========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 1.5rem;
  margin-top: 3rem;
}


/* ---------------------------------------------------------
   Terminal principal
--------------------------------------------------------- */

.contact-terminal {
  min-width: 0;

  border: 1px solid rgba(0, 200, 255, .2);
  border-radius: 14px;

  background: rgba(255, 255, 255, .015);

  overflow: hidden;

  transition:
    border-color .3s ease,
    box-shadow .3s ease;
}

.contact-terminal:hover {
  border-color: rgba(0, 200, 255, .45);

  box-shadow:
    0 0 40px rgba(0, 200, 255, .07);
}

.contact-terminal-body {
  padding: 1.75rem;
}

.contact-command {
  margin: 0 0 2rem;

  color: var(--text);

  font-family: "Space Mono", monospace;
  font-size: .7rem;
  line-height: 1.7;
}

.contact-prompt {
  color: var(--blue);
}

.contact-symbol {
  color: var(--violet);
}

.contact-path {
  color: var(--pink);
}


/* ---------------------------------------------------------
   Introduction
--------------------------------------------------------- */

.contact-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  margin-bottom: 2rem;
}

.contact-status-dot {
  flex-shrink: 0;

  width: 11px;
  height: 11px;

  margin-top: .5rem;

  border-radius: 50%;

  background: #42ff9e;

  box-shadow:
    0 0 8px rgba(66, 255, 158, .8),
    0 0 20px rgba(66, 255, 158, .3);
}

.contact-status {
  display: block;

  margin-bottom: .5rem;

  color: #42ff9e;

  font-family: "Space Mono", monospace;
  font-size: .65rem;
  letter-spacing: .1em;
}

.contact-intro h3 {
  margin: 0 0 .75rem;

  font-size: clamp(1.4rem, 3vw, 2rem);
}

.contact-intro p {
  max-width: 650px;

  margin: 0;

  color: var(--dim);

  line-height: 1.75;
}


/* ---------------------------------------------------------
   Email
--------------------------------------------------------- */

.contact-email {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1.1rem;

  border: 1px solid rgba(0, 200, 255, .18);
  border-radius: 9px;

  background: rgba(0, 200, 255, .035);

  color: var(--text);
  text-decoration: none;

  transition:
    border-color .25s ease,
    background .25s ease,
    transform .25s ease;
}

.contact-email:hover {
  transform: translateY(-2px);

  border-color: rgba(0, 200, 255, .5);

  background: rgba(0, 200, 255, .07);
}

.contact-email-label {
  color: var(--blue);

  font-family: "Space Mono", monospace;
  font-size: .62rem;
}

.contact-email-value {
  min-width: 0;

  overflow: hidden;

  color: var(--text);

  font-family: "Space Mono", monospace;
  font-size: .75rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  color: var(--blue);
  font-size: 1rem;
}


/* ---------------------------------------------------------
   Cartes informations
--------------------------------------------------------- */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  position: relative;

  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 1rem;

  padding: 1.25rem;

  border: 1px solid rgba(139, 92, 246, .17);
  border-radius: 12px;

  background: rgba(255, 255, 255, .015);

  overflow: hidden;

  transition:
    transform .3s ease,
    border-color .3s ease;
}

.contact-info-card:hover {
  transform: translateX(5px);

  border-color: rgba(139, 92, 246, .4);
}

.contact-info-number {
  color: rgba(139, 92, 246, .5);

  font-family: "Space Mono", monospace;
  font-size: .7rem;
}

.contact-info-label {
  margin: 0 0 .3rem;

  color: var(--violet);

  font-family: "Space Mono", monospace;
  font-size: .62rem;
  letter-spacing: .1em;
}

.contact-info-card h3 {
  margin: 0 0 .35rem;

  font-size: 1rem;
}

.contact-info-card p:not(.contact-info-label) {
  margin: 0;

  color: var(--dim);

  font-size: .85rem;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   Réseaux
--------------------------------------------------------- */

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  padding: .5rem .7rem;

  border: 1px solid rgba(139, 92, 246, .2);
  border-radius: 6px;

  color: var(--text);

  font-family: "Space Mono", monospace;
  font-size: .65rem;

  text-decoration: none;

  transition:
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.contact-socials a:hover {
  border-color: rgba(139, 92, 246, .5);

  background: rgba(139, 92, 246, .07);

  color: var(--violet);
}

.contact-socials a span {
  color: var(--violet);
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {

  .contact-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .contact-terminal-body {
    padding: 1.25rem;
  }

  .contact-email {
    grid-template-columns: 1fr auto;
  }

  .contact-email-label {
    display: none;
  }

  .contact-email-value {
    font-size: .68rem;
  }

}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: stretch;
}

.contact-terminal,
.contact-map {
    min-width: 0;
}

.contact-terminal-content {
    padding: 28px;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;

    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--blue);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow:
        0 0 8px var(--blue),
        0 0 16px rgba(0, 200, 255, 0.5);
}

.contact-intro {
    margin: 0 0 24px;
    color: var(--dim);
    line-height: 1.7;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 30px;

    color: var(--text);
    text-decoration: none;

    font-family: "Space Mono", monospace;
    font-size: 0.9rem;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.contact-email span {
    color: var(--blue);
}

.contact-email:hover {
    color: var(--blue);
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.45);
}

.contact-info {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding-bottom: 14px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.14);
}

.contact-label {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-info-item > span:last-child {
    color: var(--text);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social {
    display: inline-flex;
    align-items: center;

    padding: 10px 14px;

    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;

    color: var(--text);
    text-decoration: none;

    font-family: "Space Mono", monospace;
    font-size: 0.75rem;

    background: rgba(139, 92, 246, 0.04);

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-social:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(0, 200, 255, 0.05);
    transform: translateY(-2px);
}


/* =========================================================
   CARTE
   ========================================================= */

.contact-map {
    overflow: hidden;
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 430px;
    background: #080812;
    overflow: hidden;
}

.map-container iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 430px;

    border: 0;

    filter:
        grayscale(100%)
        invert(92%)
        hue-rotate(180deg)
        brightness(0.72)
        contrast(1.15);
}

.map-overlay {
    position: absolute;
    top: 16px;
    left: 16px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 10px 13px;

    background: rgba(5, 5, 13, 0.88);
    border: 1px solid rgba(0, 200, 255, 0.3);

    backdrop-filter: blur(8px);

    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.05em;

    color: var(--text);
}

.map-status {
    color: var(--blue);
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;

    border-top: 1px solid rgba(139, 92, 246, 0.2);

    font-family: "Space Mono", monospace;
    font-size: 0.68rem;

    color: var(--dim);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .map-container,
    .map-container iframe {
        min-height: 360px;
    }

}

@media (max-width: 600px) {

    .contact-terminal-content {
        padding: 20px;
    }

    .map-container,
    .map-container iframe {
        min-height: 300px;
    }

    .map-overlay {
        top: 10px;
        left: 10px;
    }

    .map-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

}

.contact-social.linkedin {
    border-color: rgba(0, 170, 255, 0.35);
    background: rgba(0, 170, 255, 0.05);
    color: #7fd9ff;
}

.contact-social.linkedin:hover {
    border-color: #00c8ff;

    background: rgba(0, 200, 255, 0.12);

    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.25);

    color: #ffffff;
}

.contact-social.github {
    border-color: rgba(255, 60, 172, 0.35);
    background: rgba(255, 60, 172, 0.05);
    color: #ff8bc7;
}

.contact-social.github:hover {
    border-color: #ff3cac;

    background: rgba(255, 60, 172, 0.12);

    box-shadow:
        0 0 20px rgba(255, 60, 172, 0.25);

    color: #ffffff;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    position: relative;

    margin-top: 80px;

    border-top: 1px solid rgba(139, 92, 246, 0.22);

    background:
        linear-gradient(
            180deg,
            rgba(139, 92, 246, 0.035),
            rgba(5, 5, 13, 0.9)
        );

    overflow: hidden;
}

/* Ligne lumineuse supérieure */

.site-footer::before {
    content: "";

    position: absolute;
    top: -1px;
    left: 50%;

    width: min(600px, 70%);
    height: 1px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        transparent,
        var(--blue),
        var(--violet),
        var(--pink),
        transparent
    );

    box-shadow:
        0 0 12px rgba(0, 200, 255, 0.35),
        0 0 20px rgba(139, 92, 246, 0.25);
}

.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;

    padding: 32px 0 24px;
}

/* Ligne terminal */

.footer-terminal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 28px;

    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
}

.footer-prompt {
    color: var(--blue);
}

.footer-separator,
.footer-symbol {
    color: var(--dim);
}

.footer-path {
    color: var(--violet);
}

.footer-command {
    color: var(--text);
}

/* Petit curseur */

.footer-command::after {
    content: "█";

    display: inline-block;
    margin-left: 7px;

    color: var(--blue);

    animation: footerCursor 1s steps(1) infinite;
}

@keyframes footerCursor {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

/* Informations du bas */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid rgba(139, 92, 246, 0.12);

    font-family: "Space Mono", monospace;
    font-size: 0.65rem;

    color: var(--dim);
}

.footer-updated {
    color: rgba(138, 143, 184, 0.75);
}

/* Responsive */

@media (max-width: 600px) {

    .site-footer {
        margin-top: 55px;
    }

    .footer-inner {
        width: min(100% - 30px, 1200px);
        padding: 26px 0 20px;
    }

    .footer-terminal {
        line-height: 1.7;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

        line-height: 1.6;
    }

}