:root {
  --primary-color: lightgreen;
  --text-color: #000;
}

nav {
  background: var(--primary-color);
  margin-bottom: 25px;
}

.custom-nav {
  text-align: center;
  padding: 40px 0;
  font-weight: 700;
}

section {
  min-height: 100vh;
}

h2 {
  font-family: Montserrat, sans-serif;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

a:hover {
  text-decoration: none;
  color: var(--text-color);
}

.portfolio #portfolio-filters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
}

.portfolio #portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #444444;
  margin: 0 0.5rem;
}

.portfolio #portfolio-filters li:hover,
.portfolio #portfolio-filters li.filter-active {
  color: #4154f1;
}

/* ========================= */
/* Grille portfolio          */
/* ========================= */
.portfolio .portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 colonnes fluides */
  gap: 20px; /* espace entre les cartes */
}

.portfolio .portfolio-item {
  display: flex;
}

.portfolio .portfolio-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  overflow: hidden;
  height: 100%; /* 🔑 toutes les cartes prennent la même hauteur */
}

/* Images gardent leur taille d'origine */
.portfolio .portfolio-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.5s;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.05);
}

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

span {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 25px 0;
  background: var(--primary-color);
  font-family: Montserrat, sans-serif;
}

#kakemono {
  margin-top: 50px;
  margin-bottom: 15px;
}

#logo {
  margin-top: 25px;
}

.uccm {
  width: 90%;
  height: auto;
}

.uccmdeux {
  width: 30%;
  height: auto;
}

.navbar-toggler-icon {
  background-image: url(../images/hamburger.png);
}
