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

/* ------------ PAGE 1 - STYLE HOME ------------ */


/* ------------ PAGE 2 - STYLE PROJETS RÉCENTS > GALERIE ------------ */
.pagearticle {
  width: 100vw;
  height: auto;
}

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

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

.nav-gal {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0px 45px 0px 45px;
  padding-top: 30px;
}

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

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

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

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

/* ------------ PAGE 3 - STYLE FOOTER ------------ */
.infofin {
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.3rem;
  padding-top: 15px;
  text-align: left;
  color: #536135;
}

.credit {
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.2rem;
  text-align: center;
  color: #536135;
  margin-top: 10px;
  margin-bottom: 40px;
}

.contact {
  font-family: "alegreya-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.3rem;
  text-align: left;
  margin-top: 10px;
  text-decoration: none;
  background-color: inherit;
  color: #006135;
  padding: 7px 10px 4px 10px;
  border: 1.5px solid #006135;
  border-radius: 20px;
  width: fit-content;
}

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

  /* ------------ PAGE 1 - STYLE HOME ------------ */
  .pagetitre {
    display: none;
  }

  .home-mobile {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .titre-page {
    font-family: 'thunderextra_bold_lc';
    font-size: 6rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 6rem;
    color: #006135;
  }

  .sous-titre {
    font-family: "alegreya-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #006135;
    font-size: 1.7rem;
  }

  /* ------------ JEU IMAGES ------------ */
  .jeu-image {
    width: 100vw;
    height: 70%;
  }

  .jeu-image img {
    position: absolute;
    width: auto;
    height: 10%;
  }

  /* ------------ PAGE 2 - STYLE PROJETS RÉCENTS > GALERIE ------------ */
  .nav-gal-mobile {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: left;
    width: 75%;
    height: auto;
    padding-top: 50px;
  }

  .titre-section {
    width: fit-content;
  }

  .galerie {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }

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

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

  .nav-gal {
    display: none;
  }

  .plus-mobile {
    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;
  }

  /* ------------ PAGE 3 - STYLE FOOTER ------------ */
  footer {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
  }

  .footer-G {
    width: 75%;
    height: auto;
    margin-top: 30px;
  }

  .footer-M {
    width: 90%;
    height: auto;
    margin-top: 30px;
  }

  .footer-M img {
    width: 100%;
  }

  .footer-D {
    width: 75%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .footer-D img {
    height: 30px;
    margin-top: 30px;
    margin-right: 30px;
  }
}

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

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

  /* ------------ PAGE 1 - STYLE HOME ------------ */
  .navbar,
  .menu-icon {
    display: none;
  }

  .home-mobile {
    display: none;
  }

  .pagetitre {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    /* Pour centrer */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .titre-page {
    font-family: 'thunderextra_bold_lc';
    font-size: 250px;
    text-align: center;
    text-transform: uppercase;
    color: #006135;
  }

  .sous-titre {
    font-family: "alegreya-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #006135;
    font-size: 45px;
    text-align: center;
  }

  /* ------------ JEU IMAGES ------------ */
  .jeu-image {
    width: 100vw;
  }

  .jeu-image img {
    position: absolute;
    width: auto;
    height: 30%;
  }

  .suiveur {
    transform: translate(-50%, -50%);
  }

  /* ------------ PAGE 2 - STYLE PROJETS RÉCENTS > GALERIE ------------ */
  .nav-gal-mobile {
    display: none;
  }

  .galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    flex-direction: row;
    margin: 20px;
  }

  .projet {
    width: 260px;
    height: auto;
  }

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

  .plus-mobile {
    display: none;
  }

  /* ------------ PAGE 3 - STYLE FOOTER ------------ */
  footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 70px;
  }

  .footer-G {
    width: 30%;
    height: auto;
    margin-left: 50px;
    margin-right: 30px;
  }

  .footer-M {
    width: 30%;
    height: auto;
    margin-left: 50px;
    margin-right: 50px;
  }

  .footer-M img {
    width: 100%;
  }

  .footer-D {
    width: 30%;
    height: auto;
    margin-left: 30px;
  }

  .footer-D img {
    height: 30px;
    margin-top: 30px;
    margin-right: 30px;
    margin-bottom: 30px;
  }

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

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

  /* ------------ PAGE 2 - STYLE PROJETS RÉCENTS > GALERIE ------------ */
  .projet {
    width: 380px;
    height: auto;
  }

  .nav-gal {
    margin: 0px 65px 30px 65px;
  }

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

  .plus {
    font-size: 1.4rem;
    padding: 9px 12px 6px 12px;
  }

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

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

  /* ------------ PAGE 3 - STYLE FOOTER ------------ */
  .infofin {
    font-size: 1.3rem;
    line-height: 1.5rem;
    padding-top: 20px;
  }

  .credit {
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin-top: 15px;
    margin-bottom: 40px;
  }

  .contact {
    font-size: 1.3rem;
    line-height: 1.58rem;
    margin-top: 10px;
    padding: 9px 12px 6px 12px;
  }

  .footer-G {
    margin-left: 70px;
  }

  .footer-D img {
    height: 40px;
    margin-top: 30px;
    margin-right: 30px;
  }
}