html {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh; /* s'assure que ça couvre toujours la hauteur de l'écran */
  background: linear-gradient(to bottom, #cde4f5, #f8d7e3);
  background-attachment: fixed; /* Empêche le dégradé de se répéter en scroll */
  background-repeat: no-repeat;
  background-size: cover;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}
header {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #add8e6;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
nav ul li a:hover {
  background-color: #ffd1dc; /* Light Pink */
  color: #000;
}
h1 {
  font-size: 3em;
  text-align: center;
  color: #333;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.personality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.trait-card {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #add8e6; /* Light Blue */
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.trait-card:hover {
  transform: translateY(-5px);
  border-color: #ffd1dc; /* Light Pink */
}
.trait-card h2 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 10px;
}
.trait-card p {
  font-size: 1.1em;
  color: #555;
}
footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-top: 2px solid #add8e6;
  color: #555;
}
