:root {
  --pink: #5B8CFF;      /* contours, barre de chargement, néons, boutons */
  --base: #000000;      /* fonds (comme avant) */
  --text: #5B8CFF;      /* couleur de l'ECRITURE */
  --glow: 0 0 5px var(--text), 0 0 10px var(--text), 0 0 20px var(--text);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--base);
  color: var(--text);
  font-family: 'Courier New', monospace;
  overflow-x: hidden;
}

/* Scanlines sur toute la page (comme avant, mais globales) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- BOOT ---------- */
#bootScreen {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-size: 2em;
  color: var(--text);
  text-shadow: var(--glow);
  background: var(--base);
  z-index: 50;
  cursor: pointer;
  padding: 20px;
  box-sizing: border-box;
}

.glitch { animation: glitch 1s infinite; }

@keyframes glitch {
  0%,100% { opacity: 1; }
  20% { opacity: 0.85; }
  40% { opacity: 0.9; }
  60% { opacity: 0.8; }
  80% { opacity: 0.9; }
}

#clickMessage {
  margin-top: 20px;
  font-size: 0.5em;
  opacity: 0.8;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,50%,100% { opacity: 0.8; }
  25%,75% { opacity: 0.3; }
}

/* ---------- SITE ---------- */
#site { display: none; padding-bottom: 40px; }

#nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 14px 10px;
  background: rgba(0,0,0,0.92);
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 0 15px var(--pink);
}

#nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  padding: 2px 4px;
}
#nav a:hover { background: var(--pink); color: var(--base); }

#muteBtn {
  background: none;
  border: 1px solid var(--pink);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  padding: 2px 8px;
}
#muteBtn:hover { background: var(--pink); color: var(--base); }

.panel {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px 20px 30px;
  border: 2px solid var(--pink);
  background: rgba(0,0,0,0.8);
  text-align: center;
  box-shadow: 0 0 15px var(--pink);
  position: relative;
  box-sizing: border-box;
}

h1 {
  font-size: 3em;
  text-shadow: var(--glow);
  margin: 10px 0 20px;
}

h2 {
  font-size: 2em;
  text-shadow: var(--glow);
  margin-top: 5px;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.4em;
  text-shadow: 0 0 5px var(--text);
  margin: 0 0 10px;
}

p {
  font-size: 1.2em;
  line-height: 1.5em;
}

.typed { text-shadow: 0 0 5px var(--text); }

/* Liste de compétences */
.skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.skills li {
  border: 1px solid var(--pink);
  padding: 8px 16px;
  text-shadow: 0 0 5px var(--text);
}

/* Projets */
.project {
  border: 1px dashed var(--pink);
  padding: 15px 20px;
  margin: 20px 0;
}
.project p { margin: 8px 0; }
.tags { font-size: 0.95em; opacity: 0.8; }
.note { font-size: 0.85em; opacity: 0.7; margin-top: 0; }

/* Boutons / liens */
.redirection_button {
  display: inline-block;
  margin: 15px auto;
  padding: 15px 30px;
  border: 2px solid var(--pink);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 5px var(--text);
  transition: all 0.3s;
}
.redirection_button:hover {
  background: var(--pink);
  color: var(--base);
  box-shadow: 0 0 15px var(--pink);
}

.text_link {
  color: var(--text);
  font-weight: bold;
  text-shadow: 0 0 5px var(--text);
}
.text_link:hover { background: var(--pink); color: var(--base); }

footer {
  text-align: center;
  opacity: 0.6;
  font-size: 0.9em;
  padding: 0 10px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
  #bootScreen { font-size: 1.4em; }
  h1 { font-size: 2em; }
  h2 { font-size: 1.5em; }
  .panel { margin: 30px 12px; }
  p { font-size: 1.05em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glitch, #clickMessage { animation: none; }
}
