/* -------------------------------------------------------------------------
   1) Réinitialisation basique et fond
------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, rgb(98 192 203 / 37%), #0791cb);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------------------
   2) Conteneur principal
------------------------------------------------------------------------- */
.container {
    text-align: center;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 65%;
}

.logo {
    width: 150px;
  max-width: 250px;
  margin: 0 auto 2rem;
  display: block; /* permet de centrer l'image */
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* =======================
   3) Styles du formulaire
========================= */
.form-data-container {
  /* Taille et arrière-plan */
  max-width: 420px;
  background: linear-gradient(0deg, #fff 0%, #f4f7fb 100%);
  border-radius: 20px;
  padding: 20px 35px;
  border: 5px solid #fff;
  box-shadow: rgba(133, 189, 215, 0.878) 0px 10px 30px -20px;
  margin: 20px;

  /* Pour que l'animation de réduction se voie correctement */
  overflow: hidden;
}

.heading {
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  color: rgb(16, 137, 211);
}

.subtitle {
  text-align: center;
  font-weight: 300;
  font-size: 15px;
  color: black;
}

.form {
  margin-top: 10px;
}

.form .input {
  width: 100%;
  background: white;
  border: none;
  padding: 15px 20px;
  border-radius: 20px;
  margin-top: 15px;
  box-shadow: #cff0ff 0px 10px 10px -5px;
  border-inline: 2px solid transparent;
}

.form .input::-moz-placeholder {
  color: rgb(170, 170, 170);
}

.form .input::placeholder {
  color: rgb(170, 170, 170);
}

.form .input:focus {
  border: 1px solid #12B1D1;
}

.form .submit-button {
  display: block;
  width: 100%;
  font-weight: bold;
  background: linear-gradient(135deg, #63c1cb, #0791cb);
  color: white;
  padding-block: 15px;
  margin: 20px auto;
  border-radius: 20px;
  box-shadow: rgba(133, 189, 215, 0.878) 0px 20px 10px -15px;
  border: none;
  transition: all 0.2s ease-in-out;
}

.form .submit-button:hover {
  transform: scale(1.03);
  box-shadow: rgba(133, 189, 215, 0.878) 0px 23px 10px -20px;
}

.form .submit-button:active {
  transform: scale(0.95);
  box-shadow: rgba(133, 189, 215, 0.878) 0px 15px 10px -10px;
}


/* =======================
   4) Styles du bouton principal
========================= */
.open-modal-btn {
    width: 167px;
    height: 47px;
    border-radius: 50px;
    border: none;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-duration: .3s;
    overflow: hidden;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.062);
    margin-bottom: 10px;
    }

    .IconContainer {
        width: 35px;
        height: 35px;
        background-color: rgb(103, 74, 228);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition-duration: .3s;
    }

    .icon {
      border-radius: 1px;
    }

    .text {
        height: 100%;
        width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgb(26, 26, 26);
        transition-duration: .3s;
        font-size: 1.04em;
        font-weight: 600;
        margin-bottom: 0px;
    }


/* =======================
   5) Styles de la modal (popup)
========================= */

.modal {
  /* On utilise display: flex pour centrer le contenu */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Taille plein écran */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Fond noir transparent, animé via l’opacité */
  background-color: rgba(0,0,0,0.6);

  /* On commence masqué */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Contenu du modal : animation d'ouverture */
.modal-content {
  position: relative;
  transform: translateY(30px) scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Quand on ajoute la classe .show à .modal */
.modal.show {
  opacity: 1;
  pointer-events: auto; /* On réactive les clics */
}

/* Et on anime le .modal-content en même temps */
.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Bouton de fermeture (X) */
.close-btn {
  position: absolute;
  top: 1em;
  right: 1.3em;
  color: #333;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
}


/* -------------------------------------------------------------------------
   6) Bouton "Envoyer"
------------------------------------------------------------------------- */

.send-btn {
      display: block;       /* Pour que margin: auto fonctionne */
      margin: 1em auto 0;   /* Marge en haut (1em), auto sur les côtés, 0 en bas */
  font-size: 20px;
  background: #0791cb; /* Couleur adaptée à votre site. Ex: "royalblue" par défaut */
  color: white;
  padding: 0.7em 1em;
  font-size: 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.send-btn span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}

.send-btn svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

/* Le "rebond" du svg */
.send-btn:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

/* Translation et rotation du svg au survol */
.send-btn:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
  
}

/* Translation du texte au survol */
.send-btn:hover span {
  transform: translateX(5em);
}

/* Effet "rétrécissement" au clic */
.send-btn:active {
  transform: scale(0.95);
}

/* Animation "fly-1" */
@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }
  to {
    transform: translateY(-0.1em);
  }
}

/*
Optionnel:
Si vous souhaitez ajuster la marge en haut/bas du bouton
ou l'aligner avec vos autres éléments, vous pouvez ajouter:
.send-btn {
  margin-top: 1em;
}
*/


/* -------------------------------------------------------------------------
   7) Lien de contact mail
------------------------------------------------------------------------- */
.contact-email {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-email i {
  margin-right: 0.5rem;
}

.contact-email:hover {
  color: #eee;
}


/* -------------------------------------------------------------------------
   8) Site en construction
------------------------------------------------------------------------- */
/* Conteneur principal : "Site en construction" */
.construction-badge {
    background: linear-gradient(to right, #2563eb, #8b5cf6);
    color: #fff;
    width: 250px;
    height: 50px;
    font-size: 1em;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Icône (SVG) : taille + animation de rotation */
.spin-icon {
  height: 1.25rem; /* équivaut ~ 20px */
  width: 1.25rem;
  margin-right: 0.75rem; /* espacement entre l'icône et le texte */
  fill: currentColor;    /* utilise la couleur du parent (blanc) */
  
  /* Animation de rotation */
  animation: spin 1s linear infinite;
}

/* Gérer la transparence du cercle et du chemin */
.opacity-25 {
  opacity: 0.25;
}
.opacity-75 {
  opacity: 0.75;
}

/* Keyframes pour la rotation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* -------------------------------------------------------------------------
   9) Textes
------------------------------------------------------------------------- */
.site-refonte-text {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px 100px;
    text-align:justify;
    text-shadow: black 0px 1px 0px;
}

.form-text-infos {
    
}

/* =======================
   10) Message de succès
========================= */
/* Dans .success-message, vous pouvez réduire la taille ou le padding */
.success-message {
  display: none;
  text-align: center;
  color: #0791cb;
  font-weight: bold;
  margin-top: 15px;
  padding: 1rem; /* Si besoin, ajustez */
  font-size: 1rem;
}

