@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #68948b, #060b3a);
  color: #e1b29f;
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;   /* très important */


}


/* HEADER */
.site-header {
  position: sticky;
  top: 0; width: 100%;
  background: #60b1b1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 2rem; z-index: 1000;
}

.logo-container { position: relative; }



.profile-pic {
  width: 60px; height: 60px;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s;
}

.site-header.retracted .profile-pic {
  transform: translateY(-10px) translateX(-10px) scale(0.7);
}

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.navbar ul { list-style: none; display: flex; gap: 2rem; }
.navbar a {
  color: #eee; text-decoration: none; font-weight: 600;
  transition: transform 0.2s;
}
.navbar a:hover { transform: scale(1.1); }

/* PRESENTATION */
.presentation {   background: #1f1f1f;
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  max-width: 900px;
  margin: 3rem auto 2rem auto;
  text-align: center; }

.btn-cv {
  display: inline-block; margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background-color: #032330; color: #fff;
  text-decoration: none; border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}
.btn-cv:hover { transform: scale(1.05); background-color: #610a0a; }

/* TIMELINE / PARCOURS */
.parcours { padding: 3rem 2rem; }
.timeline { position: relative; max-width: 900px; margin: auto; }
.timeline-item { padding: 1rem 2rem; position: relative; width: 50%; }
.timeline-item.left { left: 0; } .timeline-item.right { left: 50%; }
.timeline-item::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  background: #006400; border-radius: 50%; top: 15px; z-index: 1;
}
.timeline-item.left::after { right: -10px; } .timeline-item.right::after { left: -10px; }
.timeline-item .year { font-weight: 600; margin-bottom: 0.5rem; }



/* PROJETS */
.projets { padding: 120px 2rem 2rem 2rem; }
.projet-item {
  display: flex; align-items: center; margin-bottom: 3rem;
  opacity: 0; transition: opacity 1s ease, transform 1s ease;
  position: relative; overflow: hidden; border-radius: 12px;
}
.projet-item.left { flex-direction: row; } .projet-item.right { flex-direction: row-reverse; }
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }

.projet-item img {
  width: 100%; max-width: 300px; height: 200px; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 12px; cursor: pointer;
}

.projet-item .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(16, 32, 105, 0.416); color: #0b104e;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.4s ease;
  font-weight: 600; text-align: center; padding: 1rem; border-radius: 12px;
}
.projet-item:hover img { transform: scale(1.08); filter: brightness(0.85); }
.projet-item:hover .overlay { opacity: 1; }

.projet-text { padding: 1rem 2rem; }
.projet-text .btn {
  margin-top: 0.5rem; display: inline-block;
  background: #006400; padding: 0.5rem 1rem; color: #fff; border-radius: 6px; text-decoration: none;
}
.projet-text .btn:hover { transform: scale(1.05); }



/* CONTACT */



.contact { padding: 120px 2rem 2rem ; text-align: center; }
.contact form {
  max-width: 500px; margin: auto; display: flex; flex-direction: column; gap: 1rem;
}

.contact input, .contact textarea {
  padding: 0.7rem; border-radius: 6px; border: none; font-size: 1rem;
}


