/* === STYLE GLOBAL === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0fdf4;
  color: #2e4d2d;
}

header {
  background-color: #2f7030;
  color: white;
  padding: 0.1rem 0.1rem;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

main {
  padding-top: 6rem;
}

.btn-retour {
  position: absolute;
  left: 0.2rem;
  top: 6rem;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-astuces {
  position: fixed;
  right: 1rem;
  top: 18rem;
  background-color: #EE7011;
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 1rem;
  z-index: 1001;
}

/* === GRILLE 2 COLONNES FIXES === */
.plantes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
  gap: 1rem;
  padding: 0.7rem;
}

/* === CARTE INDIVIDUELLE === */
.plante-card {
  background-color: #e0f2e9;
  border: 1px solid #b2d8c3;
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.plante-card:hover {
  transform: translateY(-5px);
}

/* === IMAGE FIXE ET CENTRÉE === */
.plante-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* === TEXTE DANS LES CARTES === */
.plante-card p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.btn {
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 8px;
  display: inline-block;
}

.btn:hover {
  background: #1ebe5d;
}

/* === FOOTER === */
footer {
  background-color: #2f7030;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* === MOBILE : TOUJOURS 2 COLONNES FIXES === */
@media (max-width: 600px) {
  .plantes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plante-image {
    height: 140px;
  }

  .btn-retour {
    top: 4rem;
  }

  .btn-astuces {
    top: 4rem;
  }
}
