* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #070707;

  color: #eee;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.cards-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}


.card {
  width: 380px;
  height: 500px;
  position: absolute;
  left: 56%;
  bottom: 10%;
  --x: 0px;
  --r: 0deg;
  --y: 0px;
  --scale: 1;
  transform: translateX(-50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(var(--scale));
  transform-origin: bottom center;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, z-index 0s;
  cursor: pointer;
  border-radius: 20px;
  background: transparent;

}


.card.active {
  position: fixed;
  top: 50%;
  left: 50%;
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --scale: 1.4;
 
  z-index: 10000;
  transition: transform 0.5s ease;
  transform: translate(-50%, -50%) rotateY(0deg) scale(var(--scale));
}


.card.flipped {
  transform: translate(-50%, -50%) rotateY(180deg) scale(var(--scale));
}



.card:not(.flipped):hover {
  --y: -30px;
  z-index: 20;
}


.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  pointer-events: none;
}

.card-back {
  width: 100%;
  height: 108%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  background: #161514;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  text-align: center;
  color: #eee;
}

@media (max-width: 1200px) {
.cards-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}


.card {
  width: 280px;
  height: 400px;
  position: absolute;
  left: 56%;
  bottom: 10%;
  --x: 0px;
  --r: 0deg;
  --y: 0px;
  --scale: 1;
  transform: translateX(-50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(var(--scale));
  transform-origin: bottom center;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, z-index 0s;
  cursor: pointer;
  border-radius: 20px;
  background: transparent;

}

}
.card-back h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: "lubaline", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 3rem;
}

.card-back ul {
  padding-left: 1.2rem;
  text-align: left;
  font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;

}

.card-back h3 {
  text-align: left;
  padding-bottom: 0px;
  font-size: 1rem;
 
}

.card-back p {
  line-height: 1.5;
  text-align: left;
  font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.card-back a {
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;
  color: #ffffff;
  transition: 0.3s;
}

.card-back .a1:hover {
  color: #f0444b;
}

.card-back .a2:hover {
  color: #3e74a5;
}

.card-back .a3:hover {
  color: #c7c7c7;
}

.card-back .a4:hover {
  color: #e4a737;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.card.active {
  position: fixed;
  top: 50%;
  left: 50%;
width: 420px;
  height: 550px;
  transform: translate(-50%, -50%);
  z-index: 10000;
}


.card.flipped {
  transform: translate(-50%, -50%) rotateY(180deg);
}

.cards-container .card:nth-child(1) {
  z-index: 7;
}

.cards-container .card:nth-child(2) {
  z-index: 6;
}

.cards-container .card:nth-child(3) {
  z-index: 5;
}

.cards-container .card:nth-child(4) {
  z-index: 4;
}

.cards-container .card:nth-child(5) {
  z-index: 3;
}

.cards-container .card:nth-child(6) {
  z-index: 2;
}

.cards-container .card:nth-child(7) {
  z-index: 1;
}


.cards-container.fan-out .card:nth-child(1) {
  --x: -270px;
  --r: -27deg;
  z-index: 7;
}

.cards-container.fan-out .card:nth-child(2) {
  --x: -180px;
  --r: -18deg;
  z-index: 6;
}

.cards-container.fan-out .card:nth-child(3) {
  --x: -90px;
  --r: -9deg;
  z-index: 5;
}

.cards-container.fan-out .card:nth-child(4) {
  --x: 0px;
  --r: 0deg;
  z-index: 4;
}

.cards-container.fan-out .card:nth-child(5) {
  --x: 90px;
  --r: 9deg;
  z-index: 3;
}

.cards-container.fan-out .card:nth-child(6) {
  --x: 180px;
  --r: 18deg;
  z-index: 2;
}

.cards-container.fan-out .card:nth-child(7) {
  --x: 270px;
  --r: 27deg;
  z-index: 1;
}




.navbar {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 100;


}

.navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.navbar a {
  color: white;
  text-decoration: none;

  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  opacity: 1;
}





.title {
  position: fixed;    
  left: 60px;         
  bottom: -10px;
  color: #ffffff;
  font-size: 9rem;       
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 0;
  margin: 0;
  z-index: 200;        
}

@media (max-width: 1200px) {
  .title {
    font-size: 5rem;    
    bottom: 20px;
    left: 40px;
  }
}

.o1 {
  color: #f0444b;
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.o2 {
  color: #3e74a5;
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.o3 {
  color: #e4a737;
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.text-container h2 {
  font-size: 3rem;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
}


@media (max-width: 1200px) {
.lien_pdf {

  background-color: #161514;
  ;
  border: solid 3px white;
  border-radius: 10px;
  color: white;
  position: absolute;
  text-align: center;
  margin-bottom: 130px;
  left: 20px;
  color: #ffffff;
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
  user-select: none;
  padding: 20px;
  font-size: 1.8rem;
  transition: 0.5s;
}

}


.lien_pdf {

  background-color: #161514;
  ;
  border: solid 3px white;
  border-radius: 10px;
  color: white;
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #ffffff;
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
  user-select: none;
  padding: 20px;
  font-size: 1.8rem;
  transition: 0.5s;
  text-decoration: none;
}


.lien_pdf:hover {
  background-color: white;
  border: solid 3px white;
  color: #070707;
  transition: 1sec;
}