/* ===== STYLES POUR LE WIDGET RÉSULTAT VENTE ===== */
.recap-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.recap-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f4fd;
}

.recap-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
}

.recap-header .success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.recap-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.recap-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    overflow: hidden;
    word-wrap: break-word;
}

.recap-card.service {
    border-left-color: #3498db;
    max-width: 100%;
    box-sizing: border-box;
}

.recap-card.personal {
    border-left-color: #9b59b6;
}

.recap-card.files {
    border-left-color: #e74c3c;
    grid-column: 1 / -1;
}

.recap-card.dossier {
    border-left-color: #27ae60;
    grid-column: 1 / -1;
    text-align: center;
    background-color: #e8f6f3;
}

.recap-card h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
}

.info-label {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    min-width: 120px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 12px;
    color: #34495e;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
    display: block;
    width: 100%;
}

.dossier-number {
    font-size: 28px;
    font-weight: bold;
    color: #27ae60;
    margin: 15px 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    word-break: break-all;
}

.next-steps {
    background-color: #e8f4fd;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.next-steps h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    line-height: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* ===== MODIFICATIONS POUR L'AFFICHAGE COMPACT DES FICHIERS ===== */
.files-grid-container {
    margin-top: 15px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes au lieu de 2 */
    gap: 10px; /* Espacement réduit pour plus de compacité */
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 10px; /* Padding réduit pour plus de compacité */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px; /* Bordures moins arrondies */
    transition: all 0.2s;
    overflow: hidden;
    min-height: 40px; /* Hauteur minimale réduite */
}

.file-item:hover {
    background-color: #f5f5f5;
    border-color: #3498db;
}

.file-icon {
    margin-right: 8px; /* Marge réduite */
    color: #e74c3c;
    flex-shrink: 0;
    font-size: 14px; /* Taille d'icône réduite */
}

.file-name {
    color: #2c3e50;
    font-size: 11px; /* Taille de police réduite */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    line-height: 1.3;
}

/* Indicateurs de type de fichier */
.file-pdf { color: #e74c3c; }
.file-doc { color: #3498db; }
.file-xls { color: #27ae60; }
.file-img { color: #9b59b6; }
.file-zip { color: #f39c12; }
.file-generic { color: #7f8c8d; }

/* Badge pour nouveaux fichiers */
.new-badge {
    background-color: #27ae60;
    color: white;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 5px;
    font-weight: bold;
}

/* Application globale de la police Verdana à tous les éléments */
.recap-container,
.recap-container * {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Surcharge pour éléments spécifiques si nécessaire */
.recap-header h1 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.recap-card h3 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.info-item,
.info-label,
.info-value {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.dossier-number {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.next-steps h3 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.step-item {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.file-name {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Media queries pour la responsivité */
@media (max-width: 1024px) {
    .files-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablettes */
    }
}

@media (max-width: 768px) {
    .recap-content {
        grid-template-columns: 1fr;
    }
    
    .recap-card.dossier, .recap-card.files {
        grid-column: 1;
    }
    
    .files-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
    
    .steps-list {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    /* Ajustements supplémentaires pour mobile */
    .recap-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .recap-header h1 {
        font-size: 24px;
    }
    
    .recap-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .file-item {
        padding: 6px 8px;
    }
    
    .file-icon {
        margin-right: 6px;
        font-size: 12px;
    }
    
    .file-name {
        font-size: 10px;
    }
}
