/* Fix megamenu */ 
#megamenu{
  z-index: 99;
  position: relative;
}
/* The Modal (background) */
#newsletter-modal.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
  
/* Modal Content */
#newsletter-modal .modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  border: 1px solid #888;
  width: 50%;
}
  
/* The Close Button */
#newsletter-modal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
  
#newsletter-modal .close:hover,
#newsletter-modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#newsletter-modal {
  border-radius: 5px;
  z-index: 999;
}

#newsletter-modal #success-message{
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

#newsletter-modal #success-message button{
  background: #e01b40;
  border: 0;
  color: #fff;
  padding: 0px 10px;
}

#success-message #the_code{
  margin: 0;
  width: 20%;
  padding: 10px 10px;
  background: transparent;
  color: black;
  border: 1px solid black;
  text-align: center;
}

#newsletter-modal .close {
  text-align: right;
  padding: 10px;
}

#hs_newsletter_home_newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 20px 0px;
}

#container-hs-newsletter-home-title {
  text-align: center;
}

#container-hs-newsletter-home-title h2 {
    color: #e01b40;
    font-size: 35px;
}

#hs_newsletter_home_newsletter-form #email {
  margin: 15px 0;
  width: 50%;
  border-radius: 5px;
  border: 2px solid #e01b40;
  padding: 10px 15px;
  text-align: center;
}

#hs_newsletter_home_newsletter-form input[type="submit"] {
  background-color:#e01b40;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  box-shadow: 0px 3px 6px #00000029;
}

#newsletter-modal #modal_footer {
  margin: 25px 0;
  display: flex;
  justify-content: center;
  background: #D9CFCF;
  padding: 25px 0px;
}

#newsletter-modal #modal_footer h3 {
  font-family: Nunito,sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 15px;
}

#newsletter-modal #modal_footer ul {
  list-style-type: none;
  padding-left: 30px;
}

#newsletter-modal #modal_footer ul li::before {
  content: "✓"; 
  color: #e01b40;
  display: inline-block; 
  width: 1em; 
  margin-left: -1em;
}

#newsletter-modal #modal_footer ul li{
  margin-bottom: 5px;
}

#newsletter-modal #niet{
  text-decoration: underline;
  color: #D9CFCF;
}

#newsletter-modal #niet_container{
  text-align: center;
  padding: 5px 0px;
}

#text-defilant.banniere {
  width: 100%; 
  background-color: #e01b40; 
  height: 25px; 
  overflow: hidden; 
  white-space: nowrap; 
  position: relative; 
}

#text-defilant.banniere p{
  position: absolute;
  color: #fff;
  width: 100%;
  line-height: 25px; 
  text-align: center; 
}

#text-defilant.banniere p:hover {
  animation-play-state: paused;
}

@keyframes defilement {
  0% { transform: translateX(100%); } /* Le texte commence à droite de la bannière */
  100% { transform: translateX(-100%); } /* Le texte finit à gauche de la bannière */
}


@media (max-width: 1360px) {
  #text-defilant.banniere p {
      animation: defilement 20s linear infinite; 
  }
}


@media (max-width: 960px) { 
  .modal-content{
      width: 100%;
  }
  #container-hs-newsletter-home-title h2{
    font-size: 16px;
  }
  #container-hs-newsletter-home-title span{
    font-size: 14px;
  }
  #hs_newsletter_home_newsletter-form{
    font-size: 14px;
  }
  #hs_newsletter_home_newsletter-form #email{
    width: 80%;
  }
  #newsletter-modal{
    font-size: 14px;
  }
  #newsletter-modal #modal_footer h3 {
    font-size: 16px;
    text-align: center;
  }
  .modal-content {
    margin: 20% auto;
  }

}
