@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');

body {
  font-family: "Spline Sans", sans-serif;
  background-color: black;
  color: white;
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: black;
  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;
  background-color: black;
}

.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);
  }
}










.pages-logo {
  width: 64px;
  max-width: 80px;
}

.pages-title {
  font-family: "Taviraj", serif;
  font-weight: 400;
  font-style: normal;
  color: white;
  text-align: left;
  margin: 100px 50px 0 50px;
  position: relative;
}

.pages-title::after {
  content: "";
  display: block;
  height: 1px;
  background-color: white;
  margin-top: 10px;
}



/* Grid responsive */
.container {
  display: grid;
  margin: 50px;
  gap: 50px;
}

.card {
  overflow: hidden;
}



/* Image + vidéo dans un wrapper */
.media-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.media-wrapper img,
.media-wrapper video {
  width: 100%;
  display: block;
  transition: opacity 0.6s ease-in-out, transform 1.5s ease;
}

.media-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
}

.media-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  /* transparent de base */
  transition: background 0.6s ease;
  pointer-events: none;
}



/* Hover : fade + zoom + assombrissement */
.media-wrapper:hover video {
  opacity: 1;
  transform: scale(1.08);
}

.media-wrapper:hover img {
  opacity: 0;
}

.media-wrapper:hover::after {
  background: rgba(0, 0, 0, 0.25);
}

.card-content {
  position: relative;
  padding-top: 10px;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

/* Effet d’assombrissement automatique sur mobile */
@media (max-width: 768px) {
  .media-wrapper.auto-played::after {
    background: rgba(0, 0, 0, 0.25);
  }
}