/* ============================================
   Gestion PMBG inc. — stylesheet
   ============================================ */

:root {
  --forest:        #1a3a2e;
  --forest-deep:   #0f2419;
  --forest-light:  #2a5c47;
  --moss:          #5a7a4c;
  --gold:          #c9a961;
  --gold-soft:     #e6c788;
  --cream:         #faf7f2;
  --sand:          #ede6d6;
  --ink:           #1a1a1a;
  --ink-soft:      #3d3d3d;
  --muted:         #6b6b6b;
  --line:          rgba(26, 58, 46, 0.12);
  --shadow-sm:     0 2px 10px rgba(15, 36, 25, 0.08);
  --shadow-md:     0 8px 30px rgba(15, 36, 25, 0.12);
  --shadow-lg:     0 20px 60px rgba(15, 36, 25, 0.2);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  color: var(--forest);
}

.section-lede {
  font-size: 1.08rem;
  max-width: 620px;
  color: var(--ink-soft);
  margin: 0 0 56px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--transition), padding 0.4s var(--transition), box-shadow 0.4s var(--transition);
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  transition: color 0.3s;
}
.nav.scrolled .brand { color: var(--forest); }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--forest-deep) !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--cream);
}
.nav.scrolled .nav-toggle { color: var(--forest); }
.nav-toggle span {
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 22px; height: 2px; background: currentColor;
  transition: transform 0.3s var(--transition);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 45%, var(--forest-light) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(90, 122, 76, 0.45), transparent 60%);
}
.hero-image {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  filter: saturate(0.8) contrast(1.05);
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 36, 25, 0.7) 100%);
}

.hero-content {
  text-align: center;
  max-width: 880px;
  padding: 120px 28px 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ''; width: 40px; height: 1px; background: var(--gold);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 40px;
  color: rgba(250, 247, 242, 0.88);
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--transition), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(201, 169, 97, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250, 247, 242, 0.35);
}
.btn-ghost:hover { background: rgba(250, 247, 242, 0.08); border-color: var(--cream); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 247, 242, 0.75);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(250, 247, 242, 0.45);
  border-radius: 12px;
  display: grid; place-items: center;
}
.scroll-indicator::after {
  content: ''; width: 3px; height: 8px;
  background: var(--gold-soft);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite var(--transition);
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(-8px); opacity: 0; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ============ SECTIONS ============ */
section { padding: 120px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-header .section-title,
.section-header .section-lede { margin-bottom: 0; }
.section-header .section-lede { max-width: 440px; }

/* ============ SERVICES ============ */
.services { background: var(--cream); position: relative; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 36px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--transition), box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: var(--gold-soft);
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.25rem;
  color: var(--forest);
  margin-bottom: 10px;
}
.service-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ GALLERY ============ */
.gallery {
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  position: relative;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.3s var(--transition);
}
.filter-chip:hover { border-color: var(--forest); color: var(--forest); }
.filter-chip.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--forest-deep);
  transform: translateZ(0);
  transition: transform 0.5s var(--transition);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition), opacity 0.4s;
  opacity: 0;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 36, 25, 0.75));
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s var(--transition), opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gallery-item-caption::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-item-caption { transform: translateY(0); opacity: 1; }

.gallery-item.hidden { display: none; }

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(15, 36, 25, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal.open { display: flex; opacity: 1; }

.modal-viewport {
  position: relative;
  width: min(94vw, 1400px);
  height: min(86vh, 900px);
  display: grid;
  place-items: center;
}
.modal-img-wrap {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  overflow: hidden;
}
.modal-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s var(--transition), transform 0.5s var(--transition);
}
.modal-img.loaded { opacity: 1; transform: scale(1); }

.modal-caption {
  position: absolute;
  left: 0; right: 0; bottom: -48px;
  text-align: center;
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.modal-caption strong { color: var(--gold-soft); font-weight: 600; margin-right: 10px; }
.modal-caption .counter { color: rgba(250,247,242,0.55); margin-left: 10px; }

.modal-btn {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(250, 247, 242, 0.15);
  color: var(--cream);
  display: grid; place-items: center;
  transition: background 0.3s, transform 0.3s var(--transition);
  z-index: 10;
}
.modal-btn:hover { background: rgba(201, 169, 97, 0.25); border-color: var(--gold); }
.modal-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.modal-close { top: 20px; right: 20px; }
.modal-close:hover { transform: rotate(90deg); }
.modal-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.modal-next { right: 20px; top: 50%; transform: translateY(-50%); }
.modal-prev:hover { transform: translateY(-50%) translateX(-4px); }
.modal-next:hover { transform: translateY(-50%) translateX(4px); }

body.modal-open { overflow: hidden; }

/* ============ ABOUT ============ */
.about {
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.12), transparent 70%);
  pointer-events: none;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-title { color: var(--cream); }
.about-text .eyebrow { color: var(--gold-soft); }
.about-text p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.82);
  margin: 0 0 18px;
}
.about-signature {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(250, 247, 242, 0.15);
}
.about-signature-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-soft);
}
.about-signature-role {
  font-size: 0.86rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-top: 4px;
}

.about-features {
  display: grid;
  gap: 16px;
}
.about-feature {
  display: flex; gap: 18px;
  padding: 26px;
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(250, 247, 242, 0.08);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--transition);
}
.about-feature:hover {
  background: rgba(250, 247, 242, 0.06);
  border-color: rgba(201, 169, 97, 0.35);
  transform: translateX(6px);
}
.about-feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(201, 169, 97, 0.15);
  color: var(--gold-soft);
}
.about-feature-icon svg { width: 22px; height: 22px; }
.about-feature h4 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}
.about-feature p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.55;
}

/* ============ CONTACT ============ */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  display: block;
  padding: 34px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--transition), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition);
}
.contact-card:not(.contact-card-static):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.contact-card:not(.contact-card-static):hover::before { transform: scaleX(1); }

.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--gold-soft);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-label {
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-info-value {
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}
.contact-card-cta {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--transition);
}
.contact-card:hover .contact-card-cta { transform: translateX(4px); }

/* ============ FOOTER ============ */
footer {
  background: var(--forest-deep);
  color: rgba(250, 247, 242, 0.6);
  padding: 50px 0 30px;
  font-size: 0.9rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .brand { color: var(--cream); }
footer a:hover { color: var(--gold-soft); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .about-wrap { grid-template-columns: 1fr; gap: 50px; }
  .hero-stats { gap: 40px; margin-top: 50px; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--transition), opacity 0.4s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { color: var(--ink); font-size: 1.1rem; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 10px; }
  .nav-toggle { display: flex; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 30px; }
  .hero-stat-num { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .modal-btn { width: 44px; height: 44px; }
  .modal-close { top: 14px; right: 14px; }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
