/* ==========================================
   STYLES DU SYSTÈME D'ONGLETS ET D'AVIS
   ========================================== */

/* --- 1. CARTES STYLE DOCPRO (PRODUITS & ANNONCES) --- */
.docpro-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.docpro-item-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease-in-out;
    gap: 1.25rem;
}

.docpro-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.docpro-item-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

.docpro-item-body {
    flex-grow: 1;
}

.docpro-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.docpro-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.docpro-item-title a:hover {
    color: #073D30;
}

.docpro-item-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.docpro-item-description {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.docpro-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.docpro-item-btn:hover {
    background-color: #073D30;
    color: #ffffff;
}

/* --- 2. BLOC DE RÉSUMÉ DE LA NOTE (SCORE BOX DOCPRO) --- */
.docpro-score-box {
    background: linear-gradient(135deg, #073D30 0%, #042920 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(7, 61, 48, 0.2);
}

.docpro-score-left {
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.docpro-score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.docpro-stars-gold {
    color: #ffc107;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.docpro-score-count {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.docpro-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docpro-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.docpro-bar-label {
    width: 55px;
    flex-shrink: 0;
}

.docpro-bar-track {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.docpro-bar-fill {
    height: 100%;
    background-color: #10b981;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.docpro-bar-percent {
    width: 40px;
    text-align: right;
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* --- 3. LISTE DES AVIS CLIENTS --- */
.docpro-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.docpro-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.docpro-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.docpro-review-author {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.docpro-review-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.docpro-review-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.btn-toggle-review {
    color: #073D30 !important;
}

.btn-toggle-review:hover {
    color: #042920 !important;
    text-decoration: underline !important;
}

#btn-submit-review {
    background-color: #073D30 !important;
    border-color: #073D30 !important;
    color: #ffffff !important;
}

#btn-submit-review:hover {
    background-color: #042920 !important;
    border-color: #042920 !important;
}

/* --- 4. SECTEUR DE SÉLECTION INTERACTIVE DES ÉTOILES (MODALE) --- */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    font-size: 2rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffc107;
}

@media (max-width: 767.98px) {
    .docpro-item-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .docpro-item-image {
        width: 100%;
        height: 180px;
    }
    .docpro-score-left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
