:root {
  --bg: #efebeb;
  --surface: #ffffff;
  --text: #142836;
  --muted: #48606d;
  --green: #5a9850;
  --green-dark: #447d3f;
  --line: rgba(255, 255, 255, 0.45);
  --shadow: 0 18px 45px rgba(20, 40, 54, 0.08);
  --radius: 28px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.container,
.container-left,
.container-right {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(239, 235, 235, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 40, 54, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

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

.brand-logo {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 42px;
  height: 42px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 7px 0;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 76px);
  max-width: var(--container);
  margin: 0 auto;
}

.hero-panel {
  display: flex;
  align-items: center;
  min-height: 680px;
}

.hero-panel--light {
  background: var(--bg);
}

.hero-panel--green {
  background: var(--green);
  color: white;
}

.hero-copy {
  padding: 5rem 0;
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.hero-copy h1,
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 620px;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  line-height: 1.45;
}

.search-card {
  margin-top: 3rem;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 40, 54, 0.14);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  box-shadow: var(--shadow);
}

.search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  padding: 0.65rem 0;
  font-size: 1.1rem;
}

.search-card input::placeholder {
  color: rgba(20, 40, 54, 0.35);
}

.search-card button,
.button {
  border: 0;
  background: white;
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-nav {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
  padding: 3rem 0;
}

.hero-kicker {
  text-align: right;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 4.5rem;
}

.hero-links {
  display: grid;
}

.hero-links a {
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  border-top: 1px solid var(--line);
}

.hero-links a:last-child {
  border-bottom: 1px solid var(--line);
}

.section {
  padding: 6rem 0;
}

.two-col,
.team-layout,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.two-col {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.two-col--image-right {
  grid-template-columns: 0.95fr 1.05fr;
}

.section p,
.section li {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: var(--text);
}

.image-card,
.story-card,
.team-card,
.step-card,
.cta-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-layout {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.team-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.story-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card h3,
.story-card h3,
.cta-card h3,
.contact-cta h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  line-height: 1.1;
}

.team-role {
  margin-top: 0;
  font-weight: 600;
}

.story-card {
  text-align: center;
}

.section-objective {
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1.5rem;
  min-height: 180px;
}

.step-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-cta {
  background: var(--green);
  color: white;
}

.section-head--light h2,
.section-head--light p {
  color: inherit;
}

.section-cta .cta-card,
.section-cta .cta-card p,
.section-cta .cta-card h3 {
  color: var(--text);
}

.section-cta .cta-link {
  color: var(--text);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cta-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cta-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cta-body {
  padding: 1.5rem 1.5rem 0.5rem;
  flex: 1;
}

.cta-link {
  display: block;
  margin: 1rem 1.5rem 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 700;
}

.section-contact {
  padding: 0;
}

/* Inscription form */
.section-form {
  background: var(--bg);
}

.contact-form {
  max-width: 600px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(20, 40, 54, 0.18);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--green-dark);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-feedback.success {
  color: var(--green);
}

.form-feedback.error {
  color: #c0392b;
}

.contact-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.contact-panel {
  background: var(--green);
  color: white;
}

.contact-grid {
  grid-template-columns: 1fr 1fr 0.8fr 1fr;
  align-items: center;
  padding: 3rem 0;
}

.contact-grid a,
.contact-grid p,
.contact-cta h3 {
  color: white;
}

.contact-grid .contact-cta .button {
  color: var(--text);
}

.socials {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.socials a {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: white;
  color: var(--text);
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.contact-cta .button {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text);
}

.site-footer {
  background: #10202b;
  color: white;
  border: 0;
}

.site-footer a {
  color: white;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: rgba(239, 235, 235, 0.98);
    border-bottom: 1px solid rgba(20, 40, 54, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .two-col,
  .two-col--image-right,
  .team-layout,
  .cta-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-nav {
    width: min(calc(100% - 3rem), 720px);
    margin: 0 auto;
  }

  .hero-kicker {
    text-align: left;
    margin-bottom: 2rem;
  }

  .team-cards,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .container,
  .container-left,
  .container-right {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .section {
    padding: 4rem 0;
  }

  .hero-copy {
    padding: 3rem 0;
  }

  .search-card {
    padding-left: 1rem;
  }

  .search-card input {
    font-size: 0.95rem;
  }

  .search-card button,
  .button {
    padding: 0.8rem 1rem;
  }

  .hero-links a {
    padding: 1.35rem 0.5rem;
    text-align: left;
  }

  .team-cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .team-card,
  .story-card,
  .step-card,
  .cta-body {
    padding: 1.35rem;
  }

  .cta-link {
    margin: 0.5rem 1.35rem 1.35rem;
  }

  .contact-grid {
    padding: 2rem 0;
  }

  .socials a {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }
}
