:root {
  --bg: #f6f8ef;
  --surface: #ffffff;
  --text: #142836;
  --muted: #48606d;
  --green: #508b4c;
  --green-dark: #3e6f3a;
  --line: rgba(255, 255, 255, 0.45);
  --shadow: 0 18px 45px rgba(20, 40, 54, 0.08);
  --radius: 28px;
  --container: 1600px;
}

* {
  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;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease-out both;
}

/* Scroll-triggered reveal animations */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: revealUp 0.7s ease-out both;
}

.reveal-scale {
  opacity: 0;
}

.reveal-scale.is-visible {
  animation: revealScale 0.6s ease-out both;
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
}

.reveal-stagger.is-visible > * {
  animation: revealUp 0.6s ease-out both;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.5s; }

/* Hero logo replacing the h1 */
.hero-logo {
  height: clamp(120px, 16vw, 320px);
  width: auto;
  margin-bottom: 1rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 100vh;
  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 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

/* Hero search CTA — looks like an input, acts as a link */
.hero-search-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  width:100%;
  padding: 0.85rem 0.85rem 0.85rem 1.25rem;
  border: 1px solid rgba(20, 40, 54, 0.2);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-cta:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(80, 139, 76, 0.12);
}

.hero-search-text {
  font-size: 0.95rem;
  color: rgba(20, 40, 54, 0.4);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 40, 54, 0.06);
  color: rgba(20, 40, 54, 0.4);
  flex-shrink: 0;
}

.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;
}

/* Green panel nav — narrower links, no top/bottom borders */
.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;
  max-width: 70%;
  margin: 0 auto;
}

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

/* Only separators between items — no top on first, no bottom on last */
.hero-links a + a {
  border-top: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 6rem 0;
}

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

.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

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

.section p,
.section li {
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  line-height: 1.65;
  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;
  min-height: 420px;
}

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

/* Text column in two-col: vertically center content */
.two-col > div:not(.image-card) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-layout {
  grid-template-columns: 1fr 1fr;
  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;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-skills-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.story-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: 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;
}

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

.section-objective .two-col > div:not(.image-card) {
  text-align: right;
}

.section-head {
  max-width: 800px;
  margin-bottom: 3rem;
}

.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;
  padding: 5rem 0;
}

.section-cta .section-head--light h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.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: var(--bg);
  color: var(--text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.cta-image {
  padding: 1.25rem 1.25rem 0;
}

.cta-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

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

.cta-body h3 {
  text-transform: uppercase;
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.cta-link {
  display: block;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(20, 40, 54, 0.1);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, color 0.25s ease;
}

.cta-link:hover {
  background: rgba(80, 139, 76, 0.1);
}

.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: linear-gradient(135deg, #508b4c, #437a3f);
  color: white;
  padding: 5rem 0;
}

.contact-grid {
  grid-template-columns: 1.3fr 0.4fr 0.6fr 1.3fr;
  align-items: center;
  gap: 3.5rem;
}

/* Left column — title + secondary info */
.contact-grid h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: white;
}

.contact-grid > div:first-child p,
.contact-grid > div:first-child a {
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.7;
}

/* Second column — phone numbers, secondary weight */
.contact-grid > div:nth-child(2) p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

.contact-grid > div:nth-child(2) strong {
  opacity: 1;
  font-weight: 600;
}

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

/* Social icons — subtle container */
.socials {
  display: inline-flex;
  gap: 12px;
  background: rgba(255, 255, 255, 1);
  padding: 12px 20px;
  border-radius: 16px;
}

.socials a {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: rgb(0, 0, 0);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: rgba(158, 158, 158, 0.75);
  transform: scale(1.08);
}

.social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Right column — CTA, primary focus */
.contact-cta h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.contact-cta .button {
  display: inline-block;
  margin-top: 0.5rem;
  background: white;
  color: var(--text);
  border: 2px solid white;
  border-radius: 10px;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-cta .button:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

/* Responsive */
@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) {
  .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;
  }

  .hero-links {
    max-width: 100%;
  }

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

@media (max-width: 640px) {
  .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 {
    padding: 1rem 1.35rem;
  }

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

  .socials a {
    width: 42px;
    height: 42px;
  }
}
