* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

body {
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
a,
p,
.modal h4,
.citation_nom {
  color: white;
}

h1,
h2,
h3,
.header_content,
.banner_text,
.book_title,
.book_subtitle,
.book_statut,
.modal h3,
.modal_infos h4,
.modal_infos p,
.read-button_button,
.modal_book-theme,
.modal_description,
.modal_note,
.about_text,
.modal h4,
footer h4,
footer a,
footer p {
  font-family: "montserrat";
}

.navbar_list,
.book_title,
.book_subtitle {
  font-family: "inconsolata";
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background-image: url("./img/background.png");
  background-size: cover;
}

.center_background {
  width: 100%;
  background-color: #002b45eb;
}

.hidden {
  display: none !important;
}
/* ----- NAVBAR ------ */

.navbar {
  position: relative;
  background-color: #325a74;
  width: 100%;
  height: 95px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar img {
  margin-left: 20px;
  height: 55px;
  transition: all 0.3s ease-in-out;
}

.navbar img:hover {
  transform: scale(1.1);
}

.navbar_list {
  opacity: 0;
  position: absolute;
  font-family: "Inconsolata";
  left: 0;
  transform: translateY(-1rem);
  padding-block: 35px;
  padding-inline: 25px;
  width: 100%;
  background-color: #325a74;
  transition: all 0.3s;
}

.navbar_list.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0.5rem);
}

.navbar_list li {
  margin-top: 35px;
  list-style: none;
}

.navbar_list a {
  display: flex;
  position: relative;
  font-size: 28px;
  font-weight: 300;
  text-decoration: none;
  max-width: 150px;
  transition: transform 0.3s ease-in-out;
}

.navbar_list a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease-in-out;
}

.navbar_list a:hover::after {
  width: 40%;
}

.navbar_list a:hover {
  transform: scale(1.05);
}

