/* RESET MINIMAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: white;
    color: black;
    font-family: monospace;
}


/* =========================
   MENU FIXE GAUCHE
========================= */

.menu {
    position: fixed;
    top: 30px;
    left: 0;
    width: 200px;
    height: auto;
    background-color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.menu ul {
    list-style: none;
    width: 100%;
}

/* ligne du menu */

.menu li {
    position: relative;
    height: 1.6em;
    width: 100%;
}

/* lien */

.menu a {
    display: block;
    width: 100%;
    color: black;
    text-decoration: none;
}


/* =========================
   AXE TYPOGRAPHIQUE FIXE
========================= */

/* centre du menu = 110px (moitié de 220px) */

.menu .label {
    position: absolute;
    left: 100px;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* texte avant */

.menu .prefix {
    position: absolute;
    right: calc(100px + 3ch);
    white-space: nowrap;
}

/* texte après */

.menu .suffix {
    position: absolute;
    left: calc(100px + 3ch);
    white-space: nowrap;
}


/* =========================
   HAMBURGER
========================= */

.hamburger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: none;
    border: none;
    color: black;
    font-size: 28px;
    display: none; /* visible seulement en mobile */
}



/* =========================
   LAYOUT CONTENU
========================= */

.layout-title{
  font-size: 68px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-txt-img, .layout-txt-txt,
.images,
.images img {
    z-index: 0;
}

.layout-txt-img {
    margin-left: 200px;
    min-height: 100vh;

    display: grid;
    grid-template-columns: 34% 66%;
}

.layout-txt-txt {
    margin-left: 200px;
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 1fr;
}

.text {
  padding: 30px;
}

p {
  display: block;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
}

.images {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.images img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    object-fit: contain;

    cursor: pointer;
}

.images img:first-child {
    position: relative;
}

.letter {
  position: fixed;
  color: black;
  font-family: monospace;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  /*opacity: 1;
  transition: opacity 0.6s linear;*/
  z-index: 888;
    user-select: none;

    /* fade-out avec animation */
    animation: fadeOut 3s forwards; /* 5s = durée du fade, ajustable */
filter: blur(0.5px);
  }

  @keyframes fadeOut {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 0; }
  }


/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {
  .layout-txt-img {
      margin-left: 200px;
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

    .menu {
        position: fixed;
        top: 30px;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 888;
        align-items: flex-start;
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    #menuList {
        display: none;
        margin-top: 30px;
    }

    /* axe typographique adapté mobile */

    .menu li {
        height: 2em;
    }

    .menu .label {
        left: 50%;
        transform: translateX(-50%);
    }

    .menu .prefix {
        right: calc(50% + 4ch);
    }

    .menu .suffix {
        left: calc(50% + 4ch);
    }

    .layout-txt-img, .layout-txt-txt {
        margin-left: 0;
        grid-template-columns: 1fr;
    }

    .images {
        min-height: auto;
    }

    .letter {
        display: none;
      }
}
