
/* Base du site */

html {
  overflow-y: scroll;
}

@font-face {
  font-family: "futura-bold";
  src: url("fonts/futura-bt-woff2/futura-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "futura-medium-bt";
  src: url("fonts/futura-bt-woff2/futura-medium-bt.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111111;
  font-family: "futura-medium-bt", sans-serif;
}

/* En-tête */



header {
  position: fixed;
  top: 48%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  font-family: "futura-bold", sans-serif;
  font-weight: 700;
  font-size: clamp (13px, 1.4vw, 7px);
  letter-spacing: 0.35em;
  z-index: 10;
}

header p {
  margin: 0;
}



/* Showreel */

.showreel-container {
  width: 60%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 45px auto 0;
}

.showreel-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Navigation */

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 45px 20px;
  font-size: 13px;
  font-family: "futura-medium-bt", sans-serif;
}

nav a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1130px) {
  header {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    padding: 20px 15px;
    font-size: 10px;
    letter-spacing: 7px;
    gap: 15px;
  }

  .showreel-container {
    width: 100%;
    margin-top: 35px;
  }

  nav {
    gap: 12px;
    margin-top: 30px;
    font-size: 12px;
  }
}

/* Vidéo sans interface, avec clic pour le son */

.showreel-container iframe {
  pointer-events: none;
}

.video-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  
}

main {
  position: relative;
  top: 46vh;
  transform: translateY(-50%);
}

nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #999999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}
/* Icône sonore du showreel */

.sound-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sound-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showreel-container:hover .sound-icon,
.video-click-overlay:focus-visible .sound-icon {
  opacity: 1;
}

.video-click-overlay:not(.sound-on) .sound-waves {
  display: none;
}

.video-click-overlay.sound-on .sound-cross {
  display: none;
}
.showreel-container:hover .sound-icon {
  opacity: 1;
}
/* Liens du header */
header a {
  color: inherit;
  text-decoration: none;
}

header a::after {
  display: none;
}

/* Navigation sur téléphone uniquement */
@media (max-width: 600px) {
  nav {
    font-size: 10px;
    gap: 8px;
    row-gap: 12px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Fondu d'entrée et de sortie du contenu */
.page-transition {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Apparition du contenu à l'arrivée */
body.page-loaded .page-transition {
  opacity: 1;
}

/* Disparition du contenu au départ */
body.page-leaving .page-transition {
  opacity: 0;
}

/* Le header reste indépendant du fondu */
header {
  opacity: 1;
}

/* Fond d'attente + apparition douce du showreel */
.showreel-container {
  background: #111 url("images/showreel-poster.webp") center / cover no-repeat;
  }

.showreel-container iframe {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.showreel-container iframe.is-ready {
  opacity: 1;
}

/* Une fois la vidéo affichée, on retire le fond d'attente */
.showreel-container.video-ready {
  background: none;
}
