/* Galerie des réalisations Freeglass — styles isolés (préfixe .fgg-), charte freeglass.fr */
.fgg { --fgg-green: #A7D92B; --fgg-green-dark: #8FBF1F; --fgg-bg: #0A0A0A; --fgg-card: #161616; --fgg-line: rgba(255,255,255,.08);
  background: var(--fgg-bg); color: #fff; padding: 80px 0; font-family: Montserrat, system-ui, sans-serif; }
.fgg *, .fgg-lightbox * { box-sizing: border-box; }
.fgg-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.fgg-head { text-align: center; margin-bottom: 40px; }
.fgg-pretitle { display: inline-flex; align-items: center; gap: 8px; background: rgba(167,217,43,.12); color: var(--fgg-green);
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.fgg-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.15; margin: 0 0 12px; color: #fff; }
.fgg-accent { color: var(--fgg-green); }
.fgg-intro { color: rgba(255,255,255,.7); max-width: 720px; margin: 0 auto; line-height: 1.6; }
.fgg-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fgg-item { margin: 0; }
.fgg-card { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--fgg-line); border-radius: 14px; overflow: hidden;
  cursor: pointer; background: #222; aspect-ratio: 4 / 3; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.fgg-card:hover, .fgg-card:focus-visible { transform: translateY(-4px); border-color: rgba(167,217,43,.5); box-shadow: 0 14px 30px rgba(0,0,0,.5); outline: none; }
.fgg-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.fgg-card:hover img { transform: scale(1.05); }
.fgg-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px;
  padding: 14px 16px; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 55%); }
.fgg-tag { background: rgba(10,10,10,.7); border: 1px solid rgba(167,217,43,.45); color: #fff; padding: 4px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.3; max-width: 100%; }
.fgg-date { color: rgba(255,255,255,.8); font-size: .75rem; font-weight: 500; }
.fgg-more-wrap { text-align: center; margin-top: 32px; }
.fgg-more { display: inline-flex; align-items: center; gap: 10px; background: var(--fgg-green); color: #0A0A0A; border: 0; border-radius: 999px;
  padding: 14px 30px; font: 800 .95rem Montserrat, system-ui, sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.fgg-more:hover, .fgg-more:focus-visible { background: var(--fgg-green-dark); transform: translateY(-2px); outline: none; }
.fgg-more-wrap[hidden] { display: none; }
.fgg-note { margin: 28px auto 0; text-align: center; color: rgba(255,255,255,.55); font-size: .82rem; max-width: 720px; }
.fgg-lightbox { position: fixed; inset: 0; z-index: 2147483000; background: rgba(0,0,0,.93); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.fgg-lightbox[hidden] { display: none; }
.fgg-lb-figure { margin: 0; max-width: 1200px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fgg-lb-figure img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; }
.fgg-lb-caption { color: #fff; text-align: center; max-width: 820px; font-family: Montserrat, system-ui, sans-serif; display: flex; flex-direction: column; gap: 6px; }
.fgg-lb-caption strong { color: #A7D92B; font-size: 1.05rem; }
.fgg-lb-desc { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.5; }
.fgg-lb-meta { color: rgba(255,255,255,.5); font-size: .78rem; }
.fgg-lb-close, .fgg-lb-prev, .fgg-lb-next { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.fgg-lb-close { top: 14px; right: 14px; font-size: 1.8rem; line-height: 1; }
.fgg-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.fgg-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.fgg-lb-close:hover, .fgg-lb-prev:hover, .fgg-lb-next:hover { background: #A7D92B; color: #0A0A0A; }
html.fgg-lock { overflow: hidden; }
@media (max-width: 640px) {
  .fgg { padding: 56px 0; }
  .fgg-grid { gap: 12px; grid-template-columns: repeat(2, 1fr); }
  .fgg-overlay { padding: 8px 10px; }
  .fgg-tag { font-size: .68rem; padding: 3px 8px; }
  .fgg-date { font-size: .65rem; }
  .fgg-lightbox { padding: 56px 8px 16px; }
  .fgg-lb-prev, .fgg-lb-next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .fgg-card, .fgg-card img, .fgg-more { transition: none; } }
