@import url('global.css');
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap");

html {
  background-color:rgba(247, 241, 227,1.0)
}

.contact-page {
  background-color:rgba(247, 241, 227,1.0);
  flex-direction: column;
  padding: 20px;
  font-family: "Montserrat", Arial, sans-serif;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 20px;
  font-family: "Raleway", sans-serif;
}

form {
  margin: 0 auto;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: none;
  height: 200px;
}

button {
  background: linear-gradient(90deg, #330ce4 50%, #4caf50 50%);
  background-size: 200% 100%;
  background-position: right;
  color: white;
  width: 150px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-position 0.5s ease;
}

button:hover {
  background-color: #330ce4;
  background-position: left;
  /* L'animation est gérée par la propriété transition ci-dessus */
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .contact-page {
    padding: 15px;
  }
  
  .contact-page h1 {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  
  form {
    width: 95%;
    gap: 14px;
  }
  
  input, textarea {
    padding: 12px;
    font-size: 16px;
  }
  
  textarea {
    height: 150px;
  }
  
  button {
    width: 160px;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  .contact-page {
    padding: 10px;
  }
  
  .contact-page h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  
  form {
    max-width: 80%;
    gap: 12px;
  }
  
  input, textarea {
    padding: 10px;
    font-size: 16px;
  }
  
  textarea {
    height: 120px;
  }
  
  button {
    width: 140px;
    padding: 10px 16px;
    font-size: 0.95em;
    margin: 10px auto;
  }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .contact-page {
    padding: 8px;
  }
  
  .contact-page h1 {
    font-size: 1.3em;
    margin-bottom: 18px;
  }
  
  form {
    gap: 10px;
  }
  
  input, textarea {
    padding: 8px;
    font-size: 16px;
  }
  
  textarea {
    height: 100px;
  }
  
  button {
    width: 120px;
    padding: 8px 12px;
    font-size: 0.9em;
  }
}
