/* ============================================================================
   STYLES POUR LE FORMULAIRE COMPENSATION - Design Moderne et Premium
   ============================================================================ */

/* Container principal */
.paps-compensation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Affichage des informations de référence */
.pk-info-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    animation: slideInDown 0.6s ease-out;
}

.pk-info-display h4 {
    color: white !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pk-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pk-info-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.pk-info-item:last-child {
    margin-bottom: 0;
}

.pk-info-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
}

.pk-info-value {
    color: white;
    font-weight: 700;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
}

/* Sections du formulaire */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Box d'information */
.paps-info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
    border-left: 5px solid #3b82f6;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.paps-info-box p {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
}

.form-group label span[style*="color: #dc3545"] {
    color: #dc3545;
    font-size: 18px;
    margin-left: 3px;
}

/* Groupes de checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    background: #f9fafb;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #f3f4f6;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.5;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

/* Groupes de radios */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    background: #f9fafb;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-item:hover {
    background: #f3f4f6;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    flex: 1;
}

.radio-item input[type="radio"]:checked {
    transform: scale(1.1);
}

.radio-item:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.radio-item:has(input[type="radio"]:checked) label {
    color: #667eea;
    font-weight: 600;
}

/* Champs conditionnels */
.conditional-field {
    animation: slideDown 0.4s ease-out;
    overflow: hidden;
}

.conditional-field textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.conditional-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Textarea pour observations */
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Boutons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Message de succès */
.alert {
    display: none;
    padding: 18px 20px;
    border-radius: 12px;
    font-weight: 600;
    animation: slideInUp 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 5px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .paps-compensation-container {
        padding: 15px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .pk-info-display {
        padding: 20px;
    }
    
    .pk-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pk-info-value {
        width: 100%;
        text-align: center;
    }
}