.container-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 550px;
  background: linear-gradient(
    135deg,
    #e562b1,
    #6764d6,
    #3fbb6c,
    rgb(228, 186, 20)
  );
  background-size: 400% 400%;
  animation: gradientMove 35s ease infinite;
  color: white;
}

/* Animations */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.container-background {
  /* min-height: 100vh; */
  /* min-height: 100vh; */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  overflow: hidden;
  height: 550px;
}

/* CSS corrig� � cible l'�l�ment qui a la classe (ici l'ancre <a>) */
.mon-hero-button {
  width: 190px !important;
  height: 50px !important;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;

  background: rgba(100, 149, 237, 0.2) !important;

  font-size: 25px;
  line-height: 1.7;
  margin-bottom: 20px;
  margin-left: 10px;
}

.mon-hero-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%
  ) !important; */
  z-index: -1;
}

/*---   defini le padding du bouton  --------*/
a.mon-hero-button.wp-block-button__link.wp-element-button {
  padding: 14px 22px !important;
}

/* hover */
.mon-hero-button:hover,
.mon-hero-button:focus {
  /* transform: translateY(-10px); */
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.mon-hero-button {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 25px;
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
  margin-left: 15px;
}

/* .mon-hero-button {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 100%
  ) !important;
} */

/* Hover Effects */
a.mon-hero-button:hover {
  /*transform: translateX(10px);*/
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

a.mon-hero-button:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 20px;
}

.principal {
  position: absolute;
  /* // top: -50%; */
  /* left: -50%; */
  /* width: 200%;
        height: 200%;
        background: url('https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?w=800') center/cover;
        filter: blur(30px);
        z-index: 1;
        opacity: 0.; */
}

.content {
  position: relative;
  top: 38px;
  left: -45px;
  z-index: 10;
  text-shadow: 2px 2px 30px rgba(19, 19, 19, 0.37);
}

.wave {
  position: absolute;
  right: -1000px;
  bottom: -55%;
  width: 1200px;
  height: 1200px;
  border: 2px solid rgb(255, 255, 255, 0.7);
  border-radius: 40%;
  animation: rotate 38s linear infinite;
  filter: blur(0px);
  z-index: 5;
  /* 5px = intensit� du flou */
}

.wave:nth-child(2) {
  right: -1100px;
  bottom: -250px;
  border-color: rgb(255, 255, 255, 0.3);
  animation-duration: 30s;
  z-index: 5;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- RESPONSIVE HERO --- */
/*--------- Désactivation de l'animation pour robot google mobile first ---------*/
@media (max-width: 590px) {
  .wave {
    animation: unset;
  }
  .container-hero {
    animation: unset;
  }
}

/* Container � hauteur flexible sur mobile */
@media (min-width: 1200px) {
  .container-hero {
    border-radius: 24px;
  }
}

@media (max-width: 992px) {
  .container-hero {
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .content {
    top: 0;
    left: 0;
  }
}

/* Titre responsive */
@media (max-width: 992px) {
  .container-hero h1 {
    font-size: clamp(36px, 8vw, 80px) !important;
    letter-spacing: -1px !important;
  }

  .container-hero p {
    font-size: clamp(16px, 2.4vw, 20px);
  }
}

/* Bouton responsive */
@media (max-width: 992px) {
  .mon-hero-button {
    width: auto !important;
    height: auto !important;
    padding: 12px 24px !important;
    font-size: clamp(16px, 3vw, 22px);
    margin: 20px auto 0 !important;
    display: inline-block;
  }
}

/* Waves : r�duction sur mobile */
@media (max-width: 992px) {
  /* .wave {
        width: 700px;
        height: 700px;
        right: -400px;
        bottom: -250px;
    }

    .wave:nth-child(2) {
        width: 600px;
        height: 600px;
        right: -450px;
        bottom: -200px;
    } */
}

/* Optimisation mobile stricte */
@media (max-width: 600px) {
  /* .wave {
        width: 450px;
        height: 450px;
        right: -250px;
        bottom: -180px;
    }

    .wave:nth-child(2) {
        width: 380px;
        height: 380px;
        right: -300px;
        bottom: -150px;
    } */
}

/* --- ADAPTATION INTERMEDIAIRE : 1200px ? 992px --- */
@media (max-width: 1100px) and (min-width: 992px) {
  .container-hero {
    /* height: 480px; un peu moins haut mais toujours stable */
    padding: 40px;
  }

  .content {
    top: 20px;
    left: 0;
  }

  .container-hero h1 {
    font-size: clamp(60px, 6vw, 80px) !important;
    /* font-size:50px; */
    letter-spacing: -2px !important;
  }

  .container-hero p {
    font-size: clamp(18px, 1.8vw, 22px);
  }

  .mon-hero-button {
    width: auto !important;
    height: auto !important;
    padding: 12px 28px !important;
    font-size: clamp(18px, 2vw, 22px) !important;
  }
  .border-radius {
    border-radius: 0px;
  }
  /* Waves l�g�rement r�duites */
  /* .wave {
        width: 950px;
        height: 950px;
        right: -650px;
        bottom: -300px;
    }

    .wave:nth-child(2) {
        width: 850px;
        height: 850px;
        right: -680px;
        bottom: -260px;
    } */
}
