/**
 * Nath's Cakes — Page Réalisations (CMS id=7)
 * Styles pour le contenu CMS pré-existant (.nc-real-page, .nc-real-banner, .nc-real-gallery, .nc-gitem, .nc-real-cta)
 * Aligné sur la DA Ladurée / Juliette
 */

.nc-real-page {
  background: var(--nc-ivory);
}

/* ---- Banner hero ---- */
.nc-real-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  background:
    linear-gradient(180deg, rgba(43, 37, 34, .55) 0%, rgba(43, 37, 34, .35) 50%, rgba(43, 37, 34, .65) 100%),
    url('https://images.unsplash.com/photo-1486427944299-d1955d23e34d?auto=format&fit=crop&w=2400&q=85') center/cover no-repeat;
  color: var(--nc-ivory);
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nc-real-banner__inner {
  max-width: 760px;
  margin: 0 auto;
}
.nc-real-banner__eyebrow {
  display: inline-block;
  font-family: var(--nc-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--nc-gold-light);
  margin: 0 0 1rem;
}
.nc-real-banner__title {
  font-family: var(--nc-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 1.25rem;
  color: var(--nc-ivory);
}
.nc-real-banner__desc {
  font-family: var(--nc-serif);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--nc-ivory);
  opacity: .92;
  margin: 0 auto 2rem;
  max-width: 56ch;
  line-height: 1.7;
}

/* ---- CTA buttons (réutilisé dans banner + final CTA) ---- */
.nc-real-page .nc-cta {
  display: inline-block;
  padding: .95rem 1.75rem;
  font-family: var(--nc-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--nc-gold);
  color: var(--nc-ivory);
  border: 1px solid var(--nc-gold);
  border-radius: 0;
  transition: background .25s var(--nc-ease-out), border-color .25s var(--nc-ease-out);
}
.nc-real-page .nc-cta:hover {
  background: var(--nc-gold-deep);
  border-color: var(--nc-gold-deep);
  color: var(--nc-ivory);
}
.nc-real-banner .nc-cta {
  background: var(--nc-ivory);
  color: var(--nc-ink);
  border-color: var(--nc-ivory);
}
.nc-real-banner .nc-cta:hover {
  background: var(--nc-gold);
  border-color: var(--nc-gold);
  color: var(--nc-ivory);
}

/* ---- Gallery ---- */
.nc-real-gallery {
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.5rem clamp(3rem, 6vw, 5rem);
  max-width: var(--nc-container);
  margin: 0 auto;
}
.nc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .nc-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 540px) {
  .nc-gallery__grid { grid-template-columns: 1fr; gap: .75rem; }
}

.nc-gitem {
  position: relative;
  overflow: hidden;
  background: var(--nc-sand);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.nc-gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--nc-ease-elegant);
}
.nc-gitem:hover img {
  transform: scale(1.06);
}
.nc-gitem__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(180deg, transparent 35%, rgba(43, 37, 34, .85) 100%);
  color: var(--nc-ivory);
  font-family: var(--nc-serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  opacity: 0;
  transition: opacity .35s var(--nc-ease-out);
  pointer-events: none;
}
.nc-gitem:hover .nc-gitem__hover {
  opacity: 1;
}

/* ---- Bottom CTA ---- */
.nc-real-cta {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 9vw, 8rem) 1.5rem clamp(6rem, 11vw, 9rem);
  background:
    linear-gradient(180deg, rgba(251, 247, 242, .88) 0%, rgba(251, 247, 242, .82) 100%),
    url('https://images.unsplash.com/photo-1565958011703-44f9829ba187?auto=format&fit=crop&w=2400&q=85') center/cover no-repeat;
  border-top: 1px solid var(--nc-line);
}
.nc-real-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(251, 247, 242, .3) 100%);
  pointer-events: none;
}
.nc-real-cta > * {
  position: relative;
  z-index: 1;
}
.nc-real-cta h2 {
  font-family: var(--nc-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: var(--nc-ink);
}
.nc-real-cta p {
  font-family: var(--nc-serif);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--nc-ink-soft);
  margin: 0 auto 2.25rem;
  max-width: 52ch;
  line-height: 1.7;
}

/* ---- Lightbox ---- */
.nc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(43, 37, 34, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--nc-ease-out), visibility 0s linear .3s;
}
.nc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--nc-ease-out), visibility 0s linear 0s;
}

.nc-lightbox__figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  pointer-events: none;
}
.nc-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  pointer-events: auto;
}
.nc-lightbox__caption {
  font-family: var(--nc-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 400;
  color: var(--nc-ivory);
  text-align: center;
  letter-spacing: -.005em;
}

/* Boutons close + navigation */
.nc-lightbox__close,
.nc-lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(251, 247, 242, .35);
  color: var(--nc-ivory);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--nc-ease-out), border-color .25s var(--nc-ease-out);
  padding: 0;
}
.nc-lightbox__close:hover,
.nc-lightbox__nav:hover {
  background: rgba(251, 247, 242, .12);
  border-color: var(--nc-ivory);
}
.nc-lightbox__close {
  top: 5.5rem;
  right: 1.5rem;
}
.nc-lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.nc-lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .nc-lightbox { padding: 3rem .75rem 4.5rem; }
  .nc-lightbox__close { top: .75rem; right: .75rem; width: 42px; height: 42px; }
  .nc-lightbox__nav { width: 40px; height: 40px; }
  .nc-lightbox__nav--prev { left: .5rem; }
  .nc-lightbox__nav--next { right: .5rem; }
  .nc-lightbox__img { max-height: 70vh; }
}

/* ---- Reset PS9 wrappers sur page CMS ---- */
.cms-id-7 #wrapper,
.cms-id-7 #wrapper > .container,
.cms-id-7 #main,
.cms-id-7 #content-wrapper,
.cms-id-7 #content,
.cms-id-7 .page-content,
.cms-id-7 .card,
.cms-id-7 .card-block,
body[class*="cms-id-7"] #wrapper,
body[class*="cms-id-7"] #content-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
}
