:root {
  --green: #1f4b38;
  --green-dark: #123426;
  --beige: #d7c3a3;
  --light: #f6f4ef;
  --text: #1f1f1f;
  --muted: #666;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 1px;
}

.brand-text strong {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.brand-text small {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 5px;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.nav a:hover {
  color: var(--green);
}

.menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 28px;
}

.hero {
  min-height: 100vh;
  padding: 130px 7% 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.tagline {
  color: var(--green);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.hero h1 span {
  display: block;
  color: #8a9b82;
  font-style: italic;
  font-weight: 400;
  font-size: 0.85em;
}

.intro {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn.primary {
  background: var(--green);
  color: white;
}

.btn.primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn.secondary:hover {
  background: var(--green);
  color: white;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  display: block;
  border-radius: 24px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.12));
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e4e0d8;
}

.trust div {
  background: var(--light);
  padding: 32px 7%;
  text-align: center;
}

.trust strong {
  display: block;
  color: var(--green-dark);
  font-size: 20px;
}

.trust span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 90px 7%;
}

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

.section-title {
  max-width: 760px;
  margin-bottom: 45px;
}

.section-title p {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title h2,
.about h2,
.quote h2 {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--green-dark);
  line-height: 1.15;
}

.quote h2 {
  font-size: clamp(22px, 2vw, 32px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  padding: 32px;
  background: white;
  border: 1px solid #eee;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

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

.card p {
  color: var(--muted);
}

.about {
  padding: 90px 7%;
  background: var(--green-dark);
  color: white;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.about h2 {
  color: white;
  margin-bottom: 22px;
}

.about p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.about-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 35px;
  border-radius: 24px;
}

.about-box li {
  margin-bottom: 14px;
}

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

.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .06);
}

.project-card>img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  color: var(--green-dark);
  font-size: 24px;
  margin: 22px 22px 8px;
}

.project-card p {
  color: var(--muted);
  margin: 0 22px 18px;
}

.project-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.project-thumbs img {
  width: 64px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
  cursor: pointer;
  opacity: .75;
  transition: .2s;
}

.project-thumbs img:hover {
  opacity: 1;
  transform: scale(1.04);
}

.quote {
  padding: 90px 7%;
  text-align: center;
  background: var(--beige);
}

.quote p {
  margin: 18px auto 28px;
  max-width: 620px;
}

.form {
  max-width: 760px;
  display: grid;
  gap: 16px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 16px;
}

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

.form button {
  border: none;
  cursor: pointer;
  width: fit-content;
}

.footer {
  padding: 45px 7%;
  background: #111;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
  align-items: start;
}

.footer p {
  color: #bbb;
}

