/* ============================================================
   ID Cluster — sub-presentation triggered from Slide 5 platform
   Prefix: ipc-
   Each slide is 1920×1080 inside the existing #ip-stage scaling.
   Design source: Figma "6 - ID Cluster -1..7"
   ============================================================ */

/* ─── Overlay container ──────────────────────────────────── */
.ipc-overlay {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 30;
}
.ipc-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Each sub-slide — couleur de fond identique aux slides principales (--ip-bg) */
.ipc-slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  background: var(--ip-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateX(40px);
  overflow: hidden;
}
.ipc-slide.is-active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.ipc-slide.is-prev {
  opacity: 0;
  transform: translateX(-40px);
}

/* Background blue wash on left (image 2 in Figma) */
.ipc-bg {
  display: none;
}

/* Glass wrap (curved frame with arrow notches) */
.ipc-glass {
  position: absolute;
  left: 69px;
  top: 75px;
  width: 1783px;
  height: 931px;
  pointer-events: none;
}
.ipc-glass svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Burger (close → return to platform slide) */
.ipc-burger {
  position: absolute;
  left: 36px;
  top: 41px;
  width: 49px;
  height: 49px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  z-index: 5;
  transition: opacity 0.2s;
}
.ipc-burger:hover { opacity: 0.75; }
.ipc-burger span {
  display: block;
  width: 49px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Nav arrows positioned in the notches (left: ~10, right: ~10 inside glass) */
.ipc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.ipc-arrow:hover { opacity: 0.75; }
.ipc-arrow:active { opacity: 0.55; }
.ipc-arrow svg {
  width: 28px;
  height: 52px;
  fill: none;
}
.ipc-arrow--left  { left: 79px; }   /* glass left edge (69) + 10 */
.ipc-arrow--right { right: 69px; }
.ipc-arrow.is-disabled { opacity: 0.2; pointer-events: none; }

/* Eyebrow label (small grey, top-left of content, replaces Figma "Securing Fundamental Identities" etc.) */
.ipc-eyebrow {
  position: absolute;
  left: 208px;
  top: 153px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 37px;
  line-height: 90px;
  color: #a8a6b1;
  white-space: nowrap;
}

/* Big title */
.ipc-title {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 63px;
  line-height: 82px;
  color: #fff;
  margin: 0;
}

/* Lead paragraph (subtitle under title) */
.ipc-lead {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

/* Step counter — masqué (retiré sur demande) */
.ipc-step {
  display: none;
}

/* ─────────────────────────────────────────────────────────
   SLIDE 1 — Diagram
───────────────────────────────────────────────────────── */
.ipc-s1-title {
  left: 50%;
  top: 119px;
  width: 986px;
  margin-left: -493px;
  text-align: center;
}

.ipc-s1-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
  clip-path: inset(75px 68px 74px 69px round 37px);
}

/* Concentric circles centered around (960, 943) approx. — Figma had ellipses at top:417/568/622/824 */
.ipc-circle {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
}
.ipc-circle--outer {
  width: 2008px;
  height: 2008px;
  top: 387px;
  background: radial-gradient(circle, rgba(83, 58, 253, 0.18) 0%, rgba(0, 5, 123, 0) 60%);
  border: 1.5px dashed rgba(255,255,255,0.18);
}
.ipc-circle--mid {
  width: 755.77px;
  height: 755.77px;
  top: 568.8px;
  background: rgba(83, 58, 253, 0.32);
}
.ipc-circle--inner {
  width: 647.6px;
  height: 647.6px;
  top: 622.88px;
  background: rgba(120, 100, 255, 0.45);
}
.ipc-circle--core {
  width: 362px;
  height: 362px;
  top: 824px;
  background: #c8c2fa;
}

/* Shield icon au-dessus du label "iD Cluster" */
.ipc-s1-shield-icon {
  position: absolute;
  left: 50%;
  top: 685px;
  transform: translateX(-50%);
  width: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.ipc-s1-shield-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.ipc-s1-cluster-label {
  position: absolute;
  left: 50%;
  top: 747px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 44px;
  color: #fff;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ipc-s1-fundamental {
  position: absolute;
  left: 50%;
  top: 909px;
  text-align: center;
  color: #ffffff;
  transform: translateX(-50%);
}
.ipc-s1-fundamental b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
.ipc-s1-fundamental span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 34px;
}
.ipc-s1-fundamental em {
  display: block;
  font-style: normal;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 34px;
}

/* Orange action boxes — centrés EXACTEMENT sur les points du cercle
   (cx=960, cy=750, r=320 ; dx=292, dy=130 → tous à distance √(292²+130²)≈320) */
.ipc-s1-action {
  position: absolute;
  background: #fd7709;
  border-radius: 11.677px;
  padding: 18px 22px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.ipc-s1-action b {
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}
.ipc-s1-action span {
  font-weight: 400;
  font-size: 20px;
  line-height: 33px;
}
.ipc-s1-action--secure       { left: 668px;  top: 620px; }
.ipc-s1-action--issue        { left: 1252px; top: 620px; }
.ipc-s1-action--authenticate { left: 668px;  top: 880px; }
.ipc-s1-action--connect      { left: 1252px; top: 880px; }

/* Sector cards — centrés EXACTEMENT sur les points de l'arc (cx=975, cy=1125, r=750)
   répartis sur 132° (angles 204°, 230.4°, 256.8°, 283.2°, 309.6°, 336°) */
.ipc-s1-sector {
  position: absolute;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  background: rgba(14, 9, 62, 0.82);
  border-radius: 14px;
  padding: 10px 16px 12px;
}
.ipc-s1-sector .ipc-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.ipc-s1-sector b {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  margin-top: 4px;
}
.ipc-s1-sector span {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}
.ipc-s1-sector--social    { left: 290px;  top: 790px; }
.ipc-s1-sector--elections { left: 497px;  top: 517px; }
.ipc-s1-sector--health    { left: 805px;  top: 365px; }
.ipc-s1-sector--bank      { left: 1145px; top: 365px; }
.ipc-s1-sector--telcos    { left: 1453px; top: 517px; }
.ipc-s1-sector--events    { left: 1660px; top: 790px; }

/* Connector arcs (decorative dashed curves) */
.ipc-s1-arcs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────────────────────
   SLIDES 2–7 shared content layout
───────────────────────────────────────────────────────── */
/* Title positions — top: 265px pour tous (eyebrow finit à 153+90=243px, +22px de marge) */
.ipc-s2-title { left: 208px; top: 265px; right: 208px; }
.ipc-s3-title { left: 208px; top: 265px; right: 130px; }
.ipc-s4-title { left: 208px; top: 265px; right: 208px; }
.ipc-s5-title { left: 208px; top: 265px; right: 130px; text-align: left; }
.ipc-s6-title { left: 208px; top: 265px; right: 130px; z-index: 5; }
.ipc-s7-title { left: 208px; top: 265px; right: 130px; z-index: 5; }

/* ─── SLIDE 2 — Multi-layer verification ─────────────────── */
.ipc-s2-cols {
  position: absolute;
  left: 200px;
  right: 200px;
  top: 470px;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  align-items: flex-start;
}
.ipc-s2-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.ipc-s2-col-img {
  width: 380px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.ipc-s2-col-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ipc-s2-col h3 {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 14px;
}
.ipc-s2-col p {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  margin: 0;
  max-width: 420px;
}

/* ─── SLIDE 3 — Authenticating Users ─────────────────────── */
.ipc-s3-lead {
  left: 208px;
  top: 365px;
  right: 130px;
}
/* Illustration unique authenticate-user S3 — contrainte pour ne pas déborder */
.ipc-s3-illustration {
  position: absolute;
  left: 190px;
  top: 460px;
  width: 800px;
  height: 540px;
  max-width: 800px;
  max-height: 540px;
  object-fit: contain;
  display: block;
}
.ipc-s3-features {
  position: absolute;
  left: 1020px;
  width: 600px;
  top: 490px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.4;
}
.ipc-s3-features h4 {
  font-weight: 700;
  font-size: 25px;
  margin: 0 0 4px;
}
.ipc-s3-features p {
  margin: 0 0 28px;
}
.ipc-s3-icons {
  display: block;
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}

/* ─── SLIDE 4 — Issuing functional identities ───────────── */
.ipc-s4-lead {
  left: 208px;
  top: 365px;
  right: 130px;
}
.ipc-s4-phones {
  position: absolute;
  left: 208px;
  top: 460px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* SVG phones directement depuis les assets Figma */
.ipc-s4-svg-phone {
  height: 480px;
  width: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.4));
}
.ipc-s4-phone {
  width: 230px;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}
.ipc-s4-phone-statusbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 4px;
  font-family: 'SF Pro Text', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.ipc-s4-phone-statusbar .ipc-time { color: #fff; }
.ipc-s4-phone-statusbar .ipc-icons { display: inline-flex; gap: 4px; align-items: center; }
.ipc-s4-phone-header {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 1px;
  padding: 4px 0 10px;
  color: #fff;
}
.ipc-s4-phone-header em { font-style: italic; font-weight: 800; }
.ipc-s4-phone-photo {
  position: relative;
  margin: 0 14px;
  border-radius: 18px;
  overflow: hidden;
  height: 230px;
  background: #f0f0f0;
}
.ipc-s4-phone-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ipc-s4-phone-name {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #270f74;
  padding: 10px 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ipc-s4-phone-meta {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 9px;
  color: rgba(0,0,0,0.55);
  padding: 0 8px 8px;
  line-height: 1.3;
  min-height: 22px;
}
.ipc-s4-phone-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px;
}
.ipc-s4-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
}
.ipc-s4-phone-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  color: #535d66;
}
.ipc-s4-phone-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ipc-s4-phone-tabbar .is-active { color: #270f74; font-weight: 600; }

/* Variants per identity */
.ipc-s4-phone--fan { background: linear-gradient(180deg, #ee2538 0%, #ee2538 90px, #fff 90px); }
.ipc-s4-phone--fan .ipc-s4-phone-row.r1 { background: #1d62ad; }
.ipc-s4-phone--fan .ipc-s4-phone-row.r2 { background: #f59000; }
.ipc-s4-phone--fan .ipc-s4-phone-row.r3 { background: #fff; color: #270f74; border: 1px solid #e5e7eb; }
.ipc-s4-phone--social { background: linear-gradient(180deg, #2ba89a 0%, #2ba89a 90px, #fff 90px); }
.ipc-s4-phone--social .ipc-s4-phone-row.r1 { background: #f59000; }
.ipc-s4-phone--social .ipc-s4-phone-row.r2 { background: #2ba89a; }
.ipc-s4-phone--social .ipc-s4-phone-row.r3 { background: #fff; color: #270f74; border: 1px solid #e5e7eb; }
.ipc-s4-phone--bank { background: linear-gradient(180deg, #fff 0%, #fff 100%); color: #006c41; }
.ipc-s4-phone--bank .ipc-s4-phone-header { color: #006c41; }
.ipc-s4-phone--bank .ipc-s4-phone-rows {
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-top: 10px;
}
.ipc-s4-phone-qr {
  width: 130px;
  height: 130px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="white"/><g fill="black"><rect x="5" y="5" width="20" height="20"/><rect x="75" y="5" width="20" height="20"/><rect x="5" y="75" width="20" height="20"/><rect x="10" y="10" width="10" height="10" fill="white"/><rect x="80" y="10" width="10" height="10" fill="white"/><rect x="10" y="80" width="10" height="10" fill="white"/><rect x="35" y="10" width="4" height="4"/><rect x="42" y="14" width="4" height="4"/><rect x="50" y="10" width="4" height="4"/><rect x="58" y="14" width="4" height="4"/><rect x="35" y="40" width="4" height="4"/><rect x="42" y="44" width="4" height="4"/><rect x="50" y="40" width="4" height="4"/><rect x="58" y="44" width="4" height="4"/><rect x="35" y="70" width="4" height="4"/><rect x="42" y="74" width="4" height="4"/><rect x="50" y="70" width="4" height="4"/><rect x="58" y="74" width="4" height="4"/><rect x="65" y="40" width="4" height="4"/><rect x="72" y="44" width="4" height="4"/><rect x="80" y="40" width="4" height="4"/><rect x="65" y="70" width="4" height="4"/></g></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  border: 1px solid rgba(0,0,0,0.08);
}
.ipc-s4-phone--bank .ipc-s4-phone-meta {
  color: #006c41;
  font-weight: 400;
}

.ipc-s4-features {
  position: absolute;
  left: 1020px;
  right: 130px;
  top: 490px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.4;
}
.ipc-s4-features h4 {
  font-weight: 700;
  font-size: 25px;
  margin: 0 0 4px;
}
.ipc-s4-features p {
  margin: 0 0 28px;
}

/* ─── SLIDE 5 — Connecting services (ecosystem map) ───── */
.ipc-s5-lead {
  left: 208px;
  top: 360px;
  right: 130px;
}

/* Diagramme unique structure.svg — centré horizontalement et verticalement */
.ipc-s5-structure {
  position: absolute;
  left: 50%;
  top: 460px;
  transform: translateX(-50%);
  width: 1400px;
  max-width: calc(100% - 200px);
  height: 560px;
  max-height: 560px;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.ipc-s5-map {
  position: absolute;
  left: 50%;
  top: 372px;
  width: 1100px;
  height: 660px;
  transform: translateX(-50%);
  font-family: 'Inter', 'Poppins', sans-serif;
}

/* Left logos group (VERIDOS, MOSIP, IDEMIA) */
.ipc-s5-left {
  position: absolute;
  left: 220px;
  top: 618px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.ipc-s5-logo {
  height: auto;
  max-height: 46px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.ipc-s5-logo--mosip {
  filter: none; /* MOSIP keeps its colors */
}

/* "Identity Infrastructure" tag (left side, same level as "Border control") */
.ipc-s5-infra-tag {
  position: absolute;
  left: 340px;
  top: 700px;
  display: inline-flex;
}

/* "Border control" tag (right side of diagram, aligned with Identity Infrastructure) */
.ipc-s5-border-tag {
  position: absolute;
  left: 1317px;
  top: 700px;
  display: inline-flex;
}
.ipc-s5-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
.ipc-s5-row--top {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: #151756;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 18px 22px;
  gap: 16px;
}
.ipc-s5-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3989bb;
  color: #fff;
  border-radius: 6px;
  padding: 12px 26px;
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
}
.ipc-s5-tag--purple { background: #533afd; }
.ipc-s5-tag--violet { background: #9639bb; padding: 22px 14px; min-width: 90px; }

.ipc-s5-mid {
  position: absolute;
  left: 50%;
  top: 130px;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  align-items: center;
}
.ipc-s5-cluster {
  width: 156px;
  height: 156px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b2fb9 3%, #131a48 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Kanit', 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 28px;
  position: relative;
}
.ipc-s5-cluster::before,
.ipc-s5-cluster::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  top: 50%;
}
.ipc-s5-cluster::before { left: -110px; }
.ipc-s5-cluster::after  { right: -110px; }

.ipc-s5-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ipc-s5-bottom {
  position: absolute;
  left: 50%;
  top: 320px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.ipc-s5-row--bottom {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
}

/* ─── SLIDE 6 — Biometrics ───────────────────────────────── */
.ipc-s6-lead {
  left: 208px;
  top: 365px;
  width: 600px;
  z-index: 5;
}
.ipc-s6-features {
  position: absolute;
  left: 208px;
  top: 580px;
  width: 553px;
  z-index: 5;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.45;
}
.ipc-s6-features h4 {
  font-weight: 700;
  font-size: 25px;
  margin: 0 0 4px;
}
.ipc-s6-features p {
  margin: 0 0 26px;
}
.ipc-s6-img {
  position: absolute;
  left: 809px;
  top: 111px;
  width: 993px;
  height: 900px;
  background-image: url('../assets/figma/id-cluster/s6-biometrics.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  pointer-events: none;
  z-index: 1;
}

/* ─── SLIDE 7 — Fraud Intelligence ───────────────────────── */
.ipc-s7-lead {
  left: 208px;
  top: 365px;
  width: 766px;
}
.ipc-s7-features {
  position: absolute;
  left: 208px;
  top: 490px;
  width: 660px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.45;
}
.ipc-s7-features h4 {
  font-weight: 700;
  font-size: 25px;
  margin: 0 0 4px;
}
.ipc-s7-features p {
  margin: 0 0 26px;
}
.ipc-s7-img {
  position: absolute;
  left: 990px;
  top: 210px;
  width: 860px;
  height: 760px;
  border-radius: 27px;
  object-fit: cover;
  object-position: center;
}
