.evenements-accueil {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.4em;
}

.evenements-accueil > a {
  width: 20%;
  min-width: 20em;
  padding: 1em;
  border: 1px solid #000;
  background-color: var(--secondarycolor);
  opacity: 0.8;
  color: var(--primarycolor);
  border-radius: 4px;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.evenements-accueil > a:hover {
  box-shadow: 2px 2px 0px rgb(11, 64, 80);
  transform: scale(1.02);
  background-color: rgb(148, 163, 199);
  opacity: 1;
}

.evenements-accueil > span {
  width: 20%;
  min-width: 20em;
  padding: 1em;
  border: 1px solid #000;
  background-color: var(--secondarycolor);
  border-radius: 4px;
}

.evenements-accueil > span:hover {
  box-shadow: 2px 2px 0px rgb(40, 40, 40);
  transform: scale(1.02);
  transition:
    transform 0.2s,
    background-color 0.2s;
  background-color: rgb(160, 180, 220);
}

@media screen and (width <=500px) {
  .evenements-accueil > span {
    width: 100%;
    min-width: 0;
  }
}

.photo {
  width: 100%;
}

.form_container {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}

#form_events {
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  height: 0;

  padding: 1em;
  overflow-x: hidden;
  margin-top: 2rem;

  background-color: var(--secondarycolor);
  white-space: nowrap;

  z-index: 1;
  opacity: 0;

  transition: 0.5s;
}

#form_events.open {
  height: auto;
  max-height: 100%;

  opacity: 1;
}

label {
  color: var(--primarycolor);
}

input,
textarea {
  margin: 1em;
}
