:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #1f2f27;
  --muted: #5f6c65;
  --accent: #2f6b45;
  --accent-2: #d9cbb2;
  --pill: #e7f2e9;
  --radius: 16px;
  --shadow: 0 15px 40px rgba(23, 47, 33, 0.12);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

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

/* Animations au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.card.fade-in {
  transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(246, 244, 239, 0.63);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 107, 69, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3f7a55, #1f2f27);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.brand-name {
  font-weight: 700;
  color: var(--ink);
}

.brand-tag {
  color: var(--ink);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(47, 107, 69, 0.08);
}

.nav .cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(47, 107, 69, 0.18);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 5vw 60px;
  color: #fff;
  background: linear-gradient(120deg, rgba(19, 43, 31, 0.582), rgba(47, 107, 69, 0.589)),
    url('banniere.png') center/cover no-repeat;
}

.hero-content {
  max-width: 760px;
}

.hero .eyebrow {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  color: inherit;
}

h1 {
  font-size: clamp(42px, 6vw, 64px);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 10px;
}

h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 107, 69, 0.24);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.full {
  width: 100%;
}

.section {
  padding: 96px 5vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading.center {
  text-align: center;
  margin: 0 auto 40px;
}

.section-heading .lede {
  color: var(--muted);
}

.story {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.story-text {
  padding: 12px 4px;
}

.pillars {
  list-style: none;
  display: grid;
  gap: 16px;
}

.pillars li {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 10px 28px rgba(31, 47, 39, 0.06);
  border: 1px solid rgba(47, 107, 69, 0.08);
}

.pillars span {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillars small {
  color: var(--muted);
}

.story-media {
  display: grid;
  place-items: center;
}

.photo-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 107, 69, 0.12);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects {
  background: radial-gradient(circle at 20% 20%, rgba(47, 107, 69, 0.05), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(47, 107, 69, 0.05), transparent 35%);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px auto 36px;
}

.filter {
  border: 1px solid rgba(47, 107, 69, 0.18);
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(47, 107, 69, 0.2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}

.card {
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(31, 47, 39, 0.08);
  border: 1px solid rgba(47, 107, 69, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 18px 20px;
  text-align: center;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.card p {
  display: none;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-wrapper {
  max-width: 900px;
  width: 100%;
  margin-bottom: 32px;
}

.contact-wrapper .lede {
  color: var(--muted);
}

.infos {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.infos li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  min-width: 200px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pill);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.contact-form {
  background: var(--panel);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(31, 47, 39, 0.1);
  border: 1px solid rgba(47, 107, 69, 0.08);
  max-width: 900px;
  width: 100%;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label span {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--ink);
}

input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47, 107, 69, 0.18);
  background: #fff;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 69, 0.12);
}

label.full {
  grid-column: 1 / -1;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.footer {
  padding: 28px 5vw 36px;
  background: #0f1b16;
  color: #dfe7e2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
  gap: 12px;
}

.footer .brand-mark {
  background: radial-gradient(circle at 30% 30%, #4f8b63, #1f2f27);
}

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

.footer a {
  color: #dfe7e2;
  font-weight: 600;
}

.valeurs {
  background: linear-gradient(135deg, rgba(47, 107, 69, 0.04), rgba(217, 203, 178, 0.08));
}

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.valeur-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(31, 47, 39, 0.08);
  border: 1px solid rgba(47, 107, 69, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valeur-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.valeur-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.valeur-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.valeur-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 4vw;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--panel);
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 15;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav a {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: left;
  }
  
  .nav .cta {
    margin-top: 10px;
    text-align: center;
  }
  
  .hero {
    padding: 60px 4vw;
  }
  .hero-actions {
    flex-direction: column;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
