/* List des sites parts */
.remote-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Post Item Structure */
.remote-post-item {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

.remote-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.remote-post-item img {
    width: 350px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}




.remote-content {
    flex: 1;
    padding-right: 20px;
}

.remote-content h3 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.remote-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    #overflow: hidden;
}

/* Pagination */
.remote-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.remote-pagination a {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.remote-pagination a:hover {
    background: #990001;
    color: white;
    border-color: #990001;
}

/* La recherche  */
.remote-filter-form {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%; 
}

.filter-group input[type="text"],
.filter-group select,
.filter-group button {
    height: 46px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 16px;
    border: none; 
}

.filter-group input[type="text"],
.filter-group select {
    padding: 0 15px;
    border: 1px solid #ddd; 
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

#rsearch-input {
    flex: 0 1 400px;
    min-width: 200px;
}

#ryear-dropdown {
    flex: 0 1 180px;
    cursor: pointer;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #990001;
}

.filter-group button {
    width: 50px;
    background-color: #990001;
    color: white; 
    cursor: pointer;
    flex: none; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-group button:hover {
    opacity: 0.9;
}

.filter-group button svg {
    stroke: white;
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    #rsearch-input, 
    #ryear-dropdown,
    .filter-group button {
        flex: none; 
        width: 100%;
    }

    .remote-post-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .remote-post-item img {
        width: 100%; 
    }

    .remote-content {
        padding: 10px 0;
    }
}
