/* ========================================
   BASE
======================================== */
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  overflow-x: hidden;
}

/* ========================================
   STRUCTURE GÉNÉRALE
======================================== */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
}

main {
  flex: 1;
}

footer {
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #f2f2f2;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  font-family: 'Poppins', sans-serif;
}

.nav-links a {
  text-decoration: none;
  color: #f2f2f2;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #ededed;
  color: #131313;
}

.nav-links a.active {
  border: 2px solid #00aaff;
  border-radius: 8px;
  padding: 8px 13px;
  background-color: rgba(0, 170, 255, 0.1);
}

/* ========================================
   DROPDOWN (non utilisé ici)
======================================== */
.dropdown {
  position: relative;
}

.dropdown a {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f2f2f2;
  border: 1px solid #262626;
  border-radius: 5px;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 100;
}

.dropdown-menu li {
  padding: 5px 20px;
}

.dropdown-menu li a {
  color: #262626;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #262626;
  color: white;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ========================================
   FOOTER
======================================== */
.footer p {
  color: #f2f2f2;
  padding: 20px 0;
  text-align: center;
  font-family: Arial, sans-serif;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: auto;
}

/* ========================================
   TEXTE PRINCIPAL
======================================== */
.text {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: bold;
  font-family: sans-serif;
  color: #f2f2f2;
  margin-left: 20px;
  line-height: 1.8;
  flex: 1;
}

cite p {
  font-style: italic;
}

/* ========================================
   CONTENU (Image + texte)
======================================== */
.content-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 30px;
}

/* ========================================
   LOGO EN HAUT
======================================== */
.logo-top {
  display: flex;
  justify-content: left;
  margin-bottom: 20px;
}

.logo-top img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ========================================
   SECTION HOME
======================================== */
main h1 {
  font-size: 30px;
  font-weight: bold;
  color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
  margin: 20px;
}

.logo-image {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 80%;
  height: auto;
}

.home-text p {
  font-size: 14px;
  font-weight: bold;
  color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  margin: 10px 20px;
}

/* ========================================
   SECTION CONTACT
======================================== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 150px 0;
  padding: 0 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  max-width: 400px;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
  color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
}

.contact-card:hover {
  transform: scale(1.03);
  background-color: rgba(255, 255, 255, 0.1);
}

.contact-card img {
  width: 40px;
  height: 40px;
}

.contact-card span {
  font-size: 18px;
  font-weight: bold;
}

.contact-intro {
  max-width: 700px;
  margin: 50px auto 40px;
  text-align: center;
  line-height: 1.6;
  font-family: sans-serif;
  padding: 0 15px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: bold;
  color: #f2f2f2;
}

.location,
.availability {
  margin: auto;
  text-align: center;
  font-size: 16px;
  color: #aaa;
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
}

/* ========================================
   RÉSEAUX SOCIAUX
======================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1000px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .navbar .logo {
    font-size: 36px;
    margin-left: 30px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 15px;
    margin-left: -20px;
    box-sizing: border-box;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a1f24;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .nav-links li a:hover {
    background-color: #2a2f35;
    color: #ffffff;
  }

  .nav-links a {
    font-size: 24px;
  }

  h1 {
    font-size: 45px;
  }

  p {
    font-size: 21px;
  }

  .content-container {
    flex-direction: column;
    text-align: left;
  }

  .text,
  .image-container {
    width: 100%;
    margin-left: 0;
  }

  .footer p {
    font-size: 15px;
  }

  main h1 {
    font-size: 45px;
    text-align: center;
  }

  .home-text p {
    font-size: 21px;
    text-align: left;
  }

  .logo-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .video-wrapper {
    gap: 10px;
  }

  .video-wrapper video {
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  .about-container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }
}


/* ========================================
   PORTFOLIO
======================================== */

h2 {
  text-align: center;
  margin: 60px 0 50px;
  font-size: 46px;
  font-weight: bold;
  color: #f2f2f2;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.section {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.stack {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 400px;
  margin: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.stack.expanded {
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  gap: 20px;
  justify-content: center;
  cursor: default;
}

.stack img {
  position: absolute;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 1;
}

.stack.expanded img {
  position: relative;
  width: 250px;
  height: auto;
  z-index: 0;
}

/* Effet de superposition */
.stack img:nth-child(1) { transform: rotate(-7deg); z-index: 1; }
.stack img:nth-child(2) { transform: rotate(7deg); z-index: 2; }
.stack img:nth-child(3) { transform: rotate(-2deg); z-index: 3; }
.stack img:nth-child(4) { transform: rotate(2deg); z-index: 4; }
.stack img:nth-child(5) { transform: rotate(-7deg); z-index: 5; }
.stack img:nth-child(6) { transform: rotate(7deg); z-index: 6; }
.stack img:nth-child(7) { transform: rotate(-2deg); z-index: 7; }
.stack img:nth-child(8) { transform: rotate(2deg); z-index: 8; }
.stack img:nth-child(9) { transform: rotate(-7deg); z-index: 9; }
.stack img:nth-child(10) { transform: rotate(7deg); z-index: 10; }
.stack img:nth-child(11) { transform: rotate(-2deg); z-index: 11; }
.stack img:nth-child(12) { transform: rotate(2deg); z-index: 12; }

/* ========================================
   PORTFOLIO LINKS
======================================== */
.video-link {
  display: inline-block;
  padding: 12px 20px;
  margin: 10px 0;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.video-link:hover,
.video-link:focus {
  background-color: #005fa3;
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
  outline: none;
  text-decoration: underline;
}

.video-link:active {
  background-color: #004480;
  box-shadow: none;
}

.context {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
  font-style: italic;
}



/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none;
}

* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
   }

   /* ========================================
      ABOUT ME
   ======================================== */

   .me {
     display: flex;
     justify-content: center;
     align-items: center;
   }

   .about-container {
     background: #1a1a1a;
     border-radius: 1rem;
     padding: 2rem;
     max-width: 800px;
     width: 100%;
     box-shadow: 0px 10px 20px 0px #14213d;
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
     min-height: 60vh;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background-color: #0d0d0d;
     color: #f5f5f5;
     line-height: 1.6;
     padding: 2rem;
     margin-top: 75px;
     margin-bottom: 75px;
   }

   .profile-pic {
     width: 150px;
     height: 150px;
     border-radius: 50%;
     object-fit: cover;
     border: 3px solid #14213d;
     margin-bottom: 1rem;
   }

   h1 {
     font-size: 2rem;
     color: #00ffc3;
     margin-bottom: 0.5rem;
   }

   h2 {
     font-size: 1.2rem;
     color: #888;
     margin-bottom: 2.5rem;
     margin-top: 1rem;
   }

   p {
     font-size: 1rem;
     margin-bottom: 1.5rem;
     margin-top: 1rem;
     text-align: justify;
     width: 100%;
     max-width: 600px;
    }
