body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: linear-gradient(to bottom, #af1515, #afafaf);
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.grille {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.carte {
    width: 250px;
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carte:hover {
    transform: translateY(-10px) scale(1.20);
}

.carte[data-type="Eau"]:hover {
    box-shadow: 0 10px 25px #05a5de;
}

.carte[data-type="Psychique"]:hover {
    box-shadow: 0 10px 25px #a973ae;
}

.carte[data-type="Obscurité"]:hover {
    box-shadow: 0 10px 25px #015764;
}

.carte[data-type="Electrique"]:hover {
    box-shadow: 0 10px 25px #fee490; 
}

.carte[data-type="Combat"]:hover {
    box-shadow: 0 10px 25px #d08849;
}

.carte[data-type="Feu"]:hover {
    box-shadow: 0 10px 25px #ed5e44;
}

.carte[data-type="Plante"]:hover {
    box-shadow: 0 10px 25px #90b94a; 
}

.carte[data-type="Normale"]:hover {
    box-shadow: 0 10px 25px white; 
}

.carte[data-type="Acier"]:hover {
    box-shadow: 0 10px 25px #798281; 
}

.carte img {
    width: 100%;
    border-radius: 10px;
}

h3 {
    margin: 15px 0 0 0;
    font-size: 1.2rem;
}