/* =============================================================================
   MINIPOLY - Styles CSS (Mobile-First PWA)
   Thème vert MCPL (#487854)
   ============================================================================= */

:root {
    /* Couleurs MCPL - Vert */
    --primary: #487854;
    --primary-dark: #3a6344;
    --primary-light: #5a9468;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f5f6f7;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius: 8px;

    /* Couleurs Monopoly */
    --chance-color: #FF6B35;
    --community-color: #4ECDC4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.5;
}

/* =============================================================================
   Container
   ============================================================================= */

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* =============================================================================
   Page de Connexion
   ============================================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.login-logo-img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.login-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-info {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    color: var(--white);
    text-align: left;
}

.login-info ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.version-info {
    margin-top: 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* =============================================================================
   Header Application
   ============================================================================= */

.app-header {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.app-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.player-points {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.player-timer {
    font-family: monospace;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tour-badge {
    background: var(--warning);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Boutons dans le header joueur (fond vert) */
.app-header .btn-outline {
    border-color: rgba(255,255,255,0.8);
    color: var(--white);
    background: transparent;
}

.app-header .btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
    color: var(--white);
}

/* =============================================================================
   Admin Header
   ============================================================================= */

.admin-header {
    background: var(--dark);
    color: var(--white);
    padding: 0.75rem 1rem;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary);
    color: var(--white);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    display: inline-block;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
    background: var(--primary);
    color: var(--white);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark) !important;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--light) !important;
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .admin-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }
    .admin-nav.open {
        display: flex;
    }
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown-toggle {
        display: block;
        width: 100%;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        border-radius: 0;
    }
    .nav-dropdown-menu a {
        color: rgba(255,255,255,0.8) !important;
        padding-left: 2rem;
    }
    .nav-dropdown-menu a:hover {
        background: var(--primary) !important;
        color: var(--white) !important;
    }
}

/* =============================================================================
   Formulaires
   ============================================================================= */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* =============================================================================
   Boutons
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-chance {
    background: var(--chance-color);
    color: var(--white);
}

.btn-community {
    background: var(--community-color);
    color: var(--white);
}

