
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #372365;
}

h2{
    padding-bottom: 20px;
}
#vue_jeu {
    color: white;
    text-align: center;
}
.navbar {
    width: 100%;
    height: 75px;
    background-color: #17172A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #A78BFA;
}

.accueil {
    text-align: center;
    color : white;
}

button {
    background-color: #7c3aed;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #5b21b6;
    transform: scale(1.05);
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup-contenu {
    background-color: #241442;
    color: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    width: 350px;
    border: 2px solid #a78bfa;
}

.popup-contenu h2 {
    margin-bottom: 25px;
}

.popup-contenu button {
    background-color: #7c3aed;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
}

.popup-contenu button:hover {
    background-color: #5b21b6;
}

.fermer {
    float: right;
    font-size: 28px;
    cursor: pointer;
}


.plateau {
    display: grid;
    grid-template-columns: repeat(5, 100px);
    grid-template-rows: repeat(5, 100px);
    gap: 10px;
    justify-content: center;
    margin: 30px auto;
}

/* Carte extérieure */
.carte {
    width: 100px;
    height: 100px;
    padding: 0;
    border: 3px solid #8B5CF6;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
}

/* Intérieur de la carte */
.carte-interieur {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Retournement au clic */
.carte.retournee .carte-interieur {
    transform: rotateY(180deg);
}

/* Les deux faces */
.carte-dos,
.carte-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    backface-visibility: hidden;
}

/* Dos visible au départ */
.carte-dos {
    background-image: url("images/logo.png");
    background-size: cover;
    background-position: center;
}

/* Image cachée au départ */
.carte-face {
    transform: rotateY(180deg);
}

.carte-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carte:hover {
    border-color: #FBBF24;
    transform: scale(1.05);
}

.carte.retournee {
    border-color: #34D399;
}

/* STYLE DES COMPTEURS */

.stats-jeu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.statistique {
    display: flex;
    align-items: center;
    gap: 20px;

    background: linear-gradient(135deg, #241442, #6040A0);
    border: 2px solid #A78BFA;
    border-radius: 20px;

    padding: 20px 35px;
    min-width: 250px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    transition: 0.3s;
}

.statistique:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(167, 139, 250, 0.3);
}

.stat-icone {
    font-size: 40px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 12px;
}

.stat-infos {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 5px;
}

.stat-titre {
    color: #D8CCF5;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.stat-valeur {
    color: white;
    font-size: 35px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.stat-total {
    color: #C4B5FD;
    font-size: 25px;
}

/* Adaptation téléphone */

@media screen and (max-width: 600px) {
    .stats-jeu {
        flex-direction: column;
        gap: 15px;
    }

    .statistique {
        width: 90%;
        min-width: 0;
        justify-content: center;
    }
}

@media screen and (max-width: 650px) {
    .navbar {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

.joueur-actif {
    border-color: #FBBF24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

#vue_hall {
    color: white;
    text-align: center;
    padding: 40px 16px;
}

.hall {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.classement {
    background: linear-gradient(135deg, #241442, #6040A0);
    border: 2px solid #A78BFA;
    border-radius: 20px;
    padding: 25px;
    min-width: 300px;
}

.classement table {
    width: 100%;
    border-collapse: collapse;
}

.classement th,
.classement td {
    padding: 10px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
}

.classement th {
    color: #D8CCF5;
    font-size: 13px;
    letter-spacing: 1px;
}

#vue_regle {
    color: white;
    padding: 40px 16px;
}

#vue_regle h1 {
    text-align: center;
}

.regles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 30px auto 0;
}

.regle-bloc {
    background: linear-gradient(135deg, #241442, #6040A0);
    border: 2px solid #A78BFA;
    border-radius: 20px;
    padding: 25px;
    flex: 1 1 300px;
    max-width: 500px;
    line-height: 1.6;
}

.regle-bloc h2 {
    padding-bottom: 10px;
}

.regle-bloc p,
.regle-bloc ul {
    margin-bottom: 10px;
}

.regle-bloc ul {
    padding-left: 20px;
}

.regle-bloc strong {
    color: #FBBF24;
}

.cache {
    display : none;
}