@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* --- En-tête --- */
header {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #cccccc;
}
header .profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 4px solid #333;
}
header .profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
header .btn-contact {
  display: block;
  width: 80px;
  margin: 5px auto 0 auto;
  padding: 2px 10px;
  border-radius: 10px;
  background-color: #444;
  color: #fff;
  transition: all 0.5s;
}
header .btn-contact:hover {
  cursor: pointer;
  background-color: #000;
}
header h1 {
  font-size: 2rem;
}
header p {
  font-size: 1.1rem;
  color: #777;
}

/* --- Grille de projets --- */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.project {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}
.project img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.5s ease;
  z-index: 2;
}
.project .project-info {
  position: absolute;
  line-height: 1;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.project .project-info h2 {
  font-size: 2rem;
  margin-bottom: 2px;
  line-height: 1;
}
.project .project-info p {
  font-size: 0.9rem;
}
.project:hover::before {
  background: rgba(0, 0, 0, 0);
}

/* --- Loader pour les images en lightbox --- */
.img-wrapper {
  position: relative;
  min-height: 200px;
  background: url("images/loader.gif") center center no-repeat;
}
.img-wrapper picture, .img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.img-wrapper.loaded {
  background: none;
}
.img-wrapper.loaded picture, .img-wrapper.loaded img {
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  backdrop-filter: blur(10px);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  padding: 20px;
}
.lightbox.active {
  visibility: visible;
  opacity: 1;
}
.lightbox .lightbox-content {
  background: #fff;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}
.lightbox .lightbox-content .lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #333;
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}
.lightbox .lightbox-content h2 {
  margin-bottom: 15px;
}

/* --- Footer ---*/
footer {
  text-align: center;
  padding: 5px;
  background-color: #fff;
}
footer p a {
  color: #777;
  text-decoration: none;
  transition: all 0.5s;
}
footer p a:hover {
  text-decoration: underline;
  color: #000;
}

/* --- Responsive --- */
@media (min-width: 600px) {
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .portfolio-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*# sourceMappingURL=style.css.map */
