body {
  font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
  font-size: 24px;
  max-width: 800px;
  margin: auto;
  padding: 0;
}

/* Règles CSS pour le header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  width: 100%;
  background-color: #f8f8f8;
}

.logoClinique,
.sante {
  width: 50%;
  /* Chaque image va occuper 50% du header */
  display: flex;
  justify-content: center;
}

.logoClinique img {
  width: 80%;
}

.sante img {
  width: 60%;
}

.sante {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 25px;
  /* Ajuste l'espace en haut en prévision du texte */
  padding-bottom: 25px;
  /* Ajuste l'espace en bas en prévision du texte */
}

.texteTop,
.texteBottom {
  position: absolute;
  width: 100%;
  background-color: #009792;
  color: white;
  text-align: center;
  padding: 5px 0;
  font-size: 0.5em;
}

.texteTop {
  top: 0;
}

.texteBottom {
  bottom: 0;
}

/* Règles CSS pour la bannière avec texte */
.banniere {
  position: relative;
  width: 100%;
}

.texteBanniere {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(233, 230, 221, 0.6);
  /* Fond semi-transparent */
  color: #009792;
  text-align: center;
  padding: 5px 0;
  font-size: clamp(1rem, 5vw, 1.5em);
  /* La taille de la police s'ajuste automatiquement entre 1rem (minimum), 5% de la largeur de la fenêtre (valeur dynamique) et 1.5em (maximum).*/
  white-space: nowrap; /* Empêche le retour à la ligne */
}

.banniere img {
  max-width: 100%;
}

/* Règles CSS pour le contenu principal avec formulaire */
main {
  text-align: left;
  padding: 5px 30px;
  background-color: #f8f8f8;
}

form div {
  display: flex;
  align-items: center; /* Aligne le label avec le champ de saisie*/
  margin-bottom: 12px;
}

label {
  width: min(50%, 160px);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
#heure,
#tarif {
  display: block;
  box-sizing: border-box;
  width: min(50%, 200px);
  padding: 6px;
}

.checkbox-container {
  display: inline;
}

/* Masque la checkbox par défaut */
input[type="checkbox"] {
  appearance: none; /* Supprime le style par défaut */
  width: 24px;
  height: 24px;
  border: 2px solid #009792;
  background-color: white;
  cursor: pointer;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  /* Alignement avec le texte */
}

/* Style lorsque la checkbox est cochée */
input[type="checkbox"]:checked {
  background-color: #009792;
  border-color: #00716b;
}

/* Ajoute une coche à l'intérieur quand elle est cochée */
input[type="checkbox"]:checked::after {
  content: "✔";
  font-size: 16px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

button {
  background-color: #009792;
  color: white;
  border-radius: 4px;
  border: none;
  font-size: 24px;
  padding: 6px;
  margin: 24px 0px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.8s;
}

button:hover {
  background-color: #00716b;
  color: white;
  transform: scale(1.2);
}

/* Règles CSS pour le footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #313445;
}

.logoEcole,
.coordonnees {
  width: 50%;
  /* Chaque image va occuper 50% du footer */
  display: flex;
  justify-content: center;
  align-items: center;
}

.logoEcole img {
  width: 80%;
}

.coordonnees {
  display: block;
  width: 50%;
  color: white;
  font-size: 0.9rem;
}

@media (max-width: 400px) {
  body {
    font-size: 22px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    grid-template-columns: minmax(auto, 100%);
  }

  header {
    grid-row: 1/2;
  }

  aside {
    grid-row: 2/3;
  }

  main {
    grid-row: 3/4;
  }

  footer {
    grid-row: 4/5;
  }

  .header,
  .footer {
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .logoClinique,
  .sante,
  .logoEcole,
  .coordonnees {
    width: 100%;
  }

  .coordonnees {
    box-sizing: border-box;
    padding-left: 36px;
  }

  label {
    min-width: 120px;
  }

  button {
    font-size: 16px;
    margin: 16px 0px;
  }
}
