body {
	margin: 0;
      background-color: whitesmoke;
	font-family: arial;
}

table, td, th {
      border: 1px solid black;
}

table {
      border-collapse: collapse;
      width: 100%;
}

td,th {
      text-align: center;
}

/* titre et sous-titre de l'index */

.titre_index {
     font-size: 3em;
     text-align: center;
     color: black; 
}

.soustitre_index {
      text-align: center;
      font-size: 1.3em;
      font-family: 'Times New Roman';   
}




/* bandeau defilant */

/* le block conteneur */
.marquee-rtl {
  border: 3px solid rgba(91, 60, 17, 0.5);
  max-width: 70vw;
  padding: 5px;                      /* largeur de la fenêtre */
  margin: 3em auto 3em;
  overflow: hidden;                     /* masque tout ce qui dépasse */
  box-shadow: 0 .25em .5em #CCC,inset 0 0 1em .25em #CCC;
}

/* le bloc défilant */
.marquee-rtl > :first-child {
  display: inline-block;                /* modèle de boîte en ligne */
  padding-right: 2em;                   /* un peu d'espace pour la transition */
  padding-left: 100%;                   /* placement à droite du conteneur */
  white-space: nowrap;                  /* pas de passage à la ligne */
  animation: defilement-rtl 18s infinite linear;
}

@keyframes defilement-rtl {
  0% {
    transform: translate3d(0,0,0);      /* position initiale à droite */
  }
  100% {
    transform: translate3d(-100%,0,0);  /* position finale à gauche */
  }
}











/* image */

.image {
      border: 1px solid transparent;
      border-radius: 8px;
      width: 50%;
      height: 50%;
      position: relative;
      width: calc(25% - 20px);
      height: auto;
      margin: 1vw 5vw 1vw 5vw;
      box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
      cursor: pointer;
      transition: transform 0.5s ease;
}

.image:hover {
      transform: scale(1.1);
}

/* The Modal (background) */
.modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
      position: relative;
      width: au   ;
      height: auto;
      max-width: 90%;
      max-height: 90%;
      border-radius: 5px;
      overflow: hidden;
      animation: zoomIn 0.5s;
}

@keyframes zoomIn {
      from {transform: scale(0.6);}
      to {transform: scale(1);}
}

.modal.show {
      display: flex;
      opacity: 1;
}

/* Close button */
.close {
      position: absolute;
      top: 10px;
      right: 15px;
      color: #ffffff;
      font-size: 35px;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
      position: absolute;
      bottom: 15px;
      width: 100%;
      text-align: center;
      color: #ffffff;
      font-size: 24px;
}






/* dialogue */

.dialbox_droite {
  border: solid rgba(91, 60, 17, 1) 2px;
  border-radius: 25px 25px 0px 25px;
  background-color: rgba(255, 255, 255, 1);
  position: relative;
  color: black;
  text-align: justify;
  margin-left: 15vw;
  margin-right: 15vw;
  padding: 30px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.dialbox_gauche {
  border: solid rgba(91, 60, 17, 1) 2px;
  border-radius: 25px 25px 25px 0px;
  background-color: rgba(255, 255, 255, 1);
  position: relative;
  color: black;
  text-align: justify;
  margin-left: 15vw;
  margin-right: 15vw;
  padding: 30px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.image_personnage_droite {
  border: transparent 1px rgba(91, 60, 17, 1);
  border-radius: 3px;
  float: right;
  width: 150px;
  height: 150px;
  margin-left: 10px;
}

.image_personnage_gauche {
  border: solid 1px rgba(91, 60, 17, 1);
  border-radius: 3px;
  float: left;
  width: 150px;
  height: 150px;
  margin-right: 10px;
  box-shadow: -5px 5px 12px rgba(91, 60, 17, 0.2);
}

.suivant_button {
  border: 1px solid rgba(91, 60, 17, 1.0);
  border-radius: 5px;
  padding: 3px 10px 5px 10px;
  justify-content: center;
  background-color: transparent;
  color: rgba(91, 60, 17, 1);
  cursor: pointer;
}

.suivant_button .suivant_span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.suivant_button .suivant_span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  right: -15px;
  transition: 0.5s;
}

.suivant_button:hover .suivant_span {
  padding-right: 15px;
}

.suivant_button:hover .suivant_span:after {
  opacity: 1;
  right: 0;
}







/* affichage des menus des matieres dans la page index */

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: whitesmoke;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}




