@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amarante&display=swap" rel="stylesheet');
/* Reset et styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5e6d3;
    min-height: 100vh;
    color: #2c1810;
}

/* Navigation style japonais */
nav {
    background: #8b4513;
    padding: 20px;
    border-bottom: 4px solid #5d2f0a;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Conteneur du logo avec lien */
nav > a:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

nav > a:first-child:hover {
    transform: translateY(-3px);
    background: transparent;
}

.nav-logo {
    margin-top: 0.01em;
    border-bottom: 0.01em solid black;
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    display: block;
    border-radius:6px;
}

.nav-logo:hover {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5)) brightness(1.1);
    transform: scale(1.05);
}

/* Style pour l'emoji de fallback */
.nav-logo-emoji {
    font-size: 3.5em;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    display: inline-block;
    line-height: 1;
}

.nav-logo-emoji:hover {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* effet texture : bois */
.nav-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.nav-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Nœuds du bois - moyennement marqués */
        radial-gradient(ellipse 100px 30px at 20% 50%, rgba(93, 47, 10, 0.55), transparent),
        radial-gradient(ellipse 80px 25px at 60% 50%, rgba(93, 47, 10, 0.45), transparent),
        radial-gradient(ellipse 60px 20px at 85% 50%, rgba(93, 47, 10, 0.5), transparent),
        /* Veines fines - moyennement contrastées */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(93, 47, 10, 0.45) 2px,
            rgba(93, 47, 10, 0.45) 3px
        ),
        repeating-linear-gradient(
            -0.5deg,
            transparent,
            transparent 3px,
            rgba(93, 47, 10, 0.35) 3px,
            rgba(93, 47, 10, 0.35) 4px
        ),
        repeating-linear-gradient(
            0.5deg,
            transparent,
            transparent 4px,
            rgba(93, 47, 10, 0.3) 4px,
            rgba(93, 47, 10, 0.3) 5px
        ),
        /* Grain du bois - dégradés moyens */
        linear-gradient(
            0deg,
            rgba(139, 69, 19, 0.15) 0%,
            rgba(139, 69, 19, 0.35) 20%,
            rgba(139, 69, 19, 0.2) 40%,
            rgba(139, 69, 19, 0.3) 60%,
            rgba(139, 69, 19, 0.15) 80%,
            rgba(139, 69, 19, 0.25) 100%
        );
    pointer-events: none;
    z-index: 0;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .nav-texture::before {
        max-height: none;
        height: auto;
        bottom: 0;
        position: absolute;
    }
}

nav a {
    color: #f5e6d3;
    text-decoration: none;
    padding: 10px 25px;
    margin: 0;
    border: 2px solid #f5e6d3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #8b4513; /* ← Fond marron opaque */
    min-height: 44px;
    line-height: 1;
}

nav a:hover {
    background: #f5e6d3;
    color: #8b4513;
}

/* Réinitialiser les styles pour le lien du logo */
nav a.logo-style {
    margin-right: 5px;
    padding: 0;
    border: none;
    background: transparent;
    min-height: unset;
}

nav a.logo-style:hover {
    background: transparent;
    color: inherit;
}

nav a.nav-admin {
    padding: 10px 30px 10px 20px !important;
    background: #f5e6d3;
    color: #ea322c; /* Rouge plus vif */
    border-color: #d4524e; /* ← Rouge Memory */
}

nav a.nav-admin:hover {
    background: #d4524e;
    color: #f5e6d3;
    border-color: #d4524e; /* ← Rouge Memory */
}

/* Container principal */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/Trame-japonaise_Coquillages.png');
    background-repeat: repeat;
    background-size: 10% auto;
    opacity: 0.15;
    filter: invert(1);
    pointer-events: none;
    z-index: -1;
}

/* Titres style japonais */
h1 {
    color: #8b4513;
    font-size: 3.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
    font-family: 'Amarante', 'DotGothic16', sans-serif;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: #d4524e;
}

h2 {
    color: #8b4513;
    font-size: 1.8em;
    margin: 30px 0 20px 0;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
}

h3 {
    color: #8b4513;
    font-size: 1.5em;
    margin: 30px 0 20px 0;
    text-align: center;
    font-weight: 700;
}

/* Paragraphes */
p {
    text-align: center;
    margin: 10px 0;
    line-height: 1.5;
    color: #4a3528;
}

/* Board de jeu - style japonais flat */
.game-info {
    background: #fff;
    padding: 25px;
    border: 3px solid #8b4513;
    max-width: 600px;
    margin: 0 auto 30px auto;
    box-shadow: 8px 8px 0 rgba(139, 69, 19, 0.2);
}

