.fdm-files-container {
    max-width: 1200px;
    margin: 20px auto;
}

.fdm-file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.fdm-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fdm-file-icon {
    font-size: 2em;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.fdm-file-icon i {
    color: #2271b1;
}

/* Couleurs spécifiques pour les types de fichiers */
.fdm-file-icon .fa-file-pdf {
    color: #dc3545;
}

.fdm-file-icon .fa-file-word {
    color: #2b579a;
}

.fdm-file-icon .fa-file-excel {
    color: #217346;
}

.fdm-file-icon .fa-file-powerpoint {
    color: #d24726;
}

.fdm-file-icon .fa-file-image {
    color: #20c997;
}

.fdm-file-icon .fa-file-audio {
    color: #6f42c1;
}

.fdm-file-icon .fa-file-video {
    color: #fd7e14;
}

.fdm-file-icon .fa-file-archive {
    color: #795548;
}

.fdm-file-info {
    flex-grow: 1;
}

.fdm-file-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #1d2327;
}

.fdm-file-meta {
    display: flex;
    gap: 20px;
    color: #646970;
    font-size: 0.9em;
}

.fdm-file-meta span {
    display: flex;
    align-items: center;
}

.fdm-file-meta i {
    margin-right: 5px;
    font-size: 0.9em;
}

.fdm-download-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.fdm-download-button:hover {
    background: #135e96;
    color: #fff;
}

.fdm-download-button i {
    margin-right: 5px;
}

/* Pagination */
.fdm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.fdm-page-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f0f0f1;
    color: #2271b1;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fdm-page-link:hover {
    background: #2271b1;
    color: #fff;
}

.fdm-page-current {
    background: #2271b1;
    color: #fff;
}

.fdm-page-link i {
    font-size: 0.8em;
}

.fdm-page-link i.fa-chevron-left {
    margin-right: 5px;
}

.fdm-page-link i.fa-chevron-right {
    margin-left: 5px;
}

/* Modal */
.fdm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.fdm-modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.fdm-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.fdm-modal-close:hover {
    color: #000;
}

.fdm-email-form {
    margin-top: 20px;
}

.fdm-form-group {
    margin-bottom: 20px;
}

.fdm-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #1d2327;
}

.fdm-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fdm-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.fdm-submit-button,
.fdm-download-direct {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.fdm-submit-button {
    background: #2271b1;
    color: #fff;
}

.fdm-submit-button:hover {
    background: #135e96;
}

.fdm-download-direct {
    background: #f0f0f1;
    color: #1d2327;
}

.fdm-download-direct:hover {
    background: #ddd;
}

.fdm-submit-button i,
.fdm-download-direct i {
    margin-right: 5px;
}

/* Modal de remerciement */
#fdm-thank-you-modal .fdm-modal-content {
    text-align: center;
    padding: 30px;
}

#fdm-thank-you-modal h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

#fdm-thank-you-modal p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

#fdm-thank-you-modal .fdm-modal-actions {
    margin-top: 20px;
}

#fdm-thank-you-modal .fdm-ok-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#fdm-thank-you-modal .fdm-ok-button:hover {
    background-color: #45a049;
}
