/*
 * « Entretien produit » — affichage front sur la fiche produit.
 * Classes BEM préfixe yat-product-maintain__.
 * Layout : deux colonnes Bootstrap (col-lg-6) responsive.
 */

.yat-product-maintain {
    margin: 2rem 0;
}

.yat-product-maintain__row {
    align-items: stretch;
}

.yat-product-maintain__block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.yat-product-maintain__block--left {
    align-items: flex-start;
}

.yat-product-maintain__visual {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.yat-product-maintain__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.yat-product-maintain__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text, #1c1c1c);
    line-height: 1.3;
}

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

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

.yat-product-maintain__video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.yat-product-maintain__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.yat-product-maintain__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background-color .2s ease;
}

.yat-product-maintain__play-btn:hover,
.yat-product-maintain__play-btn:focus {
    background: rgba(0, 0, 0, .4);
    outline: none;
}

.yat-product-maintain__play-icon {
    width: 80px;
    height: 80px;
    transition: transform .15s ease;
}

.yat-product-maintain__play-btn:hover .yat-product-maintain__play-icon,
.yat-product-maintain__play-btn:focus .yat-product-maintain__play-icon {
    transform: scale(1.05);
}

.yat-product-maintain__video-wrap.is-playing .yat-product-maintain__play-btn {
    display: none;
}

@media (max-width: 991px) {
    .yat-product-maintain {
        margin: 1.5rem 0;
    }

    .yat-product-maintain__heading {
        font-size: 1.15rem;
    }

    .yat-product-maintain__play-icon {
        width: 64px;
        height: 64px;
    }
}
