/* Section autonome : toutes les règles sont limitées à #agents. */
#agents {
  padding: 112px 0;
  background: #f3f7f4;
  color: #10263a;
  font-family: "DM Sans", Arial, sans-serif;
}

#agents *,
#agents *::before,
#agents *::after {
  box-sizing: border-box;
}

#agents .flowba-agents__inner {
  width: min(1380px, calc(100% - 11%));
  margin: 0 auto;
}

#agents .flowba-agents__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  align-items: end;
  gap: 40px;
}

#agents .flowba-agents__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: #315f60;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

#agents .flowba-agents__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: none;
  background: #339b95;
}

#agents h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(37px, 4.1vw, 57px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

#agents h2 em {
  color: #397675;
  font-weight: 400;
}

#agents .flowba-agents__intro {
  max-width: 350px;
  margin: 0 0 4px;
  color: #435e63;
  font-size: 15px;
  line-height: 1.75;
}

#agents .flowba-agents__notice {
  max-width: 900px;
  margin: 30px 0 38px;
  padding: 14px 18px;
  border-left: 3px solid #4ba8a1;
  background: #e5efeb;
  color: #284a52;
  font-size: 13px;
  line-height: 1.65;
}

#agents .flowba-agents__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

#agents .flowba-agent {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid #c9d9d4;
  background: #fff;
}

#agents .flowba-agent__portrait {
  overflow: hidden;
  margin: 0 0 19px;
  border: 1px solid #c9d9d4;
  background: #e5efeb;
}

#agents .flowba-agent__portrait img {
  display: block;
  width: 100%;
  max-height: 250px;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: 50% 35%;
}

#agents .flowba-agent__portrait figcaption {
  padding: 8px 11px 9px;
  border-top: 1px solid #d3e2dd;
  color: #315e60;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

#agents .flowba-agent__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#agents .flowba-agent__type {
  color: #315e60;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

#agents .flowba-agent__status {
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #bfd7d0;
  border-radius: 2px;
  background: #edf6f2;
  color: #254c4b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

#agents .flowba-agent__status--active::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2b9965;
  content: "";
}

#agents .flowba-agent__status span {
  font-weight: 400;
}

#agents .flowba-agent__identity {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  margin: 0 0 17px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d9e4e0;
}

#agents .flowba-agent__identity > div {
  min-width: 0;
}

#agents .flowba-agent h3 {
  margin: 0 0 5px;
  color: #10263a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#agents .flowba-agent__role {
  margin: 0;
  color: #345f61;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

#agents .flowba-agent__details {
  display: grid;
  gap: 16px;
  margin: 0 0 25px;
}

#agents .flowba-agent__details div,
#agents .flowba-agent__details dt,
#agents .flowba-agent__details dd {
  margin: 0;
}

#agents .flowba-agent__details dt {
  margin-bottom: 4px;
  color: #315e60;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

#agents .flowba-agent__details dd {
  color: #344e55;
  font-size: 13px;
  line-height: 1.65;
}

#agents .flowba-agent__tasks {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 17px;
}

#agents .flowba-agent__tasks li::marker {
  color: #397675;
}

#agents .flowba-agent__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 0 3px;
  border-top: 1px solid #d9e4e0;
  color: #245f5d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

#agents .flowba-agent__link span {
  font-size: 16px;
}

#agents .flowba-agent__link:hover {
  color: #10263a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#agents .flowba-agent__link:focus-visible {
  outline: 3px solid #16827d;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  #agents .flowba-agents__inner {
    width: calc(100% - 8%);
  }

  #agents .flowba-agent {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  #agents .flowba-agents__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #agents {
    padding: 78px 0;
  }

  #agents .flowba-agents__inner {
    width: calc(100% - 40px);
  }

  #agents .flowba-agents__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #agents h2 {
    font-size: 37px;
  }

  #agents .flowba-agents__notice {
    margin: 25px 0 30px;
  }

  #agents .flowba-agents__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #agents .flowba-agent__identity {
    margin-bottom: 15px;
    padding-bottom: 14px;
  }

  #agents .flowba-agent__portrait {
    margin-bottom: 15px;
  }

  #agents .flowba-agent__portrait img {
    max-height: 175px;
    aspect-ratio: 1.75 / 1;
    object-position: 50% 32%;
  }
}
