:root {
  --team-blue: #212863;
  --team-ink: var(--team-blue);
  --team-text: #4f5369;
  --team-green: #0d5c2f;
  --team-paper: #fff;
  --team-white: #ffffff;
  --team-line: #e3e6ee;
  --team-shadow: 0 22px 56px rgba(33, 40, 99, 0.1);
}

body.pace-subpage {
  background: var(--team-paper);
  color: var(--team-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.pace-subpage .pace-site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--team-line);
  box-shadow: 0 5px 24px rgba(23, 60, 53, 0.07);
  display: flex;
  justify-content: space-between;
  padding: 12px max(24px, calc((100% - 1200px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

body.pace-subpage .pace-brand {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}

body.pace-subpage .pace-brand img {
  height: auto;
  max-height: 54px;
  object-fit: contain;
  width: 170px;
}

body.pace-subpage .pace-site-header nav {
  align-items: center;
  display: flex;
  gap: clamp(12px, 2.5vw, 32px);
}

body.pace-subpage .pace-site-header nav a,
body.pace-subpage .team-back,
body.pace-subpage .team-footer a {
  color: var(--team-green);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

body.pace-subpage .pace-site-header nav a:hover,
body.pace-subpage .pace-site-header nav a:active {
  color: var(--team-green);
  font-weight: 800;
}

body.pace-subpage .pace-site-header nav a:link,
body.pace-subpage .pace-site-header nav a:visited,
body.pace-subpage .pace-site-header nav a:focus {
  color: var(--team-green);
  font-weight: 750;
}

body.pace-subpage .team-back:hover,
body.pace-subpage .team-footer a:hover {
  color: var(--team-blue);
}

body.pace-subpage .team-footer a:hover {
  color: #fff;
}

body.pace-subpage .pace-site-header nav .pace-contact {
  background: var(--team-green);
  border-radius: 999px;
  color: var(--team-white);
  padding: 10px 19px;
}

body.pace-subpage .pace-site-header nav .pace-donation {
  background: #ffca05;
  border-radius: 999px;
  color: var(--team-blue);
  padding: 10px 16px;
}

body.pace-subpage .team-intro {
  background:
    linear-gradient(110deg, rgba(8, 54, 29, 0.94), rgba(13, 92, 47, 0.78)),
    url("./communities.webp") center 42% / cover no-repeat;
  border-radius: 0 0 34px 34px;
  color: var(--team-white);
  margin: 0 auto 54px;
  padding: 42px max(28px, calc((100% - 1120px) / 2)) 68px;
}

body.pace-subpage .team-back {
  color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  margin-bottom: 42px;
}

body.pace-subpage .team-back:hover {
  color: var(--team-white);
}

body.pace-subpage .team-kicker {
  color: #d7edb4;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

body.pace-subpage .team-intro h1 {
  color: var(--team-white);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 16px;
}

body.pace-subpage .team-intro > p:last-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 0;
  max-width: 700px;
}

body.pace-subpage .team-section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 28px 72px;
}

body.pace-subpage .team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.pace-subpage .team-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  overflow: visible;
  transition: transform 180ms ease;
}

body.pace-subpage .team-card:hover {
  transform: translateY(-4px);
}

body.pace-subpage .team-card > img {
  aspect-ratio: 1 / 1;
  background: #e8eee9;
  border: 2px solid var(--team-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(13,92,47,.1), 0 12px 26px rgba(33,40,99,.12);
  box-sizing: border-box;
  display: block;
  object-fit: cover;
  margin: 20px auto 0;
  width: min(78%, 220px);
}

body.pace-subpage .team-avatar {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #d7edb4, #e5f1e8);
  border: 2px solid var(--team-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(13,92,47,.1), 0 12px 26px rgba(33,40,99,.12);
  box-sizing: border-box;
  color: var(--team-blue);
  display: flex;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 750;
  justify-content: center;
  margin: 20px auto 0;
  width: min(78%, 220px);
}

body.pace-subpage .team-card-content {
  padding: 20px;
  text-align: center;
}

body.pace-subpage .team-card h2 {
  color: var(--team-green);
  font-size: 1.16rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 0 0 8px;
}

body.pace-subpage .team-card .team-role {
  color: var(--team-blue);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
}

body.pace-subpage .team-card-content > p:last-child:not(.team-role) {
  color: var(--team-text);
  font-size: 0.91rem;
  line-height: 1.65;
  margin: 0;
}

body.pace-subpage .team-footer {
  align-items: center;
  background: var(--team-green);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  padding: 28px max(28px, calc((100% - 1144px) / 2));
}

body.pace-subpage .team-footer a {
  color: var(--team-white);
}

@media (max-width: 900px) {
  body.pace-subpage .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  body.pace-subpage .pace-site-header {
    gap: 12px;
    padding: 10px 16px;
  }

  body.pace-subpage .pace-brand img {
    max-height: 42px;
    width: 125px;
  }

  body.pace-subpage .pace-site-header nav {
    gap: 12px;
    overflow-x: auto;
  }

  body.pace-subpage .pace-site-header nav a {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  body.pace-subpage .pace-site-header nav .pace-contact {
    padding: 8px 13px;
  }

  body.pace-subpage .pace-site-header nav .pace-donation {
    padding: 8px 13px;
  }

  body.pace-subpage .team-intro {
    margin-bottom: 34px;
    padding: 26px 22px 48px;
  }

  body.pace-subpage .team-back {
    margin-bottom: 32px;
  }

  body.pace-subpage .team-section {
    padding: 0 18px 48px;
  }

  body.pace-subpage .team-grid {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pace-subpage .team-card-content {
    padding: 15px;
  }

  body.pace-subpage .team-card h2 {
    font-size: 1rem;
  }

  body.pace-subpage .team-card .team-role,
  body.pace-subpage .team-card-content > p:last-child:not(.team-role) {
    font-size: 0.84rem;
  }

  body.pace-subpage .team-footer {
    padding: 24px 20px;
  }
}

@media (max-width: 390px) {
  body.pace-subpage .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.pace-subpage .team-card > img {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin-top: 15px;
    width: min(78%, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pace-subpage .team-card {
    transition: none;
  }
}

/* ===== Équipe sur téléphone : 2 colonnes compactes ===== */
@media (max-width: 650px) {
  body.pace-subpage .team-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 14px; padding-right: 14px; }
  body.pace-subpage .team-card { border-radius: 18px; padding: 14px 8px 14px; }
  body.pace-subpage .team-card > img { margin: 0 auto 8px; width: 76%; }
  body.pace-subpage .team-card h2, body.pace-subpage .team-card h3 { font-size: .88rem; line-height: 1.25; }
  body.pace-subpage .team-card p, body.pace-subpage .team-card span { font-size: .76rem; line-height: 1.35; }
}
@media (max-width: 390px) {
  body.pace-subpage .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
