/* --- Reset & Base --- */
body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", sans-serif; /* Police moderne */
  background-color: #ffffff; /* Fond Blanc */
  color: #121212; /* Texte Noir */
  line-height: 1.6;
}

/* --- Header --- */
header {
  text-align: center;
  padding: 60px 20px 40px;
  background-color: #ffffff;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 600;
  color: #000000;
  letter-spacing: -1px;
}

header .subtitle {
  margin-top: 10px;
  color: #666;
  font-weight: 300;
  font-size: 1.1em;
}

/* --- Layout --- */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive automatique */
  gap: 30px;
  padding: 20px 40px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Card Design --- */
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* Format rectangulaire standard */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Ombre très légère */
  background-color: #f9f9f9;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image */
.card .image-box {
  width: 100%;
  height: 100%;
}

.card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zoom effect on hover */
.card:hover .image-box img {
  transform: scale(1.1);
}

/* --- Overlay (La partie noire au survol) --- */
.overlay {
  position: absolute;
  inset: 0; /* Remplit toute la carte */
  background-color: rgba(0, 0, 0, 0.85); /* Noir semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Invisible par défaut */
  transition: opacity 0.3s ease-in-out;
}

.card:hover .overlay {
  opacity: 1; /* Visible au survol */
}

/* --- Content inside Overlay --- */
.content {
  text-align: center;
  color: #ffffff; /* Texte blanc sur fond noir */
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.card:hover .content {
  transform: translateY(0); /* Petit effet de glissement vers le haut */
}

.card h2 {
  font-size: 1.5em;
  margin: 0 0 10px;
  font-weight: 600;
}

.card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #cccccc; /* Gris clair pour la description */
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.9em;
  transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .container {
    padding: 20px;
    gap: 20px;
  }
  
  header h1 {
    font-size: 2em;
  }
}