/* --- GLOBAL --- */
:root {
  --bg-dark: #0f1117;
  --bg-panel: #181b22;
  --bg-soft: #22252d;

  --text-main: #f1f1f1;
  --text-soft: #a5a5a5;

  --accent: #4f9cff;
  --accent-soft: rgba(79, 156, 255, 0.12);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
}

/* FX container (Matrix or Snow) */
#fx-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Snowflakes */
.flake {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  filter: blur(1px);
  animation-name: fall;
  animation-timing-function: linear;
}

@keyframes fall {
  to { transform: translateY(110vh); }
}

#fx-container canvas {
  position: absolute;
  top: 0;
  left: 0;
}

/* --- HEADER --- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  padding: 6px 20px;
  background: rgba(24, 27, 34, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bg-soft);
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: auto;
  width: 164px;
  display: block;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--text-main);
  transition: 0.25s;
}
nav a:hover {
  color: var(--accent);
}

/* --- SECTIONS --- */
section {
  padding: 120px 20px 80px;
  max-width: 1100px;
  margin: auto;
}

/* HERO */
#hero {
  text-align: center;
}

.subtitle {
  font-size: 1.3rem;
  margin-top: 40px;
  color: var(--text-soft);
}

/* Buttons */
.btn {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  margin: 10px 10px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  transition: 0.25s;
}
.btn:hover {
  background: #2f81ff;
  transform: translateY(-3px);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: var(--bg-panel);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--bg-soft);
  transition: 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.card-clickable {
  cursor: pointer;
}

.card-clickable:hover {
  border-color: var(--accent);
  background: rgba(79, 156, 255, 0.05);
}

/* NOTES */
.note {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--bg-soft);
  margin-top: 20px;
  color: var(--text-soft);
}
.note:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  color: var(--text-soft);
}
footer:hover {
  color: var(--accent);
}

/* TERMINAL */
/* REAL DARK TERMINAL */
#terminal {
  position: fixed;
  bottom: -350px;
  left: 0;
  width: 100%;
  height: 320px;
  background: #050505; /* noir profond mais pas dur */
  color: #4f9cff;
  font-family: "Consolas", monospace;
  display: flex;
  flex-direction: column;
  transition: 0.35s ease-in-out;
  border-top: 2px solid #4f9cff;
  box-shadow: 0 -8px 25px rgba(0,0,0,0.5);
  z-index: 99999;
}

#terminal.active {
  bottom: 0;
}

/* HEADER */
#terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0a0a;
  padding: 10px 14px;
  border-bottom: 1px solid #222;
}

#terminal-close {
  background: transparent;
  border: none;
  color: #4f9cff;
  font-size: 18px;
  cursor: pointer;
}
#terminal-close:hover {
  color: #7abaff;
}

/* BODY */
#terminal-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

/* INPUT LINE */
#terminal-input-line {
  display: flex;
  align-items: center;
  padding: 8px;
  border-top: 1px solid #222;
  background: #080808;
}

.prompt {
  margin-right: 8px;
  color: #4f9cff;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #4f9cff;
  font-size: 14px;
}
