/* Partenariat institutionnel – hub audacieux */
.sp-partner-hub {
  padding: 64px 0 72px;
  background: linear-gradient(175deg, #f8fbff 0%, #ffffff 50%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.sp-partner-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 71, 255, 0.5),
    transparent
  );
  z-index: 2;
}

/* ── Galaxy background universe ── */
.sp-partner-hub__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Nebula washes */
.sp-hub-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.sp-hub-nebula--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle at 40% 50%, rgba(59, 130, 246, 0.08), transparent 60%);
  top: -250px; right: -100px;
  animation: hubNebulaDrift 25s ease-in-out infinite alternate;
}

.sp-hub-nebula--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle at 60% 50%, rgba(99, 102, 241, 0.06), transparent 60%);
  bottom: -200px; left: -80px;
  animation: hubNebulaDrift 30s ease-in-out infinite alternate-reverse;
}

.sp-hub-nebula--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.04), transparent 60%);
  top: 20%; left: 50%;
  filter: blur(70px);
  animation: hubNebulaPulse 18s ease-in-out infinite alternate;
}

/* ── Atomic orbits ── */
.sp-hub-atom {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-hub-atom--1 {
  width: 320px; height: 320px;
  top: -60px; right: -40px;
  animation: hubAtomFloat 20s ease-in-out infinite alternate;
}

.sp-hub-atom--2 {
  width: 240px; height: 240px;
  bottom: 10%; left: -30px;
  animation: hubAtomFloat 25s ease-in-out infinite alternate-reverse;
}

.sp-hub-atom__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.2);
}

.sp-hub-atom--2 .sp-hub-atom__ring {
  border-color: rgba(99, 102, 241, 0.18);
}

.sp-hub-atom__ring--x {
  animation: hubSpinX 12s linear infinite;
}

.sp-hub-atom__ring--y {
  animation: hubSpinY 14s linear infinite;
}

.sp-hub-atom__ring--z {
  animation: hubSpinZ 10s linear infinite;
}

.sp-hub-atom__core {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #60a5fa, #3b82f6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.2);
  z-index: 1;
}

.sp-hub-atom--2 .sp-hub-atom__core {
  background: radial-gradient(circle at 40% 35%, #a78bfa, #6366f1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 40px rgba(99, 102, 241, 0.15);
}

.sp-hub-atom__electron {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 0 24px rgba(59, 130, 246, 0.2);
}

.sp-hub-atom--2 .sp-hub-atom__electron {
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5), 0 0 24px rgba(99, 102, 241, 0.2);
}

.sp-hub-atom__electron--1 {
  top: 0; left: 50%;
  animation: hubOrbitElectron1 10s linear infinite;
}
.sp-hub-atom__electron--2 {
  top: 50%; right: 0;
  animation: hubOrbitElectron2 12s linear infinite;
}
.sp-hub-atom__electron--3 {
  bottom: 0; left: 50%;
  animation: hubOrbitElectron3 8s linear infinite;
}
.sp-hub-atom__electron--4 {
  top: 50%; left: 0;
  animation: hubOrbitElectron4 14s linear infinite;
}

/* ── Graduation cap ── */
.sp-hub-cap {
  position: absolute;
  top: 25%; left: 7%;
  animation: hubShapeFloat 12s ease-in-out infinite;
}

