.community-section {
  --community-surface: var(--sand);
  margin-top: 24px;
  padding: 72px 0 40px;
  background: var(--community-surface);
  scroll-margin-top: 110px;
  overflow: hidden;
}
.community-section .community-intro {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 38px;
  align-items: center;
}
.community-section .community-copy h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(35px, 3.65vw, 52px);
  line-height: 1.13;
  letter-spacing: -.04em;
}
.community-section .community-copy h2 span { color: var(--purple); }
.community-section .community-lead {
  margin: 27px 0 0;
  max-width: 440px;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.8;
}
.community-section .community-support {
  margin: 17px 0 0;
  max-width: 380px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.community-section .community-actions { margin-top: 29px; }
.community-section .community-actions .button { font-size: 13px; }
.community-section .community-actions p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.community-section .community-visual { min-width: 0; margin: 0; }
.community-section .community-motion { position: relative; padding-bottom: 20px; }
.community-section .community-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  container-type: inline-size;
  isolation: isolate;
}
.community-section .community-orbit-track,
.community-section .community-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-diameter);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.community-section .community-orbit-track { border: 1px solid #e3d9ed; pointer-events: none; }
.community-section .community-orbit { z-index: 2; }
.community-section .community-orbit-outer {
  --orbit-diameter: 82%;
  --orbit-speed: 170s;
  --orbit-direction: normal;
  --portrait-size: 14cqw;
}
.community-section .community-orbit-inner {
  --orbit-diameter: 48%;
  --orbit-speed: 125s;
  --orbit-direction: reverse;
  --portrait-size: 12cqw;
}
.community-section .community-orbit-spin {
  position: absolute;
  inset: 0;
  animation: tga-community-orbit var(--orbit-speed) linear infinite;
  animation-direction: var(--orbit-direction);
  animation-play-state: paused;
}
.community-section .community-orbiter { position: absolute; inset: 0; transform: rotate(var(--angle)); }
.community-section .community-portrait-anchor {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--portrait-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle)));
}
.community-section .community-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sand) url('/images/communaute-professionnels-2026-10-14.webp') no-repeat;
  box-shadow: 0 0 0 5px var(--community-surface);
  animation: tga-community-counter-orbit var(--orbit-speed) linear infinite;
  animation-direction: var(--orbit-direction);
  animation-play-state: paused;
}
.community-section [data-community-face="1"] { background-size: 336.84%; background-position: 49.56% 17.78%; }
.community-section [data-community-face="2"] { background-size: 376.47%; background-position: 7.66% 35.11%; }
.community-section [data-community-face="3"] { background-size: 387.88%; background-position: 92.63% 37.89%; }
.community-section [data-community-face="4"] { background-size: 492.31%; background-position: 8.82% 73.53%; }
.community-section [data-community-face="5"] { background-size: 412.90%; background-position: 65.46% 68.56%; }
.community-section [data-community-face="6"] { background-size: 533.33%; background-position: 35.58% 85.58%; }
.community-section [data-community-face="7"] { background-size: 512%; background-position: 93.69% 79.13%; }
/* Tags keep their spacing from the outer portraits and stay upright. */
.community-section .community-orbit-tags {
  --orbit-diameter: 86%;
  --orbit-speed: 170s;
  --orbit-direction: normal;
  z-index: 4;
  pointer-events: none;
}
.community-section .community-tag-anchor {
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle)));
}
.community-section .community-tag {
  display: block;
  padding: clamp(5px, 1.2cqw, 7px) clamp(8px, 2cqw, 12px);
  border-radius: 999px;
  color: var(--ink);
  font-size: clamp(10px, 2.4cqw, 13px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  animation: tga-community-counter-orbit var(--orbit-speed) linear infinite;
  animation-direction: var(--orbit-direction);
  animation-play-state: paused;
}
.community-section .community-tag-ideas { background: var(--lilac); }
.community-section .community-tag-solutions { background: var(--mint); }
.community-section .community-tag-relations { background: #f4dfa9; }
.community-section .community-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 3;
  border-radius: 50%;
  border: 1px solid #e2d8ed;
  background: #fff;
}
.community-section .community-brand svg { display: block; width: 48%; height: 48%; fill: var(--ink); }
.community-section .community-dot { position: absolute; border-radius: 50%; width: 7px; height: 7px; background: var(--lilac); }
.community-section .community-dot-one { left: 19%; top: 22%; }
.community-section .community-dot-two { right: 18%; bottom: 24%; width: 5px; height: 5px; background: var(--mint); }
.community-section .community-visual-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.community-section .community-platform { color: var(--muted); font-size: 12px; line-height: 1.6; }
.community-section .community-platform > div { display: flex; align-items: center; justify-content: center; gap: 7px; }
.community-section .community-platform img { display: block; width: 46px; height: auto; }
.community-section .community-pause {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}
.community-section .community-pause[hidden] { display: none; }
.community-section .community-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.community-section .community-pause[aria-pressed="true"] { color: var(--purple); }
.community-section .community-pause:disabled { cursor: default; opacity: .7; }
.community-section .community-pause:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.community-section .community-pause:active { transform: scale(.98); }
@keyframes tga-community-orbit { to { transform: rotate(360deg); } }
@keyframes tga-community-counter-orbit { to { transform: rotate(-360deg); } }
.community-section[data-motion="running"] .community-orbit-spin,
.community-section[data-motion="running"] .community-face,
.community-section[data-motion="running"] .community-tag { animation-play-state: running; }

/* Keep the host presentation in its original container after the community. */
.community-following-support { display: flow-root; padding-bottom: 96px; }
.community-following-support .support-feature { border-top: 0; }
@media (max-width: 900px) {
  .community-following-support { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .community-following-support { padding-bottom: 60px; }
}


@media (hover: hover) and (pointer: fine) {
  .community-section .community-pause:hover { color: var(--purple); border-color: var(--purple); }
}
@media (max-width: 1100px) {
  .community-section { padding-top: 54px; }
  .community-section .community-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .community-section .community-copy h2 { font-size: 39px; }
  .community-section .community-lead { font-size: 14px; }
  .community-section .community-support { font-size: 13px; }
}
@media (max-width: 850px) {
  .community-section .community-copy h2 { font-size: 32px; }
  .community-section .community-lead { font-size: 13px; }
  .community-section .community-actions .button { font-size: 12px; gap: 14px; }
  .community-section .community-face { box-shadow: 0 0 0 3px var(--community-surface); }
}
@media (max-width: 700px) {
  .community-section { padding: 48px 0 32px; }
  .community-section .community-intro { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .community-section .community-copy h2 { max-width: 420px; font-size: clamp(32px, 8.8vw, 43px); }
  .community-section .community-copy h2 br { display: none; }
  .community-section .community-copy h2 span { display: block; }
  .community-section .community-lead { font-size: 14px; margin-top: 23px; }
  .community-section .community-support { max-width: 440px; font-size: 14px; }
  .community-section .community-visual { width: 100%; max-width: 480px; align-self: center; }
  .community-section .community-copy .community-visual { margin: 26px auto 24px; }
  .community-section .community-visual-footer { margin-top: 15px; }
  .community-section .community-actions { margin-top: 24px; }
  .community-section .community-actions .button { font-size: 13px; }
}
@media (max-width: 360px) {
  .community-section .community-copy h2 { font-size: 31px; }
  .community-section .community-lead { font-size: 13px; }
  .community-section .community-actions .button { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-section .community-orbit-spin,
  .community-section .community-face,
  .community-section .community-tag { animation-play-state: paused !important; }
}
