/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #0a0f1c, #081227);
  color: #e0f7ff;
  line-height: 1.6;
  padding-top: 80px;
  min-height: 100vh;
}

header {
  background-color: #081227;
  color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column; /* pour empiler le logo et la nav */
  align-items: center;     /* centrer horizontalement */
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 238, 255, 0.2);
}

.logo img {
  height: 80px;
}

/* Centrer les liens dans la nav */
nav {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #00eeff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size:120%;
}

nav a:hover {
  color: #00aaff;
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #00eeff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 120%;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #081227;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 238, 255, 0.2);
  z-index: 1;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.dropdown-content a {
  color: #00eeff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 110%;
  transition: all 0.3s ease;
  background-color: #081227;
}

.dropdown-content a:hover {
  color: #00aaff;
  background-color: #0e203d;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Style pour aligner le menu déroulant avec les autres liens */
nav a, .dropdown .dropbtn {
  padding: 14px 16px;
  text-decoration: none;
  display: inline-block;
}

/* Footer */
footer {
  background-color: #081227;
  color: #aaa;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
}

/* Accueil */
.home {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(to right, #0a0f1c, #0b274a);
  border-bottom: 2px solid #00eeff33;
  margin-top:-5%;
}

.home h1 {
  font-size: 3.2rem;
  color: #00eeff;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.home h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #b0eaff;
}

.home p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 1rem auto 0;
  color: #c2e9ff;
}

.home .intro {
  margin-top: 1rem;
  background-color: #0e203d;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 20px #00eeff10;
  display: inline-block;
  text-align: left;
  line-height: 1.8;
}


/* Pages projets */
.projects {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project {
  background-color: #111c3d;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px #00eeff20;
  text-align: center;
}

.project h3 {
  font-size: 1.8rem;
  color: #b0eaff;
  margin-bottom: 1rem;
}
.projects h2 {
  font-size: 3.0rem;
  margin-bottom: 1rem;
  margin-top: 1.0rem;
}

.project p.description {
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  color: #d3f3ff;
}

/* Mots clés rouges */
.highlight {
  color: #ff4b4b;
  font-weight: bold;
}

.project img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project a:hover img {
  transform: scale(1.02);
}

/* Carrousel simple (sans JS) */
.carousel-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.2);
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 238, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1;
}

.carousel-btn:hover {
  background-color: rgba(0, 238, 255, 0.4);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* À propos */
.about {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* Contact */
.contact {
  padding: 2rem;
  max-width: 400px;
  margin: auto;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  background-color: #0f1a30;
  border: 1px solid #00eeff55;
  color: #fff;
  border-radius: 6px;
}

.contact button {
  background-color: #00eeff;
  color: #081227;
  font-weight: bold;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #00bcd4;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0e203d;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden; /* Initialement caché */
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #0e203d;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

/* Apparition du popup */
.popup.show {
  visibility: visible;
  opacity: 1;
}
.download-btn {
  background-color: #00eeff;
  color: #081227;
  font-weight: bold;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 2rem;
}

.download-btn:hover {
  background-color: #00bcd4;
}
.video-container {
  margin-top: 2rem;
}

.video-container video {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 238, 255, 0.2);
}
.media-pair {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.media-pair img {
  max-width: 45%;
  height: auto;
  border-radius: 10px;
}

.media-pair .video-container {
  max-width: 45%;
  flex: 1;
}

.media-pair video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
  margin-top:15%;
}
.hamburger {
  display: none;
  font-size: 3rem;
  background: none;
  color: #00eeff;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 110;
}

/* Menu mobile caché par défaut */
nav {
  transition: max-height 0.3s ease;
}

nav.active {
  max-height: 500px; /* hauteur suffisante pour afficher les liens */
}
#popup-access {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00eeff;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#popup-access:hover {
  background-color: #00c2cc;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Format 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 70%;
}
.about p {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  line-height: 1.7;
  font-size: 1rem;
}

.about img {
  width: 250px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about span {
  flex: 1;
}
.stage-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(to right, #0a0f1c, #0b274a);
  border-radius: 10px;
  margin-top:7rem;
}

.hero h1 {
  font-size: 3rem;
  color: #00eeff;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  color: #b0eaff;
  margin-bottom: 1rem;
}

.dates {
  color: #c2e9ff;
  font-style: italic;
}

.container {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2.2rem;
  color: #00eeff;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #00eeff33;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.6rem;
  color: #b0eaff;
  margin: 1.5rem 0 1rem;
}

h4 {
  font-size: 1.3rem;
  color: #00aaff;
  margin: 1rem 0 0.5rem;
}

.project-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.detail-card {
  flex: 1;
  min-width: 300px;
  background: #0e203d;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.1);
}

.design-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.design-text {
  flex: 1;
  min-width: 300px;
}

.design-images {
  flex: 1;
  display: flex;
  gap: 1rem;
  min-width: 300px;
}

.design-images img {
  width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 238, 255, 0.2);
}

.screenshots img {
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 238, 255, 0.3);
}

.caption {
  text-align: center;
  font-style: italic;
  color: #aaa;
  margin-top: 0.5rem;
}

.event-highlights {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.highlight-card {
  flex: 1;
  min-width: 300px;
  background: #0e203d;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.1);
}

.highlight-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.skills-acquired {
  background: #0e203d;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.skills-acquired ul {
  columns: 2;
  list-style-type: square;
}

/* Responsive */
@media (max-width: 768px) {

 .hamburger {
    display: block;
    margin-top:-20%;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }

  nav a {
    padding: 0.8rem 1rem;
    width: 100%;
    border-top: 1px solid #00eeff22;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
   .dropdown {
    width: 100%;
  }
  
  .dropbtn {
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    border-top: 1px solid #00eeff22;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  
  .dropdown-content a {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .projects {
    padding: 1rem;
  }
  .project img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
    .media-pair {
    flex-direction: column;
    gap: 1.5rem;
  }

  .media-pair img,
  .media-pair .video-container {
    max-width: 90%;
  }
  /* Version mobile améliorée */
.home {
  padding: 3rem 1rem;
}

.home h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  margin-top:10%;
}

.home h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-top:8%;
}

.home p {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.download-btn {
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
}

/* Bannières images mieux adaptées */
img[alt="Bannière"] {
  max-height: 210px;
  object-fit: cover;
}

/* Nav plus clair sur mobile */
nav.active {
  background-color: #081227;
  padding: 1rem 0;
  border-top: 1px solid #00eeff33;
}

nav a {
  font-size: 1rem;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%;
}
.projects h2 {
  font-size: 2.0rem;
  margin-bottom: 1rem;
  margin-top: 1.0rem;
  text-align:center;
}
  .about p {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about img {
    width: 80%;
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .about span {
    text-align: left;
  }

/* Espacement entre les sections */
footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
}
 .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  .project-details, .design-grid {
    flex-direction: column;
  }
  
  .design-images {
    flex-direction: column;
  }
  
  .design-images img {
    width: 100%;
  }
  
  .skills-acquired ul {
    columns: 1;
  }
}
}
