/* Marechal Downloads Filter Styles */

#mdf-downloads {
    padding: 40px 0;
}

.mdf-downloads__content {
    display: flex;
    gap: 40px;
}

/* Left sidebar - Filters */
.mdf-left,
.downloads__content > .left {
    flex: 0 0 300px;
}

/* Espacement entre les colonnes au dessus de 768px */
@media (min-width: 769px) {
    .mdf-left,
    .downloads__content > .left {
        margin-right: 40px;
    }
}

.mdf-reset-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.mdf-reset-btn:hover {
    background: #f5f5f5;
}

.mdf-reset-btn img {
    width: 16px;
    height: 16px;
}

.mdf-filters > div {
    margin-bottom: 30px;
}

.mdf-filters h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mdf-filters-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdf-brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mdf-filters-wrap label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mdf-filters-wrap input[type="checkbox"] {
    cursor: pointer;
}

.mdf-filters-wrap select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Right content - Downloads list */
.mdf-right {
    flex: 1;
}

.mdf-right__wrap h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mdf-search-wrap,
.search-wrap {
    margin-bottom: 20px;
}

.mdf-search-autocomplete,
.search-autocomplete {
    max-width: 275px !important;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mdf-search-autocomplete::placeholder,
.search-autocomplete::placeholder {
    font-size: 14px;
}

.separator {
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

/* Downloads list */
.mdf-downloads__files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mdf-download-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mdf-download-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mdf-download-item .mdf-left {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdf-download-item .mdf-left img {
    width: 40px;
    height: auto;
}

.mdf-download-item .mdf-right {
    flex: 1;
}

.mdf-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mdf-file-type {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.mdf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.mdf-bottom p {
    flex: 1;
    margin: 0;
    font-weight: 500;
}

.mdf-bottom a {
    flex: 0 0 auto;
}

.mdf-bottom img.picto {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mdf-bottom img.picto:hover {
    transform: scale(1.1);
}

.mdf-no-documents {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Pagination */
#mdf-pagination-container {
    margin-top: 30px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pagination a {
    cursor: pointer;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination span {
    font-weight: 500;
}

/* Autocomplete */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
}

.ui-autocomplete .highlight {
    font-weight: bold;
    background: #fff3cd;
}

/* Responsive */
@media (max-width: 768px) {
    .mdf-downloads__content {
        flex-direction: column;
    }
    
    .mdf-left,
    .downloads__content > .left {
        flex: 1;
        margin-bottom: 30px;
        margin-right: 0;
    }
    
    .mdf-download-item {
        flex-direction: column;
    }
    
    .mdf-download-item .mdf-left {
        flex: 1;
    }
}
