/* ============================= FONTS ============================= */
/* Alegreya font sur adobe font*/

@font-face {
  font-family: 'thunderbold';
  src: url('../fontss/thunder-boldlc-webfont.woff2') format('woff2'),
    url('../fontss/thunder-boldlc-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'thunderextra_bold_lc';
  src: url('../fontss/thunder-extraboldlc-webfont.woff2') format('woff2'),
    url('../fontss/thunder-extraboldlc-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ============================= STYLES POUR TOUS LES ÉCRANS ============================= */
* {
  box-sizing: border-box
}

html,
body,
.pagetitre,
.conteneur {
  height: 100%;
}

body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  background-color: #FFF6E9;
}

/* ------------ HEADER ------------ */
.header {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* ----------- STYLE MENU NAV SITE ----------- */
.titre-page {
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-align: left;
  color: #006135;
  padding: 7px 10px 4px 10px;
  border: 1.5px solid #006135;
  border-radius: 20px;
  width: fit-content;
  height: fit-content;
}

.titre-page:hover {
  color: #fff6e9;
  background-color: #006135;
}

/* ------------ PROJETS DÉTAILS CONTENU ------------ */
/* ------------ BLOC TEXTE ------------ */
.legende p a {
  color: #536135;
  padding: 7px 10px 4px 10px;
  border: 1.5px solid rgba(0, 0, 0, 0);
  background-color: rgba(83, 97, 53, 0.1);
  border-radius: 20px;
  width: fit-content;
  height: fit-content;
}

.legende p a:hover {
  background-color: #536135;
  color: #FFF6E9;
}

.titre-projet {
  margin-top: 20px;
  margin-left: 20px;

  font-family: 'thunderbold';
  font-size: 1.7rem;
  text-align: left;
  text-transform: uppercase;
  color: #536135;
}

.date-type {
  padding-top: 4px;
  margin-left: 20px;
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  text-align: left;
  color: #536135;
}

.paragraphe {
  margin: 20px;
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  text-align: left;
  color: rgb(83, 97, 53);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ----------- STYLE MENU ----------- */
.menu-icon {
  position: fixed;
  top: 20px;
  left: 15px;
  width: 30px;
  height: auto;
}

.menu-icon svg path {
  fill: #006135;
  stroke-width: 0;
}

#navbar {
  position: fixed;
  top: 0;
  left: -100%;
  /* Initial position outside the screen */
  width: 70%;
  height: 100%;
  background-color: rgba(255, 246, 233, 1);
  border-right: 2px solid #006135;
  z-index: 1;
  transition: left 0.3s ease;
  /* Add transition for smooth effect */
}

#navbar.responsive {
  left: 0;
  /* Move to the left when responsive class is applied */
}

#navbar .categorie {
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-align: left;
  color: #006135;
  padding: 7px 10px 4px 10px;
  border: 1.5px solid #006135;
  border-radius: 20px;
  margin: 15px;
}

.bloc-cat {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: flex-start;
  width: 100%;
  height: fit-content;
  margin-top: 100px;
  margin-left: 50px;
}

#navbar .close-icon {
  position: absolute;
  top: 19px;
  left: 14px;
  width: 32px;
  height: auto;
  text-decoration: none;
}

/* ============================= STYLES SELON LES ÉCRANS ============================= */