.game-info p {
    margin: 10px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #8b4513;
}

.board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    justify-items: center;
}

.card {
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    width: 100%;
    max-width: 180px;
    /* Ajouter l'ombre sur le conteneur au lieu des faces */
    filter: drop-shadow(6px 6px 0 rgba(139, 69, 19, 0.3));
}

.card:hover {
    transform: scale(1.05);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.visible .card-inner,
.card.matched .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 4px solid #8b4513;
    /* Retirer l'ombre d'ici */
    /* box-shadow: 6px 6px 0 rgba(139, 69, 19, 0.3); */
    overflow: hidden;
    background: #fff;
}

.card-back {
    transform: rotateY(180deg);
}

.card-front {
    color: #5d2f0a;
    background: #d4524e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front::before {
    content: '';
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    writing-mode: vertical-rl; /* Écriture verticale de droite à gauche */
    text-orientation: upright; /* Caractères droits */
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
}

.card-front img, .card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card.matched {
    opacity: 0.5;
    cursor: default;
}

/* Formulaire de démarrage - style japonais */
.game-start {
    max-width: 500px;
    margin: 0px auto;
    padding: 40px;
    background: #fff;
    border: 4px solid #8b4513;
    box-shadow: 12px 12px 0 rgba(139, 69, 19, 0.2);
}

.game-start h2 {
    color: #8b4513;
    margin-bottom: 30px;
    border-bottom: 3px solid #d4524e;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 3px solid #8b4513;
    background: #f5e6d3;
    transition: border 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4524e;
    background: #fff;
}

.btn-start {
    width: 100%;
    padding: 15px;
    background: #d4524e;
    color: white;
    border: 3px solid #8b4513;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 6px 6px 0 rgba(139, 69, 19, 0.3);
}

.btn-start:hover {
    background: #8b4513;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 rgba(139, 69, 19, 0.3);
}

.btn-start:active {
    transform: translate(6px, 6px);
    box-shadow: none;
}

/* Leaderboard style japonais */
.leaderboard-description {
    text-align: center;
    color: #8b4513;
    margin: 20px auto 0px auto;
    font-size: 1.2em;
    max-width: 800px;
    font-weight: 600;
}

.leaderboard-description em {
    color: #d4524e;
    font-style: normal;
    font-weight: bold;
}

.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 4px solid #8b4513;
    box-shadow: 10px 10px 0 rgba(139, 69, 19, 0.2);
    margin: 0 auto;
}

.leaderboard-table thead {
    background: #8b4513;
    color: #f5e6d3;
}

.leaderboard-table td {
    padding: 18px 20px;
    border-bottom: 2px solid #f5e6d3;
    text-align: center;
    font-weight: 600;
    color: #2c1810; /* Couleur de base cohérente */
}

.leaderboard-table tbody tr {
    transition: all 0.2s;
}

