:root {
  --green: #6bbf59;
  --purple: #8a6fd1;
  --dark: #1f2330;
  --text: #2c3343;
  --light: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 15px 35px rgba(31, 35, 48, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9edf5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand span {
  color: var(--purple);
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid #d5dfef;
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0.45rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--purple));
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  padding: 5.2rem 0 4rem;
  background: linear-gradient(130deg, rgba(107, 191, 89, 0.12), rgba(138, 111, 209, 0.14));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2.4rem;
}

.kicker {
  color: var(--green);
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.hero-slogan {
  display: inline-block;
  margin: 0.1rem 0 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(107, 191, 89, 0.2), rgba(138, 111, 209, 0.2));
  color: #1f5f1b;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--dark);
}

h2 {
  color: var(--dark);
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.hero-content p {
  max-width: 62ch;
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-media img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 50px rgba(36, 71, 40, 0.35);
}

.section {
  padding: 4.3rem 0;
}

.section#produit {
  position: relative;
  overflow: hidden;
}

.section#produit::after {
  content: none;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(107, 191, 89, 0.18), transparent 55%),
    var(--light);
}

.cards,
.study-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.study-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.study-item {
  background: var(--white);
  border: 1px solid #e0f1e4;
  border-radius: 18px 34px 18px 26px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(31, 35, 48, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card h3,
.study-item h3 {
  margin-top: 0;
  color: var(--purple);
}

.quick-list {
  margin: 0;
  padding-left: 1.1rem;
}

.quick-list li {
  margin: 0.28rem 0;
}

.section-intro {
  max-width: 72ch;
}

h2 {
  position: relative;
  display: inline-block;
  padding-left: 1.9rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  width: 1.05rem;
  height: 1.7rem;
  border-radius: 70% 30% 70% 30%;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, rgba(255, 255, 255, 0) 55%),
    var(--green);
  opacity: 0.9;
}

.card::before,
.study-item::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    rgba(107, 191, 89, 0.28);
  border-radius: 60% 40% 70% 30%;
  opacity: 0.85;
}

.card:hover,
.study-item:hover {
  border-color: var(--green);
  box-shadow: 0 16px 35px rgba(50, 100, 60, 0.16);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-grid {
    gap: 1.6rem;
  }

  .hero-media img {
    height: 260px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-outline {
    text-align: center;
    width: 100%;
  }
}

.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  background: linear-gradient(90deg, var(--green), var(--purple));
  color: var(--white);
  font-weight: 600;
  border-radius: 999px 30px 999px 30px;
  padding: 0.8rem 1.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 20px rgba(106, 120, 180, 0.28);
  position: relative;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
  box-shadow: none;
}

.btn::after {
  content: "";
  position: absolute;
  right: 0.45rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0 100% 0 100%;
  transform: translateY(-50%) rotate(-18deg);
  background: rgba(255, 255, 255, 0.35);
}

.btn-outline::after {
  background: rgba(138, 111, 209, 0.2);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.cta-group {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-center {
  margin-top: 1.5rem;
}

.contact {
  padding-top: 3.8rem;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: none;
}

.contact-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.5;
}

.contact-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e9edf5;
  border-radius: 18px;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.lead-form {
  margin: 1.3rem auto 0;
  max-width: 540px;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.lead-form label {
  font-weight: 600;
  color: var(--dark);
}

.lead-form input,
.lead-form select {
  border: 1px solid #ced9ea;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.lead-form .btn {
  margin-top: 0.6rem;
  width: fit-content;
}

.legal-section p {
  margin: 0.45rem 0;
  max-width: 80ch;
}

.legal-section {
  display: none;
}

.site-footer {
  text-align: center;
  background: #0f1220;
  color: #d6daea;
  padding: 1rem 0;
}

.site-footer a {
  color: #b8efad;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8fd67e;
  outline-offset: 2px;
  border-radius: 10px;
}

@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .study-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 300px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 14px;
    padding: 0.8rem;
    min-width: 220px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }

  .nav-links.is-open {
    display: flex;
  }

  .btn-small {
    display: none;
  }
}

@media (max-width: 720px) {
  .lead-form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
