html,
body {
  --blue: hsla(200, 100%, 50%, 0.7);
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  background-color: #00547f;
  height: 100%;
  font-family: Righteous, cursive;
  scrollbar-width: thin;
}

::selection {
  background-color: var(--blue);
  color: white;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

a {
  text-decoration: none;
  color: var(--blue);
  transition: 0.5s ease-in-out;
}

a:hover {
  color: black;
}

header {
  position: fixed;
  padding: 35px 0;
  text-align: center;
  width: 100%;
  transition: 0.5s;
}

header a {
  margin: auto 1.5%;
  padding: 15px;
  background-color: hsla(0, 0%, 100%, 0.7);
  border-radius: 50px;
  transition: 0.5s;
}

header a:hover {
  background-color: var(--blue);
}

.separe-droit {
  margin-right: 5%;
}

#bienvenue {
  text-align: center;
  background: url(../media/terre&satellite.jpg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  overflow: hidden;
}

#bienvenue .titre {
  padding-top: 3em;
}

.categorie {
  min-height: 100%;
  background-color: white;
}

.categorie:nth-child(2n) {
  background-color: var(--blue);
}

.titre {
  padding: 1.5em 0 1em 0;
  margin: 0;
  font-size: 5em;
  text-decoration: underline var(--blue) 10px;
  text-align: center;
}

.sous-titre {
  font-size: 2em;
  margin: 0;
  padding-bottom: 1em;
}

#defilement_bas {
  transition: transform 0.5s ease-in-out 25ms;
  cursor: pointer;
}

#defilement_bas:hover {
  transform: translate(0px, 30px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3em;
  align-items: flex-start;
  margin: 1em 5em;
}

.ex {
  grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
  justify-content: space-around;
}

.card {
  background: white;
  padding: 1em;
  box-shadow: 3px 3px 5px 3px rgba(0, 0, 0, 0.2);
  border-radius: 0.25em;
  max-height: var(--max-height);
  overflow: hidden;
  transition: max-height 15s;
}

.card-header {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.card-img {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  overflow: hidden;
  padding: 0;
}

.card:hover {
  max-height: 10000px;
}

.card-img > img {
  display: block;
  width: 100%;
  max-height: 1000px;
  aspect-ratio: 20/20;
  object-fit: cover;
  object-position: top;
  transition: 0.5s ease-in-out;
  border-radius: 0.25em;
}

.card-body {
  font-size: 1.3em;
}

.sticky {
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 42;
}

#phrise {
  height: 646px;
  background: center no-repeat url(../media/phrisehor.png);
}

#pourquoi ul:not(li ul) {
  font-size: 1.3em;
  background-color: white;
  margin: 0 3em;
  box-shadow: 3px 3px 5px 3px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  padding: 1em 1em 1em 2em;
}

#ou .card-img > img {
  object-fit: scale-down;
  aspect-ratio: 19/9;
}

#soutiens .card-img > img {
  object-fit: scale-down;
  aspect-ratio: 19/9;
}

footer {
  height: 50px;
  display: flex;
  justify-content: space-around;
}

.texte {
  margin: 0 5em;
  font-size: 1.5em;
}

#scroll-top img {
  height: 2em;
  position: fixed;
  bottom: 1.5em;
  right: 1.5em;
  background-color: var(--blue);
  padding: 0.7em;
  border-radius: 50px;
  transition: 0.5s;
}

.aparetre {
  opacity: 0;
  cursor: default;
}

#scroll-top:hover img {
  transform: translateY(-20px);
}

.line {
  margin: 1em auto;
  width: 80%;
  height: 5px;
  background-color: black;
}

@media screen and (max-width: 1000px) {
  body {
    font-size: 30px;
  }

  header {
    opacity: 0;
  }

  #bienvenue .titre {
    padding-top: 4em;
  }

  #phrise {
    height: 911px;
    background: center no-repeat url(../media/phrisevert.png);
  }

  .fin {
    width: auto !important;
    margin: auto;
  }

  .ex {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

#erreur {
  position: fixed;
  z-index: 50;
  margin: 7em;
  background-color: hsla(0, 0%, 100%, 0.7);
  border-radius: 50px;
  padding: 3em;
  opacity: 1;
  transition: opacity 500ms;
  cursor: pointer;
}

#erreur .titre {
  padding: 0.5em;
}
