/* css/styles_paris.css */
* {
    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;
    color: #333;
}

.paris-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.paris-header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.paris-header h1 {
    color: #2c3e50;
    font-size: 2.2em;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-info span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Alertes */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Sections */
section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card.detailed {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.stats-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

/* Cotes des joueurs */
.cotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.joueur-cote-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    background: white;
}

.joueur-cote-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.joueur-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.joueur-header h3 {
    color: #2c3e50;
    font-size: 1.4em;
}

.cote-badge {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: 700;
}

.joueur-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.status-debloque {
    color: #28a745;
    font-weight: 600;
}

.status-bloque {
    color: #ffc107;
    font-weight: 600;
}

/* Formulaires de pari */
.pari-form {
    margin-top: 15px;
}

.montant-input {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.montant-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.montant-input input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-pari {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pari:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-pari.live {
    background: #dc3545;
}

.btn-pari.live:hover {
    background: #c82333;
}

.gain-info {
    text-align: center;
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 10px;
}

/* Paris Live */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.live-pari-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.live-pari-card:hover {
    border-color: #17a2b8;
    transform: translateY(-3px);
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.live-header h4 {
    color: #2c3e50;
    font-size: 1.2em;
}

.cote-live {
    background: #17a2b8;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
}

/* Historique */
.historique-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .historique-grid {
        grid-template-columns: 1fr;
    }
}

.paris-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pari-item {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pari-item:hover {
    border-color: #3498db;
}

.pari-item.en_cours {
    border-left: 4px solid #ffc107;
}

.pari-item.gagne {
    border-left: 4px solid #28a745;
}

.pari-item.perdu {
    border-left: 4px solid #dc3545;
}

.pari-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.pari-id {
    font-weight: 600;
    color: #6c757d;
}

.pari-date {
    color: #6c757d;
    font-size: 0.9em;
}

.pari-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.detail-row span:first-child {
    color: #6c757d;
}

.cote {
    color: #28a745;
    font-weight: 700;
}

.pari-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}

.statut-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.statut-en_cours {
    background: #fff3cd;
    color: #856404;
}

.statut-gagne {
    background: #d4edda;
    color: #155724;
}

.statut-perdu {
    background: #f8d7da;
    color: #721c24;
}

.gain-reel {
    color: #28a745;
    font-weight: 600;
}

/* Aucune donnée */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-data p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Informations */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Résumé financier */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.resume-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.resume-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.resume-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.resume-item:last-child {
    border-bottom: none;
}

.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}

/* Aucune partie */
.no-partie {
    text-align: center;
    padding: 60px 40px;
}

.no-partie-content h2 {
    color: #6c757d;
    margin-bottom: 20px;
    border: none;
}

.suggestions {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .paris-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .montant-input {
        flex-direction: column;
    }
    
    .cotes-grid {
        grid-template-columns: 1fr;
    }
    
    .live-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 20px;
    }
    
    .pari-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}