@font-face {
  font-family: "Rhymes";
  src: url("../fonts/Rhymes_Text_Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "Rhymes", sans-serif;
  font-size: 12px;
  line-height: 1;
  color: black;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-left: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 10px;
  line-height: 1.1;
  background-color: white;
  z-index: 1000;
}

/* Traits verticaux gauche et droite */
.header::before,
.header::after {
  content: "";
  position: absolute;
  top: 10px;
  height: 25px;
  width: 1px;
  background: black;
}

.header::before {
  left: 20px;
}

.header::after {
  right: 20px;
}

/* Trait vertical central */
.header-divider {
  width: 1px;
  height: 25px;
  background: black;
  margin-top: 0px;
  flex-shrink: 0;
}

/* Contenu header */
.header-left {
  display: flex;
  gap: 20px;
  padding-left: 15px;
}

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

.header-left a:hover {
  transition: 0.2s;
  color: grey;
}

.header-desc {
  padding-left: 15px;
  border-left: 1px solid black;
  margin-left: 80px;
  max-width: 300px;
}

.header-right {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  padding-right: 15px;
}

.header-right a:hover {
  transition: 0.2s;
  color: grey;
}
/* Liens du filtre */
.filter a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

/* Séparateur entre filtres */
.filter span {
  margin: 0 4px;
}

/* Filtre actif */
.filter a.active {
  color: grey;
}

.header-left a.active,
.filter a.active {
  color: grey;
}

.header-left a.active:hover,
.filter a.active:hover {
  color: black;
}

/* HOME */

.homepage {
  padding: 100px 20px 40px 20px; /* padding-top augmenté à cause du header fixe */
  position: relative;
}

/* Projets - lignes */

.project-line {
  display: flex;
  padding: 10px 0;
  gap: 15px;
  position: relative;
  transition: 0.3s;
}

.project-line:hover {
  color: grey;
  gap: 21px;
  transition: 0.3s;
}

/* Traits verticaux via HTML */

.project-border-left,
.project-border-right {
  width: 1px;
  background: black;
}

.project-border-left {
  margin-right: -1px;
}

.project-border-right {
  align-self: stretch;
  margin-left: 15px;
  margin-right: 15px;
}

/* Colonne gauche - texte */

.project-meta {
  width: 20%;
  position: relative;
  border-right: 1px solid black;
  transition: 0.3s;
}

.project-year {
  display: inline;
  vertical-align: super;
  font-size: 10px;
  margin-right: 4px;
}

.project-title {
  display: inline;
}

.project-subtitle {
  margin-top: 2px;
}

/* Colonne droite - galerie */

.project-thumbs-wrap {
  display: flex;
  flex-grow: 1;
  gap: 0;
}

.project-thumbs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  transition: 0.1s;
}

/* .project-thumbs:hover {
  gap: 10px;
  transition: 0.1s;
} */

.project-thumbs img {
  height: 200px;
  object-fit: cover;
}

.project-thumbs video {
  height: 200px;
  object-fit: cover;
}

.project-line-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 20px 20px 20px; /* 20px en bas et sur les côtés */
  font-size: 12px;
  font-family: "Rhymes", sans-serif;
  color: black;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* ===== HEADER MOBILE ===== */
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
    padding-bottom: 0px;
  }

  /* On enlève le texte specialized */
  .header-desc {
    display: none;
  }

  /* Première ligne : Valentin, About, Index */
  .header-left {
    padding-left: 0;
    gap: 15px;
    margin-bottom: 8px; /* espace avec les filtres */
  }

  /* Les filtres passent en dessous */
  .header-right {
    flex-wrap: wrap;
    padding-right: 0;
    gap: 8px;
    border-top: 1px solid black;
    margin-top: -2px;
    padding-top: 8px;
  }

  .header-right::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: black;
  }

  /* Les traits verticaux disparaissent pour mobile */
  .header::before,
  .header::after,
  .header-divider {
    display: none;
  }

  /* ===== HOME PAGE MOBILE ===== */
  .homepage {
    padding: 40px 15px 40px 15px;
  }

  /* Projets en colonne */
  .project-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .project-border-left,
  .project-border-right {
    display: none;
  }

  /* Meta prend toute la largeur */
  .project-meta {
    margin-top: 50px;
    margin-bottom: -15px;
    width: 100%;
    /* border-right: none; */
  }

  /* Thumbnails en bloc vertical */
  .project-thumbs-wrap {
    width: 100%;
  }

  .project-thumbs {
    flex-direction: column;
    gap: 10px;
  }

  .project-thumbs img,
  .project-thumbs video {
    width: 100%;
    height: auto;
  }

  .site-footer {
    font-size: 14px;
  }
  
    /* Mobile : afficher uniquement le premier média (image ou vidéo) */
  .project-thumbs > * {
    display: none;
  }
  .project-thumbs > *:first-child {
    display: block;
  }
  
}
