/* CHANTIERHUB THEME CSS */
:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ef;
  --fg: #0f0f12;
  --fg-muted: #6b6b78;
  --fg-subtle: #a8a8b3;
  --accent: #f97316;
  --accent-dark: #c2590b;
  --accent-bg: #fff3eb;
  --steel: #1a1a2e;
  --steel-light: #2d2d4a;
  --border: #e4e3df;
  --white: #ffffff;
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--steel);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
  border-radius: 8px;
}

.logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* HERO */
.hero {
  padding: 80px 24px 60px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--steel);
}

.headline-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 440px;
}

/* BUDGET CARD */
.budget-card {
  background: var(--steel);
  border-radius: 16px;
  padding: 28px;
  color: var(--white);
  box-shadow: 0 20px 60px rgba(26,26,46,0.25);
}

.budget-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.budget-row {
  display: grid;
  grid-template-columns: 160px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.budget-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-dot.mat { background: #60a5fa; }
.cat-dot.mo { background: #34d399; }
.cat-dot.st { background: #fbbf24; }

.budget-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}

.budget-bar {
  height: 100%;
  background: #60a5fa;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.budget-bar.mo-bar { background: #34d399; }
.budget-bar.st-bar { background: #fbbf24; }

.budget-pct {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: right;
}

.budget-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 6px;
}

.budget-total span, .budget-spent span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.budget-total strong, .budget-spent strong {
  font-size: 16px;
  font-weight: 700;
}

.spent-value { color: #fbbf24; }

.alert-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(249,115,22,0.18);
  border: 1px solid rgba(249,115,22,0.35);
  color: #fca665;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  margin-top: 16px;
}

.hero-context-label {
  text-align: right;
  font-size: 12px;
  color: var(--fg-subtle);
  margin-top: 12px;
  font-weight: 500;
}

/* STATS BAR */
.stats-bar {
  background: var(--steel);
  padding: 28px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  padding: 0 32px;
  text-align: center;
}

.stat-item:first-child { padding-left: 0; }

.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* MODULES SECTION */
.modules-section {
  padding: 80px 24px;
  background: var(--bg);
}

.modules-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--steel);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.modules-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 14px 14px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.module-card:hover::before { transform: scaleX(1); }

.module-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.module-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-subtle);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.module-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 10px;
  line-height: 1.3;
}

.module-card p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-features li {
  font-size: 12px;
  color: var(--fg-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.module-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 1px;
}

/* PREVIEW SECTION */
.preview-section {
  padding: 80px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.preview-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--steel);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.preview-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.preview-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}

.feat-icon {
  width: 28px;
  height: 28px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

/* DASHBOARD MOCKUP */
.dashboard-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--steel);
}

.mockup-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.mockup-date {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.chantier-list {
  padding: 12px;
}

.chantier-item {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.chantier-item.alert {
  background: var(--amber-bg);
  border-color: rgba(245,158,11,0.3);
}

.chantier-item:last-child { margin-bottom: 0; }

.chantier-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 2px;
}

.chantier-meta {
  font-size: 11px;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}

.chantier-avance {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.avance-bar {
  height: 4px;
  background: var(--accent);
  border-radius: 3px;
  flex: 1;
}

.chantier-avance span {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-muted);
  min-width: 32px;
}

.chantier-status {
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
}

.status-encours { background: var(--green-bg); color: #15803d; }
.status-livre { background: #f0f0ff; color: #4338ca; }
.status-etude { background: var(--bg-alt); color: var(--fg-muted); }
.status-alert { background: var(--amber-bg); color: #92400e; }

/* SEPARATEURS SECTION */
.separateurs-section {
  padding: 80px 24px;
  background: var(--steel);
}

.sep-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sep-header {
  text-align: center;
  margin-bottom: 48px;
}

.sep-header .section-tag { color: var(--accent); }

.sep-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.15;
}

.sep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sep-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px;
}

.sep-icon {
  width: 48px;
  height: 48px;
  background: rgba(249,115,22,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.sep-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.sep-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* CLOSING SECTION */
.closing-section {
  padding: 100px 24px;
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--steel);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.closing-meta {
  font-size: 13px;
  color: var(--fg-subtle);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* FOOTER */
.footer {
  background: var(--steel);
  padding: 48px 24px 32px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

.footer-col > div {
  font-size: 13px;
  line-height: 2;
  color: rgba(255,255,255,0.45);
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .preview-inner { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: 20px; }
  .stat-sep { width: 40px; height: 1px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .sep-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 40px; }
  .budget-row { grid-template-columns: 120px 1fr 36px; }
}