.overlay-client {
  font-weight: bold;
  color: #fff;
  font-family: "Taviraj", serif;
  font-weight: 300;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.overlay-project {
  font-family: "Taviraj", serif;
  font-style: italic;
  color: white;
  font-weight: 200;
  line-height: 1.2;
  opacity: 0.5;
}

.card-title .client,
.overlay-title .client {
  font-weight: bold;
  color: #fff;
  font-family: "Taviraj", serif;
  font-weight: 300;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.card-title .project,
.overlay-title .project {
  font-family: "Taviraj", serif;
  font-style: italic;
  color: white;
  font-weight: 200;
  line-height: 1.2;
  opacity: 0.5;
}

.card-duration {
  font-size: 0.9rem;
  font-weight: 200;
  margin-top: 5px;
  color: white;
  opacity: 0.5;

  font-family: "Taviraj", serif;
  line-height: 1.2;
}


/* Overlay lecteur vidéo */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
}

/* Header overlay */
.overlay-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px 50px;
}

.overlay-header img {
  width: 50px;
}

.overlay-title {
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid white;
  flex-grow: 1;
}

.overlay-close {
  font-size: 2.4rem;
  cursor: pointer;
  margin-left: auto;
  transition: transform 0.2s;
}

.overlay-close:hover {
  transform: scale(1.2);
}

.overlay-video {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 50px;
}

.overlay-video video {
  width: 100%;
  max-height: 80vh;
  background: black;
}

.overlay-controls {
  display: flex;
  align-items: center;
  padding: 15px 50px;
  gap: 15px;
}

.play-btn {
  filter: none !important;
  mix-blend-mode: normal !important;
  width: 18px;
  height: 18px;
  cursor: pointer;
  filter: invert(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
  position: relative;
  display: block;
}

.progress-container {
  flex-grow: 1;
  height: 6px;
  background: #333;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: white;
}

.overlay-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 50px;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.play-btn,
.volume-btn,
.fullscreen-btn {
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  transition: transform 0.2s ease;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  z-index: 10;
}

.volume-btn {
  width: 16px;
  height: 16px;
  filter: brightness(1);
}

.volume-slider {
  width: 100px;
  cursor: pointer;
  appearance: none;
  height: 4px;
  border-radius: 5px;
  background: #aaa;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.volume-container::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
  background: transparent;
  z-index: -1;
  cursor: pointer;
}

.play-btn:hover,
.volume-btn:hover,
.fullscreen-btn:hover {
  transform: scale(1.2);
}

.time-counter {
  font-size: 0.9rem;
  font-weight: 200;
  color: white;
  font-family: "Taviraj", serif;
  line-height: 1.2;
}

/* Progress bar en bas */
.progress-container {
  width: 100%;
  height: 2px;
  background: #333;
  cursor: pointer;
  border-radius: 0px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: white;
}

/* Volume slider caché de base */
.volume-container {
  position: relative;
  display: flex;
  align-items: center;
}

#volumeSlider {
  width: 100px;
  display: none;
  margin-right: 8px;
}

.volume-container:hover #volumeSlider {
  display: block;
}






/* GLITCH FULLSCREEN FIX */
#glitch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* FOOTER GLITCH */
.footer-glitch {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#glitch-footer {
  position: absolute;
  inset: 0;
  background: black center/cover no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-logo {
  height: 60px;
  margin-bottom: 10px;
}

.mentions {
  font-size: 14px;
  opacity: 0.8;
  color: white;
  font-weight: 400;
}



/* POPUP MENTIONS LÉGALES */
.mentions-popup {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  z-index: 9999;
  overflow-y: auto;
}

.mentions-content {
  max-width: 720px;
  margin: 80px auto;
  background: black;
  border: 1px solid rgba(190, 176, 176, 0.173);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 50px;
  position: relative;
  animation: fadeInUp 0.4s ease;
  font-family: "Spline Sans", sans-serif;
}

.mentions-content h2 {
  font-family: "Taviraj", serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  text-align: left;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  margin: 0;
}

.mentions-content p {
  font-size: 0.9rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

/* Soulignés discrets pour les mots clés */
.mentions-content strong {
  font-weight: 400;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Bouton de fermeture */
.close-mentions {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 2.4rem;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.close-mentions:hover {
  opacity: 1;
  transform: scale(1.15);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Animation d'apparition fluide */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Mobile */
@media (max-width: 600px) {
  .mentions-content {
    padding: 30px 25px;
    margin: 60px 10px;
  }

  .mentions-content h2 {
    font-size: 1.3rem;
  }
}