/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ============================================================
   DESIGN TOKENS — PPDL Léman
   Blanc cassé + beige sable + vert sauge accent
   Vibe artisan haut de gamme
============================================================ */
:root {
  /* Surfaces */
  --bg:           #FAF8F2;
  --bg-warm:      #F2EBDD;
  --bg-card:      #FFFFFF;
  --bg-dark:      #2A2823;

  /* Text */
  --text:         #1F1D17;
  --text-muted:   #5C564B;
  --text-light:   #968F80;
  --text-on-dark: #FAF8F2;

  /* Brand — vert sauge */
  --sage:         #5A6B5C;
  --sage-dark:    #3F4D40;
  --sage-light:   #8FA791;
  --sage-glow:    rgba(90, 107, 92, 0.10);

  /* Borders */
  --border:       #E5DFCF;
  --border-dark:  #CFC6B0;
  --border-on-dark: rgba(250, 248, 242, 0.12);

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Shape */
  --radius-sm:    4px;
  --radius-md:    10px;
  --radius-lg:    18px;

  /* Layout */
  --max-w:        1280px;
  --px:           clamp(1.25rem, 5vw, 4rem);
  --nav-h:        76px;
}

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--sage);
}
.eyebrow.on-dark { color: rgba(250, 248, 242, 0.65); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0, 0.1, 1), transform 0.7s cubic-bezier(0.2, 0, 0.1, 1);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.18s; }
.reveal.delay-3 { transition-delay: 0.28s; }
.reveal.delay-4 { transition-delay: 0.38s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   NAV
============================================================ */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#mainNav.scrolled {
  background: rgba(250, 248, 242, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.2;
}
.nav-logo-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.005em;
}
.nav-logo-text span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sage);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--sage);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
  font-variant-numeric: tabular-nums;
}
.nav-cta:hover { background: var(--sage-dark); transform: translateY(-1px); }

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: var(--bg-card); border-color: var(--text); }
.menu-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: transform 400ms ease-in-out;
}
.menu-toggle svg path:first-child {
  transition: stroke-dasharray 400ms ease-in-out, stroke-dashoffset 400ms ease-in-out;
  stroke-dasharray: 12 63;
}
.menu-toggle.open svg { transform: rotate(-45deg); }
.menu-toggle.open svg path:first-child {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 2.5rem) var(--px) 3rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-nav-links {
  list-style: none;
  border-top: 1px solid var(--border);
}
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a {
  display: block;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
}
.mobile-menu-cta {
  margin-top: 2.5rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage);
  color: var(--bg);
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }

.btn-dark {
  background: var(--text);
  color: var(--bg);
}
.btn-dark:hover { background: var(--sage); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dark);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-card);
}
.btn-ghost-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(250, 248, 242, 0.25);
}
.btn-ghost-light:hover {
  border-color: var(--text-on-dark);
  background: rgba(250, 248, 242, 0.06);
}

/* ============================================================
   SECTION
============================================================ */
.section { padding: 7rem 0; }
.section-bg { background: var(--bg); }
.section-warm { background: var(--bg-warm); }
.section-card { background: var(--bg-card); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
}
.section-title em {
  font-style: italic;
  color: var(--sage);
}
.section-dark .section-title em { color: var(--sage-light); }
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 540px;
}
.section-dark .section-desc { color: rgba(250, 248, 242, 0.7); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 5rem 0 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand { max-width: 320px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  color: var(--text-on-dark);
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(250, 248, 242, 0.55);
  line-height: 1.7;
}
.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.45);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a,
.footer-links li {
  font-size: 0.875rem;
  color: rgba(250, 248, 242, 0.7);
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8125rem; color: rgba(250, 248, 242, 0.35); }

/* ============================================================
   NAV — Light state (default, over dark hero)
============================================================ */
#mainNav .nav-logo { color: var(--text-on-dark); }
#mainNav .nav-logo-text strong { color: var(--text-on-dark); }
#mainNav .nav-logo-text span { color: rgba(250, 248, 242, 0.55); }
#mainNav .nav-links a { color: rgba(250, 248, 242, 0.7); }
#mainNav .nav-links a:hover { color: var(--text-on-dark); }
#mainNav .nav-links a.active { color: var(--text-on-dark); }
#mainNav .menu-toggle {
  border-color: rgba(250, 248, 242, 0.25);
}
#mainNav .menu-toggle svg { color: var(--text-on-dark); }
#mainNav .menu-toggle:hover { background: rgba(250, 248, 242, 0.06); border-color: var(--text-on-dark); }

/* NAV — Dark state (when scrolled OR menu open) */
#mainNav.scrolled .nav-logo,
#mainNav.menu-open .nav-logo { color: var(--text); }
#mainNav.scrolled .nav-logo-text strong,
#mainNav.menu-open .nav-logo-text strong { color: var(--text); }
#mainNav.scrolled .nav-logo-text span,
#mainNav.menu-open .nav-logo-text span { color: var(--text-muted); }
#mainNav.scrolled .nav-links a,
#mainNav.menu-open .nav-links a { color: var(--text-muted); }
#mainNav.scrolled .nav-links a:hover,
#mainNav.menu-open .nav-links a:hover { color: var(--text); }
#mainNav.scrolled .nav-links a.active,
#mainNav.menu-open .nav-links a.active { color: var(--text); }
#mainNav.scrolled .menu-toggle,
#mainNav.menu-open .menu-toggle {
  border-color: var(--border-dark);
}
#mainNav.scrolled .menu-toggle svg,
#mainNav.menu-open .menu-toggle svg { color: var(--text); }
#mainNav.scrolled .menu-toggle:hover,
#mainNav.menu-open .menu-toggle:hover { background: var(--bg-card); border-color: var(--text); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .nav-logo-text { display: none; }
}

@media (max-width: 480px) {
  .nav-cta span.nav-cta-text { display: none; }
  .nav-cta { padding: 0.5rem 0.875rem; }
}
