* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* NAVBAR - blanc à pois rouges */
.navbar {
    background-color: white;
    background-image: radial-gradient(circle, #e00000 10%, transparent 10%);
    background-size: 30px 30px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #e00000;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.navbar-menu a {
    color: #e00000;
    text-decoration: none;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ALERTS */
.alert {
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* AUTH */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-container h1 {
    text-align: center;
    color: #e00000;
    font-size: 2em;
    margin-bottom: 10px;
}

.auth-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e00000;
    outline: none;
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    margin: 5px;
}

.btn-primary {
    background: #e00000;
    color: white;
}

.btn-primary:hover { background: #b00000; }

.btn-secondary {
    background: #ddd;
    color: #333;
}

/* DASHBOARD */
.dashboard h2 {
    font-size: 1.8em;
    margin: 30px 0 20px;
    color: #333;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card-action {
    flex: 1;
    background: #f0f0f0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.card-action:hover { transform: scale(1.03); }

.card-action.rejoindre {
    background: #e8f5e9;
}

.card-action-img {
    font-size: 4em;
    margin-bottom: 15px;
}

.card-action-label {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.card-action.rejoindre .card-action-label {
    color: #2e7d32;
}

/* PARTIES */
.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.partie-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.partie-header {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.partie-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #666;
    margin-bottom: 15px;
}

.partie-code {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #333;
}

.partie-code strong {
    color: #e00000;
    letter-spacing: 2px;
}

.btn-classement {
    background: #2e7d32;
    color: white;
}
.btn-classement:hover { background: #1b5e20; }

.partie-card-link {
    text-decoration: none;
    color: inherit;
}

.partie-card-link:hover .partie-card {
    transform: scale(1.03);
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.partie-classement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.classement-position {
    font-size: 2.5em;
    font-weight: bold;
    color: #e00000;
}

.classement-label {
    color: #666;
    font-size: 0.9em;
}

.admin-badge {
    background: #ff6600;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85em;
    margin-top: 10px;
    display: inline-block;
}

.detail-partie h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-card h3 {
    color: #e00000;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
}

.detail-trois-colonnes {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}
.detail-deux-colonnes {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}
.colonne-gauche, .colonne-centre, .colonne-droite {
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .detail-trois-colonnes {
        grid-template-columns: 1fr;
    }
    .detail-deux-colonnes {
        grid-template-columns: 1fr;
    }
}
