/*
 * « Documentation Technique » — affichage front.
 * Classes BEM préfixe yat-techsheet__ (bloc fiche produit) et yat-techsheet-page__ (page globale).
 */

/* ============================================================================
 * Bloc fiche produit
 * ============================================================================ */

.yat-techsheet {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f7f5f1;
    border-radius: 12px;
}

.yat-techsheet__title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text, #1c1c1c);
}

.yat-techsheet__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.yat-techsheet__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ece8e0;
}

.yat-techsheet__item-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1c1c1c;
    flex: 1;
    min-width: 0;
}

.yat-techsheet__download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 1rem;
    background: transparent;
    color: var(--color-text, #1c1c1c);
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.yat-techsheet__download:hover,
.yat-techsheet__download:focus {
    background: var(--color-text, #1c1c1c);
    color: #fff;
    text-decoration: none;
}

.yat-techsheet__all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.5rem;
    background: var(--color-text, #1c1c1c);
    color: #fff;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .15s ease;
}

.yat-techsheet__all-btn:hover,
.yat-techsheet__all-btn:focus {
    background: #000;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .yat-techsheet {
        padding: 1.25rem;
    }

    .yat-techsheet__item {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .yat-techsheet__download {
        align-self: stretch;
        justify-content: center;
    }

    .yat-techsheet__all-btn {
        display: flex;
        text-align: center;
    }
}

/* ============================================================================
 * Page globale « Toutes les fiches techniques »
 * ============================================================================ */

.yat-techsheet-page {
    padding: 2rem 0;
}

.yat-techsheet-page__header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.yat-techsheet-page__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text, #1c1c1c);
}

.yat-techsheet-page__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.yat-techsheet-page__product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.yat-techsheet-page__product:hover {
    border-color: #c8d3df;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.yat-techsheet-page__product-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.yat-techsheet-page__product-image {
    display: block;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.yat-techsheet-page__product-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.yat-techsheet-page__product-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text, #1c1c1c);
    text-decoration: none;
    line-height: 1.3;
}

.yat-techsheet-page__product-name:hover,
.yat-techsheet-page__product-name:focus {
    color: #25b9d7;
    text-decoration: none;
}

.yat-techsheet-page__list {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.yat-techsheet-page__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .85rem;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ece8e0;
}

.yat-techsheet-page__item-name {
    font-size: .95rem;
    color: #1c1c1c;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yat-techsheet-page__download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    background: transparent;
    color: var(--color-text, #1c1c1c);
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.yat-techsheet-page__download:hover,
.yat-techsheet-page__download:focus {
    background: var(--color-text, #1c1c1c);
    color: #fff;
    text-decoration: none;
}

.yat-techsheet-page__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6f6f6f;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .yat-techsheet-page__title {
        font-size: 1.5rem;
    }

    .yat-techsheet-page__products {
        grid-template-columns: 1fr;
    }
}
