* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:       #00ff41;
  --green-dim:   #00b32c;
  --green-dark:  #003b0f;
  --green-glow:  rgba(0, 255, 65, 0.18);
  --bg:          #000000;
}

/* ── Curseur personnalisé ── */
/* * { cursor: none; } */
body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpolygon points='0,0 0,14 3,11 6,16 8,15 5,10 10,10' fill='%2300ff41'/%3E%3C/svg%3E") 0 0, default; }
a    { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpolygon points='0,0 0,16 4,12 7,20 9,19 6,11 12,11' fill='%2300ff41'/%3E%3C/svg%3E") 0 0, pointer; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--green);
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Effet scanlines ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
}

/* ── Phosphore screen flicker ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none;
  animation: flicker 8s infinite;
  background: radial-gradient(ellipse at center,
    transparent 80%,
    rgba(0,0,0,0.2) 100%);
}
@keyframes flicker {
  0%,100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: 0.85; }
  94%      { opacity: 1; }
  96%      { opacity: 0.92; }
  97%      { opacity: 1; }
}

/* ── Wrapper principal ── */
.screen {
  min-height: 100vh;
  padding: 32px 48px 48px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  text-shadow: 0 0 6px var(--green), 0 0 12px rgba(0,255,65,0.4);
}

/* ── Barre de titre DOS ── */
.dos-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--green-dim);
  padding-bottom: 10px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn .1s .2s forwards;
}
.dos-bar .path { color: var(--green-dim); font-size: 13px; letter-spacing: .04em; }
.dos-bar .clock { font-size: 13px; color: var(--green-dim); }

/* ── Bloc BIOS-style header ── */
.bios-header {
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn .1s .4s forwards;
}
.bios-line { color: var(--green-dim); font-size: 13px; margin-bottom: 2px; }
.bios-line.bright { color: var(--green); font-size: 14px; }

/* ── Séparateur ── */
.sep {
  color: var(--green-dim);
  margin: 18px 0;
  letter-spacing: .1em;
  opacity: 0;
  animation: fadeIn .1s .6s forwards;
}

/* ── Prompt principal ── */
.prompt-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeIn .1s .8s forwards;
}
.prompt-sign {
  color: var(--green);
  user-select: none;
  flex-shrink: 0;
  padding-top: 1px;
}

/* ── Zone de texte typewriter ── */
#output {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Curseur clignotant ── */
#cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  margin-left: 1px;
  box-shadow: 0 0 6px var(--green);
  animation: blink .75s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Animation clignotement maintenance ── */
.blinking {
  animation: blink 1s step-end infinite;
}

/* ── Lien hypertexte — même look DOS, juste le curseur change ── */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--green-dim);
}
a:hover {
  background: var(--green);
  color: var(--bg);
  text-shadow: none;
  border-bottom-color: transparent;
}

/* ── Footer DOS ── */
.dos-footer {
  margin-top: 40px;
  border-top: 1px solid var(--green-dark);
  padding-top: 12px;
  color: var(--green-dark);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
}

/* ── Icônes sociales ── */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--green);
  transition: all 0.2s ease;
}
.icon-link::before {
  content: ' ';
  position: static;
  left: auto;
  opacity: 1;
  transition: none;
}
.icon-link svg {
  color: var(--green);
}
.icon-link:hover {
  color: var(--green-glow);
  text-shadow: 0 0 8px var(--green);
}
.icon-link:hover svg {
  color: var(--green-glow);
  filter: drop-shadow(0 0 4px var(--green));
}
.icon-link:hover::before {
  left: auto;
  opacity: 1;
}

/* ── Tux + typewriter layout ── */
.tux-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.tux-art {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.7;
  color: var(--green);
  text-shadow: 0 0 6px var(--green), 0 0 12px rgba(0,255,65,0.4);
  white-space: pre;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn .1s .8s forwards; /* apparaît en même temps que le typewriter */
}
.tux-layout .prompt-line {
  flex: 1;
  min-width: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
