/* Styles pour les boutons de statut */
.statut-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 0.5rem;
}

.statut-option {
    margin: 0;
    flex: 1;
    min-width: 140px;
}

.statut-radio-input {
    display: none;
}

.statut-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.statut-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.statut-button:hover::before {
    left: 100%;
}

.statut-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.statut-button:hover i {
    transform: scale(1.2);
}

/* Couleurs par statut */
.statut-button[data-code="DRAFT"] {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #6c757d;
}

.statut-button[data-code="DRAFT"]:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.statut-button[data-code="PENDING"] {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #212529;
    border-color: #ffc107;
}

.statut-button[data-code="PENDING"]:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.statut-button[data-code="CONFIRMED"] {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-color: #17a2b8;
}

.statut-button[data-code="CONFIRMED"]:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.statut-button[data-code="IN_PROGRESS"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

.statut-button[data-code="IN_PROGRESS"]:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.statut-button[data-code="COMPLETED"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border-color: #28a745;
}

.statut-button[data-code="COMPLETED"]:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.statut-button[data-code="DELIVERED"] {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-color: #20c997;
}

.statut-button[data-code="DELIVERED"]:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
}

.statut-button[data-code="INVOICED"] {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
    color: white;
    border-color: #6f42c1;
}

.statut-button[data-code="INVOICED"]:hover {
    background: linear-gradient(135deg, #5a2d91 0%, #4a1d7a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
}

.statut-button[data-code="CANCELLED"] {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
}

.statut-button[data-code="CANCELLED"]:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* État sélectionné */
.statut-radio-input:checked + .statut-button {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    animation: selectedPulse 0.6s ease-in-out;
}

@keyframes selectedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
    .statut-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .statut-option {
        min-width: auto;
    }
    
    .statut-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Animation d'apparition */
.statut-buttons {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de focus pour l'accessibilité */
.statut-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* État désactivé */
.statut-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.statut-button:disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Container de sélection de statut */
.statut-selection-container {
    position: relative;
}

.statut-help-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.statut-help-text i {
    color: #17a2b8;
}

/* Amélioration de l'espacement */
.form-group .statut-buttons {
    margin-top: 0.75rem;
}

/* Animation d'apparition pour les boutons */
.statut-button {
    position: relative;
    overflow: hidden;
}

.statut-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.statut-button:active::after {
    width: 200px;
    height: 200px;
}

/* Effet de brillance au survol */
.statut-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.statut-button:hover::before {
    left: 100%;
}

/* Styles pour les badges de statut */
.statut-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.statut-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.statut-badge i {
    font-size: 0.9rem;
}

/* Couleurs des badges par statut */
.statut-badge-draft {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #6c757d;
}

.statut-badge-pending {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #212529;
    border-color: #ffc107;
}

.statut-badge-confirmed {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-color: #17a2b8;
}

.statut-badge-in_progress {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

.statut-badge-completed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border-color: #28a745;
}

.statut-badge-delivered {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-color: #20c997;
}

.statut-badge-invoiced {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
    color: white;
    border-color: #6f42c1;
}

.statut-badge-cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
}

/* Badge pour les tâches partiellement effectuées */
.statut-badge-partiellement_effectuee,
.badge-partiellement_effectuee {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #ff9800;
}

/* Animation pour les badges */
.statut-badge {
    animation: badgeAppear 0.5s ease-out;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
} 