/* =============================================================
   PAGE COMMUNAUTE
   Deux cercles: le foyer, puis la communaute. Meme direction que la
   home — pas de fonds de cartes, des filets et du blanc.
   ============================================================= */

.cm-hero { padding: clamp(48px, 6vw, 84px) 0; }

.cm-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
}

.cm-hero-copy .eyebrow { margin-bottom: 18px; }

.cm-hero h1 {
  max-width: 18ch;
  font-size: var(--dop-fs-hero);
  font-weight: 800;
  line-height: var(--dop-lh-tight);
  letter-spacing: var(--dop-tracking-hero);
}

.cm-hero .lead {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--dop-ink-2);
  font-size: var(--dop-fs-lead);
  line-height: var(--dop-lh-normal);
}

/* La liste de ce qui se passe sur le serveur reprend les filets de la home. */
.cm-club { max-width: 860px; }

/* ---------- Blocs texte / visuel ---------- */
.cm-block { border-top: 1px solid var(--dop-rule); }
.cm-block:first-of-type { border-top: 0; }

.cm-split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
}

.cm-split--rev { grid-template-columns: minmax(0, 340px) 1fr; }
.cm-split--wide { grid-template-columns: minmax(0, 440px) 1fr; }

.cm-copy h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: var(--dop-tracking-section);
  line-height: var(--dop-lh-snug);
}

.cm-copy p {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--dop-ink-2);
  font-size: var(--dop-fs-body-lg);
  line-height: var(--dop-lh-normal);
}

.cm-copy .hand {
  font-family: var(--dop-font-hand);
  font-weight: 700;
  font-size: var(--dop-fs-hand);
  color: var(--dop-primary);
  line-height: 1.2;
}

.cm-copy .btn { margin-top: 26px; }

/* Les visuels sont des illustrations (components/illustration.njk):
   pg-cutout pour les detourees, pg-shot pour les scenes opaques. */
.cm-split .pg-illus { width: 100%; }

/* ---------- Clôture ---------- */
.cm-cta { border-top: 1px solid var(--dop-rule); text-align: center; }
.cm-cta h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: var(--dop-tracking-section); }
.cm-cta p { margin: 16px auto 0; max-width: 48ch; color: var(--dop-ink-2); font-size: var(--dop-fs-lead); }


@media (max-width: 920px) {
  .cm-hero-split { grid-template-columns: 1fr; }
  .cm-photo { justify-self: center; }
  .cm-split,
  .cm-split--rev,
  .cm-split--wide { grid-template-columns: 1fr; }
}

/* ---------- La rangee de la communaute ----------
   Trois illustrations detourees posees au meme sol: la pile, la porte
   ouverte au centre, les encouragements. Purement decoratif: la rangee
   est masquee aux lecteurs d'ecran. */
.cm-lineup {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 2vw, 32px);
  max-width: 100%;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* Dimensionnees par la hauteur pour garder les personnages a la meme
   echelle; la porte, au centre, est un peu plus haute. */
.cm-lineup img {
  width: auto;
  min-width: 0;
  max-width: 34%;
  height: clamp(112px, 15vw, 210px);
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45));
}

.cm-lineup img:nth-child(2) { height: clamp(150px, 20vw, 280px); max-width: 30%; }

/* La rangee reagit aussi: l'avatar survole se detache du groupe. */
.cm-lineup img { transition: transform var(--dop-dur) var(--dop-ease-out), filter var(--dop-dur); }

.cm-lineup img:hover {
  transform: translateY(-14px) scale(1.05);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55));
}

@media (prefers-reduced-motion: reduce) {
  .cm-lineup img:hover { transform: none; }
}

/* Un halo de rarete legendaire, tres attenue, derriere chaque avatar de
   la rangee: le meme geste que sur les cartes, a l'echelle du groupe. */
.cm-lineup img { position: relative; z-index: 1; }

.cm-lineup {
  position: relative;
  isolation: isolate;
}

.cm-lineup::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(96%, 1100px);
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 60% 100% at 50% 60%, rgba(232, 87, 159, .16), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 80%, rgba(141, 103, 251, .10), transparent 72%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

/* Ombre au sol commune, pour poser le groupe. */
.cm-lineup::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(88%, 980px);
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .5), transparent 74%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}
