.c2rb-team-grid {
    padding: clamp(56px, 7vw, 96px) 24px;
}
.c2rb-team-grid--soft-pink { background: #fff8fb; }
.c2rb-team-grid--soft-green { background: #f4faf9; }
.c2rb-team-grid__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.c2rb-team-grid__header {
    max-width: 760px;
    margin: 0 auto clamp(36px, 5vw, 58px);
    text-align: center;
}
.c2rb-team-grid__eyebrow {
    margin: 0 0 10px;
    color: #50a599;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.c2rb-team-grid__title {
    margin: 0;
    color: #c4769f;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
}
.c2rb-team-grid__title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: #50a599;
}
.c2rb-team-grid__intro {
    margin: 24px auto 0;
    color: #4f5960;
    font-size: 1.08rem;
    line-height: 1.7;
}
.c2rb-team-grid__list {
    display: grid;
    grid-template-columns: repeat(var(--c2rb-team-columns, 3), minmax(0, 1fr));
    gap: clamp(22px, 3vw, 34px);
}
.c2rb-team-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(80, 165, 153, .18);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(40, 63, 66, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.c2rb-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(40, 63, 66, .13);
}
.c2rb-team-card__photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(145deg, #edf7f5, #fff2f8);
}
.c2rb-team-card__photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.c2rb-team-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #50a599;
    font-size: 4rem;
    font-weight: 700;
}
.c2rb-team-card__body {
    min-height: 144px;
    padding: 24px 22px 27px;
    text-align: center;
}
.c2rb-team-card__name {
    margin: 0;
    color: #2e4345;
    font-size: 1.24rem;
    line-height: 1.25;
}
.c2rb-team-card__role {
    margin: 10px 0 0;
    color: #50a599;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.45;
}
.c2rb-team-grid__empty {
    padding: 30px;
    border: 1px dashed #9dcfc8;
    border-radius: 18px;
    text-align: center;
    color: #536366;
    background: #fff;
}
.c2rb-team-grid-editor {
    padding: 32px;
    border: 1px solid #d7e8e5;
    background: #f8fbfb;
}
.c2rb-team-grid-editor__preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.c2rb-team-grid-editor__card {
    padding: 12px 12px 18px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.c2rb-team-grid-editor__photo {
    aspect-ratio: 4/5;
    margin-bottom: 12px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dff0ed, #f6e0eb);
}
.c2rb-team-grid-editor__card span { display: block; margin-top: 6px; color: #50a599; }
@media (max-width: 960px) {
    .c2rb-team-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .c2rb-team-grid { padding-inline: 18px; }
    .c2rb-team-grid__list { grid-template-columns: 1fr; }
    .c2rb-team-grid-editor__preview { grid-template-columns: 1fr; }
}

/* 6.1.18 — Regroupement libre de l'équipe par zones */
.c2rb-team-zones {
    display: grid;
    gap: clamp(54px, 7vw, 90px);
}
.c2rb-team-zone__title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 30px;
    color: #2e4345;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
}
.c2rb-team-zone__title::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #50a599, rgba(80, 165, 153, 0));
}
@media (max-width: 620px) {
    .c2rb-team-zone__title { gap: 12px; margin-bottom: 22px; }
}

/* 6.1.20 — Cartes équipe compactes et centrées */
.c2rb-team-grid__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(18px, 2.5vw, 28px);
}
.c2rb-team-card {
    flex: 0 1 210px;
    width: min(210px, 100%);
    max-width: 210px;
}
.c2rb-team-card__body {
    min-height: 108px;
    padding: 17px 14px 20px;
}
.c2rb-team-card__name {
    font-size: 1.02rem;
}
.c2rb-team-card__role {
    margin-top: 7px;
    font-size: .86rem;
}
.c2rb-team-card__placeholder {
    font-size: 2.7rem;
}
.c2rb-team-grid-editor__preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.c2rb-team-grid-editor__card {
    flex: 0 1 170px;
    max-width: 170px;
}
@media (max-width: 620px) {
    .c2rb-team-grid__list {
        display: flex;
        justify-content: center;
    }
    .c2rb-team-card {
        flex-basis: min(210px, 100%);
        width: min(210px, 100%);
    }
    .c2rb-team-grid-editor__preview {
        display: flex;
    }
}


