menu {
  font-family: 'Liberation';
  background: #f3f3f3;
  display: inline-flex;
  justify-content: space-between;
  width: calc(100% - 40px);
  margin: 0;
  padding: 10px 20px;
  padding-bottom: 12px;
  align-items: center;
  z-index: 18;
  position: relative;
  height: fit-content;
}

header .menu {
  position: absolute;
  justify-content: space-between;
  display: flex;
  width: 100vw;
  top: -100%;
  left: 0;
  padding: 0px;
  font-family: 'Liberation';
  transition: top 0.7s ease;
  align-items: flex-end;
  z-index: 4;
  list-style-type: none;
  background: #e1e1e1;
  flex-direction: column;
  overflow-x: hidden;
  max-height: calc(100vh - var(--menu));
    max-height: calc(calc(var(--vh, 1vh) * 100) - var(--menu));

    scrollbar-color: #e1e1e1 black;
  scrollbar-width: thin;
}

header:not(.open) .sandwich div:last-child {
  display: none;
}

header.open .sandwich div:first-child {
  display: none;
}

menu .right {
  display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 12px; /* Safari 10-11 */
gap: 12px;  
}

menu .sandwich,
menu .right a {
  background: transparent;
  border: none;
  font-family: 'Liberation';
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
    font-weight: bold;
color: black;
padding: 0;
margin: 0;

}

menu .sandwich:hover {
  font-weight: normal;
}

menu .titre {
  text-decoration: none;
  font-weight: bold;
  font-size:22px;
  cursor: pointer;
  color: black;
  line-height: 2vw;
  font-family: 'Digitek';

}

.menu .fond {
  overflow: hidden;
}

menu .right a.lang {
  display: none;
}

.menu::-webkit-scrollbar {
  display: block;
    cursor: pointer;
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: black;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #e1e1e1;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #f3f3f3;
}

.menu a {
  color: black;
  text-decoration: none;
  font-size: 20px;
}

.open .menu {
  top: var(--menu);
  transition: top 1.0s ease;
}

.menu li {
width: 100%;
padding: 0px;
display: grid;
top: 0;
}


.categorie .line, .menu .line {
	width: 200vw;
	  content: "Reinventerlapedagogie des opprimeexs";
    display: block;
	background: #f3f3f3;
;
	font-family: 'Digitek';
	height: 150px;
	overflow: hidden;
	font-size: 200px;
	line-height: 70%;
	color: #e1e1e1;
	transition: transform 1s;
}

.menu .line, .menu li .categorie {
  height: 120px;
  overflow: hidden;
}


.menu li:hover .line:nth-child(2n), .menu li .line:nth-child(2n+1) {
	transform: translateX(-250px);
}

.menu li:hover .line:nth-child(2n+1), .menu li .line:nth-child(2n) {
  transform: translateX(0px);
}

.categorie.projets .line, .menu .projets .line, body.article .titlepage .line, body.outil .titlepage .line, body.page .titlepage .line {
  background: var(--article-color);
      content: "lkadsnventerlapedagogie des opprimeexs";

}

 .categorie.recherche .line, .menu .recherche .line, body.recherche .titlepage .line {
  background: var(--recherche-color);
  content: "lkadsnventerlapedagogie des opprimeexs";
}

 .categorie.divers .line, .menu .divers .line, body.divers .titlepage .line, body.comev .titlepage .line {
  background: var(--divers-color);
  content: "lkadsnventerlapedagogie des opprimeexs";
}

 .categorie.roadmap .line, .menu .roadmap .line, body.roadmap .titlepage .line {
  background: var(--roadmap-color);
  content: "lkadsnventerlapedagogie des opprimeexs";
}


.menu li.outils:before {
  background: #c57cff;
  color: lightgreen;
}

.menu li a {
	padding: 15px;
	background: black;
  color: #e1e1e1;
	font-weight: bold;
	max-width: calc(100vw - 35px);
  text-align: left;
  display: flex;
  justify-content: space-between;

}

.menu li a:hover {
	color: black;
	background: #f3f3f3;
	-webkit-text-stroke: 0px;
}

.menu li a div.sub, .menu li a span, .info .spec {
	font-size:15px;
	font-weight: normal;
	-webkit-text-stroke: 0px;
	text-transform: none;
	padding-top: 5px;
	max-width: 95vw;
	line-height: 110%;
}

.menu li a div + span, .info .spec {
  color: black;
  background: white;
  min-width: max-content;
  padding: 8px 5px;
  height: fit-content;
  margin-left: 10px;
  text-transform: lowercase;
}

.menu li.dropdown a:not(:last-child) {
	border-bottom: 1px solid #f3f3f3;
}

.menu li .categorie {
	    position: absolute;
    display: flex;
    align-items: start;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(29px, 2vw, 50px);;
    padding: 0px 20px;
    text-transform: uppercase;
    flex-direction: column;
}

.menu li .categorie span {
  text-transform: none;
font-size: clamp(14px, 1.1vw, 25px);
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  left: 0;
  top: var(--menu);
  width: 100%; /* Full width */
  height: calc(100vh - var(--menu)); /* Full height */
  height: calc(calc(var(--vh, 1vh) * 100) - var(--menu));

  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal.open {
  display: flex;
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: flex;
  width: 80%;
  max-height: calc(100vh - var(--menu));
    max-height: calc(calc(var(--vh, 1vh) * 100) - var(--menu));

}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {opacity:0.0}
  to {opacity:1.0}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s; text-decoration: none;
  cursor: pointer;

}

.close:hover,
.close:focus {
  color: #bbb;
 }

 body.article span.close:hover {
  color: #ff9000;
 }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

@media print {
  menu, .menu {
    display: none;
  }
}

@media screen and (max-width: 980px) {

  menu .titre {
    line-height: 6vw;
  }

  menu .titre, menu .sandwich, menu .right a {
    font-size: 15px;
    width: max-content;
  }

  .menu li a div.sub {
        font-size: 14px;

}

menu .right {
      display: flex;
     gap: 0px;
    flex-direction: column;
    align-items: end;
}

.menu li {
  position: relative;
}

.menu li a div + span, .info .spec {
  width: min-content;
  min-width: unset;
  text-align: center;
}

}