html {
  min-height: 100%;
}

video {
  max-width: 100%;
}

img {
  max-width: 100%;
}

.haut_de_page {
  display: grid;
  grid-template-columns: 20% 80%;
  padding: 20px;
  height: 10%;
}

.haut_de_page #logo {
  grid-column: 1;
}

.haut_de_page #logo img {
  width: 70%;
}

.haut_de_page #text_accueil_LH {
  grid-column: 2;
  align-self: center;
  font-size: 3.5vw;
}

@media (max-width: 1200px) {
  .haut_de_page #text_accueil_LH {
    font-size: xxx-large;
  }
}

.menu {
  margin: 0 auto;
  position: -webkit-sticky;
  position: sticky;
  border-radius: 25px;
  grid-column: 2;
  grid-row: 1;
  font-size: xx-large;
  align-self: center;
  border-radius: 2vw;
}

@media (max-width: 1200px) {
  .menu {
    margin: 0 auto;
    position: -webkit-sticky;
    position: sticky;
    border-radius: 25px;
    grid-column: 2;
    grid-row: 1;
    font-size: 4vw;
    align-self: center;
    border-radius: 2vw;
  }
}

.menu ul {
  list-style-type: none;
  padding-inline-start: 0px;
}

.menu > ul > li {
  float: left;
  width: 50%;
  text-align: center;
  position: relative;
  align-content: center;
}

@media (max-width: 1200px) {
  .menu > ul > li {
    float: left;
    width: 33.3334%;
    text-align: center;
    position: relative;
  }
}

.menu ul li a {
  padding: 10px;
}

.menu ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: stretch;
}

.menu ul::after {
  content: "";
  display: table;
  clear: both;
}

.menu a {
  display: block;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 10px 0px;
}

.sous {
  display: none;
  position: absolute;
  width: 300%;
  margin-left: -4px;
  border-radius: 4vw;
  padding-inline-start: 0px;
  font-size: xxx-large;
  text-align: center;
  height: 0;
  opacity: 0;
}

.menu > ul li:hover .sous {
  display: block;
  transition: all 0.3s ease-in-out;
  height: fit-content;
  opacity: 100%;
}

.menu > ul li:hover .sous li {
  display: block;
}

.sous li {
  float: none;
  width: 100%;
  /*text-align: left;*/
  border-radius: 2vw;
  display: none;
  animation: appear 0.5s;
  animation-iteration-count: 1;
}

.sous a {
  padding: 10px;
  border-bottom: none;
}

.sous a:hover {
  border-bottom: none;
}

.menu-ressources > a::after {
  content: "▼";
}

.corps_de_page {
  overflow: auto;
  padding: 2vw;
  font-size: x-large;
  border-radius: 2vw;
  align-self: start;
  /* margin-bottom:100px; */
}

@media (max-width: 1200px) {
  .corps_de_page {
    overflow: auto;
    border-radius: 2vw;
    align-self: start;
    font-size: x-large;
  }
}
/* 
   * Ajouter de la marge entre chaque meme
   */
.meme img {
  width: 80% !important;
}

.corps_de_page img {
  object-fit: contain;
  display: block;
  margin: auto;
  max-height: 700px;
  min-width: 85%;
}

@media (max-width: 1200px) {
  .corps_de_page img {
    max-height: 900px;
    min-width: 95%;
  }
} 

.corps_de_page video {
  width: 80% !important;
  object-fit: contain;
  display: block;
  margin: auto;
  max-height: 800px;
}

@media (min-width: 1201px) {
  .corps_de_page > img {
    height: calc(
      (100vw - 80px) / 2
    ); /* set a smaller max-height for larger screens */
  }
}

.mot_de_la_redaction {
  border-radius: 2vw;
  padding: 2vw;
  text-align: justify;
}

.grille_page {
  grid-template-areas: "left body right";
  grid-template-columns: 1fr 8fr 1fr;
  display: grid;
  text-align: center;
}

@media (max-width: 1200px) {
  .grille_page {
    grid-template-areas: "left body right";
    grid-template-columns: 0.2fr 8fr 0.2fr;
    display: grid;
    text-align: center;
  }
}

.grille_page_2 {
  grid-template-areas: "left side body right";
  grid-template-columns: 0.5fr 1fr 4fr 0.5fr;
  display: grid;
  margin-bottom: 100px;
}

