/* Animation d'entrée de la page */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Style général */
body {
  margin: 0;
  padding: 0;
  background: #0f172a;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  animation: fadeIn 1s ease;
}

/* En-tête */
header {
  margin-top: 3rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideDown 1s ease;
}

/* Grille de cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 2rem;
  width: 90%;
  max-width: 1200px;
}

/* Carte individuelle */
.card {
  background: #1e293b;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at top left, rgba(0,255,255,0.1), transparent 70%);
  transform: rotate(45deg);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  background: #334155;
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #38bdf8;
}

.card p {
  font-size: 1rem;
  color: #cbd5e1;
}

/* Bouton Visiter */
.card a {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: #0ea5e9;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.card a:hover {
  background: #0284c7;
}

/* Pied de page */
footer {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #64748b;
}
