/* ═══════════════════════════════════════════════════════════════════════
   CENTRE D'AIDE — Design Vinted-like
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Base page ───────────────────────────────────────────────────────── */
.hc-main {
    background: #f7f7f7;
    min-height: 60vh;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE D'ACCUEIL
   ═══════════════════════════════════════════════════════════════════════ */

.hc-home { padding: 3rem 0 4rem; }

/* Hero + Recherche */
.hc-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.hc-hero h1 {
    font-family: 'Rubik One Regular', sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.hc-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.hc-search__input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3.25rem !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 40px !important;
    font-size: 1rem !important;
    background: #fff !important;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.hc-search__input:focus { border-color: #CC392B !important; }
.hc-search__icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 1;
}

/* Grille catégories */
.hc-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.hc-cat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.hc-cat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #CC392B;
    transform: translateY(-2px);
    color: #1a1a1a;
}
.hc-cat-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #fff3f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hc-cat-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.hc-cat-card__body { flex: 1; min-width: 0; }
.hc-cat-card__body h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-cat-card__count {
    font-size: 0.82rem;
    color: #888;
}
.hc-cat-card__arrow {
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}
.hc-cat-card:hover .hc-cat-card__arrow {
    color: #CC392B;
    transform: translateX(3px);
}

/* Pas de résultats de recherche */
.hc-no-results {
    text-align: center;
    color: #888;
    padding: 2rem 0;
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE CATÉGORIE / ARTICLE
   ═══════════════════════════════════════════════════════════════════════ */

.hc-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 0 4rem;
    align-items: flex-start;
}

/* Sidebar */
.hc-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 0;
    position: sticky;
    top: 90px;
}
.hc-sidebar__back {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}
.hc-sidebar__back a {
    font-size: 0.875rem;
    color: #CC392B;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hc-sidebar__back a:hover { text-decoration: underline; }
.hc-sidebar__label {
    padding: 0 1.25rem 0.5rem;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.hc-sidebar__cats {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hc-sidebar__cats li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.94rem;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hc-sidebar__cats li a:hover {
    background: #fff8f7;
    color: #CC392B;
}
.hc-sidebar__cats li.active a {
    color: #CC392B;
    border-left-color: #CC392B;
    font-weight: 600;
    background: #fff3f2;
}

/* Main content panel */
.hc-content {
    flex: 1;
    min-width: 0;
}

/* Breadcrumb */
.hc-breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.hc-breadcrumb a { color: #CC392B; text-decoration: none; }
.hc-breadcrumb a:hover { text-decoration: underline; }
.hc-breadcrumb__sep { color: #ccc; }

/* Liste d'articles */
.hc-article-list { }
.hc-article-list__title {
    font-family: 'Rubik One Regular', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}
.hc-article-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hc-article-item:hover {
    border-color: #CC392B;
    box-shadow: 0 2px 8px rgba(204,57,43,0.08);
}
.hc-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.97rem;
    font-weight: 500;
    gap: 1rem;
    cursor: pointer;
}
.hc-article-link svg { color: #bbb; flex-shrink: 0; transition: color 0.15s, transform 0.15s; }
.hc-article-item:hover .hc-article-link svg { color: #CC392B; transform: translateX(3px); }

/* Vue article (affiché après clic) */
.hc-article-view { display: none; }
.hc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: #CC392B;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    text-decoration: none;
}
.hc-back-btn:hover { text-decoration: underline; }
.hc-article-body {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem 2rem 2.5rem;
}
.hc-article-body h2 {
    font-family: 'Rubik One Regular', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* Loading spinner */
.hc-loading {
    display: none;
    text-align: center;
    padding: 3rem 0;
}
.hc-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #CC392B;
    border-radius: 50%;
    display: inline-block;
    animation: hc-spin 0.7s linear infinite;
}
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* ── Contenu article (formatage du WP Editor) ───────────────────────── */
.hc-article-body .helpcenter-content { font-size: 1rem; line-height: 1.7; color: #333; }
.hc-article-body .helpcenter-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.5rem;
}
.hc-article-body .helpcenter-content p { margin-bottom: 1rem; }
.hc-article-body .helpcenter-content strong { font-weight: 600; color: #1a1a1a; }
.hc-article-body .helpcenter-content ul {
    margin: 0 0 1rem 1rem;
    list-style: none;
    padding: 0;
}
.hc-article-body .helpcenter-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.97rem;
}
.hc-article-body .helpcenter-content ul li::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: #CC392B;
    margin-top: 0.45rem;
}
.hc-article-body .helpcenter-content ol { margin: 0 0 1rem 1.5rem; padding: 0; }
.hc-article-body .helpcenter-content ol li { padding: 0.25rem 0; font-size: 0.97rem; }
.hc-article-body .helpcenter-content blockquote {
    border-left: 3px solid #CC392B;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: #fff8f7;
    border-radius: 0 8px 8px 0;
    color: #555;
}
.hc-article-body .helpcenter-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.hc-article-body .helpcenter-content table th {
    background: #f5f5f5;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border: 1px solid #e0e0e0;
    font-weight: 600;
}
.hc-article-body .helpcenter-content table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hc-cats { grid-template-columns: repeat(2, 1fr); }
    .hc-layout { flex-direction: column; gap: 1rem; padding: 1.5rem 0 3rem; }
    .hc-sidebar { width: 100%; position: static; }
    .hc-sidebar__cats { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0 1rem 0.75rem; }
    .hc-sidebar__cats li a {
        padding: 0.4rem 0.85rem;
        border: 1px solid #e0e0e0;
        border-left: 1px solid #e0e0e0;
        border-radius: 20px;
        font-size: 0.85rem;
        background: #f9f9f9;
    }
    .hc-sidebar__cats li.active a {
        background: #CC392B;
        color: #fff;
        border-color: #CC392B;
    }
    .hc-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 560px) {
    .hc-cats { grid-template-columns: 1fr; }
    .hc-cat-card { padding: 1rem; }
    .hc-article-body { padding: 1.25rem; }
    .hc-article-list__title { font-size: 1.3rem; }
}