@media (max-width: 1200px) {
  .grille_page_2 {
    grid-template-areas:
      "left side right"
      "left body right";
    grid-template-columns: 1fr 20fr 1fr;
    display: grid;
    row-gap: 1vw;
    margin-bottom: 100px;
  }
}

.grille_body {
  grid-area: body;
}

.side {
  overflow: auto;
  font-size: 1vw;
  border-radius: 2vw;
  grid-area: side;
  margin-right: 1.5vw !important;
  padding: 0.8vw !important;
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
  align-self: start;
}

@media (max-width: 1200px) {
  .side {
    overflow: auto;
    font-size: 1vw;
    border-radius: 2vw;
    grid-area: side;
    margin-right: 0px !important;
    padding: 0.8vw !important;
    position: relative;
    top: 0;
    align-self: auto;
    padding-left: 0px;
  }
}

.large_element_hors_grille {
  padding-left: 2vw;
  padding-right: 2vw;
}

blockquote {
  border-radius: 12pt;
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
  padding-left: 2vw;
  padding-right: 2vw;
}

.mot_de_la_redaction blockquote p {
  font-family: cursive;
  font-size: 1.5vw;
}

.logo {
  vertical-align: middle;
  height: 1.5em;
  margin-left: 1ex;
  margin-right: 1ex;
}

.side_div {
  border-radius: 2.3vw;
  padding: 1.5vw;
  font-size: 1vw;
}

@media (max-width: 1200px) {
  .side_div {
    border-radius: 2.3vw;
    padding: 1.5vw;
    font-size: 2vw;
  }
}

.side_div a {
  display: -webkit-box;
  margin-bottom: 1vw;
}

.side_div p {
  display: -webkit-box;
  margin: unset;
}

@media (max-width: 1200px) {
  .hide_smol {
    display: none !important;
  }
}

.menu > ul > li:first-child {
  border-radius: 2vw 0 0 2vw !important;
}

.menu > ul > li:last-child {
  border-radius: 0 2vw 2vw 0 !important;
}

.menu > ul > li:not(:first-child):not(:last-child) {
  border-radius: 0;
}

@media (min-width: 1200px) {
  .hide_big {
    display: none !important;
  }

  .menu > ul > li:first-child {
    border-radius: 2vw 0 0 2vw !important;
  }

  .menu > ul > li:nth-child(2) {
    border-radius: 2vw 0 0 2vw !important;
  }

  .menu > ul > li:not(:first-child):not(:last-child):not(:nth-child(2)) {
    border-radius: 0;
  }
}

.heatmap {
  display: grid;
  align-self: center;
  min-height: auto;
  grid-template-columns: repeat(100, 1fr);
  min-height: 0; /* NEW */
  min-width: 0; /* NEW; needed for Firefox */
  /* grid-gap: 1px; */
  width: 80vmin;
  margin: auto;
  background: #3e3e3e;
}

.pixel {
  aspect-ratio: 1;
  min-width: 0; /* NEW; needed for Firefox */
}

div.pixel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.padded {
  padding: 0.5em;
}

.colorgrid {
  display: grid;
  align-self: center;
  min-height: auto;
  grid-template-columns: repeat(12, 1fr);
  min-height: 0; /* NEW */
  min-width: 0; /* NEW; needed for Firefox */
  grid-gap: 5px;
}

.colorgrid div {
  text-align: center;
  margin-top: 1em;
}

@media (max-width: 1200px) {
  .pixel {
    width: 100%;
  }

  .colorgrid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@keyframes deploy {
  from {
    height: 0;
  }
  to {
    height: fit-content;
  }
}

@keyframes appear {
  from {
    opacity: 0%;
    transform: translateY(-20px);
    user-select: none;
  }

  to {
    opacity: 100%;
    transform: translateY(0);
    user-select: unset;
  }
}

p:has(img) {
  text-align: center;
}

.side_div a,
.sous a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.side_div a {
  justify-content: left;
}

.centered {
  text-align: center;
}


.search_result {
  overflow: auto;
  padding: 2vw;
  font-size: x-large;
  border-radius: 2vw;
  align-self: start;
  a:visited{color:black}
  a:link{color:black}
}