/* Bloc CV */
.bento-item.cv-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  padding: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cv-normal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.cv-normal h2,
.cv-normal .cv-text {
  transition: opacity 0.3s ease;
}

.cv-normal .cv-icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

/* Hover */
.cv-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cv-hover .cv-icon-hover,
.cv-hover .cv-hover-text {
  font-size: 0;
  opacity: 0;
  transition: font-size 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Effets au survol */
.bento-item.cv-block:hover .cv-normal h2,
.bento-item.cv-block:hover .cv-normal .cv-text {
  opacity: 0;
}

.bento-item.cv-block:hover .cv-normal .cv-icon {
  transform: scale(0);
}

.bento-item.cv-block:hover .cv-hover {
  opacity: 1;
}

.bento-item.cv-block:hover .cv-hover .cv-icon-hover {
  font-size: 4rem;
}

.bento-item.cv-block:hover .cv-hover .cv-hover-text {
  font-size: 1rem;
  opacity: 1;
}
