* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  /* Dégradé gris clair : du coin haut gauche vers le bas */
  background: linear-gradient(to bottom right, #f5f5f5, #c8c8c8);
  background-attachment: fixed;
}

main {
  text-align: center;
  padding: 20px;
}

h1 {
  margin-bottom: 10px;
}

.sous-titre {
  font-size: 1.3rem;
  margin: 0 0 20px;
}

.date-heure {
  font-size: 1rem;
  color: #555;
  margin: 0 0 30px;
  text-transform: capitalize;
}

.bouton {
  display: inline-block;
  padding: 12px 28px;
  background-color: #555;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
}

.bouton:hover {
  background-color: #333;
}

.bouton + .bouton {
  margin-left: 10px;
}

/* Page de contact */
/* La page de contact occupe toute la fenêtre et s'adapte à son agrandissement */
.formulaire {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.formulaire form {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Sujet et message se partagent la hauteur disponible (1 part / 4 parts),
   avec la même largeur et le même alignement */
.formulaire .champ.champ-sujet,
.formulaire .champ.champ-message {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.formulaire .champ.champ-sujet {
  flex: 1;
}

.formulaire .champ.champ-message {
  flex: 4;
}

.formulaire .champ-sujet textarea,
.formulaire .champ-message textarea {
  flex: 1;
  margin: 0;
  resize: none;
}

.formulaire .champ-sujet textarea {
  min-height: 46px;
}

.formulaire .champ-message textarea {
  min-height: 150px;
}

/* Chaque champ : titre en haut, zone de saisie en dessous */
.formulaire .champ {
  display: block;
  margin-bottom: 20px;
}

.formulaire label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

/* Le bouton Envoyer est sous la zone de message */
.formulaire .envoi {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.formulaire input,
.formulaire textarea {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.formulaire button.bouton {
  border: none;
  cursor: pointer;
}

.formulaire a:not(.bouton) {
  color: #555;
}

/* Adresse affichée entre le titre et le formulaire */
.adresse {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: #555;
}

/* Champ piège anti-spam : hors écran */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Message d'état après l'envoi */
.statut {
  text-align: center;
  min-height: 1.5em;
  margin: 0 0 20px;
}

.statut.succes {
  color: #2e6b34;
  font-weight: bold;
}

.statut.erreur {
  color: #a32424;
  font-weight: bold;
}

.bouton:disabled {
  opacity: 0.6;
  cursor: wait;
}
