@import url("/assets/css/global.css");


.footer-cta {
  position: relative;
  padding: 160px 20px 100px;
  background: #181518;
  color: #fcfcfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Sofia Sans Condensed', sans-serif;
  
}

/* wrapper positionné en relatif pour calques absolus */
.title-wrapper {
  position: relative;
  width: max-content;
}


/* titres superposés */
.footer-title {
  font-size: clamp(100px, 20vw, 260px);
  line-height: .85;
  margin: 0;
  margin-bottom: 60px; /* avant 30px, tu peux ajuster */
  margin-top: 40px;
  font-family: 'Thunder', sans-serif;
}
.footer-title span { display: block; }

.footer-subtitle {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 600;
  margin-bottom: 30px;
}

/* calque flou */
.footer-title.blurred {
  filter: blur(4px);
  color: #fcfcfc;
  font-family: 'Thunder', sans-serif;
  
}




/* calque net masqué hors du cercle autour du curseur */
.footer-title.sharp {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(
    calc(var(--my) - 100px)
    calc(100% - (var(--mx) + 100px))
    calc(100% - (var(--my) + 100px))
    calc(var(--mx) - 100px)
  );
  -webkit-clip-path: inset(
    calc(var(--my) - 100px)
    calc(100% - (var(--mx) + 100px))
    calc(100% - (var(--my) + 100px))
    calc(var(--mx) - 100px)
  );
  pointer-events: none;
  color: #052CF9;
}



/* Le calque flou contient le lien, il doit capter les clics */
.footer-title.blurred a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Le calque net ne doit pas bloquer le lien en dessous */
.footer-title.sharp {
  pointer-events: none;
}


/* liens sociaux (inchangés) */
.footer-links {
  
  display: flex;
  gap: 140px;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: transform .3s, opacity .3s;
  font-family: 'Sofia Sans Condensed', sans-serif;
}
.footer-links a:hover {
  transform: translateY(-5px);
  opacity: .8;
}

.hover-text {
  display: inline-block;
  position: relative;
  height: 1em;        /* hauteur d'une ligne de texte */
  overflow: hidden;
  line-height: 1;
}

.text-slide {
  display: block;
  transition: transform 0.4s ease;
}

/* État initial du premier span */
.hover-text .text-slide:first-child {
  transform: translateY(0%);
}

/* Premier span glisse vers le haut au hover */
.hover-text:hover .text-slide:first-child {
  transform: translateY(-100%);
}

/* Deuxième span positionné juste en dessous */
.hover-text .text-slide:last-child {
  position: absolute;
  top: 100%;
  left: 0;
}

/* Deuxième span remonte en place au hover */
.hover-text:hover .text-slide:last-child {
  transform: translateY(-100%);
}

/* Conserve ton style de base pour les liens */
.footer-links a {
  color: inherit;
  text-decoration: none;
  padding: 0.3em 0;
  display: inline-block;
  overflow: hidden;
}



@media (max-width: 1024px) {
  .footer-cta {
    height: 100vh;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-subtitle {
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.3;
  }

  .title-wrapper {
    margin: 80px 0 80px;
    overflow: visible;
  }
  .footer-title.blurred,
  .footer-title.sharp {
    font-size: 22vw !important;
    line-height: 1 !important;
    margin: 0 !important;
    filter: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transition: none !important;
    color: #fcfcfc !important;
  }
  .footer-title.blurred { display: none !important; }
  .footer-title.sharp { position: static !important; }

  .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, auto);
    gap: 6px 80px;
    width: auto;
    margin-top: 8px;
  }
  .footer-links a {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-decoration: none;
    color: inherit;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


