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

:root {
  --v: #8b5cf6;
  --v2: #a78bfa;
  --v3: #6d28d9;
  --bg: #16162a;
  --bg2: #1e1e38;
  --bg3: #282846;
  --txt: #f4f2ff;
  --muted: rgba(240,238,255,0.52);
  --border: rgba(139,92,246,0.22);
  --site-nav-h: 72px;
  --eng-max: 1080px;
  --eng-header-x: 72px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.engagement-page {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: clip;
  width: 100%;
  line-height: 1.6;
}

/* Progress */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
  z-index: 1300;
  width: 0%;
}

/* ─── Header (aligné landing) ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--eng-header-x) 16px;
  gap: 24px;
  min-height: calc(var(--site-nav-h) + env(safe-area-inset-top, 0px));
  background: transparent;
  border-bottom: 0.5px solid rgba(139,92,246,0.1);
  isolation: isolate;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22,22,42,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
}
.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 16px;
  min-width: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
  max-width: min(220px, 40vw);
  display: block;
  object-fit: contain;
  object-position: left center;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--txt); }
.nav-links a[aria-current="page"] { color: #c4b5fd; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 0.5px solid rgba(139,92,246,0.28);
  border-radius: 10px;
  background: rgba(139,92,246,0.08);
  cursor: pointer;
  touch-action: manipulation;
  margin-left: auto;
}
.nav-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: #c4b5fd;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel--drawer { display: none; }
.nav-panel--desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.nav-backdrop {
  position: fixed;
  top: calc(var(--site-nav-h) + env(safe-area-inset-top, 0px));
  left: 0; right: 0; bottom: 0;
  z-index: 1190;
  background: rgba(8,8,18,0.72);
  touch-action: manipulation;
}
body.nav-open { overflow: hidden; }

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}
.btn--nav {
  font-size: 13px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
}
.btn--primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 0.5px solid rgba(255,255,255,0.14);
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }

/* ─── Layout ─── */
.eng-wrap {
  width: 100%;
  max-width: var(--eng-max);
  margin: 0 auto;
  padding: 0 40px;
}
.eng-main {
  padding-top: calc(var(--site-nav-h) + env(safe-area-inset-top, 0px) + 8px);
}

/* ─── Hero ─── */
.eng-hero {
  position: relative;
  padding: 100px 0 112px;
  overflow: hidden;
  text-align: center;
}
.eng-hero-orb {
  position: absolute;
  width: 600px; height: 400px;
  top: 20%; left: 50%;
  transform: translate(-50%, -40%);
  background: radial-gradient(ellipse, rgba(109,40,217,0.2) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.eng-hero-inner { position: relative; z-index: 1; }

.eng-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2);
  background: rgba(139,92,246,0.1);
  border: 0.5px solid rgba(139,92,246,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 36px;
}
.eng-h1 {
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.14;
  margin-bottom: 28px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.eng-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: rgba(196,181,253,0.9);
  line-height: 1.45;
  margin-bottom: 32px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.eng-tagline strong { color: #ede9fe; font-weight: 600; }
.eng-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 62ch;
  margin: 0 auto 40px;
}
.eng-lead strong { color: rgba(240,238,255,0.82); font-weight: 500; }

/* ─── Sections ─── */
.eng-section {
  padding: 96px 0;
  border-top: 0.5px solid rgba(139,92,246,0.12);
}
.eng-section--alt {
  background: linear-gradient(180deg, rgba(139,92,246,0.04) 0%, transparent 100%);
}
.eng-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--v2);
  margin-bottom: 18px;
}
.eng-kicker--center { text-align: center; }
.eng-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 28px;
}
.eng-h2--center { text-align: center; max-width: 26ch; margin-left: auto; margin-right: auto; }
.eng-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 22px;
}
.eng-body strong { color: rgba(240,238,255,0.85); font-weight: 500; }
.eng-body--center { text-align: center; max-width: 58ch; margin-left: auto; margin-right: auto; }

