


#accueil {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

#accueil h1 {
  font-size: 24px;
  font-weight: bold;
}

main {
  max-width: 2200px;
  max-height: 2000px;
}

.bienvenue {
  font-family: var(--font-family-title);
  display: grid;
  grid-template-areas:
    "titre image"
    "programme telecharger"
    "illustration actualite";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 0.5fr 0.1fr 1fr;
  gap: 2em;
  z-index: 3;
  font-size: 32px;
  color: #fff;
  margin-bottom: 1em;
  margin-left: 2em;
  margin-right: 2em;
  background-repeat: no-repeat;
  background-size: cover;
}

.hometext {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  align-items: center;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10em;
  align-items: flex-start;
  margin-top: 10em;
}

.listhome {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-labor);
  text-align: left;
  margin-left: 3em;

}


.titlehome h1 {
  font-size: 54px;
  margin-bottom: 0.3em;
}

.titlehome h2 {
  font-family: var(--font-family-labor);
  font-size: 48px;
  margin-bottom: 0.7em;
}

.suite {
  display: flex;
  grid-area: programme;
  border: #000 1px solid;
  padding: 0.5em;
  color: #fff;
  background-color: var(--color-code-red);
  font-family: var(--font-family-labor);
  width: max-content;
  font-size: 26px;
  margin-bottom: 2em;
  margin-left: 3em;

}

.telecharger {
  grid-area: telecharger;
  font-family: var(--font-family-labor);
  padding-left: 0.5em;
  padding-top: 0.5em;
  font-size: 26px;
  display: inline-flex;

}

.telecharger::before {
  content: "\2192"
}

.fond {
  max-height: 600px;
}

.fond img {
  max-height: 100%;
  object-fit: contain;
}

.illustration {
  grid-area: illustration;
  max-height: 100%;
}

.illustration img {
  max-height: 600px;
  filter: drop-shadow(0.1rem 0.1rem 5px black);
}


.actualite {
  grid-area: actualite;
  font-size: 22px;
}

.accueil2 {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

#description {
  display: flex;
  flex-direction: column;
  margin-top: 0.7em;
}

#agenda {
  font-family: var(--font-family-labor);
}


#gazette {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  height: 650px;
  margin-top: 100px;
}

#gazette h1 {
  font-family: var(--font-family-title);
  font-size: 32px;
}

#gazette-actu {
  margin-top: 3em;
  display: flex;
  flex-direction: row;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-end;

}




.home-grid {
  margin: 1rem;
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-auto-flow: dense;
}

.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;

  overflow: hidden;
  background: #000;
  line-height: 0;
}

.home-grid a {
  display: flex;
  height: 5rem;
  max-width: fit-content;
}

.home-grid img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}

.home-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: #fff;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 1;
  text-align: center;
  background: rgba(0, 0, 0, .5);
}





@media screen and (max-width: 800px) {



  .bienvenue {
    display:flex;
    flex-direction: column;
  }

  .logo {
    display: none;
  }

  .listhome {
    font-size: 22px;
  }

  .hometext {
    flex-direction: column;
    padding-left: 0.5em;
    max-width: min-content;
    margin-top: 1.5em;
  }

  .titlehome h2 {
    font-size: 22px;
  }

  .titlehome h1 {
    font-size: 32px
  }

  .suite {
    font-size: 16px;
  }

  #gazette h1 {
    font-size: 24px;
  }

 #gazette-actu {
  flex-direction: column;
  width: 80%;
 }

  .actualite {
    flex-basis: 100px;
    font-size: 12px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }

  .home-grid a {
    padding-bottom: 52.65%;
  }

  #description {
    font-size: 18px;
  }


}