.sp-hub-cap::before {
  content: '';
  display: block;
  width: 48px;
  height: 0;
  border-bottom: 6px solid rgba(59, 130, 246, 0.12);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.sp-hub-cap::after {
  content: '';
  display: block;
  width: 6px;
  height: 18px;
  background: rgba(59, 130, 246, 0.12);
  margin: 0 auto;
  border-radius: 0 0 2px 2px;
}

.sp-hub-cap--2 {
  top: 55%; right: 8%;
  animation-delay: 5s;
  transform: scale(0.7) rotate(-15deg);
}

.sp-hub-cap--2::before {
  border-bottom-color: rgba(99, 102, 241, 0.1);
}

.sp-hub-cap--2::after {
  background: rgba(99, 102, 241, 0.1);
}

/* ── Diploma scroll ── */
.sp-hub-diploma {
  position: absolute;
  bottom: 25%; right: 12%;
  width: 32px;
  height: 24px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 2px;
  animation: hubShapeFloat 15s ease-in-out infinite 2s;
}

.sp-hub-diploma::before {
  content: '';
  position: absolute;
  top: 4px; left: 6px;
  right: 6px;
  height: 2px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 1px;
  box-shadow: 0 6px 0 rgba(59, 130, 246, 0.08), 0 12px 0 rgba(59, 130, 246, 0.06);
}

.sp-hub-diploma::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent rgba(99, 102, 241, 0.12) transparent transparent;
}

/* ── Book stack ── */
.sp-hub-bookstack {
  position: absolute;
  bottom: 35%; left: 12%;
  animation: hubShapeFloat 18s ease-in-out infinite 4s;
}

.sp-hub-bookstack::before {
  content: '';
  display: block;
  width: 40px;
  height: 6px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 1px;
  box-shadow:
    0 7px 0 rgba(59, 130, 246, 0.06),
    0 14px 0 rgba(59, 130, 246, 0.05),
    0 21px 0 rgba(59, 130, 246, 0.04);
}

.sp-hub-bookstack--2 {
  left: auto; right: 15%;
  bottom: 45%;
  animation-delay: 7s;
  transform: scale(0.6);
}

.sp-hub-bookstack--2::before {
  background: rgba(99, 102, 241, 0.07);
  box-shadow:
    0 7px 0 rgba(99, 102, 241, 0.05),
    0 14px 0 rgba(99, 102, 241, 0.04),
    0 21px 0 rgba(99, 102, 241, 0.03);
}

/* ── Keyframes ── */
@keyframes hubNebulaDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.2); }
}

@keyframes hubNebulaPulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.4); }
}

@keyframes hubAtomFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(15px, -10px) rotate(5deg); }
  66% { transform: translate(-10px, 8px) rotate(-3deg); }
  100% { transform: translate(5px, -15px) rotate(2deg); }
}

