/* Animation fade-in */
.fade-in {
    background-color: white;
    animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* CONTENANT DU MENU */
#contenair {
    width: 100%;
    margin: 0 auto;
    background: rgb(248, 60, 60);
    height: 100px;
    display: block;
}

/* MENU */
header a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 85px;
}
#menu {
    width: 1024px;
    margin: 0 auto;
    height: 100%;
}
#menu-right {
    float: right;
}
.link-right {
    margin-left: 20px;
}

/* IMAGES DU HAUT */
#img-moi {
    border-radius: 250px;
    width: 200px;
    margin-top: 50px;
}

#top {
    width: 100%;
    height: 500px;
    background: rgb(250, 205, 205);
}

#top-contenair {
    width: 1024px;
    margin: 0 auto;
    text-align: center;
}

/* PAGE CV */
#cv-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 120px;
    background: white;
}
#cv-page img {
    width: 900px;
    max-width: 95vw;
    display: block;
}

/* PAGE PROJETS */
#projects {
  width: 1024px;
  margin: 50px auto;
  text-align: center;
}
#projects h2 {
  margin-bottom: 30px;
  font-size: 28px;
  text-transform: uppercase;
  color: #333;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.project-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}

.icon-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #f83c3c;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.project-card:hover .icon-link {
  transform: translate(-50%, -50%) scale(1);
}
.icon-link:hover {
  background: #222;
}
