/*
 * Styles du bloc « Documents » fiche produit FO (#11).
 *
 * Minimal, sans dépendance : s'appuie sur les variables CSS du thème Classic
 * quand elles existent, avec repli. Responsive (mobile → desktop) par flexbox.
 *
 * @license AFL-3.0
 */

.pd-documents {
    margin: 1rem 0;
}

.pd-documents__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.pd-documents__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-documents__item {
    margin: 0;
}

.pd-documents__link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--border-radius, 4px);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pd-documents__link:hover,
.pd-documents__link:focus {
    background-color: var(--gray-light, #f6f6f6);
    border-color: var(--primary, #2fb5d2);
}

.pd-documents__ext {
    flex: 0 0 auto;
    min-width: 3.25rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #fff;
    background-color: var(--primary, #2fb5d2);
}

.pd-documents__name {
    flex: 1 1 auto;
    font-weight: 600;
    word-break: break-word;
}

.pd-documents__type {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted, #7a7a7a);
}

.pd-documents__size {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted, #7a7a7a);
    white-space: nowrap;
}

@media (max-width: 575px) {
    .pd-documents__type {
        width: 100%;
    }
}
