/* ============================================
   PAGE PROFESSIONNELS - REFONTE COMPLÈTE
   Filtres, badges, grille fluide, vedette
   ============================================ */

/* ============= SECTION INTRO ============= */
.team-intro {
    max-width: var(--max-width-lg);
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.team-intro p {
    font-size: var(--text-lg);
    color: var(--texte-secondaire);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ============= FONDATRICE VEDETTE ============= */
.featured-founder {
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow:
        0 16px 48px rgba(79, 195, 247, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.featured-founder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4FC3F7, #26C6DA, #66BB6A);
}

.featured-photo {
    width: 220px;
    height: 275px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow:
        0 12px 40px rgba(79, 195, 247, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    position: relative;
}

.featured-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            transparent 60%,
            rgba(255, 255, 255, 0.25) 80%,
            rgba(255, 255, 255, 0.5) 95%,
            rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.featured-info {
    text-align: left;
}

.featured-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4FC3F7;
    margin-bottom: var(--space-xs);
    padding: 0.3rem 0.8rem;
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: var(--radius-xl);
}

.featured-info h3 {
    font-size: 1.75rem;
    color: var(--texte-principal);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.featured-title {
    color: var(--bleu-clair);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.featured-bio {
    color: var(--texte-secondaire);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.featured-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.featured-specialties .specialty-tag {
    font-size: 0.82rem;
}

/* ============= BARRE DE FILTRES ============= */
.filter-bar {
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--texte-secondaire);
    white-space: nowrap;
    min-width: 100px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid rgba(79, 195, 247, 0.2);
    border-radius: 50px;
    background: white;
    color: var(--texte-secondaire);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-texte);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(79, 195, 247, 0.5);
    color: #4FC3F7;
    background: rgba(79, 195, 247, 0.04);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4FC3F7, #26C6DA);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

/* Compteur résultats */
.filter-count {
    font-size: 0.85rem;
    color: var(--texte-secondaire);
    text-align: center;
    margin-top: var(--space-xs);
    transition: opacity 0.3s ease;
}

.filter-count strong {
    color: #4FC3F7;
    font-weight: 700;
}

/* ============= GRILLE ÉQUIPE FLUIDE ============= */
.team-section {
    margin-bottom: var(--space-2xl);
}

.team-grid-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* ============= HEADER CATÉGORIE REDESIGNÉ ============= */
.team-category-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.team-category-header h2 {
    font-size: 1.75rem;
    color: var(--texte-principal);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.team-category-header p {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
}

.team-category-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4FC3F7, #26C6DA);
    border-radius: 2px;
    margin: var(--space-sm) auto 0;
}

/* ============= CARTES ÉQUIPE REDESIGNÉES ============= */
.card-team {
    text-align: center;
    overflow: visible;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    position: relative;
}

.card-team:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(79, 195, 247, 0.15),
        0 0 0 1px rgba(79, 195, 247, 0.1);
}

/* Photo ronde */
.team-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    transition: all 0.35s ease;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            transparent 65%,
            rgba(255, 255, 255, 0.2) 82%,
            rgba(255, 255, 255, 0.5) 95%,
            rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.card-team:hover .team-photo {
    transform: scale(1.05);
    box-shadow:
        0 12px 32px rgba(79, 195, 247, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.card-team:hover .team-photo img {
    transform: scale(1.06);
}

/* Info section */
.team-info {
    padding: 0;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--texte-principal);
    font-weight: 700;
}

.team-title {
    color: var(--texte-secondaire);
    font-weight: 500;
    font-size: 0.88rem;
    display: block;
    line-height: 1.4;
}

.team-title:first-of-type {
    color: var(--bleu-clair);
    font-weight: 600;
}

/* BADGE EMPLACEMENT */
.location-badge-team {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: var(--space-xs);
}

.badge-beauport {
    background: rgba(102, 187, 106, 0.1);
    color: #43A047;
    border: 1px solid rgba(102, 187, 106, 0.25);
}

.badge-levis {
    background: rgba(79, 195, 247, 0.1);
    color: #0288D1;
    border: 1px solid rgba(79, 195, 247, 0.25);
}

.badge-multi {
    background: rgba(171, 71, 188, 0.08);
    color: #8E24AA;
    border: 1px solid rgba(171, 71, 188, 0.2);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.badge-beauport .badge-dot {
    background: #43A047;
}

.badge-levis .badge-dot {
    background: #0288D1;
}

.badge-multi .badge-dot {
    background: #8E24AA;
}

/* Bio */
.team-bio {
    color: var(--texte-secondaire);
    line-height: 1.6;
    font-size: 0.85rem;
    margin: var(--space-xs) 0 var(--space-sm);
}

/* Tags spécialités */
.team-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: var(--space-sm);
}

.specialty-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: rgba(79, 195, 247, 0.06);
    color: var(--bleu-clair);
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(79, 195, 247, 0.12);
    transition: all 0.25s ease;
}

.specialty-tag:hover {
    background: rgba(79, 195, 247, 0.12);
    border-color: rgba(79, 195, 247, 0.25);
}

/* Liste spécialités avec puces bleues */
.team-specialties-list {
    list-style: none !important;
    padding: 0 !important;
    margin: var(--space-xs) 0 0 0 !important;
    text-align: left;
}

.team-specialties-list li {
    padding-left: 1.1rem !important;
    margin-bottom: 0.3rem !important;
    position: relative !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: var(--texte-secondaire) !important;
}

.team-specialties-list li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #4FC3F7 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

/* ============= BADGE ÉVALUATION TDAH ============= */
.eval-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 700;
    margin: var(--space-sm) 0 0;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.35);
    animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.35);
    }

    50% {
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    }
}

