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

/* -------- 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;
}
.footer__btm a { color: inherit; transition: color .2s ease; }
.footer__btm a:hover { color: var(--accent); }

/* -------- PRIVACY (RGPD) -------- */
.privacy-hero {
  position: relative;
  padding: 160px 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);
  border-bottom: 1px solid var(--rule);
}
.privacy-hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 78%, oklch(from var(--accent) 0.92 0.06 h / 0.35) 0%, transparent 50%),
    radial-gradient(circle at 82% 28%, oklch(from var(--accent) 0.94 0.04 h / 0.28) 0%, transparent 60%);
  opacity: 0.7;
}
.privacy-hero__inner {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto;
}
.privacy-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.privacy-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.privacy-hero__sub {
  max-width: 580px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
  font-weight: 400;
}
.privacy-hero__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.privacy-hero__meta time { color: var(--ink-2); }

.privacy-main {
  background: var(--bg);
  padding: 80px 32px 120px;
}
.privacy-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}

/* sticky sommaire */
.privacy-toc {
  position: sticky;
  top: 110px;
  align-self: start;
}
.privacy-toc__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.privacy-toc__list {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.privacy-toc__list li {
  counter-increment: toc;
}
.privacy-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.005em;
  border-left: 1px solid transparent;
  padding-left: 14px;
  margin-left: -14px;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}
.privacy-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  flex: 0 0 auto;
  transition: color .2s ease;
}
.privacy-toc__list a:hover {
  color: var(--ink);
}
.privacy-toc__list a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
  font-weight: 500;
}
.privacy-toc__list a.is-active::before {
  color: var(--accent);
}

/* article */
.privacy-article { min-width: 0; }
.p-section {
  position: relative;
  padding: 48px 0 56px;
  border-top: 1px solid var(--rule);
}
.p-section:first-child { border-top: none; padding-top: 0; }
.p-section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.p-section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.p-section__body {
  max-width: 640px;
}
.p-section__body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 12px;
  font-weight: 400;
}
.p-section__body p:last-child { margin-bottom: 0; }
.p-section__body strong { color: var(--ink); font-weight: 600; }
.p-section__body a {
  color: var(--accent);
  border-bottom: 1px solid oklch(from var(--accent) l c h / 0.35);
  transition: border-color .2s ease;
}
.p-section__body a:hover { border-color: var(--accent); }

.p-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 24px 0 10px;
}

.p-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
}
.p-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.p-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 10px; height: 1px;
  background: var(--accent);
}

.p-grid {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.p-grid li {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: border-color .2s ease, background .2s ease;
}
.p-grid li::before {
  content: "✓";
  color: var(--accent);
  font-size: 11px;
  margin-right: 8px;
}
.p-grid li:hover {
  border-color: var(--accent);
  background: oklch(from var(--accent) 0.985 0.02 h);
}

.p-card {
  display: block;
  padding: 22px 24px;
  margin: 8px 0 4px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg-2);
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.p-callout {
  margin-top: 18px !important;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: oklch(from var(--accent) 0.985 0.02 h);
  font-size: 14px !important;
  color: var(--ink) !important;
  font-weight: 500;
  border-radius: 0 8px 8px 0;
}

.privacy-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.privacy-back, .privacy-contact {
  display: inline-flex; align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .15s ease;
}
.privacy-back {
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.privacy-back:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
.privacy-contact {
  background: var(--ink);
  color: var(--bg);
}
.privacy-contact:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .privacy-layout { grid-template-columns: 1fr; gap: 40px; }
  .privacy-toc { position: static; top: auto; }
  .privacy-toc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
@media (max-width: 600px) {
  .privacy-hero { padding: 130px 24px 60px; }
  .privacy-main { padding: 60px 24px 80px; }
  .privacy-toc__list { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: 1fr; }
  .p-section { padding: 36px 0 40px; }
}
