/* Présentation des vraies réalisations : pixels des JPEG conservés, décor masqué. */
img[data-atelier-photo="textiles-ateliers-arts.jpg"]{--ms-photo-mask:url('/assets/realisations-20261111/textiles-ateliers-arts-mask.svg?v=d0c9afbf')}
img[data-atelier-photo="thermos-personnalises.jpg"]{--ms-photo-mask:url('/assets/realisations-20261111/thermos-personnalises-mask.svg?v=d0c9afbf');--ms-photo-fit:cover;--ms-photo-position:center 46%}
img[data-atelier-photo="autocollants-ms.jpg"]{--ms-photo-mask:url('/assets/realisations-20261111/autocollants-ms-mask.svg?v=d0c9afbf')}
img[data-atelier-photo="vinyle-decoupe.jpg"]{--ms-photo-mask:url('/assets/realisations-20261111/vinyle-decoupe-mask.svg?v=d0c9afbf');--ms-photo-transform:rotate(90deg) scale(1.333333)}
img[data-atelier-photo="autocollants-pommes.jpg"]{--ms-photo-transform:rotate(-90deg) scale(1.333333)}
:is(.cat-product-photo,.ms-gallery-card,.home-category-photo,.ms-gallery-modal-media,.service-photo-stage):has(>img[data-atelier-photo]:not([data-atelier-photo=""])){background:#e9e9e7;overflow:hidden}
#realisations .ms-gallery-item .ms-gallery-card:has(>img[data-atelier-photo]:not([data-atelier-photo=""])){background:#e9e9e7}
:is(.cat-product-photo,.ms-gallery-card,.home-category-photo,.ms-gallery-modal-media,.service-photo-stage)>img[data-atelier-photo]:not([data-atelier-photo=""]){padding:0!important;background:transparent!important;object-fit:var(--ms-photo-fit,contain)!important;object-position:var(--ms-photo-position,center)!important;mask-image:var(--ms-photo-mask);mask-size:var(--ms-photo-fit,contain);mask-position:var(--ms-photo-position,center);mask-repeat:no-repeat;transform:var(--ms-photo-transform,none)!important}
.home-category-photo{display:block;width:64px;height:48px;aspect-ratio:4/3;border-radius:4px;overflow:hidden}
#realisations .ms-gallery-card>img[data-atelier-photo]:not([data-atelier-photo=""]){transform:var(--ms-photo-transform,none)!important}
.home-category-photo>img{display:block;width:100%;height:100%;border-radius:0}
.ms-gallery-modal-media:has(>img[data-atelier-photo]:not([data-atelier-photo=""])){aspect-ratio:4/3}
.ms-gallery-modal-media>img[data-atelier-photo]:not([data-atelier-photo=""]){width:100%;height:100%;max-height:none}

/* Les pages de services utilisent le même cadre que le catalogue. */
.service-hero.hero{display:block;min-height:0}
.service-hero.hero:before,.service-hero.hero:after{display:none}
.service-hero-inner{display:grid;grid-template-columns:1.05fr 1fr;gap:44px;align-items:center;padding-block:56px}
.service-hero .hero-copy{max-width:none;padding:0}
.service-hero h1{font-size:clamp(32px,3.8vw,54px);line-height:1.12}
.service-photo-stage{margin:0;min-width:0;aspect-ratio:4/3;overflow:hidden;border-radius:9px;border:1px solid #6d795f;background:#e9e9e7}
.service-photo-stage>img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:820px){.service-hero-inner{grid-template-columns:1fr;gap:24px;padding-block:32px}.service-hero .hero-copy{padding:0}.service-hero h1{font-size:clamp(31px,7vw,45px)}}