/* Styles pour les mobiles */
@media screen and (max-width: 767px) {

  /* ------------ STYLE MENU BURGER ------------ */
  #navbar.responsive {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  /* ------------ STYLE HEADER / menu ------------ */
  .header {
    display: none;
  }

  .titre-page {
    margin: 20px 0px 20px 0px;
  }

  /* ------------ PROJETS DÉTAILS CONTENU ------------ */
  /* ------------ BLOC TEXTE ------------ */
  .projet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* margin: 20px; */
    width: 100vw;
    height: 100vh;
  }

  .legende {
    width: 80vw;
    height: fit-content;
    border: 2px solid #536135;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  /* ------------ IMAGES ------------ */
  .photo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90vw;
    height: fit-content;
  }

  .photo img {
    border: 2px solid #536135;
    border-radius: 20px;
    margin-left: 20px;
    margin-bottom: 20px;
    height: auto;
    width: 80vw;
  }

  .overlay {
    display: none;
  }

  /* ------------ FLÈCHES FOOTER ------------ */
  .navigation-arrow {
    position: fixed;
    bottom: 20px;
    width: 25px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .navigation-arrow svg path {
    fill: none;
    stroke: #006135;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5px;
  }

  .navigation-arrow svg path:hover {
    fill: #006135;
    stroke: #006135;
  }

  #leftArrow {
    left: 20px;
    transform: rotate(180deg);
  }

  #rightArrow {
    right: 20px;
  }
}

/* Styles pour les tablettes */
@media screen and (min-width: 768px) and (max-width: 1024px) {}

/* Styles pour les ordinateurs */
@media screen and (min-width: 1025px) {

  /* ------------ STYLE HEADER / menu ------------ */
  .navbar,
  .menu-icon {
    display: none;
  }

  .nav_mobile {
    display: none;
  }

  .header {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  /* ----------- STYLE MENU NAV SITE ----------- */
  .titre-page {
    margin: 40px 60px 0px 60px;
  }

  #mobile_projet {
    display: none;
  }

  /* ------------ PROJETS DÉTAILS CONTENU ------------ */
  /* ------------ BLOC TEXTE ------------ */
  .legende {
    width: 30vw;
    height: fit-content;
    border: 2px solid #536135;
    border-radius: 20px;
  }

  .projet {
    display: flex;
    flex-direction: row;
    margin: 50px;
    width: 100vw;
    height: 100vh;
  }

  /* ------------ IMAGES ------------ */
  .photo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 65vw;
    height: fit-content;
  }

  .photo img {
    border: 2px solid #536135;
    border-radius: 20px;
    margin-left: 20px;
    margin-bottom: 20px;
    height: 250px;
    width: auto;
  }

  #oce_petit img {
    height: 185px;
  }

  #face_petit img {
    height: 210px;
  }

  #transat_petit img {
    height: 150px;
  }

  #boulbini_grand img {
    height: 350px;
  }

  /* ----------- AFFICHER IMG EN GRAND ----------- */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(83, 97, 53, 0.5);
    justify-content: center;
    align-items: center;
  }

  .overlay img {
    width: auto;
    height: 625px;
  }

  #small-image {
    cursor: pointer;
  }

  /* ------------ FLÈCHES FOOTER ------------ */
  .navigation-arrow {
    position: fixed;
    bottom: 20px;
    width: 40px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .navigation-arrow svg path {
    fill: none;
    stroke: #006135;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5px;
  }

  .navigation-arrow svg path:hover {
    fill: #006135;
    stroke: #006135;
  }

  #leftArrow {
    left: 40px;
    transform: rotate(180deg);
  }

  #rightArrow {
    right: 40px;
  }
}

/* Styles pour les grands écrans */
@media screen and (min-width: 1300px) {

  /* ------------ PROJET DETAILS ------------ */
  .projet {
    display: flex;
    flex-direction: row;
    margin: 50px;
    width: 100vw;
    height: 100vh;
  }

  .titre-page {
    font-size: 1.4rem;
    padding: 9px 12px 6px 12px;
    margin: 40px 80px 0px 80px;
  }

  /* ------------ STYLE TEXTE LÉGENDE ------------ */
  .titre-projet {
    font-size: 1.9rem;
  }

  .date-type {
    font-size: 1.4rem;
  }

  .paragraphe {
    margin: 20px;
    font-style: normal;
    font-size: 1.2rem;
  }

  /* ------------ IMAGES ------------ */
  .photo img {
    height: 350px;
    width: auto;
  }

  #oce_petit img {
    height: 275px;
  }

  #face_petit img {
    height: 310px;
  }

  #transat_petit img {
    height: 200px;
  }

  #boulbini_grand img {
    height: 450px;
  }
}