/* ============================================
   Des Racines aux Cimes - Élagueur en Vendée
   Design: Vertical growth, sky blues, light greens
   Fresh, airy, professional arborist feel
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #2c3e2d;
  background: #f8faf7;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2a7d4f; text-decoration: none; transition: color 0.3s; }
a:hover { color: #1a5c38; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1b3a2a;
  line-height: 1.3;
}

/* === VERTICAL GROWTH ACCENT LINE === */
.vertical-accent {
  position: relative;
  padding-left: 24px;
}
.vertical-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to top, #5a3d2b, #2a7d4f, #7ec8a0, #b4e4cc);
  border-radius: 2px;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 58, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 20px;
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: #d4e8dc;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #7ec8a0;
}
.nav-cta {
  background: linear-gradient(135deg, #2a7d4f, #3a9d6a);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 125, 79, 0.4);
  color: #fff !important;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #d4e8dc;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 35, 22, 0.85) 0%,
    rgba(15, 35, 22, 0.80) 50%,
    rgba(27, 58, 42, 0.85) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 100px 20px 60px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero .hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #b4e4cc;
  margin-bottom: 24px;
  font-style: italic;
}
.hero p {
  font-size: 1.1rem;
  color: #d4e8dc;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #2a7d4f, #3a9d6a);
  color: #fff;
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(42, 125, 79, 0.4);
  color: #fff;
}

/* === VERTICAL GROWTH DECORATIVE ELEMENT === */
.growth-line {
  width: 3px;
  height: 80px;
  background: linear-gradient(to top, #5a3d2b, #2a7d4f, #7ec8a0);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}
.growth-line::after {
  content: '🌿';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
}

/* === SECTIONS === */
.section {
  padding: 80px 20px;
}
.section-alt {
  background: #eef5f0;
}
.section-dark {
  background: #1b3a2a;
  color: #d4e8dc;
}
.section-dark h2,
.section-dark h3 {
  color: #b4e4cc;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: #5a7d65;
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right, #2a7d4f, #7ec8a0) 1;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.service-card p {
  color: #5a7d65;
  font-size: 0.95rem;
}

/* === IMAGE SECTIONS === */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}
.split-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  aspect-ratio: 4/3;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.split-text p {
  margin-bottom: 16px;
  color: #3d5e45;
}

/* === BANNER CTA === */
.banner-cta {
  position: relative;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}
.banner-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 22, 0.85);
}
.banner-cta .container {
  position: relative;
  z-index: 2;
}
.banner-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.banner-cta p {
  color: #b4e4cc;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === BLOG GRID === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 24px;
}
.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.blog-card-body p {
  color: #5a7d65;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.blog-card-body .read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* === CONTACT FORM === */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.contact-info p {
  margin-bottom: 16px;
  color: #3d5e45;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.contact-detail .icon {
  font-size: 1.3rem;
}

/* === FOOTER === */
.footer {
  background: #0f2316;
  color: #8aad96;
  padding: 60px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer h4 {
  color: #b4e4cc;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer a {
  color: #8aad96;
  transition: color 0.3s;
}
.footer a:hover {
  color: #7ec8a0;
}
.footer ul li {
  margin-bottom: 8px;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(126, 200, 160, 0.15);
  font-size: 0.9rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* === BLOG ARTICLE PAGE === */
.article-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 35, 22, 0.90), rgba(15, 35, 22, 0.40));
}
.article-hero .container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}
.article-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  max-width: 800px;
}
.article-meta {
  color: #b4e4cc;
  margin-top: 10px;
  font-size: 0.95rem;
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}
.article-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}
.article-content p {
  margin-bottom: 18px;
  color: #3d5e45;
}
.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 8px;
  color: #3d5e45;
}
.article-content blockquote {
  border-left: 4px solid #2a7d4f;
  padding: 16px 24px;
  margin: 24px 0;
  background: #eef5f0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2c3e2d;
}
.article-image {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.article-image img {
  width: 100%;
  display: block;
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 90px 20px 10px;
  font-size: 0.9rem;
  color: #8aad96;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb a {
  color: #2a7d4f;
}

/* === 404 PAGE === */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.page-404 h1 {
  font-size: 6rem;
  color: #2a7d4f;
}
.page-404 p {
  font-size: 1.2rem;
  margin: 20px 0;
}

/* === PLAN DU SITE === */
.sitemap-list {
  max-width: 700px;
  margin: 0 auto;
}
.sitemap-list h3 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2a7d4f;
}
.sitemap-list ul {
  list-style: disc;
  padding-left: 24px;
}
.sitemap-list li {
  margin-bottom: 8px;
}

/* === FADE-IN ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === THEMATIC PAGE HERO (shorter) === */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 22, 0.82);
}
.page-hero .hero-content {
  padding: 100px 20px 50px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .split-section.reverse {
    direction: ltr;
  }
  .contact-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #0f2316;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 40px;
    gap: 20px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.active {
    right: 0;
  }
  .burger {
    display: flex;
  }
  .hero {
    background-attachment: scroll;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 20px;
  }
}

/* === FEATURES LIST (for thematic pages) === */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.feature-item .icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.9rem;
  color: #5a7d65;
}

/* === STATS === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
  padding: 40px 0;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: #2a7d4f;
  margin-bottom: 8px;
}
.stat-item p {
  font-size: 0.95rem;
  color: #5a7d65;
}
.section-dark .stat-item h3 {
  color: #7ec8a0;
}
.section-dark .stat-item p {
  color: #b4e8cc;
}

/* === PROCESS STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  counter-reset: step;
}
.step-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2a7d4f, #3a9d6a);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step-card h4 {
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.9rem;
  color: #5a7d65;
}
