* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 20px;
}

nav {
    text-align: center;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

#joueursSection {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.joueur-group {
    margin-bottom: 15px;
}

.joueur-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.equipe-group {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
}

.equipe-group h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
}

.scores-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.set-group {
    margin-bottom: 15px;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-inputs input {
    width: 80px;
    text-align: center;
}

.score-inputs span {
    font-weight: bold;
    color: #667eea;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.matchs-list {
    margin-top: 20px;
}

.match-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.match-date {
    font-weight: 600;
    color: #667eea;
}

.match-tableau {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.match-joueurs {
    margin-bottom: 15px;
}

.match-joueurs p {
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
}

.match-score {
    font-size: 24px;
    font-weight: bold;
    color: #764ba2;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.no-matchs {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .logo {
        max-width: 150px;
    }

    .joueur-inputs {
        grid-template-columns: 1fr;
    }

    .match-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-score {
        font-size: 20px;
    }
}