/*  position des bouttons de selection des matieres dans l'index */


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

.button_selection {
      border: solid 1px transparent;
      background-color: transparent;
      padding: 5px;
      margin-left: 2vw;
      margin-right: 2vw;
      cursor: pointer;
      font-size: 0.9em;
      transition: transform 0.6s;
}

.button_selection:hover {
      transform: scale(1.1);
}



/* articles */

.articles_image {
      width: 95%;
      height: 95%;
      position: relative;
      margin: 2% 5%;
      border-radius: 10px;
      transition: transform 0.5s ease;
}

.articles_image:hover {
      transform: scale(1.05);
}

.articles_description {
      text-align: justify;
}

.articles_titre {
      font-size: 1em;
}

.articles_date {
      text-align: right;
      font-size: 0.8em;
      color: rgba(0, 0, 0, 0.5);
}

.articles_themes {
      text-align: right;
      font-size: 0.7em;
}

.grid-container {
      display: grid;
      grid-template-columns: auto auto auto auto;
      gap: 2vw;
      background-color: transparent;
      padding: 8px;
      justify-content: center;
}
.grid-container > div {
      width: 20vw;
      background-color: rgba(91, 60, 17, 0.2);
      color: black;
      border-radius: 8px;
      padding: 10px;
      text-align: center;
}


.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0px;
}

.pagination li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid gray;
  color: black;
  margin: 0 4px;
  border-radius: 5px;
}

.pagination li a.active {
  background-color: rgba(91, 60, 17, 0.2);
  color: white;
}

.pagination li a:hover:not(.active) {
  background-color: lightgray;
}











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

.button_cours {
      border: solid 1px transparent;
      border-radius: 5px;
      padding: 10px;
      background-color: transparent;
      width: 97%;
      color: balck;
      text-align: center;
      font-size: 0.9em;
}

.button_abo {
      border: solid 1px transparent;
      border-radius: 5px; padding: 10px;
      background-color: grey;
      color: balck;
      text-align: center;
      background: rgba(255, 255, 255, 0.56);
      border-radius: 16px;
}

.button_cours:hover {
      background-color: rgba(91, 60, 17, 0.2);
}

.button_abo:hover {
      background-color: rgba(91, 60, 17, 0.2);
      box-shadow: 0 6px 8px 0 rgba(255,255,255,0.24),0 7px 5px 0 rgba(0,0,0,0.19);
}

.link_cours {
      text-decoration: none;
      color: black;
}

.zone_texte {

      margin-top: 20px;
      margin-left: 23%;
      margin-right: 15%;

      text-align: justify;
      line-height: 1.5em;
}

.button_expli {
      background-color: rgba(187, 186, 183, 0.2);

      border: solid;
      border-color: black;
      border-width: 1px;     
      border-radius: 4px;

      color: black;
      font-weight: bold;

      padding: 5px;

      text-align: center;
      display: inline-block;
}

.button_expli:hover {
      box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24),0 7px 5px 0 rgba(0,0,0,0.19);
}

.div_entete {
      border-bottom-style: solid;
      border-width: 1px;
}

.link_entete {
      background-color: transparent;

      border: solid;
      border-bottom-style: hidden;
      border-right-style: hidden;
      border-color: black;
      border-width: 1px;     
      border-radius: 5px 0 0 0;

      color: black;
      font-weight: bold;

      text-decoration: none;

      padding: 8px;

      text-align: center;
      display: inline-block;
}

.link_entete:hover {
      background-color: rgba(91, 60, 17, 0.25);
}

.link_entete_present {
      background-color: rgba(91, 60, 17, 0.2);
}

.titre {
      color: rgba(0, 0, 0, 0.6);
      text-decoration: underline;
}

