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

:root {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --accent: #2c5f4a;
  --accent-light: #e8f0ec;
}

html { background: var(--bg); scroll-behavior: auto; }
body { 
  background: var(--bg); 
  color: var(--text); 
  font-family: var(--font-body); 
  overflow-x: hidden; 
  overflow-y: auto;
  height: auto;
}

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.7s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-brand {
  font-family: var(--font-body); font-size: 0.75rem;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem; font-weight: 500;
}
#loader-bar-wrap { width: 180px; height: 1px; background: #e0e0e0; }
#loader-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
#loader-percent { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 1rem; font-weight: 300; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem; z-index: 100;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.site-logo {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.05em;
}
.site-logo:hover { color: var(--accent); }
.main-nav {
  display: flex; gap: 1rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.2em; transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
a { text-decoration: none; }
a:hover { text-decoration: none; }
.nav-cta {
  background: var(--accent) !important; color: #ffffff !important;
  padding: 0.55rem 1.3rem; font-size: 0.72rem !important;
  letter-spacing: 0.15em !important;
  text-decoration: none; border-radius: 4px;
  transition: background 0.3s;
}
.nav-cta:hover { background: #1e4334 !important; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; 
  background: none; 
  border: none;
  cursor: pointer; 
  padding: 0.5rem;
  z-index: 1001;
  width: 30px;
  height: 25px;
  position: relative;
}
.mobile-menu-toggle span {
  display: block; 
  width: 25px; 
  height: 3px;
  background: var(--text); 
  margin: 5px 0;
  transition: all 0.3s ease;
  position: absolute;
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 11px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 768px) {
  .mobile-menu-toggle { 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .main-nav {
    position: fixed; 
    top: 0; 
    right: -100%;
    width: 80%; 
    height: 100vh; 
    background: var(--bg);
    flex-direction: column; 
    justify-content: flex-start;
    padding: 5rem 2rem; 
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease; 
    z-index: 999;
  }
  .main-nav.active { right: 0; }
  .main-nav a {
    display: block;
    padding: 0.8rem 0;
    text-align: left;
    font-size: 1rem;
  }
}

/* ── HERO ── */
.hero-standalone {
  position: fixed; inset: 0; 
  background: linear-gradient(135deg, #ffffff 0%, #f8faf7 50%, #f0f7f4 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem 6vw 5rem; z-index: 10;
}
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem; font-weight: 500;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 13rem);
  font-weight: 400; line-height: 0.88;
  color: var(--text); margin-bottom: 2rem;
}
.hero-heading span:first-child { letter-spacing: -0.02em; }
.hero-tagline {
  font-size: 1.1rem; font-weight: 500;
  color: #333;
  line-height: 1.6; margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease forwards 0.3s;
}
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.scroll-indicator {
  position: absolute; right: 3rem; bottom: 3rem;
  display: flex; flex-direction: column; align-items: center;
  color: #1a3f32;
  font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: mixed;
}
.scroll-line {
  width: 1px; height: 50px; background: #1a3f32;
  transform-origin: top;
  animation: linePulse 2s ease-in-out infinite;
}
@keyframes linePulse {
  0%,100% { transform: scaleY(0.3); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── CANVAS ── */
#canvas-wrap {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
}
#canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── DARK OVERLAY ── */
#dark-overlay {
  position: fixed; inset: 0; z-index: 6;
  background: #111a16; opacity: 0; pointer-events: none;
}

/* ── MARQUEE ── */
.marquee-wrap {
  position: fixed; bottom: 2.5rem; left: 0; right: 0;
  z-index: 8; overflow: hidden; pointer-events: none;
  opacity: 0;
}
.marquee-text {
  display: block; white-space: nowrap;
  font-size: 10vw; font-family: var(--font-display);
  color: rgba(44, 95, 74, 0.08);
  letter-spacing: 0.1em;
}

/* ── SCROLL CONTAINER ── */
#scroll-container { 
  position: relative;
  height: 600vh;
  z-index: 7; 
}

/* ── SCROLL SECTIONS ── */
/* Toutes les sections : fixed, transparentes, texte toujours à gauche */
.scroll-section {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  z-index: 9;
  transition: opacity 0.3s ease;
}
.scroll-section.visible {
  pointer-events: auto;
  opacity: 1;
}

/* Tout le texte à gauche — même structure pour align-left et align-right */
.scroll-section .section-inner {
  margin-left: 2.5vw;
  margin-right: auto;
}

