/* Maakity — styles
   Fonts (DM Sans, Manrope) are loaded via <link> in index.html. */

/* ---------- Tokens & base ---------- */
:root {
  --ink: #10251f;
  --muted: #66736d;
  --green: #136c4e;
  --lime: #d9f37a;
  --paper: #f8f9f4;
  --line: #e2e9e1;
  --focus: #f2b705;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, .brand { font-family: Manrope, sans-serif; }
h1, h2, h3, p { margin-top: 0; }

a { text-decoration: none; color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Keyboard focus ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.input-row input:focus-visible {
  outline-offset: 1px;
  border-color: var(--green);
}

.step button:focus-visible { outline-offset: -3px; }

/* On dark backgrounds the same amber ring is visible; keep it. */

/* ---------- Header / brand ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(5%, calc((100vw - 1300px) / 2));
  background: rgba(248, 249, 244, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.header .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.brand-lockup {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}

.brand-entity {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

nav a:hover { color: var(--green); }

.nav-cta, .btn.primary {
  background: var(--green);
  color: white;
  border-radius: 8px;
}

.nav-cta { padding: 13px 16px; }
nav a.nav-cta:hover { color: white; }

.menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 630px;
  background: #10271f;
  color: #fff;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 6%;
  padding: 90px max(5%, calc((100vw - 1300px) / 2));
  overflow: hidden;
}

.hero-content { max-width: 750px; align-self: center; }

.eyebrow, .kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.eyebrow {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse {
  display: inline-block;
  background: #a6ec80;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #a6ec8028;
}

.hero h1 {
  font-size: clamp(42px, 5.1vw, 79px);
  line-height: 1.12;
  letter-spacing: -4px;
  margin: 28px 0;
}

.hero em, h2 em { font-style: normal; color: var(--lime); }

.hero p {
  max-width: 570px;
  font-size: 17px;
  line-height: 1.85;
  color: #c9d8cf;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 35px 0; }

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 13px;
}

.btn:disabled { opacity: .7; cursor: progress; }

.btn.secondary {
  border: 1px solid #698278;
  border-radius: 8px;
  color: #fff;
}

.hero-meta {
  display: flex;
  gap: 25px;
  color: #a8c0b4;
  font-size: 12px;
  flex-wrap: wrap;
}

.hero-art { position: relative; align-self: center; }

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: contain;
  padding: 6%;
  background: #fff;
  border-radius: 130px 15px 130px 15px;
}

.art-label {
  position: absolute;
  bottom: 25px;
  left: -25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 10px;
  background: #f5f9ed;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 50px #0003;
}

.art-label strong { color: var(--green); margin-left: 25px; }

/* ---------- Ticker ---------- */
.ticker {
  display: flex;
  justify-content: space-around;
  gap: 25px;
  padding: 20px;
  background: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px max(5%, calc((100vw - 1300px) / 2));
  scroll-margin-top: 80px;
}

.alt { background: #eef2e9; }

.section-intro { max-width: 750px; margin-bottom: 45px; }

.kicker { color: var(--green); }

h2 {
  font-size: clamp(35px, 4vw, 57px);
  letter-spacing: -2.5px;
  line-height: 1.16;
  margin: 20px 0;
}

h2 em { color: var(--green); }

.section-intro p { color: var(--muted); font-size: 16px; line-height: 1.8; }

/* Mission */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.panel {
  background: white;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 15px;
}

.panel-symbol { font-size: 33px; color: var(--green); }

h3 { font-size: 22px; letter-spacing: -.7px; }

.panel p, .eco p, .news-card p { color: var(--muted); line-height: 1.8; }

.values {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 30px 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.values span { font-weight: 800; }
.values div { line-height: 2; }
.values i { font-style: normal; color: var(--green); padding: 0 8px; }

/* Écosystème */
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.eco {
  background: #fff;
  border: 1px solid #e4ebe1;
  border-radius: 12px;
  padding: 30px;
  transition: transform .2s;
}

.eco:hover, .news-card:hover { transform: translateY(-4px); }

.eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eco-num { color: var(--green); font-weight: 800; font-size: 13px; }

.eco-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 12px;
  background: #e8f3e4;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eco h3 { margin-top: 28px; }

/* Roadmap */
.roadmap-summary {
  background: #10271f;
  color: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}

.roadmap-summary > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.roadmap-summary small { letter-spacing: 2px; color: var(--lime); font-size: 11px; font-weight: 800; }
.roadmap-summary strong { font: 800 clamp(25px, 3vw, 39px) Manrope; }
.roadmap-summary span { font-size: 12px; color: #c6d5c9; }

.countdown { display: flex; gap: 12px; }

.countdown div {
  min-width: 70px;
  text-align: center;
  background: #ffffff14;
  border: 1px solid #ffffff22;
  padding: 12px 9px;
  border-radius: 10px;
}

.countdown b { display: block; font: 800 27px Manrope; }
.countdown small { color: #c6d5c9; font-size: 10px; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 42px 0 20px;
}

.filter-bar > span { font-weight: 800; }

#filters { display: flex; gap: 7px; flex-wrap: wrap; }

.filter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
}

.filter.active { background: var(--green); color: white; }

.timeline { display: grid; gap: 12px; }

.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.step button {
  width: 100%;
  display: grid;
  grid-template-columns: 65px 1fr auto 25px;
  gap: 15px;
  align-items: center;
  text-align: left;
  border: 0;
  background: none;
  padding: 24px;
  color: var(--ink);
}

.step-index { color: var(--green); font: 800 21px Manrope; }
.step-title { font-weight: 800; font-size: 17px; }
.step-date { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }

.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 30px;
  background: #edf0ec;
  color: #52635b;
}

.badge.done { background: #dff5e7; color: #14663f; }
.badge.active { background: #fff1c9; color: #8d6300; }

.step-detail {
  display: none;
  padding: 0 28px 25px 104px;
  color: var(--muted);
  line-height: 1.75;
}

.step.open .step-detail { display: block; }
.step-detail ul { margin: 8px 0 0; padding-left: 19px; }

.footnote { color: var(--muted); font-size: 12px; margin-top: 25px; }

/* Journal */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.news-card {
  padding: 30px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform .2s;
}

.news-card time { color: var(--green); font-size: 12px; font-weight: 800; }
.news-card h3 { margin: 25px 0 12px; }

/* Rejoindre / form */
.join {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 70px;
  background: #dff0d7;
}

.join-copy p { color: #4c6659; line-height: 1.8; }

.join form { margin-top: 35px; }

.join label { font-size: 12px; font-weight: 800; display: block; margin-bottom: 10px; }

.input-row { display: flex; gap: 8px; }

.input-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d9c9;
  border-radius: 8px;
  padding: 15px;
  background: white;
}

.input-row button { white-space: nowrap; }

.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  color: #526b5b;
  font-weight: 500 !important;
}

#form-fields[hidden] { display: none; }

#form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
#form-status:empty { display: none; }

#form-status.success {
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #b7dcb0;
  color: #14663f;
  font-weight: 700;
}

#form-status.error {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff1f0;
  border: 1px solid #f0b8b3;
  color: #9b2c22 !important;
  font-weight: 600;
}

.hidden { position: absolute; left: -9999px; }

/* Social + contact block */
.social-block {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #b9d3b0;
}

.social-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.social-links { display: flex; gap: 10px; }

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transition: transform .2s, background .2s;
}

.social-link svg { width: 20px; height: 20px; }
.social-link:hover { transform: translateY(-2px); background: #0e5640; }

.join-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 14px; font-weight: 700; }
.join-contact a { color: var(--green); }
.join-contact a:hover { text-decoration: underline; }

/* Survey */
.survey {
  background: #123f31;
  color: white;
  padding: 35px;
  border-radius: 15px;
  align-self: center;
}

.survey p { color: #c6dfd1; line-height: 1.8; }

.survey a {
  display: block;
  border-top: 1px solid #ffffff30;
  padding: 18px 0;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Footer ---------- */
footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 70px 5% 25px;
  background: #0c211b;
  color: #fff;
}

footer p, footer span, footer a:not(.brand):not(.social-link) { color: #b4c6ba; font-size: 13px; }

footer > div { display: flex; flex-direction: column; gap: 14px; }

footer b { font-size: 13px; }

footer a:not(.brand):not(.social-link):hover { color: #fff; text-decoration: underline; }

/* The logo file has a white background: present it as a rounded white badge on the dark footer */
.footer-lockup {
  height: 44px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #fff;
}

footer .social-links { margin-top: 4px; }
footer .social-link { background: #ffffff1c; }
footer .social-link:hover { background: var(--green); }

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
  gap: 6px !important;
}

.copyright p { margin: 0; font-size: 12px; color: #a9baaf; line-height: 1.6; }
.copyright .notice { color: #8ea398; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 5%;
    flex-direction: column;
    align-items: stretch;
  }

  nav.show { display: flex; }

  .menu {
    display: block;
    border: 0;
    background: none;
    font-size: 26px;
    padding: 6px 10px;
  }

  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { max-width: 550px; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr; gap: 25px; }
}

/* ---------- Mobile (360–600px) ---------- */
@media (max-width: 600px) {
  .brand-lockup { height: 32px; }
  .brand-entity { font-size: 8.5px; letter-spacing: .1px; }

  .hero h1 { letter-spacing: -2px; }
  .hero-art img { border-radius: 80px 15px 80px 15px; }
  .section { padding: 75px 6%; }
  .mission-grid, .ecosystem-grid, .news-grid { grid-template-columns: 1fr; }
  .roadmap-summary { flex-direction: column; align-items: stretch; }
  .countdown { justify-content: space-between; }
  .countdown div { min-width: 0; flex: 1; }
  .filter-bar { align-items: flex-start; flex-direction: column; }

  .step button { grid-template-columns: 30px 1fr 20px; gap: 10px; padding: 18px; }
  .step button .badge { grid-column: 2; grid-row: 2; justify-self: start; }
  .step-detail { padding: 0 18px 20px 58px; }

  .values { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }

  footer { grid-template-columns: 1fr 1fr; gap: 30px; }
  footer > div:first-child { grid-column: 1 / -1; }

  .hero-art .art-label { left: 5px; }
  .ticker { justify-content: flex-start; overflow-x: auto; }
}
