/* ═══════════════════════════════════════════════════════════
   MODULE SOUMISSION DE DOCUMENTS - CSS
   ═══════════════════════════════════════════════════════════ */

.sp-documents-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Messages */
.sp-doc-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.sp-doc-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.sp-doc-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Carte principale */
.sp-doc-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sp-doc-card h2 {
    color: #1a3c34;
    margin: 0 0 16px 0;
    font-size: 28px;
}

.sp-doc-card > p {
    color: #666;
    margin-bottom: 24px;
}

/* Formulaire de vérification */
.sp-doc-verify-form {
    max-width: 500px;
    margin: 0 auto;
}

.sp-doc-field {
    margin-bottom: 20px;
}

.sp-doc-field label {
    display: block;
    color: #1a3c34;
    font-weight: 600;
    margin-bottom: 8px;
}

.sp-doc-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.sp-doc-field input:focus {
    outline: none;
    border-color: #f5a623;
}

.sp-doc-field small {
    display: block;
    color: #999;
    margin-top: 6px;
    font-size: 13px;
}

/* Header du dossier */
.sp-doc-header {
    background: linear-gradient(135deg, #1a3c34 0%, #2d5f52 100%);
    padding: 24px;
    border-radius: 8px;
    color: white;
    margin-bottom: 24px;
}

.sp-doc-header h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
}

.sp-doc-dossier {
    color: rgba(255,255,255,0.9);
    margin: 8px 0 0 0;
    font-size: 14px;
}

.sp-doc-dossier strong {
    color: #f5a623;
}

/* Grille des cartes d'upload */
.sp-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

/* Carte d'upload individuelle */
.sp-doc-upload-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.sp-doc-upload-card:hover {
    border-color: #f5a623;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.1);
}

.sp-doc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sp-doc-icon {
    font-size: 24px;
}

.sp-doc-card-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #1a3c34;
}

.sp-doc-required {
    background: #f5a623;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sp-doc-optional {
    background: #e0e0e0;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sp-doc-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Zone d'upload */
.sp-doc-upload-zone {
    position: relative;
}

.sp-file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.sp-file-label:hover {
    border-color: #f5a623;
    background: #fff7e6;
}

.sp-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.sp-upload-text {
    color: #1a3c34;
    font-weight: 600;
    margin-bottom: 4px;
}

.sp-upload-formats {
    color: #999;
    font-size: 12px;
}

/* Liste des fichiers sélectionnés */
.sp-file-list {
    margin-top: 12px;
}

.sp-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.sp-file-info {
    flex: 1;
    font-size: 14px;
}

.sp-file-name {
    color: #1a3c34;
    font-weight: 500;
}

.sp-file-size {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}

.sp-file-remove {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.sp-file-remove:hover {
    background: #c82333;
}

/* Boutons */
.sp-doc-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.sp-doc-btn-primary {
    background: #f5a623;
    color: #fff;
}

.sp-doc-btn-primary:hover {
    background: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.sp-doc-btn-submit {
    background: linear-gradient(135deg, #1a3c34 0%, #2d5f52 100%);
    color: #fff;
    width: 100%;
    font-size: 18px;
    padding: 16px 32px;
}

.sp-doc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 60, 52, 0.3);
}

/* Actions */
.sp-doc-actions {
    margin-top: 32px;
    text-align: center;
}

.sp-doc-notice {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

/* Aide */
.sp-doc-help {
    background: #f5f9f7;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
    border-left: 4px solid #f5a623;
}

.sp-doc-help p {
    margin: 8px 0;
    color: #666;
}

.sp-doc-help strong {
    color: #1a3c34;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-documents-wrapper {
        padding: 16px;
    }
    
    .sp-doc-card {
        padding: 20px;
    }
    
    .sp-doc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sp-doc-header h2 {
        font-size: 20px;
    }
}