
*, *::before, *::after {
  box-sizing: border-box;
} 

:root {
  --font-family: 'Times New Roman', sans-serif; /* Remplacé par Consolas */
  --font-size-base: 1rem;
  --font-size-large: 2rem;
  --max-width-image: 600px;
  --max-height-image: 500px;
}

html, body {
  font-family: 'JetBrains Mono', monospace; /* Remplacé par Consolas */
  background-color: #F4EDDE !important;
  overflow-x: hidden;
   height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;

}

footer {
    text-align: center; /* Centre le texte */
    width: 100%; /* Prend toute la largeur */
    padding: 10px 0;
    background-color: #F4EDDE; /* Assurez-vous que la couleur est bien visible */
    margin: bottom; /* Permet au footer de rester en bas */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; /* Remplacé par Consolas */
  font-size: 1.5em;
  transition: right 0.3s ease;
  z-index: 10;
  color: #e06544; /* Texte du header en noir */
  flex-wrap: wrap;
}

header nav {
   overflow-x: auto;
}

header ul {
  list-style: none;
  padding: 65px 0px 0px 27px;
  margin-top: 0px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 1rem;
}

header ul li {
  text-align: center;
}

header ul li a:hover {
  color: #e06544; 
}

header ul li:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 20px; /* Ajustez la hauteur selon vos besoins */
    background-color: black; /* La couleur de votre trait */
    margin-right: 10px;
    vertical-align: middle;
}

section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  
}


main {

  flex: 1;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 100px;
}

.content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.content img {
    width: 100%;
    max-width: 1500px;
    height: auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}




.site-title {
  font-family: 'JetBrains Mono', monospace; /* Utilise ta police PUNK */
  font-size: 3rm; /* Taille du titre */
  font-weight: bold;
  margin: 0px;
  padding: 0;
  position: absolute;
  top: 10px;
  left: 20px;
  color: #e06544;
}

.site-title a {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Garde la couleur du texte */
}

.site-title a:hover {
    color: black; /* Change la couleur au survol */
}

.dernier-projet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    width: 100%;
    justify-items: center;
    max-width: 1200px; /* Largeur max sur les grands écrans */
    margin: 0 auto; /* Centrage + espace sous l'image */
    padding: 120px 10px 40px 10px;
}

.dernier-projet figure {
    position: relative;
     width: calc(100% - 20px);
    max-height: 500px; /* Hauteur max pour éviter un effet trop grand */
    overflow: hidden;
    margin: 0 auto;
}

.dernier-projet img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  margin: 0 auto;
}

.dernier-projet figure:hover img {
  filter: brightness(0.3);
}

.dernier-projet figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(10deg);
  background: #e06544;
  color: white;
  align-items: center;
  padding: 10px 15px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'JetBrains Mono', monospace; /* Remplacé par Consolas */
  pointer-events: none;
}

.dernier-projet figure:hover figcaption {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
  pointer-events: auto;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
  gap: 0px; /* Espacement entre les images */
  max-width: 1400px; /* Largeur max pour ne pas trop s'étaler */
  margin: 0 auto; /* Centre la galerie sous le header */
  padding: 0px;
  background-color: transparent;
  
}

.galerie figure {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}


.galerie img {
  max-width: 100%; /* Les images prennent toute la largeur disponible */
  height: auto; /* La hauteur s'ajuste automatiquement */
  max-height: 2000px; /* Hauteur maximale augmentée pour les grands écrans */
  object-fit: cover; /* Couvre l'espace sans déformer l'image */
  transition: transform 0.3s ease, filter 0.3s ease;
  margin: 0px;
}

.galerie figure:hover img {
  filter: brightness(0.3);
}

.galerie figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(10deg);
  background: #e06544;
  color: white;
  align-items: center;
  padding: 10px ;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'JetBrains Mono', monospace; /* Remplacé par Consolas */
  pointer-events: none;
}

.galerie figure:hover figcaption {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
  pointer-events: auto;
}

.description {
    text-align: flex-start; /* Centrer le texte sous l'image */
    font-family: var(--font-family);
    margin-top: 10px; /* Espacement entre l'image et le texte */
    max-width: 90%;
}

.description h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #e06544; /* Utilisation de ta couleur principale */
}

.description p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: black;
}





.a-propos-container {
    display: grid;
    gap: 50px;
    padding-top: 150px;
    padding: 0 auto;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    text-align: center;
}

.a-propos-container img {
    width: 80vw; /* Largeur de l'image ajustable selon l'écran */
    max-width: 800px; /* Empêche l'image d'être trop grande sur grand écran */
    min-width: 250px; /* Empêche l'image d'être trop petite sur mobile */
    height: auto; /* Garde les proportions */
    object-fit: contain; /* Ajuste l'image sans la déformer */
}

.contact-container {
    display: grid;
    gap: 50px;
    padding-top: 150px;
    padding: 0 auto;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    text-align: center;
}

.contact-container img {
    width: 80vw; /* Largeur de l'image ajustable selon l'écran */
    max-width: 300px; /* Empêche l'image d'être trop grande sur grand écran */
    min-width: 250px; /* Empêche l'image d'être trop petite sur mobile */
    height: auto; /* Garde les proportions */
    object-fit: contain; /* Ajuste l'image sans la déformer */
}

@media (min-width: 768px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur les grands écrans */
  }
}


@media (max-width: 767px) {
  .galerie {
    grid-template-columns: 1fr; /* Une seule colonne */
  }
}

@media (max-width: 767px) {
  .site-title {
    font-size: 2rem; 
  }
  header ul {
    padding: 50px 0px 0px 27px;
  }
}






a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: white;
}
