/* People block — feature (horizontal card) + grid (vertical portrait cards).
   Ported from course-page.css .instructor + about.html .team-*. */

/* ── feature ───────────────────────────────────────────────────────────────── */
.wp-block-formasuisse-people[data-variant="feature"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface-alt, #f6f7f8);
  border-left: 4px solid var(--color-primary, #062343);
}
@media (min-width: 600px) {
  .wp-block-formasuisse-people[data-variant="feature"] {
    grid-template-columns: 140px 1fr;
    align-items: start;
  }
}
.wp-block-formasuisse-people[data-variant="feature"] img,
.wp-block-formasuisse-people[data-variant="feature"] .ppl-photo-empty {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.wp-block-formasuisse-people[data-variant="feature"] .ppl-photo-empty {
  background: var(--color-paper-alt, #f6f7f8);
  border: 1px dashed var(--color-rule, #d8dde3);
}
.wp-block-formasuisse-people[data-variant="feature"] h3 {
  font-family: var(--font-title, "Barlow", sans-serif);
  font-weight: 600;
  color: var(--color-primary, #062343);
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.wp-block-formasuisse-people[data-variant="feature"] .role {
  color: var(--color-text-sub, #5a5a5a);
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.wp-block-formasuisse-people[data-variant="feature"] p {
  font-size: 0.92rem;
}

/* Editor: media-upload button reset so portrait shows cleanly. */
.wp-block-formasuisse-people[data-variant="feature"] .fs-ppl-media {
  height: auto;
  padding: 0;
}
.wp-block-formasuisse-people[data-variant="feature"] .fs-ppl-media img {
  width: 140px;
  height: 140px;
}
.wp-block-formasuisse-people[data-variant="feature"] .ppl-photo-empty-btn {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-paper, #fff);
  border: 1px dashed var(--color-rule, #d8dde3);
  color: var(--color-text-sub, #5a5a5a);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}

/* ── grid ──────────────────────────────────────────────────────────────────── */
.wp-block-formasuisse-people[data-variant="grid"] {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--color-paper-alt, #f6f7f8);
}
.wp-block-formasuisse-people[data-variant="grid"] .section-head {
  margin-bottom: 40px;
}
.wp-block-formasuisse-people[data-variant="grid"] .section-head .eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted, #999999);
  margin-bottom: 8px;
}
.wp-block-formasuisse-people[data-variant="grid"] .section-head h2 {
  margin: 0;
  font-family: var(--font-title, "Barlow", sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-primary, #062343);
}
.wp-block-formasuisse-people[data-variant="grid"] .people-grid {
  display: grid;
  grid-template-columns: repeat(var(--ppl-cols, 4), 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .wp-block-formasuisse-people[data-variant="grid"] .people-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .wp-block-formasuisse-people[data-variant="grid"] .people-grid {
    grid-template-columns: 1fr;
  }
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-portrait {
  aspect-ratio: 4 / 5;
  background: var(--color-paper, #fff);
  border: 1px solid var(--color-rule, #d8dde3);
  overflow: hidden;
  position: relative;
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-portrait .ppl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-portrait .ppl-photo-empty {
  width: 100%;
  height: 100%;
  background: var(--color-paper-alt, #f6f7f8);
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card h4 {
  font-size: 1rem;
  margin: 0;
  font-family: var(--font-title, "Barlow", sans-serif);
  font-weight: 600;
  color: var(--color-primary, #062343);
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card .role {
  font-size: 0.85rem;
  color: var(--color-text-sub, #5a5a5a);
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card .bio {
  font-size: 0.85rem;
  color: var(--color-text-sub, #5a5a5a);
  line-height: 1.5;
  margin: 0;
}

/* Editor: per-card media controls */
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card .fs-ppl-media {
  aspect-ratio: 4 / 5;
  height: auto;
  padding: 0;
  width: 100%;
  display: block;
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card .fs-ppl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-formasuisse-people[data-variant="grid"] .ppl-card .ppl-photo-empty-btn {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--color-paper-alt, #f6f7f8);
  border: 1px dashed var(--color-rule, #d8dde3);
  color: var(--color-text-sub, #5a5a5a);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}

/* Gutter re-add for .wrapper (grid variant uses it; feature has no wrapper). */
@media (max-width: 1199px) {
  .wp-block-formasuisse-people[data-variant="grid"] .wrapper {
    padding: 0 clamp(20px, 4vw, 56px);
  }
}

/* ── founders variant ─────────────────────────────────────────────────────────
   Compact bordered cards: small round avatar (photo or initials) + name + role
   + bio. Matches the À propos "Les fondateurs" design. */
.wp-block-formasuisse-people[data-variant="founders"] {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--color-paper-alt, #f6f7f8);
}
.wp-block-formasuisse-people[data-variant="founders"] .section-head {
  margin-bottom: 8px;
}
/* Mission/founders quote band (top+bottom rule, large title quote), between the
   section head and the cards. */
.wp-block-formasuisse-people[data-variant="founders"] .founders-quote {
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--color-rule, #d8dde3);
  border-bottom: 1px solid var(--color-rule, #d8dde3);
  margin: 24px 0 0;
}
.wp-block-formasuisse-people[data-variant="founders"] .founders-quote blockquote {
  margin: 0;
  font-family: var(--font-title, "Barlow", sans-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  color: var(--color-primary, #062343);
  letter-spacing: -0.012em;
  max-width: 60ch;
}
.wp-block-formasuisse-people[data-variant="founders"] .section-head .eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted, #999999);
  margin-bottom: 8px;
}
.wp-block-formasuisse-people[data-variant="founders"] .section-head h2 {
  margin: 0;
  font-family: var(--font-title, "Barlow", sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-primary, #062343);
}
.wp-block-formasuisse-people[data-variant="founders"] .founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 40px;
}
.wp-block-formasuisse-people[data-variant="founders"] .founder {
  background: var(--color-paper, #fff);
  border: 1px solid var(--color-rule, #d8dde3);
  padding: clamp(24px, 3vw, 36px);
}
.wp-block-formasuisse-people[data-variant="founders"] .founder-portrait {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-primary, #062343);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.wp-block-formasuisse-people[data-variant="founders"] .founder-initials {
  font-family: var(--font-title, "Barlow", sans-serif);
  font-weight: 600;
  font-size: 1.5rem;
}
.wp-block-formasuisse-people[data-variant="founders"] .founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-formasuisse-people[data-variant="founders"] .founder h3 {
  font-size: 1.25rem;
  margin: 0;
  font-family: var(--font-title, "Barlow", sans-serif);
  color: var(--color-primary, #062343);
}
.wp-block-formasuisse-people[data-variant="founders"] .founder .role {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #328efe);
  font-weight: 600;
  margin: 4px 0 14px;
}
.wp-block-formasuisse-people[data-variant="founders"] .founder p {
  font-size: 0.95rem;
  color: var(--color-text-sub, #5a5a5a);
  line-height: 1.6;
  margin: 0 0 12px;
}
.wp-block-formasuisse-people[data-variant="founders"] .founder p:last-child {
  margin-bottom: 0;
}
/* Editor: per-card media control — keep the upload button inside the round
   76px portrait, mirroring the front-end crop. */
.wp-block-formasuisse-people[data-variant="founders"] .fs-ppl-media {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}
.wp-block-formasuisse-people[data-variant="founders"] .fs-ppl-media img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}
.wp-block-formasuisse-people[data-variant="founders"] .ppl-photo-empty-btn {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  font-size: 0.6rem;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 760px) {
  .wp-block-formasuisse-people[data-variant="founders"] .founders-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1199px) {
  .wp-block-formasuisse-people[data-variant="founders"] .wrapper {
    padding: 0 clamp(20px, 4vw, 56px);
  }
}
