@font-face {
  font-family: "Sofia";
  src: url("../font/Sofia Pro UltraLight Az.otf");
}

/* @font-face {
  font-family: 'Sofia bold';
  src: url('font/Sofia\ Pro\ Bold\ Az.otf');
} */

@font-face {
  font-family: tk-sofia-pro-n7;
  src:
    url(https://use.typekit.net/af/c5ee9a/0000000000000000000157a9/27/l?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n7&v=3)
      format("woff2"),
    url(https://use.typekit.net/af/c5ee9a/0000000000000000000157a9/27/d?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n7&v=3)
      format("woff"),
    url(https://use.typekit.net/af/c5ee9a/0000000000000000000157a9/27/a?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n7&v=3)
      format("opentype");
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-display: auto;
}
@font-face {
  font-family: tk-sofia-pro-n5;
  src:
    url(https://use.typekit.net/af/ae3a38/0000000000000000000157af/27/l?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n5&v=3)
      format("woff2"),
    url(https://use.typekit.net/af/ae3a38/0000000000000000000157af/27/d?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n5&v=3)
      format("woff"),
    url(https://use.typekit.net/af/ae3a38/0000000000000000000157af/27/a?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n5&v=3)
      format("opentype");
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  font-display: auto;
}
@font-face {
  font-family: tk-sofia-pro-n4;
  src:
    url(https://use.typekit.net/af/c07bfb/0000000000000000000157b1/27/l?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n4&v=3)
      format("woff2"),
    url(https://use.typekit.net/af/c07bfb/0000000000000000000157b1/27/d?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n4&v=3)
      format("woff"),
    url(https://use.typekit.net/af/c07bfb/0000000000000000000157b1/27/a?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n4&v=3)
      format("opentype");
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  font-display: auto;
}
@font-face {
  font-family: tk-sofia-pro-i4;
  src:
    url(https://use.typekit.net/af/7eae32/0000000000000000000157b2/27/l?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=i4&v=3)
      format("woff2"),
    url(https://use.typekit.net/af/7eae32/0000000000000000000157b2/27/d?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=i4&v=3)
      format("woff"),
    url(https://use.typekit.net/af/7eae32/0000000000000000000157b2/27/a?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=i4&v=3)
      format("opentype");
  font-weight: 400;
  font-style: italic;
  font-stretch: normal;
  font-display: auto;
}
@font-face {
  font-family: tk-sofia-pro-n6;
  src:
    url(https://use.typekit.net/af/83e419/0000000000000000000157b3/27/l?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n6&v=3)
      format("woff2"),
    url(https://use.typekit.net/af/83e419/0000000000000000000157b3/27/d?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n6&v=3)
      format("woff"),
    url(https://use.typekit.net/af/83e419/0000000000000000000157b3/27/a?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n6&v=3)
      format("opentype");
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  font-display: auto;
}
@font-face {
  font-family: tk-sofia-pro-n1;
  src:
    url(https://use.typekit.net/af/d3da65/0000000000000000000157b4/27/l?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n1&v=3)
      format("woff2"),
    url(https://use.typekit.net/af/d3da65/0000000000000000000157b4/27/d?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n1&v=3)
      format("woff"),
    url(https://use.typekit.net/af/d3da65/0000000000000000000157b4/27/a?primer=0429e5ed4bd3bcb6ba0ecf13d2f7e9fac65a5bd6fa0ca22819d1074dc6937a6c&fvd=n1&v=3)
      format("opentype");
  font-weight: 100;
  font-style: normal;
  font-stretch: normal;
  font-display: auto;
}

/* ---- Global ---- */
body {
  margin: 0;
  /* height: 100vh;  <-- retire ou commente */
  background-color: #fff;

  color: #05070d;
  font-family: "sofia-pro", "Poppins", sans-serif;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;

  overflow-y: auto; /* ✅ autorise le scroll vertical */
}

/* ---- Titles (Home view) ---- */
.titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.titles h1 {
  font-size: 3rem;
  font-family: "Sofia";

  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.3s ease;
}

.titles h1:hover {
  transform: scale(1.05);
}

/* ---- Center title ---- */
#content-title {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-45%, -50%);
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 100;
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
  animation: floatTitle 3s ease-in-out infinite;
  font-family: "Sofia", sans-serif;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  color: white;
  z-index: 10; /* au-dessus du fond */
  width: 90%; /* pour éviter le dépassement sur mobile */
  max-width: 1200px;
  word-wrap: break-word;
}

/* Le conteneur principal doit être en position relative et prendre tout l'écran */
#content {
  position: relative;
  width: 100%;
  height: 100vh; /* assure que le centrage vertical fonctionne */
  background-color: #000; /* facultatif : fond neutre */
  overflow: hidden;
}

/* Animation douce du titre */

/* ---- Floating text ---- */
#floating-container {
  display: none;
  position: relative;
  background-color: white;
  width: 100%;
  height: 100%;
}

.floating-text {
  position: absolute;
  color: white;
  font-weight: 600;
  /* text-transform: uppercase; */
  white-space: nowrap;
  padding: 0.4em 0.8em;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease;
  line-height: 1.2;
  cursor: pointer;
  will-change: transform;

  transform: translateY(0);
}

.floating-text:hover {
  background: var(--ftBackgroundColor);
}

/* keyframes: translateY using CSS variable --float-distance */
@keyframes floatY {
  from {
    transform: translateY(calc(var(--float-distance, 6px) * -1));
  }
  to {
    transform: translateY(calc(var(--float-distance, 6px) * 1));
  }
}

/* stop animation while reducing motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-text {
    animation: none !important;
    transition: none;
  }
}
/* 
@media (max-width: 800px) {
  .floating-text {
    font-size: clamp(0.8rem, 3.5vw, 1.2rem);
  }
} */

/* .floating-text {
  position: absolute;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px #05070d, 0 0 20px #05070d;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}


.floating-text:hover {
  transform: translate(-50%, -50%) scale(1.3);
} */

/* ---- Song Detail ---- */
#song-detail {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  display: none;
}

#song-detail img {
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 0 25px #05070d;
  margin-bottom: 1rem;
}

#song-description {
  max-width: 600px;
  font-size: 1.1rem;
  text-shadow: 0 0 15px #05070d;
}

/* ---- Intro overlay ---- */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: black;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#intro-fade {
  background: #000; /* was white — now black fade */
  opacity: 1;
  pointer-events: none;
  transition: opacity 1s ease;
}

#intro-video {
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
  object-fit: cover;
}

/* ---- Skip intro ---- */
#skip-intro {
  position: absolute;
  bottom: 40px;
  right: 60px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 3;
}

#skip-intro.visible {
  opacity: 1;
  pointer-events: auto;
}

#skip-intro:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* ---- Back button ---- */
.back {
  position: fixed;
  bottom: 40px;
  right: 60px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(18, 18, 18, 0.25);
  color: #fff;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  border: solid 1px white;
  opacity: 1;
  background: #05070d; /* fond sombre opaque */
  color: #fff;

  transition: all 0.6s ease;
  z-index: 9999 !important; /* ✅ toujours devant */
}

.back-on-card:hover {
  background: #111;
  transform: scale(1.08);
}
.back-on-card {
  background: #05070d; /* fond sombre opaque */
  color: #fff;
  border: solid 1px white;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.back-on-card:hover {
  background: #111;
  transform: scale(1.08);
}

#signatureTransition {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 1000;
  opacity: 0;
  width: 80vw; /* Responsive size */
  max-width: 600px;
  aspect-ratio: 3 / 1; /* Keeps proportions */
  background: radial-gradient(white, #f3f3f3, #dcdcdc);
  border-radius: 2rem;
  padding: 2vw;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

#signatureSVG {
  width: 100%;
  height: 100%;
}

#signaturesPath {
  stroke-dasharray: 3460;
  stroke-dashoffset: 3460;
  vector-effect: non-scaling-stroke; /* Keeps stroke thickness consistent */
}

.svg-transition {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 1000;
}

.svg-transition svg {
  width: 50vw;
  max-width: 800px;
  height: auto;
}

#signatures {
  stroke-dasharray: 3460;
  stroke-dashoffset: 3460;
  stroke: black;
  stroke-width: 5;
  stroke-linecap: round;
}

.sparkle {
  pointer-events: none;
  mix-blend-mode: screen;
  box-shadow: 0 0 8px 2px white;
}

/* --- Overlay global --- */
.song-blog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow: hidden;
}

.song-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(1.5);
  z-index: 0;
  transition: background 0.4s ease;
}

/* --- Carte principale --- */
.song-card {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  color: #111;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

/* Scroll doux et discret */
.song-card::-webkit-scrollbar {
  width: 6px;
}
.song-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.song-card::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Contenu texte --- */
.song-card h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #000;
}

.song-card h4 {
  font-weight: 400;

  opacity: 0.65;
  margin-bottom: 1.4rem;
  color: #333;
}

.song-card p,
.song-card li {
  line-height: 1.6;
  font-size: 1rem;
  color: #222;
}

.song-card ul {
  padding-left: 1.2rem;
}

.song-card blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid #ddd;
  color: #444;
}

/* --- Images --- */
.song-card img {
  display: block;
  max-width: 85%;
  max-height: 300px;
  object-fit: cover;
  margin: 1.5rem auto;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* --- Vidéos --- */
.song-card iframe {
  width: 100%;
  max-height: 340px;
  border: none;
  border-radius: 1rem;
  margin-top: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* --- Animation d'apparition --- */
.song-card {
  transform: translateY(20px) scale(0.96);
  opacity: 0;
}
.song-card.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease-out;
}

/* --- Effet au survol (léger) --- */
.song-card:hover {
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.06);
}

/* === Page En Construction === */
#construction-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #fff, #eaeaea);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: #222;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
}

.construction-content h2 {
  font-size: 2rem;
  margin-top: 2rem;
  font-weight: 600;
}

.construction-content p {
  opacity: 0.7;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --- Ouvrier amélioré --- */
.worker {
  position: relative;
  width: 100px;
  height: 120px;
  animation: workerFloat 3s ease-in-out infinite;
}

.helmet {
  width: 60px;
  height: 25px;
  background: linear-gradient(180deg, #f8d32b 0%, #e0b700 100%);
  border-radius: 50px 50px 10px 10px;
  position: absolute;
  top: 0;
  left: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.body {
  width: 80px;
  height: 80px;
  background: linear-gradient(180deg, #5fa8dc 0%, #3b7bbf 100%);
  border-radius: 10px;
  position: absolute;
  top: 30px;
  left: 10px;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.1);
}

/* --- Marteau fluide et stylisé --- */
.hammer {
  position: absolute;
  top: 25px;
  right: -35px;
  width: 10px;
  height: 60px;
  background: linear-gradient(180deg, #777, #444);
  border-radius: 4px;
  transform-origin: top center;
  animation: hammerSwing 1.8s ease-in-out infinite;
}

.hammer::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -12px;
  width: 34px;
  height: 12px;
  background: linear-gradient(90deg, #333, #555);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

/* --- Animations --- */
@keyframes hammerSwing {
  0%,
  100% {
    transform: rotate(-25deg) translateY(0);
  }
  50% {
    transform: rotate(15deg) translateY(-6px);
  }
}

@keyframes workerFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Bouton retour */
.back-to-menu {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-menu:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

/* --- Mots interactifs --- */
.info-word {
  position: relative;
  color: #0073e6;
  cursor: pointer;
  transition: color 0.25s ease;
}
.info-word:hover {
  color: #004a99;
}

/* --- Fenêtre info (tooltip latérale animée) --- */
.info-popup {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: white;
  color: #111;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  width: clamp(200px, 30vw, 300px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.info-popup.show {
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
  pointer-events: auto;
}

/* --- Section d’écoute --- */

.listen-section h3 {
  font-size: 1.3rem;
}
.listen-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.listen-options iframe {
  width: 100%;
  max-width: 480px;
  height: 270px;
  border-radius: 0.8rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.spotify-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1db954;
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.spotify-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.spotify-link img {
  height: 24px;
  width: auto;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .listen-options iframe {
    max-width: 100%;
    height: 200px;
  }
  .info-popup {
    width: 85vw;
    left: 50% !important;
    transform: translate(-50%, -10%) !important;
  }
}

@media (max-width: 800px) {
  .song-card {
    width: 95%;
    padding: 1.5rem;
  }

  .info-card {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vw;
  }
}

.info-card {
  position: fixed;
  top: 50%;
  right: 2vw;
  transform: translateY(-50%);
  background: #fff;
  color: #111;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: clamp(250px, 30vw, 320px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.info-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

/* --- Carte d'information --- */
.info-paragraph {
  background: #fff;
  border-radius: 1rem;
  padding: 1.2rem 1.6rem;
  margin: 1rem 0 1.2rem 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  color: #222;
  line-height: 1.6;
}

.info-paragraph-inner {
  position: relative;
  color: #111;
}

.info-paragraph h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #111;
  text-transform: uppercase;
  text-align: center;
}
.info-paragraph p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.info-paragraph .close-info {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 1.6rem;
  color: #aaa;
  cursor: pointer;
  z-index: 9999; /* 👈 le plus important */
  pointer-events: auto; /* s’assure qu’il capte bien les clics */
  transition:
    color 0.2s ease,
    transform 0.1s ease;
}

.info-paragraph .close-info:hover {
  color: #000;
}

/* --- Mots cliquables --- */
.info-word {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 500;
  transition: color 0.2s ease;
}

.info-word:hover {
  color: #2563eb;
  text-decoration: underline;
}

.info-paragraph img {
  display: block;
  max-width: 100%;
  border-radius: 0.8rem;
  margin: 1rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.info-gallery img {
  flex: 1 1 calc(50% - 0.6rem);
  object-fit: cover;
}

#logo-container img {
  margin-top: 2rem;
  width: 130px;
}

#scroll-down {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #05070d;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 100;
}

#scroll-down:hover {
  background: #111;
  transform: translateX(-50%) scale(1.05);
}
