@import url('https://fonts.googleapis.com/css2?family=Spline+Sans:wght@300..700&family=Taviraj:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html,
body {
  font-family: "Spline Sans", sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
}

#logo {
  cursor: pointer;
  width: 120px;
  margin: 0px 40px;
  transition: opacity 0.6s ease;
}



/* MENU PRINCIPAL */
.main-nav {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
}

.main-nav ul,
.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav>ul {
  display: flex;
  align-items: center;
}

.main-nav>ul>li {
  margin-left: 2em;
}

.main-nav>ul>li:first-child {
  margin-left: 0;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  padding: 0 0.4em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav:hover a {
  color: rgba(255, 255, 255, 0.3);
}

.main-nav a:hover {
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}



/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dropdown-menu::before {
  content: "";
  display: block;
  height: 0.3em;
}

.dropdown-menu li {
  padding: 0.2em 0;
}

.dropdown-menu a {
  color: white;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* Tablette */
@media (max-width: 1024px) {
  #logo {
    width: 100px;
    margin: 5px 40px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .main-nav>ul>li {
    margin-left: 1.2em;
  }
}


/* MOBILE */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: black;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 40px;
    z-index: 900;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: 10px;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .main-nav>ul>li {
    margin-left: 0;
  }

  .main-nav a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    transition: color 0.3s ease;
  }


  /* COMMERCIAL / MUSIC VIDEO */
  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    margin-left: 20px;
  }

  .dropdown-menu a {
    font-size: 2rem;
    opacity: 0.9;
    margin-left: 10px;
  }

  .dropdown-menu li {
    margin: 0;
  }


  /* BURGER */
  .burger {
    position: fixed;
    top: 25px;
    right: 50px;
    z-index: 1000;
    cursor: pointer;
  }

  .burger span {
    display: block;
    width: 25px;
    /* 28px*/
    height: 2px;
    /* 3 => 15px*/
    background: white;
    margin: 6px 0;
    transition: all 0.4s ease;
  }


  /* Animation du burger -> croix */
  .burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.open span:nth-child(2) {
    opacity: 0;
  }

  .burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}




/* SLIDES */
.slides-wrapper {
  height: 100%;
  width: 100%;
  transition: transform 1s ease;
}

.slide {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.background-image,
.background-video,
.card-thumbnail,
.card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.card-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-thumbnail {
  z-index: 1;
}

.card-video {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 2;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  transition: opacity 0.5s ease;
}

.content {
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  text-align: left;
  color: white;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}



/* Titres */
.content h2 {
  font-family: "Taviraj", serif;
  font-size: 60px;
  font-weight: 400;
  margin: 0 0 0 20px;
  line-height: 1.2;
  white-space: pre-wrap;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-left: 48px;
  white-space: pre-wrap;
}

.title-row h2 {
  font-family: "Taviraj", serif;
  font-size: 60px;
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.title-row h3 {
  font-size: 40px;
  font-family: "Taviraj", serif;
  font-weight: 200;
  margin: 0;
  line-height: 1.2;
  opacity: 0.5;
}

/* Tablette */
@media (max-width: 1024px) {
  .content h2 {
    font-size: 45px;
  }

  .title-row h2 {
    font-size: 45px;
  }

  .title-row h3 {
    font-size: 30px;
  }
}


/* Mobile */
@media (max-width: 768px) {
  .content h2 {
    font-size: 32px;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .title-row h2 {
    font-size: 32px;
  }

  .title-row h3 {
    font-size: 22px;
  }
}



/* SLIDE 6 / CONTACT */
.slides-wrapper,
.slide6,
.slide6 .content-left {
  box-sizing: border-box;
}

.slide6 {
  background-color: black;
  color: white;
  display: flex;
  justify-content: flex-start;
  padding: 0 140px 0 30px;
  width: 100%;
  overflow-x: hidden;
}

.slide6 .content-left {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin: 0 20px;
  font-family: "Taviraj", serif;
  text-transform: uppercase;
  font-weight: 300;
  width: 100%;
  max-width: calc(100% - 160px);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.slide6 h3.slide-title {
  font-weight: 300;
  margin: 0;
  font-size: 3rem;
  line-height: 1.1;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.slide6 .slide-mail {
  color: white;
  font-size: 1.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  margin: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.slide6 .slide-mail:hover {
  opacity: 0.6;
}

.slide6 .slide-links {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.slide6 .slide-link {
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.slide6 .slide-link span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* .slide6 .slide-link::after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.9em;
  transition: opacity 0.3s ease, transform 0.3s ease;
} */

.slide6 .slide-link:hover {
  opacity: 0.6;
}

.slide6 .slide-link:hover::after {
  transform: translateX(3px) translateY(-2px);
}

/* Tablette */
@media (max-width: 1024px) {

  .slide6 h3.slide-title {
    font-size: 2rem;
  }

  .slide6 .slide-mail,
  .slide6 .slide-link {
    font-size: 1.2rem;
  }

  .slide6 .content-left {
    max-width: calc(100% - 120px);
  }
}

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

  .slide6 h3.slide-title {
    font-size: 1.4rem;
  }

  .slide6 .slide-mail,
  .slide6 .slide-link {
    font-size: 0.9rem;
  }

  .slide6 .content-left {
    max-width: 100%;
  }
}

.slide6 .slide-label {
  position: absolute;
  right: 55px;
  top: 55%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  letter-spacing: 2px;
  color: white;
  text-transform: uppercase;
  text-orientation: mixed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .slide6 .slide-label {
    right: 30px;
  }
}



/* DOTS & TITRES */
.slide-indicator {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 900;
  padding: 30px;
  transition: opacity 0.3s ease;
}

.slide-indicator .dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.slide-indicator .dot.active {
  transform: scale(1.4);
  background-color: white;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.slide-indicator .dot.near-active {
  transform: scale(1.2);
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.slide-indicator .dot:hover {
  transform: scale(1.6);
  background-color: white;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}


/* Titres des slides à côté des dots */
.slide-titles {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  text-align: right;
  transition: opacity 0.3s ease;
}

.slide-titles span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.slide-indicator:hover .slide-titles {
  opacity: 1;
}

.slide-titles span.active {
  color: white;
  transform: scale(1.1);
}

/* Disable slide titles on touch/hover-less devices to avoid sticky :hover */
@media (hover: none) {
  .slide-titles {
    display: none !important;
    opacity: 0 !important;
  }

  /* Neutralize dot hover effects on touch devices */
  .slide-indicator .dot:hover {
    transform: none !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
  }

  /* But keep the selected dot visibly active even if :hover sticks */
  .slide-indicator .dot.active,
  .slide-indicator .dot.active:hover {
    transform: scale(1.4) !important;
    background-color: white !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7) !important;
  }
}




/* Icône de copie et pop-up copié! + arrows */
.mail-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.copy-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.2s ease;
  position: relative;
}

.copy-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.copied-popup {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  border: 0.8px solid white;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.copied-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.copy-wrapper {
  height: 22px;
  position: relative;
  display: inline-block;
}


.arrow-icon {
  position: relative;
  top: 4px;
  left: 10px;
  width: 22px;
  height: 22px;
}



/* Overlay vidéo */
#videoOverlay {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#videoOverlay.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
