/* Style spécial pour la page Projets Arduino */
.niveauprojet {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    font-size: 1.5rem;
    background-color: chartreuse;
    border-radius: 30px;
    padding: 10px;
    color: black;
}

/* Les cartes des projets */
#projets-containerBasic .card,
#projets-containerIntermediaire .card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

#projets-containerBasic .card:hover,
#projets-containerIntermediaire .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Images des cartes */
#projets-containerBasic .card img,
#projets-containerIntermediaire .card img {
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}

/* Boutons navigation */
.navbutton {
    background: linear-gradient(45deg, greenyellow, limegreen);
    font-weight: bold;
    border-radius: 10px;
    margin: 5px;
    padding: 8px 12px;
    transition: 0.3s;
}

.navbutton:hover {
    background: lime;
    transform: scale(1.05);
}

/* Pied de page */
footer {
    height: auto;
    padding: 20px;
    font-size: 0.9rem;
}

/* Titres des sections */
.niveauprojet {
  text-align: center;
  margin: 20px 0;
  font-weight: bold;
  font-size: 1.6rem;
  background: chartreuse;
  border-radius: 30px;
  padding: 10px;
  color: black;
}

/* Cartes projets */
.card {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card img {
  max-width: 500px;
  max-height: 500px;
  margin: 0 auto; /* top/bottom 0, left/right auto */
  object-fit: cover;
}
