/* Staehli Services Forestiers — Magazine / Editorial */

/* ============================================================
   THEME — MAGAZINE / EDITORIAL  (very dark, big italic, vivid green)
============================================================ */
:root {
  --bg: #0d0d0d;
  --bg-2: #131914;
  --bg-3: #0a1410;
  --accent: #74c69d;
  --accent-dark: #2d6a4f;
  --accent-light: #95d5b2;
  --accent-rgb: 116, 198, 157;
  --accent-light-rgb: 149, 213, 178;
  --accent-dark-rgb: 45, 106, 79;
  --text: #f0f0e8;
  --text-dim: #a8a8a0;
  --text-muted: #707070;
  --border: rgba(116, 198, 157, 0.14);
  --border-strong: rgba(116, 198, 157, 0.32);

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --heading-style: italic;
  --heading-weight: 400;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  --radius: 4px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }

a { color: var(--accent-light); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-style: var(--heading-style);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
h1 em { font-style: normal; color: var(--accent); font-weight: 400; }

h2 {
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}
h2 em { font-style: normal; color: var(--accent); }

h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled { padding: .7rem 0; }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  font-style: normal;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-dim);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
  font-family: 'Inter', sans-serif;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 0;
  font-weight: 500;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(var(--accent-light-rgb), 0.18);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--accent-light); color: var(--text); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: .5rem;
  color: var(--text);
  cursor: pointer;
  width: 40px; height: 40px;
}

/* ============================================================
   HERO — Asymmetric 1/3 + 2/3
============================================================ */
.hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero .container {
  max-width: 100%;
  padding: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: 0;
  min-height: 100vh;
}
.hero-grid > div:first-child {
  padding: 8rem 2.5rem 4rem 3.5rem;
  align-self: end;
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  background: rgba(116, 198, 157, 0.12);
  border: 1px solid rgba(116, 198, 157, 0.30);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
  font-family: 'Inter', sans-serif;
  font-style: normal;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.hero h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--heading-weight);
  font-style: var(--heading-style);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: .5rem;
  letter-spacing: .03em;
  font-family: 'Inter', sans-serif;
  font-style: normal;
}

.hero-visual {
  position: relative;
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
  border: none;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dark), var(--bg-3));
  box-shadow: none;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.4) 0%, transparent 30%);
  z-index: 2;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-tag {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  right: 2rem;
  left: auto;
  max-width: 320px;
  padding: 1rem 1.2rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: .9rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-style: normal;
}
.hero-tag strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: .15rem;
}

/* ============================================================
   SECTIONS — alternating black / very-dark green
============================================================ */
section { padding: 8rem 0; position: relative; }
section#chantiers { background: var(--bg) !important; }
#services { background: var(--bg-3); }

.section-head {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: left;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ============================================================
   SERVICE CARDS — magazine style: image plein, texte en overlay
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.service-card {
  background: var(--bg-2);
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.service-card .service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  border-bottom: none;
  z-index: 0;
  object-fit: cover;
  filter: brightness(0.65);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13,13,13,0.85) 70%, rgba(13,13,13,0.96) 100%);
  z-index: 1;
}
.service-card > *:not(.service-img) {
  position: relative;
  z-index: 2;
}
.service-icon {
  margin: 2rem 2rem 1rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(116, 198, 157, 0.18);
  border-radius: 4px;
  color: var(--accent);
}
.service-card h3 {
  padding: 0 2rem;
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: .75rem;
}
.service-card p { padding: 0 2rem; color: rgba(240,240,232,0.85); font-size: .95rem; }
.service-card ul {
  list-style: none;
  padding: 1rem 2rem 2rem;
}
.service-card ul li {
  padding: .35rem 0 .35rem 1.2rem;
  font-size: .88rem;
  color: rgba(240,240,232,0.85);
  position: relative;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.service-card:hover .service-img {
  filter: brightness(0.85);
  transform: scale(1.04);
}

/* ============================================================
   CHANTIERS — magazine cards
============================================================ */
.chantiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}
.chantier-card {
  background: var(--bg-2);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.chantier-card:hover .chantier-img img { transform: scale(1.04); }
.chantier-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent-dark), var(--bg-3));
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.chantier-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.chantier-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(var(--accent-light-rgb), 0.18), transparent 60%);
  pointer-events: none;
}
.chantier-body { padding: 1.5rem; }
.chantier-meta {
  display: flex; gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  letter-spacing: .03em;
  font-family: 'Inter', sans-serif;
  font-style: normal;
}
.chantier-body h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.chantier-body p { color: var(--text-dim); font-size: .92rem; }

/* ============================================================
   ABOUT
============================================================ */
.about { background: var(--bg-3); position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-dim); margin-bottom: 1.2rem; line-height: 1.8; }
.about-features { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.about-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-2);
  border-radius: 0;
  border: 1px solid var(--border);
}
.about-features svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.about-features strong {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  margin-bottom: .15rem;
}
.about-features span { color: var(--text-dim); font-size: .9rem; }

.about-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent-dark), var(--bg-3));
  border-radius: 0;
  border: none;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(116,198,157,0.18), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(45,106,79,0.40), transparent 60%);
}
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ============================================================
   CTA
============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg) 100%);
  border-radius: 0;
  padding: 6rem 3rem;
  margin: 6rem auto;
  max-width: var(--maxw);
  text-align: center;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(var(--accent-light-rgb), 0.15), transparent 70%);
}
.cta-section > * { position: relative; z-index: 2; }
.cta-section h2 {
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}
.cta-section p { color: var(--text-dim); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--bg-2);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.footer-grid ul { list-style: none; display: grid; gap: .6rem; }
.footer-grid a { color: var(--text-dim); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--text-dim); font-size: .92rem; max-width: 320px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ============================================================
   REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-grid > div:first-child { padding: 8rem 1.5rem 3rem; }
  .hero-visual { aspect-ratio: 16/10; height: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    background: var(--bg);
    padding: 2.5rem 1.5rem;
    gap: 1.2rem;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: .6rem 0; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; padding-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 5rem 0; }
  .cta-section { padding: 3rem 1.5rem; margin: 3rem 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
