/* ================================================================
   Partenaire — Fiche agent single
   Préfixe : .ps-  (partenaire single)
================================================================ */

.ps-wrap *, .ps-wrap *::before, .ps-wrap *::after { box-sizing: border-box; }

/* ── Conteneur ───────────────────────────────────────────────── */
.ps-wrap { padding: 40px 20px 60px; }
.ps-container { max-width: 900px; margin: 0 auto; }

/* ══ HEADER ══════════════════════════════════════════════════ */
.ps-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 28px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 28px;
}

/* Logo */
.ps-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-logo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-logo__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Corps header */
.ps-header__body { flex: 1; min-width: 0; }

/* Spécialités */
.ps-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ps-spec-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #FF4D10;
    background: #fff3ef;
    border-radius: 3px;
    padding: 3px 10px;
}

/* Nom */
.ps-name {
    font-size: 26px;
    font-weight: 700;
    color: #18274D;
    margin: 0 0 12px;
    line-height: 1.2;
}

/* Rating */
.ps-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-rating__stars { display: flex; align-items: center; gap: 1px; }
.ps-rating__stars .dashicons {
    font-size: 20px; width: 20px; height: 20px;
    color: #f0b429;
}
.ps-rating__stars .part-star-empty { color: #ddd; }
.ps-rating__score { font-size: 15px; font-weight: 700; color: #18274D; }
.ps-rating__count { font-size: 13px; color: #999; }
.ps-rating__none { font-size: 13px; color: #bbb; font-style: italic; }

/* ══ COORDONNÉES ═════════════════════════════════════════════ */
.ps-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 28px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 40px;
}

.ps-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.ps-contact__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #FF4D10;
}

.ps-contact__item--wilprise { align-items: flex-start; }
.ps-contact__item--wilprise strong { color: #18274D; font-weight: 600; }

/* ══ AVIS & FORMULAIRE ═══════════════════════════════════════ */
.ps-reviews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Titre de section */
.ps-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #18274D;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ps-section-title__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #FF4D10;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* ── Liste des avis ──────────────────────────────────────────── */
.ps-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: #ebebeb; }

.ps-comment {
    background: #fff;
    padding: 16px 18px;
}

.ps-comment__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ps-comment__author {
    font-size: 14px;
    font-weight: 600;
    color: #18274D;
}

.ps-comment__stars { display: flex; gap: 2px; }
.ps-star {
    width: 14px;
    height: 14px;
    fill: #ddd;
    stroke: none;
}
.ps-star--on { fill: #f0b429; }

.ps-comment__text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.ps-no-reviews {
    font-size: 14px;
    color: #aaa;
    font-style: italic;
    margin: 0;
}

/* ── Formulaire ──────────────────────────────────────────────── */
.ps-reviews__form { position: sticky; top: 24px; }

.ps-comment-form {}

/* Labels masqués — on utilise les placeholders */
.ps-comment-form .comment-form-author label,
.ps-comment-form .comment-form-email label,
.ps-comment-form .comment-form-comment label,
.ps-comment-form .comment-form-phone label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

.ps-comment-form p { margin-bottom: 10px; }

/* Inputs */
.ps-comment-form input[type="text"],
.ps-comment-form input[type="email"],
.ps-comment-form input[type="tel"],
.ps-comment-form textarea {
    width: 100%;
    height: 42px;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
}
.ps-comment-form input[type="text"]:focus,
.ps-comment-form input[type="email"]:focus,
.ps-comment-form input[type="tel"]:focus,
.ps-comment-form textarea:focus {
    border-color: #FF4D10;
}
.ps-comment-form textarea {
    height: 100px;
    padding-top: 10px;
    resize: vertical;
}

/* Erreurs */
.ps-comment-form div.error,
.ps-comment-form div[id$="-error"] {
    color: #e74c3c;
    font-size: 12px;
    margin: 4px 0 0;
}

/* Bloc notation */
.part-rating-wrap { margin-bottom: 10px; }

.part-rating-label label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #18274D;
    margin-bottom: 6px;
}

.part-rating { display: flex; align-items: center; gap: 4px; }

.part-star {
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    line-height: 1;
    transition: color .1s, transform .1s;
    user-select: none;
}
.part-star:hover { transform: scale(1.2); }

.part-rating__score { display: none; }

/* Bouton */
.ps-submit-btn {
    display: inline-block;
    padding: 11px 28px;
    background: #FF4D10;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    margin-top: 4px;
}
.ps-submit-btn:hover { background: #e03d00; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
    .ps-header { flex-direction: column; gap: 16px; }
    .ps-logo { width: 90px; height: 90px; }
    .ps-reviews { grid-template-columns: 1fr; gap: 32px; }
    .ps-reviews__form { position: static; }
    .ps-name { font-size: 22px; }
}
