/* Styles globaux */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* Styles des liens de navigation */
.nav-link {
    color: #4a5568;
    position: relative;
}

.dark .nav-link {
    color: #e2e8f0;
}

.nav-link:hover {
    color: #5D5CDE;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #5D5CDE;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Styles des dés */
.dice {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid #5D5CDE;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .dice {
    background-color: #2d3748;
    border-color: #5D5CDE;
    color: white;
}

.dice.held {
    background-color: #5D5CDE;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(93, 92, 222, 0.4);
}

.dice.rolling {
    animation: diceRoll 0.5s ease-in-out;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(10deg); }
}

/* Styles du tableau de score */
.score-row:hover {
    background-color: rgba(93, 92, 222, 0.1);
}

.score-row.used {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .score-row:hover {
    background-color: rgba(93, 92, 222, 0.2);
}

.dark .score-row.used {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Animation de transition */
.game-view {
    transition: opacity 0.3s ease-in-out;
}

/* Messages */
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.message {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Boutons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loader */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #5D5CDE;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.dark .spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: #5D5CDE;
}

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