@media (max-width: 900px) and (orientation: landscape) {
  .mobile-landscape-blocker {
    display: flex !important;
    position: fixed;
    z-index: 99999;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
    top: 0; left: 0; right: 0; bottom: 0;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    text-align: center;
    padding: 2em;
  }
  body *:not(.mobile-landscape-blocker) {
    display: none !important;
  }
}
body {
    background: #310439;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    padding-top: 0; /* Suppression du padding-top */
    overflow-x: hidden; /* Empêche le scroll horizontal */
    overflow-y: hidden; /* Barre de défilement uniquement si nécessaire */

}


.header-bar {
    background-color:  #dfcfec00;
          backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
    width: 100%;
    height: 150px;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box; /* Empêche le débordement */
    text-align: center;
    box-shadow: 0 2px 12px #a97bcf44;
}

.header-bar h1 {
    font-family: "Pinyon Script", sans-serif;
    color:#dfcfec;
    font-size: 75px;
    text-align: center; /* Ajout pour centrer le texte horizontalement */
    margin-top: 20px; /* Ajustez cette valeur pour le centrage vertical */
      font-weight: 500;
  
}
.header-bar h2 {  
    
    font-family: "Cormorant Garamond", sans-serif;
    color:#ffffff88;
    font-size: 20px;
    text-align: center; /* Optionnel, déjà hérité de .header-bar */
    position : relative;
    bottom: 70px;
    right: -25px;
          font-weight: 400;


 
  
   
    
}  

.contact-form-container {
    background-color: #dfcfec00; /* Fond inchangé */
    border: 1px solid #dee2e6; /* Bordure identique */
    border-radius: 30px; /* Bordure légèrement arrondie */
    padding: 25px;
    width: 300px; /* Permet à la box de s'adapter à la largeur max définie */
    min-height: 300px; /* Hauteur minimum au lieu de fixe */
    height: auto; /* Hauteur automatique qui s'adapte */
    max-width: 450px; /* Largeur identique */
    margin: 170px auto 50px auto; /* Ajout de marges pour le scroll */
    position: relative; /* Changé de fixed à relative */
    left: auto;
    transform: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* Ombre subtile identique */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 900;
}


.contact-form-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}




label {
    display: block;
    margin-bottom: 8px;
   
    color: #555;
}

input, textarea {
    font-family: "Montserrat", sans-serif; /* Police de caractères identique */
    width: 300px; /* Réduit les marges latérales pour rendre les champs plus larges */
    max-width: 500px; /* Définit une largeur maximale pour éviter qu'ils ne deviennent trop grands */
    font-size: 0.80rem; /* Taille de police identique */
    padding: 10px 10px 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    margin-bottom: 15px; /* Augmente l'espace entre les champs */
    margin-top: 2px;
    background-color: #ffffff3c;
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur totale */
    display: block; /* Assure que l'input est un bloc */
    margin-left: auto; /* Centre horizontalement */
    margin-right: auto; /* Centre horizontalement */
    color: #ffffff;

}

input::placeholder,
textarea::placeholder {
    color: #ffffffc1; /* Couleur des placeholders inchangée */
}

button {
    font-family: "Montserrat", sans-serif; /* Police de caractères identique */
    padding: 8px 15px;
    background: #6c0d9b;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    display: block; /* Assure que le bouton est un bloc */
    margin:  auto; /* Centre horizontalement le bouton */
    border: 2px solid antiquewhite; /* Ajoute un contour blanc */
    width: 300px; /* Réduit les marges latérales pour rendre les champs plus larges */
    max-width: 500px; /* Définit une largeur maximale pour éviter qu'ils ne deviennent trop grands */
    
}

button:hover {
     background: #b014fd;
}

textarea#message {
  background-color: #ffffff00;
    resize: none; /* Désactive le redimensionnement */
    height: 160px; /* Hauteur fixe pour le textarea */
    overflow: auto; /* Ajoute une barre de défilement si le contenu dépasse */
 
}
/* Message pop-up pour inscription/connexion */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    width: 80vw;
    padding: 200% 200%;
    background: #310439c9;
    color: #ffffff;
    text-align: center;
    border-radius: 18px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(49,4,57,0.13), 0 1.5px 8px rgba(49,4,57,0.08);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 0.5px;
    border: 2.5px solid #e2d0f3;
    transition: box-shadow 0.2s;
}
.popup-message.success {
    background: #310439c9;
    color: #ffffff;
    font-weight: 300;
   
}
.popup-message.error {
    background: #310439c9;
    color: #ffffff;
    font-weight: 300;
 
}
.popup-message strong {
    font-weight: bold;
}

@media (max-width: 600px) {
  body {
    padding-top: 111px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    overflow: hidden !important;
    border-radius: 50px !important;

  }
  .header-bar {
    height: 111px !important;
    min-height: 111px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
  }
  .header-bar h1 {
    font-size: 48px !important;
    margin: 0 !important;
  }
  .header-bar h2 {
    font-size: 14px !important;
    left: 5px !important;
    bottom: 10px !important;
    margin: 0 !important;
  }
  .contact-form-container {
    width: 90vw !important;
    max-width: 300px !important;
    height: 350px !important;
    padding: 12px !important;
    position: fixed !important;
    left: 50% !important;
       bottom: 8% !important;
    transform: translateX(-50%) !important;
    z-index: 900 !important;
  }
  input, textarea {
    width: 90% !important;
    font-size: 12px !important;
    padding: 8px 8px 8px 10px !important;
    border-radius: 18px !important;
  }
  button {
   width: 90% !important;
    font-size: 12px !important;
    border-radius: 18px !important;
    padding: 8px 0 !important;
  }
  textarea#message {
    font-size: 12px !important;
  }
  h1 {
    font-size: 18px !important;
    margin-bottom: 18px !important;
  }
}

/* Tablette : 601px à 900px !important */
@media (min-width: 601px) and (max-width: 1200px) {

  .contact-form-container {
    top: 15%!important;
    width: 100% !important;
    max-width: 400px !important;
    height: 450px !important;
        border-radius: 50px !important;
  }

  

  
  input {
    width:95% !important;
    height: 45px !important;
    font-size: 16px !important;
    padding: 10px 10px 10px 15px !important;
    border-radius: 30px !important;
    margin-bottom: 28px !important;
  }
  textarea {
         width:95% !important;
  
    height: 150px !important;
    font-size: 16px !important;
    padding: 10px 10px 10px 15px !important;
    border-radius: 30px !important;
    resize: none !important; /* Désactive le redimensionnement */
    margin-bottom: 28px !important;
  } 

  button {
       width:95% !important;
    height: 45px !important;
    font-size: 16px !important;
    padding: 10px 15px !important;
    border-radius: 30px !important;
  }

  .header-bar h1 {
    font-size: 75px !important;
    
  }
  h2 {
    font-size: 24px !important;
    left: 5px !important;
  }

}



    @media (min-width: 1000px) and (max-width: 1200px) and (orientation: landscape) {

        .contact-form-container {
    top:auto!important;
   
  }
    }


@media (min-width: 1300px) and (max-width: 2000px) {

  .header-bar 
  {
    height: 180px !important;
    min-height: 180px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
 
  }
  .header-bar h1 {
    font-size: 100px !important;
   
  }
  .header-bar h2 {
   font-size: 27px !important;
    left: 35px !important;
    top : -91px !important;
 }
.contact-form-container {
  left: 50% !important;
  top: 60%!important;
  transform: translate(-50%, -50%) !important;
  margin: 0 auto !important;
  position: fixed !important;
}

input#nom, input#email, textarea#message, button {

    font-size: 14px !important;

 }
  
 }