/* Compatibilité : on ignore align-right, tout reste à gauche */
.align-right .section-inner,
.align-left .section-inner {
  margin-left: 2.5vw;
  margin-right: auto;
}

.section-inner { 
  width: 100%;
  max-width: 400px;
  background: none;
  padding: 0;
}

.section-label {
  display: block; font-size: 0.68rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.8rem; font-weight: 600;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(2.4rem, 3.4vw, 4rem);
  font-weight: 700; line-height: 1.08;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-shadow: 
    2px 2px 0 rgba(255,255,255,0.95),
    -2px -2px 0 rgba(255,255,255,0.95),
    2px -2px 0 rgba(255,255,255,0.95),
    -2px 2px 0 rgba(255,255,255,0.95);
}
.section-body {
  font-size: 1rem; line-height: 1.75;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  font-weight: 400;
  text-shadow: 
    1px 1px 0 rgba(255,255,255,0.85),
    -1px -1px 0 rgba(255,255,255,0.85);
}
.section-note {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  border-left: 2px solid var(--accent); padding-left: 0.8rem;
  font-weight: 500;
}
.section-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

/* ── STATS ── */
.section-stats { 
  display: flex !important; 
  justify-content: center; 
  align-items: center; 
}
.stats-text { 
  text-align: center; 
  max-width: 720px; 
  padding: 3rem 3.5rem; 
  background: rgba(0,0,0,0.25); 
  backdrop-filter: blur(8px); 
  border-radius: 6px; 
  /* Reset left alignment for stats — centré par son flex parent */
  margin-left: auto;
  margin-right: auto;
}
.section-stats * { color: #ffffff !important; }
.stats-heading {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; color: #ffffff !important; margin-bottom: 1.5rem;
}
.stats-body {
  font-size: 1rem; line-height: 1.8;
  color: #ffffff !important; margin-bottom: 1rem;
}
.stats-note {
  display: inline-block; margin-top: 1.2rem;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.7) !important;
  border-left: 2px solid rgba(255,255,255,0.4); padding-left: 0.8rem;
}
.stats-grid { display: flex; gap: 5vw; align-items: flex-end; padding: 0 8vw; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 400; line-height: 1; color: #ffffff; font-style: italic;
}
.stat-suffix {
  font-size: clamp(2rem, 4vw, 4rem); color: rgba(255,255,255,0.5);
  font-family: var(--font-display); margin-left: 0.15em;
  align-self: flex-end; font-style: italic;
}
.stat-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-top: 0.6rem; font-weight: 400;
}

/* ── CTA ── */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff !important;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  border: 2px solid var(--accent);
}
.cta-button:hover { background: #1e4334; transform: translateY(-2px); }
.cta-phone {
  display: inline-block;
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  text-align: center;
  padding: 0.5rem 0;
}
.cta-phone:hover { color: var(--accent) !important; }

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 8; background: var(--bg);
  border-top: 1px solid #e8e8e8; padding: 3rem;
  margin-top: 0;
}
.footer-inner {
  display: flex; gap: 4rem; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col strong { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
.footer-col p, .footer-col a, .footer-col span {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; line-height: 1.7; font-weight: 300;
}
.footer-col a:hover { color: var(--accent); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Scroll scrub actif sur mobile aussi — même hauteur */
  #scroll-container {
    height: 600vh;
  }

  /* Sections restent fixed comme sur desktop */
  .scroll-section {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    pointer-events: none;
    background: transparent !important;
    border-bottom: none;
    /* Texte centré verticalement avec padding haut pour le header */
    padding-top: 5rem;
    align-items: center;
  }
  .scroll-section.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Canvas visible sur mobile */
  #canvas-wrap { display: block; }
  .marquee-wrap { display: none; }

  /* Hero fixe sur mobile aussi */
  .hero-standalone {
    position: fixed !important;
    inset: 0;
    min-height: unset;
  }

  /* Texte plus grand et lisible sur mobile */
  .section-inner {
    max-width: 90vw;
    margin-left: 4vw !important;
  }
  .section-heading { font-size: clamp(2rem, 7vw, 3rem); }
  .section-body { font-size: 0.95rem; }

  .hero-heading { font-size: clamp(3.5rem, 16vw, 6rem); }
  .stats-grid { flex-direction: column; gap: 2.5rem; }
  .site-header { padding: 1.2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 2rem; padding: 0; }

  /* Stats section : centré sur mobile */
  .section-stats .stats-text {
    max-width: 92vw;
    padding: 2rem 1.5rem;
    margin: 0 auto;
  }
}