.eng-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Promise cards */
.eng-promise-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.eng-promise {
  background: var(--bg3);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 26px 22px;
}
.eng-promise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 0.5px solid rgba(139,92,246,0.28);
  background: rgba(139,92,246,0.1);
  color: #c4b5fd;
}
.eng-promise-icon svg {
  width: 20px;
  height: 20px;
}
.eng-promise-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--txt);
}
.eng-promise-text {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
}

/* Model grid */
.eng-model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 52px;
}
.eng-model-card {
  background: var(--bg3);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 36px 32px;
  text-align: left;
}
.eng-model-card--accent {
  border-color: rgba(139,92,246,0.35);
  background: linear-gradient(160deg, rgba(109,40,217,0.1), var(--bg3));
}
.eng-model-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--v2);
  display: block;
  margin-bottom: 10px;
}
.eng-model-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.eng-model-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.eng-model-list {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.eng-model-list li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.eng-model-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--v2);
  font-size: 11px;
}

.eng-approach { max-width: 800px; margin-left: auto; margin-right: auto; }

.eng-sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 36px;
  margin-left: auto;
  width: fit-content;
  max-width: 100%;
}
.eng-sign-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  margin: 0;
}
.eng-sign-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--v2);
  text-transform: uppercase;
}
.eng-sign-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: rgba(240,238,255,0.92);
}
.eng-sign-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139,92,246,0.35);
  box-shadow: 0 4px 20px rgba(109,40,217,0.25);
}

/* Footer */
.eng-footer {
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding: 40px 0 calc(36px + env(safe-area-inset-bottom, 0px));
}
.eng-footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}
.eng-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  text-align: center;
}
.eng-footer-copy::-webkit-scrollbar { display: none; }
.eng-footer-copy small { font-size: inherit; opacity: 0.9; }
.eng-footer-legal {
  color: rgba(196,181,253,0.55);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(196,181,253,0.25);
  transition: color 0.2s;
}
.eng-footer-legal:hover { color: #c4b5fd; }

/* Noise */
body.engagement-page::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 8000;
  opacity: 0.15;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root { --eng-header-x: 32px; }
  .eng-wrap { padding: 0 28px; }
}

@media (max-width: 900px) {
  :root { --site-nav-h: 60px; --eng-header-x: 20px; }
  .site-header { z-index: 1210; }
  .nav-logo img { height: 38px; max-width: 46vw; }
  .nav-toggle { display: flex; z-index: 3; margin-left: auto; }
  .nav-panel--desktop { display: none !important; }
  .nav-panel--drawer {
    display: flex;
    position: fixed;
    top: calc(var(--site-nav-h) + env(safe-area-inset-top, 0px));
    right: 0; bottom: 0;
    width: min(300px, 100vw);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    background: rgba(18,18,36,0.98);
    border-left: 0.5px solid rgba(139,92,246,0.2);
    box-shadow: -12px 0 48px rgba(0,0,0,0.45);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    touch-action: manipulation;
  }
  .nav-panel--drawer[hidden] { display: none !important; }
  .nav-panel--drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-panel--drawer .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .nav-panel--drawer .nav-links a {
    display: block;
    font-size: 16px;
    padding: 14px 4px;
    min-height: 48px;
    color: rgba(240,238,255,0.88);
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    touch-action: manipulation;
  }
  .nav-panel--drawer .btn--nav { width: 100%; justify-content: center; }

  .eng-section-grid,
  .eng-model-grid,
  .eng-promise-cards { grid-template-columns: 1fr; gap: 32px; }
  .eng-hero { padding: 64px 0 72px; }
  .eng-section { padding: 72px 0; }
  .eng-wrap { padding: 0 20px; }
  .eng-h1 { max-width: none; }
}

@media (max-width: 767px) {
  .eng-footer {
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .eng-footer-copy {
    white-space: normal;
    line-height: 1.55;
    font-size: 11px;
    overflow-x: visible;
  }
}

@media (max-width: 480px) {
  .eng-wrap { padding: 0 16px; }
  .nav-logo img { height: 30px; max-width: 52vw; }
  .eng-footer-copy { font-size: 10.5px; }
}
