/* ============================================================
   Nath's Cakes — Réalisations Page  |  Up-Concept
   ============================================================ */

/* Hide standard page-header (replaced by custom banner in content) */
.page-header { display: none !important; }

/* Breakout overflow fix (same as home) */
#wrapper,
#main,
#content,
.js-content-wrapper,
.page-wrapper,
.page-content { overflow: visible !important; }

/* Remove rich-text default spacing on réalisations content */
#content.nc-real-container { padding: 0 !important; background: transparent !important; }

/* ============================================================
   BANNER
   ============================================================ */
.nc-real-banner {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: linear-gradient(135deg, var(--nc-dark) 0%, var(--nc-dark-2) 100%);
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 72px;
  text-align: center;
  overflow: hidden;
}

.nc-real-banner::before,
.nc-real-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242,96,116,.1);
  pointer-events: none;
}
.nc-real-banner::before { width: 600px; height: 600px; top: -200px; right: -100px; }
.nc-real-banner::after  { width: 400px; height: 400px; bottom: -160px; left: -80px; }

.nc-real-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.nc-real-banner__eyebrow {
  display: inline-block;
  font-family: var(--nc-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nc-pink-mid);
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgba(242,96,116,.35);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.nc-real-banner__title {
  font-family: var(--nc-heading);
  font-size: clamp(38px, 6vw, 68px);
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
  text-shadow: 0 2px 32px rgba(0,0,0,.25);
}

.nc-real-banner__desc {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,.62);
  line-height: 1.8;
  margin: 0 auto 36px;
  max-width: 560px;
}

/* ============================================================
   GALLERY (masonry, dark bg)
   ============================================================ */
.nc-real-gallery {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: var(--nc-dark);
  padding: 0 0 clamp(56px, 7vw, 88px);
}

.nc-real-gallery .nc-gallery__grid {
  columns: 4;
  column-gap: 4px;
  padding: 0 4px;
}

.nc-real-gallery .nc-gitem {
  break-inside: avoid;
  margin-bottom: 4px;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.nc-real-gallery .nc-gitem img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.nc-real-gallery .nc-gitem:hover img { transform: scale(1.05); }

.nc-real-gallery .nc-gitem__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(242,96,116,.78) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-family: var(--nc-heading);
  font-size: 15px;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
}
.nc-real-gallery .nc-gitem:hover .nc-gitem__hover { opacity: 1; transform: none; }

/* ============================================================
   LIGHTBOX (même structure que homepage)
   ============================================================ */
.nc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,4,5,.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}
.nc-lightbox.open { opacity: 1; pointer-events: all; }

.nc-lightbox__img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(.94);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.nc-lightbox.open .nc-lightbox__img { transform: scale(1); }

.nc-lightbox__caption {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--nc-heading);
  font-size: 15px;
  color: rgba(255,255,255,.6);
}

.nc-lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
  line-height: 1;
}
.nc-lightbox__close:hover { background: rgba(255,255,255,.18); }

.nc-lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.nc-lightbox__arrow:hover { background: rgba(255,255,255,.2); }
.nc-lightbox__arrow--prev { left: 16px; }
.nc-lightbox__arrow--next { right: 16px; }

.nc-lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--nc-body);
  font-size: 13px;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
}

/* ============================================================
   CTA BOTTOM
   ============================================================ */
.nc-real-cta {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: var(--nc-cream);
  padding: clamp(56px, 7vw, 88px) clamp(24px, 5vw, 80px);
  text-align: center;
}

.nc-real-cta h2 {
  font-family: var(--nc-heading);
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--nc-dark);
  margin: 0 0 14px;
}

.nc-real-cta p {
  font-size: 16px;
  color: var(--nc-muted);
  margin: 0 auto 36px;
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nc-real-gallery .nc-gallery__grid { columns: 2; }
}
@media (max-width: 480px) {
  .nc-real-gallery .nc-gallery__grid { columns: 2; }
  .nc-lightbox__arrow { display: none; }
}


/* Hide breadcrumb + full layout reset (same approach as contact page) */
body.cms-id-7 .breadcrumb-container,
body.cms-id-7 .breadcrumb,
body.cms-id-7 nav[data-depth] { display: none !important; }

body.cms-id-7 #wrapper > .container,
body.cms-id-7 #main,
body.cms-id-7 #content-wrapper,
body.cms-id-7 #content,
body.cms-id-7 .page-content,
body.cms-id-7 .card,
body.cms-id-7 .card-block {
  padding: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

body.cms-id-7 #content-wrapper {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove bottom gap — overrides theme rule on #main .page-content */
body.cms-id-7 #main .page-content,
body.cms-id-7 #main .page-footer,
body.cms-id-7 #main .page-header { margin-bottom: 0 !important; }
