/* Épreuves Combinées - Décathlon et Heptathlon */

.event-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.event-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.event-tab:hover {
    color: #0066cc;
}

.event-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.event-section {
    display: none;
}

.event-section.active {
    display: block;
}

.event-description {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.day-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid #e2e8f0;
}

.day-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0 2rem 0;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.day-total-label {
    font-weight: 600;
    color: #64748b;
    font-size: 1rem;
}

.day-total-points {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0066cc;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1400px) {
    .performance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .performance-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .performance-grid {
        grid-template-columns: 1fr;
    }
}

.performance-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.performance-item label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.perf-input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.perf-input:focus {
    outline: none;
    border-color: #0066cc;
}

.perf-input.has-value {
    border-color: #10b981;
}

.points-display {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0066cc;
    padding: 0.5rem;
    background: #f0f9ff;
    border-radius: 6px;
    text-align: center;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-display.calculated {
    background: #dcfce7;
    color: #16a34a;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 12px;
    color: white;
}

.total-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.total-points {
    font-size: 2rem;
    font-weight: 800;
}

.reset-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #0066cc;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.info-box h3 {
    color: #92400e;
    margin-bottom: 1rem;
}

.info-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: #78350f;
}

.info-box p {
    color: #78350f;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .total-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .total-label {
        font-size: 1rem;
    }

    .total-points {
        font-size: 1.5rem;
    }

    .event-tabs {
        flex-direction: column;
    }

    .event-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .event-tab.active {
        border-left-color: #0066cc;
    }
}
