/* TUILES */

@font-face {
  font-family: 'NaomisHand-Regular';
  src: url('fonts/NaomisHand-Regular.ttf') format('truetype');
  font-style: normal;
}

.project-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  border-radius: 10px; /* tu peux remplacer les 4 lignes par celle-ci */
  overflow: hidden; /* pour que l'arrondi masque l'image */
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(148, 169, 136, 0.5); /* vert transparent */
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit; /* garde les coins arrondis */
  padding-left: 20px;
  padding-right: 20px;
}

.project-card:hover img {
  filter: brightness(0.7);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Pour les liens autour des cartes */
.project-card a,
.project-card a:hover {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* SCROLLBAR */

.menu-projets {
  max-height: 696px;         /* hauteur visible */
  overflow-y: auto;          /* active la barre de défilement verticale */
  padding-bottom: 2rem; /* espace en bas pour éviter le tremblement */
  position: relative;    /* pour gérer les éléments enfants */
}

/* Firefox */
* {
  scrollbar-width: thin;              /* barre fine */
  scrollbar-color: #94a988 #f4eee0;   /* thumb / track */
}

.projet {
  min-width: 200px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}


h5 {
  font-family: 'NaomisHand-Regular', sans-serif;
  font-size: 50px;
  line-height: 0.5;
}