/* ===============================
   FILTRE (Nos commerciaux)
=============================== */

.agents-filter-wrapper {
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
}

.agents-filter {
    display: flex;
    gap: 12px;
    max-width: 420px;
    width: 100%;
}

.agents-filter input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.agents-filter button {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    background-color: #766f64;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.agents-filter button:hover {
    background-color: #5e5953;
}


/* ===============================
   LISTE DES COMMERCIAUX (GRILLE)
=============================== */

.agents-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}


/* ===============================
   FICHE COMMERCIAL
=============================== */

.agent-card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    height: 100%;
}

/* PHOTO RONDE (FORCÉE) */
.agent-photo {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px auto;
}

/* Nom */
.agent-card-inner h4 {
    margin: 8px 0 6px 0;
    font-size: 19px;
    line-height: 1.25;
}

/* Infos */
.agent-card-inner p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.agent-phone a,
.agent-email a {
    text-decoration: none;
    color: #333;
}

.agent-phone a:hover,
.agent-email a:hover {
    text-decoration: underline;
}


/* ===============================
   BOUTONS
=============================== */

.agent-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: nowrap;
}

.agent-buttons button,
.agent-buttons .contact-btn {
    padding: 10px 18px;
    min-width: 140px;
    border-radius: 6px;
    border: none;
    background-color: #766f64;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.agent-buttons button:hover,
.agent-buttons .contact-btn:hover {
    background-color: #5e5953;
}

/* Responsive */
@media (max-width: 600px) {
    .agent-buttons {
        flex-wrap: wrap;
    }

    .agent-buttons button,
    .agent-buttons .contact-btn {
        width: 100%;
    }
}


/* ===============================
   POPUP vCARD
=============================== */

.vcard-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.vcard-popup-content {
    background: #fff;
    padding: 28px 30px;
    border-radius: 14px;
    max-width: 420px;
    width: 92%;
    text-align: center;
    position: relative;
}

.vcard-popup-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* CHAMP EMAIL MIS EN ÉVIDENCE */
.vcard-popup-content input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 15px;
    margin-bottom: 18px;
    background-color: #fff;
}

.vcard-popup-content button {
    width: 100%;
    padding: 12px;
    background-color: #766f64;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.vcard-popup-content button:hover {
    background-color: #5e5953;
}

.vcard-popup .close-popup {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

