/* ===================================
   TEAM MODAL STYLES
   =================================== */

/* Bouton "En savoir plus" */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.btn-more i {
    transition: transform 0.3s ease;
}

.btn-more:hover i {
    transform: translateX(4px);
}

/* Description courte */
.member-bio-short {
    color: #64748b;
    line-height: 1.6;
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Overlay */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.team-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.2rem;
}

/* Modal Body */
.modal-body {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

/* Modal Image */
.modal-image {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    max-height: 450px;
}

/* Modal Info */
.modal-info {
    padding: 3rem;
    background: white;
}

.modal-info h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-role {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.modal-bio {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.modal-bio p {
    margin-bottom: 1rem;
}

/* Modal Social */
.modal-social {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.modal-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.modal-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.modal-social a i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-modal {
        padding: 1rem;
    }

    .modal-content {
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        padding: 2rem 1.5rem 1rem;
    }

    .modal-image img {
        max-height: 300px;
    }

    .modal-info {
        padding: 2rem 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }

    .btn-more {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-info {
        padding: 1.5rem 1rem;
    }

    .modal-info h2 {
        font-size: 1.3rem;
    }

    .modal-role {
        font-size: 0.8rem;
    }

    .modal-bio {
        font-size: 0.95rem;
    }
}

/* Smooth scrollbar for modal on mobile */
.team-modal::-webkit-scrollbar {
    width: 8px;
}

.team-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.team-modal::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.team-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
