/* contact.css — version ajustée */

 body, input, select, textarea, button {
  font-family: "Century Schoolbook", Georgia, serif;
}
  
:root {
  --label-width: 190px;
  --bg-glass: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.15);
  --text: #efe4ca;
  --accent: #FFCD00;
  --dark: #17343f;
  --cream:#efe4ca;
  --blue-dark:#17343f;
  --blue-mid:#0e3a47;
  --border:rgba(255,255,255,.15);
}

/* Synchronisation avec topbar + bottombar */
body {
  padding-top: 120px;   /* espace sous la top-bar */
  padding-bottom: 80px; /* espace au-dessus de la bottom-bar */
}

.contact-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 55px;
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}

/* Titres plus rapprochés */
.contact-wrap h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.contact-wrap p.subtitle {
  text-align: center;
  color: rgba(239,228,202,.85);
  margin: 6px 0 30px 0;
  font-style: italic;
}

/* Champs allégés et alignés */
.form-row {
  display: grid;
  grid-template-columns: var(--label-width) 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.form-row label {
  text-align: right;
  font-weight: 500;
  color: var(--text);
  padding-right: 5px;
}

.form-row select,
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  color: var(--text);
  font-size: 0.97rem;
  transition: all .2s;
  box-sizing: border-box;
  height: 38px;
}

textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.form-row select:focus,
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  outline: none;
}

select option {
  background-color: var(--dark);
  color: var(--text);
}

/* Téléphone */
.phone-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-field select {
  width: 110px;
  flex-shrink: 0;
  height: 38px;
}
.phone-field input { flex: 1; }

.form-note {
  text-align: center;
  font-family: "Century Schoolbook", Georgia, serif;
  font-size: 0.95rem;
  color: #efe4ca;  /* couleur crème douce déjà utilisée */
  opacity: 0.85;
  margin: 10px 0 25px;
}

/* Boutons alignés à droite */
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end; /* alignés par le haut */
  gap: 14px;
  margin-top: 26px;
  font-family: "Century Schoolbook", Georgia, serif;
}

/* Styles communs */
.btn-send,
.btn-cancel {
  min-width: 130px;
  height: 46px;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: "Century Schoolbook", Georgia, serif;
  position: relative;
  top: 0;
}

/* Effet clic (press-down) */
.btn-send:active,
.btn-cancel:active {
  top: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,.2) inset;
}

/* Envoyer */
.btn-send {
  background: var(--accent);
  color: var(--dark);
  border: 1px solid var(--accent);
}
.btn-send:hover {
  background: #ffdb33;
  box-shadow: 0 0 8px rgba(255,205,0,.45);
}

/* Annuler */
.btn-cancel {
  background: rgba(255,255,255,.15);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.btn-cancel:hover {
  background: rgba(255,255,255,.25);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(255,205,0,.35);
}

/* --- Messages d'alerte ajustés --- */
.alert {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 10px auto 20px;
  max-width: 85%;
  font-family: "Century Schoolbook", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease-out;
}

/* ✅ Succès */
.alert.ok {
  background-color: #fff8dc; /* crème doux */
  color: #1a1a1a;
  border: 1px solid #d8c37a;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  line-height: 1.6;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-weight: 500;
}

.alert.ok p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #333;
}

/* ❌ Erreur */
.alert.err {
  background: #fff2f2;
  border-color: #d93025;
  color: #6d1410;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row label { text-align: left; }
  .form-actions { justify-content: center; }
}