.navbar_mobile_menu {
  margin-right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.line {
  transform-origin: center;
  width: 52px; /* Largeur de la ligne, tu peux ajuster */
  height: 5px;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.line1 {
  transform-origin: center;
}

.line3 {
  transform-origin: center;
}

/* Animation Menu lors du clic */
.navbar_mobile_menu.active {
  margin-right: 10px;
}

.navbar_mobile_menu.active .line1 {
  transform: rotate(45deg) translateY(23.5px);
}

.navbar_mobile_menu.active .line2 {
  opacity: 0;
}

.navbar_mobile_menu.active .line3 {
  transform: rotate(-45deg) translateY(-23.5px);
}

/* ----- HEADER ------ */

header {
  width: 100%;
  height: 100vh;
  background-color: #12345655;
  display: flex;
  flex-direction: column;
  position: relative;
}

.header_content_container {
  background-image: url(./img/header_background.png);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header_content_container .header_background {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.header_content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-left: 15px;
  padding-block: 100px;

  background-color: #325a74d9;

  width: 95%;
}

.header_content h1 {
  font-size: 56px;
  font-weight: 400;
  width: 30%;
}

.header_content p {
  line-height: 1.3em;
  font-size: 24px;
  font-weight: 200;
  width: 95%;
}

.header_button {
  background-color: white;
  padding: 5px;
  margin-top: 10px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 252px;
  transition: all 0.3s ease-in-out;
}

.header_button a {
  color: #3802a4;
}

.header_button:hover {
  gap: 17px;
  box-shadow: 5px 5px 1px rgb(48 48 48 / 41%);
}

/* ----- BANNER ------ */

.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-block: 60px;
  text-align: center;
  background-color: #335c7b;
}

.banner_text {
  font-size: 26px;
}

/* ----- ABOUT ------ */

.about {
  margin-block: 100px;
}

.title {
  display: flex;
  justify-content: center;
  font-size: 25px;
}

.title_rectangle {
  position: absolute;
  right: -24px;
  top: 12px;
  z-index: 1;
}

.title_position {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

h2 {
  font-weight: 600;
  z-index: 2;
}

.about_title_line {
  height: 2px;
  background-color: white;
  width: 120%;
}

.about_text {
  margin-top: 30px;
  margin-inline: 20px;
}

.about_text .subtitle {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 50px;
}

.about_text p {
  font-size: 18px;
  font-weight: 200;
  line-height: 1.4em;
}

.about_portrait {
  display: flex;
  justify-content: flex-end;
}

.about_portrait img {
  height: 366px;
  object-fit: cover;
}

.about_line_wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.about_line {
  height: 2px;
  background-color: white;
  width: 93%;
}

/* ----- LIVRES ------ */

.books {
  margin-block: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.books_container {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.book {
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.book.hover {
  transform: scale(1.1);
  cursor: pointer;
  background-color: white;
  z-index: 2;
}

.book.nohover {
  opacity: 0.4;
}

.book_title {
  margin-block: 10px;
  font-size: 20px;
  max-width: 250px;
}

.book_subtitle {
  margin-block: 5px;
}

.book_statut {
  color: white;
  font-weight: 200;
  font-size: 15px;
}

.book:hover .book_title,
.book.hover .book_title,
.book:hover .book_statut,
.book.hover .book_statut {
  color: black;
}

.book_cover {
  width: 250px;
  height: 400px;
  object-fit: cover;
}

.book_cover:hover,
.modal_book-cover img {
  box-shadow: 0px 4px 9px rgba(0, 0, 0, 0.25);
}

/* ----- MODALE ------ */
.fa-solid {
  color: white;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #042a48ef;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal_close-button {
  position: absolute;
  cursor: pointer;
  font-size: 25px;
  top: 20px;
  right: 30px;
}

.modal_content {
  width: 90%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 35px;
  padding-bottom: 20px;
}

.modal h3 {
  text-align: center;
  font-size: 25px;
  margin-top: 40px;
  font-weight: 400;
}

.modal_book-cover {
  text-align: center;
}

.modal_book-cover img {
  width: 100%;
  object-fit: cover;
  max-width: 320px;
}

.modal_book-theme {
  margin-top: 17px;
  font-size: 18px;
  font-weight: 400;
  background-color: #fcf2d556;
  padding: 4px;
}

.modal_description,
.modal_note {
  font-weight: 300;
  max-width: 320px;
  line-height: 1.5em;
}

.modal_note_wrapper {
  font-size: 15px;
  background-color: #fcf2d556;
  padding: 14px;
}

.hidden {
  display: none;
}

.modal_position_wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal_infos {
  margin-top: 15px;
}

.info_wrapper {
  margin-bottom: 20px;
}

.modal_infos h4 {
  font-size: 17px;
  font-weight: 500;
}

.modal h4 {
  font-size: 19px;
  font-weight: 500;
}

.modal_infos P {
  font-size: 15px;
  font-weight: 300;
  margin-top: 5px;
}

.modal_purchase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-bottom: 20px;
}

.modal_purchase a {
  background-color: white;
  width: 120px;
  padding: 10px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.modal_purchase a:hover {
  transform: scale(1.05);
}

.modal_purchase a img {
  height: 35px;
  object-fit: cover;
}

.read-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.read-button_button {
  margin-bottom: 20px;
  color: #042a48;
  font-size: 22px;
  font-weight: 500;
  width: 215px;
  padding: 10px 9px;
  border: none;
  background-color: white;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.read-button_button:hover {
  transform: scale(1.05);
}

.read-button_error-message {
  display: none;
  color: rgb(255 45 45) !important;
}

.pdf_modal {
  position: absolute;
  z-index: 999;
  height: 100%;
  width: 100%;
  background: #ffffff;
  top: 0;
  left: 0;
}

.pdf_modal-content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  margin: auto;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transform: translateY(-30px);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}

.citation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-inline: 6px;
  background-color: rgba(53, 78, 99, 0.56);
  height: 200px;
}

blockquote {
  color: white;
  position: relative;
}

.citation p {
  text-align: center;
  font-family: "lancelot";
  font-size: 29px;
  letter-spacing: 0.1em;
}

cite {
  text-align: end;
  width: 100%;
  display: block;
  transform: translate(-33px, 20px);
}

footer {
  background-color: rgba(0, 0, 0, 0.69);
  color: white;
  height: 250px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer_position {
  width: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 15px;
  height: 100%;
}

footer h4 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  font-size: 16px;
  font-weight: 300;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 12px;
  padding-bottom: 15px;
}

/* --------------------*/
/* ----- MOBILE ------ */
/* ------------------ */

@media screen and (min-width: 346px) {
  .banner_text {
    font-size: 35px;
  }

  .about_text h3 {
    font-size: 26px;
  }

  .about_text p {
    font-size: 20px;
  }

  .about_portrait img {
    height: 420px;
  }

  .about_line {
    height: 2px;
    background-color: white;
    width: 90%;
  }

  .book_cover {
    width: 285px;
    height: 460px;
  }

  .book_title {
    max-width: 285px;
  }
}

@media screen and (min-width: 370px) {
  .modal_content {
    align-items: center;
  }

  .modal_purchase {
    gap: 25px;
  }

  .modal_purchase a {
    width: 140px;
  }

  footer {
    align-items: center;
    justify-content: center;
    position: relative;
  }

  footer p {
    font-size: 12px;
    position: absolute;
    bottom: 10px;
  }

  .footer_position {
    flex-direction: row;
    height: auto;
    gap: 50px;
  }
}

@media screen and (min-width: 490px) {
  body {
    align-items: center;
  }

  .center_background {
    width: 90%;
  }
  .header_content h1 {
    width: auto;
  }

  .modal_purchase {
    gap: 25px;
  }

  .modal h3 {
    font-size: 25px;
  }

  .modal_purchase a {
    width: 140px;
  }

  .modal_book-cover img {
    max-width: 420px;
  }

  .modal_description,
  .modal_note {
    max-width: none;
  }

  .modal_note_wrapper {
    padding: 44px;
  }

  .book_cover {
    width: 365px;
    height: 590px;
  }

  .book_title {
    max-width: 365px;
    font-size: 22px;
  }

  .footer_position {
    gap: 130px;
  }
}

@media screen and (min-width: 635px) {
  .banner {
    flex-direction: row;
    justify-content: center;
    padding: 40px;
  }

  .banner_text {
    font-size: 26px;
  }

  .modal_content {
    gap: 57px;
  }

  .modal_book-cover img {
    max-width: 350px;
  }

  .modal_position_wrapper {
    flex-direction: row;
    gap: 40px;
    width: 100%;
    justify-content: center;
  }

  .modal h3 {
    font-size: 27px;
  }

  .modal_infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 228px;
  }

  .info_wrapper {
    margin-bottom: 30px;
  }

  .modal_infos h4 {
    font-size: 20px;
  }

  .modal_infos p {
    font-size: 17px;
  }
}

/* --------------------*/
/* ----- TABLETTE ------ */
/* ------------------ */
@media screen and (min-width: 767px) {
  .center_background {
    width: 85%;
  }

  header {
    height: 90vh;
  }

  .header_content_container {
    align-items: start;
  }

  .header_content {
    width: 85%;
    margin-left: 20px;
    padding-block: 70px;
    gap: 50px;
  }

  .header_content h1 {
    font-size: 60px;
  }

  .header_content p {
    line-height: 1.5em;
    font-size: 28px;
  }

  .header_button a {
    font-size: 28px;
  }

  .header_button {
    width: 293px;
  }

  .navbar_list {
    gap: 40px;
    position: relative;
    opacity: 1;
    display: flex;
    gap: 25px;
    padding-block: 0px;
    transform: none;
  }

  .navbar_mobile_menu {
    display: none;
  }

  .navbar_list li {
    margin-top: 0px;
  }

  .navbar_list a {
    font-size: 26px;
    width: auto;
    align-items: center;
    justify-content: center;
    max-width: none;
  }

  .about_portrait img {
    height: 475px;
  }

  .title_position {
    flex-direction: column-reverse;
    gap: 25px;
  }

  .about .title_rectangle {
    top: 37px;
  }

  .books_container {
    display: grid;
    grid-template-columns: repeat(2, 3fr);
    gap: 11px;
  }

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

  .book_cover {
    width: 280px;
    height: 468px;
  }

  .book_title {
    max-width: 280px;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .citation p {
    font-size: 33px;
  }
}

@media screen and (min-width: 785px) {
  .book_cover {
    width: 290px;
    height: 470px;
  }

  .books_container {
    gap: 20px;
  }

  .book_title {
    max-width: 290px;
    font-size: 20px;
  }
}

@media screen and (min-width: 890px) {
  .title {
    justify-content: start;
    margin-left: 40px;
    margin-bottom: 30px;
  }

  .about_line {
    width: 60%;
  }

  .about_title_line {
    height: 2px;
    background-color: white;
    width: 100%;
  }

  .about_text {
    max-width: 60%;
  }

  .about_portrait img {
    height: 420px;
    margin-top: 40px;
  }

  .about_text p {
    text-align: start;

    font-size: 17px;
  }

  .about_text .subtitle {
    font-size: 24px;
  }

  .about_text {
    max-width: 55%;
  }

  .about-content_position {
    display: flex;
    justify-content: space-between;
  }

  .about_text .subtitle {
    margin-top: unset;
  }
}

/* --------------------- */
/* ----- DESKTOP ------ */
/* ------------------- */

@media screen and (min-width: 1024px) {
  .center_background {
    width: 80%;
  }

  .navbar_list {
    gap: 55px;
  }

  .navbar_list a {
    font-size: 28px;
    width: auto;
    align-items: center;
    justify-content: center;
    max-width: none;
  }

  .header_content {
    padding-left: 50px;
    width: 700px;
    margin-left: 40px;
    gap: 25px;
  }

  .header_content h1 {
    font-size: 50px;
  }

  .title {
    margin-left: 40px;
  }

  .header_content p {
    font-size: 24px;
    width: 83%;
  }

  .header_button a {
    font-size: 24px;
  }

  .header_button {
    width: 252px;
  }

  .banner {
    gap: 65px;
  }

  .banner_text {
    font-size: 23px;
  }

  .about_text {
    max-width: unset;
    width: 60%;
  }

  .about_text p {
    font-size: 19px;
  }

  .about_text .subtitle {
    font-size: 25px;
  }

  .about_portrait img {
    height: 478px;
    margin-top: 55px;
  }

  .modal_description,
  .modal_note {
    font-size: 17px;
    max-width: 1060px;
  }

  .modal_note {
    font-size: 15px;
  }

  .modal_book-cover img {
    height: 556px;
    max-width: 420px;
  }

  .modal_position_wrapper {
    gap: 40px;
  }

  .info_wrapper {
    margin-bottom: 50px;
  }
}

@media screen and (min-width: 1440px) {
  .about_text {
    transform: translateX(80px);
    margin-left: 40px;
    margin-top: 40px;
  }

  h2 {
    font-size: 43px;
  }

  .about .title {
    transform: translateX(80px);
  }

  .about_text .subtitle {
    font-size: 29px;
  }

  .about_text p {
    font-size: 22px;
    width: 88%;
  }

  .about_portrait {
    transform: translateY(-79px);
  }

  .about_portrait img {
    height: 645px;
  }

  .about_line {
    width: 45%;
  }

  .about {
    margin-block: unset;
    margin-top: 150px;
  }

  .about_line_wrapper {
    transform: translateY(-80px);
  }

  .books {
    margin-top: 103px;
    margin-bottom: 180px;
  }

  .books_container {
    gap: 45px;
    margin-top: 55px;
    grid-template-columns: repeat(3, 3fr);
  }

  .book_title {
    max-width: 320px;
  }

  .book_cover {
    width: 320px;
    height: 501px;
  }

  .citation p {
    font-size: 39px;
  }
}
