.taq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

.taq-main {
    flex: 3;
    margin-right: 20px;
}

.taq-sidebar {
    flex: 1;
}

.taq-breadcrumb {
    margin-bottom: 20px;
    flex: 1 1 100%;
}

.taq-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.taq-breadcrumb a:hover {
    text-decoration: underline;
}

.taq-software-header {
    display: flex;
    margin-bottom: 20px;
}

.taq-software-image img {
    max-width: 300px;
    height: auto;
    margin-right: 20px;
}

.taq-software-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Added to position the report link */
}

.taq-software-info .taq-presentation-title {
    display: inline-block;
    margin-right: 10px; /* Space for the report link */
}

.taq-report-link {
    position: absolute;
    top: 0;
    right: 0;
    color: #ff4d4d;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.taq-report-link:hover {
    background: rgba(255, 77, 77, 0.1);
    text-decoration: underline;
}

.taq-button-group {
    display: flex;
    justify-content: flex-start; /* Align buttons to the left */
    align-items: center;
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

.taq-download-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taq-download-btn:hover {
    background: #005177;
}

.taq-download-btn .dashicons {
    font-size: 20px;
}

.taq-details-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.taq-details-btn:hover {
    background: #005177;
}

.taq-details-btn .dashicons {
    font-size: 20px;
}

.taq-screenshots-slider {
    margin-bottom: 20px;
    position: relative;
}

.taq-simple-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow:-1px -1px 5px #1f1e1e;
    border-radius: 2px;
}

.taq-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.taq-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.taq-slide img {
    max-width: 100%;
    height: auto;
    display: block;
}

.taq-slider-prev,
.taq-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.taq-slider-prev {
    left: 10px;
}

.taq-slider-next {
    right: 10px;
}

.taq-slider-prev:hover,
.taq-slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.taq-slider-dots {
    text-align: center;
    margin-top: 10px;
}

.taq-slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.taq-slider-dot.active {
    background: #0073aa;
}

.taq-description {
    margin-bottom: 20px;
}

.taq-description ul,
.taq-description ol {
    margin: 15px 0;
    padding-left: 30px;
}

.taq-description ul {
    list-style-type: disc;
}

.taq-description ol {
    list-style-type: decimal;
}

.taq-description li {
    margin-bottom: 10px;
    color: #333;
    font-size: 1em;
}

.taq-ratings-comments {
    margin-bottom: 20px;
}

#taq-rating-form {
    margin-bottom: 20px;
}

#taq-rating-form label {
    display: block;
    margin-bottom: 5px;
}

#taq-rating-form input[type="number"],
#taq-rating-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

#taq-rating-form button {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#taq-rating-form button:hover {
    background: #005177;
}

.taq-comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.taq-related-software {
    margin-bottom: 20px;
}

.taq-software-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.taq-download-links a {
    display: inline-block;
    margin-right: 10px;
    color: #0073aa;
    text-decoration: none;
}

.taq-download-links a:hover {
    text-decoration: underline;
}

.taq-download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.taq-download-modal[aria-hidden="false"] {
    display: flex;
}

.taq-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.taq-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

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

