
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-view-center {
    background: #1a1a1a;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 16px;
    border: 1px solid #333;
    position: relative; /* Pour positionner le bouton Fermer */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bouton Fermer */
.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.2s;
}
.btn-close-modal:hover { background: #ff4444; }

.card-body {
    padding: 25px; /* Plus de padding ici */
    overflow-y: auto;
}

.search-title-header {
    padding: 25px 25px 10px 25px; /* Aligné avec le card-body */
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    border-bottom: 1px solid #222;
}

.res-item {
    display: flex;
    align-items: center;
    padding: 18px; /* Padding généreux par ligne */
    margin-bottom: 10px;
    background: #222;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}

.res-item:hover {
    background: #224422;
    border-color: #00ff88;
    transform: translateX(5px);
}

.res-img {
    width: 45px; /* Un peu plus grand */
    height: 45px;
    object-fit: contain;
    margin-right: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.res-text b { color: #00ff88; font-size: 1.15rem; display: block; }
.res-text small { color: #aaa; font-size: 0.9rem; margin-top: 4px; display: block; line-height: 1.4; }

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
