/* =========================================================
   DLH CRÉATION — Luxury Ballpoint Pen
   Aesthetic: Refined editorial luxury, Montblanc register
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ========================================================= */

:root {
  --bg-dark:        #080706;
  --bg-light:       #f0ece5;
  --bg-mid:         #0f0d0b;
  --accent:         #b8952e;
  --accent-light:   #d4b45a;
  --text-on-dark:   #ede9e2;
  --text-on-light:  #1a1714;
  --muted-dark:     rgba(237,233,226,0.45);
  --muted-light:    rgba(26,23,20,0.50);
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── Custom cursor ─────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(184,149,46,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
body:hover .cursor-dot { opacity: 1; }

/* ── Loader ────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 2.5rem;
  opacity: 0.82;
  transform: translateY(-12px);
}

.loader-track {
  width: 180px;
  height: 1px;
  background: rgba(237,233,226,0.12);
  margin: 0 auto 1.2rem;
  position: relative;
  overflow: hidden;
}

#loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--muted-dark);
}

/* ── Site header ───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 3rem;
  mix-blend-mode: difference;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  opacity: 1 !important;
  border-bottom: 1px solid var(--accent) !important;
  padding-bottom: 2px;
  color: var(--accent) !important;
}

/* ── Hero standalone ───────────────────────────────────── */
.hero-standalone {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  z-index: 10;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  margin-top: -6vh;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 8rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 2.5rem;
}

.hero-heading .word {
  display: block;
}

.hero-heading .word:nth-child(2) {
  font-style: italic;
  color: var(--accent-light);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-origin {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 4rem;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ── Canvas wrap ───────────────────────────────────────── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 5;
  clip-path: circle(0% at 50% 50%);
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Logo reveal (dark screen before circle wipe) ─────── */
#logo-reveal {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#logo-reveal img {
  width: clamp(140px, 18vw, 260px);
  height: auto;
  opacity: 0.88;
}

/* ── Dark overlay ──────────────────────────────────────── */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 6;
  background: rgba(8,7,6,0.91);
  opacity: 0;
  pointer-events: none;
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee-wrap {
  position: fixed;
  bottom: 12vh;
  left: 0;
  right: 0;
  z-index: 7;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 13rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text-on-light);
  white-space: nowrap;
  opacity: 0.055;
  will-change: transform;
}

/* ── Scroll container ──────────────────────────────────── */
#scroll-container {
  position: relative;
  height: 600vh;
}

/* ── Scroll sections (generic) ─────────────────────────── */
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

.scroll-section.visible {
  pointer-events: auto;
}

/* ── Side-aligned text zones ───────────────────────────── */
.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.align-left .section-inner,
.align-right .section-inner {
  max-width: 38vw;
}

/* ── Section inner content ─────────────────────────────── */
.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Content sections overlay the white canvas — use dark text */
.section-content .section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
}

.section-content .section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-content .section-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(26,23,20,0.60);
  max-width: 34ch;
}

/* Stats section has dark overlay — keep light text */
.section-stats .section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--text-on-dark);
}

/* CTA section sits on white canvas — dark text */
.section-cta .cta-heading {
  color: var(--text-on-light);
}

.section-cta .section-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(26,23,20,0.55);
}

.section-cta .section-label {
  color: var(--accent);
}

.section-note {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(184,149,46,0.35);
  display: inline-block;
}

/* ── Stats section ─────────────────────────────────────── */
.section-stats {
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 9;
}

.stats-grid {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5vw;
}

.stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  font-weight: 300;
  color: var(--text-on-dark);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(184,149,46,0.2);
  flex-shrink: 0;
  margin: 0 2vw;
}

/* ── CTA section ───────────────────────────────────────── */
.section-cta {
  justify-content: center;
  padding: 0 5vw;
}

.cta-inner {
  align-items: center;
  text-align: center;
  max-width: none;
  gap: 2rem;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.cta-button:hover {
  background: var(--text-on-light);
  border-color: var(--text-on-light);
  color: var(--bg-light);
}

/* ── Horizontal rule accent ────────────────────────────── */
.gold-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  display: block;
}

/* ── Site sections (À propos / Galerie / Contact) ───────── */
.site-section {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  padding: 8rem 5vw;
}

.site-section--light {
  background: var(--bg-light);
}

.site-section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.site-section-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.site-section .site-section-heading     { color: var(--text-on-dark); }
.site-section--light .site-section-heading { color: var(--text-on-light); }

.site-section-body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
}

.site-section .site-section-body        { color: var(--muted-dark); }
.site-section--light .site-section-body { color: rgba(26,23,20,0.60); }

.site-section-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  background: #e8e4dd;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.contact-inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.contact-buttons .cta-button {
  border-color: rgba(255,255,255,0.35);
  color: var(--text-on-dark);
}

.contact-buttons .cta-button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.contact-inner .cta-button {
  align-self: flex-start;
}

/* ── À propos editorial two-column ──────────────────────── */
.site-section--apropos {
  background: var(--bg-dark);
  padding: 9rem 8vw;
}

.apropos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.apropos-photo-col {
  position: sticky;
  top: 8rem;
}

.apropos-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

.apropos-photo-caption {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 1rem;
}

.apropos-text-col {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.apropos-text-col .section-label {
  margin-bottom: 2rem;
  display: block;
}

.apropos-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 2.5rem;
}

.apropos-title em {
  font-style: italic;
  color: var(--accent-light);
}

.apropos-rule {
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}

.apropos-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(237,233,226,0.52);
  margin-bottom: 1.4rem;
}

.apropos-cta {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* ── Mobile (<768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  .site-header { padding: 1.2rem 1.5rem; }
  .nav-links li:not(:last-child) { display: none; }

  .hero-heading { font-size: clamp(2rem, 9vw, 4rem); }

  #scroll-container { height: 380vh; }

  .align-left,
  .align-right {
    padding: 3rem 1.5rem;
    background: rgba(8,7,6,0.82);
  }
  .align-left { padding-right: 1.5rem; }
  .align-right { padding-left: 1.5rem; }
  .align-left .section-inner,
  .align-right .section-inner { max-width: 100%; }

  .section-heading { font-size: clamp(2rem, 8vw, 3.5rem); }

  .stats-grid {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 2rem;
    background: rgba(8,7,6,0.82);
  }
  .stat-divider { width: 60px; height: 1px; margin: 0; }

  .cta-heading { font-size: clamp(2.5rem, 10vw, 5rem); }

  .marquee-text { font-size: clamp(3rem, 14vw, 6rem); }

  /* Mobile: dark backdrop behind sections → flip text back to light */
  .section-content .section-heading { color: var(--text-on-dark); }
  .section-content .section-body { color: rgba(237,233,226,0.65); }
  .section-content .section-note { border-color: rgba(184,149,46,0.3); }
  .section-cta .cta-heading { color: var(--text-on-dark); }
  .section-cta .section-body { color: rgba(237,233,226,0.6); }

  .site-section { padding: 5rem 1.5rem; }
  .site-section-columns { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }

  .site-section--apropos {
    padding: 5rem 1.5rem;
  }
  .apropos-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .apropos-photo-col {
    position: static;
  }
  .apropos-img {
    aspect-ratio: 3/2;
  }
}