.footer-bottom {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .brand {
    min-width: auto;
    gap: 10px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .nav {
    position: absolute;
    top: 76px;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 25px 7%;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .trust,
  .cards,
  .projects,
  .about {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PAGE CALCULATEURS
========================= */

.calc-page {
  padding-top: 110px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f7f2 0%, #ffffff 42%);
}

.calc-hero {
  padding: 45px 7% 20px;
}

.calc-hero .tagline {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.calc-intro {
  max-width: 900px;
  font-size: 22px;
  line-height: 1.65;
  color: #51605a;
  font-weight: 300;
  margin-top: 12px;
  margin-bottom: 22px;
}

.calc-disclaimer {
  max-width: 900px;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(13, 71, 48, 0.05);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* Boutons déroulants calculateurs */

.calc-dropdowns {
  max-width: 1250px;
  margin: 35px auto 90px;
  padding: 0 7%;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 55px;
  align-items: start;
  min-height: 560px;
}

.calc-dropdown {
  position: relative;
}

.calc-dropdown button {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  transition: .25s ease;
}

.calc-dropdown button:hover,
.calc-dropdown:focus-within button {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.calc-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 100%);
  max-height: 430px;
  overflow-y: auto;
  padding: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
  z-index: 900;
}

.calc-dropdown:hover .calc-dropdown-menu,
.calc-dropdown:focus-within .calc-dropdown-menu {
  display: block;
}

.calc-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 15px;
  transition: .2s ease;
}

.calc-dropdown-menu a:hover {
  background: var(--light);
  color: var(--green);
}

/* Icônes sociales header */

.social-links {
  position: absolute;
  left: 30%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.facebook-link,
.google-link {
  display: flex;
  align-items: center;
}

.facebook-link img,
.google-link img {
  width: 20px;
  height: 20px;
  display: block;
  transition: .2s ease;
}

.facebook-link img:hover,
.google-link img:hover {
  transform: scale(1.1);
}

@media (max-width: 1000px) {
  .calc-dropdowns {
    gap: 25px;
  }

  .calc-dropdown button {
    font-size: 17px;
    padding: 16px 18px;
  }
}

@media (max-width: 800px) {
  .calc-dropdowns {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 25px;
  }

  .calc-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    max-height: none;
    margin-top: 10px;
  }
}


/* =========================
   PAGE CONTACT
========================= */

.contact-page {
  padding: 130px 7% 80px;
  background: linear-gradient(180deg, #f8f7f2, #ffffff);
}

.contact-hero {
  max-width: 900px;
  margin-bottom: 55px;
}

.contact-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.05;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 22px;
}

.contact-hero p:not(.tagline) {
  font-size: 22px;
  line-height: 1.7;
  color: #5d6963;
  font-weight: 300;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-info-box,
.contact-form-box {
  background: white;
  border-radius: 26px;
  padding: 38px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-profile img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.contact-profile h2 {
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1.1;
}

.contact-profile p {
  color: var(--muted);
  margin-top: 6px;
}

.contact-info-list p {
  margin-bottom: 22px;
  color: #4d5753;
  font-size: 17px;
  line-height: 1.7;
}

.contact-info-list strong {
  color: var(--green-dark);
}

.contact-form-box h2 {
  color: var(--green-dark);
  font-size: 34px;
  margin-bottom: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-family: inherit;
  background: white;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  border: none;
  width: fit-content;
  cursor: pointer;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding-top: 110px;
  }
}

/* =========================
   PAGE BLOG
========================= */

.blog-page {
  padding-top: 110px;
  background: var(--white);
}

.blog-hero {
  padding: 80px 7% 55px;
  background: linear-gradient(180deg, #f8f7f2, #ffffff);
}

.blog-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.05;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.blog-hero p:not(.tagline) {
  max-width: 850px;
  font-size: 21px;
  line-height: 1.7;
  color: #5d6963;
  font-weight: 300;
}

.blog-grid {
  padding: 30px 7% 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
  transition: .25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .11);
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 26px;
}

.blog-card-content small {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-content h2 {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.25;
  margin: 12px 0;
}

.blog-card-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

.blog-link {
  color: var(--green);
  font-weight: 800;
}

.article-page {
  padding-top: 110px;
}

.article-hero {
  padding: 75px 7% 35px;
  background: linear-gradient(180deg, #f8f7f2, #ffffff);
}

.article-hero h1 {
  max-width: 950px;
  font-family: Georgia, serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.article-hero p {
  max-width: 850px;
  color: #5d6963;
  font-size: 20px;
  line-height: 1.7;
}

.article-cover {
  max-width: 550px;
  margin: 0 auto 40px;
  padding: 0;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 55px 7% 90px;
}

.article-content h2 {
  color: var(--green-dark);
  font-size: 32px;
  line-height: 1.25;
  margin: 38px 0 14px;
}

.article-content h3 {
  color: var(--green);
  font-size: 24px;
  margin: 28px 0 10px;
}

.article-content p,
.article-content li {
  color: #3f4844;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-back {
  display: inline-block;
  margin-top: 35px;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .blog-hero,
  .article-hero {
    padding-top: 60px;
  }

  .blog-card img {
    height: 210px;
  }

  .article-content h2 {
    font-size: 27px;
  }
}

.backlinks {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* =========================
   PAGE OUTILS
========================= */

.tools-page {
  padding-top: 110px;
  background: linear-gradient(180deg, #f8f7f2 0%, #ffffff 45%);
}

.tools-hero {
  padding: 70px 7% 35px;
}

.tools-hero h1 {
  max-width: 850px;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 22px;
}

.tools-hero p:not(.tagline) {
  max-width: 850px;
  font-size: 21px;
  line-height: 1.7;
  color: #5d6963;
  font-weight: 300;
}

.tools-grid {
  padding: 35px 7% 90px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tool-card {
  background: white;
  border-radius: 26px;
  padding: 38px;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
}

.tool-card h2 {
  color: var(--green-dark);
  font-size: 34px;
  margin-bottom: 16px;
}

.tool-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 28px;
}

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

/* =========================
   CONDITIONS / LEGAL
========================= */

.legal-page {
  padding-top: 120px;
  background: linear-gradient(180deg, #f8f7f2 0%, #ffffff 35%);
}

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 7% 100px;
}

.legal-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 42px;
}

.legal-content h2 {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.25;
  margin: 36px 0 14px;
}

.legal-content p,
.legal-content li {
  color: #3f4844;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #bbb;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

/* =========================
   PAGES LÉGALES
========================= */

.legal-page {
  padding-top: 120px;
  background: linear-gradient(180deg, #f8f7f2 0%, #ffffff 40%);
}

.legal-content {
  max-width: 1000px;
  margin: auto;
  padding: 60px 7% 100px;
}

.legal-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 40px;
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 25px;
}

.legal-content p,
.legal-content li {
  color: #3f4844;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 25px;
  margin-bottom: 22px;
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #bbb;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);

  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #bfc5c1;
  text-decoration: none;
  font-size: 14px;
  transition: .2s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* =========================
   CORRECTIONS MOBILE
========================= */

@media (max-width: 900px) {
  .header {
    padding: 0 18px;
  }

  .social-links {
    position: static;
    margin-left: auto;
    margin-right: 28px;
    gap: 14px;
    flex-shrink: 0;
  }

  .facebook-link img,
  .google-link img {
    width: 24px;
    height: 24px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 700px) {
  .contact-page {
    padding: 105px 18px 55px;
  }

  .contact-hero {
    margin-bottom: 35px;
  }

  .contact-hero h1 {
    font-size: 36px;
  }

  .contact-hero p:not(.tagline) {
    font-size: 18px;
    line-height: 1.55;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .contact-profile {
    gap: 14px;
  }

  .contact-profile img {
    width: 72px;
    height: 72px;
  }

  .contact-profile h2 {
    font-size: 23px;
  }

  .contact-form-box h2 {
    font-size: 26px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 13px 14px;
    font-size: 15px;
  }

  .contact-form textarea {
    min-height: 130px;
  }
}

@media (max-width: 700px) {
  .footer {
    grid-template-columns: 1fr;
    padding: 38px 26px;
    gap: 28px;
    overflow: hidden;
  }

  .footer p,
  .footer a {
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  .footer-bottom a {
    font-size: 15px;
  }
}