/* Portraits réels : mouvement au survol ou au focus, aucun script supplémentaire. */
.marrs-team {
  background: #FFFFFF;
  color: #000000;
  scroll-margin-top: 110px;
}
.marrs-team-heading { max-width: 850px; margin-bottom: 3rem; }
.marrs-team-heading h2 { font-size: clamp(1.75rem, 3.8vw, 3rem); line-height: 1.12; }
.marrs-team-heading h2 span { display: block; }
.marrs-team-heading > p:last-child { max-width: 620px; margin-top: 1.1rem; }
.marrs-team-grid { --team-gap: clamp(1rem, 2.4vw, 2rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--team-gap); align-items: start; }
.marrs-team-agency-grid { --team-gap: 1.4rem; gap: var(--team-gap); }
.marrs-team-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.marrs-team-agency-grid > .team-card { min-width: 0; }
.marrs-team-agency-grid h3 { overflow-wrap: anywhere; }
.marrs-team-card { min-width: 0; }
.marrs-team-portrait { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #000000; }
.marrs-team-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.marrs-team-portrait.marrs-team-portrait--agency { width: 96px; height: 96px; margin-bottom: 1.2rem; border-radius: 50%; }
.marrs-agency-page .team-card .role { font-size: 1rem; }
.marrs-team-card h3 { margin: 1.1rem 0 .35rem; font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.3; color: #000000; }
.marrs-team-role { margin: 0; color: #3D414A; font-size: 1rem; line-height: 1.45; }
.marrs-team-signature { margin: 1rem 0 0; padding-left: .75rem; border-left: 2px solid #C25A2E; font-size: 1rem; line-height: 1.45; color: #071230; }
.marrs-team-link { display: inline-flex; gap: .6rem; align-items: center; min-height: 44px; margin-top: .5rem; color: #071230; text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; }
.marrs-team-link:focus-visible, .marrs-team-compact a:focus-visible { outline: 3px solid #071230; outline-offset: 4px; border-radius: 3px; }
.marrs-team-initial { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; color: #FFFFFF; background: #071230; }
.marrs-team-compact { padding: 1.5rem; border: 1px solid #D9DDE5; border-radius: 24px; background: #FFFFFF; color: #000000; }
.marrs-team-avatars { display: flex; padding-left: 4px; margin-bottom: 1rem; }
.marrs-team-avatars > span { display: block; flex: 0 1 52px; aspect-ratio: 1; min-width: 0; border: 3px solid #FFFFFF; border-radius: 50%; overflow: hidden; margin-left: -4px; background: #071230; }
.marrs-team-avatars img { display: block; width: 100%; height: 100%; object-fit: cover; }
.marrs-team-avatars .marrs-team-initial { font-size: 1.25rem; }
.marrs-team-compact h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .65rem; color: #071230; }
.marrs-team-compact p { margin: 0; font-size: 1rem; line-height: 1.5; }
.marrs-team-compact a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; margin-top: .4rem; color: #071230; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 901px) { .marrs-team-card:nth-child(even) { margin-top: 2rem; } }
@media (min-width: 901px) and (max-width: 1199px) {
  .marrs-team-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .marrs-team-grid, .marrs-team-agency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .marrs-team-grid--five > :last-child { grid-column: 1 / -1; width: calc((100% - var(--team-gap)) / 2); justify-self: center; }
  .marrs-team-heading { margin-bottom: 2rem; }
  .marrs-team-portrait { border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .marrs-team-card:focus-within .marrs-team-portrait img { transform: translateY(-3px) rotate(-1deg) scale(1.025); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .marrs-team-card:hover .marrs-team-portrait img { transform: translateY(-3px) rotate(-1deg) scale(1.025); }
  .marrs-team-card:nth-child(even):hover .marrs-team-portrait img { transform: translateY(-3px) rotate(1deg) scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .marrs-team-portrait, .marrs-team-portrait img { animation: none !important; transition: none !important; transform: none !important; }
}
