:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #dbe5d9;
  --text: #123128;
  --muted: #3f5f52;
  --line: #c8d5cd;
  --brand: #0f3d2e;
  --brand-strong: #1e5a46;
  --accent: #7ba68d;
  --shadow: 0 14px 35px rgba(15, 61, 46, 0.12);
  --radius: 16px;
  --container: 1160px;
}

.card-icon {
  font-size: 1.65rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f5d46;
  margin-bottom: 0.55rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  background: radial-gradient(1200px 600px at 100% -100%, #fefefe 0%, transparent 60%),
    radial-gradient(900px 500px at -20% 10%, #eef4ee 0%, transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-align: justify;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: #1e5a46;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  padding: 88px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
  border-top: 1px solid rgba(214, 220, 216, 0.55);
  border-bottom: 1px solid rgba(214, 220, 216, 0.55);
}

.section-head {
  margin-bottom: 2.4rem;
}

.section-head p {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2f6e56;
}

.section-head h2 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0f3d2e;
  margin: 0.2rem 0 1rem;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f3d2e, #7ba68d);
}

.mt-24 {
  margin-top: 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: #fefefe;
  border-bottom: 1px solid rgba(200, 213, 205, 0.85);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #23313a;
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 84px;
  background: linear-gradient(120deg, #0f3d2e 0%, #1e5a46 55%, #0f3d2e 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 420px 0 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.hero-full-banner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-full-banner-image {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  padding: 0.1rem 0;
}

.hero-main {
  display: grid;
  gap: 1.25rem;
}

.hero-details {
  max-width: 860px;
  margin-inline: auto;
  padding-top: 2.1rem;
  border-top: 1px solid rgba(196, 219, 205, 0.34);
}

.hero-content p {
  color: #d7e9dc;
  text-align: justify;
  text-justify: inter-word;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.societe-commitments .mini-card p {
  text-align: left;
}

.offers-grid .offer-card {
  background: rgba(232, 243, 235, 0.95);
  border-color: #c2dacb;
}

#prestations .offer-card {
  background: #f9fcf9;
  border-color: var(--line);
}

.hero-actions .btn {
  width: 220px;
  max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(232, 243, 235, 0.95);
  border-color: #c2dacb;
  color: #164936;
}

.btn.full {
  width: 100%;
}

/* Cards */
.cards-3,
.cards-4,
.offers-grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 2;
}

.hero .cards-3 .card {
  background: rgba(232, 243, 235, 0.95);
  border-color: #c2dacb;
}

.hero .cards-3 .card-icon {
  display: flex;
  margin: 0 auto 0.55rem;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.mini-card,
.offer-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.mini-card,
.offer-card {
  padding: 1.05rem 1.05rem 0.95rem;
}

.card h3,
.mini-card h4,
.offer-card h3,
.method-list-redesign h3 {
  text-align: center;
}

.offer-card p,
.card p,
.mini-card p {
  margin-bottom: 0;
}

/* Section layouts */
.two-cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.societe-intro-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.societe-intro-copy p {
  margin: 0;
}

.societe-intro-copy p + p {
  margin-top: 0.9rem;
}

.societe-main-text {
  max-width: 860px;
  margin-inline: auto;
}

.societe-intro-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}

.societe-intro-layout .societe-main-text {
  max-width: none;
  margin: 0;
}

.societe-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 0.6rem;
}

.societe-linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 160px;
  color: #0f3d2e;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.societe-linkedin-link:hover {
  color: #1e5a46;
  border-bottom-color: #1e5a46;
}

.societe-linkedin-link i {
  font-size: 0.95rem;
}

.societe-photo {
  width: 100%;
  max-width: 160px;
  border-radius: 14px;
  border: 1px solid #c8d5cd;
  box-shadow: 0 10px 22px rgba(15, 61, 46, 0.14);
}

.societe-blocks-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.societe-positioning {
  background: #f9fcf9;
  align-self: start;
}

.societe-positioning ul,
.societe-principles ul {
  list-style: none;
  padding-left: 0;
}

.societe-principles {
  background: #f9fcf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  height: 100%;
}

.societe-principles h3 {
  margin: 0 0 0.75rem;
}

.societe-principles ul {
  margin: 0;
}

.societe-principles li {
  margin-bottom: 0.58rem;
}

.societe-commitments .mini-card {
  background: #f9fcf9;
  text-align: left;
}

.societe-commitments .card-icon {
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  margin: 0 auto 0.45rem;
  color: #1f5d46;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  padding: 1.2rem;
}

.principles ul li,
.panel ul li {
  margin-bottom: 0.58rem;
}

.offers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prestations-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prestations-grid .offer-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 0.5rem);
}

#prestations .offer-card .card-icon {
  display: flex;
  margin: 0 auto 0.55rem;
}

#clients .mini-card {
  background: #f9fcf9;
}

/* Method */
.section-method {
  background: #0f3d2e;
  border-top: 1px solid rgba(176, 205, 189, 0.35);
  border-bottom: 1px solid rgba(176, 205, 189, 0.3);
}

.method-head .eyebrow {
  color: #c7dfd2;
}

.method-head h2 {
  color: #eef7f2;
  text-align: left;
  text-wrap: balance;
}

