#game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
    justify-content: center;
    align-items: center;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.card {
    position: relative;
    width: 100%;
    max-width: 100px;
    aspect-ratio: 1 / 1; 
    margin: 0 auto;
    perspective: 1000px;
    user-select: none;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.card[data-tourner="true"] .card-inner {
    transform: rotateY(180deg);
}

.image-in-card {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-front {
    transition: transform 0.2s ease;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.card-front:hover {
    transform: scale(1.08);
}

.card-back {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.card-select::before {
    content: '';
    position: absolute;
    inset: 0px; 
    border-radius: 50%; 
    background: conic-gradient(from 0deg, #00f0ff, #9d00ff, #ff00ea, #00f0ff);
    z-index: -1;
    animation: rotateHalo 2.5s linear infinite;
    filter: blur(6px);
    opacity: 0.9;
}

@keyframes rotateHalo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.texte-message{
    display: flex;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    max-width: 90%;
    width: 400px;
    border: solid 6px black;
    border-radius: 20px;
    margin-top: 0px;
}

#texte-bravo{
    background-color: #ffd0fb;
}

#texte-domage{
    background-color: #c01c1c;
    color: white;
}

#boutton-rejouer{
    transition: 0.2s;
    border: solid 0px;
    width: 300px;
    background-color: greenyellow;
    height: 50px;
    font-size: 25px;
    font-weight: bold;
    box-shadow: 0px 6px rgb(6, 159, 82);
    border-radius: 20px;
    margin-bottom: 20px;
}

#boutton-rejouer:hover{
    transition: 0.2s;
    background-color: rgb(159, 244, 31);
    box-shadow: 0px 4px rgb(6, 159, 82);
    transform: translateY(2px);
}

#boutton-rejouer:active{
    transition: 0.2s;
    background-color: rgb(155, 192, 99);
    box-shadow: 0px 0px rgb(6, 159, 82);
    transform: translateY(6px);
}

.texte-nombre-tentative{
    font-size: 1.3rem;
    margin: 0;
    margin-bottom: 10px;

    #text-attemps{
        color: blue;
    }
}