@font-face {
    font-family: "artdeco";
    src: url(font/Monoton-Regular.ttf);
}

@font-face {
    font-family: clement;
    src: url(font/Clement2-Regular.ttf);
}





.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 65%;
  min-width: 500px;
  margin: 0 auto;
  padding: 20px;
  font-family: "helvetica", sans-serif;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "helvetica", bold;
}

.header-left h1 {
  margin: 0;
  font-size: 40px;
  white-space: nowrap;
  font-family: "helvetica", bold;
}

.header-center {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  transition: color 0.3s;
  padding: 10px 18px;
  border-radius: 20px;
}

.nav-links a:not(.contact-btn):hover {
  color: #666666;
  background-color: #f0f0f0;
}

.contact-btn {

  cursor: pointer;
  background-color: rgb(144, 31, 93);
  color: white !important;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

.contact-btn:hover {
  background-color: rgba(144, 31, 93, 0.635);
  color: white;
}

.contact-btn {
  position: relative;
}

.contenu {
    width: 60%;
    min-width: 600px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #000000;
    justify-content: center;
    font-family: "arial", sans-serif;
}

.contenu h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: "arial", sans-serif;
}

/* About / profile styling (no frame) */
.about {
  padding: 0;
  margin-bottom: 12px;
}
.about h1, .about h2 {
  margin: 0 0 10px 0;
}
.about p {
  text-align: justify;
  margin: 0 0 10px 0;
  color: #222222;
}
.about .skills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.skill-badge {
  background: #f3f5fb;
  color: #1f2a63;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Project button styled like skill badge */
.project-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d0d0d0;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 15px;
  width: fit-content;
}

.project-button:hover {
  background: #b8b8b8;
  color: white;
}

.project-button img {
  width: 16px;
  height: 16px;
}
.avatar {
  width: 85px;         
  height: 85px;         
  border-radius: 50%;    
  object-fit: cover; 
  zoom: 1;    
  transition: transform 0.5s;
}
.avatar:hover {
  transform: scale(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gallery img {
  width: auto;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.5s;
}
.gallery img:hover {
  transform: scale(1.05);
}
a {
    text-decoration: none;
}
a:visited {
    color: rgb(27, 27, 61);
}


.main-photo-container {
  display: flex;
  background-color: #f4f4f4;
  border-radius: 16px;
  overflow: hidden;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
    transition: transform 0.3s;
}

.main-photo-container > div:first-child {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.main-photo-container h1 {
  margin: 0 20px 0 0;
  font-size: 2em;
  line-height: 1.3;
}

.main-photo-container p {
  margin: 15px 20px 0 0;
  text-align: justify;
  font-size: 1em;
}

.main-photo {
  width: 280px;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 0;
}

/* Reversed layout: photo left, text right */
.main-photo-container-reversed {
  flex-direction: row-reverse;
}

.main-photo-container-reversed > div:first-child {
  padding: 20px;
}

.main-photo-container-reversed h1 {
  margin: 0 0 0 20px;
}

.main-photo-container-reversed p {
  margin: 15px 0 0 20px;
}

/* Remove scale on hover; use gradient shadow on the wrapper */
.main-photo-container:hover {
  transform: scale(1.02);
}



.lightbox {
  display: none;           /* cachée par défaut */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;

}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox .nav span {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* Carousel styles */
.carousel {
  max-width: 800px;
  margin: 12px auto;
  position: relative;
  display: flex;
  align-items: center;
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  gap: 8px;
  transition: transform 0.35s ease;
}
.carousel-slide {
  flex: 0 0 calc((100% - 16px) / 3);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}
.carousel-btn {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-btn.prev { margin-right: 8px; }
.carousel-btn.next { margin-left: 8px; }

