:root {
  --apx-blue: #0d6efd;
  --apx-blue-dark: #0a58ca;
  --apx-bg: #f5f7fa;
  --apx-border: #dee2e6;
  --apx-text-soft: #6c757d;
  --apx-header-height: 140px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--apx-bg);
  color: #212529;
}

/* ===== Header ===== */

.apx-header {
  min-height: var(--apx-header-height);
  background: #fff;
  border-bottom: 1px solid var(--apx-border);
}

.apx-header-inner {
  min-height: var(--apx-header-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.apx-brand-logo {
  width: 70px;
  height: 70px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.apx-header-identity {
  padding-left: 1.5rem;
  border-left: 1px solid var(--apx-border);
}

.apx-header-title {
  color: #161616;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.apx-header-tagline {
  margin-top: .35rem;
  font-size: 1rem;
  line-height: 1.4;
}

.apx-header-points {
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: .45rem .75rem;
}

.apx-header-point {
  padding: .55rem .75rem;
  border: 1px solid var(--apx-border);
  border-radius: .6rem;
  background: #fff;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

.apx-header-point i {
  margin-right: .4rem;
  color: var(--apx-blue);
}

/* ===== Navigation ===== */

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--apx-border);
  box-shadow: 0 .15rem .35rem rgba(0, 0, 0, .025);
}

.navbar .nav-link {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.navbar .nav-link i {
  margin-right: .25rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--apx-blue);
}

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

.hero {
  padding: 3rem 0 1.5rem;
}

.hero-card {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(13, 110, 253, .12),
      transparent 34%
    ),
    #fff;
  border: 1px solid var(--apx-border);
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .05);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--apx-blue-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 800px;
  color: #495057;
  font-size: 1.2rem;
}

.hero-badges .badge {
  padding: .65rem .8rem;
  border: 1px solid var(--apx-border);
  font-weight: 600;
}

/* ===== Titres ===== */

main h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #161616;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

main h1 i {
  font-size: .75em;
  vertical-align: .05em;
}

main h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #161616;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

main h2 i {
  font-size: .85em;
  vertical-align: .03em;
}

main h3 {
  margin-top: 0;
  margin-bottom: .75rem;
  color: #161616;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

main h3 i {
  font-size: .85em;
  vertical-align: .03em;
}

.section-title {
  margin-bottom: 1.5rem;
}

/* ===== Cartes ===== */

.feature-card,
.content-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--apx-border);
  border-radius: .8rem;
  box-shadow: 0 .25rem .85rem rgba(0, 0, 0, .035);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: .7rem;
  background: rgba(13, 110, 253, .08);
  color: var(--apx-blue);
  font-size: 1.35rem;
}

/* ===== Résultats ===== */

.result-detail + .result-detail {
  margin-top: 1.75rem;
}

.tech-result + .tech-result {
  margin-top: 1rem;
}

/* ===== Fonctionnement ===== */

.flow-step {
  position: relative;
  padding-left: 4.25rem;
}

.flow-step-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--apx-blue);
  color: #fff;
  font-weight: 700;
}

/* ===== Blocs techniques ===== */

.tech-line {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: .7rem;
  background: #101820;
  color: #e9ecef;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: .92rem;
}

.tech-line .muted {
  color: #8fa3b8;
}

/* ===== CTA ===== */

.cta-card {
  background:
    linear-gradient(
      135deg,
      rgba(13, 110, 253, .97),
      rgba(10, 88, 202, .97)
    );
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 .75rem 2rem rgba(13, 110, 253, .20);
}

.cta-card .btn-light {
  color: var(--apx-blue-dark);
  font-weight: 600;
}

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

.apx-footer {
  margin-top: 2rem;
  background: #fff;
  border-top: 1px solid var(--apx-border);
}

.apx-footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== Responsive ===== */

@media (max-width: 991.98px) {
  .apx-header {
    min-height: auto;
  }

  .apx-header-inner {
    min-height: auto;
    padding: 1.25rem 0;
    flex-wrap: wrap;
  }

  .apx-header-points {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .apx-header-identity {
    padding-left: 1rem;
  }

  .apx-brand-logo {
    width: 62px;
    height: 62px;
  }

  .apx-header-points {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 1rem;
  }

  .section-title {
    margin-bottom: 1.25rem;
  }

  .result-detail + .result-detail {
    margin-top: 1.5rem;
  }

  .apx-footer {
    margin-top: 1.5rem;
  }

  .apx-footer-inner {
    padding: 1.25rem 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  main h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  main h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  main h3 {
    font-size: 1.15rem;
    line-height: 1.35;
  }
}

.tech-result-ok {
  color: #4ade80;
}