* {
  padding: 0;
  margin: 0;
  font-family: "Segoe UI";
  box-sizing: border-box;
}
li {
  list-style-type: none;
  text-decoration: none;
}

body {
  background-image: url("../images/ab.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* backdrop-filter: blur(8px); */
  background-attachment: fixed;
  /* background-color:#001; */
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

#bodyJS {
  background-image: url("images/jdc.jpg");
}

/* Menu de navigation */
nav {
  background-color: #01257d;
  display: flex;
  height: 90px;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: calc(0.7rem + 1.2vw);
}
h3 {
  color: white;
}
.lg {
  text-decoration: none;
  color: white;
  transition: all 0.3s;
}
.lg:hover {
  color: #003;
}
.langage {
  color: #031e71;
  font-size: calc(0.9rem + 1vw);
  font-weight: bold;
}
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60%;
}
.anav {
  text-decoration: none;
  transition: all 0.3s;
  color: #00ffff;
}
.anav:hover {
  color: white;
}

#icons {
  cursor: pointer;
  display: none;
  font-size: calc(0.8rem + 1.2vw);
  color: #00ffff;
  font-weight: bold;
}
.anav,
.anav:visited {
  text-decoration: none;
}
a:hover {
  color: white;
}
/* Fin Menu de navigation */

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

#myBtn {
  display: none;
  position: fixed;
  width: 100px;
  height: 100px;
  bottom: -30px;
  right: 30px;
  z-index: 99;
}

#myBtn img {
  width: 50px; /* Ajustez la taille de l'image selon vos besoins */
  height: 50px; /* Ajustez la taille de l'image selon vos besoins */
  border-radius: 50%; /* Assurez-vous que l'image est de forme ronde */
  border: none;
  transition: all 0.3s;
}

#myBtn:hover img {
  opacity: 0.8; /* Opacité réduite au survol */
  transform: scale(0.95);
}

#myBtn.show {
  display: inline-block;
}

.cards {
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* .content{
    flex-grow: 1;
    font-size: 30px;

} */
.cards .items {
  width: 250px;
  height: 250px;
}
.cards .items a {
  text-decoration: none;
}
.cards .items img {
  width: 100%;
  border-radius: 5px;
}
.cards .items h3 {
  font-size: calc(0.7rem + 1.3vw);
  height: 55px;
  /* padding: 5px; */
}
.cards .items span {
  color: #00ffff;
  font-weight: bold;
}

#titre {
  color: white;
  /* text-align: justify; */
  font-size: calc(1rem + 2.7vw);
  width: 93%;
  position: relative;
  top: 40px;
  left: 20px;
  /* background-color: #01257D; */
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  /* padding: 10px; */
  border-radius: 10px;
}

.video {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  position: relative;
  top: 100px;
  padding-left: 50px;
}

iframe {
  border-radius: 8px;
  width: 80%;
  height: 550px;
}

.copy-button {
  cursor: pointer;
  background-color: #4caf50;
  /* background-color:#01257D; */
  color: white;
  border: none;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin-bottom: 10px;
}

main {
  width: 85%;
  position: relative;
  top: 200px;
  /* height: 700px; */
  left: 30px;
}
/* .editeur {
  width: 70%;
  position: relative;
  top: 200px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  left: 50px;
  row-gap: 20px;
  height: 700px;
}

.langage {
  font-weight: bold;
}
pre {
  background-color: rgb(255, 255, 255);
  width: 100%;
  border-radius: 5px;
  overflow: scroll;
  font-size: calc(0.6rem + 1vw);
}

.description {
  width: 80%;
  position: relative;
  top: 250px;
  margin-bottom: 150px;
  left: 50px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}
.description div {
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  overflow: scroll;
  font-size: calc(0.6rem + 1vw);
  width: 100%;
  padding: 10px;
}
.description div a {
  color: #01257d;
  text-decoration: none;
}
pre #codeBlock {
  position: relative;
  display: flex;
  row-gap: 5px;
  flex-direction: column;
  /* width: 95%; */
/* padding-left: 20px; 
} */

