/* ==========================================================================
   Petits Chiffres - Sidebar Left Column Block
   ========================================================================== */

.pc-sidebar-block {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pc-sidebar-block__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
    text-align: center;
}

.pc-sidebar-block__subtitle {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 14px;
    text-align: center;
}

/* Form
   ========================================================================== */

.pc-sidebar-form {
    margin-bottom: 14px;
}

.pc-sidebar-form__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.pc-sidebar-form__input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    background: #FAFBFC;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 8px;
    transition: border-color 150ms ease;
}

.pc-sidebar-form__input:focus {
    border-color: #2563EB;
    background: #FFF;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.pc-sidebar-form__btn {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: var(--btn-primary-bg-color, #2563EB);
    color: var(--btn-primary-color, #FFFFFF);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease;
}

.pc-sidebar-form__btn:hover {
    background: var(--btn-primary-hover-bg-color, #1D4ED8);
}

/* Results
   ========================================================================== */

.pc-sidebar-results {
    margin-bottom: 10px;
}

.pc-sidebar-results__count {
    font-size: 11px;
    color: #6B7280;
    margin: 0 0 8px;
    text-align: center;
}

.pc-sidebar-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pc-sidebar-card {
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    background: #FAFBFC;
    transition: box-shadow 150ms ease;
}

.pc-sidebar-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pc-sidebar-card__header {
    display: flex;
    gap: 0;
}

.pc-sidebar-card__col {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
}

.pc-sidebar-card__col:first-child {
    border-right: 1px solid #E5E7EB;
}

.pc-sidebar-card__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6B7280;
    margin-bottom: 6px;
}

.pc-sidebar-card__img-placeholder {
    width: 100%;
    height: 40px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pc-sidebar-card__img-placeholder--empty {
    border-style: dashed;
    background: #F9FAFB;
}

.pc-sidebar-card__numero {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.pc-sidebar-card__numero--na {
    color: #D1D5DB;
    font-size: 16px;
}

.pc-sidebar-card__col-cote {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #059669;
    margin-top: 4px;
}

/* Card info */

.pc-sidebar-card__info {
    padding: 8px 10px;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}

.pc-sidebar-card__ville {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.pc-sidebar-card__dept {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 2px;
}

.pc-sidebar-card__cote {
    font-size: 12px;
    font-weight: 500;
    color: #059669;
}

.pc-sidebar-card__cote--nc {
    color: #9CA3AF;
    font-style: italic;
}

/* Empty state */

.pc-sidebar-block__empty {
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
    padding: 12px 0;
    margin: 0;
}

/* Link to catalogue */

.pc-sidebar-block__link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
    text-decoration: none;
    padding: 10px 8px 0;
    margin-top: 10px;
    border-top: 1px solid #E5E7EB;
    transition: color 150ms ease;
}

.pc-sidebar-block__link:hover {
    color: #1D4ED8;
}
