/* iliadecreation.fr — Les Galeries d'Iliade (23/10/2026). Même allure que l'extension Iliade Gallery du site actuel
   (assets/css/gallery.css, classes mgal-*) : barre de recherche collée en haut avec compteur, onglets en pilule, puces,
   vignettes carrées arrondies, grande vue sombre avec boutons ronds translucides. Téléphone d'abord. */
:root{--ilg-primary:#16a34a;--ilg-primary-soft:#dcfce7;--ilg-radius:14px;--ilg-overlay:rgba(15,23,42,.92);--ilg-ease:cubic-bezier(.22,.61,.36,1)}
.page-galeries main{background:#fff}
.mgal-wrap .wpz-bc-slot,.mgal-hero,.mgal-sticky-bar>*,#mgal-masonry,.mgal-vide{width:100%;max-width:1440px;margin-inline:auto;padding-inline:var(--gouttiere)}
.mgal-hero{margin-top:14px;margin-bottom:10px}
.mgal-title{font-size:clamp(24px,3vw,34px);font-weight:700;letter-spacing:-.02em;margin:0 0 6px}
.mgal-sub{margin:0 0 6px;font-size:15px;color:#6b7280}

/* Barre collée : recherche + compteur, onglets, puces */
.mgal-sticky-bar{position:sticky;top:64px;z-index:15;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:10px 0 12px;border-bottom:1px solid #eef2f7}
.mgal-searchbar.recherche-ligne{display:flex;gap:10px;align-items:center;max-width:var(--largeur,1400px);margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:8px 12px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.mgal-sticky-bar>.mgal-searchbar{width:calc(100% - var(--gouttiere) * 2)}
.mgal-searchbar:focus-within{border-color:var(--ilg-primary);box-shadow:0 0 0 3px var(--ilg-primary-soft),0 2px 8px rgba(0,0,0,.06)}
.mgal-searchbar .ico{color:var(--ilg-primary);width:20px;height:20px}
.mgal-searchbar input{flex:1;min-width:0;min-height:36px;border:0!important;outline:0;font-size:16px;background:transparent;padding:0!important;border-radius:0!important}
.pill{flex:none;font-size:12px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px;color:#374151;display:inline-flex;gap:4px;white-space:nowrap}
.mgal-typetabs{display:flex;margin-top:10px}
.mgal-typetabs__inner{display:inline-flex;gap:4px;padding:4px;background:#f1f5f9;border:1px solid #eef2f7;border-radius:999px;max-width:100%}
.mgal-typetabs .onglet-galerie{border:0;background:transparent;color:#475569;font-size:13px;font-weight:600;line-height:1;padding:9px 16px;border-radius:999px;text-decoration:none;min-height:34px;display:inline-flex;align-items:center}
.mgal-typetabs .onglet-galerie:hover{color:#0f172a}
.mgal-typetabs .onglet-galerie[aria-current]{background:#fff;color:var(--ilg-primary);box-shadow:0 2px 8px rgba(15,23,42,.1)}
.mgal-chips.puces{display:flex;gap:6px;margin:10px auto 0;padding-bottom:4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),#0000)}
.mgal-chips::-webkit-scrollbar{display:none}
.mgal-chips .puce{flex:none;font-size:12.5px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 12px;color:#374151;font-weight:500;display:inline-flex;align-items:center;gap:6px;min-height:34px}
.mgal-chips .puce:hover{border-color:var(--ilg-primary);color:var(--ilg-primary);background:var(--ilg-primary-soft)}
.mgal-chips .puce[aria-current]{background:var(--ilg-primary);border-color:var(--ilg-primary);color:#fff;font-weight:600}
.mgal-chips .puce[aria-current]::before{content:"✓";font-size:11px}
@media (min-width:640px){.mgal-chips.puces{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none}}

/* Vignettes carrées */
#mgal-masonry.mosaique{columns:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;margin-bottom:40px}
@media (min-width:640px){#mgal-masonry.mosaique{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media (min-width:1024px){#mgal-masonry.mosaique{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}}
#mgal-masonry .galerie-item{display:block;position:relative;margin:0;aspect-ratio:1;overflow:hidden;border-radius:var(--ilg-radius);background:#f8fafc;box-shadow:0 6px 18px rgba(15,23,42,.06);transition:transform .25s var(--ilg-ease),box-shadow .25s var(--ilg-ease)}
#mgal-masonry .galerie-item[hidden]{display:none}
#mgal-masonry .galerie-item img,#mgal-masonry .galerie-item video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .6s var(--ilg-ease)}
#mgal-masonry .galerie-item::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,rgba(15,23,42,.35));opacity:0;transition:opacity .25s;pointer-events:none}
@media (hover:hover){#mgal-masonry .galerie-item:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(15,23,42,.12)}#mgal-masonry .galerie-item:hover img{transform:scale(1.06)}#mgal-masonry .galerie-item:hover::after{opacity:1}}
#mgal-masonry .galerie-item.video::before{content:"";position:absolute;z-index:2;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(15,23,42,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/22px no-repeat;border:1px solid rgba(255,255,255,.4)}
#mgal-masonry .duree{position:absolute;z-index:2;right:8px;bottom:8px;font-size:11px;font-weight:700;color:#fff;background:rgba(15,23,42,.7);border-radius:6px;padding:2px 6px}

/* Grande vue : image au centre, boutons ronds en haut, titre et photos liées en bas */
.grande-vue.premium{background:var(--ilg-overlay);display:grid;grid-template:auto minmax(0,1fr) auto auto/minmax(0,1fr);align-items:center;justify-items:center;gap:10px;padding:12px 12px max(14px, env(safe-area-inset-bottom));overflow:hidden}
.grande-vue.premium>.media{grid-row:2;max-height:100%;max-width:min(94vw,1500px);width:auto;height:auto;object-fit:contain;border-radius:var(--ilg-radius);box-shadow:0 20px 60px rgba(0,0,0,.55);align-self:center;min-height:0}
.grande-vue.premium .vue-outils{display:contents}
.grande-vue.premium .vue-boutons{grid-row:1;justify-self:stretch;display:flex;flex-wrap:nowrap;gap:8px;align-items:center;margin:0;padding:0 56px 0 2px;overflow-x:auto;scrollbar-width:none}
.grande-vue.premium .vue-boutons::-webkit-scrollbar{display:none}
.grande-vue.premium .vue-boutons .btn{flex:none;min-height:42px;height:42px;padding:0 14px;border-radius:12px;font-size:13.5px;font-weight:600;gap:8px;color:#fff;
  background:rgba(15,23,42,.35);border:1px solid rgba(255,255,255,.25);-webkit-backdrop-filter:blur(12px) saturate(180%);backdrop-filter:blur(12px) saturate(180%);white-space:nowrap}
.grande-vue.premium .vue-boutons svg{width:18px;height:18px;flex:none}
.grande-vue.premium .vue-outil{width:42px;padding:0!important;justify-content:center}
.grande-vue.premium .vue-cta{background:rgba(22,163,74,.6)!important;border-color:rgba(22,163,74,.7)!important}
.grande-vue.premium .vue-cta--produit{background:rgba(255,255,255,.18)!important;border-color:rgba(255,255,255,.4)!important}
.grande-vue.premium .vue-pin{background:rgba(230,0,35,.85)}
.grande-vue.premium .vue-fb{background:rgba(24,119,242,.85)}
.grande-vue.premium .vue-wa{background:rgba(37,211,102,.8)}
.grande-vue.premium .vue-outil.fait{background:var(--ilg-primary)}
@media (hover:hover){.grande-vue.premium .vue-boutons .btn:hover{filter:brightness(1.12);transform:translateY(-1px)}}
.grande-vue.premium .vue-titre{grid-row:3;margin:0;max-width:min(92vw,1100px);padding:10px 16px;border-radius:12px;background:rgba(15,23,42,.55);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#fff;font-size:14px;text-align:center}
.grande-vue.premium .vue-titre span{opacity:.75;margin-right:8px;font-variant-numeric:tabular-nums}
.grande-vue.premium .vue-liees{grid-row:4;justify-self:stretch;display:flex;gap:6px;overflow-x:auto;margin:0 auto;max-width:min(94vw,1100px);padding:2px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}
.grande-vue.premium .vue-liees button{flex:0 0 auto;height:72px;aspect-ratio:4/3;padding:0;border:2px solid rgba(255,255,255,.18);border-radius:10px;overflow:hidden;background:#0b1220;cursor:pointer}
.grande-vue.premium .vue-liees button:hover,.grande-vue.premium .vue-liees button:focus-visible{border-color:#fff}
.grande-vue.premium .vue-liees img{width:100%;height:100%;object-fit:cover}
.grande-vue.premium>.fermer{position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:12px;background:rgba(15,23,42,.35);border:1px solid rgba(255,255,255,.3);color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.grande-vue.premium>.prec,.grande-vue.premium>.suiv{position:absolute;top:50%;width:48px;height:48px;border-radius:50%;background:rgba(15,23,42,.55);border:1px solid rgba(255,255,255,.3);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
@media (max-width:640px){
  .grande-vue.premium>.prec,.grande-vue.premium>.suiv{width:40px;height:40px;top:auto;bottom:150px;transform:none}
  .grande-vue.premium>.prec{left:10px}.grande-vue.premium>.suiv{right:10px}
  .grande-vue.premium .vue-liees button{height:60px}
}
.plus-tard{display:none!important} /* chargement progressif (galeries.js) */
