.oa-organigramme {
  --oa-ink: #183b34;
  --oa-red: #ed1745;
  --oa-paper: #f8f3ed;
  --oa-line: #d9ddd9;
  --oa-muted: #69736f;
  color: var(--oa-ink);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-inline: auto;
  max-width: 1440px;
  padding: clamp(42px, 7vw, 96px) clamp(16px, 3vw, 44px);
}

.oa-heading {
  margin: 0 auto clamp(38px, 6vw, 72px);
  max-width: 780px;
  text-align: center;
}

.oa-eyebrow {
  color: var(--oa-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.oa-title {
  color: var(--oa-ink);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 0;
}

.oa-intro {
  color: var(--oa-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  margin: 20px auto 0;
  max-width: 700px;
}

.oa-tree,
.oa-tree * {
  box-sizing: border-box;
}

.oa-tree {
  overflow-x: auto;
  padding: 3px 3px 24px;
}

.oa-tree--team {
  overflow: visible;
}

.oa-team {
  margin-inline: auto;
  max-width: 1080px;
}

.oa-tabs {
  border-bottom: 1px solid rgba(24, 59, 52, .14);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 48px);
  margin-bottom: 30px;
  overflow: visible;
}

.oa-tab {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--oa-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 650;
  gap: 9px;
  padding: 0 0 15px;
  position: relative;
  transition: color .2s ease;
}

.oa-tab::after {
  background: var(--oa-red);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  width: 100%;
}

.oa-tab small {
  align-items: center;
  background: var(--oa-paper);
  border-radius: 6px;
  color: var(--oa-ink);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding-inline: 6px;
}

.oa-tab:hover,
.oa-tab.is-active {
  color: var(--oa-ink);
}

.oa-tab.is-active::after {
  transform: scaleX(1);
}

.oa-tab:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(237, 23, 69, .25);
  outline-offset: 4px;
}

.oa-team__panel[hidden] {
  display: none;
}

.oa-team__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oa-team__panel .oa-group {
  display: none;
}

.oa-team__empty {
  background: var(--oa-paper);
  border-radius: 12px;
  color: var(--oa-muted);
  margin: 0;
  padding: 22px;
}

.oa-team .oa-card {
  display: flex;
  height: 100%;
  min-height: 190px;
  width: 100%;
}

/* Harmonise aussi l’ancien balisage si Avada a conservé une version en cache. */
.oa-team .oa-card--leader {
  background: #fff;
  border: 1px solid rgba(24, 59, 52, .1);
  box-shadow: 0 16px 42px rgba(24, 59, 52, .09);
  color: var(--oa-ink);
  min-height: 190px;
  padding: 22px;
  width: 100%;
}

.oa-card--leader .oa-group,
.oa-card--leader .oa-role {
  color: var(--oa-red);
}

.oa-card--leader .oa-identity h3 {
  color: var(--oa-ink);
  font-size: 17px;
}

.oa-card--leader .oa-avatar {
  background: var(--oa-paper);
  border-color: #fff;
  color: var(--oa-ink);
  flex-basis: 60px;
  height: 60px;
  width: 60px;
}

.oa-card--leader .oa-bio {
  border-color: #edf0ee;
  color: var(--oa-muted);
}

.oa-card--leader .oa-socials a {
  background: var(--oa-paper);
  color: var(--oa-ink);
}

.oa-socials {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
}

.oa-socials a {
  align-items: center;
  background: var(--oa-paper);
  border-radius: 7px;
  color: var(--oa-ink);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  width: 28px;
}

.oa-socials a:hover,
.oa-socials a:focus-visible {
  background: var(--oa-red);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.oa-level {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  min-width: max-content;
  padding: 42px 0 0;
  position: relative;
}

.oa-level:not(.oa-level--root)::before {
  background: var(--oa-line);
  content: "";
  height: 42px;
  left: 50%;
  position: absolute;
  top: 0;
  width: 2px;
}

.oa-level--root {
  min-width: 100%;
  padding-top: 0;
}

.oa-branch {
  list-style: none;
  padding: 42px 12px 0;
  position: relative;
  text-align: center;
}

.oa-level--root > .oa-branch {
  padding-top: 0;
}

.oa-branch::before,
.oa-branch::after {
  border-top: 2px solid var(--oa-line);
  content: "";
  height: 42px;
  position: absolute;
  right: 50%;
  top: 0;
  width: 50%;
}

.oa-branch::after {
  border-left: 2px solid var(--oa-line);
  left: 50%;
  right: auto;
}

.oa-branch:only-child::before,
.oa-branch:only-child::after,
.oa-level--root > .oa-branch::before,
.oa-level--root > .oa-branch::after {
  display: none;
}

.oa-branch:first-child::before,
.oa-branch:last-child::after {
  border: 0;
}

.oa-branch:last-child::before {
  border-radius: 0 10px 0 0;
  border-right: 2px solid var(--oa-line);
}

.oa-branch:first-child::after {
  border-radius: 10px 0 0;
}

.oa-card {
  background: #fff;
  border: 1px solid rgba(24, 59, 52, .1);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(24, 59, 52, .09);
  display: inline-flex;
  flex-direction: column;
  min-height: 176px;
  padding: 22px;
  position: relative;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  vertical-align: top;
  width: clamp(225px, 19vw, 285px);
  z-index: 1;
}

.oa-card:hover {
  border-color: rgba(237, 23, 69, .35);
  box-shadow: 0 22px 55px rgba(24, 59, 52, .14);
  transform: translateY(-4px);
}

.oa-group {
  color: var(--oa-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.oa-profile {
  align-items: center;
  display: flex;
  gap: 14px;
}

.oa-avatar {
  align-items: center;
  background: var(--oa-paper);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 59, 52, .1);
  color: var(--oa-ink);
  display: flex;
  flex: 0 0 60px;
  font-size: 17px;
  font-weight: 800;
  height: 60px;
  justify-content: center;
  overflow: hidden;
  width: 60px;
}

.oa-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.oa-identity {
  min-width: 0;
}

.oa-identity h3 {
  color: var(--oa-ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0;
}

.oa-role {
  color: var(--oa-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 5px 0 0;
}

.oa-bio {
  border-top: 1px solid #edf0ee;
  color: var(--oa-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 18px 0 0;
  padding-top: 15px;
}

.oa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: auto;
  padding-top: 15px;
}

.oa-actions a {
  color: var(--oa-ink);
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(237, 23, 69, .45);
  text-underline-offset: 3px;
}

.oa-actions .oa-site-link {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  text-decoration: none;
}

.oa-actions .oa-site-link span {
  color: var(--oa-red);
  transition: transform .2s ease;
}

.oa-actions .oa-site-link:hover span,
.oa-actions .oa-site-link:focus-visible span {
  transform: translate(2px, -2px);
}

.oa-empty {
  background: #fff8ea;
  border-left: 4px solid #dba617;
  padding: 15px 18px;
}

@media (max-width: 780px) {
  .oa-tree {
    overflow: visible;
    padding-left: 11px;
  }

  .oa-level,
  .oa-level--root {
    display: block;
    min-width: 0;
    padding: 0 0 0 24px;
  }

  .oa-level:not(.oa-level--root)::before {
    display: none;
  }

  .oa-branch,
  .oa-level--root > .oa-branch {
    padding: 0 0 22px 20px;
    text-align: left;
  }

  .oa-branch::before,
  .oa-branch::after,
  .oa-level--root > .oa-branch::before,
  .oa-level--root > .oa-branch::after {
    display: none;
  }

  .oa-branch > .oa-level {
    border-left: 2px solid var(--oa-line);
    margin: 18px 0 0 22px;
    padding-left: 18px;
  }

  .oa-branch > .oa-level > .oa-branch::before {
    border: 0;
    border-top: 2px solid var(--oa-line);
    display: block;
    height: 0;
    left: -18px;
    top: 30px;
    width: 18px;
  }

  .oa-card {
    max-width: 430px;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .oa-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .oa-tabs {
    gap: 0;
  }

  .oa-tab {
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
  }

  .oa-team__grid {
    grid-template-columns: 1fr;
  }

  .oa-team .oa-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-card {
    transition: none;
  }
}
