/* === POLICES === */
@font-face {
  font-family: "Myfont";
  src: url("/fonts/Untitled-Sans-Regular.woff2") format("woff2");
}


/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Myfont", sans-serif;
  color: #222;
  background-color: #fff;
}

/* === LAYOUT PRINCIPAL === */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  padding: 14px;
  gap: 14px;
}

.left-column,
.right-column {
  height: calc(100vh - 40px);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.left-column::-webkit-scrollbar,
.right-column::-webkit-scrollbar {
  display: none;
}

.left-column {
  width: 20%;
}

.right-column {
  width: 80%;
  background-color: #fff;
  overflow-x: hidden;
}

/* === TYPOGRAPHIE === */
h1 {
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 14px;
  color:rgb(0, 0, 0);
  
}

h1:hover {
  color:rgb(0, 0, 0);
  cursor: pointer;
}

h2 {
  font-size: 11px;
  margin-top: 0; /* <- modifié ici */
  margin-bottom: 3px;
  line-height: 9px;
  font-weight: 300;
  color:rgb(0, 0, 0);
}

.left-column h2 {
  margin-top: 24px; /* ou 32px selon ton goût */
}
.left-column h2:first-of-type {
  margin-top: 0; /* pas de marge au tout premier "tanguy dortu" */
}

h3 {
  font-size:11px;
  margin-top: 4px;
  margin-bottom: 2px;
  line-height: 15px;
  font-weight: 300;
    color:rgb(0, 0, 0);

}

p {
  font-style: italic;
  font-size: 11px;
  line-height: 14px;
  margin-bottom: 12px;
}

a {
  color:rgb(0, 0, 0);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.email-link,
.instagram-link {
  color:rgb(0, 0, 0);
}

.email-link:hover {
    color:rgb(0, 0, 255);
}

.instagram-link:hover {
    color:rgb(0, 0, 255);
}

.fixed-bottom-left {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size:11px;
  font-weight: 300;
  color:rgb(0, 0, 0);
  z-index: 1000;
}

/* === MASONRY GRID === */
.custom-grid {
  display: flex;
  gap: 17px; /* espace égal entre les deux colonnes */
  /* width, margin, etc. */
}
.grid-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px; /* espace égal entre les projets dans une colonne */
}

.project {
  break-inside: avoid;
  margin-bottom: 12px;
  display: block;
  width: 100%;
}

.image-container {
  position: relative;
  width: 100%;
  display: block;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover; /* ou 'contain' si tu veux tout voir */
}

/* Overlay = aplat + texte */
.overlay {
  position: absolute;
  inset: 0;
  background-color:rgb(0, 0, 255);

  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.overlay h3 {
  color: white;
  font-size: 11px;
  text-align: center;
  padding: 1rem;
  margin: 0;
}

.image-container:hover .overlay {
  opacity: 1;
}

/* === PAGES PROJETS === */
.projet-page .container {
  display: flex;
  height: 100vh;
  width: 100%;
  padding: 14px;
  gap: 14px;
}

.projet-page .left-column {
  width: 80%;
}

.projet-page .right-column {
  width: 20%;
}

.projet-page .left-column,
.projet-page .right-column {
  height: calc(100vh - 40px);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projet-page .left-column::-webkit-scrollbar,
.projet-page .right-column::-webkit-scrollbar {
  display: none;
}

.projet-page .project-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projet-page .project-images img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.projet-page .project-text-block {
  max-width: 380px;
  margin-left: 0;
  margin-right: auto;
}

.projet-page .project-text-block h1 {
  font-size:11px;
  font-weight: 400;
  line-height: 14px;
  margin-bottom: 6px;
}

.projet-page .project-text-block h2 {
  font-size:11px;
  font-weight: 300;
  line-height: 14px;
  margin-bottom: 8px;
}

.projet-page .project-text-block p {
  font-weight: 300;
  font-size:11px;
  line-height: 14px;
  margin-bottom: 12px;
}

/* === BOUTON RETOUR === */
.exit-button {
  font-size: 11px;
  font-weight: 300;
  line-height: 14px;
  color:rgb(0, 0, 0);
  margin-top: 20px;
  margin-bottom: 3px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.exit-button:hover {
    color:rgb(0, 0, 255);
  text-decoration: none;
}

/* === H4 SPÉCIFIQUE === */
h4 {
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 19px;
  font-weight: 300;
    color:rgb(0, 0, 0);
}




.image-container video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}



.projet-page .project-images video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* ou cover selon ton rendu souhaité */
}


h2 a[href="/pages/about.html"]:hover {
    color:rgb(0, 0, 255);
  text-decoration: none;
}



.image-container.horizontal-images {
  display: flex;
  gap: 4px;
  position: relative;
}


.image-container.horizontal-images a {
  width: 50%;
  display: block;
}

.image-container.horizontal-images img,
.image-container.horizontal-images video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


.project-images.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; /* ou 12px selon l'espacement que tu veux */
}

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


* {
  cursor: url('images/curseur.png'), auto !important;
}

video, canvas, iframe {
  cursor: url('images/curseur.png'), auto !important;
}


.part-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.part-link:hover {
    color:rgb(0, 0, 255);}





h5 {
  font-size:11px;
  margin-top: 4px;
  margin-bottom: 2px;
  line-height: 15px;
  font-weight: 300;
    color:rgba(0, 0, 0, 0.5);

}

h6 {
  font-size:11px;
  margin-top: 4px;
  margin-bottom: 2px;
  line-height: 15px;
  font-weight: 300;
    color:rgb(255, 255, 255);

}

body, body * {
  cursor: url('images/curseur.png'), auto;
}



::selection {
  background:  rgb(0, 0, 255);

  color: white; /* Couleur du texte pendant la sélection */
}

.about-button {
  display: none;
}

.mobile-about-info {
  display: none;
}



.projet-page .right-column {
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.project-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.exit-wrapper {
  margin-top: auto;
  padding-top: 1rem;
}

.mobile-header {
  display: none;
}

.image-container:hover,
.image-container:hover img,
.image-container:hover video {
  cursor: url('images/curseur-blanc.png'), auto !important;
}



@media screen and (max-width: 900px) {

  /* ===== HEADER MOBILE ===== */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: #fff;
    z-index: 2000;
  }

  .mobile-name,
  .mobile-about-link {
    font-size: 11px;
    font-weight: 300;
    color: rgb(0, 0, 0);
    line-height: 9px;
    text-decoration: none;
  }

  .mobile-about-link:hover {
    color:rgb(0, 0, 255);
  }

  .about-button {
    display: none;
  }

  /* ===== CONTAINER MOBILE ===== */
  .container {
    padding: 0.75rem;
    flex-direction: column;
  }

  .left-column,
  .right-column {
    width: 100%;
    height: auto !important;
    overflow-y: visible !important;
  }

  .left-column > *:not(h4) {
    display: none !important;
  }

  .left-column h4 {
    margin: 0;
    padding: 0;
  }

  .right-column {
    margin-top: 0;
  }

  /* ===== GRILLE PROJETS ===== */
  .custom-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .grid-column {
    width: calc(50% - 0.375rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .project,
  .image-container,
  .image-container img,
  .image-container video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
  }

  /* ===== BOTTOM LEFT MOBILE ===== */
  .fixed-bottom-left {
    display: none;
  }

  .overlay h5 {
    font-size: 11px;
    line-height: 14px;
    padding: 0.5rem;
  }

  /* ===== INFOS ABOUT MOBILE ===== */
  .mobile-about-info {
    display: block;
    font-size: 11px;
    line-height: 14px;
    font-weight: 300;
    color: #000;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .mobile-about-info h2,
  .mobile-about-info h3,
  .mobile-about-info p,
  .mobile-about-info a {
    font-size: 11px;
    line-height: 14px;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: #000;
  }

  .mobile-about-info a {
    color: hsl(0, 0%, 65%);
  }

  .mobile-about-info a:hover {
    color: rgb(0, 0, 0);
  }

  /* ===== PROJET PAGE MOBILE ===== */
  .projet-page .container {
    flex-direction: column-reverse;
    height: auto;
  }

  .projet-page .left-column,
  .projet-page .right-column {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .projet-page .project-text {
    padding-bottom: 1rem;
  }

  .projet-page .project-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .projet-page .project-images img,
  .projet-page .project-images video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 1rem;
  }

  .projet-page .left-column > *:not(h4) {
    display: initial !important;
  }

  .exit-wrapper {
  padding-top: 2px;
}


}
