@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

.ap {
  --ap-ink: #0b1f44;
  --ap-muted: #4a6285;
  --ap-line: rgba(15, 48, 96, 0.12);
  --ap-accent: #1d4ed8;
  --ap-accent-soft: #2563eb;
  --ap-bg: #f3f8fc;
  --ap-surface: #ffffff;
  --ap-sky: #d9eefb;
  font-family: "Inter", sans-serif;
  color: var(--ap-ink);
  background: var(--ap-surface);
}

.ap h1,
.ap h2,
.ap h3,
.ap .ap-metrics-list strong,
.ap-timeline-year {
  font-family: "Inter", sans-serif;
  letter-spacing: -0.03em;
}

/* Bannière uniquement : police actuelle (Space Grotesk + italique) */
.ap .ap-brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.045em;
}

.ap a {
  text-decoration: none;
}

/* ── Hero ── */
.ap-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 55% 70% at 88% 18%, rgba(56, 189, 248, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 40% 50% at 8% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
    linear-gradient(118deg, #eaf5fc 0%, #d7eefb 48%, #c8e5f7 100%);
}

.ap-hero--solo {
  padding: 88px 0 72px;
  text-align: left;
}

.ap-hero--solo .ap-hero-copy {
  max-width: 44rem;
}

.ap-hero--solo .ap-lead {
  margin-bottom: 0;
  max-width: 40rem;
  font-size: 1.15rem;
}

.ap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 68, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  pointer-events: none;
}

.ap-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.ap-brand {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--ap-ink);
  font-style: italic;
  animation: ap-rise 0.7s ease both;
}

.ap-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
  color: #16315f;
  animation: ap-rise 0.7s ease 0.08s both;
}

.ap-lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ap-muted);
  animation: ap-rise 0.7s ease 0.16s both;
}

.ap-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: ap-rise 0.7s ease 0.24s both;
}

.ap-hero-visual {
  display: flex;
  justify-content: center;
  animation: ap-float-in 0.9s ease 0.18s both;
}

.ap-hero-visual img {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(15, 48, 96, 0.14));
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ap-btn-primary {
  background: var(--ap-accent);
  color: #fff;
}

.ap-btn-primary:hover {
  background: #1e40af;
  color: #fff;
  transform: translateX(2px);
}

.ap-btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ap-ink);
  border: 1px solid rgba(15, 48, 96, 0.12);
}

.ap-btn-ghost:hover {
  background: #fff;
  color: var(--ap-ink);
}

/* ── Metrics ── */
.ap-metrics {
  padding: 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.ap-metrics-list {
  list-style: none;
  margin: 0;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 48, 96, 0.06);
}

.ap-metrics-list li {
  text-align: center;
  padding: 8px 10px;
}

.ap-metrics-list strong {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--ap-ink);
  margin-bottom: 4px;
}

.ap-metrics-list span {
  color: var(--ap-muted);
  font-size: 0.92rem;
}

/* ── Shared sections ── */
.ap-story,
.ap-infra,
.ap-team,
.ap-timeline {
  padding: 88px 0;
}

.ap-solutions {
  padding: 88px 0 100px;
}

.ap-section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.ap-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ap-section-head h2,
.ap-story h2 {
  margin: 0 0 12px;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ap-section-head p,
.ap-story p,
.ap-infra article p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ap-story p + p {
  margin-top: 14px;
}

.ap-note {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid var(--ap-line);
  font-size: 0.98rem !important;
}

/* ── Story ── */
.ap-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.ap-story-figure {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.2), transparent 45%),
    linear-gradient(160deg, #eef6fc, #e2eef8);
}

.ap-story-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Infra ── */
.ap-infra {
  background:
    linear-gradient(180deg, #f7fbfe 0%, #eef5fb 100%);
}

.ap-infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.ap-infra-grid article {
  padding-top: 8px;
  border-top: 2px solid rgba(37, 99, 235, 0.35);
}

.ap-infra-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ap-ink);
}

.ap-infra-flag {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Team ── */
.ap-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 40px 64px;
}

.ap-person {
  text-align: center;
}

.ap-person img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  background: #e8f1fa;
  transition: transform 0.35s ease;
}

.ap-person:hover img {
  transform: translateY(-4px);
}

.ap-person h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 650;
}

.ap-person > p {
  margin: 0 0 14px;
  color: var(--ap-accent-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.ap-person-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ap-person-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ap-ink);
  background: var(--ap-bg);
  border: 1px solid var(--ap-line);
  transition: background 0.2s ease, color 0.2s ease;
}

.ap-person-links a:hover {
  background: var(--ap-accent);
  color: #fff;
  border-color: var(--ap-accent);
}

.ap-person-links .ap-icon-x svg {
  display: block;
}

/* ── Timeline ── */
.ap-timeline {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
    var(--ap-bg);
}

.ap-timeline-list {
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem 0 0;
  max-width: 920px;
  position: relative;
}

