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

.eyebrow {
  font-family: var(--dop-font-body);
  font-weight: 700;
  font-size: var(--dop-fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--dop-tracking-eyebrow);
  color: var(--dop-ink-3);
  margin-bottom: 18px;
}

.grad { color: var(--dop-primary); }

.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);
}

/* ---------- 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 composites detoures portent deja leur mockup: pas de cadre,
   seulement une ombre qui suit l'alpha. La capture plate, elle, en garde un. */
.cm-shot img { width: 100%; height: auto; }

.cm-split .cm-shot img { filter: drop-shadow(0 22px 42px rgba(0, 0, 0, .46)); }

.cm-shot--square img {
  border-radius: var(--dop-radius-xl);
  border: 1px solid var(--dop-border-strong);
  filter: none;
  transform: rotate(-1.2deg);
}

.cm-split--rev .cm-shot img {
  filter: none;
  border-radius: var(--dop-radius-2xl);
  border: 1px solid var(--dop-border-strong);
  box-shadow: var(--dop-shadow-phone);
  transform: rotate(-1.4deg);
}

.cm-block:last-of-type .cm-shot img {
  filter: none;
  border-radius: var(--dop-radius-xl);
  transform: rotate(1.1deg);
}

/* ---------- 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); }
.cm-cta .store-buttons { justify-content: center; }

@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; }
  .cm-shot--square img { transform: none; }
  .cm-split--rev .cm-shot img,
  .cm-block:last-of-type .cm-shot img { transform: none; }
  .cm-split--rev .cm-shot { max-width: 320px; }
}

/* ---------- La rangee de la communaute ----------
   Neuf avatars alignes au sol, comme une photo de groupe. Purement
   decoratif: la rangee est masquee aux lecteurs d'ecran, et le nombre
   d'avatars se reduit avec la largeur plutot que de tous les tasser. */
.cm-lineup {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2px, 1vw, 18px);
  max-width: 100%;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* Les sources vont du tres etroit (421x1143) au presque carre
   (1180x1200): dimensionner par la largeur mettait les personnages a des
   echelles differentes. La hauteur les aligne, tous faisant ~1200px. */
.cm-lineup img {
  width: auto;
  height: clamp(110px, 13vw, 190px);
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45));
}

/* Un leger decalage vertical evite l'alignement trop regulier. */
.cm-lineup img:nth-child(2n) { transform: translateY(-10px); }
.cm-lineup img:nth-child(3n) { transform: translateY(6px); }

@media (max-width: 1000px) {
  .cm-lineup img:nth-child(n + 8) { display: none; }
}

@media (max-width: 700px) {
  .cm-lineup img:nth-child(n + 6) { display: none; }
}

@media (max-width: 480px) {
  .cm-lineup img:nth-child(n + 4) { display: none; }
}

/* 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.1);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55));
}

.cm-lineup img:nth-child(2n):hover { transform: translateY(-24px) scale(1.1); }
.cm-lineup img:nth-child(3n):hover { transform: translateY(-8px) scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .cm-lineup img:hover,
  .cm-lineup img:nth-child(2n):hover,
  .cm-lineup img:nth-child(3n):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;
}