/* 6.1.25 — Cartes équipe harmonisées et ordre des zones fiabilisé */
.c2rb-team-card__body {
    min-height: 0;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
}
.c2rb-team-card__name {
    width: 100%;
    margin: 0;
    color: #2e4345;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}
.c2rb-team-card__role {
    width: 100%;
    margin: 5px 0 0;
    color: #50a599;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}
.c2rb-team-card:not(:has(.c2rb-team-card__role)) .c2rb-team-card__body {
    padding-block: 12px;
}

/* 6.1.26 — Correctif prioritaire des cartes équipe */
.c2rb-team-grid .c2rb-team-grid__list {
    align-items: flex-start !important;
}
.c2rb-team-grid .c2rb-team-card {
    align-self: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
}
.c2rb-team-grid .c2rb-team-card__body {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    padding: 8px 10px 9px !important;
    display: block !important;
    text-align: center !important;
}
.c2rb-team-grid .c2rb-team-card__name {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #2e4345 !important;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif) !important;
    font-size: 1rem !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    text-align: center !important;
}
.c2rb-team-grid .c2rb-team-card__role {
    display: block !important;
    width: 100% !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    color: #50a599 !important;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif) !important;
    font-size: .72rem !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 1.18 !important;
    text-align: center !important;
}
.c2rb-team-grid .c2rb-team-card__body > :first-child {
    margin-top: 0 !important;
}
.c2rb-team-grid .c2rb-team-card__body > :last-child {
    margin-bottom: 0 !important;
}


/* C2RB Studio 6.9.4 — affichage unique, sans zones. */
.c2rb-team-grid > .c2rb-team-grid__inner > .c2rb-team-grid__list {
    margin-top: 38px;
}


/* 6.9.5 — Cartes équipe style UI kit, sans lien fiche */
.c2rb-team-grid .c2rb-team-grid__list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(24px, 3vw, 36px);
}
.c2rb-team-grid .c2rb-team-card {
    position: relative;
    flex: 0 1 274px;
    width: min(274px, 100%);
    max-width: 274px;
    overflow: hidden;
    border: 1px solid rgba(80, 165, 153, .16);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(40, 63, 66, .08);
}
.c2rb-team-grid .c2rb-team-card:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(40, 63, 66, .08);
}
.c2rb-team-grid .c2rb-team-card__head {
    height: 170px;
    background: #eef1f2;
}
.c2rb-team-grid .c2rb-team-card__body {
    position: relative;
    padding: 0 20px 24px !important;
    min-height: 190px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center !important;
}
.c2rb-team-grid .c2rb-team-card__portrait {
    width: 124px;
    height: 124px;
    margin-top: -62px;
    margin-bottom: 18px;
    border: 6px solid #ffffff;
    border-radius: 50%;
    overflow: hidden;
    background: #d6e4ea;
    box-shadow: 0 6px 18px rgba(40, 63, 66, .12);
}
.c2rb-team-grid .c2rb-team-card__photo,
.c2rb-team-grid .c2rb-team-card__placeholder {
    width: 100%;
    height: 100%;
    display: block;
}
.c2rb-team-grid .c2rb-team-card__photo {
    object-fit: cover;
}
.c2rb-team-grid .c2rb-team-card__placeholder {
    display: grid;
    place-items: center;
    color: #50a599;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: 2rem;
    font-weight: 700;
}
.c2rb-team-grid .c2rb-team-card__name {
    margin: 0 !important;
    color: #334155 !important;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}
.c2rb-team-grid .c2rb-team-card__role {
    margin: 10px 0 0 !important;
    color: #7b8794 !important;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif) !important;
    font-size: .9rem !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-align: center !important;
}
.c2rb-team-grid .c2rb-team-card:not(:has(.c2rb-team-card__role)) .c2rb-team-card__body {
    min-height: 160px;
}
.c2rb-team-grid-editor__preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.c2rb-team-grid-editor__card {
    position: relative;
    flex: 0 1 220px;
    max-width: 220px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(80, 165, 153, .16);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(40, 63, 66, .08);
}
.c2rb-team-grid-editor__head {
    height: 120px;
    background: #eef1f2;
}
.c2rb-team-grid-editor__body {
    padding: 0 16px 18px;
    text-align: center;
}
.c2rb-team-grid-editor__photo {
    width: 96px;
    height: 96px;
    margin: -48px auto 14px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: #d6e4ea;
    box-shadow: 0 4px 12px rgba(40, 63, 66, .12);
    aspect-ratio: auto;
}
.c2rb-team-grid-editor__card strong {
    display: block;
    color: #334155;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: .96rem;
    line-height: 1.25;
}
.c2rb-team-grid-editor__card span {
    display: block;
    margin-top: 8px;
    color: #7b8794;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.35;
}
@media (max-width: 620px) {
    .c2rb-team-grid .c2rb-team-card {
        flex-basis: min(274px, 100%);
        width: min(274px, 100%);
    }
}


/* 6.9.6 — Portrait équipe plus grand, à cheval sur la séparation */
.c2rb-team-grid .c2rb-team-card__head {
    height: 164px;
}
.c2rb-team-grid .c2rb-team-card__body {
    padding: 0 20px 26px !important;
    min-height: 214px;
}
.c2rb-team-grid .c2rb-team-card__portrait {
    width: 156px;
    height: 156px;
    margin-top: -78px;
    margin-bottom: 20px;
    border-width: 6px;
}
.c2rb-team-grid .c2rb-team-card__name {
    max-width: 100%;
    margin-top: 0 !important;
}
.c2rb-team-grid .c2rb-team-card__role {
    margin-top: 8px !important;
}
.c2rb-team-grid .c2rb-team-card:not(:has(.c2rb-team-card__role)) .c2rb-team-card__body {
    min-height: 188px;
}
.c2rb-team-grid-editor__head {
    height: 112px;
}
.c2rb-team-grid-editor__body {
    padding: 0 16px 18px;
}
.c2rb-team-grid-editor__photo {
    width: 112px;
    height: 112px;
    margin: -56px auto 14px;
}


/* 6.9.7 — Portrait réellement à cheval sur la séparation */
.c2rb-team-grid .c2rb-team-card {
    position: relative;
}
.c2rb-team-grid .c2rb-team-card__head {
    height: 164px;
}
.c2rb-team-grid .c2rb-team-card__body {
    position: static !important;
    padding: 96px 20px 26px !important;
    min-height: 214px;
}
.c2rb-team-grid .c2rb-team-card__portrait {
    position: absolute;
    top: 164px;
    left: 50%;
    z-index: 2;
    width: 156px;
    height: 156px;
    margin: 0;
    transform: translate(-50%, -50%);
    border-width: 6px;
}
.c2rb-team-grid .c2rb-team-card__name {
    margin-top: 0 !important;
}
.c2rb-team-grid .c2rb-team-card__role {
    margin-top: 8px !important;
}
.c2rb-team-grid .c2rb-team-card:not(:has(.c2rb-team-card__role)) .c2rb-team-card__body {
    min-height: 188px;
}

.c2rb-team-grid-editor__card {
    position: relative;
}
.c2rb-team-grid-editor__head {
    height: 112px;
}
.c2rb-team-grid-editor__body {
    padding: 70px 16px 18px;
    text-align: center;
}
.c2rb-team-grid-editor__photo {
    position: absolute;
    top: 112px;
    left: 50%;
    width: 112px;
    height: 112px;
    margin: 0;
    transform: translate(-50%, -50%);
}


/* 6.9.8 — Cartes équilibrées et avatars de remplacement */
.c2rb-team-grid .c2rb-team-card {
    height: 360px;
}
.c2rb-team-grid .c2rb-team-card__head {
    height: 124px;
    flex: 0 0 124px;
}
.c2rb-team-grid .c2rb-team-card__body {
    box-sizing: border-box !important;
    height: 236px !important;
    min-height: 236px !important;
    padding: 96px 20px 24px !important;
    justify-content: flex-start !important;
}
.c2rb-team-grid .c2rb-team-card__portrait {
    top: 124px;
    width: 156px;
    height: 156px;
}
.c2rb-team-grid .c2rb-team-card__name {
    min-height: 2.5em;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.c2rb-team-grid .c2rb-team-card__role {
    min-height: 2.9em;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
}
.c2rb-team-grid .c2rb-team-card__avatar {
    object-fit: cover;
    object-position: center center !important;
    background: #dce9ed;
}
.c2rb-team-grid .c2rb-team-card:not(:has(.c2rb-team-card__role)) .c2rb-team-card__body {
    min-height: 236px !important;
}
.c2rb-team-grid-editor__card {
    height: 300px;
}
.c2rb-team-grid-editor__head {
    height: 96px;
}
.c2rb-team-grid-editor__body {
    box-sizing: border-box;
    height: 204px;
    padding: 68px 16px 18px;
}
.c2rb-team-grid-editor__photo {
    top: 96px;
}


/* 6.9.9 — Avatar SVG intégré directement dans la carte */
.c2rb-team-grid .c2rb-team-card__avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 6.9.10 — Sécurisation visuelle des avatars */
.c2rb-team-card__portrait:empty {
    display: grid;
    place-items: center;
    background: #dce9ed;
}
.c2rb-team-card[data-avatar="female"] .c2rb-team-card__portrait:empty::before,
.c2rb-team-card[data-avatar="male"] .c2rb-team-card__portrait:empty::before {
    display: grid;
    place-items: center;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    background: #50a599;
    color: #fff;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
}
.c2rb-team-card[data-avatar="female"] .c2rb-team-card__portrait:empty::before { content: "F"; }
.c2rb-team-card[data-avatar="male"] .c2rb-team-card__portrait:empty::before { content: "H"; }


/* 6.9.13 — Avatars exacts issus de la maquette fournie */
.c2rb-team-grid .c2rb-team-card__avatar {
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    background: #f5f9fa !important;
}


/* 6.9.14 — Avatar agrandi à l’intérieur de la bulle */
.c2rb-team-grid .c2rb-team-card__avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.08);
    transform-origin: center center;
}


