/* Expérience éditoriale du cluster QI. */
#iq-bank-info { margin: 12px 0; font-size: 12px; line-height: 1.6; color: #625574; text-align: center; }
body.is-iq-play main > .sr-compact-heading { display: none !important; }
body.is-iq-play:not(.is-iq-result) .sp-toolbar,
body.is-iq-play:not(.is-iq-result) .sp-panel { display: none !important; }
.iq-cube-figure { margin: 12px auto; width: min(220px, 100%); text-align: center; }
.iq-cube-figure svg { display: block; width: 100%; height: auto; }
.iq-cube-figure figcaption { color: #1e40af; font-weight: 800; }
.iq-stroop-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; margin: 20px 0; padding: 20px 6px; border: 1px solid #bfdbfe; border-radius: 16px; background: #fff; }
.iq-stroop-group span { text-align: center; font-size: clamp(16px, 4.5vw, 26px); font-weight: 900; }
#iq-learning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.iq-learning-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e8e1f2;
  border-radius: 16px;
  background: #faf8fd;
}
.iq-learning-card h3 { margin: 0 0 8px; font-size: 15px; color: #1e3a8a; }
.iq-learning-card p { font-size: 13px; line-height: 1.6; color: #5f566c; }
.iq-learning-card .iq-learning-meta { font-size: 12px; font-weight: 750; }
.iq-learning-card button, #iq-download {
  min-height: 44px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #1e40af;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.iq-learning-card button:focus-visible, #iq-download:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
@media (max-width: 640px) { #iq-learning { grid-template-columns: 1fr; } }
@media print { .iq-learning-card { break-inside: avoid; } .iq-learning-card button { display: none; } }
.page-tests-qi main {
  max-width: 72rem;
}

.page-tests-qi main > .text-center.mb-6 {
  max-width: 48rem;
  margin: 1.5rem auto 2rem;
}

.page-tests-qi #lcp-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -.045em;
}

.iq-hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, .88fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  overflow: hidden;
  margin: 0 0 2rem;
  border: 1px solid #322052 !important;
  border-radius: 2rem !important;
  background:
    radial-gradient(circle at 84% 8%, rgba(96, 165, 250, .24), transparent 28%),
    linear-gradient(135deg, #181127 0%, #24143f 55%, #35175f 100%) !important;
  padding: clamp(1.6rem, 4.5vw, 3.75rem) !important;
  color: #fff;
  box-shadow: 0 28px 70px rgba(28, 18, 48, .2) !important;
}

.iq-hub-hero::before {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, .025), 0 0 0 7rem rgba(255, 255, 255, .018);
  content: "";
}

.iq-hub-hero__copy,
.iq-hub-preview {
  position: relative;
  z-index: 1;
}

.iq-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 999px;
  background: rgba(37, 99, 235, .16);
  padding: .48rem .75rem;
  color: #bfdbfe;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iq-hub-hero h2 {
  max-width: 40rem;
  margin: 1.2rem 0 .9rem;
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.05em;
}

.iq-hub-hero__copy > p {
  max-width: 39rem;
  margin: 0;
  color: #cbc4d8;
  font-size: clamp(.96rem, 1.7vw, 1.08rem);
  line-height: 1.72;
}

.iq-hub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.55rem;
}

.iq-hub-cta a {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border-radius: .95rem;
  padding: 0 1.15rem;
  font-size: .9rem;
  font-style: normal;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.iq-hub-cta a:hover {
  transform: translateY(-2px);
}

.iq-hub-cta__primary {
  background: #fff;
  color: #3f1b72;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.iq-hub-cta__secondary {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.iq-hub-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  margin: 1.45rem 0 0;
  padding: 0;
  color: #bfb7cc;
  font-size: .75rem;
  font-weight: 700;
  list-style: none;
}

.iq-hub-trust li {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}

.iq-hub-trust i {
  color: #93c5fd;
}

.iq-hub-preview {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .08);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.iq-hub-preview__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #cfc8da;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iq-hub-preview__top span:last-child {
  color: #93c5fd;
}

.iq-hub-preview__score {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.15rem 0;
}

.iq-hub-preview__score strong {
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 12px 24px rgba(59, 16, 116, .35);
}

.iq-hub-preview__score span {
  color: #fff;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.25;
}

