/* ============================= 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;
}

/* ------------ GALERIE - STYLE BLOCS PAGES ------------ */
.project img {
  max-height: 100%;
  border: 2px solid #536135;
  border-radius: 20px 20px 0px 0px;
}

.legende {
  padding: 16.5px;
  border-left: 2px solid #536135;
  border-right: 2px solid #536135;
  border-bottom: 2px solid #536135;
  border-radius: 0px 0px 20px 20px;
}

/* ------------ STYLE TEXTE LÉGENDE ------------ */
.titre-projet {
  font-family: 'thunderbold';
  font-size: 1.7rem;
  text-align: left;
  text-transform: uppercase;
  color: #536135;
}

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

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

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

.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;
}

/* ----------- 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-section {
    margin: 20px 60px 20px 60px;
  }

  /* SOUS MENU */
  #projects-dropdown-mobile {
    text-align: center;
    position: relative;
    /* Ajout pour positionner correctement le sous-menu */
  }

  #tag-filter-mobile {
    display: none;
    position: absolute;
    list-style-type: none;
  }

  #tag-filter-mobile {
    display: none;
  }

  .tag-style {
    font-family: "alegreya-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    color: #006135;
    padding: 7px 10px 4px 10px;
    border: 1.5px solid #006135;
    border-radius: 20px;
    background-color: #fff6e9;
    width: fit-content;
    height: fit-content;
  }

  #tag-filter-mobile li {
    margin-bottom: 20px;
    /* Espacement entre les tags dans le sous-menu */
  }

  #projects-dropdown-mobile.active #tag-filter-mobile {
    display: block;
  }

  /* ---------------  */

  /* ------------ STYLE GALERIE ------------ */
  .galerie {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }

  .project {
    width: 75%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .assemblage {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: space-around;
    flex-direction: column;
  }
}

/* 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-section {
    margin: 40px 60px 20px 60px;
  }

  .titre-page {
    margin: 40px 60px 40px 60px;
  }

  /* SOUS MENU */
  #projects-dropdown-mobile {
    display: none;
  }

  #projects-dropdown {
    text-align: center;
    position: relative;
    /* Ajout pour positionner correctement le sous-menu */
  }

  #tag-filter {
    display: none;
    position: absolute;
    list-style-type: none;
  }

  #tag-filter-mobile {
    display: none;
  }

  .tag-style {
    font-family: "alegreya-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    color: #006135;
    padding: 7px 10px 4px 10px;
    border: 1.5px solid #006135;
    border-radius: 20px;
    background-color: #fff6e9;
    width: fit-content;
    height: fit-content;
  }

  .tag-style:hover {
    color: #fff6e9;
    border: 1.5px solid #006135;
    background-color: #006135;
  }

  #tag-filter li {
    margin-bottom: 20px;
    /* Espacement entre les tags dans le sous-menu */
  }

  #projects-dropdown:hover #tag-filter {
    display: block;
  }

  /* ---------------  */

  #mobile_projet {
    display: none;
  }

  /* ------------ STYLE GALERIE ------------ */
  .galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    flex-direction: row;
    margin: 10px;
  }

  .project {
    width: 260px;
    height: auto;
    margin-bottom: 60px;
  }

  .assemblage {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: space-around;
    flex-direction: column;
  }
}

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

  /* ------------ PAGE 2 - STYLE PROJETS RÉCENTS > GALERIE ------------ */
  .project {
    width: 380px;
    height: auto;
    margin-bottom: 80px;
    margin-right: 40px;
    margin-left: 40px;
  }

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

  .titre-section {
    font-size: 1.4rem;
    padding: 9px 12px 6px 12px;
    margin: 40px 70px 30px 70px;
  }

  #projects-dropdown #tag-filter {
    width: fit-content;
    text-wrap: nowrap;
  }

  .tag-style {
    width: fit-content;
    height: fit-content;
    font-size: 1.4rem;
    padding: 9px 12px 6px 12px;
  }

  #tag-filter li {
    margin-bottom: 30px;
    /* Espacement entre les tags dans le sous-menu */
  }

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

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