@keyframes hubSpinX {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes hubSpinY {
  0% { transform: rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateY(360deg) rotateZ(360deg); }
}

@keyframes hubSpinZ {
  0% { transform: rotateZ(0deg) rotateX(0deg); }
  100% { transform: rotateZ(360deg) rotateX(360deg); }
}

@keyframes hubOrbitElectron1 {
  0% { transform: rotate(0deg) translateY(-160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateY(-160px) rotate(-360deg); }
}

@keyframes hubOrbitElectron2 {
  0% { transform: rotate(0deg) translateX(160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

@keyframes hubOrbitElectron3 {
  0% { transform: rotate(0deg) translateY(160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateY(160px) rotate(-360deg); }
}

@keyframes hubOrbitElectron4 {
  0% { transform: rotate(0deg) translateX(-160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(-160px) rotate(-360deg); }
}

@keyframes hubShapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sp-hub-atom,
  .sp-hub-cap,
  .sp-hub-diploma,
  .sp-hub-bookstack,
  .sp-hub-nebula,
  .sp-hub-atom__electron {
    animation: none !important;
  }

  .sp-hub-atom,
  .sp-hub-cap,
  .sp-hub-diploma,
  .sp-hub-bookstack {
    opacity: 0.5;
  }
}

.sp-partner-hub__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ── Header ──────────────────────────────────────────── */
.sp-partner-hub__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.sp-partner-hub__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.sp-partner-hub__accent {
  color: #ff222d;
  font-weight: 800;
}

.sp-partner-hub__lead {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* ── Cards Grid ──────────────────────────────────────── */
.sp-partner-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sp-partner-hub__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  transition:
    transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.45s ease;
  box-shadow: 0 4px 16px rgba(26, 28, 59, 0.04);
}

.sp-partner-hub__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26, 28, 59, 0.12);
}

.sp-partner-hub__card--uni {
  background: linear-gradient(
    150deg,
    rgba(8, 18, 38, 0.95) 0%,
    rgba(12, 26, 58, 0.92) 25%,
    rgba(16, 34, 76, 0.88) 50%,
    rgba(12, 26, 58, 0.92) 75%,
    rgba(8, 18, 38, 0.95) 100%
  ), url('../assets/img/uni-card-bg-1.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  transition: box-shadow 0.45s ease;
}

.sp-partner-hub__card--uni:hover {
  box-shadow: 0 24px 48px rgba(8, 18, 38, 0.5);
}

.sp-partner-hub__card--talent {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.93) 0%,
    rgba(20, 40, 90, 0.88) 35%,
    rgba(25, 55, 120, 0.82) 65%,
    rgba(15, 23, 42, 0.93) 100%
  ), url('../assets/img/uni-card-bg-2.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.4);
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}

.sp-partner-hub__card--talent:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.55);
}

.sp-partner-hub__card--talent .sp-partner-hub__icon {
  color: #60a5fa;
}

.sp-partner-hub__card--talent .sp-partner-hub__eyebrow {
  color: #93c5fd;
}

.sp-partner-hub__card--talent .sp-partner-hub__text {
  color: rgba(255, 255, 255, 0.85);
}

.sp-partner-hub__card--talent .sp-partner-hub__metrics span {
  color: rgba(255, 255, 255, 0.7);
}

.sp-partner-hub__card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: radial-gradient(circle at 80% 20%, #ffffff, transparent 55%);
  pointer-events: none;
}

.sp-partner-hub__card-body {
  position: relative;
  z-index: 1;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sp-partner-hub__icon {
  font-size: 2rem;
  color: #a78bfa;
  margin-bottom: 14px;
}

.sp-partner-hub__card--talent .sp-partner-hub__icon {
  color: #60a5fa;
}

.sp-partner-hub__card--talent .sp-partner-hub__eyebrow {
  color: #93c5fd;
}

.sp-partner-hub__card--talent .sp-partner-hub__text {
  color: rgba(255, 255, 255, 0.85);
}

.sp-partner-hub__card--talent .sp-partner-hub__metrics span {
  color: rgba(255, 255, 255, 0.7);
}

.sp-partner-hub__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff222d;
  margin: 0 0 8px;
}

.sp-partner-hub__card--uni .sp-partner-hub__icon {
  color: #3b82f6;
}

.sp-partner-hub__card--uni .sp-partner-hub__eyebrow {
  color: #93c5fd;
}

.sp-partner-hub__card--uni .sp-partner-hub__text {
  color: rgba(255, 255, 255, 0.9);
}

.sp-partner-hub__card--uni .sp-partner-hub__metrics span {
  color: rgba(255, 255, 255, 0.7);
}

.sp-partner-hub__card--uni .sp-partner-hub__icon {
  color: #60a5fa;
}

.sp-partner-hub__card--uni .sp-partner-hub__metrics strong {
  color: #fbbf24;
}

.sp-partner-hub__card--uni .sp-partner-hub__metrics span {
  opacity: 0.9;
}

.sp-partner-hub__card-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.sp-partner-hub__text {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 18px;
  opacity: 0.88;
}

/* ── Metrics ─────────────────────────────────────────── */
.sp-partner-hub__metrics {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  gap: 24px;
}

.sp-partner-hub__metrics strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.sp-partner-hub__card--talent .sp-partner-hub__metrics strong {
  font-size: 2rem;
  color: #fff;
  text-shadow: none;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.sp-partner-hub__card--uni .sp-partner-hub__metrics strong {
  font-size: 2rem;
  background: linear-gradient(135deg, #d946ef, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-partner-hub__metrics span {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* ── Buttons ─────────────────────────────────────────── */
.sp-partner-hub__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sp-partner-hub__btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sp-partner-hub__btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.sp-partner-hub__btn--fill {
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.sp-partner-hub__btn--fill:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
