/* https://www.youtube.com/watch?v=JNtZl9SMmLQ */
/*
dl {
  margin:0;
}
*/

/* ----------------debut css lexique sur accueil -----------------------------*/

#lexique {
width: 90%;
background: linear-gradient(135deg, #333 5%, #5a5a5a 100%);
border-right: 1px solid black;
border-bottom: 1px solid black;
display:flex;
position: relative;
flex-direction: column;
align-content: center;
justify-content: center;
margin-top:20%;
min-width:150px;
box-shadow: 4px 4px 8px #505050;
color:#fffe92;
}



.menu_lexique {
  width: 90%;
  margin-top:1em;
  text-align: center;
  position: relative;
  min-width:150px;
  margin-left:8%;
}

#lexique h2 {
  text-align: center;
  color:white;
}

.menu_lexique input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.menu_lexique label {
  position: relative;
  display: block;
  padding:0;
  cursor:pointer;
  color:whitesmoke;
}

.menu_lexique label:hover {
  color:#fffe92;
}

.menu_lexique p {
  max-height: 0;
  overflow: hidden;
  padding:0 10px;
  transition: max-height 0.4s ease;
  margin:0;
  border:0;
  color:white;
  background-color: #147587;
  text-align: justify;
  width:95%;
}

.menu_lexique input[type="radio"]:checked ~ p {
  max-height: 55em;
  background-color: #147587;
  text-align: justify;
  color:white;
  padding:1em;
  box-shadow: 4px 4px 8px #505050;
  border: 1px solid black;
  border-top:0;
  margin-top:1em;
  overflow: visible;
}

.menu_lexique input[type="radio"]:checked ~ p:before {
  content: "";
  width: 32px;
  position: relative;
  top: -1.7em;
  left:0;
  height: 20px;
  background-color: #147587;
  display: block;
  clip-path: polygon(50% 0, 100% 50%, 0% 50%);
}

#lexique > p {
  font-size: 1em;
  width:90%;
  margin: 1em 5% 0 5%;
  padding: 1em 0;
  border-top:1px solid #fffe92;
}

#lexique > p > a {
  display: block;
  text-align: center;
  color: var(--link-color-dark);
  background-color: transparent;
}

#lexique > p > a:visited {
  color: var(--link-color-vis-dark);
}

#lexique > p > a:hover {
  color: var(--link-color-hov-dark);
}

/*
.fermeture_lexique:before {
  content:"";
  width: 18px;
  position: relative;
  top: 1.5em;
  left: -0.4em;
  height: 12px;
  background-color: black;
  display: block;
  clip-path: polygon(0 0, 50% 50%, 0% 100%);
}
*/

/* ----------------fin css lexqiue sur accueil -------------------------------*/




/* css lexique_complet */

/*
#lexique_complet {
  width: 100%;
  background-color: transparent;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  display:flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  margin-top:2%;
  min-width:160px;
  box-shadow: 4px 4px 8px #505050;
  color:black;
  padding-bottom: 1em;
  list-style-type: none;
}

#lexique_complet label {
  background-color: antiquewhite;
  width: 20%;
}

#lexique_complet li {
  display: block;

}

#lexique_complet input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;

}

#lexique_complet input[type="radio"]:checked ~ p {
  max-height: 40em;
  background-color: #147587;
  text-align: justify;
  color:white;
  padding:1em;
  box-shadow: 4px 4px 8px #505050;
  border: 1px solid black;
  border-top:0;
  margin-top:1em;
  overflow: visible;
}

#lexique_complet p {
  max-height: 0;
  overflow: hidden;
  padding:0 10px;
  transition: max-height 0.4s ease;
  margin:0;
  border:0;
  color:white;
  background-color: #147587;
  text-align: justify;;
    transition: all .4s;
}

#lexique_complet p > a.modal__close {
  position: absolute;
  width: 30%;
  top: 20em;
  right: 45em;
  color: black;
  background-color: bisque;
  padding:5em;
  text-decoration: none;
}
*/

/*------------------------debut css page lexiquecomplet.html-----------------*/

#lexique_complet {
  width: 100%;
  background-color: transparent;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  display:flex;
  flex-direction: row;
  margin:2em auto;
  min-width:160px;
  box-shadow: 4px 4px 8px #505050;
  color:black;
  padding-bottom: 1em;
  list-style-type: none;
  overflow: hidden;
}

#lexique_complet > div {
  display: flex;
  flex-direction: column;
  width:33%;
}


#lexique_complet input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.menu_lexique_complet {
  width: 95%;
  margin:1% 2%;
  overflow: hidden;
  text-align: center;
  min-width:160px;
  margin-left:2%;
  background: linear-gradient(135deg, #333 5%, #5a5a5a 100%);
  color: #fffe92;
}


.menu_lexique_complet:last-child{
    margin-bottom: 0;
}
.menu_lexique_complet_label {
   display: flex;
   justify-content: space-between;
   padding: 16px;
   font-weight: bold;
   cursor: pointer;
   font-size: 0.8em;
}

.menu_lexique_complet_label:hover {
 background: linear-gradient(135deg, #605f49 5%, #5a5a5a 100%);

}

.menu_lexique_complet_label::after {
    content: "\276F";
    width: 16px;
    height: 16px;
    text-align: center;
    transition: all 0.3s;
}

.menu_lexique_complet_content {
  max-height: 0;
  overflow: hidden;
  padding:0 10px;
  transition: max-height 0.4s ease;
  margin:0;
  border:0;
  color:white;
  background-color: #147587;
  text-align: justify;
}

.menu_lexique_complet_content p {
  margin: 0;
     color: whitesmoke;
     font-size: 0.8em;
}

input:checked + .menu_lexique_complet_label {
cursor: not-allowed;
}

input:checked + .menu_lexique_complet_label::after {
transform: rotate(90deg) ;
/*faire un effet de fadding*/
opacity: 0;
transition: 2s;
}

input:checked ~ .menu_lexique_complet_content {
    max-height: 100vh;
    padding: 16px;
}

/* --------------------fin css page lexiquecomplet.php-----------------------*/
