:root {
  --green: #26bd5d;
  --green-accent: #23c290;
  --blue: #1f88ff;
  --blue-overlay: rgba(31, 136, 255, 0.86);
  --water: #58a1f5;
  --text: #4a4a4a;
  --heading: #1f1f1f;
  --footer-bg: #1b2a22;
  --header-h: 84px;
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: "Oswald", "Open Sans", sans-serif;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  --header-h: 68px;
  height: 68px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: calc(var(--header-h) - 12px);
  width: auto;
  transition: height 0.3s ease;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--green); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.main-nav a.lang-switch {
  margin-left: 8px;
  padding: 7px 12px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 13px;
}
.main-nav a.lang-switch::after { display: none; }
.main-nav a.lang-switch:hover { border-color: var(--green); }

.main-nav a.nav-cta {
  margin-left: 8px;
  padding: 8px 20px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover { background: #1fa04e; color: #fff; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { display: none; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  margin-top: 84px;
  height: min(78vh, 52vw);
  min-height: 320px;
  overflow: hidden;
  background: #1c2b22;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 34px;
  line-height: 44px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
}
.hero:hover .slider-arrow,
.slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: rgba(0, 0, 0, 0.55); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dots button.active {
  background: #fff;
  transform: scale(1.2);
}

/* ---------- Split: mission + domains ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split-col { position: relative; }

.split-mission {
  display: flex;
  align-items: center;
  padding: 6% 6% 6% 6%;
  color: #fff;
  background: url("images/PHOTO-2020-03-15-09-53-03-2.jpg") right bottom / cover no-repeat;
  isolation: isolate;
}
.split-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue-overlay);
}
.mission-inner { max-width: 560px; }
.split-mission h1,
.split-mission h2 { color: #fff; }

.brand-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.split-mission h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  margin-bottom: 18px;
}
.lead {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0.95;
}

.divider { height: 0; border-top-style: solid; }
.divider-white {
  width: 150px;
  border-top-width: 2px;
  border-color: #fff;
  margin: 14px 0 36px;
}
.divider-green {
  width: 120px;
  border-top-width: 3px;
  border-color: var(--green-accent);
  margin: 20px auto 30px;
}

.split-domains {
  background: #fff;
  padding: 6%;
}
.fancy-heading {
  text-align: center;
  color: var(--green);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  margin-bottom: 40px;
}

.features {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.feature:last-child { margin-bottom: 0; }
.feature h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
}

.ring {
  position: relative;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.ring > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.ring > svg circle {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}
.feature.visible .ring > svg circle { stroke-dashoffset: 0; }
.ring img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feature:hover .ring img { transform: scale(1.06); }

.ring-icon > svg circle { stroke: var(--water); }
.ring-icon .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  fill: var(--water);
}

/* ---------- Team ---------- */
.team {
  text-align: center;
  padding: 8% 0 6%;
  background: #fafcfb;
}
.section-title {
  color: var(--green);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 500;
  margin: 0;
}
.team-text {
  margin: 0 auto 25px;
  font-size: 1.2em;
  line-height: 1.6;
  color: #555;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}
.footer-block h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-block address,
.footer-block p {
  margin: 0;
  font-style: normal;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}
.site-footer a:hover { color: var(--green); border-color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Inner pages ---------- */
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 10px 26px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  transition: background 0.2s;
}
.btn:hover { background: #1fa04e; }

.page-banner {
  position: relative;
  margin-top: 84px;
  padding: 90px 0 70px;
  color: #fff;
  background: #1c2b22 center / cover no-repeat;
  isolation: isolate;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue-overlay);
}
.page-banner h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  margin: 0;
}
.page-banner .divider-white { margin-bottom: 0; }
.page-banner-sub { margin: 18px 0 0; font-size: 18px; font-weight: 300; }

.page-content { padding: 70px 0; }

.prose h2 {
  color: var(--green);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  margin: 1.6em 0 0.6em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 1.4em 0 0.5em;
}
.prose p { margin: 0 0 1.1em; }
.prose .note {
  padding: 14px 18px;
  background: #f2faf5;
  border-left: 3px solid var(--green);
}
.back-link { margin-top: 2.5em; clear: both; }
.back-link a { color: var(--green); font-weight: 600; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 7px;
  height: 12px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 2em 0 0;
  clear: both;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.gallery figcaption { margin-top: 6px; font-size: 14px; color: #777; }

.inline-figure { margin: 0.3em 0 1em; width: 300px; max-width: 45%; }
.inline-figure img { width: 100%; border-radius: 6px; }
.inline-figure.right { float: right; margin-left: 24px; }
.inline-figure.left { float: left; margin-right: 24px; }

.stat-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 1.5em 0;
  padding: 24px 28px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}
.stat-callout p { margin: 0; }
.stat-number {
  font-family: "Oswald", sans-serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Qui sommes-nous */
.mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}
.mvv-card {
  padding: 32px 28px;
  background: #fafcfb;
  border-top: 3px solid var(--green);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.mvv-card h2 { color: var(--green); font-size: 26px; font-weight: 500; }
.mvv-card p { margin: 0; }
.mvv-card ul { margin: 0; padding-left: 20px; }
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 70px;
}
.media-row > img { width: 100%; border-radius: 8px; }
.approach { padding: 0; }

/* Nous rejoindre / Donation */
.feature-photo { margin: 0 0 32px; }
.feature-photo img { width: 100%; border-radius: 8px; }
.intro { font-size: 1.2em; text-align: center; margin: 0 0 24px; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  text-decoration: none;
  text-align: center;
  background: #fafcfb;
  border: 1px solid #e6efe9;
  border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
  overflow-wrap: anywhere;
}
.contact-card:hover { border-color: var(--green); transform: translateY(-2px); }
.contact-label {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* Nos actions */
.actions { display: grid; gap: 48px; }
.action {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: center;
}
.action:nth-child(even) .action-media { order: 2; }
.action-media { display: block; }
.action-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.action-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #eef5fe;
  border-radius: 8px;
}
.action-icon .icon { width: 96px; height: 96px; fill: var(--water); }
.action-body h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; }
.action-body h2 a { color: var(--green); text-decoration: none; }
.action-body h2 a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .slide, .ring > svg circle { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .mvv { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; gap: 28px; }
  .split-mission { padding: 10% 8%; }
  .split-domains { padding: 10% 8%; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    width: min(300px, 82vw);
    padding: 90px 24px 24px;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid #eee; }
  .main-nav a::after { display: none; }
  .main-nav a.nav-cta { margin: 20px 0 0; text-align: center; border: 0; }
  .main-nav a.lang-switch { margin: 16px 0 0; text-align: center; border: 1px solid #ccc; }
  .nav-open .main-nav { transform: none; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }
  .footer-bottom { text-align: center; }
}

@media (max-width: 680px) {
  :root { --header-h: 68px; }
  .page-banner { margin-top: 68px; padding: 56px 0 44px; }
  .page-content { padding: 48px 0; }
  .action { grid-template-columns: 1fr; gap: 20px; }
  .action:nth-child(even) .action-media { order: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .inline-figure, .inline-figure.right, .inline-figure.left { float: none; width: 100%; max-width: none; margin: 1em 0; }
  .stat-callout { flex-direction: column; text-align: center; }
  .site-header { height: 68px; }
  .hero { margin-top: 68px; height: 62vw; min-height: 240px; }
  .slider-arrow { opacity: 1; width: 38px; height: 38px; margin-top: -19px; font-size: 26px; line-height: 34px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .split-mission { padding: 12% 16px 8%; }
  .split-domains { padding: 12% 16px; }
  .lead { font-size: 16px; }
  .ring { flex-basis: 76px; width: 76px; height: 76px; }
  .ring-icon .icon { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .feature { gap: 16px; margin-bottom: 22px; }
  .team { padding: 14% 0 10%; }
  .container { padding: 0 16px; }
}