/* =============================================================================
   Alertes
   ============================================================================= */

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* =============================================================================
   Badges
   ============================================================================= */

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary); color: var(--white); }
.badge-success { background: var(--success); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-info { background: var(--info); color: var(--white); }
.badge-secondary { background: var(--gray); color: var(--white); }

/* =============================================================================
   Case actuelle
   ============================================================================= */

.current-case {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.case-icon {
    font-size: 2rem;
}

.case-position {
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.case-description {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.case-points {
    color: var(--primary);
    font-weight: 600;
}

/* =============================================================================
   Panel d'action
   ============================================================================= */

.action-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.prison-panel h3 {
    margin-bottom: 0.5rem;
}

.mini-panel h3 {
    margin-bottom: 0.5rem;
}

.special-panel {
    text-align: center;
}

.special-panel h3 {
    margin-bottom: 0.75rem;
}

.special-panel p {
    margin-bottom: 0.5rem;
}

.address {
    background: var(--light);
    padding: 0.75rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* =============================================================================
   Dés
   ============================================================================= */

.dice-result {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.dice-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dice {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.double-badge {
    background: var(--warning);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 0.5rem;
}

.prison-result {
    background: #f8d7da;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.prison-result .success {
    color: var(--success);
    font-size: 1.2rem;
}

.prison-result .failure {
    color: var(--danger);
    font-size: 1.2rem;
}

.roll-count {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* =============================================================================
   Modal Carte
   ============================================================================= */

.card-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.card-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    animation: cardFlip 0.5s ease;
}

@keyframes cardFlip {
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0); opacity: 1; }
}

.card-modal.chance .card-header {
    background: var(--chance-color);
}

.card-modal.caisse .card-header {
    background: var(--community-color);
}

.card-header {
    color: var(--white);
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-number {
    background: var(--light);
    padding: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-title {
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.card-description {
    padding: 0 1.5rem 1rem;
    color: var(--gray);
}

.card-effect {
    padding: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-effect.positive {
    background: #d4edda;
    color: #155724;
}

.card-effect.negative {
    background: #f8d7da;
    color: #721c24;
}

.card-modal .btn {
    margin: 1rem;
}

/* =============================================================================
   Plateau Monopoly Visuel
   ============================================================================= */

/* Couleurs authentiques Monopoly */
:root {
    --monopoly-brown: #955436;
    --monopoly-lightblue: #AAE0FA;
    --monopoly-pink: #D93A96;
    --monopoly-orange: #F7941D;
    --monopoly-red: #ED1B24;
    --monopoly-yellow: #FDEF42;
    --monopoly-green: #1FB25A;
    --monopoly-darkblue: #0072BB;
    --monopoly-board: #C8E6C9;
    --monopoly-border: #000000;
}

.monopoly-board-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.monopoly-board {
    display: grid;
    grid-template-columns: 60px repeat(9, 45px) 60px;
    grid-template-rows: 60px repeat(9, 45px) 60px;
    background: var(--monopoly-board);
    border: 3px solid var(--monopoly-border);
    margin: 0 auto;
    min-width: 520px;
    max-width: 520px;
}

/* Cases du plateau */
.board-cell {
    background: #d5e8d4;
    border: 1px solid var(--monopoly-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Cases coins (plus grandes) */
.board-cell.corner {
    font-size: 0.6rem;
    text-align: center;
    padding: 2px;
}

.board-cell.corner .corner-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.board-cell.corner .corner-text {
    font-size: 0.5rem;
    line-height: 1.1;
}

/* Bande de couleur sur les proprietes */
.board-cell .color-band {
    position: absolute;
    height: 12px;
    left: 0;
    right: 0;
}

/* Position de la bande selon le cote */
.board-cell.top .color-band { bottom: 0; }
.board-cell.bottom .color-band { top: 0; }
.board-cell.left .color-band {
    top: 0; bottom: 0; right: auto; left: 0;
    width: 12px; height: auto;
}
.board-cell.right .color-band {
    top: 0; bottom: 0; left: auto; right: 0;
    width: 12px; height: auto;
}

/* Couleurs des proprietes */
.color-band.brown { background: var(--monopoly-brown); }
.color-band.lightblue { background: var(--monopoly-lightblue); }
.color-band.pink { background: var(--monopoly-pink); }
.color-band.orange { background: var(--monopoly-orange); }
.color-band.red { background: var(--monopoly-red); }
.color-band.yellow { background: var(--monopoly-yellow); }
.color-band.green { background: var(--monopoly-green); }
.color-band.darkblue { background: var(--monopoly-darkblue); }

/* Nom de la case */
.board-cell .cell-name {
    font-size: 0.45rem;
    text-align: center;
    line-height: 1.1;
    padding: 1px;
    max-height: 28px;
    overflow: hidden;
}

.board-cell.left .cell-name,
.board-cell.right .cell-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    max-height: none;
    max-width: 28px;
}

.board-cell.left .cell-name {
    transform: rotate(180deg);
}

/* Icones cases speciales */
.board-cell .cell-icon {
    font-size: 0.9rem;
}

.board-cell.left .cell-icon,
.board-cell.right .cell-icon {
    font-size: 0.8rem;
}

/* Case actuelle avec pion */
.board-cell.current {
    background: #fff9c4 !important;
    box-shadow: inset 0 0 0 3px #f44336;
    z-index: 10;
}

.board-cell .pion {
    font-size: 1.1rem;
    animation: pion-bounce 0.5s ease-in-out;
}

@keyframes pion-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Centre du plateau */
.board-center {
    grid-column: 2 / 11;
    grid-row: 2 / 11;
    background: var(--monopoly-board);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
}

.board-center-content {
    text-align: center;
}

.board-center .board-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--monopoly-red);
    text-shadow: 2px 2px 0 #000;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.board-center .board-subtitle {
    font-size: 0.7rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Des au centre */
.center-dice {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.5rem 0;
}

.center-dice .dice {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.center-dice .dice.rolling {
    animation: dice-roll 0.3s ease-in-out infinite;
}

@keyframes dice-roll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.dice-total {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-top: 0.25rem;
}

.dice-total.is-double {
    color: var(--monopoly-red);
}

/* Cases speciales - icones */
.board-cell.chance .cell-icon { color: var(--chance-color); }
.board-cell.caisse .cell-icon { color: var(--community-color); }
.board-cell.taxe .cell-icon { color: #c2185b; }
.board-cell.gare .cell-icon { color: #333; }
.board-cell.compagnie .cell-icon { color: #5c6bc0; }

/* Responsive - Mode paysage privilegie */
@media (max-width: 600px) {
    .monopoly-board {
        grid-template-columns: 50px repeat(9, 38px) 50px;
        grid-template-rows: 50px repeat(9, 38px) 50px;
        min-width: 435px;
        max-width: 435px;
    }
    .board-cell .cell-name {
        font-size: 0.35rem;
    }
    .board-cell .cell-icon {
        font-size: 0.7rem;
    }
    .board-cell.corner .corner-icon {
        font-size: 1rem;
    }
    .board-cell.corner .corner-text {
        font-size: 0.4rem;
    }
    .board-center .board-logo {
        font-size: 1.2rem;
    }
    .board-center .board-subtitle {
        font-size: 0.5rem;
    }
    .center-dice .dice {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .dice-total {
        font-size: 0.8rem;
    }
}

/* Mode paysage mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .monopoly-board-container {
        overflow-x: visible;
    }
    .monopoly-board {
        grid-template-columns: 55px repeat(9, 42px) 55px;
        grid-template-rows: 55px repeat(9, 42px) 55px;
        min-width: 480px;
        max-width: 480px;
    }
    .container {
        max-width: 100%;
        padding: 0.5rem;
    }
    .app-header {
        padding: 0.5rem;
    }
    .current-case {
        padding: 0.75rem;
    }
    .action-panel {
        padding: 0.75rem;
    }
}

/* Suggestion mode paysage */
@media (max-width: 600px) and (orientation: portrait) {
    .landscape-hint {
        display: block;
        background: var(--info);
        color: white;
        padding: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        border-radius: var(--radius);
    }
}

@media (orientation: landscape), (min-width: 601px) {
    .landscape-hint {
        display: none;
    }
}

/* =============================================================================
   Contacts
   ============================================================================= */

.contacts-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.contacts-panel h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contacts-panel a {
    color: var(--primary);
    font-weight: 600;
}

/* =============================================================================
   Admin Cards
   ============================================================================= */

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-card h2,
.admin-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

/* =============================================================================
   Stats Grid
   ============================================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* =============================================================================
   Data Table
   ============================================================================= */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.data-table tr:hover {
    background: var(--light);
}

/* =============================================================================
   Tabs
   ============================================================================= */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.2s;
}

.tab:hover {
    border-color: var(--primary);
}

.tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =============================================================================
   Cards Grid (Admin)
   ============================================================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.2s;
}

.game-card.inactive {
    opacity: 0.5;
}

.game-card.chance {
    border-top: 4px solid var(--chance-color);
}

.game-card.community {
    border-top: 4px solid var(--community-color);
}

.game-card .card-num {
    background: var(--light);
    padding: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.game-card .card-title {
    padding: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.game-card .card-desc {
    padding: 0.75rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.game-card .card-effect {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.game-card .card-actions {
    padding: 0.75rem;
    background: var(--light);
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 480px) {
    .app-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-info {
        width: 100%;
        justify-content: space-between;
    }

    .login-title {
        font-size: 2rem;
    }

    .dice {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* =============================================================================
   Admin Board - Position des equipes
   ============================================================================= */

.admin-board-container {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-board-track {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.admin-board-cell {
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    position: relative;
}

.admin-board-cell.has-team {
    background: #fff9c4;
    border-color: #f9a825;
}

.admin-board-cell .cell-num {
    font-weight: 600;
    color: #666;
}

.admin-board-cell .cell-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
    margin-top: 2px;
}

.team-marker {
    font-size: 0.5rem;
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 600;
}

.team-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.team-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

/* =============================================================================
   Boutons Navigation GPS
   ============================================================================= */

.gps-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-gps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.btn-gmaps {
    background: #4285f4;
    color: white;
}

.btn-gmaps:hover {
    background: #3367d6;
}

.btn-waze {
    background: #33ccff;
    color: white;
}

.btn-waze:hover {
    background: #00b8e6;
}

.btn-gps-icon {
    font-size: 1.2rem;
}