.iq-hub-domains {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.iq-hub-domains span {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  padding: .38rem .55rem;
  color: #e8e4ef;
  font-size: .66rem;
  font-weight: 750;
}

.iq-hub-preview > p {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: .85rem;
  color: #bfb7cc;
  font-size: .68rem;
  line-height: 1.45;
}

.iq-hub-paths {
  margin: 0 0 2rem;
  border: 1px solid #e7e1ee;
  border-radius: 1.75rem;
  background: #fff;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  box-shadow: 0 14px 36px rgba(32, 23, 49, .07);
}

.iq-hub-section-head {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.iq-hub-section-head > span,
.iq-hub-tool small {
  color: #2563eb;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.iq-hub-section-head h2 {
  margin: .35rem 0 .35rem;
  color: #20182f;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -.035em;
}

.iq-hub-section-head p {
  margin: 0;
  color: #71697d;
  font-size: .9rem;
}

.iq-hub-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.iq-hub-path {
  position: relative;
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  border: 1px solid #e7e2eb;
  border-radius: 1.25rem;
  background: #faf9fc;
  padding: 1.2rem;
  color: #282032;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.iq-hub-path:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgba(60, 38, 89, .1);
}

.iq-hub-path--featured {
  border-color: #3b82f6;
  background: linear-gradient(145deg, #f7f3ff, #fff);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.iq-hub-path__badge {
  position: absolute;
  top: -.58rem;
  right: .85rem;
  border-radius: 999px;
  background: #1d4ed8;
  padding: .28rem .55rem;
  color: #fff;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.iq-hub-path__tag {
  color: #675a78;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iq-hub-path > strong {
  margin-top: .8rem;
  color: #241934;
  font-size: 2.8rem;
  line-height: .9;
}

.iq-hub-path > small {
  margin-top: .5rem;
  color: #786f83;
  font-size: .72rem;
  font-weight: 750;
}

.iq-hub-path > p {
  margin: .85rem 0 1rem;
  color: #61596d;
  font-size: .78rem;
  line-height: 1.5;
}

.iq-hub-path__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  color: #1d4ed8;
  font-size: .73rem;
  font-weight: 850;
}

.iq-hub-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin: 0 0 2.5rem;
}

.iq-hub-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e7e2eb;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1rem;
  color: #332a3d;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(40, 29, 57, .05);
  transition: transform .18s ease, border-color .18s ease;
}

.iq-hub-tool:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
}

.iq-hub-tool__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem;
  background: #f1edff;
  color: #1d4ed8;
  font-size: 1.1rem;
}

.iq-hub-tool span:nth-child(2) {
  display: block;
  min-width: 0;
}

.iq-hub-tool strong,
.iq-hub-tool em {
  display: block;
}

.iq-hub-tool strong {
  margin: .15rem 0 .25rem;
  color: #241b30;
  font-size: .95rem;
}

.iq-hub-tool em {
  color: #756d7f;
  font-size: .72rem;
  font-style: normal;
  line-height: 1.45;
}

.iq-hub-tool > i {
  color: #3b82f6;
}

.iq-hub-hero a:focus-visible,
.iq-hub-path:focus-visible,
.iq-hub-tool:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .35);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .iq-hub-hero {
    grid-template-columns: 1fr;
  }

  .iq-hub-preview {
    max-width: 32rem;
  }
}

@media (max-width: 640px) {
  .page-tests-qi main > .text-center.mb-6 {
    margin: 1rem auto 1.4rem;
  }

  .page-tests-qi #lcp-title {
    font-size: 1.9rem;
  }

  .iq-hub-hero {
    border-radius: 1.5rem !important;
    padding: 1.35rem !important;
  }

  .iq-hub-hero h2 {
    font-size: 2rem;
  }

  .iq-hub-cta {
    display: grid;
  }

  .iq-hub-path-grid,
  .iq-hub-tools {
    grid-template-columns: 1fr;
  }

  .iq-hub-path {
    min-height: 0;
  }
}

@media (max-width: 319px) {
  .sr-iq-intro-card .iq-mode-grid { grid-template-rows: repeat(2, minmax(80px, auto)); }
  #iq-start-rapide.iq-mode .iq-mode-time, #iq-start-complet.iq-mode .iq-mode-time { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .iq-hub-cta a,
  .iq-hub-path,
  .iq-hub-tool {
    transition: none;
  }

  .iq-hub-cta a:hover,
  .iq-hub-path:hover,
  .iq-hub-tool:hover {
    transform: none;
  }
}
