@font-face {
    font-family: "Archivo";
    src: url("../src/fonts/Archivo-Regular.ttf") format("truetype");
}

/* layout global */
body {
  margin: 0;
  font-family:'Times New Roman', Times, serif;
  display: flex;
  height: 100vh;
  overflow: hidden; /* empêche le scroll global */
}

/* MENU GAUCHE */
#menu {
  width: 30%;
  padding: 40px;
  display: flex;
  flex-direction: column; /* haut -> bas */
  gap: 10px;
  overflow: hidden; /* menu non scrollable */
}

/* items du menu */
.project-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* les vignettes passent à la ligne si besoin */
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 30px;
  text-align: left;
  color: black;
  font-family: "Archivo";
}

/* EFFET AU SURVOL DU MENU
   Pour changer d'effet, modifie la classe de <aside id="menu"> dans index.html :
   class="hover-underline"  → mot souligné
   class="hover-italic"     → mot en italique
   (seul le texte change, pas les vignettes) */

.hover-underline .project-link span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.hover-underline .project-link:hover span,
.hover-underline .project-link:focus-visible span {
  text-decoration-color: currentColor;
}

.hover-italic .project-link:hover span,
.hover-italic .project-link:focus-visible span {
  font-style: italic;
}

/* SOANNE NOUVEL : ne change jamais au survol */
#menu .home-link span {
  font-style: normal;
  text-decoration: none;
  font-weight: bold;

}

/* plus de contour bleu au clic, mais il reste au clavier */
.project-link:focus {
  outline: none;
}

.project-link:focus-visible {
  outline: 1px dashed black;
  outline-offset: 4px;
}

.thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* bas du menu : à propos + langue */
.menu-footer {
  margin-top: auto; /* pousse le bloc en bas */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-link {
  font-size: 30px;
}

/* sélecteur de langue FR / EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Archivo";
  font-size: 18px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: black;
  opacity: 0.35;
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn.active {
  opacity: 1;
  text-decoration: underline;
}

/* ZONE PROJET — cachée au départ */
#project-view {
  width: 65%;
  padding: 40px;
  display: none; /* devient block après clic */
  overflow-y: auto; /* cette zone uniquement scrollable */
}

.project-text {
  width: 100%;
  max-width: 850px;   /* ← largeur du texte */
  font-size: 16px;
  text-justify: inter-word;
  font-family: "Archivo";
}

/* style interne */
#project-view h2 {
  margin-top: 0;
  font-size: 40px;
  font-family: "Archivo";
  font-weight: bold;
}

#project-view img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 24px 0;
  border: 1px solid #ddd;
  display: block;
}

/* deux photos côte à côte */
.img-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 900px;
  margin: 24px 0;
}

#project-view .img-row img {
  flex: 1 1 0;
  width: 0;          /* les deux photos prennent la même largeur */
  margin: 0;
}


/* =========================
   RESPONSIVE
========================= */

/* TABLETTE / PETIT ÉCRAN D'ORDINATEUR */
@media (max-width: 1100px) {
  #menu {
    width: 35%;
    padding: 30px;
  }

  .project-link,
  .about-link {
    font-size: 24px;
  }

  .thumb {
    width: 42px;
    height: 42px;
  }

  #project-view {
    padding: 30px;
  }

  #project-view h2 {
    font-size: 32px;
  }
}

/* MOBILE : le menu passe au-dessus, le projet en dessous, toute la page défile */
@media (max-width: 800px) {
  body {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  #menu {
    width: auto;
    padding: 20px 16px;
    gap: 12px;
    overflow: visible;
  }

  .project-link,
  .about-link {
    font-size: 22px;
  }

  .thumb {
    width: 36px;
    height: 36px;
  }

  .menu-footer {
    margin-top: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  #project-view {
    width: auto;
    padding: 24px 16px 40px;
    overflow: visible;
    border-top: 1px solid #ddd;
    scroll-margin-top: 0;
  }

  #project-view h2 {
    font-size: 26px;
  }

  .project-text {
    font-size: 15px;
  }

  #project-view img {
    margin: 16px 0;
  }

  .img-row {
    gap: 8px;
    margin: 16px 0;
  }
}

/* halo jaune qui suit la souris
.mouse-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    background: #ffff66;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
    transform: translate(-20%, -70%);
    z-index: -100;
    animation: fadeOut 0.9s linear forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
*/