.ap-timeline-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(37, 99, 235, 0.55) 18%,
    rgba(37, 99, 235, 0.55) 82%,
    rgba(37, 99, 235, 0.12) 100%
  );
}

.ap-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 1.75rem;
  min-height: 5.5rem;
}

.ap-timeline-item:last-child {
  margin-bottom: 0;
}

.ap-timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.ap-timeline-card {
  position: relative;
  max-width: 360px;
  padding: 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(15, 48, 96, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 48, 96, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ap-timeline-item:hover .ap-timeline-card {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1);
}

.ap-timeline-item--left .ap-timeline-card {
  justify-self: end;
  margin-right: 2.25rem;
  text-align: right;
}

.ap-timeline-item--right .ap-timeline-card {
  grid-column: 2;
  justify-self: start;
  margin-left: 2.25rem;
  text-align: left;
}

.ap-timeline-year {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.ap-timeline-text {
  margin: 0;
  color: #162E62;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ── Solutions ── */
.ap-solutions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ap-solutions-list a {
  display: block;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--ap-line);
  background: var(--ap-surface);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ap-solutions-list a:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #f7fbff;
  transform: translateY(-2px);
}

.ap-solutions-list strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  font-style: normal;
  color: var(--ap-ink);
}

.ap-solutions-list span {
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Motion ── */
@keyframes ap-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ap-float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-brand,
  .ap-hero h1,
  .ap-lead,
  .ap-hero-cta,
  .ap-hero-visual {
    animation: none;
  }

  .ap-person:hover img,
  .ap-solutions-list a:hover,
  .ap-btn-primary:hover {
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .ap-hero-grid,
  .ap-story-grid,
  .ap-infra-grid,
  .ap-solutions-list {
    grid-template-columns: 1fr;
  }

  .ap-hero-visual {
    order: -1;
  }

  .ap-hero-visual img {
    width: min(100%, 360px);
  }

  .ap-metrics-list {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ap-metrics-list li {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
  }

  .ap-metrics-list strong {
    margin-bottom: 0;
    min-width: 7rem;
  }

  .ap-team-grid {
    grid-template-columns: 1fr;
  }

  .ap-timeline-list {
    max-width: 520px;
    padding-left: 0;
  }

  .ap-timeline-list::before {
    left: 11px;
    transform: none;
  }

  .ap-timeline-item {
    display: block;
    margin-bottom: 1.15rem;
    min-height: 0;
    padding-left: 2.5rem;
  }

  .ap-timeline-dot {
    left: 11px;
    top: 1.35rem;
    margin: 0 0 0 -8px;
  }

  .ap-timeline-item--left .ap-timeline-card,
  .ap-timeline-item--right .ap-timeline-card {
    grid-column: auto;
    justify-self: stretch;
    margin: 0;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .ap-hero,
  .ap-story,
  .ap-infra,
  .ap-team,
  .ap-timeline,
  .ap-solutions {
    padding-left: 0;
    padding-right: 0;
  }

  .ap-hero {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .ap-story,
  .ap-infra,
  .ap-team,
  .ap-timeline,
  .ap-solutions {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .ap-metrics {
    margin-top: -18px;
  }

  .ap-metrics-list {
    border-radius: 12px;
    padding: 16px 18px;
  }
}

/* ── Trust (alternating) ── */
.ap-trust {
  padding: 88px 0 96px;
  background: #fff;
  color: var(--ap-ink);
}

.ap-trust-intro {
  max-width: 44rem;
  margin: 0 auto 56px;
  text-align: center;
}

.ap-trust-intro h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ap-ink);
  letter-spacing: -0.02em;
}

.ap-trust-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.ap-trust-row:last-child {
  margin-bottom: 0;
}

.ap-trust-row--reverse .ap-trust-copy {
  order: 1;
}

.ap-trust-row--reverse .ap-trust-media {
  order: 2;
}

.ap-trust-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  box-shadow: 0 16px 40px rgba(15, 48, 96, 0.08);
}

.ap-trust-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 380px;
  object-fit: cover;
}

.ap-trust-media--network {
  max-height: 340px;
}

.ap-trust-media--network img {
  min-height: 0;
  height: 340px;
  max-height: 340px;
  object-fit: cover;
  object-position: center 42%;
}

.ap-trust-copy h3 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--ap-ink);
  letter-spacing: -0.03em;
}

.ap-trust-copy > p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.ap-trust-peers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}

.ap-trust-peer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 58px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f7fbfe;
  border: 1px solid var(--ap-line);
}

.ap-trust-peer img {
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
  opacity: 0.85;
}

.ap-trust-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .ap-trust-row,
  .ap-trust-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ap-trust-row--reverse .ap-trust-copy,
  .ap-trust-row--reverse .ap-trust-media {
    order: initial;
  }

  .ap-trust-row--reverse .ap-trust-media {
    order: -1;
  }

  .ap-trust-media img {
    min-height: 220px;
    max-height: 280px;
  }
}