.leaderboard-table tbody tr:hover {
    background: #fff9f0;
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.leaderboard-table .rank {
    font-size: 1.8em;
    font-weight: bold;
    color: #d4524e; /* Rouge japonais pour les cellules du corps */
}

.leaderboard-table td.player a {
    color: #d4524e; /* Rouge japonais */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.leaderboard-table td.player a:hover {
    color: #8b4513; /* Marron au hover */
    text-decoration: underline;
}

.leaderboard-table .score {
    font-weight: bold;
    font-size: 1.3em;
    color: #c49a6c; /* Marron clair doré */
}

.leaderboard-table .date {
    color: #b8a490; /* Beige/marron très clair */
    font-size: 0.95em;
}

/* Podium style japonais - couleurs harmonieuses */
.leaderboard-table tbody tr.rank-1 {
    background: #ffe4b5; /* Or pâle japonisant */
}

.leaderboard-table tbody tr.rank-1 td {
    color: #8b6914; /* Texte or foncé */
}

.leaderboard-table tbody tr.rank-2 {
    background: #e8e8e8; /* Argent doux */
}

.leaderboard-table tbody tr.rank-2 td {
    color: #5a5a5a; /* Texte gris foncé */
}

.leaderboard-table tbody tr.rank-3 {
    background: #f4d1ae; /* Bronze doux */
}

.leaderboard-table tbody tr.rank-3 td {
    color: #8b4513; /* Texte marron */
}

.leaderboard-table tbody tr.rank-1:hover,
.leaderboard-table tbody tr.rank-2:hover,
.leaderboard-table tbody tr.rank-3:hover {
    background: #fff9f0;
}

.leaderboard-table tbody tr.rank-1:hover td,
.leaderboard-table tbody tr.rank-2:hover td,
.leaderboard-table tbody tr.rank-3:hover td {
    color: #2c1810; /* Retour à la couleur normale au hover */
}

.leaderboard-table th {
    padding: 20px;
    text-align: center;
    font-size: 1em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #5d2f0a;
    color: #f5e6d3 !important; /* Tous les titres en beige clair */
}

/* Profile - style japonais */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.stat-card {
    background: #fff;
    padding: 30px;
    border: 4px solid #8b4513;
    text-align: center;
    box-shadow: 8px 8px 0 rgba(139, 69, 19, 0.2);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 rgba(139, 69, 19, 0.2);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px 0;
    color: #d4524e;
}

.stat-label {
    font-size: 0.9em;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.games-history {
    margin: 50px auto;
    max-width: 1200px;
    background: #fff;
    padding: 30px;
    border: 4px solid #8b4513;
    box-shadow: 10px 10px 0 rgba(139, 69, 19, 0.2);
}

.games-history h3 {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4524e;
}

.profile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto;
}

.profile-table thead {
    background: #8b4513;
    color: #f5e6d3;
}

.profile-table th {
    padding: 18px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-table td {
    padding: 15px;
    border-bottom: 2px solid #f5e6d3;
    text-align: center;
    font-weight: 600;
}

.profile-table tbody tr:hover {
    background: #fff9f0;
}

.profile-table .game-id {
    font-weight: bold;
    color: #d4524e;
}

.profile-table .score.excellent {
    color: #2d6a3f;
    font-weight: bold;
}

.profile-table .score.good {
    color: #d97706;
    font-weight: bold;
}

.profile-table .score.normal {
    color: #d4524e;
    font-weight: bold;
}

/* Actions - style japonais */
.actions {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.actions a {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    background: #fff;
    color: #8b4513;
    text-decoration: none;
    border: 3px solid #8b4513;
    transition: all 0.3s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 5px 5px 0 rgba(139, 69, 19, 0.2);
}

.actions a:hover {
    background: #8b4513;
    color: #f5e6d3;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(139, 69, 19, 0.2);
}

.actions .btn {
    padding: 15px 35px;
    font-size: 1.1em;
}

.actions .btn-primary {
    background: #d4524e;
    color: white;
    border-color: #8b4513;
}

.actions .btn-primary:hover {
    background: #8b4513;
}

/* No data states - style japonais */
.no-data, .no-games {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 4px solid #8b4513;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 10px 10px 0 rgba(139, 69, 19, 0.2);
}

.no-games-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.no-data p, .no-games p {
    font-size: 1.3em;
    color: #8b4513;
    margin: 15px 0;
    font-weight: 600;
}

.btn-start-game {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: #d4524e;
    color: white;
    text-decoration: none;
    border: 3px solid #8b4513;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 8px 8px 0 rgba(139, 69, 19, 0.3);
}

.btn-start-game:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 rgba(139, 69, 19, 0.3);
}

/* Page d'accueil - styles */
.home-description {
    text-align: center;
    color: #8b4513;
    margin: 20px auto 0px auto;
    font-size: 1.2em;
    max-width: 800px;
    font-weight: 600;
}

.home-description em {
    color: #d4524e;
    font-style: normal;
    font-weight: bold;
}

/* Logo inline dans le texte */
.logo-inline {
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
    border-radius: 4px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-inline:hover {
    transform: scale(1.05);
}

.logo-inline-fallback {
    display: none;
    font-size: 1em;
    vertical-align: middle;
}

/* Logo dans la description d'accueil - ajustements spécifiques */
.home-description .logo-inline {
    height: 1.4em;
    border-radius: 2px;
    vertical-align: -0.3em;
}

.home-description .logo-inline:hover {
    transform: none;
}

/* Logo dans les boutons et liens d'action */
.actions a img,
.btn-start-game img,
.btn-primary img {
    height: 1.20em;
    width: 0.90em;
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px;
    border-radius: 2px;
    border: 0.01em solid black;
    transform: translateY(-0.05rem);
}

.actions a:hover img,
.btn-start-game:hover img,
.btn-primary:hover img {
    transform: translateY(-0.05rem);
}

/* Logo dans les icônes de statistiques */
.stat-icon img {
    margin-bottom: 0.25rem;
    width: auto;
    height: 1em;
    display: inline-block;
    border-radius: 4px;
    transform: translateY(0.5rem);
}

.stat-card:hover .stat-icon img {
    transform: translateY(0.5rem);
}

/* Harmonisation du comportement des emojis fallback */
.stat-icon span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon span {
    transform: scale(1.1) rotate(10deg);
}

.home-welcome {
    background: #fff;
    padding: 40px;
    margin: 20px auto;
    max-width: 700px;
    border: 4px solid #8b4513;
    box-shadow: 10px 10px 0 rgba(139, 69, 19, 0.2);
}

.home-welcome p {
    font-size: 1.3em;
    color: #8b4513;
    margin: 15px 0;
    font-weight: 600;
    line-height: 1.6;
}

.home-welcome nav {
    background: transparent;
    border: none;
    padding: 20px 0 0 0;
    margin-top: 30px;
}

.home-welcome nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-welcome nav ul li {
    margin: 20px 0;
}

.home-welcome nav ul li a {
    display: block;
    padding: 18px 30px;
    background: #fff;
    color: #8b4513;
    text-decoration: none;
    border: 3px solid #8b4513;
    font-size: 1.2em;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 6px 6px 0 rgba(139, 69, 19, 0.2);
}

.home-welcome nav ul li a:hover {
    background: #d4524e;
    color: white;
    border-color: #8b4513;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(139, 69, 19, 0.3);
}

/* Administration - styles */
.admin-container {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    gap: 30px;
}

.admin-card {
    background: white;
    padding: 30px;
    border: 4px solid #8b4513;
    box-shadow: 10px 10px 0 rgba(139, 69, 19, 0.2);
}

.admin-card.danger {
    border-color: #d4524e;
}

.admin-card.warning {
    border-color: #d97706;
}

.admin-card.info {
    border-color: #2d6a3f;
}

.admin-card h2 {
    margin-bottom: 15px;
    color: #8b4513;
    text-align: center;
}

.admin-card p {
    margin-bottom: 20px;
    color: #4a3528;
    text-align: center;
}

.admin-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f5e6d3;
    color: #2c1810;
}

.admin-card ul li:last-child {
    border-bottom: none;
}

.admin-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.admin-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.admin-card .form-group input,
.admin-card .form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 3px solid #8b4513;
    background: #f5e6d3;
    transition: border 0.3s;
    font-family: inherit;
}

.admin-card .form-group input:focus,
.admin-card .form-group select:focus {
    outline: none;
    border-color: #d4524e;
    background: #fff;
}

.btn-danger, .btn-warning {
    width: 100%;
    padding: 15px;
    border: 3px solid #8b4513;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 6px 6px 0 rgba(139, 69, 19, 0.3);
    transition: all 0.3s;
}

.btn-danger {
    background: #d4524e;
    color: white;
}

.btn-danger:hover {
    background: #b83f3b;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 rgba(139, 69, 19, 0.3);
}

.btn-danger:active {
    transform: translate(6px, 6px);
    box-shadow: none;
}

.btn-warning {
    background: #d97706;
    color: white;
}

.btn-warning:hover {
    background: #b86005;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 rgba(139, 69, 19, 0.3);
}

.btn-warning:active {
    transform: translate(6px, 6px);
    box-shadow: none;
}

.success-message {
    background: #2d6a3f;
    color: white;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    border: 3px solid #1a5c2e;
    font-weight: bold;
    box-shadow: 6px 6px 0 rgba(45, 106, 63, 0.3);
}

/* Appliquer VT323 aux onglets et boutons */
.nav-links a,
.btn-start,
.btn-start-game,
.btn-danger,
.btn-warning,
.actions a,
.btn-primary,
.home-welcome nav ul li a {
    font-family: 'VT323', monospace;
    font-size: 1.15em;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-logo {
        height: 55px;
    }
    
    .nav-logo-emoji {
        font-size: 2.8em;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    nav a {
        padding: 8px 15px;
        margin: 5px;
        font-size: 0.8em;
        width: 100%;
    }
    
    .card-front::before {
        font-size: 1.5em;
    }
    
    /* Ajustement des logos inline en responsive */
    .logo-inline {
        height: 1em;
    }
    
    .actions a img,
    .btn-start-game img {
        height: 0.95em;
    }
    
    .stat-icon img {
        height: 0.9em;
    }
}

@media (max-width: 480px) {
    .board {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .nav-logo {
        height: 45px;
    }
    
    .nav-logo-emoji {
        font-size: 2.2em;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    /* Logos encore plus petits sur mobile */
    .logo-inline {
        height: 0.95em;
    }
    
    .actions a img,
    .btn-start-game img {
        height: 0.9em;
    }
    
    .stat-icon img {
        height: 0.85em;
    }
}
