/* Hub Holiday — réutilise .sh-* (support/contact hub) */

body:has(.hd-hub-page) .container,
body:has(.hd-hub-page) #content,
body:has(.hd-hub-page).has-navbar > .content,
body:has(.hd-hub-page)[data-navbar="side"].minimized #content,
body:has(.hd-hub-page)[data-navbar="side"].has-navbar > .content {
    max-width: none !important;
    width: 100%;
}

.hd-hub-page.sh-hub-page,
.hd-hub-page .sh-hub {
    --sh-accent: #0f766e;
    --sh-accent-2: #0d9488;
    --sh-accent-dark: #115e59;
    --sh-accent-soft: #f0fdfa;
    --sh-accent-ring: rgba(15, 118, 110, .2);
}

.hd-hub-page .sh-header {
    background:
        radial-gradient(1200px 300px at 85% -60%, rgba(255, 255, 255, .16), transparent 60%),
        radial-gradient(600px 220px at 10% 140%, rgba(15, 118, 110, .35), transparent 60%),
        linear-gradient(120deg, #115e59 0%, #0f766e 45%, #14b8a6 100%);
}

.hd-hub-page .sh-header .sh-header-btn {
    width: auto;
    height: auto;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
}

.hd-hub-page .sh-header .sh-header-btn:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.hd-hub-page .sh-header .sh-btn:not(.sh-btn-ghost) {
    background: #fff;
    color: var(--sh-accent-dark);
    border-color: #fff;
}

.hd-hub-page .hd-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hd-hub-page .hd-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.hd-hub-page .sh-kpi {
    align-items: center;
    min-height: 78px;
}

.hd-hub-page .sh-kpi-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hd-hub-page .sh-kpi-value {
    display: block;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.15;
    color: #0f172a;
}

.hd-hub-page .sh-kpi-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-hub-page .sh-kpi.is-on {
    border-color: var(--sh-accent);
    box-shadow: 0 0 0 2px var(--sh-accent-ring);
}

.hd-list {
    display: flex;
    flex-direction: column;
}

.hd-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    cursor: pointer;
    background: #fff;
}

.hd-row:hover {
    background: #f8fafc;
}

.hd-row:last-child {
    border-bottom: 0;
}

.hd-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hd-row-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f0fdfa;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.hd-row-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hd-row-meta {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.hd-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.hd-row-acts {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hd-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hd-icon-btn:hover {
    border-color: #99f6e4;
    color: #0f766e;
    background: #f0fdfa;
}

.hd-go {
    color: #94a3b8;
    font-size: 12px;
}

.hd-badge {
    display: inline-flex;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
}

.hd-badge.is-year {
    background: #ecfeff;
    color: #0e7490;
}

.hd-badge.is-tc {
    background: #f1f5f9;
    color: #475569;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 650;
}

.hd-empty {
    padding: 40px 16px;
    text-align: center;
    color: #64748b;
}

.hd-empty .fas {
    font-size: 28px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.hd-empty p {
    margin: 0 0 14px;
    font-weight: 600;
}

.hd-more {
    padding: 12px;
    text-align: center;
}

.hd-more-end {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
}

/* ---- Fiche détail ---- */
.hd-detail-page .hd-detail-head-text {
    min-width: 0;
}

.hd-detail-page .hd-detail-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hd-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 900px) {
    .hd-detail-grid {
        grid-template-columns: 1fr;
    }
}

.hd-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.hd-detail-card-h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}

.hd-detail-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.hd-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f0fdfa;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: none;
}

.hd-detail-name {
    font-size: 20px;
    font-weight: 750;
    color: #0f172a;
}

.hd-detail-date {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
}

.hd-detail-p {
    margin: 0 0 8px;
    color: #334155;
    line-height: 1.5;
    font-size: 13.5px;
    white-space: pre-wrap;
}

.hd-detail-dl {
    margin: 0;
}

.hd-detail-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.hd-detail-row:last-child {
    border-bottom: 0;
}

.hd-detail-row dt {
    margin: 0;
    color: #94a3b8;
    font-weight: 650;
}

.hd-detail-row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.hd-muted {
    color: #94a3b8;
    font-size: 13px;
}
