.team-intro {
    position: relative;
    text-align: center;
    padding: 60px 1.5rem 30px;
    background: #0f3d2e;
    color: #fff;
    overflow: hidden;
}

.team-intro .container {
    position: relative;
}

.team-intro h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-intro p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- STATS / CHIFFRES CLÉS ----- */
.team-stats {
    padding: 60px 0;
    background: #f7fbf8;
}

.team-stats-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 32px;
    text-align: center;
}

.team-stats-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.9rem;
}

.team-stat-card {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    border: 1px solid rgba(52,120,61,0.12);
}

.team-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.team-stat-label {
    font-size: 0.78rem;
    color: var(--color-text);
    opacity: 0.7;
    display: block;
    word-break: break-word;
}

@media (max-width: 480px) {
    .team-intro {
        margin-bottom: 20px;
    }
    .team-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    .team-stat-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .team-stat-number {
        font-size: 1.25rem;
    }
    .team-stat-label {
        font-size: 0.72rem;
    }
}


/* ------------------------------------------------------------------ */
/*  Org Chart Section                                                  */
/* ------------------------------------------------------------------ */

#orgchart-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 15px 32px 32px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 1;
    justify-content: center;
}
.orgchart-section__container {
  max-width: 1200px;
  margin: 0 auto;
}
.orgchart-section__title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--color-text, #1a1a1a);
}
.orgchart-section-title {
    width: 100%;
    flex-basis: 100%;
}
.orgchart-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
#orgchart-container {
      text-align: center;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: auto;
    padding: 24px;
    background: #fff;
    max-height: 70vh;
    max-width: calc(100% - 390px);
    min-width: 300px;
    flex: 1;
}

#orgchart-container .orgchart {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: left;
}

#orgchart-container .orgchart .node .title {
    width: 160px !important;
    font-size: 13px !important;
    height: 24px !important;
    line-height: 24px !important;
}
#orgchart-container .orgchart .node .content {
    width: 160px !important;
    font-size: 11px !important;
    height: 22px !important;
    line-height: 22px !important;
}
#orgchart-container .orgchart .node img {
    width: 70px !important;
    height: 70px !important;
}
#membre-profile-card {
    flex: 0 0 360px;
    width: 360px;
    height: 500px;
    margin-right: 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    background: #e6dcdc;
    position: relative;
    align-self: flex-start;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    perspective: 800px;
}

#membre-profile-card .card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;
}

#membre-profile-card .card-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    position: absolute;
    inset: 0;
}

#membre-profile-card .card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 30%,
      rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
    transition: background 0.3s ease;
}

#membre-profile-card:hover .card-gradient {
    background: linear-gradient(
      to bottom,
      rgba(236, 228, 228, 0.15) 0%,
      rgba(204, 182, 182, 0.92) 90%
    );
}

#membre-profile-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px;
    color: #fff;
    max-height: 60%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

#membre-profile-card .card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
    line-height: 1.2;
}

#membre-profile-card .card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--green, #2eb87e);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}

#membre-profile-card .card-bio {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
    margin: 0 0 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#membre-profile-card:hover .card-bio {
    max-height: 120px;
    overflow-y: auto;
}

#membre-profile-card .card-email {
    font-size: 11px;
    color: var(--green, #2eb87e);
    text-decoration: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#membre-profile-card:hover .card-email {
    max-height: 30px;
}

#membre-profile-card .card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#membre-profile-card .profile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #000000;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 899px) {
    #orgchart-section {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }

    #orgchart-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none !important;
        min-width: unset;
        flex: none;
        overflow: hidden;
        padding: 12px;
        box-sizing: border-box;
    }

    #membre-profile-card {
        width: 280px !important;
        height: 380px !important;
        flex: none;
        align-self: center;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    #orgchart-container {
        max-height: none;
        overflow: hidden;
        padding: 8px;
    }

    #membre-profile-card {
        width: 240px !important;
        height: 320px !important;
    }
}
