/* ==========================================
   AgrementHub — Custom Landing Page Styles
   ========================================== */

/* --- Variables --- */
:root {
  --forest: #2D5016;
  --forest-dark: #1E3510;
  --forest-light: #4A7A2A;
  --cream: #F8F4EF;
  --cream-dark: #EDE7DE;
  --amber: #C8893F;
  --amber-light: #E5B869;
  --amber-dark: #A06930;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --text-light: #9A9A9A;
  --white: #FFFFFF;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}

/* --- Wordmark --- */
.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wordmark strong {
  color: var(--forest);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 80, 22, 0.08);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.125rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: var(--forest);
}

/* --- Section Labels --- */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* --- Hero --- */
.hero {
  padding: 5rem 2rem 0;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 720px;
}

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

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(45, 80, 22, 0.1);
  padding: 0.35rem 0.875rem;
  border-radius: 2rem;
}

.hero-headline {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-headline em {
  font-style: italic;
  color: var(--forest);
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 3.5rem;
}

/* --- Hero Stats --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(45, 80, 22, 0.15);
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
}

.stat {
  padding: 0 2rem 0 0;
  border-right: 1px solid rgba(45, 80, 22, 0.12);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Features --- */
.features {
  background: var(--white);
  padding: 5rem 2rem;
}

.features-header {
  max-width: 1160px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text);
}

.features-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(45, 80, 22, 0.08);
  border: 1.5px solid rgba(45, 80, 22, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}

.feature-card {
  background: var(--white);
  padding: 2.25rem 2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 80, 22, 0.08);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Processus --- */
.processus {
  padding: 5rem 2rem;
  background: var(--cream);
}

.processus-header {
  max-width: 1160px;
  margin: 0 auto 3.5rem;
}

.steps {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(45, 80, 22, 0.15);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.625rem;
  font-family: 'DM Sans', sans-serif;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Recapitulatif --- */
.recapitulatif {
  background: var(--forest-dark);
  padding: 5rem 2rem;
}

.recapitulatif-inner {
  max-width: 800px;
  margin: 0 auto;
}

.recapitulatif-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.recapitulatif-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.doc-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* --- Vision --- */
.vision {
  padding: 5rem 2rem;
  background: var(--cream);
}

.vision-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.vision-number {
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(45, 80, 22, 0.12);
  line-height: 1;
}

.vision-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.vision-text.vision-accent {
  color: var(--forest);
  font-weight: 600;
  font-size: 1.125rem;
}

/* --- Closing --- */
.closing {
  background: var(--forest);
  padding: 5rem 2rem;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.closing-body {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.75;
}

/* --- Footer --- */
.site-footer {
  background: var(--cream-dark);
  border-top: 1px solid rgba(45, 80, 22, 0.08);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .wordmark {
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--forest);
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid rgba(45, 80, 22, 0.08);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(45, 80, 22, 0.12);
    padding: 0 0 1.5rem;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .vision-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vision-number {
    font-size: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .doc-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding: 3rem 1.5rem 0;
  }

  .features,
  .processus,
  .vision,
  .closing {
    padding: 3.5rem 1.5rem;
  }

  .recapitulatif {
    padding: 3.5rem 1.5rem;
  }
}