
/* ========== BASE ========== */
body {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  display: flex;
  background-color: white;
  color: black;
}

nav {
  width: 25vw;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  background-color: white;
}

nav ul {
  list-style: none;
  padding: 0;
  display: block;
}

nav li {
  margin-bottom: 1rem;
}

li.spacer-below-name {
  display: block;
  margin-bottom: 2rem !important;
}

nav a {
  text-decoration: none;
  color: black;
  transition: all 0.2s ease-in-out;
}

nav .active {
  background-color: black;
  color: white;
  padding: 0 0.2rem;
}

.language-switcher {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  position: fixed;
  z-index: 9999;
  color: black;
 
}

.language-switcher a {
  color: black;
  text-decoration: none;
}
.language-switcher a:hover {
  text-decoration: underline;
}

.footer {
  position: fixed;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 0.8rem;
  color: #666;
}

main {
  margin-left: 25vw;
  width: 75vw;
  padding: 2rem;
  box-sizing: border-box;
}

/* ========== IMAGES ========== */
.images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

figure.portrait {
  width: calc(50% - 0.5rem);
  margin: 0;
}

figure.landscape {
  width: 100%;
  margin: 0;
}

figcaption {
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

figcaption i {
  font-style: italic;
}

/* ========== TEXTE DESCRIPTIF ========== */
.project-description {
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.project-description p {
  text-align: justify;
  margin-bottom: 1.5rem;
}

/* ========== LIENS DANS LABYRINTHE ========== */
.deep-link-container,
.deep-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 0 1rem;
}

.deep-link-container a,
.deep-links a {
  font-size: 1rem;
  text-decoration: none;
  color: black;
  font-style: italic;
  font-weight: bold;
}

/* ========== MARGES SPÉCIALES DANS MENU ========== */
nav .spacer-above-archives {
  margin-top: 2rem;
}

nav .spacer-above-info {
  margin-top: 3rem;
}

nav .spacer-above-contact {
  margin-top: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
nav ul {
    display: block;
  }

  nav li {
    margin-bottom: 1rem;
  }

  .images {
    flex-direction: column;
    gap: 1.5rem;
  }

  figure.portrait,
  figure.landscape {
    width: 100%;
  }

  .project-description {
    font-size: 0.9rem;
  }
  nav {
    width: 100%;
    height: auto;
    position: relative;
    border-bottom: 1px solid #ccc;
    padding: 1.5rem 1rem;
  }

  main {
    margin-left: 0;
    width: 100%;
  }

.language-switcher,
.footer {
  position: static;
  text-align: center;
  margin-top: 1rem;
}

  figure.landscape {
    margin-bottom: 3rem;
  }
}
.spacer {
  margin-top: 6rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
  }

  nav.active {
    display: block; 
  }
}

/* -------- Responsive Mobile -------- */
@media (max-width: 768px) {
  /* Menu caché par défaut */
  nav {
    display: none !important;
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #ccc;
    background-color: white;
  }

  nav.active {
    display: block !important;
  }

  /* Conteneur principal sans marge */
  main {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  /* Menu en liste verticale */
  nav ul {
    display: block;
    padding-left: 0;
  }

  nav li {
    margin-bottom: 1rem;
  }

  /* Bouton hamburger */
.menu-toggle {
  background: none;
  border: none;
  outline: none;
  font-size: 1.5rem;
  color: black;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}




  /* Images empilées verticalement */
  .images {
    flex-direction: column;
    gap: 1.5rem;
  }

  figure.portrait,
  figure.landscape {
    width: 100%;
  }

  figure.landscape {
    margin-bottom: 3rem;
  }

  /* Texte plus petit */
  .project-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Footer et langue proprement placés */


.language-switcher a {
  color: black;
  text-decoration: none;
}

.language-switcher a:hover {
  text-decoration: underline;
}
}

header a {
  color: black;
  text-decoration: none;
}

header a:visited {
  color: black;
}

button {
  color: black;
}

body {
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}

.images, figure.landscape {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

figure.landscape img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}