/* Arrière-plan réseau partagé par les pages éditoriales sélectionnées. */
body.animated-content-page,
body.has-animated-background {
  min-height: 100vh;
  background: #eef3f7;
}

#background-graph {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .72;
}

body.animated-content-page > #header-container,
body.animated-content-page > main,
body.animated-content-page > #footer-container {
  position: relative;
  z-index: 1;
}

body.animated-content-page > #header-container { z-index: 10; }
body.animated-content-page main { background: transparent; }

body.animated-content-page main > header,
body.animated-content-page main > section,
body.animated-content-page main > ul > li > article {
  border-radius: 1rem;
  background: rgba(255, 255, 255, .80);
  box-shadow: 0 8px 24px rgba(24, 48, 75, .08);
  -webkit-backdrop-filter: blur(7px) saturate(125%);
  backdrop-filter: blur(7px) saturate(125%);
}

body.animated-content-page main > header,
body.animated-content-page main > section { padding: clamp(1rem, 2.5vw, 1.5rem); }

body.animated-content-page main > ul > li > article {
  padding: 1rem 1.25rem;
}

body.animated-content-page main > .bg-blue-50 {
  background: rgba(219, 234, 254, .86);
}

body.animated-content-page > #footer-container { z-index: 1; }
body.animated-content-page #footer-container footer {
  background: rgba(248, 250, 252, .92);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* Le groupe de lecture garde sa largeur et ses cartes, qui laissent apparaître le réseau. */
body.has-animated-background { background: transparent; }
body.has-animated-background .group-shell {
  position: relative;
  z-index: 1;
}
body.has-animated-background .answer-card,
body.has-animated-background .content-card,
body.has-animated-background .route-card,
body.has-animated-background .source-card {
  background: rgba(255, 255, 255, .80);
  -webkit-backdrop-filter: blur(7px) saturate(125%);
  backdrop-filter: blur(7px) saturate(125%);
}
body.has-animated-background .overview-lede {
  background: rgba(255, 255, 255, .80);
}

@media (max-width: 640px) {
  #background-graph { opacity: .5; }
  body.animated-content-page main > header,
  body.animated-content-page main > section { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  #background-graph { opacity: .38; }
}