.exemple {
      border-style: hidden hidden hidden solid;
      border-color: #8f8787;
      border-width: 10px;
      border-radius: 5px;

      background-color: transparent;

      padding: 10px;
}

.encadre {
      border-style: hidden hidden hidden solid;
      border-color: rgba(187, 186, 183, 0.8);
      border-width: 10px;
      border-radius: 5px;

      background-color: rgba(187, 186, 183, 0.4);

      padding: 10px;
      margin-top: 3px;
}

.attention {
      border-style: solid;
      border-color: rosybrown;
      border-width: 5px;

      background-color: rgba(187, 186, 183, 0.5);

      padding: 10px;
      margin-top: 3px;
}

.definition {
      border-style: solid;
      border-color: #8f8787;
      border-width: 3px;
      border-radius: 5px;

      background-color: whitesmoke;

      padding: 10px;
      margin-top: 3px;

      box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24),0 7px 5px 0 rgba(0,0,0,0.19);
}

.exercice {
      border-style: hidden hidden hidden solid;
      border-color: grey;
      border-width: 10px;
      border-radius: 10px 10px 0px  0px;

      background-color: lightgrey;

      padding: 10px;
      margin-top: 3px;

}

.solution {
      border-style: hidden hidden hidden solid;
      border-color: grey;
      border-width: 10px;
      border-radius: 0px 0px 10px 10px;

      background-color: whitesmoke;

      padding: 10px;
      margin-top: 3px;
}

.expli {
      border-style: hidden hidden solid solid;
      border-color: #8f8787;
      border-width: 2px 3px;

      background-color: whitesmoke;

      padding: 10px;
      margin-top: 3px;

}


.resultat {
      border: double; 
      padding: 5px; 
      margin: 0; 
      width: auto;
}

.eq {
      overflow: scroll;
}

.code {
      border: transparent transparent transparent solid;
      border-radius: 8px;
      border-color: grey;
      border-width: 10px;

      background-color: black;
      color: white;

      margin: 0;
      padding: 5px;

      font-family: "Lucida Console";
}

.parisienne-regular {
      font-family: "Parisienne", cursive;
      font-weight: 600;
      font-style: normal;
}

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

.presentation {
      border: solid transparent;
      border-radius: 15px;

      padding: 5px;
      margin-left: 5%;
      margin-right: 5%;

      background-color: #8f8787;

      color: black;
}

.img_presentation {
      width: 20%;
      height: 20%;

      border-radius: 50%;
}

.h1_presentation {
      font-size: 2.5em;
}

.presentation_niveau {
      display: flex;
}

.presentation_niveau_fils {
      border: solid 1px; 
      border-radius: 10px;

      margin: 5px;
      padding-top: 10px;
      padding-bottom: 5px;

      height: 40px;

      background-color: #8f8787;

      text-align: center;
      text-decoration: none;
      font-size: 1.5em;
      color: black;

      flex: 30%;
      justify-content: space-around;
      align-self: center;

      transition: flex 0.8s, height 0.8s, background-color 0.8s;
}

.presentation_niveau_fils:hover {
      flex: 23%;
      height: 35px;

      background-color: #804d3b;
}





.dropbtn {
      border: solid 1px transparent;
      border-radius: 5px;
      padding: 10px;
      background-color: transparent;
      width: 97%;
      color: balck;
      text-align: center;
      margin-left: 2vw;
      margin-right: 2vw;
      font-size: 0.9em;

}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}










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


      .grid-container {
            display: grid;
            grid-template-columns: auto;
            
      }
      .grid-container > div {
            width: 90vw;
      }



      .img_presentation {
            border-radius: 10px;
      }

      .h1_presentation {
            font-size: 2em;
      }

      .presentation_niveau {
            flex-direction: column;
      }

      .presentation_niveau_fils {
            flex-direction: column;

            font-size: 1.2em;

            padding-top: 3px;
            padding-bottom: 3px;

            height: 30px;

            align-self: normal;

            transition: background-color 0.8s;
      }

      .presentation_niveau_fils:hover {
            background-color: #804d3b;
      }
}