/* === BW LOGOLOOP === */

/* ── Placeholder de chargement (sans effet brillant) ── */
.logoloop__item--loading img {
  opacity: 0;
  pointer-events: none;
}

.logoloop {
  position: relative;
  --logoloop-gap: 20px;
  --logoloop-logoHeight: 28px;
  overflow: hidden;
}

.logoloop__track {
  display: flex;
  width: max-content;
  will-change: transform;
  user-select: none;
  position: relative;
  z-index: 0;
}

.logoloop__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  line-height: 1;
}

.logoloop__item:last-child {
  margin-right: var(--logoloop-gap);
}

.logoloop__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.logoloop__link:hover { opacity: 0.8; }
.logoloop__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Fade edges — mask alpha, aucune couleur de fond */
.logoloop--fade {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  /* GPU compositing layer — empêche le navigateur de désactiver translate3d en reduced-motion */
  .logoloop__track { transform: translate3d(0, 0, 0) !important; }
}

/* ── Tool Pills ── */
.bw-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #E5E5EA;
  background: #FFFFFF;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  white-space: nowrap;
  box-shadow: 0px 2px 8px 0px rgba(10, 11, 36, 0.04);
}

.bw-tool-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Section wrapper ── */
.bw-course-tools {
  padding: 72px 24px;
}

/* même largeur que les autres sections de la page formation */
.bw-course-tools__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.bw-course-tools__label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-violet);
  margin: 0 0 8px;
}

.bw-course-tools__title {
  font-family: var(--font-primary);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 0 40px;
}

.bw-course-tools .logoloop {
  --logoloop-gap: 52px;
}

.bw-course-tools .logoloop__item img {
  height: 30px;
  width: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

.bw-course-tools .logoloop__item:hover img {
  opacity: 1;
}

/* ── Schéma orbital SEO (remplace le bandeau de logos sur la page SEO) ── */
.bw-seo-orbit {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.bw-seo-orbit__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 38, 155, 0.20) 0%, rgba(115, 38, 155, 0) 68%);
  pointer-events: none;
}

.bw-seo-orbit__spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bw-seo-orbit__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: bw-orbit-spin 60s linear infinite;
}

@keyframes bw-orbit-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bw-seo-orbit__ring { animation: none; }
}

.bw-seo-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-violet) 100%);
  box-shadow: 0px 12px 36px rgba(115, 38, 155, 0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-primary);
  text-align: center;
}

.bw-seo-orbit__core::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.bw-seo-orbit__core-seo {
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.bw-seo-orbit__core-label {
  font-size: clamp(10px, 2.4vw, 13px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0.92;
}

.bw-seo-orbit__node {
  position: absolute;
  width: 56px;
  height: 56px;
  translate: -50% -50%;
  animation: bw-node-float 4.5s ease-in-out infinite;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E5EA;
  box-shadow: 0px 4px 18px rgba(10, 11, 36, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: scale 0.25s ease, box-shadow 0.25s ease;
}

.bw-seo-orbit__node:hover {
  scale: 1.12;
  box-shadow: 0px 8px 24px rgba(115, 38, 155, 0.20);
}

.bw-seo-orbit__node img {
  width: 26px;
  height: 26px;
  display: block;
}

.bw-seo-orbit__node--n1 { left: 50%; top: 8%;  }
.bw-seo-orbit__node--n2 { left: 86%; top: 29%; }
.bw-seo-orbit__node--n3 { left: 86%; top: 71%; }
.bw-seo-orbit__node--n4 { left: 50%; top: 92%; }
.bw-seo-orbit__node--n5 { left: 14%; top: 71%; }
.bw-seo-orbit__node--n6 { left: 14%; top: 29%; }

@media (max-width: 480px) {
  .bw-seo-orbit { max-width: 300px; }
  .bw-seo-orbit__node { width: 46px; height: 46px; }
  .bw-seo-orbit__node img { width: 22px; height: 22px; }
}

/* ── Schéma "tech-orbit" générique (formations) ── */
.bw-tech-orbit {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  font-family: var(--font-primary);
}

.bw-tech-orbit__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74%;
  height: 74%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 38, 155, 0.18) 0%, rgba(115, 38, 155, 0) 68%);
  pointer-events: none;
}

.bw-tech-orbit__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: bw-orbit-spin 70s linear infinite;
}

.bw-tech-orbit__connect {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .bw-tech-orbit__ring { animation: none; }
}