.pages {
  width: 40%;
  position: relative;
  left: 30%;
  bottom: -700px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 50px;
  background-color: rgba(0, 0, 0, 0.747);
  border-radius: 8px;
}

.pages a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: calc(0.6rem + 1vw);
  transition: all 0.3s ease-in-out;
}
.pages a img {
  width: 70px;
}
.pages a:hover {
  color: #00ffff;
  scale: 0.98;
}

/* FOOTER */
/* footer{
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #01257D;
    position: relative;
    bottom: 0;
    
    margin-top: 400px;
    padding: 20px;
    flex-shrink: 0;
}
footer a img{
    height: 40px;
    transition: all .8s;
}
footer a img:hover{
    transform: rotateY(180deg);
    
    position: relative;
    top: -5px; 
}
footer p{
    font-size: calc(.8rem + .5vw);
    font-weight: bold;
    color: white;
}
footer div{
    display: flex;
    column-gap: 10px;
    background-color: rgba(245, 245, 245, 0.836);
    padding: 15px;
    border-radius: 7px;
} */

#comment {
  position: relative;
  top: 350px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  height: 1000px;
  justify-content: space-around;
  align-items: start;
}
#comment h2 {
  text-align: center;
  color: #01257d;
  font-size: calc(0.9rem + 1.1vw);
  background-color: rgba(255, 255, 255, 0.656);
  padding: 5px;
  border-radius: 2px;
}
#comment div {
  max-height: 300px;
  padding: 15px;
  /* border: 1px solid black; */
  width: 70%;
  overflow: scroll;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.815);
  overflow-x: hidden;
  /* background-color: rgba(128, 128, 128, 0.252); */
}
#comment div ul {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}
#comment div ul li {
  list-style: circle;
  position: relative;
  left: 20px;
  min-height: 30px;

  color: white;
}
.commentaire {
  font-size: calc(0.6rem + 0.9vw);
  overflow-x: hidden;
}
.commentaire span {
  font-size: calc(0.6rem + 0.9vw);
  font-weight: bold;
  color: #00ffff;
}

#comment form {
  display: flex;
  flex-direction: column;
  width: 70%;
  row-gap: 15px;
  align-self: flex-start;
}
#comment form input {
  height: 40px;
  background-color: rgba(0, 0, 0, 0.816);
  border: none;
  color: white;
  border-radius: 5px;
  padding: 5px;
  font-size: 18px;
  font-size: calc(0.6rem + 0.8vw);
}
#comment form textarea {
  background-color: rgba(0, 0, 0, 0.815);
  border: none;
  color: white;
  border-radius: 5px;
  padding: 5px;
  font-size: calc(0.6rem + 0.8vw);
}
#comment form input[type="submit"] {
  width: 30%;
  background-color: #01257d;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.389) 0px 15px 25px,
    rgba(0, 0, 0, 0.34) 0px 5px 10px;
}
#comment form input[type="submit"]:hover {
  transform: scale(0.97);
}

@media (max-width: 970px) {
  /* footer{
        flex-direction: column;
        row-gap: 10px;
        height: 180px;
    } */

  iframe {
    border-radius: 8px;
    width: 800px;
    height: 400px;
  }
  @media (max-width: 900px) {
    iframe {
      border-radius: 8px;
      width: 725px;
      height: 375px;
    }
    .editeur {
      width: 90%;
      left: 30px;
    }
    #myBtn {
      bottom: -30px;
      right: -30px;
    }
  }

  /* footer a img{
    height: 30px;
    }  
    footer div {
        padding: 10px;
    } */
  #formes-items {
    width: 260px;
    height: 260px;
  }
  iframe {
    border-radius: 8px;
    width: 700px;
    height: 350px;
  }
}

