@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

body {
  margin: 0;
  font-family: 'Source Code Pro', monospace;
  background-color: #000000; /* noir profond */
  color: #33ff33; /* vert terminal classique */
  overflow-x: hidden;
}

.background {
  display: none; /* pas d'effets de fond pour sobriété */
}

/* === Écran terminal intro === */
.terminal-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  color: #33ff33;
  font-family: 'Source Code Pro', monospace;
  font-size: 1.2rem;
  padding: 2rem;
  white-space: pre-wrap;
  line-height: 1.4;
  overflow-y: auto;
  z-index: 10;
  user-select: none;
}

/* HEADER */
header {
  text-align: center;
  padding: 2.5rem 1rem;
  border-bottom: 1px solid #004400;
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #3399ff; /* bleu doux pour titres */
  letter-spacing: 1.2px;
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid #33ff33; /* curseur vert */
  animation: blink-caret 1.2s steps(1) infinite;
}

@keyframes blink-caret {
  0%, 100% { border-color: #33ff33; }
  50% { border-color: transparent; }
}

.subtitle {
  font-size: 1rem;
  color: #0099cc; /* bleu moins saturé */
  margin-top: 0.5rem;
}

/* NAVIGATION */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem;
  border-top: 1px solid #004400;
  border-bottom: 1px solid #004400;
  background: #000000;
}

nav button {
  background: #000000;
  color: #33ff33;
  border: 1px solid #004400;
  padding: 0.6rem 1.3rem;
  font-size: 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
  font-weight: 600;
}

nav button:hover, nav button:focus {
  background: #004400;
  color: #99ff99;
  outline: none;
}

/* MAIN CONTENT */
main {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 1rem;
}

/* Section content en flex wrap */
.content {
  display: none;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: flex-start;
}

/* Cartes */
.card {
  background: #000000;
  border: 1px solid #004400;
  border-radius: 4px;
  padding: 1.2rem 1rem 1.2rem 1rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #33ff33;
  transition: background 0.2s ease;
}

.card:hover {
  background: #003300;
}

.card .logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: none;
  flex-shrink: 0;
}

.card h3 {
  margin: 0;
  color: #3399ff;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  margin: 0.3rem 0 0;
  color: #33ff33;
  line-height: 1.4;
  font-weight: 400;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: #006600;
  border-top: 1px solid #004400;
  background: #000000;
}

/* Effet sélection */
::selection {
  background: #33ff33;
  color: #000000;
}

/* Modale Terminal */
.terminal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.terminal-window {
  background: #000000;
  border: 2px solid #33ff33;
  border-radius: 6px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px #33ff33aa;
  font-family: 'Source Code Pro', monospace;
  color: #33ff33;
}

.terminal-header {
  background: #003300;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #33ff33;
}

.terminal-header button {
  background: transparent;
  border: none;
  color: #33ff33;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.terminal-output {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 1rem;
  outline: none;
}

.terminal-input-container {
  display: flex;
  padding: 0.5rem 1rem;
  border-top: 1px solid #004400;
  background: #001a00;
  align-items: center;
}

.terminal-prompt {
  margin-right: 0.5rem;
  font-weight: 700;
}

#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #33ff33;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  caret-color: #33ff33;
}
