.tout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - (100px * var(--cartes-sorties)));
}

#cardContainer {
  width: 100%;
  max-width: 70%;
  height: auto;
  min-height: 200px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  background-image: url("https://www.runesgratuites.com/images/DosCarte.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding-bottom: 60px;
}

.card,
.card1,
.card2 {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s;
}

.card.shuffle {
  transform: translate3d(5%, -10%, -20%);
  animation-iteration-count: 2;
}

.card1.shuffle {
  transform: rotate(10deg);
  animation-iteration-count: 2;
}

.card2.shuffle {
  transform: translate3d(-5%, 10%, 20%);
  animation-iteration-count: 2;
}

.monBouton {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4%;
  margin-top: 15px;
  margin-bottom: 10px; 
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

#cardMessage {
  text-align: center;
  margin-top: 2%;
  font-size: 1.5vw;
}

#message {
  display: none;
  text-align: center;
  margin-top: 2%;
}

.titre {
  font-size: 4vw;
  margin-top: 10px;
  margin-bottom: 35px;
   text-align: center;
	text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
	color: #4A558D;
}

.description {
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-container {
  margin: 10px;
  text-align: center;
}

.descriptions-container {
  margin-top: 20px;
}

.card {
  margin-left: auto;
  margin-right: auto;
}

.card-description {
  display: flex;
  align-content: center;
  text-align: justify;
  color: black;
}

/*================================================ */


:root {
  --cartes-sorties: 0; /* Valeur initiale */
}

/* Utilisez le sélecteur approprié pour cibler les cartes sorties */
.carte-sortie:nth-child(1) {
  --cartes-sorties: 1;
}

.carte-sortie:nth-child(2) {
  --cartes-sorties: 2;
}

.carte-sortie:nth-child(3) {
  --cartes-sorties: 3;
}

#container
{
    background-image: radial-gradient(white, darkviolet);
    padding: 20px;
}




