/* ───────────────────────── ACCUEIL ─────────────────────────
   S'appuie sur style.css (couleurs, nav, curseur, titre).        */

body.home {
  min-height: 100svh;
}

#waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.welcome {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  cursor: pointer;
}

.welcome .eyebrow {
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s .2s forwards;
}

.welcome .hero-title {
  font-size: clamp(5rem, 16vw, 12rem);
}

.welcome .hero-sub {
  letter-spacing: .6em;
}

/* invitation */
.enter {
  margin-top: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color .4s, background .4s, color .4s;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.enter:hover,
.enter:focus-visible {
  border-color: var(--line);
  background: var(--glass);
  color: var(--pink);
  outline: none;
}

.enter-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

.enter-dot::before,
.enter-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--pink);
  animation: ping 2s ease-out infinite;
}

.enter-dot::after {
  animation-delay: 1s;
}

@keyframes ping {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(3.4); opacity: 0; }
}

.enter-label.is-touch {
  display: none;
}

@media (hover: none) {
  .enter-label.is-mouse {
    display: none;
  }

  .enter-label.is-touch {
    display: inline;
  }
}

@media (max-width: 560px) {
  .welcome .hero-sub {
    letter-spacing: .3em;
    font-size: .72rem;
  }
}

/* dernière sortie */
.latest {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 4vh, 2rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .5rem 1.1rem .5rem .5rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 1s 1.6s forwards;
  transition: background .3s;
}

.latest:hover {
  background: var(--glass-strong);
}

.latest-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url("../static/covers/the-stars-i-dreamed-of.jpg") center / cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
  animation: discSpin 12s linear infinite;
}

@keyframes discSpin {
  to { transform: rotate(360deg); }
}

.latest-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.latest-label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.latest-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

.latest svg {
  width: 18px;
  height: 18px;
  fill: var(--pink);
  margin-left: .25rem;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* onde de transition */
.flood {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--grad);
  clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
  pointer-events: none;
}

.flood.go {
  clip-path: circle(var(--r, 150vmax) at var(--x, 50%) var(--y, 50%));
  transition: clip-path 1s cubic-bezier(.55, 0, .3, 1);
}

body.leaving main,
body.leaving .footer {
  opacity: 0;
  transition: opacity .5s;
}

body.home.has-mouse .welcome {
  cursor: none;
}

/* indicateur de défilement */
.scroll-hint {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1.4rem, 5vh, 2.6rem);
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-hint span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--pink));
  animation: drip 2.4s cubic-bezier(.6, 0, .3, 1) infinite;
}

@keyframes drip {
  to { top: 100%; }
}

/* qui suis-je : une colonne centrée */
.home .about {
  display: block;
  max-width: 760px;
  padding: 8rem clamp(1.25rem, 5vw, 3rem) 9rem;
  text-align: center;
}

.home .about-text p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.about-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  box-shadow: 0 14px 30px -12px rgba(240, 80, 122, .7);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.about-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(240, 80, 122, .85);
}

@media (max-width: 560px) {
  .scroll-hint {
    display: none;
  }

  .home .about {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
}
