
/* ==== Galerie des réalisations — reprise de la galerie des Bijoux de Marie, aux couleurs Capurso ==== */
.gal-hd { padding: clamp(48px, 7vw, 80px) 0 28px; }
.gal-hd .lbl { font-family: var(--titre); font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brique); }
.gal-hd h2 { margin: 8px 0 6px; }
.gal-hd p { max-width: 62ch; color: var(--gris); margin: 0 0 30px; }
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; justify-content: space-between; }
.gal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 2px solid var(--noir); background: transparent; color: var(--noir); cursor: pointer;
  font-family: var(--titre); font-weight: 600; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background .4s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .4s var(--curve); -webkit-tap-highlight-color: transparent; }
.puce .n { font-family: var(--texte); font-size: .72rem; font-weight: 600; color: var(--gris); letter-spacing: .04em; transition: color .3s var(--ease); }
.puce:hover { transform: translateY(-2px); border-color: var(--noir); }
.puce.on { background: var(--noir); color: var(--blanc); }
.puce.on .n { color: var(--jaune); }
@keyframes puce-tap { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
.puce.tap { animation: puce-tap .4s var(--curve); }
.puce:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.gal-count { font-family: var(--titre); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }

.gal { background: var(--noir); border-top: 4px solid var(--jaune); }
.ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; transition: opacity .26s var(--ease), transform .3s var(--curve); }
@media (min-width: 700px) { .ig { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ig { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .ig { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ig.leaving { opacity: 0; transform: translateY(14px) scale(.995); pointer-events: none; }
.ig.leaving .ti { transition: none; }
.ti { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: #262626; opacity: 0; transform: scale(.94);
  transition: opacity .7s var(--curve) var(--d, 0s), transform .9s var(--curve) var(--d, 0s); -webkit-tap-highlight-color: transparent; }
.ti.in { opacity: 1; transform: none; }
.ti img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--curve), filter .6s var(--ease); }
.ti::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,.82) 100%); opacity: 0; transition: opacity .45s var(--ease); }
.ti .ti-l { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: var(--titre); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blanc);
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .55s var(--curve); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti .ti-l small { display: block; font-size: .72rem; color: var(--jaune); letter-spacing: .14em; }
.ti .ti-zoom { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--noir);
  background: rgba(245,180,0,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: scale(.8); transition: opacity .4s var(--ease), transform .5s var(--curve); }
.ti .ti-zoom svg { width: 16px; height: 16px; }
.ti .ti-real { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 8px; font-family: var(--titre); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--jaune); color: var(--noir); }
@media (hover: hover) {
  .ti:hover img { transform: scale(1.07); }
  .ti:hover::after, .ti:hover .ti-l, .ti:hover .ti-zoom { opacity: 1; transform: none; }
}
.ti:focus-visible { outline: 3px solid var(--jaune); outline-offset: -3px; }
.gal-more { display: flex; justify-content: center; padding: 28px 0 34px; }
.gal-spin { width: 24px; height: 24px; border: 2px solid rgba(245,180,0,.25); border-top-color: var(--jaune); border-radius: 50%; animation: gal-spin 1s linear infinite; }
@keyframes gal-spin { to { transform: rotate(360deg); } }
.gal-note { font-size: .85rem; color: var(--gris); margin: 18px 0 0; }

/* Visionneuse */
.lb { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(14,14,14,.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb-fig { margin: 0; max-width: min(92vw, 1400px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.96); opacity: 0; transition: transform .6s var(--curve), opacity .5s var(--ease); }
.lb.open .lb-fig { transform: none; opacity: 1; }
.lb-fig img { max-width: 92vw; max-height: 78vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); border: 1px solid rgba(245,180,0,.2);
  transition: opacity .35s var(--ease), transform .5s var(--curve), filter .35s var(--ease); touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lb-fig.loading img { opacity: .35; filter: blur(4px); }
@keyframes lb-from-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes lb-from-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.lb-fig.from-r img { animation: lb-from-r .5s var(--curve); }
.lb-fig.from-l img { animation: lb-from-l .5s var(--curve); }
.lb-fig figcaption { display: flex; gap: 18px; align-items: baseline; font-family: var(--titre); font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: #e6e6e6; }
.lb-fig .lb-n { font-size: 1.05rem; letter-spacing: .08em; color: var(--jaune); }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 2px solid rgba(245,180,0,.6); background: rgba(20,20,20,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--jaune);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .35s var(--ease), color .35s var(--ease), transform .5s var(--curve), border-color .35s var(--ease); z-index: 2; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: var(--jaune); color: var(--noir); border-color: var(--jaune); transform: scale(1.06); }
.lb-x { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); } .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); } .lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 860px) {
  .gal-hd { padding-bottom: 18px; }
  .gal-bar { gap: 10px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .gal-filters { flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow-x: auto; gap: 8px; padding: 4px 2px 10px; margin: 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
  .gal-filters::-webkit-scrollbar { display: none; }
  .puce { flex: 0 0 auto; scroll-snap-align: center; min-height: 38px; padding: 7px 13px; font-size: .95rem; }
  .puce:hover { transform: none; }
  .ig { gap: 2px; padding: 2px; }
  .ti .ti-l { left: 10px; right: 10px; bottom: 9px; font-size: .85rem; }
  .ti .ti-zoom { display: none; }
  .ti .ti-real { top: 6px; left: 6px; padding: 2px 6px; font-size: .58rem; letter-spacing: .06em; }
}
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: 18px; } .lb-next { right: 18px; } .lb-prev:hover, .lb-next:hover { transform: scale(1.06); } .lb-fig img { max-height: 70vh; } .lb-fig figcaption { flex-direction: column; align-items: center; gap: 4px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .ti, .ti img, .ig, .lb, .lb-fig, .lb-fig img { transition: none !important; animation: none !important; } .ti { opacity: 1; transform: none; } }
