
/* AD INFORMATIQUE - V5.6.5 */

body .detail-page .detail-hero.ad565-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0a1422 !important;
}

body .detail-page .detail-hero.ad565-hero::before,
body .detail-page .detail-hero.ad565-hero::after {
    content: none !important;
    display: none !important;
}

body .detail-page .ad565-hero .detail-hero-wrap {
    position: relative;
    display: block;
    z-index: 2;
}

.ad565-photo {
    display: block;
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    filter: none;
    pointer-events: none;
}

/* SAUVEGARDE : nouvelle photo HD */

.ad565-hero-sauvegarde .ad565-photo {
    inset: 0 0 0 auto;
    width: 76%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    z-index: -2;
    filter: brightness(.92);

    mask-image: linear-gradient(
        90deg, transparent, black 45%
    );
}

body .detail-page .detail-hero.ad565-hero-sauvegarde::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #0a1422 15%,
            #0a1422e8 30%,
            #0a142270 52%,
            transparent 85%
        ),
        linear-gradient(
            0deg, #0a1422, transparent 25%
        );
}

/* MESSAGERIE ET PHOTOCOPIEURS */

.ad565-hero-messagerie .detail-copy,
.ad565-hero-photocopieurs .detail-copy {
    max-width: 53% !important;
}

.ad565-hero-messagerie .ad565-photo,
.ad565-hero-photocopieurs .ad565-photo {
    top: calc(50% + 24px);
    right: 2%;
    width: auto;
    height: auto;
    max-width: 59%;
    max-height: 78%;
    object-fit: contain;
    transform: translateY(-50%);
    z-index: -1;
}

.ad565-hero-photocopieurs .ad565-photo {
    max-width: 52%;
    max-height: 420px;
}

/* Fondu rectangulaire sur les quatre bords */

.ad565-hero-messagerie .ad565-photo,
.ad565-hero-photocopieurs .ad565-photo,
body[data-ad-page="photocopieurs"]
.detail-page .detail-image img.ad565-printer-inline {

    -webkit-mask-image:
        linear-gradient(
            90deg, transparent, black 15%,
            black 85%, transparent
        ),
        linear-gradient(
            180deg, transparent, black 10%,
            black 90%, transparent
        ) !important;

    mask-image:
        linear-gradient(
            90deg, transparent, black 15%,
            black 85%, transparent
        ),
        linear-gradient(
            180deg, transparent, black 10%,
            black 90%, transparent
        ) !important;

    -webkit-mask-composite: source-in !important;
    mask-composite: intersect !important;
}

/* Photo secondaire du photocopieur */

body[data-ad-page="photocopieurs"]
.detail-page .detail-image {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    aspect-ratio: auto;
}

body[data-ad-page="photocopieurs"]
.detail-page .detail-image::before {
    content: none !important;
}

body[data-ad-page="photocopieurs"]
.detail-page .detail-image img.ad565-printer-inline {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 420px !important;
    transform: none !important;
    object-fit: contain !important;
    margin: auto;
}

@media (max-width: 950px) {

    .ad565-hero-sauvegarde .ad565-photo {
        width: 100%;
    }

    body .detail-page .ad565-hero-messagerie,
    body .detail-page .ad565-hero-photocopieurs {
        display: flex;
        flex-direction: column;
        padding-bottom: 30px;
    }

    .ad565-hero-messagerie .detail-copy,
    .ad565-hero-photocopieurs .detail-copy {
        max-width: 100% !important;
    }

    .ad565-hero-messagerie .detail-hero-wrap,
    .ad565-hero-photocopieurs .detail-hero-wrap {
        order: 1;
    }

    .ad565-hero-messagerie .ad565-photo,
    .ad565-hero-photocopieurs .ad565-photo {
        position: relative;
        inset: auto;
        order: 2;
        max-width: 94%;
        max-height: 340px;
        margin: 20px auto 0;
        transform: none;
        z-index: 0;
    }
}
