@import url("https://fonts.googleapis.com/css2?family=Special+Elite&display=swap");

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  padding: 24px;
  color: #222;
  background-color: #ececec;
  font-family: "Special Elite", system-ui;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style du titre en haut */
.testimonials-header {
  width: 100%;
  text-align: center;
  margin: 1rem 0 2rem 0;
  padding: 0 1rem;
}

.testimonials-header h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

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

.card-wrapper {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 5/4;
  margin: 10px;
  filter: drop-shadow(2px 2px 10px #0002);
}

/* Rotations initiales des cartes pour un effet dynamique */
.card-wrapper:nth-child(1) .card { rotate: -4deg; }
.card-wrapper:nth-child(2) .card { rotate: 2deg; }
.card-wrapper:nth-child(3) .card { rotate: -5deg; }
.card-wrapper:nth-child(4) .card { rotate: 3deg; }
.card-wrapper:nth-child(5) .card { rotate: -2deg; }
.card-wrapper:nth-child(6) .card { rotate: 4deg; }
/*.card-wrapper:nth-child(7) .card { rotate: -3deg; }
.card-wrapper:nth-child(8) .card { rotate: 1deg; }
.card-wrapper:nth-child(9) .card { rotate: -4deg; }
.card-wrapper:nth-child(10) .card { rotate: 2deg; }
.card-wrapper:nth-child(11) .card { rotate: -1deg; }
.card-wrapper:nth-child(12) .card { rotate: 3deg; }*/

.card-wrapper:hover .card {
  rotate: 0deg;
  translate: 0 -10%;
}

.card {
  width: 100%;
  height: 100%;
  padding: 25% 10% 0 15%;
  position: relative;
  background-color: #f1efeb;
  transition: all 0.3s ease;
  mask: linear-gradient(#000, #000) no-repeat center/100% 100%, radial-gradient(circle, #000 40%, transparent 0) repeat-y 12px 8px/18px 36px;
  mask-composite: subtract;
  --row-size: 36px;
}

.card:before {
  content: "";
  position: absolute;
  inset: 0;
  margin-top: auto;
  margin-bottom: 10%;
  height: 70%;
  background-image: repeating-linear-gradient(transparent 0 calc(var(--row-size) - 1px), #0002 0 var(--row-size));
  background-size: 100% calc(var(--row-size) * 9);
  background-position: 60% 30%;
  background-repeat: no-repeat;
  z-index: -1;
}

.content {
  font-size: 20px;
  font-weight: 500;
  line-height: var(--row-size);
  text-wrap: pretty;
}

.account {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  font-size: 14px;
}

.date {
  position: absolute;
  bottom: 12px;
  right: 24px;
  font-size: 12px;
  opacity: 0.8;
}

/* 12 Couleurs uniques pour chaque pseudo */
.card .account .c1  { color: #2563eb; font-weight: bold; } /* Bleu vif */
.card .account .c2  { color: #dc2626; font-weight: bold; } /* Rouge */
.card .account .c3  { color: #16a34a; font-weight: bold; } /* Vert */
.card .account .c4  { color: #9333ea; font-weight: bold; } /* Violet */
.card .account .c5  { color: #ea580c; font-weight: bold; } /* Orange */
.card .account .c6  { color: #0d9488; font-weight: bold; } /* Sarcelle */
/*.card .account .c7  { color: #db2777; font-weight: bold; } /* Rose */
/*.card .account .c8  { color: #ca8a04; font-weight: bold; } /* Or */
/*.card .account .c9  { color: #4f46e5; font-weight: bold; } /* Indigo */
/*.card .account .c10 { color: #65a30d; font-weight: bold; } /* Vert lime */
/*.card .account .c11 { color: #0284c7; font-weight: bold; } /* Bleu ciel */
/*.card .account .c12 { color: #7c2d12; font-weight: bold; } /* Marron */