@font-face {
  font-family: "BBB-Herthey-Futural";
  src: url("BBB-Herthey-Futural-40.woff") format("woff");
}

.frame {
  background-color: #ffff;
  border: 1px solid #ffff;
  width: 100%;
  min-width: unset; /* supprimé pour mobile */
  min-height: 100vh;
  position: relative;
  padding: 30px 20px;
  box-sizing: border-box;
}

.nav-item a {
  text-decoration: none;
  color: inherit;
}

/* Header Work / About aligné à droite */
.frame .header {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-weight: 400;
  font-size: 20px;
  color: #a1b7ff;
  margin-right: 20px;
}

.frame .header .about {
  color: #a1b7ff;
}

/* Monogramme cliquable */
.monogramme-container {
  position: absolute;
  top: 20px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.monogramme {
  width: 70px;
  height: auto;
  display: block;
  cursor: pointer;
}

.monogramme img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layout contenu */
.content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 80px;
  padding: 0 10px;
}

/* Image slideshow container */
.image-container {
  position: relative;
  cursor: none;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Infos */
.info {
  border-left: 1px solid #a1b7ff;
  padding-left: 20px;
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-size: 14px;
  color: #a1b7ff;
}

.pdf {
    color: #a1b7ff;
    font-weight: bold;
}
.block {
  border-bottom: 1px solid #a1b7ff;
  padding: 15px 0;
}

/* Curseur personnalisé */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 90px;
  height: 90px;
  background-image: url('fleche.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(var(--direction, 1));
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.custom-cursor.active {
  opacity: 1;
}

.projets-lien {
  margin-top: 60px;
  margin-left: 20px;
  margin-right: 20px;
}

.projets-lien-titre {
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-size: 20px;
  text-decoration: underline;
  color: #a1b7ff;
  margin-bottom: 20px;
}

.projets-lien-grid {
  display: flex;
  gap: 20px;
}

.projet-lien-item {
  display: block;
  width: 50%;
}

.projet-lien-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.projet-lien-item img:hover {
  opacity: 0.7;
}

/* ─── TABLET (max 1024px) ─── */
@media screen and (max-width: 1024px) {
  .frame {
    min-width: unset;
    padding: 24px 16px;
  }

  .content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 70px;
  }
}

/* ─── MOBILE (max 768px) ─── */
@media screen and (max-width: 768px) {
  .frame {
    min-width: unset;
    min-height: 100vh;
    padding: 20px 14px;
  }

  /* Header : texte plus petit, gap réduit */
  .frame .header {
    gap: 20px;
    font-size: 16px;
    margin-right: 10px;
  }

  /* Monogramme légèrement plus petit */
  .monogramme {
    width: 50px;
  }

  /* Grille : une seule colonne, image en haut / infos en bas */
  .content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 60px;
    padding: 0;
  }

  /* Curseur personnalisé désactivé sur tactile */
  .custom-cursor {
    display: none;
  }

  /* Image pleine largeur */
  .image-container {
    cursor: auto; /* curseur normal sur mobile */
  }

  /* Infos : bordure gauche remplacée par bordure haute */
  .info {
    border-left: none;
    border-top: 1px solid #a1b7ff;
    padding-left: 0;
    padding-top: 16px;
    font-size: 13px;

  }
.memoirepdf{
color: inherits;
}


  .block {
    padding: 12px 0;
  }
}

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

   .frame .header {
    font-size: 14px;
    gap: 20px;
    margin-right: 10px;
    margin-top: 14px;
  }

  .monogramme {
    width: 40px;
  }
  .content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-top: 60px;
    padding: 0;
  }

  /* Image en premier, pleine largeur */
  .image-container {
    grid-row: 1;
    width: 100%;
    cursor: auto;
  }

  .image-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Texte en second, en dessous */
  .info {
    grid-row: 2;
    border-left: none;
    border-top: 1px solid #a1b7ff;
    padding-left: 0;
    padding-top: 16px;
    font-size: 13px;
    width: 100%;
  }

    .projets-lien-titre {
    font-size: 14px;
    margin-left: -20px;
  }

    .projets-lien-grid {
    margin-left: -20px;
  }
}