/* Écoute & Espoir — bulles souples. À charger après les styles de l’index. */
#valeurs {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(233,195,210,.42), transparent 65%),
    radial-gradient(ellipse at 92% 78%, rgba(169,201,174,.40), transparent 64%),
    radial-gradient(ellipse at 65% 22%, rgba(123,90,140,.09), transparent 58%),
    #FAF3E9;
}
#valeurs .values-bubbles {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  padding: 28px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
}
#valeurs .values-bubbles .value-bubble {
  --bubble-color: 123,90,140;
  --bubble-text: #4A2F5E;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: none;
  transition: none;
  outline: none;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#valeurs .values-bubbles .value-bubble:nth-child(3n + 2) {
  --bubble-color: 78,143,108;
  --bubble-text: #397052;
}
#valeurs .values-bubbles .value-bubble:nth-child(3n) {
  --bubble-color: 201,122,154;
  --bubble-text: #76516D;
}
#valeurs .values-bubbles .value-bubble-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--bubble-text);
  font-family: 'Fraunces',Georgia,serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  hyphens: auto;
  overflow-wrap: anywhere;
  transform: none;
  transition: none;
  pointer-events: none;
}
#valeurs .values-bubbles:not(.is-live) .value-bubble-label {
  background: rgba(var(--bubble-color),.12);
  border: 1px solid rgba(var(--bubble-color),.2);
}
#valeurs .values-bubbles .value-bubble-skin {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(var(--bubble-color),.24);
  border-radius: 47% 53% 49% 51% / 52% 45% 55% 48%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.70), transparent 58%),
    rgba(var(--bubble-color),.13);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.65),
    inset 0 -7px 20px rgba(var(--bubble-color),.04),
    0 8px 20px rgba(74,47,94,.035);
  pointer-events: none;
}
#valeurs .values-bubbles .value-bubble:nth-child(even) .value-bubble-skin {
  border-radius: 52% 48% 46% 54% / 47% 54% 46% 53%;
}
#valeurs .values-bubbles.is-live {
  display: block;
  height: clamp(570px,72svh,780px);
  padding: 0;
  overflow: hidden;
  touch-action: pan-y;
}
#valeurs .values-bubbles.is-live .value-bubble {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center;
}
#valeurs .values-bubbles .value-bubble.is-dragged { cursor: grabbing; }
#valeurs .values-bubbles .value-bubble:focus-visible .value-bubble-skin {
  outline: 2px solid #4E8F6C;
  outline-offset: 5px;
}
#valeurs .values-bubbles .value-bubble.is-active .value-bubble-skin {
  background:
    radial-gradient(circle at 28% 22%,rgba(255,255,255,.74),transparent 58%),
    rgba(var(--bubble-color),.20);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.7),0 14px 30px rgba(74,47,94,.075);
}
#valeurs .values-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
#valeurs .values-hint {
  margin: 0;
  color: #756775;
  font-family: 'Inter',Arial,sans-serif;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.6;
}
#valeurs .values-pause {
  padding: 7px 13px;
  border: 1px solid rgba(74,47,94,.18);
  border-radius: 100px;
  background: rgba(255,253,249,.55);
  color: #4A2F5E;
  font: 500 .74rem 'Inter',Arial,sans-serif;
  cursor: pointer;
}
#valeurs .values-pause:focus-visible {
  outline: 2px solid #4E8F6C;
  outline-offset: 4px;
}
html[dir='rtl'] #valeurs .value-bubble-label,
html[dir='rtl'] #valeurs .values-hint,
html[dir='rtl'] #valeurs .values-pause { font-family: 'Tajawal',Arial,sans-serif; }
@media(max-width:600px) {
  #valeurs .values-bubbles.is-live { height: clamp(700px,90svh,900px); }
  #valeurs .values-hint { font-size: .74rem; }
}
/* Bulles neutres, sans brillance */
#valeurs .values-bubbles .value-bubble-skin,
#valeurs .values-bubbles .value-bubble.is-active .value-bubble-skin {
  background: rgba(255, 253, 249, .16);
  border: 1px solid rgba(74, 47, 94, .14);
  box-shadow: none;
}

/* Même couleur douce pour tous les mots */
#valeurs .values-bubbles .value-bubble-label {
  color: #4A2F5E;
}
/* Lumière venant du coin supérieur gauche de la zone */
#valeurs .values-bubbles .value-bubble-skin,
#valeurs .values-bubbles .value-bubble.is-active .value-bubble-skin {
  background:
    radial-gradient(
      circle at var(--light-x, 20%) var(--light-y, 15%),
      rgba(255, 255, 255, .38),
      transparent 58%
    ),
    rgba(255, 253, 249, .13);

  border: 1px solid rgba(74, 47, 94, .14);

  /* Ombres extérieures : aucune ombre intérieure */
  box-shadow:
    var(--edge-x, 0px)
    var(--edge-y, 0px)
    22px 1px
    rgba(74, 47, 94, var(--edge-alpha, 0)),
    4px 7px 14px rgba(74, 47, 94, .035);
}

/* Laisser les ombres dépasser de la zone de déplacement */
#valeurs .values-bubbles.is-live {
  overflow: visible;
}