/* Généralitée */
a {
  color: white;
}

.justified {
  text-align: justify;
}

.Title1 {
  text-align: center;
  font-size: 100px;
}

.header-buttons {
  display: flex;
  width: 100%;
  padding-top: 0px;
  justify-content: center;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  padding: 10px 0;
  text-align: center;
  z-index: 1000;
}

.accordion-header {
  color: white;
  margin: 20px 0;
  cursor: pointer;
  background-color: rgba(48, 48, 48, 0.6);
  border: 1px solid rgba(48, 48, 48, 0.8);
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  outline: none;
  transition: background-color 0.3s ease;
  display: flex;
}

#message {
  margin-top: 20px;
  display: none;
  color: rgb(255, 255, 255);
}

.accordion {
  color: #f0f0f0;
  margin: 20px 0;
  cursor: pointer;
  background-color: #2c2c2c;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1.5rem;
  text-align: left;
  outline: none;
  box-shadow: 0 4px 8px rgba (0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Tableau/Container */

#container {
  position: left;
  flex-direction: column;
  align-items: center;
  color: white;
}

#tableau {
  width: 50%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgba(48, 48, 48, 0.9);
  background-color: rgba(48, 48, 48, 0.8);
}

/* Page 1 */

.bodyP1 {
  background-image: url("../Images/ImperialAquila.webp");
  background-attachment: fixed;
  background-size: cover;
  color: white;
  font-family: arial;
  overflow: hidden;
}

#containerP1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 200px;
  color: white;
}

#tableauP1 {
  width: 50%;
  height: 550px;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgb(48, 48, 48, 0.9);
  background-color: rgba(48, 48, 48, 0.8);
}

/* Page 2 */

.bodyP2 {
  background-image: url("https://cdnb.artstation.com/p/assets/images/images/007/195/365/large/igor-sid-29-warhammer-40k-anniverasy.jpg?1504372201");
  color: black;
  font-family: arial;
  background-attachment: fixed;
}

/* Page 3 */

.bodyP3 {
  background-attachment: fixed;
  background-size: cover;
  background-image: url("../Images/Primarques.png");
  color: white;
  font-family: arial;
}

#containerP3 {
  position: left;
  flex-direction: column;
  align-items: center;
  color: white;
}

#tableauP3 {
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgba(48, 48, 48, 0.9);
  background-color: rgba(48, 48, 48, 0.8);
}

.accordionP3 {
  color: #f0f0f0;
  margin: 20px 0;
  cursor: pointer;
  background-color: #2c2c2c;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1.5rem;
  text-align: left;
  outline: none;
  box-shadow: 0 4px 8px rgba (0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.accordionP3:hover {
  background-color: #444;
  border-color: #666;
  box-shadow: 0 6px 12px rgba (0, 0, 0, 0.3);
  transform: scale (1.02);
}

.panel {
  width: 75%;
  font-size: medium;
  text-align: justify;
  padding: 0 15px;
  display: none;
  background-color: rgb(48, 48, 48, 0.6);
  overflow: hidden;
  border-top: 1px rgb(48, 48, 48, 0.8);
}

.Texte-Dep {
  flex: 1;
  font-size: 20px;
}

.Depli {
  display: flex;
  align-items: center;
}

/* Page 4 */

.bodyP4 {
  background-image: url("../Images/Imp_Terra.webp");
  color: black;
  font-family: arial;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  scrollbar-width: none;
  font-size: 12px;
}

#containerP4 {
  position: left;
  flex-direction: column;
  align-items: center;
  color: white;
  outline: 5px solid rgb(48, 48, 48, 0);
  background-color: rgba(48, 48, 48, 0);
  scrollbar-width: none;
}

#tableauP4 {
  width: 99%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  display: flex;
}

.tableauP4-1 {
  margin: 7px;
  width: 30%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgb(48, 48, 48, 0.22);
  background-color: rgba(48, 48, 48, 0.2);
  text-align: justify;
}

.tableauP4-2 {
  color: #ffffff;
  margin: 27px;
  width: 95%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgb(48, 48, 48, 0.8);
  background-image: url("../Images/Silly-death-korps.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  text-align: justify;
}

.text-border {
  color: white;
  text-shadow: 1px 1px 0px black, -1px -1px 0px black, 1px -1px 0px black,
    -1px 1px 0px black;
}

/*Page 5 */

.bodyP5 {
  background-image: url("../Images/Tyranids.jpg");
  color: black;
  font-family: arial;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  scrollbar-width: none;
  font-size: 8px;
}

#containerP5 {
  position: left;
  flex-direction: column;
  align-items: center;
  color: white;
  outline: 5px solid rgb(48, 48, 48, 0);
  background-color: rgba(48, 48, 48, 0);
  scrollbar-width: none;
}

#tableauP5 {
  width: 99%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  display: flex;
}

.tableauP5-1 {
  margin: 7px;
  width: 30%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgb(48, 48, 48, 0.12);
  background-color: rgba(48, 48, 48, 0.1);
  text-align: justify;
}

.tableauP5-2 {
  margin: 27px;
  width: 95%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  font-size: 34px;
  scrollbar-width: none;
  outline: 5px solid rgb(48, 48, 48, 0.1);
  text-align: justify;
}

/* Responsive Design */

@media (max-width: 768px) {
  .Title1 {
    font-size: 50px;
  }

  #tableau,
  #tableauP1,
  #tableauP2,
  #tableauP3,
  #tableauP4,
  #tableauP5 {
    width: 90%;
    font-size: 20px;
  }

  .header-buttons {
    flex-direction: column;
  }

  .tableauP4-1,
  .tableauP5-1 {
    width: 100%;
  }

  .tableauP4-2,
  .tableauP5-2 {
    width: 100%;
  }

  .accordion-header,
  .accordionP3 {
    font-size: 14px;
    padding: 8px;
  }

  .panel {
    width: 100%;
    font-size: small;
  }

  .bodyP4,
  .bodyP5 {
    font-size: 14px;
  }

  .Title1 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .Title1 {
    font-size: 25px;
  }

  #tableau,
  #tableauP1,
  #tableauP2,
  #tableauP3,
  #tableauP4,
  #tableauP5 {
    width: 100%;
    font-size: 16px;
  }

  .panel {
    width: 100%;
    font-size: small;
  }

  .header-buttons {
    flex-direction: column;
  }

  .text-border {
    font-size: 14px;
  }
}
