#card {
    position: relative;
    color: #ffffff;
    width: 270px;
    height: 430px;
    background: #f2f2f2; /* Fond clair pour la carte */
    margin: auto;
    clip-path: url("#svgPath");
    display: block;
    opacity: 0;
    transition: .3s all cubic-bezier(0.075, 0.82, 0.165, 1);
    transform: rotateY(-180deg);
    transition-delay: .1s;
    border-radius: 18px;
    overflow: hidden;
}

#card-inner {
    position: absolute;
    top: 0;
    left: 0;
    background: #B725CB; /* Fond intérieur violet */
    height: 100%;
    width: 100%;
}

#card-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 54%;
    /* background: linear-gradient(135deg, #B725CB 0%, #FF4500 50%, #FF2400 100%); theme halloween*/
    background: linear-gradient(135deg, #a01caf 0%, #B725CB 100%); 
    /* background: linear-gradient(135deg, #a01caf 0%, #B725CB 100%);  */

    overflow: hidden;
}

.backfont {
    position: absolute;
    bottom: -22px;
    line-height: 1;
    font-size: 100px;
    left: 0;
    letter-spacing: -5px;
    opacity: 0;
    font-weight: 800;
    font-style: italic;
    transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1) .4s;
    color: rgba(255, 255, 255, 0.3);
}

.image {
    position: absolute;
    right: 10px;
    bottom: 0;
    z-index: 2000;
    width: 85%;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: .5s all ease-out 3s;
}

.info {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    height: 75%;
    width: 30%;
    box-sizing: border-box;
    padding: 0 20px;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff; 
}

.info div {
    position: relative;
    line-height: 1;
    letter-spacing: -1px;
    font-size: 16px;
    opacity: 0;
    top: 20px;
    transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1) 1s;
}

.value {
    font-size: 32px;
}

.position, .country {
    padding-bottom: 5px;
    font-weight: 700;
    margin-bottom: 5px;
    border-bottom: 2px solid #ffffff;
}

.country, .club {
    position: relative;
    display: block;
    width: 40px;
    height: 25px;
    margin: 5px auto;
}

.club {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 5px auto;
    border-bottom: 2px solid #ffffff;
}

.injuries {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 5px auto;
    border-top: 2px solid #ffffff;
}

.dot {
    box-sizing: border-box;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: .125rem solid;
    display: inline-block;
    position: relative;
}

.dot--full {
    background-color: currentColor;
}

.red { color: rgb(236, 34, 44); margin-top: 5px;}
.green { color: rgb(80, 235, 170); margin-top: 5px;}
.orange { color: rgb(255, 165, 0); margin-top: 5px}

.injurie-date{
    font-weight: bold;
    border-top: 2px solid white;
    padding-top: 5px;
}

.injuries-little-bottom{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-top: 2px solid #ffffff;
}

.dot--full::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 0.2rem solid currentColor; 
    border-radius: 50%;
    animation: pulsate 1s ease-out infinite;
    opacity: 0.0;
}

@keyframes pulsate {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0.0;
    }
    50% {
        opacity: 1.0; 
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.0;
    }
}

.team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#card-bottom {
    position: absolute;
    overflow: hidden;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 46%;
    /* background: linear-gradient(135deg, #B725CB 0%, #FF4500 50%, #FF2400 100%); theme halloween*/
    background: linear-gradient(135deg, #a01caf 0%, #B725CB 100%);

}

#card-bottom:before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 3px;
    background: #ffffff;
}

.name {
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0;
    top: -5px;
    position: relative;
    transition: .5s all ease-out 3.2s;
    margin: 6px 0;
    color: #ffffff; 
}

.stats {
    position: relative;
    margin: 0 40px;
    padding-top: 10px;
    border-top: 4px solid #ffffff;
    transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1) 2s;
}

.stats:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 4px;
    width: 0;
    transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1) 2s;
    background: #ffffff; 
}

.stats:before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    margin: 5% auto;
    height: 0%;
    width: 4px;
    transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1) 2s;
    background: #ffffff;
}

.stats div {
    width: 49%;
    vertical-align: top;
    display: inline-block;
    text-transform: uppercase;
    font-size: 18px;
    color: #ffffff; 
}

.stats div:last-child ul {
    margin-left: 24px;
}

.stats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stats ul li {
    margin: 0;
    position: relative;
    padding: 0;
    display: block;
    margin-bottom: 5px;
    transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1) 2s;
    opacity: 0;
    left: 20px;
}

.stats ul li:nth-child(2) {
    transition-delay: 2.2s;
}

.stats ul li:nth-child(3) {
    transition-delay: 2.4s;
}

.stats ul li:nth-child(4) {
    transition-delay: 2.6s;
}

.stats ul li:nth-child(5) {
    transition-delay: 2.8s;
}

.stats ul li:nth-child(6) {
    transition-delay: 3s;
}

.stats ul li span {
    position: relative;
    display: inline-block;
}

.stats ul li span:first-child {
    font-weight: 700;
    width: 30px;
    text-align: left;
    color: #ffffff; 
}

#card.active {
    display: block;
    cursor: pointer;
    transform: rotate(0deg);
    opacity: 1;
}

#card.active #card-inner #card-top .image {
    right: 0;
    opacity: 1;
}

#card.active #card-inner #card-top .backfont {
    opacity: .4;
    left: -8px;
}

#card.active #card-inner #card-top .info div {
    opacity: 1;
    top: 0;
}

#card.active #card-inner #card-bottom .stats {
    border-top: 4px solid #ffffff; 
}

#card.active #card-inner #card-bottom .stats:after {
    width: 25%;
}

#card.active #card-inner #card-bottom .stats:before {
    height: 90%;
}

#card.active #card-inner #card-bottom .stats ul li {
    opacity: 1;
    left: 0;
}

#card.active #card-inner #card-bottom .name {
    opacity: 1;
    top: 0;
}

#card-bottom .stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

#card-bottom .stats div {
    flex: 1;
    margin-right: 20px;
}

#card-bottom .stats div:last-child {
    margin-right: 0;
}

#card-bottom .stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#card-bottom .stats li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 0 5px;
    color: #ffffff; 
}