.contact button {
  padding: 0.7rem; border: none; border-radius: 6px;
  background-color: #006400; color: #fff; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.contact button:hover { transform: scale(1.05); background-color: #106d51; }

.socials { margin-top: 3rem; display: flex; justify-content: center; gap: 1.5rem; }
.socials a { color: #eee; font-size: 1.5rem; transition: transform 0.2s; }
.socials a:hover { transform: scale(1.2); }







/* FOOTER */
.site-footer {
  
  position: relative;
  
  text-align: center;
  padding: 1rem;
  background: #111;
  color: white;
}
/* FADE-IN ON SCROLL */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }





/* =========================== */
/*      GLOBAL STYLES          */
/* =========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #68948b, #060b3a);
  color: #e1b29f;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================== */
/*          HEADER             */
/* =========================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #60b1b1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  z-index: 1000;
}

.logo-container { position: relative; }

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s;
}

.site-header.retracted .profile-pic {
  transform: translateY(-10px) translateX(-10px) scale(0.7);
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.navbar a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.navbar a:hover { transform: scale(1.1); }

/* =========================== */
/*       PRESENTATION          */
/* =========================== */
.presentation {
  background: #1f1f1f;
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  max-width: 900px;
  margin: 3rem auto 2rem auto;
  text-align: center;
}
.presentation h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #eef2f5; }
.presentation p { font-size: 1.2rem; color: #d0d0d0; margin-bottom: 2rem; line-height: 1.6; }

.btn-cv, .btn-projets {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #0a7d64;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cv:hover, .btn-projets:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(10,125,100,0.7);
}

/* =========================== */
/*        COMPETENCES          */
/* =========================== */
.competences {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #2a2a2a;
  border-radius: 15px;
  text-align: center;
}
.competences h2 { color: #eef2f5; margin-bottom: 1rem; }
.competences-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.competences-list span {
  background: #0a7d64;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s;
}
.competences-list span:hover { transform: scale(1.1); }

/* =========================== */
/*          TIMELINE           */
/* =========================== */
.timeline {
  max-width: 900px;
  margin: 3rem auto 4rem auto;
  padding: 2rem;
  background: #1f1f1f;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  margin-bottom: 1.5rem;
  position: relative;
  width: 50%;
}
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item.visible { opacity: 1; transform: translateY(0); }

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #0a7d64;
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}
.timeline-item.left::after { right: -10px; }
.timeline-item.right::after { left: -10px; }

.timeline-item .year {
  font-weight: bold;
  color: #0a7d64;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.timeline-item .content h3 { color: #eef2f5; margin-bottom: 0.3rem; }
.timeline-item .content p { color: #d0d0d0; }

/* =========================== */
/*           PROJETS           */
/* =========================== */
.projets { padding: 120px 2rem 2rem; }
.projet-item {
  display: flex; align-items: center; margin-bottom: 3rem;
  opacity: 0; transition: opacity 1s ease, transform 1s ease;
  position: relative; overflow: hidden; border-radius: 12px;
}
.projet-item.left { flex-direction: row; }
.projet-item.right { flex-direction: row-reverse; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.projet-item img {
  width: 100%; max-width: 300px; height: 200px; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 12px; cursor: pointer;
}

.projet-item .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(16, 32, 105, 0.416);
  color: #0b104e;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.4s ease;
  font-weight: 600; text-align: center; padding: 1rem; border-radius: 12px;
}
.projet-item:hover img { transform: scale(1.08); filter: brightness(0.85); }
.projet-item:hover .overlay { opacity: 1; }

.projet-text { padding: 1rem 2rem; }
.projet-text .btn {
  margin-top: 0.5rem; display: inline-block;
  background: #006400; padding: 0.5rem 1rem; color: #fff; border-radius: 6px; text-decoration: none;
}
.projet-text .btn:hover { transform: scale(1.05); }

/* =========================== */
/*          CONTACT            */
/* =========================== */
.contact { padding: 120px 2rem 2rem; text-align: center; }
.contact form {
  max-width: 500px; margin: auto; display: flex; flex-direction: column; gap: 1rem;
}
.contact input, .contact textarea {
  padding: 0.7rem; border-radius: 6px; border: none; font-size: 1rem;
}
.contact button {
  padding: 0.7rem; border: none; border-radius: 6px;
  background-color: #006400; color: #fff; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.contact button:hover { transform: scale(1.05); background-color: #106d51; }
.socials { margin-top: 3rem; display: flex; justify-content: center; gap: 1.5rem; }
.socials a { color: #eee; font-size: 1.5rem; transition: transform 0.2s; }
.socials a:hover { transform: scale(1.2); }

/* =========================== */
/*          FOOTER             */
/* =========================== */
.site-footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 1.5rem;
}

/* =========================== */
/*         PAGE PROJET          */
/* =========================== */
.project-wrapper {
  background: #301b1b;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(20, 19, 19, 0.4);
}
.project-title { color: #f1f1f1; text-align: center; margin-bottom: 30px; font-size: 2.5rem; }
.project-content { color: #d1d1d1; font-size: 1.1rem; line-height: 1.7; }
.project-main-img { width: 100%; border-radius: 20px; margin-bottom: 25px; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.project-list { margin-bottom: 20px; padding-left: 20px; }
.project-list li { margin-bottom: 8px; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.project-gallery img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.project-gallery img:hover { transform: scale(1.05); }
.downloads {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.downloads .btn {
  padding: 12px 18px;
  background: #ffffff10;
  border: 1px solid #444;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
}
.downloads .btn:hover { background: #ffffff25; }

/* =========================== */
/*        RESPONSIVE           */
/* =========================== */
@media (max-width: 600px) {
  .competences-list { flex-direction: column; align-items: center; }
  .timeline-item { width: 100%; left: 0 !important; }
  .projet-item { flex-direction: column; }
  .project-gallery { grid-template-columns: 1fr; }
}



/* ===== Timeline ===== */
.timeline {
  max-width: 900px;
  margin: 3rem auto 4rem auto;
  padding: 2rem;
  background: #1f1f1f;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  margin-bottom: 1.5rem;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item .year {
  font-weight: bold;
  color: #0a7d64;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.timeline-item .content h3 {
  color: #eef2f5;
  margin-bottom: 0.3rem;
}
.timeline-item .content p {
  color: #d0d0d0;
}

/* Footer */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 1.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .competences-list {
    flex-direction: column;
    align-items: center;
  }
}










/* PRINT CV */
@media print {
  body * { visibility: hidden; }
  .presentation, .btn-cv { visibility: visible; }
  .btn-cv { display: block; margin: 2rem auto; }
}





/*/*


/* ---- Page Projet (Notion Dark) ---- */

.project-wrapper {
  background: #301b1b;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(20, 19, 19, 0.4);
}

.project-title {
  color: #f1f1f1;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.project-content {
  color: #d1d1d1;
  font-size: 1.1rem;
  line-height: 1.7;
}

.project-main-img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.project-list {
  margin-bottom: 20px;
  padding-left: 20px;
}

.project-list li {
  margin-bottom: 8px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.project-gallery img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.downloads {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.downloads .btn {
  padding: 12px 18px;
  background: #ffffff10;
  border: 1px solid #444;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
}

.downloads .btn:hover {
  background: #ffffff25;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: rgba(43, 36, 34, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

/* curseur pour indiquer cliquable */
.project-gallery img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}


.notif {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0a7d64;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 5s ease;
  z-index: 10000;
}

.notif.show {
  opacity: 1;
  pointer-events: auto;
}
