/* ════════════════════════════════
   VARIABLES & BASE
════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir:  #0a0806;
  --encre: #1a1410;
  --or:    #c9a84c;
  --or2:   #e8c97a;
  --creme: #f2ede4;
/*  --gris:  #9a9088; */
  --gris:  #bfb3a9;
  --blanc: #ffffff;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
}
body {
 /* background: var(--noir); */
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--creme);
}

/* ════════════════════════════════
   SECTION GALERIE
════════════════════════════════ */
.gallery-section {
/* mw  background: var(--noir); */
  padding: 10rem 0 5rem;
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1900px;
  padding: 0 3rem 3rem;  /* même que masonry-grid */
  margin: 0 auto;        /* centré proprement */
}

.gallery-header-inner { flex: 1; max-width: 700px; }

.gallery-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.gallery-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--or);
}
.gallery-eyebrow span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or);
}

.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--creme);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.gallery-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ════════════════════════════════
   GRILLE MASONRY
════════════════════════════════ */
.masonry-grid {
  columns: 4;
  column-gap: 4px;
  padding: 0 3rem;
  max-width: 90vw; 
  margin: 0 auto;
}

.m-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--encre);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.m-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.m-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.4s ease;
  filter: grayscale(15%);
}
/* Pour les variantes tall / wide */
.m-tall img {
  aspect-ratio: 380 / 650;   /* exemple si tes tall sont plus hautes */
}

.m-wide img {
  aspect-ratio: 380 / 285;   /* exemple pour les wide */
}

.m-tall-mw img {
  aspect-ratio: 380 / 463;   /* exemple si tes tall sont plus hautes */
}

.m-tall-mw2 img {
  aspect-ratio: 380 / 467;   /* exemple si tes tall sont plus hautes */
}


.m-big img {
  aspect-ratio: 380 / 580;   /* exemple si tes tall sont plus hautes */
}

.m-479 img {
  aspect-ratio: 380 / 479;   /* exemple si tes tall sont plus hautes */
}

.m-horizontal img {
  aspect-ratio: 380 / 277;   /* exemple pour les wide */
}

.m-499 img {
  aspect-ratio: 380 / 499;   /* exemple si tes tall sont plus hautes */
}


.footer-links li a {
  line-height: 0.88!important;
}

.m-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Overlay */
.m-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,8,6,0.92) 0%,
    rgba(10,8,6,0.3) 40%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}
.m-item:hover .m-overlay { opacity: 1; }

.m-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  background: var(--or);
  color: var(--noir);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}
.m-red {
  display: inline-block;
  position: relative;
  align-self: flex-start;
  background: #d0571c;
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0.7rem;
  padding: 0.45rem 1rem;
  border: 1px solid #333;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  width:100%;
  text-align:center;
}

.m-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.m-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--creme);
  line-height: 1.2;
}

.m-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin-top: 0.2rem;
}

.m-zoom {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--or);
  transition: background 0.2s;
}
.m-item:hover .m-zoom {
  background: var(--or);
  color: var(--noir);
}

/* Stagger delays */
.m-item:nth-child(1)  { transition-delay: 0.05s; }
.m-item:nth-child(2)  { transition-delay: 0.10s; }
.m-item:nth-child(3)  { transition-delay: 0.15s; }
.m-item:nth-child(4)  { transition-delay: 0.20s; }
.m-item:nth-child(5)  { transition-delay: 0.25s; }
.m-item:nth-child(6)  { transition-delay: 0.30s; }
.m-item:nth-child(7)  { transition-delay: 0.35s; }
.m-item:nth-child(8)  { transition-delay: 0.40s; }
.m-item:nth-child(9)  { transition-delay: 0.45s; }
.m-item:nth-child(10) { transition-delay: 0.50s; }

/* ════════════════════════════════
   LIGHTBOX SLIDE
════════════════════════════════ */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,4,3,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lb-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lb-track-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.lb-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.lb-slide {
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 7rem;
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  user-select: none;
  pointer-events: none;
}
.lb-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  z-index: 10;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: rgba(242,237,228,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.lb-close:hover { background: var(--or); color: var(--noir); border-color: var(--or); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.2);
  color: rgba(242,237,228,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-arrow:hover {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
  transform: translateY(-50%) scale(1.08);
}
.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.3);
  pointer-events: none;
  white-space: nowrap;
}

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.cta-section {
  background: var(--encre);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.3) 30%, rgba(201,168,76,0.3) 70%, transparent);
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.8rem;
}
.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--creme);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.cta-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--or);
  color: var(--noir);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.cta-btn:hover {
  background: var(--or2);
  transform: translateY(-2px);
}

/* ════════════════════════════════
   LAZY IMG
════════════════════════════════ */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazy-img.loaded { opacity: 1; }

