/* RESET MINIMAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* PAGE */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.6;
  padding: 30px;
}

/* LAYOUT DES LIGNES */
.row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

/* COLONNES */
.card {
  flex: 1;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* TITRE — hauteur minimale */
.card h2 {
  font-size: 1.0rem;
  padding: 8px 12px;
  background: #222;
  color: white;
  text-align: center;
}

/* IMAGE + OVERLAY */
.img-container {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

/* CONTENEUR DU TEXTE SUR L'IMAGE */
.img-text {
  position: absolute;
  top: 50px;
  left: 15px;
  right: 15px;
  bottom: 15px;          /* laisse un petit espace avant le bouton */


  overflow: hidden;      /* coupe proprement si trop long */
  z-index: 1;
  color: white;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-start; /* texte collé en haut */
  pointer-events: none;

  /* FOND DÉGRADÉ POUR LISIBILITÉ/
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.45) 100%
  );*/
}

/* BOUTON ENTRER — hauteur minimale */
.enter {
  margin-top: auto;
  padding: 10px;
  text-align: center;
}

.enter a {
  display: inline-block;
  padding: 6px 14px;
  background: #0078ff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.enter a:hover {
  background: #005fcc;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .row {
    flex-direction: column;
  }
}
