@font-face {
  font-family: "ABC Walter";
  src: url("assets/ABCWalterNeueVariable-Trial.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  overflow: hidden;
  background-color: transparent;
  font-family: "ABC Walter", sans-serif;
  text-transform: uppercase;
  color: #4d4d4d;
}

/* Header text */
.intro-text {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem; /* marges latérales + top */
  text-align: center;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
  background: transparent;
  z-index: 2;
}

/* Nav centrée avec marges */
nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 100;
}

/* Boutons */
button {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: "ABC Walter", sans-serif;  /* ✅ ajout ici */
  text-transform: uppercase;
}

button.active {
  color: black;
}

.background-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* par-dessus le sac mais derrière les textes/boutons si besoin */
  pointer-events: none;
}

.background-logo img {
  width: clamp(50px, 50vw, 400px); /* ✅ s'adapte, mais garde un minimum et un maximum */
  height: auto;
  filter: brightness(0);
  opacity: 0.5;
  padding: 1rem; /* ✅ pour ne jamais toucher les bords */
}
/* Footer clean */
footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  text-align: center;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.5);
  z-index: 3;
  background: transparent;
}

footer p,
button {
  font-size: 1rem;
}

/* Plein écran sac */
model-viewer::part(canvas) {
  width: 100% !important;
  height: 100% !important;
  background-color: transparent !important;
  display: block;
}

/* Overlays */
#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  pointer-events: none;
}

#video-overlay video {
  max-width: 80%;
  height: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border: 0px solid white;
  background: white;
}

#card-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: transparent;
  pointer-events: auto;
}

#card-overlay img {
  width: 420px;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.hidden {
  display: none !important;
}

model-viewer::part(canvas) {
  background-color: transparent !important;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

#video {
  max-width: 80vw;
  max-height: 80vh;
  border: 2px solid white;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#card-overlay,
#video-overlay {
  cursor: pointer; /* indique que c’est cliquable pour quitter */
}

.overlay-background {
  pointer-events: none; /* empêche le contenu d’intercepter le clic */
}

.overlay-background img,
.overlay-background .video-wrapper {
  pointer-events: auto; /* permet de garder les interactions normales */
  cursor: default;
}

@media only screen and (max-width: 600px) {
  .intro-text {
    font-size: 0.75rem;
    padding: 1rem;
  }

  nav button {
    font-size: 0.75rem;
  }

  footer p {
    font-size: 0.85rem;
  }
}

@media only screen and (max-width: 600px) {
  .background-logo img {
    transform: rotate(-90deg);
    width: 40vh;           /* s’adapte à la hauteur de l’écran */
    max-width: none;
  }
}

@media only screen and (max-width: 600px) {
  #video-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
  }

  #video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }
}

#click-image {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: translate(0, 0);
  left: 0;
  top: 0;
}

#click-image.show {
  opacity: 1;
}

#click-image img {
  width: min(40vw, 600px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  mix-blend-mode: multiply; /* effet produit */
  opacity: 0.4; /* plus besoin de transparence simple */
  pointer-events: none;
}

@media only screen and (max-width: 600px) {
  nav button#info-btn,
  nav button#about-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
}

/* Par défaut : pas de saut de ligne */
.break-desktop {
  display: none;
}

/* À partir de 1280px de large : afficher le saut de ligne */
@media screen and (min-width: 1280px) {
  .break-desktop {
    display: inline;
  }
}

