html {
  scroll-behavior: smooth;
}

body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

header {
  background-color: #1e1e1e;
  text-align: center;
  padding: 60px 20px 30px;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  color: #bbbbbb;
  margin: 0;
}

/* NAVIGATION FIXE ET CENTRÉE */
nav {
  background-color: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  padding: 10px 0;
}

.nav-container {
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

nav ul.menu {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: #90caf9;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0..cv-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: #2f80ed;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cv-button:hover {
  background-color: #1c5fc1;
}3s;
}

nav a:hover {
  background-color: #333;
  border-radius: 6px;
  color: #fff;
}

nav a {
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #90caf9;
  transition: width 0.3s ease;.cv-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: #2f80ed;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cv-button:hover {
  background-color: #1c5fc1;
}
}
nav a:hover::after {
  width: 100%;
}


.liens-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.liens-nav i {
  margin-right: 6px;
}

/* CONTENU PRINCIPAL */
main {
  padding: 30px 20px;
  display: flex;.cv-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: #2f80ed;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cv-button:hover {
  background-color: #1c5fc1;
}
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

/* PROJET : carte avec animation */
.projet {
  background-color: #222;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.4s ease, background-color 0.3s;
  width: 100%;.cv-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: #2f80ed;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}

.cv-button:hover {
  background-color: #1c5fc1;
}
}

.projet:hover {
  transform: translateY(-6px);
  background-color: #2b2b2b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* VIDEO */
.video-projet {
  width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin-top: 15px;
  object-fit: contain;/* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}
/* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}
/* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;/* MENU DÉROULANT PROJETS */
.dropdown {222
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;/* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background /* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover /* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}{
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}
  background-color: #000;
  display: block;
}

/* LIEN DE CARTE */
.projet-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projet-link .projet:hover {
  cursor: pointer;
}

/* FOOTER */
footer {
  background-color: #1e1e1e;
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  nav ul.menu {
    justify-content: center;
  }

  .liens-nav {
    justify-content: center;
  }

  main {
    padding: 20px;
  }

  .projet {
    padding: 18px;
  }
}

@media (max-width: 500px) {
  .liens-nav,
  nav ul.menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header h1 {
    font-size: 2rem;
  }

  .video-projet {
    max-height: 240px;
  }
}

.video-projet:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* MENU DÉROULANT PROJETS */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  padding: 10px 0;
  border-radius: 6px;
  z-index: 1001;
  min-width: 200px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: #90caf9;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 15px;
}

.video-pair {
  flex: 1 1 400px;
  max-width: 48%;
  min-width: 300px;
  aspect-ratio: 1; /* bande verticale élargie */
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  background-color: #000;
}

/* Si l'écran est étroit, les vidéos passent en colonne */
@media (max-width: 900px) {
  .video-pair {
    max-width: 100%;
  }
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 15px;
}



/* Si l'écran est étroit, les vidéos passent en colonne */
@media (max-width: 900px) {
  .video-pair {
    max-width: 100%;
  }
}

.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 400px;
  max-width: 48%;
  min-width: 300px;
}

.video-caption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #000;
  font-family: 'Roboto Mono', monospace;
}

.image-container {
  flex: 1 1 400px;
  max-width: 48%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.media-item {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 12 / 9;
  border-radius: 6px;
  background-color: #fff;
}

.image-stack {
  background-color: #292b2f;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 400px; /* nouvelle largeur réduite de la bulle */
}

.media-stack-item {
  width: 100%; /* moitié de largeur */
  max-width: 400px; /* moitié de 800px */
  border-radius: 8px;
  object-fit: contain;
  background-color: #292b2f;
}

.full-video {
  width: 100%;
  height: auto;
  object-fit: contain; /* pas de crop */
  background-color: #000;
  margin-top: 20px;
  border-radius: 8px;
}

.black-background {
  background-color: #000 !important;
}

.zoomed {
  object-fit: cover;
  object-position: center;
  transform: scale(1.00); /* zoom léger */
  background-color: #000; /* fond derrière l'image */
}

.image-caption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #000;
  font-family: 'Roboto Mono', monospace;
}

.white-caption {
  color: #fff;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #1e1e1e;
  color: #888;
  font-size: 0.9rem;
}

.footer-links a {
  color: #90caf9;
  margin: 0 8px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.video-full {
  width: 100%;
  height: auto;
  object-fit: contain; /* pas de crop */
  background-color: #fff; /* fond blanc autour */
  border-radius: 8px;
}

.white-bg {
  background-color: #fff;
  border-radius: 12px;
  padding: 10px;
}

.cropped-horizontal {
  width: 100%;
  aspect-ratio: 12 / 9; /* forme horizontale */
  object-fit: cover;    /* crop automatique */
  object-position: center center; /* centre horizontalement et verticalement */
  background-color: #000;
  border-radius: 8px;
  display: block;
}

.cv-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: #2f80ed;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cv-button:hover {
  background-color: #1c5fc1;
  box-shadow: 0 0 12px rgba(47, 128, 237, 0.5);
}

.highlighted-title {
  color: #2f80ed;
  font-size: 2.8rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: glowPulse 3s ease-in-out infinite;
}

/* Animation subtile de lueur pulsée */
@keyframes glowPulse {
  0%, 80% {
    text-shadow: 0 0 5px rgba(47, 128, 237, 0.4);
  }
  50% {
    text-shadow: 0 0 10px rgba(47, 128, 237, 0.8);
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  padding: 12px 15px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

.video-caption-white {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #fff;
}

