@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&display=swap');

:root {
  --bg: #f9fafb;
  --text: #1f2937;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --card-bg: #ffffff;
  --radius: 1.2rem;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Bebas Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2.5rem 1rem 4rem;
}

main {
  max-width: 1200px;
  margin: auto;
}

h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  text-align: center;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 2.5rem;
  letter-spacing: -1px;
}

/* Grid de cartes centrée */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto 4rem;
  max-width: 1000px;
  justify-content: center;
}

/* Carte */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.95);
}

.card-content {
  padding: 1.6rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h2 {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--text);
}

.card p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: #6b7280;
  flex: 1;
}

.card a {
  align-self: flex-start;
  margin-top: 1.2rem;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.card a:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
  padding-top: 3rem;
}

/* Animation delay pour chaque card */
.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.15s; }
.grid .card:nth-child(3) { animation-delay: 0.25s; }
.grid .card:nth-child(4) { animation-delay: 0.35s; }
.grid .card:nth-child(5) { animation-delay: 0.45s; }
.grid .card:nth-child(6) { animation-delay: 0.55s; }