.taq-download-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.taq-download-option {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.taq-download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.taq-platform-info {
    flex: 1;
}

.taq-platform-info h3 {
    margin: 0 0 5px;
    font-size: 1.1em;
}

.taq-platform-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

.taq-file-details {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

/* Style spécifique pour les exigences */
.taq-requirements {
    display: inline-block;
    color: #ff0000;
    background: #fff;
    padding: 2px 8px;
    border: 1px solid #ff0000;
    border-radius: 4px;
    margin-left: 5px;
}

/* Conteneur pour le logo et le bouton */
.taq-download-option-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.taq-btn {
    background: #0073aa;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.taq-btn:hover {
    background: #005177;
}

.taq-filters {
    margin-bottom: 20px;
}

.taq-filter-form select {
    padding: 8px;
    margin-right: 10px;
    border-radius: 4px;
}

.taq-software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.taq-software-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.taq-platforms {
    margin-bottom: 10px;
}

.taq-platform {
    margin-right: 10px;
}

.taq-widget {
    margin-bottom: 20px;
  /*  background: #fff;*/
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.taq-widget:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.taq-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taq-widget-list li {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.taq-widget-list li:last-child {
    border-bottom: none;
}

.taq-widget-list a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.taq-widget-list a:hover {
    color: #005177;
    text-decoration: underline;
}

.taq-top-downloads-widget {
    padding: 10px 0;
}

.taq-license-type {
    font-size: 14px;
    margin: 5px 0;
    color: #555;
}

.taq-license-type strong {
    color: #333;
}

.taq-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

.taq-rating-stars {
    color: #f1c40f;
    font-size: 16px;
}

.taq-rating-stars .star {
    display: inline-block;
}

.taq-rating-input {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-width: 150px !important;
    margin-bottom: 10px;
    unicode-bidi: bidi-override;
}

.taq-rating-input input {
    display: none;
}

.taq-rating-input .taq-star {
    display: inline-block;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    margin: 0 2px;
    padding: 0 2px;
    transition: color 0.2s;
}

.taq-rating-input .taq-star:hover,
.taq-rating-input .taq-star:hover ~ .taq-star,
.taq-rating-input .taq-star.selected {
    color: #f1c40f;
}

.taq-rating-input .taq-star.selected ~ .taq-star {
    color: #ccc;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .taq-container {
        flex-direction: column;
    }

    .taq-main {
        margin-right: 0;
    }

    .taq-software-header {
        flex-direction: column;
    }

    .taq-software-image img {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .taq-slider-prev,
    .taq-slider-next {
        padding: 8px;
        font-size: 16px;
    }

    .taq-download-modal {
        padding: 10px;
    }

    .taq-modal-content {
        width: 95%;
        padding: 15px;
    }

    .taq-download-options {
        grid-template-columns: 1fr;
    }

    .taq-download-option {
        flex-direction: column;
        gap: 10px;
    }

    .taq-btn {
        width: 100%;
        text-align: center;
    }

    .taq-button-group {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .taq-download-btn,
    .taq-buy-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* Styles pour harmoniser les titres */
.taq-presentation-title,
.taq-software-info .taq-presentation-title {
    font-size: 1.5em !important;
    margin: 20px 0 10px !important;
    color: #ff0303 !important;
}

.taq-sidebar h2 {
    font-size: 1.5em !important;
    margin: 20px 0 10px !important;
    color: #ff0303 !important;
    padding-bottom: 0 !important;
}

hr.taq-description-separator {
    border: 0 !important;
    border-top: 2px solid #ff0000 !important;
    margin: 10px 0 20px !important;
}

/* Styles pour la barre de filtres par catégorie */
.taq-main .taq-categories-filter {
    background: #ff0000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.taq-main .taq-categories-filter h2 {
    color: #fff;
    font-size: 1.2em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.taq-main .taq-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taq-main .taq-category-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.taq-main .taq-category-link:hover,
.taq-main .taq-category-link.active {
    background: #fff;
    color: #ff0000;
}

/* Styles pour la barre de filtres par sous-catégorie */
.taq-main .taq-subcategories-filter {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.taq-main .taq-subcategories-filter h3 {
    color: #333;
    font-size: 1.2em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.taq-main .taq-subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taq-main .taq-subcategory-link {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ddd;
    transition: background 0.3s, color 0.3s;
}

.taq-main .taq-subcategory-link:hover,
.taq-main .taq-subcategory-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Styles pour la liste des logiciels */
.taq-software-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.taq-software-item {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
   /* background: #fff;*/
    transition: box-shadow 0.3s;
}

.taq-software-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.taq-software-icon {
    flex: 0 0 60px;
    margin-right: 15px;
}

.taq-software-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.taq-software-details {
    flex: 1;
}

.taq-software-title {
    font-size: 1.2em;
    margin: 0 0 5px;
    color: #0073aa !important;
}

.taq-software-title a {
    color: #0073aa !important;
    text-decoration: none;
}

.taq-software-title a:hover {
    text-decoration: underline;
}

.taq-software-publisher {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 5px;
}

.taq-software-excerpt {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 10px;
}

.taq-software-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
}

.taq-software-downloads {
    color: #333;
}

.taq-software-rating {
    color: #f1c40f;
}

.taq-software-language {
    color: #666;
}

.taq-software-date {
    color: #666;
}

.taq-software-license {
    color: #666;
}

.taq-software-actions {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
}

/* Styles pour la pagination */
.taq-pagination {
    text-align: center;
    margin-top: 20px;
}

.taq-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    transition: background 0.3s;
}

.taq-pagination .page-numbers:hover,
.taq-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Style pour le lien du site web de l’éditeur */
.taq-software-publisher a,
.taq-software-info a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 5px;
}

.taq-software-publisher a:hover,
.taq-software-info a:hover {
    text-decoration: underline;
}

/* Styles pour le card des exigences système */
.taq-requirements-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.taq-requirements-card h3 {
    font-size: 1.1em;
    margin: 0 0 10px;
    color: #333;
}

.taq-requirements-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taq-requirements-card li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #666;
}

.taq-requirements-card li strong {
    color: #333;
}

/* Styles pour les logiciels sponsorisés */
.taq-sponsored-section {
    margin-bottom: 30px;
    color :#000;
}

.taq-sponsored-section h2 {
    font-size: 1.3em;
    color: #333 !important;
    margin-bottom: 15px;
}

.taq-software-item.taq-sponsored {
    border: 2px solid #ffd700;
    background: #fffde7;
    position: relative;
}

.taq-sponsored-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #ffd700;
    color: #333;
    padding: 2px 8px;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 3px;
}

/* Removed .taq-report-btn and related modal styles since we're using a link now */

.taq-report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.taq-report-modal[aria-hidden="false"] {
    display: flex;
}

.taq-report-modal .taq-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.taq-report-modal .taq-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.taq-report-modal form {
    display: flex;
    flex-direction: column;
}

.taq-report-modal label {
    margin: 10px 0 5px;
}

.taq-report-modal select,
.taq-report-modal textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.taq-report-modal button[type="submit"] {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.taq-report-modal button[type="submit"]:hover {
    background: #0056b3;
}

/* Styles pour short codes cartes */
.taq-download-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.taq-download-card-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.taq-download-card-details {
    flex-grow: 1;
}

.taq-download-card-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
}

.taq-download-card-title a:hover {
    text-decoration: underline;
}

.taq-download-card-meta {
    font-size: 0.9em;
    color: #666;
}

.taq-download-card-meta span {
    margin-right: 15px;
}

.taq-download-card-actions {
    margin-left: 15px;
}

.taq-download-card-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    background-color: var(--wp--preset--color--luminous-vivid-orange);
}

.taq-download-card-link:hover {
    background-color: rgb(16, 180, 4);
}

.taq-download-card-link .dashicons {
    margin-right: 5px;
}

/* Single Page Styles for taq-container */
.taq-container h2 {
    font-size: 1.6em;
    color: #800000;
    margin: 30px 0 15px;
    line-height: 1.3;
    font-weight: 600;
}

.taq-container h3 {
    font-size: 1.2em;
    color: #333;
    margin: 25px 0 10px;
    line-height: 1.3;
    font-weight: 500;
}

.taq-buy-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffd700;
    color: #1d2122 !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.taq-buy-btn:hover {
    background-color: #ea5c0a;
    color: #ffffff !important;
}

.taq-buy-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}


.btn.btn-link {
    display: inline-block;
    font-weight: 400;
    color: #0d6efd;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}
.btn.btn-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.taq-software-item .taq-sponsored {
    color: #000 !important;
}