@media (max-width: 600px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    position: static;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 20px;
  margin-top: 30vh;
  }
  .card {
    margin-bottom: 20px;
  }
  .section-title {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
    position: static;
  }
}
body {
  background-color: #000;
  font-family: 'Playfair Display', serif;
}
.personal-presentation {
    width: 90%;
    margin: 4rem auto;
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    font-family:  "Playfair Display";
}

  .img-link img {
    position: absolute;
    top: 5%;
    left: 10%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 30;
  }
  
  .img-link img:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.7);
  }
  @media screen and (max-width: 600px) {
    .img-link img {
      width: 80px; /* plus petit sur mobile */
    }
  }
.stage-title {
  color: white;
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 2px;
}



/* Cercles de la face avant deviennent blancs au hover */
.card:hover .front .circle,
.card:hover .front #bottom,
.card:hover .front #right {
  background-color: #fff !important;
}
.carte-campus-img {
  width: 100%;
  height: auto;
  max-width: 170px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.card {
    overflow: visible;
    width: 190px;
    height: 254px;
    flex-shrink: 0; /* empêche les cartes de rétrécir trop */
  }

  /* Centrage et espacement */
.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
    gap: 30px;
  flex-wrap: wrap; /* permet le passage à la ligne si l’écran est trop petit */
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

  .content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 300ms;
    box-shadow: 0px 0px 10px 1px #000000ee;
    border-radius: 5px;
  }
  
  .front, .back {
    background-color: #151515;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .back {
    width: 100%;
      margin-top: 20px;
    height: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .back::before {
    position: absolute;
    content: ' ';
    display: block;
    width: 160px;
    height: 160%;
    background: linear-gradient(90deg, transparent, #fff, #fff, #fff, #fff, transparent);
    animation: rotation_481 5000ms infinite linear;
  }
  
  .back-content {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: #151515;
    border-radius: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  
  .card:hover .content {
    transform: rotateY(180deg);
  }
  
  @keyframes rotation_481 {
    0% {
      transform: rotateZ(0deg);
    }
  
    0% {
      transform: rotateZ(360deg);
    }
  }
  
  .front {
    transform: rotateY(180deg);
    color: white;
  }
  
  .front .front-content {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .front-content .badge {
    background-color: #00000055;
    padding: 2px 10px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    width: fit-content;
  }
  
  .description {
    box-shadow: 0px 0px 10px 5px #00000088;
    width: 100%;
    padding: 10px;
    background-color: #00000099;
    backdrop-filter: blur(5px);
    border-radius: 5px;
  }
  
  .title {
    font-size: 11px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
  }
  
  .title p {
    width: 50%;
  }
  
  .card-footer {
    color: #ffffff88;
    margin-top: 5px;
    font-size: 8px;
  }
  
  .front .img {
    position: absolute;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
  
  .circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #ffbb66;
    position: relative;
    filter: blur(15px);
    animation: floating 2600ms infinite linear;
  }
  
  #bottom {
    background-color: #ff8866;
    left: 50px;
    top: 0px;
    width: 150px;
    height: 150px;
    animation-delay: -800ms;
  }
  
  #right {
    background-color: #ff2233;
    left: 160px;
    top: -80px;
    width: 30px;
    height: 30px;
    animation-delay: -1800ms;
  }
  
  @keyframes floating {
    0% {
      transform: translateY(0px);
    }
  
    50% {
      transform: translateY(10px);
    }
  
    100% {
      transform: translateY(0px);
    }
  }
  /* Sur petits écrans : cartes en colonne */
@media (max-width: 500px) {
  .cards-container {
    flex-direction: column;
    gap: 20px;
  }
}
