* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
}

/* Corps */
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: sans-serif;
  background: var(--color-bg);
  font-size: clamp(18px, 3rem, 48px);
}

figure {
  margin: 0;         
  text-align: center; 
}

/* Enleve les checkbox */
main input[type="radio"]{
    display: none;
}

/* Ensemble des cartes */
.Cards {
  position: relative;
  width: min(94vw, 700px);
  height: clamp(420px, 70svh, 780px);
  margin: 0 auto;
}

/* Cartes */
.Card {
  position: absolute;
  inset: 0;
  margin: auto;
  place-items: center; 
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Image responsive */
.Card img {     
  margin: 0 auto 1rem;
  width: min(40vw, 260px);
  max-height: 40svh; 
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: clamp(10px, 2vw, 16px);
}


/* Boutons responsive */
section > label {
  border: none;
  border-radius: 15px;
  font-size: clamp(16px, 4vw, 24px);
  padding: clamp(12px, 2.2vw, 20px) clamp(16px, 3vw, 30px);
  margin: 0.35rem 0.35rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Couleur boutons */
.Smash {
  color: #fff;
  background: linear-gradient(#d50505, #ec2ff0);
}
.Maybe {
  color: #fff;
  background: linear-gradient(#f6c616, #d3d60c);
}
.Pass {
  color: #fff;
  background: linear-gradient(#ccf20b, #2ff056);
}
.Smash:hover {
  background-color: green;
  transform: scale(1.08);
}
.Maybe:hover {
  background-color: orange;
  transform: scale(1.08);
}
.Pass:hover {
  background-color: red;
  transform: scale(1.08);
}

/* Affichage conditionnel */
#c1:checked ~ .Cards .Card:nth-child(1),
#c2:checked ~ .Cards .Card:nth-child(2),
#c3:checked ~ .Cards .Card:nth-child(3),
#c4:checked ~ .Cards .Card:nth-child(4) {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (max-width: 600px) {
    body{
    font-size: clamp(18px, 2rem, 48px);
    }
  .Cards {
    width: 92vw;
    height: clamp(420px, 72svh, 680px);
  }
  .Card img {
    width: min(40vw, 280px);
    max-height: min(40vh, 480px);
    
  }
}



a{
    text-decoration: none;
    color: white;
}
.image {
  object-fit: contain;
    aspect-ratio: 4/3;
    background-color: #fff;
}
