:root {
  --accent: #1F9A4A;
  --bg: oklch(0.985 0.006 145);
  --bg-2: oklch(0.97 0.012 145);
  --ink: oklch(0.22 0.01 145);
  --ink-2: oklch(0.45 0.01 145);
  --ink-3: oklch(0.65 0.008 145);
  --rule: oklch(0.9 0.01 145);
  --font-display: "Gotham", "Gotham SSm", "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Gotham", "Gotham SSm", "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* -------- LOGO -------- */
.ekifon-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.ekifon-logo--wordmark {
  /* In the nav, only show the EKIFON wordmark portion (top ~70% of the image), not the tagline */
  width: auto;
  aspect-ratio: 4.5 / 1;
  object-fit: cover;
  object-position: center top;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .15s ease, opacity .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: white; box-shadow: 0 8px 24px -10px var(--accent); }
.btn--primary:hover { box-shadow: 0 14px 30px -10px var(--accent); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* -------- NAV -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0; transition: all .3s ease;
}
.nav--scrolled {
  backdrop-filter: blur(16px);
  background: oklch(from var(--bg) l c h / 0.78);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 32px;
}
.nav__brand { margin-right: auto; }
.nav__links {
  display: flex; gap: 28px; list-style: none;
  font-size: 13px; letter-spacing: 0.02em;
}
.nav__links a {
  position: relative; padding: 4px 0;
  color: var(--ink-2);
  font-weight: 400;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav__cta { padding: 9px 16px; font-size: 12px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 18px;
    padding: 24px 32px; background: var(--bg);
    border-top: 1px solid var(--rule); font-size: 16px;
    font-family: var(--font-display);
    font-weight: 500;
  }
}

/* -------- HERO -------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(from var(--accent) 0.96 0.04 h) 0%, transparent 70%),
    var(--bg);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 80%, oklch(from var(--accent) 0.92 0.06 h / 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 30%, oklch(from var(--accent) 0.94 0.04 h / 0.3) 0%, transparent 60%);
  opacity: 0.7;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 980px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.hero__logo { margin: 12px 0 8px; display: flex; justify-content: center; }
.hero__sub {
  max-width: 580px;
  font-size: 16px; line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: pretty;
}
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* -------- SECTION SHARED -------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 32px;
  position: relative;
}
.section__head { max-width: 820px; margin-bottom: 60px; }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.h2 .muted { color: var(--ink-3); font-weight: 400; }

/* -------- INTRO -------- */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  max-width: 980px;
  margin: 0 auto;
}
.intro__grid p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 400;
}
@media (max-width: 800px) {
  .intro__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* -------- PRESENTATION -------- */
.presentation .section__head { max-width: 900px; margin-bottom: 32px; }
.presentation__lead {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  max-width: 780px;
}
.presentation__facets-intro {
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 18px;
}
.presentation__facets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  max-width: 780px;
  margin: 0 0 56px;
}
.presentation__facets li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.presentation__facets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.presentation__body { max-width: 780px; }
.presentation__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 400;
}
.presentation__body p + p { margin-top: 20px; }
@media (max-width: 800px) {
  .presentation__facets { grid-template-columns: 1fr; gap: 10px; }
}

/* -------- PULL QUOTE -------- */
.pullquote-section { padding-top: 40px; padding-bottom: 40px; }
.pullquote {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
  padding: 60px 0;
}
.pullquote__lead {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.pullquote__cap {
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}
@media (max-width: 760px) {
  .pullquote { grid-template-columns: 1fr; gap: 20px; }
}

/* -------- PARCOURS -------- */
.parcours {
  background: var(--bg-2);
  max-width: none;
  border-radius: 0;
}
.parcours .section__head, .parcours .parcours__track, .parcours .parcours__copy {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}
.parcours .section__head { text-align: center; max-width: 820px; }

.parcours__track {
  position: relative;
  height: 80px;
  margin: 0 auto 64px;
  padding: 0 60px;
  max-width: calc(var(--maxw) - 64px);
}
.parcours__line {
  position: absolute; left: 60px; right: 60px; top: 50%;
  height: 2px; background: var(--rule);
  transform: translateY(-50%);
}
.parcours__line--fill {
  right: auto; left: 60px;
  transition: width .4s ease;
}
.node {
  position: absolute; top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid;
  cursor: pointer;
  transition: transform .25s ease, background .2s ease, box-shadow .2s ease;
  padding: 0;
}
.node:hover { transform: translate(-50%, -50%) scale(1.3) !important; }
.node--active { box-shadow: 0 0 0 6px oklch(from var(--accent) l c h / 0.18); }
.node__label {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px;
  white-space: nowrap; color: var(--ink); font-weight: 500;
  letter-spacing: 0.04em;
}

.parcours__copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  max-width: 980px;
  margin: 0 auto;
}
.parcours__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 400;
}
@media (max-width: 760px) {
  .parcours__copy { grid-template-columns: 1fr; gap: 22px; }
}

/* -------- MAINTIEN / PACKS -------- */
.maintien .section__head { text-align: center; margin-left: auto; margin-right: auto; }
.packs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pack {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 18px; align-items: center;
  transition: transform .25s ease, border-color .2s ease;
  text-align: center;
}
.pack:hover { transform: translateY(-4px); border-color: var(--accent); }
.pack__count {
  font-family: var(--font-display);
  font-size: 80px; font-weight: 700;
  line-height: 0.9; letter-spacing: -0.01em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pack__count span {
  font-size: 13px; color: var(--ink-3);
  font-family: var(--font-body); letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
}
.pack__cta {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 800px) { .packs { grid-template-columns: 1fr; max-width: 420px; } }

/* -------- CONTACT -------- */
.contact {
  background: var(--bg);
  color: var(--ink);
  max-width: none;
  padding: 0;
}
.contact__inner {
  max-width: 820px; margin: 0 auto;
  padding: 120px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.contact .h2 { color: var(--ink); }
.contact__phone {
  display: block;
  margin: 40px 0 32px;
  padding: 32px 48px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.contact__phone:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact__phone__label {
  display: block;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.contact__phone__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.contact__addr {
  font-size: 13px; color: var(--ink-2);
  line-height: 1.7;
}
.contact__addr strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 600; }

@media (max-width: 900px) {
  .contact__inner { padding: 80px 24px; }
}

/* -------- FOOTER -------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 60px 0 30px;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-bottom: 50px;
  align-items: start;
}
.footer__brand p {
  margin-top: 16px; color: var(--ink-2); font-size: 13px;
  max-width: 320px; line-height: 1.6; font-weight: 400;
}
.footer__addr {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em;
  text-align: right;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__addr { text-align: left; }
}

/* -------- LEGAL MENTIONS -------- */
.legal {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 40px 32px 0;
  border-top: 1px solid var(--rule);
}
.legal__title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal__intro {
  font-size: 12px; color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 820px;
  font-weight: 400;
}
.legal__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color .2s ease, color .2s ease;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.legal__toggle:hover { border-color: var(--accent); color: var(--accent); }
.legal__body {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.legal__block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.legal__block p, .legal__block div {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 400;
}
.legal__block p + p { margin-top: 6px; }
@media (max-width: 760px) {
  .legal__body { grid-template-columns: 1fr; gap: 22px; }
}

.footer__btm {
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px 32px 0; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 12px;
}
