:root {
  --text-gray: #a0a0a0;
  --bg-panel: #22303f;
}

/* Corps et mise en page générale */
body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #333;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Page de contact centrée */
.contact-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* Conteneur du formulaire */
.contact-container {
  background: transparent;
  color: white;
  border-radius: 6px;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  transition: max-width 0.2s;
}

/* Titre */
.contact-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: normal;
  color: var(--text-gray);
}

/* Messages d’alerte */
.alert-contact {
  background-color: rgba(34, 48, 63, 0.9);
  color: var(--text-gray);
  padding: 10px 15px;
  border: 1px solid var(--text-gray);
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  margin-bottom: 15px;
}

/* Form groups */
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-weight: normal;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

/* Champs de formulaire */
.form-control {
  background: #22303f;
  color: #cfd8dc;
  border: 1px solid #3b4a5a;
  transition: background 0.2s, color 0.2s;
}
.form-control:focus,
.form-control.not-empty,
.form-control:focus.not-empty {
  background: #2d2d44 !important;
  color: #222 !important;
  border: 1px solid var(--text-gray) !important;
  box-shadow: none;
}

/* Styles spécifiques pour tous les champs du formulaire quand on écrit dedans */
#first_name:focus,
#first_name.not-empty,
#last_name:focus,
#last_name.not-empty,
#email:focus,
#email.not-empty,
#subject:focus,
#subject.not-empty,
#message:focus,
#message.not-empty {
  background: white !important;
  color: #333 !important;
  border: 1px solid var(--text-gray) !important;
}
textarea.form-control {
  resize: vertical;
  line-height: 1.3;
}

/* Bouton d’envoi */
.btn-submit {
  background-color: #00d6b4;
  border: none;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
}
.btn-submit:hover {
  background-color: #00c0a3;
}

/* Pied de page “Terms” */
.footer-terms-centered {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  z-index: 1000;
}
.footer-terms-centered a {
  color: #b3c2cc;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-terms-centered a:hover {
  color: #e4e8ee;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    padding: 15px;
    max-width: 100%;
  }
  .btn-submit {
    width: 100%;
    padding: 8px 0;
  }
}
