/* Galerie photos (actualités et événements) */
.gp-galerie { margin: 48px 0 8px; }
.gp-galerie-titre { font-size: 1.35rem; font-weight: 700; color: #003366; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-galerie-titre i { color: #006633; }
.gp-galerie-titre span { font-size: .8rem; font-weight: 600; color: #006633; background: rgba(0,102,51,.09); padding: 4px 12px; border-radius: 99px; }

.gp-grille { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 150px)); justify-content: start; }
.gp-vignette { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: #e9ecef; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.gp-galerie .gp-vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; opacity: 1; border-radius: 0; box-shadow: none; transition: transform .45s ease; }
.gp-galerie .gp-vignette:hover img { transform: scale(1.08); }
.gp-loupe { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; background: linear-gradient(0deg, rgba(0,40,25,.55), rgba(0,40,25,.1)); opacity: 0; transition: opacity .25s; }
.gp-vignette:hover .gp-loupe, .gp-vignette:focus-visible .gp-loupe { opacity: 1; }
.gp-vignette:focus-visible { outline: 3px solid #f7d117; outline-offset: 2px; }
@media (max-width: 480px) {
    .gp-grille { grid-template-columns: repeat(3, 1fr); }
}

/* Visionneuse */
.gp-viewer { position: fixed; inset: 0; z-index: 100000; background: rgba(4, 18, 12, .96); display: none; flex-direction: column; user-select: none; -webkit-user-select: none; }
.gp-viewer.gp-ouvert { display: flex; }
.gp-haut { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; color: #fff; font-size: .95rem; }
.gp-compte { background: rgba(255,255,255,.12); padding: 5px 14px; border-radius: 99px; font-weight: 600; }
.gp-btn { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.gp-btn:hover { background: rgba(247,209,23,.9); color: #003322; }
.gp-scene { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; }
.gp-scene img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); transition: opacity .2s; }
.gp-scene img.gp-charge { opacity: 0; }
.gp-prec, .gp-suiv { position: absolute; top: 50%; transform: translateY(-50%); }
.gp-prec { left: 16px; }
.gp-suiv { right: 16px; }
.gp-legende { color: #fff; text-align: center; padding: 10px 20px 4px; min-height: 28px; font-size: .95rem; }
.gp-bande { display: flex; gap: 8px; padding: 10px 16px 16px; overflow-x: auto; justify-content: center; scrollbar-width: thin; }
.gp-bande button { flex: 0 0 auto; width: 74px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .5; cursor: pointer; background: #000; transition: opacity .2s, border-color .2s; }
.gp-bande button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-bande button.gp-actif { opacity: 1; border-color: #f7d117; }
.gp-bande button:hover { opacity: .9; }
body.gp-bloque { overflow: hidden; }
@media (max-width: 640px) {
    .gp-scene { padding: 0 8px; }
    .gp-prec { left: 6px; }
    .gp-suiv { right: 6px; }
    .gp-btn { width: 40px; height: 40px; }
    .gp-bande button { width: 56px; height: 42px; }
}