/* ============= PHOTO PLACEHOLDER (logo_hand) ============= */
.team-photo.photo-placeholder {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08) 0%, rgba(38, 198, 218, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(79, 195, 247, 0.2);
}

.team-photo.photo-placeholder img {
    width: 55%;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

.card-team:hover .team-photo.photo-placeholder img {
    opacity: 0.35;
}

.team-photo.photo-placeholder::after {
    display: none;
}

/* ============= PROFIL INCOMPLET ============= */
.card-team.profile-pending {
    opacity: 0.85;
}

.pending-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    color: #F9A825;
    font-weight: 600;
    margin-top: var(--space-xs);
}

.pending-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFC107;
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ============= FILTRAGE - ANIMATIONS ============= */
.card-team {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        transform 0.35s ease;
}

.card-team.filter-hidden {
    display: none;
}

.team-section.section-hidden {
    display: none;
}

/* ============= SÉPARATEUR ÉQUIPE ============= */
.team-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0 2.5rem;
    padding: 0 1rem;
}

.team-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.3), rgba(38, 198, 218, 0.3), transparent);
    border-radius: 1px;
}

.team-divider-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--texte-secondaire);
    white-space: nowrap;
    opacity: 0.7;
}

/* ============= LÉGENDE EMPLACEMENTS ============= */
.location-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--texte-secondaire);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.dot-beauport {
    background: #43A047;
}

.legend-dot.dot-levis {
    background: #0288D1;
}

.legend-dot.dot-multi {
    background: #8E24AA;
}

/* ============= SECTION CARRIÈRES ============= */
.careers-section {
    max-width: 900px;
    margin: 0 auto;
}

.careers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.career-item {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.career-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.12);
}

.career-item h4 {
    font-size: 0.95rem;
    color: var(--texte-principal);
    margin: 0;
    font-weight: 600;
}

/* ============= RESPONSIVE ============= */

/* Tablette */
@media (max-width: 1024px) {
    .featured-founder {
        grid-template-columns: 220px 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl);
    }

    .featured-photo {
        width: 180px;
        height: 225px;
    }
}

/* Mobile large */
@media (max-width: 768px) {
    .featured-founder {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-xl) var(--space-lg);
    }

    .featured-photo {
        width: 160px;
        height: 200px;
    }

    .featured-info {
        text-align: center;
    }

    .featured-specialties {
        justify-content: center;
    }

    .team-grid-fluid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-md);
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .card-team {
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }

    .team-info h3 {
        font-size: 1.1rem;
    }

    /* Filtres mobile */
    .filter-bar {
        padding: 0 var(--space-sm);
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .filter-label {
        min-width: auto;
    }

    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
    }

    /* Carrières */
    .careers-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-legend {
        gap: var(--space-md);
    }

    .team-divider {
        margin: 2rem 0 1.5rem;
        gap: 1rem;
    }

    .team-divider-text {
        font-size: 0.75rem;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .featured-founder {
        padding: var(--space-lg) var(--space-md);
    }

    .featured-photo {
        width: 140px;
        height: 175px;
    }

    .featured-info h3 {
        font-size: 1.5rem;
    }

    .team-grid-fluid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        width: 110px;
        height: 110px;
    }

    .careers-list {
        grid-template-columns: 1fr;
    }

    .team-category-header h2 {
        font-size: 1.5rem;
    }
}