@media (max-width: 800px) {
  #icons {
    display: block;
  }
  #icons::before {
    content: " \2630";
  }
  .active #icons::before {
    content: "\2715";
  }
  nav ul {
    position: absolute;
    left: -100%;
    flex-direction: column;
    top: 3%;
    background-color: #01257d;
    width: 100%;
    height: 150px;
    text-align: center;
    transition: 0.8s;
    text-transform: uppercase;
    padding-bottom: 20px;
    padding-top: 20px;
    z-index: 2000;
  }
  nav li {
    padding: 5px 0;
  }
  nav ul {
    font-size: calc(0.6rem + 1vw);
  }
  nav li:hover {
    background-color: rgb(162, 214, 234);
  }

  nav.active ul {
    left: 0;
  }

  iframe {
    border-radius: 8px;
    width: 600px;
    height: 300px;
  }
  .editeur {
    width: 90%;
    left: 25px;
  }
  #myBtn img {
    width: 35px; /* Ajustez la taille de l'image selon vos besoins */
    height: 35px; /* Ajustez la taille de l'image selon vos besoins */
    right: 10px;
  }

  .pages {
    width: 40%;
    bottom: -500px;
    column-gap: 50px;
  }
  .pages a img {
    width: 50px;
  }
  #myBtn {
    bottom: -30px;
    right: -50px;
  }
  #comment div,
  #comment form {
    width: 80%;
  }
}

@media (max-width: 700px) {
  #comment div,
  #comment form {
    width: 90%;
  }
}

@media (max-width: 670px) {
  iframe {
    border-radius: 8px;
    width: 500px;
    height: 250px;
  }
  .pages {
    width: 50%;
    bottom: -500px;
    column-gap: 30px;
    left: 25%;
  }
  .pages a img {
    width: 50px;
  }
}

@media (max-width: 570px) {
  .video {
    padding: 30px;
  }
  iframe {
    border-radius: 8px;
    width: 95%;
    height: 200px;
  }
  .editeur {
    width: 90%;
    left: 20px;
  }
  #myBtn {
    bottom: -30px;
    right: -50px;
  }

  #comment {
    position: relative;
    top: 350px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    height: 750px;
    justify-content: space-around;
    align-items: start;
  }
  #comment h2 {
    text-align: center;
    color: #01257d;
    font-size: calc(0.9rem + 1.1vw);
    background-color: rgba(255, 255, 255, 0.656);
    padding: 5px;
    border-radius: 2px;
  }
  #comment div {
    max-height: 300px;
    padding: 10px;
    /* border: 1px solid black; */
    width: 95%;
    overflow: scroll;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.815);
    overflow-x: hidden;
    /* background-color: rgba(128, 128, 128, 0.252); */
  }
  #comment div ul {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
  }
  #comment div ul li {
    list-style: circle;
    position: relative;
    left: 20px;
    min-height: 30px;

    color: white;
  }
  .commentaire {
    font-size: calc(0.6rem + 0.9vw);
    overflow-x: hidden;
  }
  .commentaire span {
    font-size: calc(0.6rem + 0.9vw);
    font-weight: bold;
    color: #00ffff;
  }

  #comment form {
    width: 95%;
    row-gap: 7px;
  }
  #comment form input {
    height: 35px;
    border-radius: 5px;
    padding: 5px;
  }
  #comment form input[type="submit"] {
    width: 50%;
    font-size: 14px;
    padding: 3px;
  }
}

@media (max-width: 480px) {
  .video {
    padding: 20px;
  }
  iframe {
    border-radius: 8px;
    width: 98%;
    height: 200px;
    margin: auto;
  }
  .editeur {
    width: 90%;
    left: 15px;
  }
  .description {
    width: 90%;
    margin: auto;
    left: 0;
  }
  .pages {
    width: 60%;
    bottom: -500px;
    column-gap: 30px;
    left: 20%;
  }
  .pages a img {
    width: 45px;
  }
}

@media (max-width: 430px) {
  #myBtn {
    bottom: -30px;
    right: -50px;
  }
  .pages {
    left: 15%;
  }
}
@media (max-width: 350px) {
  .video {
    padding: 10px;
  }
  iframe {
    border-radius: 8px;
    width: 280px;
    height: 150px;
  }

  .pages {
    width: 80%;
    bottom: -300px;
    column-gap: 15px;
  }
  .pages a img {
    width: 40px;
  }
}