/* 6.9.15 — Avatars recadrés sans espace vide interne */
.c2rb-team-grid .c2rb-team-card__avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    padding: 0 !important;
}


/* 6.9.16 — Agrandissement réel et contournement du cache navigateur */
.c2rb-team-grid .c2rb-team-card__portrait {
    overflow: hidden !important;
}
.c2rb-team-grid .c2rb-team-card__avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.42) !important;
    transform-origin: center center !important;
}


/* 6.9.17 — Réduction de 15 % de l’avatar dans la bulle */
.c2rb-team-grid .c2rb-team-card__avatar {
    transform: scale(1.21) !important;
}


/* 7.0.3 — Filtre automatique de l’équipe par fonction */
.c2rb-team-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -8px auto 38px;
}
.c2rb-team-filter__button {
    appearance: none;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid rgba(80, 165, 153, .38);
    border-radius: 999px;
    background: #fff;
    color: #334e50;
    font-family: var(--cds-font-sans, "Montserrat", Arial, sans-serif);
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.c2rb-team-filter__button:hover,
.c2rb-team-filter__button:focus-visible {
    border-color: #50a599;
    box-shadow: 0 0 0 3px rgba(80, 165, 153, .16);
    outline: none;
}
.c2rb-team-filter__button.is-active {
    border-color: #50a599;
    background: #50a599;
    color: #fff;
}
.c2rb-team-card[hidden] {
    display: none !important;
}
.c2rb-team-filter--editor {
    margin: 22px auto 10px;
    pointer-events: none;
}
@media (max-width: 620px) {
    .c2rb-team-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
        padding: 3px 2px 10px;
        margin-bottom: 28px;
        scrollbar-width: thin;
    }
    .c2rb-team-filter__button {
        flex: 0 0 auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .c2rb-team-filter__button { transition: none; }
}




/* 7.0.5 — Bandeau pastel vert ou rose dans le haut des cartes équipe */
.c2rb-team-grid .c2rb-team-card__head {
    background: var(--c2rb-team-head-bg, #dff1ed) !important;
}
.c2rb-team-grid .c2rb-team-card__portrait {
    border-color: #ffffff !important;
    box-shadow: 0 7px 20px rgba(40, 63, 66, .15) !important;
}
.c2rb-team-grid .c2rb-team-card:hover .c2rb-team-card__portrait,
.c2rb-team-grid .c2rb-team-card:focus-within .c2rb-team-card__portrait {
    box-shadow: 0 9px 24px rgba(40, 63, 66, .2) !important;
}
.c2rb-team-grid-editor__card:nth-child(odd) .c2rb-team-grid-editor__head {
    background: #dff1ed;
}
.c2rb-team-grid-editor__card:nth-child(even) .c2rb-team-grid-editor__head {
    background: #f5e2ec;
}


/* 7.0.15 — Portraits équipe : avatars plus nets et fond pastel pour les PNG */
.c2rb-team-grid .c2rb-team-card__avatar {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.c2rb-team-grid .c2rb-team-card__portrait--png {
    background: var(--c2rb-team-head-bg, #dff1ed) !important;
}
.c2rb-team-grid .c2rb-team-card__photo--png {
    background: transparent !important;
}
