.modal:has(.detail-gallery-viewer){padding:20px}.modal-card:has(.detail-gallery-viewer){width:min(1040px,calc(100vw - 40px));height:auto;max-height:calc(100vh - 40px);border-radius:28px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.4)}
.detail-gallery-viewer{position:relative;background:#10283b}.detail-gallery-stage{position:relative;height:310px;isolation:isolate;overflow:hidden;background:#10283b}.detail-gallery-backdrop{position:absolute!important;z-index:-2;inset:-32px;width:calc(100% + 64px)!important;height:calc(100% + 64px)!important;object-fit:cover!important;filter:blur(25px) saturate(.85) brightness(.55);transform:scale(1.08)}.detail-gallery-stage::after{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(5,19,32,.48),transparent 25%,transparent 75%,rgba(5,19,32,.48))}
.detail-gallery-stage>img#detailGalleryMain{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(0,0,0,.25))}.detail-gallery-shade{z-index:2;inset:48% 0 0;background:linear-gradient(transparent,rgba(4,16,30,.82))}.detail-gallery-stage .detail-title{z-index:3;left:26px;right:100px;bottom:22px;text-shadow:0 3px 20px rgba(0,0,0,.65)}.detail-gallery-stage .detail-title h2{max-width:760px;margin-top:7px;font-size:clamp(31px,4vw,45px);line-height:1}.detail-gallery-stage .pill{background:rgba(255,255,255,.94);color:#17364b;text-shadow:none}.detail-gallery-arrow{z-index:5;width:42px;height:42px;border:0;background:rgba(255,255,255,.92);color:#10283b;box-shadow:0 8px 25px rgba(0,0,0,.25)}.detail-gallery-counter{z-index:5;background:rgba(5,19,32,.78);backdrop-filter:blur(8px)}
.detail-gallery-thumbs{gap:8px;padding:9px 13px;background:#0a2032;scrollbar-width:none}.detail-gallery-thumbs::-webkit-scrollbar{display:none}.detail-gallery-thumbs button{flex-basis:70px;height:46px;border-radius:9px;background:#17384e}.detail-gallery-thumbs button.active{border-color:#fff;box-shadow:0 0 0 2px #f1b84c}
.detail-gallery-viewer+.detail-body{grid-template-columns:minmax(0,1fr) 270px;gap:18px;max-height:calc(100vh - 420px);padding:18px 20px;scrollbar-width:thin;scrollbar-color:#b8d5df transparent}.detail-summary{margin-bottom:14px;font-size:15px}.detail-programme{margin:12px 0;padding:14px}.detail-programme-title{margin-bottom:10px}.detail-programme li{padding:7px}.modal-services{gap:10px}.modal-services .service-panel{padding:15px}.modal-services .service-heading{margin-bottom:8px}.modal-services .service-panel li{padding:6px 0}.detail-aside{top:0;padding:17px;border:1px solid #e2ebef;border-radius:20px;background:linear-gradient(145deg,#f7fafb,#fff);box-shadow:none}.detail-aside .price strong{font-size:27px}.detail-aside .summary-row{padding:8px 0}.detail-aside .btn{min-height:46px}.detail-aside .btn-ghost{display:none}
.modal-card:has(.detail-gallery-viewer) .modal-close{top:12px;right:12px;width:42px;height:42px;background:rgba(255,255,255,.94);box-shadow:0 8px 25px rgba(0,0,0,.22)}
@media(max-width:820px){.modal:has(.detail-gallery-viewer){padding:7px!important}.modal-card:has(.detail-gallery-viewer){width:calc(100vw - 14px)!important;height:calc(100dvh - 14px)!important;max-height:calc(100dvh - 14px)!important;border-radius:20px!important}.detail-gallery-stage{height:238px}.detail-gallery-stage .detail-title{left:15px!important;right:62px;bottom:14px}.detail-gallery-stage .detail-title h2{font-size:29px!important}.detail-gallery-viewer+.detail-body{grid-template-columns:1fr;gap:12px;max-height:calc(100dvh - 309px)!important;padding:13px!important}.detail-aside{position:static;padding:14px}.modal-services{grid-template-columns:1fr 1fr}.detail-programme ol{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.detail-gallery-stage{height:210px}.detail-gallery-viewer+.detail-body{max-height:calc(100dvh - 281px)!important}.detail-gallery-stage .detail-title h2{font-size:25px!important}.detail-gallery-thumbs button{flex-basis:58px;height:39px}.modal-services,.detail-programme ol{grid-template-columns:1fr}.detail-gallery-arrow{width:36px;height:36px}.detail-gallery-stage .pill{font-size:10px}}

/* Galerie autonome : structure, miniatures et commandes */
.detail-gallery-viewer{position:relative;overflow:hidden;background:#10283b}.detail-gallery-stage{position:relative;overflow:hidden}.detail-gallery-shade{position:absolute;pointer-events:none}.detail-gallery-arrow{position:absolute;top:50%;display:grid;place-items:center;transform:translateY(-50%);border-radius:50%;cursor:pointer}.detail-gallery-arrow.previous{left:14px}.detail-gallery-arrow.next{right:14px}.detail-gallery-counter{position:absolute;right:14px;bottom:14px;padding:6px 10px;border-radius:999px;color:#fff;font-size:12px;font-weight:800}.detail-gallery-thumbs{display:flex;overflow-x:auto;align-items:center}.detail-gallery-thumbs button{flex:0 0 70px;padding:0;overflow:hidden;border:2px solid transparent;opacity:.72;cursor:pointer}.detail-gallery-thumbs button.active{opacity:1}.detail-gallery-thumbs img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important}.detail-gallery-viewer+.detail-body{overflow:auto}
/* deployment marker: gallery thumbnails fixed */
