.candidats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.candidat-item {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.candidat-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.candidat-item img {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 0.3rem solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.candidat-item:hover img {
    border-color: #007bff;
}

.candidat-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.candidat-item p {
    margin-bottom: 0.5rem;
    color: #666;
}

.view-details {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.view-details:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#candidat-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 50rem;
    width: 90%;
}

#popup-content {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 1rem;
}

#popup-content::-webkit-scrollbar {
    width: 0.5rem;
}

#popup-content::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 0.25rem;
}

#popup-content img {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 0.3rem solid #007bff;
}

#popup-close {
    display: block;
    margin-top: 1.5rem;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

#popup-close:hover {
    background-color: #e0e0e0;
}