@font-face {
  font-family: "Dindong";
  src: url("fonts/DINdong.woff2") format("woff2");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #bdb7b6;
  font-family: "Dindong";
  display: flex;
  padding: 20px;
  align-items: flex-start;
}


aside {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-right: 20px;
  position: sticky;
  top: 20px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 20px;
}

p{
  color: white;
}
.circle-btn {
  width: 3em;
  height: 3em;
  padding: 10px;
  border-radius: 50%;
  border: none;
  background: #bdb7b6;
  cursor: pointer;
  box-shadow:
      inset 8px 8px 16px rgba(0,0,0,0.25),
      inset -6px -6px 12px rgba(255,255,255,0.45),
      0 0 20px rgba(255,255,255,0.25);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.circle-btn:active {
  box-shadow:
      inset 12px 12px 22px rgba(0,0,0,0.32),
      inset -4px -4px 10px rgba(255,255,255,0.3);
  transform: scale(0.97);
}

.btn-title {
  font-size: 45px;
  font-weight: 300;
  color:rgb(255, 255, 255);
  text-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4);
}


main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}


.buble-container {
  position: relative;
  align-self: start;
  display: none;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.325);
  border-radius: 20px;
/*   flex-direction: column;
  gap: 10px; */
}

.slides {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
}

.slides figure{
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.slides img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buble-container .text{
  position: absolute;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgb(0, 0, 0),
    rgba(0, 0, 0, 0.588),
    rgba(0, 0, 0, 0.002)
  );
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  translate: 0 100%;
  transition: translate 0.5s ease-in-out;
}

.buble-container .text p::selection {
  background: rgba(255,255,255,0.2);
}


.buble-container .text.visible{
  translate: 0 0;
}

.caroussel {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.325);
  background: #fff;
  position: relative;
}

.buttons{
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.buttons .top,
.buttons .bottom{
  flex: 1;
}

.buttons .middle{
  display: flex;
  justify-content: space-between;
  margin: 0 10px;
}

.prev, .next {
  background-color: rgba(0, 0, 0, 0.204);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 20%;
  z-index: 2;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.5);
}



#cv-box,
#vocifer-box {
  align-self: start;
  height: fit-content;
}

#cv-box .text,
#vocifer-box .text {
  position: relative;
  translate: none;
  background: none;
}

/* Animation quand un projet remonte */
.buble-container.reveal-move {
  animation: moveUpFade 0.45s ease-out;
}

@keyframes moveUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {

  main{
    grid-template-columns: repeat(1, 1fr);
  }

  .btn-title{
    font-size: 20px;
  }

}

@media (min-width: 768px) and (max-width: 1280px) {

  main{
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-title{
    font-size: 32px;
  }

  .buble-container .text{
    font-size: 12px;
  }

}

@media (min-width: 1280px) {

  main{
    grid-template-columns: repeat(3, 1fr);
  }

}