.method-head h2::after {
  background: linear-gradient(90deg, #bdd7c8, #7ba68d);
}

.method-list-redesign {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.section-method .method-list-redesign li {
  display: grid;
  grid-template-rows: auto minmax(1.25rem, auto) 1fr;
  gap: 0.55rem;
  background: rgba(232, 243, 235, 0.95);
  border: 1px solid rgba(188, 214, 199, 0.8);
  border-radius: 14px;
  padding: 1rem 0.95rem 0.95rem;
  box-shadow: 0 12px 26px rgba(6, 24, 18, 0.2);
  align-content: start;
}

.method-step {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  background: #0f3d2e;
  color: #eef7f2;
  font-weight: 800;
  font-size: 0.9rem;
}

.method-list-redesign h3 {
  margin: 0;
  color: #123b2d;
  font-size: 1.02rem;
  line-height: 1.2;
}

.method-list-redesign p {
  margin: 0;
  color: #25493c;
  font-size: 0.92rem;
  text-align: left;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.method-list li {
  display: grid;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.method-list:not(.method-list-redesign) span {
  font-weight: 800;
  color: #0f3d2e;
}

/* Contact */
.section-contact {
  background: #0f3d2e;
  border-top: 1px solid rgba(176, 205, 189, 0.35);
  border-bottom: 1px solid rgba(176, 205, 189, 0.3);
}

.section-contact .eyebrow {
  color: #c7dfd2;
}

.section-contact h2,
.section-contact .section-head p {
  color: #eef7f2;
}

.section-contact .section-head h2::after {
  background: linear-gradient(90deg, #bdd7c8, #7ba68d);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-form {
  background: rgba(232, 243, 235, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

#contact .panel {
  background: rgba(232, 243, 235, 0.95);
}

.contact-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-meta-item i {
  color: #0f3d2e;
  font-size: 0.95rem;
}

#contact .contact-meta a {
  color: #0f3d2e;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #223640;
}

input,
textarea {
  border: 1px solid #cfd8d5;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: #17242c;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid #c1d8da;
  border-color: #87adb1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.84rem;
  color: #5d6c78;
}

.form-success {
  grid-column: 1 / -1;
  margin: 0;
  color: #0b5f41;
  font-weight: 700;
  min-height: 1.2em;
}

/* Legal page */
.legal-page {
  text-align: left;
}

.legal-main {
  padding-top: 132px;
}

.legal-content {
  max-width: 980px;
}

.legal-content .section-head {
  max-width: none;
}

.legal-content h1 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0f3d2e;
  margin: 0.2rem 0 1rem;
  position: relative;
}

.legal-content h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f3d2e, #7ba68d);
}

.legal-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem;
}

.legal-panel h2 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.legal-panel h2:first-of-type {
  margin-top: 0;
}

.legal-list {
  padding-left: 1.1rem;
}

.legal-list li {
  margin-bottom: 0.42rem;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.58rem 0.7rem;
  border-bottom: 1px solid rgba(200, 213, 205, 0.9);
  vertical-align: top;
}

.legal-table th {
  width: 34%;
  color: #1a4f3c;
  font-weight: 700;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: 14px;
  background: #fefefe;
  color: #0f3d2e;
  padding-top: 42px;
}

.footer-logo {
  height: auto;
  width: min(350px, 100%);
  margin-bottom: 0.9rem;
  display: block;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand h3 {
  margin: 0 0 0.35rem;
}

.footer-brand p {
  margin: 0;
  max-width: 520px;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
}

.site-footer p,
.site-footer h3,
.site-footer a {
  color: inherit;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.92;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  margin: 0;
  padding: 1rem 0 1.2rem;
  text-align: center;
  border-top: 1px solid rgba(223, 231, 234, 0.3);
  font-size: 0.88rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .societe-intro-grid {
    grid-template-columns: 1fr;
  }

  .societe-blocks-row {
    grid-template-columns: 1fr;
  }

  .societe-intro-layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prestations-grid {
    grid-template-columns: 1fr;
  }

  .prestations-grid .offer-card:last-child {
    width: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .method-list-redesign {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    text-align: left;
    overflow-x: hidden;
  }

  .section,
  .section-soft {
    padding: 70px 0;
  }

  .nav {
    min-height: 70px;
  }

  .brand img {
    height: 52px;
  }

  .cards-3,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .societe-intro-layout {
    grid-template-columns: 1fr;
  }

  .societe-photo-wrap {
    justify-content: center;
    align-items: center;
  }

  .societe-photo {
    max-width: 190px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 0.75rem;
    left: 0.75rem;
    display: grid;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.75rem;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    max-height: calc(100vh - 110px);
    overflow: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links a {
    display: block;
    padding: 0.45rem 0.2rem;
  }

  .hero-content {
    padding: 0.2rem 0;
  }

  .hero-content p {
    text-align: left;
  }

  .hero-main {
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-details {
    max-width: none;
    padding-top: 0.9rem;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.15rem);
    line-height: 1.15;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .method-list-redesign {
    grid-template-columns: 1fr;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .legal-page .site-header {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .legal-main {
    padding-top: 110px;
  }

  .contact-meta-item {
    align-items: flex-start;
  }

  .contact-meta-item a,
  .contact-meta-item span {
    overflow-wrap: anywhere;
  }

  .legal-table th,
  .legal-table td {
    font-size: 0.9rem;
    padding: 0.5rem 0.58rem;
  }

  .legal-table th {
    width: 46%;
  }

  .footer-logo {
    width: min(280px, 100%);
  }

  .brand img {
    height: 48px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero-backdrop {
    inset: 180px 0 0;
  }

  .cards-4,
  .offers-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }
}