
/* V13.3 Galerie Premium */
.gallery-premium-toolbar{display:grid;gap:16px;margin:0 0 22px;padding:20px;border:1px solid var(--line-strong);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-soft)}
.gallery-premium-search label{display:block;margin-bottom:7px;color:var(--primary-dark);font-weight:800}.gallery-premium-search__field{display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--line-strong);border-radius:16px;background:#fff}.gallery-premium-search__field:focus-within{outline:3px solid rgba(142,107,174,.18);border-color:var(--primary)}.gallery-premium-search__field input{width:100%;min-height:48px;border:0;outline:0;background:transparent;font:inherit}.gallery-premium-search__field button{border:0;background:transparent;color:var(--primary);font-weight:800;cursor:pointer}
.gallery-premium-filters{display:flex;flex-wrap:wrap;gap:8px}.gallery-premium-filters button{padding:9px 13px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:var(--primary-dark);font-weight:800;cursor:pointer}.gallery-premium-filters button.is-active{border-color:transparent;background:linear-gradient(135deg,var(--primary),#cba3d8);color:#fff}.gallery-premium-status{color:var(--muted);font-size:.9rem}.gallery-premium-status strong{color:var(--primary-dark)}
.gallery-premium-empty{margin:20px 0;padding:28px;text-align:center;border:1px dashed var(--line-strong);border-radius:24px}.gallery-premium-empty strong{display:block;margin-bottom:14px}.gallery-premium-card[hidden]{display:none!important}.gallery-premium-card{position:relative}.gallery-premium-card:focus-visible{outline:3px solid rgba(142,107,174,.35);outline-offset:4px}
.gallery-compare{position:relative;overflow:hidden;margin:9px 9px 0;aspect-ratio:16/9;border-radius:16px;background:#eee;isolation:isolate}.gallery-compare img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.gallery-compare__after{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--compare-position)) 0 0)}.gallery-compare__after img{position:absolute}.gallery-compare input{position:absolute;z-index:5;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}.gallery-compare__handle{position:absolute;z-index:4;top:0;bottom:0;left:var(--compare-position);width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08)}.gallery-compare__handle:after{content:'↔';position:absolute;top:50%;left:50%;display:grid;place-items:center;width:38px;height:38px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;color:var(--primary-dark);font-weight:900;box-shadow:0 5px 18px rgba(0,0,0,.22)}.gallery-compare__label{position:absolute;z-index:3;top:10px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--primary-dark);font-size:10px;font-weight:900;text-transform:uppercase}.gallery-compare__label--before{left:10px}.gallery-compare__label--after{right:10px}
@media(max-width:640px){.gallery-premium-toolbar{padding:15px;border-radius:20px}.gallery-premium-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.gallery-premium-filters button{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.gallery-premium-card,.gallery-compare img{transition:none!important}}


/* V14.2 - cartes de réalisations adaptatives */
.gallery-premium-grid{align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:1rem}
.gallery-premium-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:22px}
.gallery-premium-card .realisation-group-card__media{position:relative;width:100%;padding:0;background:#f7f2f8;overflow:hidden}
.gallery-premium-card .realisation-group-card__media img,.gallery-premium-card .realisation-group-card__media video{display:block;width:100%;height:100%;object-fit:cover}
.gallery-premium-card .realisation-group-card__media--single{aspect-ratio:4/3}
.realisation-media-single{width:100%;height:100%}
.gallery-premium-card .realisation-group-card__media--duo{aspect-ratio:4/3}
.realisation-media-duo{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%;height:100%}
.realisation-media-duo .realisation-preview-item{min-width:0;height:100%;overflow:hidden}
.gallery-premium-card .realisation-group-card__media--gallery{aspect-ratio:4/3}
.realisation-media-gallery{display:grid;grid-template-columns:1.45fr .8fr;grid-template-rows:1fr 1fr;gap:4px;width:100%;height:100%}
.realisation-media-gallery .realisation-preview-item{position:relative;min-width:0;min-height:0;overflow:hidden}
.realisation-media-gallery .realisation-preview-item--main{grid-row:1/3}
.realisation-media-gallery .realisation-preview-item--secondary{grid-column:2}
.gallery-premium-card .realisation-group-card__media--before-after{aspect-ratio:4/3}
.gallery-premium-card .gallery-compare{width:100%;height:100%;min-height:0;border-radius:0}
.gallery-premium-card .realisation-empty-media{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;aspect-ratio:4/3;color:#77637e;background:linear-gradient(145deg,#fbf8fc,#f1e9f4)}
.gallery-premium-card .realisation-empty-media span{font-size:2rem;line-height:1}
.gallery-premium-card .realisation-empty-media strong{font-size:.85rem}
.gallery-premium-card .realisation-group-card__content{display:flex;flex:1;flex-direction:column;padding:1rem}
.gallery-premium-card .realisation-group-card__content>h2{margin:.45rem 0 .35rem;font-size:1.25rem}
.gallery-premium-card .realisation-group-card__content>p{display:-webkit-box;overflow:hidden;margin:.4rem 0;color:#6f6174;font-size:.86rem;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gallery-premium-card .realisation-linked-service{margin-top:.75rem;padding:.7rem .8rem;border-radius:14px}
.gallery-premium-card .realisation-card-actions{margin-top:auto;padding-top:.8rem}
.gallery-premium-card .realisation-book-btn{min-height:42px;width:100%;padding:.65rem .9rem;font-size:.82rem}

.gallery-premium-card .realisation-media-count{white-space:nowrap}
.gallery-premium-card .realisation-preview-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(40,29,44,.58);color:#fff;font-size:1.25rem;font-weight:800}
@media(max-width:700px){.gallery-premium-grid{grid-template-columns:1fr 1fr;gap:.75rem}.gallery-premium-card .realisation-group-card__content{padding:.8rem}.gallery-premium-card .realisation-group-card__content>h2{font-size:1.05rem}.gallery-premium-card .realisation-linked-service{display:none}}
@media(max-width:470px){.gallery-premium-grid{grid-template-columns:1fr}.gallery-premium-card .realisation-group-card__media--single,.gallery-premium-card .realisation-group-card__media--duo,.gallery-premium-card .realisation-group-card__media--gallery,.gallery-premium-card .realisation-group-card__media--before-after{aspect-ratio:16/10}}
