/* =====================================================
   GRACE IVOIRE — realisations.css
   Page galerie réalisations
   Couleurs : Orange #ff7a00 | Blanc #fff | Vert #00c853 | Or #d4af37
===================================================== */

/* =====================================================
   HERO
===================================================== */
.gi-realisations-page {
  background: #000;
  min-height: 100vh;
}

.gi-real-hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.08) 0%, transparent 70%);
  border-bottom: 1px solid rgba(212,175,55,.1);
}

.gi-real-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.gi-real-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.gi-orange { color: #ff7a00; }
.gi-white  { color: #fff; }
.gi-green  { color: #00c853; }
.gi-gold   { color: #d4af37; }

.gi-real-hero p {
  font-size: 16px;
  color: #aaa;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   FILTRES
===================================================== */
.gi-real-filters-section {
  padding: 36px 20px 0;
  display: flex;
  justify-content: center;
}

.gi-real-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.gi-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .25s ease;
  letter-spacing: .03em;
  white-space: nowrap;
}

.gi-filter-btn:hover {
  border-color: rgba(212,175,55,.5);
  color: #d4af37;
}

.gi-filter-btn.active {
  background: linear-gradient(135deg, #d4af37, #f0d060);
  border-color: transparent;
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212,175,55,.3);
}

/* =====================================================
   GALERIE — GRILLE CARRÉE
===================================================== */
.gi-real-gallery-section {
  padding: 36px 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.gi-real-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Item */
.gi-real-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, opacity .35s ease;
}

.gi-real-item.is-hidden {
  display: none;
}

.gi-real-item:hover {
  transform: scale(1.02);
}

/* Thumbnail */
.gi-real-thumb {
  width: 100%;
  height: 100%;
  position: relative;
}

.gi-real-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gi-real-item:hover .gi-real-thumb img {
  transform: scale(1.06);
}

/* Placeholder (quand pas d'image CPT) */
.gi-real-placeholder {
  background: #111;
  border: 1px solid rgba(212,175,55,.12);
}

.gi-real-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #333;
}

.gi-real-placeholder-inner i {
  font-size: 36px;
  color: rgba(212,175,55,.2);
}

.gi-real-placeholder-inner span {
  font-size: 12px;
  color: #444;
}

/* Overlay hover */
.gi-real-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gi-real-item:hover .gi-real-overlay {
  opacity: 1;
}

.gi-real-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.gi-real-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #d4af37;
}

.gi-real-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gi-real-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: background .2s;
}

.gi-real-zoom:hover {
  background: rgba(212,175,55,.5);
}

/* Message vide */
.gi-real-empty {
  text-align: center;
  padding: 80px 20px;
  color: #444;
}

.gi-real-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  color: rgba(212,175,55,.2);
}

.gi-real-empty p {
  font-size: 15px;
  color: #555;
}

/* =====================================================
   CTA
===================================================== */
.gi-real-cta {
  background: radial-gradient(ellipse at 50% 100%, rgba(212,175,55,.07) 0%, transparent 70%);
  border-top: 1px solid rgba(212,175,55,.1);
  padding: 80px 20px;
  text-align: center;
}

.gi-real-cta-inner {
  max-width: 500px;
  margin: 0 auto;
}

.gi-real-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin: 0 0 14px;
  color: #fff;
}

.gi-real-cta p {
  font-size: 15px;
  color: #888;
  margin-bottom: 32px;
}

.gi-btn-rdv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #d4af37, #f0d060);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 20px rgba(212,175,55,.3);
}

.gi-btn-rdv:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212,175,55,.45);
}

/* =====================================================
   LIGHTBOX
===================================================== */
.gi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.gi-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gi-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.95);
  cursor: zoom-out;
}

.gi-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#gi-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: opacity .25s ease;
  display: block;
}

.gi-lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.gi-lightbox-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d4af37;
}

.gi-lightbox-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Boutons nav */
.gi-lightbox-close,
.gi-lightbox-prev,
.gi-lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s, transform .2s;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.gi-lightbox-close {
  top: 20px;
  right: 20px;
}

.gi-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gi-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gi-lightbox-close:hover { background: rgba(255,80,80,.3); }
.gi-lightbox-prev:hover,
.gi-lightbox-next:hover  { background: rgba(212,175,55,.25); }

.gi-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.gi-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.gi-lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  z-index: 3;
  letter-spacing: .05em;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1200px) {
  .gi-real-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .gi-real-hero { padding: 60px 20px 40px; }
  .gi-real-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gi-real-overlay { opacity: 1; } /* toujours visible sur mobile */
  .gi-lightbox-prev { left: 10px; }
  .gi-lightbox-next { right: 10px; }
  .gi-lightbox-close { top: 14px; right: 14px; }
  #gi-lightbox-img { max-height: 75vh; border-radius: 8px; }
}

@media (max-width: 480px) {
  .gi-real-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gi-real-item { border-radius: 10px; }
  .gi-filter-btn { font-size: 12px; padding: 7px 14px; }
  .gi-lightbox-prev,
  .gi-lightbox-next { width: 40px; height: 40px; font-size: 15px; }
}