/* ════════════════════════════════
   BACK TO TOP
════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(201,168,76,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

@media (max-width: 2000px) { 
.gallery-header-inner {padding-left: 6rem;}
}
@media (max-width: 1200px) { 
.masonry-grid { columns: 3; }
.gallery-header-inner {padding-left: 4rem;}
}
@media (max-width: 768px) {
  .masonry-grid { columns: 2; padding: 0 1rem; }
  .gallery-header { padding: 0 1rem 2rem; flex-direction: column; align-items: flex-start; }
  .lb-slide { padding: 4rem 3rem; }
  .lb-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
.gallery-header-inner {padding-left: 1rem;}
.gallery-section { padding: 10rem 0 5rem;}

}
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
  .lb-slide { padding: 5rem 0.5rem 3rem; }
.gallery-section { padding: 5rem 0 5rem;}
}

.gallery-nav-next {
  position: absolute;
  top: 16rem;
  right: 10rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  text-decoration: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s 0.6s ease, transform 0.8s 0.6s ease;
}
.gallery-nav-next2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  text-decoration: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s 0.6s ease, transform 0.8s 0.6s ease;
}
.gallery-nav-next.visible {
  opacity: 1;
  transform: translateX(0);
}
.gallery-nav-next2.visible {
  opacity: 1;
  transform: translateX(0);
}

.gallery-nav-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(242,237,228,0.45);
  text-transform: uppercase;
  transition: color 0.3s;
}

.gallery-nav-arrow, .gallery-nav-arrow2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  background: linear-gradient(to right, rgba(201,168,76,0.3), rgba(201,168,76,0.9));
  -webkit-background-clip: text;
  background-clip: text;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}

.gallery-nav-next:hover .gallery-nav-label, .gallery-nav-next2:hover .gallery-nav-label2 {
  color: var(--or);
}
.gallery-nav-next:hover .gallery-nav-arrow, .gallery-nav-next2:hover .gallery-nav-arrow2 {
  transform: translateX(12px);
  background: linear-gradient(to right, rgba(201,168,76,0.6), rgba(232,201,122,1));
  -webkit-background-clip: text;
  background-clip: text;
}
/* ════════════════════════════════
   BOUTON INQUIRY SUR LES ITEMS
════════════════════════════════ */
.m-inquiry-btn {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.6);
  color: var(--or);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.m-inquiry-btn:hover {
  background: var(--or);
  color: var(--noir);
  transform: translateY(-2px);
}

/* ════════════════════════════════
   MODAL INQUIRY
════════════════════════════════ */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(6,4,3,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 2rem;
}
.inquiry-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.inquiry-modal {
  display: grid;
  grid-template-columns: 42% 58%;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  background: #0f0d0b;
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.inquiry-overlay.open .inquiry-modal {
  transform: translateY(0);
}

/* COLONNE GAUCHE – image peinture */
.inquiry-left {
  position: relative;
  min-height: 540px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease;
}
.inquiry-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(10,8,6,0.70) 60%,
    rgba(10,8,6,0.90) 100%
  );
  z-index: 2;
}
.inquiry-left-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2.5rem;
  z-index: 3;
  color: white;
}
.inquiry-painting-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.inquiry-painting-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--creme);
  line-height: 1.2;
  margin: 0;
}

/* COLONNE DROITE – formulaire */
.inquiry-right {
  position: relative;
  padding: 3.5rem 3rem 3rem;
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
}

.inquiry-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.2);
  color: rgba(242,237,228,0.5);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.inquiry-close:hover { background: var(--or); color: var(--noir); border-color: var(--or); }

.inquiry-card {
  width: 100%;
}

.inquiry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--or);
  margin-bottom: 2rem;
}

.inq-field {
  margin-bottom: 1.2rem;
}
.inq-field input,
.inq-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding: 0.75rem 0;
  color: var(--creme);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}
.inq-field input:focus,
.inq-field textarea:focus {
  border-color: var(--or);
}
.inq-field textarea {
  resize: vertical;
  min-height: 110px;
}
.inq-field input::placeholder,
.inq-field textarea::placeholder {
  color: rgba(191,179,169,0.5);
}

.inq-submit {
  margin-top: 0.5rem;
  text-align: center;
}

.inquiry-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #28a745;
  border: 1px solid #28a745;
  margin-top: 1rem;
  background: rgba(40,167,69,0.08);
}
.inquiry-success h3 {
  color: #28a745;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .inquiry-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .inquiry-left {
    min-height: 220px;
  }
  .inquiry-right {
    padding: 2rem 1.5rem 2rem;
  }
}

/* ════════════════════════════════
   FILTRES GALERIE
════════════════════════════════ */
.gallery-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.gf-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gris);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: all 0.25s;
}
.gf-btn:hover,
.gf-btn.active {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
}