.bw-tech-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-violet) 100%);
  box-shadow: 0px 12px 36px rgba(115, 38, 155, 0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  padding: 6px;
}

.bw-tech-orbit__core::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.bw-tech-orbit__core-main {
  font-size: clamp(17px, 4.2vw, 25px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.bw-tech-orbit__core-label {
  font-size: clamp(9px, 2.2vw, 12px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 4px;
  opacity: 0.92;
}

.bw-tech-orbit__node {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  translate: -50% -50%;
  animation: bw-node-float 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.6s);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E5EA;
  box-shadow: 0px 4px 18px rgba(10, 11, 36, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: scale 0.25s ease, box-shadow 0.25s ease;
}

.bw-tech-orbit__node:hover {
  scale: 1.12;
  box-shadow: 0px 8px 24px rgba(115, 38, 155, 0.20);
}

.bw-tech-orbit__node img {
  width: 26px;
  height: 26px;
  display: block;
}

/* Variante carré arrondi (Webmarketing) */
.bw-tech-orbit--square .bw-tech-orbit__ring { animation: none; }
.bw-tech-orbit--square .bw-tech-orbit__core {
  width: 50%;
  aspect-ratio: auto;
  padding: 18px 14px;
  border-radius: 26px;
}
.bw-tech-orbit--square .bw-tech-orbit__node { border-radius: 16px; }

@media (max-width: 480px) {
  .bw-tech-orbit__node { width: 46px; height: 46px; }
  .bw-tech-orbit__node img { width: 22px; height: 22px; }
}

/* Cœur = sphère pour toutes les formations (la variation se fait par la couleur).
   width léger ajustement selon la longueur du titre */
.bw-tech-orbit--hex .bw-tech-orbit__core,
.bw-tech-orbit--penta .bw-tech-orbit__core,
.bw-tech-orbit--squircle .bw-tech-orbit__core,
.bw-tech-orbit--fluid .bw-tech-orbit__core {
  width: 46%;
}
.bw-tech-orbit--fluid .bw-tech-orbit__glow {
  width: 88%;
  height: 88%;
  background: radial-gradient(circle, rgba(251, 28, 210, 0.18) 0%, rgba(115, 38, 155, 0.10) 45%, rgba(115, 38, 155, 0) 70%);
}
@keyframes bw-blob-morph {
  0%, 100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%      { border-radius: 58% 42% 45% 55% / 44% 56% 48% 52%; }
}

/* ── Animations partagées des schémas ── */
@keyframes bw-node-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes bw-glow-pulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}
@keyframes bw-dash-flow {
  to { stroke-dashoffset: -9; }
}

.bw-seo-orbit__glow,
.bw-tech-orbit__glow {
  animation: bw-glow-pulse 5s ease-in-out infinite;
}

.bw-seo-orbit__spokes line,
.bw-tech-orbit__connect line,
.bw-tech-orbit__connect polygon {
  stroke-dasharray: 1.6 3;
  animation: bw-dash-flow 3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bw-seo-orbit__node,
  .bw-tech-orbit__node,
  .bw-seo-orbit__glow,
  .bw-tech-orbit__glow,
  .bw-seo-orbit__spokes line,
  .bw-tech-orbit__connect line,
  .bw-tech-orbit__connect polygon,
  .bw-tech-orbit--fluid .bw-tech-orbit__core {
    animation: none;
  }
}

/* ════════════════════════════════════════════
   ATMOSPHÈRE 3D DES SCHÉMAS FORMATION
   (base = Community Manager, déclinée par formation)
════════════════════════════════════════════ */
.bw-tech-orbit--3d,
.bw-seo-orbit--3d {
  perspective: 1000px;
}

/* Halo rosé retiré (source de flicker) */
.bw-tech-orbit--3d .bw-tech-orbit__glow,
.bw-seo-orbit--3d .bw-seo-orbit__glow {
  display: none;
}

/* Cœur = sphère 3D lustrée */
.bw-tech-orbit--3d .bw-tech-orbit__core,
.bw-seo-orbit--3d .bw-seo-orbit__core {
  z-index: 2;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 44%),
    var(--core-grad, linear-gradient(135deg, #FB1CD2 0%, #73269B 100%));
  box-shadow:
    0 22px 44px -18px rgba(20, 10, 40, 0.30),
    inset 0 -12px 24px rgba(107, 63, 160, 0.35),
    inset 0 10px 20px rgba(255, 255, 255, 0.28);
}
.bw-tech-orbit--3d .bw-tech-orbit__core::after,
.bw-seo-orbit--3d .bw-seo-orbit__core::after {
  content: '';
  position: absolute;
  inset: 0;
  border: none;
  border-radius: inherit;
  background: radial-gradient(130% 95% at 50% -8%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0) 40%);
}

/* Nœuds = pastilles 3D lustrées, ombre portée profonde */
.bw-tech-orbit--3d .bw-tech-orbit__node,
.bw-seo-orbit--3d .bw-seo-orbit__node {
  z-index: 2;
  background: radial-gradient(circle at 36% 28%, #ffffff 0%, #f0edf6 100%);
  border-color: rgba(229, 229, 234, 0.7);
  box-shadow:
    0 12px 24px -7px rgba(20, 10, 40, 0.30),
    0 3px 6px rgba(20, 10, 40, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.bw-tech-orbit--3d .bw-tech-orbit__node:hover,
.bw-seo-orbit--3d .bw-seo-orbit__node:hover {
  box-shadow:
    0 16px 30px -6px rgba(115, 38, 155, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* ── Éléments 3D décoratifs — dégradé animé clair (palette grainient home) ──
   Palette : rose #FB1CD2 · violet clair #6B3FA0 · lavande #C084E8           */
.bw-orbit-deco {
  position: absolute;
  width: var(--d-size, 26px);
  height: var(--d-size, 26px);
  top: var(--d-top, 0%);
  left: var(--d-left, 0%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0; /* derrière les nœuds/cœur */
  /* Suit la couleur de la formation (--core-grad), dégradé animé */
  background: var(--d-grad, var(--core-grad, linear-gradient(135deg, #FB1CD2 0%, #73269B 100%)));
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 -5px 11px rgba(107, 63, 160, 0.22),
    inset 0 3px 7px rgba(255, 255, 255, 0.60);
  will-change: transform, background-position;
  backface-visibility: hidden;
  animation:
    bw-deco-float var(--d-dur, 7s) ease-in-out infinite,
    bw-deco-flow calc(var(--d-dur, 7s) * 1.8) ease-in-out infinite;
  animation-delay: var(--d-delay, 0s);
}
/* Reflet spéculaire fixe (ne suit pas le flux du dégradé) */
.bw-orbit-deco::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.30) 16%, rgba(255,255,255,0) 42%);
}

/* Anneau 3D incliné (look torus), lavande clair */
.bw-orbit-deco--ring {
  background: none;
  border: 5px solid rgba(115, 38, 155, 0.55);
  box-shadow: inset 0 -2px 4px rgba(115, 38, 155, 0.25);
  will-change: transform;
  animation: bw-deco-ring var(--d-dur, 9s) ease-in-out infinite;
}
.bw-orbit-deco--ring::after { display: none; }

/* Chip 3D arrondi (accent) — radius 18px comme les chips du site, oscillation douce */
.bw-orbit-deco--cube {
  border-radius: 18px;
  animation:
    bw-deco-cube var(--d-dur, 8s) ease-in-out infinite,
    bw-deco-flow calc(var(--d-dur, 8s) * 1.8) ease-in-out infinite;
}

/* ── Tooltip nom du logo au survol (span enfant, fiable) ── */
.bw-tech-orbit__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-violet) 100%);
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 5px 9px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(115, 38, 155, 0.32);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 7;
}
.bw-tech-orbit__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-violet);
}
.bw-tech-orbit__node:hover,
.bw-seo-orbit__node:hover { z-index: 5; }
.bw-tech-orbit__node:hover .bw-tech-orbit__tip,
.bw-seo-orbit__node:hover .bw-tech-orbit__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes bw-deco-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-12px) translateX(4px); }
}
@keyframes bw-deco-ring {
  0%, 100% { transform: rotateX(62deg) rotateZ(0deg) translateY(0); }
  50%      { transform: rotateX(62deg) rotateZ(24deg) translateY(-7px); }
}
@keyframes bw-deco-cube {
  0%, 100% { transform: rotateX(42deg) rotateZ(-14deg) translateY(0); }
  50%      { transform: rotateX(42deg) rotateZ(16deg) translateY(-6px); }
}
@keyframes bw-deco-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .bw-orbit-deco,
  .bw-orbit-deco--ring,
  .bw-orbit-deco--cube { animation: none; }
}

/* === END BW LOGOLOOP === */
