/* ============================================================
   MTPS GROUP — Design system
   Encre profonde · Papier chaud · Lime électrique
   Typo : Space Grotesk (display) + Inter (texte)
   ============================================================ */

:root {
  --ink: #0b0b10;
  --ink-2: #14141c;
  --ink-3: #1d1d28;
  --paper: #f5f4ef;
  --white: #ffffff;
  --lime: #d8f34f;
  --lime-deep: #b8d431;
  --indigo: #5b5bd6;

  --text: #131318;
  --text-2: #52525e;
  --text-3: #8a8a96;
  --text-inv: #f2f2ee;
  --text-inv-2: rgba(242, 242, 238, 0.62);

  --line: rgba(19, 19, 24, 0.1);
  --line-inv: rgba(242, 242, 238, 0.12);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  --container: 1160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Typography ============ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text);
}

h1 em, h2 em {
  font-style: normal;
  color: var(--indigo);
  position: relative;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* ============ Reveal on scroll ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn-arrow { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 12px 32px -12px rgba(11, 11, 16, 0.55);
}
.btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 20px 44px -14px rgba(11, 11, 16, 0.6);
}
.btn-ink .btn-arrow { color: var(--lime); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--text);
  transform: translateY(-2px);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 36px -14px rgba(216, 243, 79, 0.55);
}
.btn-lime:hover {
  transform: translateY(-2px);
  background: #e2fa62;
  box-shadow: 0 22px 48px -16px rgba(216, 243, 79, 0.65);
}

.btn-full { width: 100%; justify-content: center; }

/* ============ Nav ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(245, 244, 239, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}
.nav-links a { position: relative; transition: color 0.2s; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta-mobile { display: none; }

.nav-cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 10px 28px -12px rgba(11, 11, 16, 0.5);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 16px; right: 16px;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: 0 24px 64px -16px rgba(11,11,16,0.25), 0 0 0 1px var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--paper); }
  .nav-cta-mobile {
    display: block;
    background: var(--ink);
    color: var(--paper) !important;
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
  }
  .nav-cta-mobile:hover { background: var(--ink-2) !important; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(52% 60% at 78% 18%, rgba(216, 243, 79, 0.34), transparent 68%),
    radial-gradient(46% 56% at 12% 30%, rgba(91, 91, 214, 0.16), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 840px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 6px 20px -8px rgba(11,11,16,0.12);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 34px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 0 rgba(184, 212, 49, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 212, 49, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(184, 212, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 212, 49, 0); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 30px;
}
.hero-title em {
  color: var(--text);
  background: linear-gradient(180deg, transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-proofs {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-proofs li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}
.hero-proofs svg {
  width: 16px; height: 16px;
  color: var(--lime-deep);
  flex-shrink: 0;
}

/* ============ Marquee ============ */

.marquee {
  background: var(--ink);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 10px 0 -10px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text-inv);
  white-space: nowrap;
}
.marquee i {
  font-style: normal;
  color: var(--lime);
  font-size: 9px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Sections communes ============ */

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 20px;
}
.section-tag--lime { color: var(--lime); }
.section-head p {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 600px;
}
.section-head--dark h2 { color: var(--text-inv); }
.section-head--dark h2 em { color: var(--lime); }
.section-head--dark p { color: var(--text-inv-2); }

/* ============ Use cases ============ */

.usecases {
  padding: 130px 0 120px;
  background: var(--paper);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 34px 30px 30px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(11, 11, 16, 0.18);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.card p {
  font-size: 14.5px;
  color: var(--text-2);
  flex-grow: 1;
  margin-bottom: 24px;
}

.card-delta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: 12px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.card-delta s {
  color: var(--text-3);
  text-decoration-thickness: 1.5px;
}
.card-delta svg {
  width: 14px; height: 14px;
  color: var(--text-3);
  flex-shrink: 0;
}
.card-delta b {
  color: var(--text);
  font-weight: 700;
}

.card-custom {
  margin-top: 18px;
  border-radius: var(--r);
  border: 2px dashed rgba(19, 19, 24, 0.22);
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  transition: border-color 0.3s, background 0.3s;
}
.card-custom:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.card-custom h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.card-custom p {
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 520px;
}

/* ============ Method (dark) ============ */

.method {
  background: var(--ink);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.method::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 60%; height: 80%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(91, 91, 214, 0.16), transparent 70%);
  pointer-events: none;
}
.method .container { position: relative; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--ink-2);
  border-radius: var(--r);
  padding: 38px 32px;
  box-shadow: inset 0 0 0 1px var(--line-inv);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(216, 243, 79, 0.35);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: 22px;
}
.step h3 {
  color: var(--text-inv);
  font-size: 1.6rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--text-inv-2);
  font-size: 15px;
  flex-grow: 1;
  margin-bottom: 26px;
}
.step-meta {
  display: inline-block;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(216, 243, 79, 0.3);
}

.method-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 56px;
  border-top: 1px solid var(--line-inv);
}
@media (max-width: 900px) { .method-stats { grid-template-columns: repeat(2, 1fr); } }

.mstat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--text-inv);
  line-height: 1;
  margin-bottom: 10px;
}
.mstat-num span { color: var(--lime); font-size: 0.6em; }
.mstat-lbl {
  font-size: 14px;
  color: var(--text-inv-2);
  max-width: 200px;
}

/* ============ FAQ ============ */

.faq-section {
  padding: 130px 0;
  background: var(--paper);
}

.faq {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.3s;
  overflow: hidden;
}
.faq details:hover { box-shadow: 0 0 0 1px rgba(19,19,24,0.28); }
.faq details[open] { box-shadow: 0 0 0 1.5px var(--ink); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 11px; height: 11px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-top: -4px;
}
.faq details[open] .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--indigo);
}

.faq details p {
  padding: 0 26px 24px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 660px;
}

/* ============ Contact (dark) ============ */

.contact {
  background: var(--ink);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 55%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(216, 243, 79, 0.1), transparent 70%);
  pointer-events: none;
}
.contact .container { position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-copy h2 {
  color: var(--text-inv);
  margin-bottom: 24px;
}
.contact-copy h2 em { color: var(--lime); }
.contact-lead {
  color: var(--text-inv-2);
  font-size: 1.08rem;
  margin-bottom: 38px;
  max-width: 460px;
}

.contact-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-inv);
  font-size: 15.5px;
  font-weight: 500;
}
.contact-points svg {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(216, 243, 79, 0.14);
  color: var(--lime);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-field .opt { color: var(--text-3); font-weight: 500; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(19, 19, 24, 0.07);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}
.form-feedback {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  color: #3c7d1f;
  min-height: 22px;
}
.form-feedback.error { color: #c2410c; }

/* ============ Footer ============ */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-inv);
  padding: 56px 0 36px;
}
.footer-inner { text-align: left; }
.footer .brand-name { color: var(--text-inv); }
.footer-tag {
  margin: 16px 0 28px;
  color: var(--text-inv-2);
  font-size: 14.5px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-inv);
  margin-bottom: 26px;
}
.footer-links a {
  color: var(--text-inv-2);
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-inv-2);
}
.footer-bottom a { color: var(--text-inv-2); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--lime); }

/* ============ Responsive fine-tuning ============ */

@media (max-width: 640px) {
  .hero { padding: 150px 0 80px; }
  .usecases, .method, .faq-section, .contact { padding: 90px 0; }
  .section-head { margin-bottom: 44px; }
  .card-custom { padding: 30px 26px; }
  .contact-form { padding: 30px 24px; }
  .method-stats { gap: 28px 18px; }
}
