:root {
  --primary: #355e3b;
  --primary-light: #78a942;
  --secondary: #ffb74d;
  --accent: #e96b3c;
  --background: #f5f0e6;
  --surface: #ffffff;
  --text: #2d4a33;
  --text-light: #58705d;
  --nav-background: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 34px rgba(41, 70, 48, 0.16);
  --header-height: 72px;
}

body.dark-mode {
  --background: #172219;
  --surface: #263529;
  --text: #edf5ee;
  --text-light: #bdd2c0;
  --nav-background: rgba(23, 34, 25, 0.94);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Quicksand", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
}

body,
.site-header,
.form-section,
.form-group input,
.form-group select,
.form-group textarea {
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Fredoka", sans-serif;
  line-height: 1.15;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--text);
  background: var(--nav-background);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
}

.site-logo {
  color: var(--primary-light);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-weight: 700;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.menu-boutique {
  color: var(--primary-light);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(127, 127, 127, 0.16);
}

.menu-toggle {
  display: none;
}

.hero-slider {
  position: relative;
  height: min(88vh, 900px);
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #203624;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(13, 31, 18, 0.76), rgba(13, 31, 18, 0.25) 60%, rgba(13, 31, 18, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 45%);
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(24px, 8vw, 130px);
  max-width: 760px;
  transform: translateY(-42%);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.hero-content h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.hero-content p {
  margin: 0;
  max-width: 650px;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 600;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.hero-dot.active {
  background: #fff;
}

.content-section {
  padding: 90px 10%;
}

.section-title {
  margin-bottom: 3.5rem;
  color: var(--primary-light);
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.two-column-reverse {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.two-column p {
  margin: 0 0 1.25rem;
}

.content-image {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.form-section {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.evolution-section {
  background: var(--surface);
}

.evolution-text {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.evolution-text p {
  margin: 0 0 1.25rem;
}

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

.evolution-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--background);
  box-shadow: var(--shadow);
}

.evolution-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.evolution-photo figcaption {
  padding: 0.9rem 1rem;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.evolution-photo-current {
  max-width: 1200px;
  margin: 0 auto;
}

.evolution-photo-current img {
  height: 620px;
}

/* =========================================================
   SECTION — FORÊT NOURRICIÈRE
   Suit automatiquement le mode clair / sombre
   ========================================================= */

.forest-section {
  position: relative;
  padding: 95px 5%;
  overflow: hidden;

  color: var(--text);

  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(120, 169, 66, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(107, 79, 53, 0.08),
      transparent 26%
    ),
    var(--background);

  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.forest-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 1px;

  background: rgba(120, 169, 66, 0.2);
}

.forest-container {
  position: relative;
  z-index: 1;

  width: min(1200px, 100%);
  margin: 0 auto;
}

/* =========================================================
   TITRE ET INTRODUCTION
   ========================================================= */

.forest-heading {
  max-width: 820px;
  margin: 0 auto 48px;

  text-align: center;
}

.forest-kicker {
  display: inline-block;
  margin-bottom: 12px;

  color: var(--primary-light);

  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.forest-heading h2 {
  max-width: 760px;
  margin: 0 auto 20px;

  color: var(--text);

  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 650;
  line-height: 1.05;
  text-wrap: balance;

  transition: color 0.35s ease;
}

.forest-heading p {
  max-width: 740px;
  margin: 0 auto;

  color: var(--text-light);

  font-size: 1.06rem;
  line-height: 1.75;

  transition: color 0.35s ease;
}

.forest-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 24px;
  padding: 11px 20px;

  color: var(--text);
  background: var(--surface);

  border: 1px solid rgba(120, 169, 66, 0.2);
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 800;

  box-shadow: var(--shadow);

  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

/* =========================================================
   GRILLE
   ========================================================= */

.forest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* =========================================================
   CARTES
   ========================================================= */

.forest-card {
  position: relative;

  min-height: 285px;
  padding: 28px;
  overflow: hidden;

  color: var(--text);
  background: var(--surface);

  border: 1px solid rgba(120, 169, 66, 0.18);
  border-radius: 22px;

  box-shadow: var(--shadow);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

.forest-card::after {
  content: "";

  position: absolute;
  right: -46px;
  bottom: -46px;

  width: 145px;
  height: 145px;

  background: rgba(120, 169, 66, 0.11);
  border-radius: 50%;

  pointer-events: none;
}

.forest-card:hover {
  transform: translateY(-6px);

  border-color: rgba(120, 169, 66, 0.48);

  box-shadow:
    0 20px 44px rgba(53, 94, 59, 0.14),
    0 4px 10px rgba(53, 94, 59, 0.05);
}

/* =========================================================
   ICÔNES
   ========================================================= */

.forest-icon {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  margin-bottom: 13px;

  background: rgba(120, 169, 66, 0.14);

  border: 1px solid rgba(120, 169, 66, 0.2);
  border-radius: 16px;

  font-size: 1.8rem;
  line-height: 1;

  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.forest-icon-double {
  width: auto;
  min-width: 68px;
  padding: 0 10px;

  gap: 3px;
}

.forest-icon-double span {
  display: block;
  line-height: 1;
}

/* =========================================================
   TEXTE DES CARTES
   ========================================================= */

.forest-label {
  position: relative;
  z-index: 1;

  display: block;
  margin-bottom: 7px;

  color: var(--text-light);

  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;

  transition: color 0.35s ease;
}

.forest-card h3 {
  position: relative;
  z-index: 1;

  margin: 0 0 12px;

  color: var(--text);

  font-family: "Fredoka", sans-serif;
  font-size: 1.34rem;
  font-weight: 650;
  line-height: 1.23;
  text-wrap: balance;

  transition: color 0.35s ease;
}

.forest-card p {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--text-light);

  font-size: 0.96rem;
  line-height: 1.68;

  transition: color 0.35s ease;
}

/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 950px) {
  .forest-section {
    padding: 80px 5%;
  }

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

  .forest-card {
    min-height: 270px;
  }
}

/* =========================================================
   MOBILES
   ========================================================= */

@media (max-width: 620px) {
  .forest-section {
    padding: 68px 18px;
  }

  .forest-heading {
    margin-bottom: 36px;
  }

  .forest-heading h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .forest-heading p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .forest-total {
    width: 100%;
    padding: 12px 16px;

    border-radius: 16px;

    line-height: 1.45;
  }

  .forest-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .forest-card {
    min-height: auto;
    padding: 24px;
  }

  .forest-card:hover {
    transform: none;
  }

  .forest-card h3 {
    font-size: 1.27rem;
  }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 380px) {
  .forest-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .forest-card {
    padding: 21px;
  }

  .forest-icon {
    width: 50px;
    height: 50px;

    font-size: 1.65rem;
  }
}

/* =========================================================
   MODE SOMBRE — FORÊT NOURRICIÈRE
   ========================================================= */

body.dark-mode .forest-section {
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(120, 169, 66, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(120, 169, 66, 0.06),
      transparent 28%
    ),
    var(--background);
}

body.dark-mode .forest-card {
  background: var(--surface);
  border-color: rgba(120, 169, 66, 0.22);
}

body.dark-mode .forest-total {
  background: var(--surface);
  border-color: rgba(120, 169, 66, 0.25);
}

body.dark-mode .forest-icon {
  background: rgba(120, 169, 66, 0.18);
  border-color: rgba(120, 169, 66, 0.28);
}

body.dark-mode .forest-card::after {
  background: rgba(120, 169, 66, 0.08);
}

body.dark-mode .forest-card:hover {
  border-color: rgba(120, 169, 66, 0.55);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.future-section {
  background: var(--background);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.future-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.future-photo img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.future-photo figcaption {
  padding: 1rem;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.future-text {
  max-width: 900px;
  margin: 0 auto;
}

.future-text p {
  margin: 0 0 1.25rem;
}

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

  .future-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

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

  .evolution-photo img,
  .evolution-photo-current img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.contact-form {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.form-group {
  width: 100%;
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 0.85rem 1rem;

  border: 2px solid transparent;
  border-radius: 12px;

  color: var(--text);
  background: var(--background);

  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.form-group textarea {
  min-height: 170px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  opacity: 0.85;
}

.submit-btn {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  color: #fff;
  background: var(--primary-light);
  font-weight: 700;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--accent);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

footer {
  padding: 3.5rem 10% 2rem;
  color: #e7efea;
  background: #253127;
  text-align: center;
}

.footer-content {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-column h2 {
  margin-bottom: 0.75rem;
  color: var(--secondary);
  font-size: 1.2rem;
}

.social-icons a {
  font-size: 1.6rem;
}

#toast {
  position: fixed;
  z-index: 1100;
  bottom: 28px;
  left: 50%;
  max-width: min(90vw, 520px);
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-light);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(78vw, 340px);
    height: calc(100vh - var(--header-height));
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    background: var(--nav-background);
    box-shadow: -8px 12px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 0.35s ease;
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }

  .hero-slider {
    height: 82vh;
    min-height: 580px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(13, 31, 18, 0.72), rgba(13, 31, 18, 0.18));
  }

  .hero-content {
    right: 24px;
    bottom: 76px;
    left: 24px;
    top: auto;
    max-width: none;
    transform: none;
    text-align: center;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .two-column,
  .two-column-reverse {
    grid-template-columns: 1fr;
  }

  .two-column-reverse img {
    order: 2;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 0 4%;
  }

  .site-logo {
    max-width: 210px;
  }

  .content-section {
    padding: 72px 6%;
  }

  .hero-arrow {
    top: auto;
    bottom: 17px;
    transform: none;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .hero-dots {
    bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  padding: 0;

  color: #ffffff;
  background: #355e3b;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;

  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #27482d;
}

@media (max-width: 768px) {
  .back-to-top {
    display: flex;
  }
}