* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: linear-gradient(130deg, #0f0f0f, #1a1a1a, #111);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  font-family: 'Segoe UI', monospace;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  padding-top: 70px;
}

.container {
  text-align: center;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

h1 {
  font-size: 2rem;
  color: #66f;
  text-shadow: 0 0 6px rgba(102, 102, 255, 0.4);
}

.link {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  background: #3a8df5;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.link:hover {
  background: #2a6ed9;
  transform: scale(1.05);
}

.code-window {
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-align: left;
}

.code-header {
  background: #2c2c2c;
  padding: 10px;
  display: flex;
  align-items: center;
  position: relative;
}

.code-header .dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-header .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #ccc;
}

.code-body {
  background: #1a1a1a;
  padding: 20px;
  font-family: monospace;
  font-size: 14px;
  overflow-x: auto;
  line-height: 1.6;
  color: #eee;
}

.keyword { color: #569CD6; }
.function-name { color: #DCDCAA; }
.string { color: #CE9178; }
.function-call { color: #4EC9B0; }
.comment { color: #6A9955; }

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-accueil {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #70d6ff;
  color: white;
  padding: 10px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accueil:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
