@import url("./general.css");

body{
  background-color: #ffffff;
  overflow: hidden;
}

html, body, * {
  cursor: url("../assets/curseurs/curseur.png") 0 0, auto;
}

.contact{
  display: none;
}

.fill-img {
  position: fixed;
}

.title p{
  color: #000000;
  font-size: calc(var(--font-size) * 0.9)
}

.top-right-text-about {
  position: absolute;
  right: 0vw; 
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  display: inline-block;
}

.top-right-text-about img {
  height: 4.5vh;
}

.top-right-text-about:hover .logo-static {
  display: none;
}

.top-right-text-about:hover .logo-animated {
  display: block;
}

.container {
  position: absolute;
  top: 7vh; 
  bottom: 7vh;
  right: 0;
  width: 37%;
  height: calc(100vh - 14vh);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, auto);
  z-index: 5;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 12px;
}

.text-presentation {
  position: fixed;
  top: 7vh;
  left: 1%;
  height: 40%;
  width: 60%;
  display: flex;
  overflow: hidden; 
}

.bloc-text-presentation {
  width: 100%;
  z-index: 10;
}

.text-presentation p {
  position: relative;
  color: rgb(0, 0, 0);
  font-size: calc(var(--font-size) * 0.8);
  font-family: "Manrope", sans-serif;
  padding-left: 2px;
  padding-right: 3vw;
  text-align: left;
}

.portrait {
  position: fixed;
  bottom: 1vh;
  left: -2%;
  height: 70%;
  width: 60%;
  display: flex;
  overflow: hidden; 
}

.portrait img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s;
}

.bloc-text {
  width: 100%;
  grid-column: 1 / -1; 
  z-index: 10;
}

.bloc-text p {
  position: relative;
  color: rgb(0, 0, 0);
  font-size: calc(var(--font-size) * 0.7);
  padding-left: 2px;
  padding-right: 3vw;
  text-align: left;
  line-height: 1.5;
}

  .text-tabs-1 {
    float: left;
    width: 30%; 
  }
  
  .text-tabs-2 {
    display: inline-block;
    margin-left: 1rem;
    width: 65%; 
  }


  .text-tabs-2 {
    display: inline-block;
    margin-left: 1rem;
    width: 65%; 
  }


/* Mobile layout */
@media (max-width: 768px) {
  body {
    overflow: auto;
    display: flex;
    flex-direction: column;
  }

  .contact { 
    padding-top: 8vh;
  }

  .contact{ order: 0; }
  .top-bar { order: 1; }
  .text-presentation { order: 2; }
  .portrait { order: 3; }
  .container { order: 4; }


  .text-presentation,
  .contact,
  .portrait,
  .container {
    position: static;
    width: 90%;
    height: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 auto 1rem;
  }

  .container {
    display: block;
    overflow: visible;
    padding-right: 0;
  }

  .text-presentation p,
  .contact p,
  .bloc-text p {
    padding-right: 0;
    font-size: calc(var(--font-size) * 1.5);
    text-align: left;
  }

  .portrait img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: none;
  }

  .bloc-text p {
    font-size: calc(var(--font-size) * 1.5);
  }

  .title p{
    font-size: calc(var(--font-size) * 3);
  }
  
}