/* ============================================================
   Carte livreur horizontale — annuaire & listes par commune
   ============================================================ */

.pcard {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border, #eceff3);
    border-radius: 18px;
    padding: 16px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.pcard:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .09);
    border-color: var(--primary, #f97316);
    transform: translateY(-2px);
}

/* ---- Bloc photo (cercle, la photo couvre son parent) ---- */
.pcard-photo {
    position: relative;
    width: 85px;
    height: 85px;
    flex-shrink: 0;
}
.pcard-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-soft, #fff1e6);
}
.pcard-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Pastille de disponibilité, en haut à gauche de la photo */
.pcard-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2.5px solid var(--surface, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.pcard-dot.is-on { background: #22c55e; }
.pcard-dot.is-off { background: #9ca3af; }

/* ---- Bloc infos ---- */
.pcard-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pcard-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcard-name a {
    color: var(--dark, #171717);
    text-decoration: none;
}

.pcard-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.pcard-stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.pcard-stars i { font-size: 12.5px; }
.pcard-reviews { color: var(--text-muted, #6b7280); }

.pcard-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    min-width: 0;
}
.pcard-meta i { font-size: 12px; color: var(--dark, #374151); flex-shrink: 0; }
.pcard-meta span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcard-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.pcard-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: filter .15s, opacity .15s;
    white-space: nowrap;
}
.pcard-btn i { font-size: 13px; }
.pcard-btn-call { background: var(--dark, #171717); color: #fff; }
.pcard-btn-call:hover { color: #fff; opacity: .88; }
.pcard-btn-wa { background: #22c55e; color: #fff; }
.pcard-btn-wa:hover { color: #fff; filter: brightness(.95); }

/* Petits écrans : photo un peu réduite, boutons compacts */
@media (max-width: 400px) {
    .pcard { gap: 13px; padding: 14px; }
    .pcard-photo { width: 80px; height: 80px; }
    .pcard-name { font-size: 16px; }
    .pcard-btn { font-size: 12.5px; padding: 7px 13px; }
}

/* ============================================================
   Bouton flottant de partage (pages listes)
   ============================================================ */
.fab-share {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 30px;
    background: var(--primary, #f97316);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(249, 115, 22, .45);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.fab-share:hover,
.fab-share:focus {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, .6);
}
.fab-share i { font-size: 15px; }
