/* ==========================================================================
   Member Bio Specific Styles
   ========================================================================== */

:root {
    --member-header-bg: #F0F7F9;
    --text-primary-color: #156C88;
    --border-light: #E2E8F0;
}

/* --- Breadcrumbs --- */
.breadcrumb-nav .breadcrumb-item a {
    color: var(--body-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--text-primary-color);
    font-weight: 500;
}



/* --- Member Header Section --- */
.member-header-section {
    background-color: var(--member-header-bg);
    padding: 20px 0 80px 0;
}

.member-header__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.member-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.text-primary-color {
    color: var(--text-primary-color);
}

.member-role {
    font-size: 1.5rem;
    color: var(--text-primary-color);
    font-style: italic;
    font-weight: 400;
}

/* --- Member Sidebar overlap --- */
.member-content-section {
    margin-top: -140px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.member-sidebar-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    padding: 12px;
    width: 100%;
    max-width: 360px;
}

.member-photo-wrapper {
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 16px;
}

.member-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.member-sidebar-card:hover .member-photo {
    transform: scale(1.08);
}

.member-sidebar-body {
    padding: 16px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.sidebar-info-item i {
    color: #94A3B8;
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-info-item span {
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
    white-space: normal; /*nowrap;*/
}

.sidebar-info-item a {
    font-weight: 400;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-info-item a:hover {
    color: var(--text-primary-color);
    text-decoration: underline;
}

/* --- Tags section --- */
.member-tags-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 12px;
    max-width: 329px;
}

.member-tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.tag-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.volet-1 {
    background-color: var(--v1);
}

.volet-2 {
    background-color: var(--v2);
}

.volet-3 {
    background-color: var(--v3);
}

.volet-4 {
    background-color: var(--v4);
}

.volet-5 {
    background-color: var(--v5);
}

/* --- Right Content Column --- */
.main-content-col {
    padding-top: 60px;
}

.content-decoration-bar {
    width: 110px;
    height: 5px;
    background-color: var(--text-primary-color);
    margin-top: 0;
    margin-bottom: 40px;
    margin-left: 0;
    border-radius: 0;
}

body.single-idgrafixpersonnes .section-title, body.single-idgrafixpartenaires .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    display: block;
    width: 100%;
}

.bio-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--body-text);
    margin-bottom: 50px;
}

/* --- Affiliation Section --- */
.affiliation-list {
    columns: 2;
    column-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.aff-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.aff-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary-color);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.aff-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aff-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.aff-subtext {
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.5;
}

/* --- Resource Cards --- */
.member-content-section .resource-card {
    padding: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    height: 100%;
}

.member-content-section .resource-card__header {
    margin-bottom: 0;
    padding: 20px 24px;
    background-color: #F0F7F9;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-content-section .resource-list {
    padding: 8px 24px 24px 24px;
}

.card--productions .resource-card__header i,
.card--productions .resource-card__title {
    color: var(--text-primary-color);
}

.member-content-section .resource-list-item {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.member-content-section .resource-list-item:last-child {
    border-bottom: none;
}

.resource-list-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.4;
}

.member-content-section .resource-list-item i.bi-chevron-right {
    font-size: 1rem;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.member-content-section .resource-list-item:hover i.bi-chevron-right {
    color: var(--text-primary-color);
    transform: translateX(4px);
}

.volet-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.dot--sante {
    background-color: var(--v1);
}

.dot--education {
    background-color: var(--v2);
}

.dot--emploi {
    background-color: var(--v3);
}

.dot--autochtones {
    background-color: var(--v4);
}

.dot--citoyennete {
    background-color: var(--v5);
}

/* --- Other Members Carousel --- */
.other-members-section {
    background-color: #F8FAFC;
    border-top: 1px solid var(--card-border);
}

.btn-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 8px;
    cursor: pointer;
}

.btn-nav:hover {
    background: var(--text-primary-color);
    color: white;
    border-color: var(--text-primary-color);
}

.other-members-carousel {
    overflow: hidden;
    position: relative;
}

.other-members-carousel .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.other-members-carousel .row::-webkit-scrollbar {
    display: none;
}

.member-card-mini {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-card-mini__image {
    width: 100%;
    aspect-ratio: 1/1.2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.member-card-mini__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card-mini:hover .member-card-mini__image img {
    transform: scale(1.05);
}

.mini-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-role {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* --- Nouvelles Dates --- */
.resource-list-item__meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.resource-list-item__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 500;
}

.resource-list-item__meta i {
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .member-header-section {
        padding: 40px 0 240px 0;
        text-align: center;
    }

    .breadcrumb-nav .breadcrumb {
        justify-content: center;
    }

    .member-header__grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .main-content-col {
        padding-top: 40px;
    }

    .content-decoration-bar {
        display: none;
    }

    .member-name {
        font-size: 2.25rem;
    }

    .member-header__actions {
        margin-bottom: 60px;
    }

    .member-content-section {
        margin-top: -140px;
        padding-top: 0 !important;
        position: relative;
        z-index: 10;
    }

    .member-sidebar-card {
        max-width: 360px;
        margin: 0 auto 40px auto;
        position: relative;
        z-index: 20;
    }

    .member-tags-section {
        max-width: 360px;
        margin: 0 auto 40px auto;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-tag-item {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 20px;
    }

    .resource-card__btn-top {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .affiliation-list {
        columns: 1;
    }
}

@media (max-width: 576px) {
    .member-header-section {
        padding: 40px 0 240px 0;
    }

    .member-name {
        font-size: 1.8rem;
    }

    .member-header__actions .btn-crj {
        width: 100%;
        justify-content: center;
    }

    .other-members-carousel .row {
        scroll-snap-type: x mandatory;
        gap: 12px;
    }

    .other-members-carousel .col-6 {
        scroll-snap-align: start;
        flex: 0 0 75%;
    }

    .mini-name {
        white-space: normal;
    }
}
#membresReseauCRJ .form-control,
#membresReseauCRJ .form-select {
    font-size: 0.875rem;
    line-height: 1.4;
}

#membresReseauCRJ .form-control::placeholder {
    font-size: 0.8rem;
    opacity: 0.7;
}
#membresReseauCRJ .form-control,
#membresReseauCRJ .form-select {
    padding: 0.5rem 0.75rem;
}
