/**
 * Easy RH — Mode Clair
 * © 2026 Jennifer PERROT-GAUTIER — Tous droits réservés
 */

:root {
    --rh-primary:  #4a3a8c;
    --rh-primary2: #6a52b3;
    --rh-light:    #ece8f8;
    --rh-lighter:  #f7f5fc;
    --rh-border:   #d6cfee;
    --rh-ok:       #27ae60;
    --rh-warn:     #f39c12;
    --rh-err:      #e74c3c;
    --rh-card:     #ffffff;
    --rh-text:     #ffffff;
    --rh-subtext:  #9b8ec4;
}

.rh-page { max-width: 1100px; }

/* ── Cards salariés ── */
.rh-salarié-card {
    background: var(--rh-card);
    border: 0.5px solid var(--rh-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    transition: box-shadow .15s, border-color .15s;
    text-decoration: none;
    color: inherit;
}
.rh-salarié-card:hover {
    box-shadow: 0 4px 16px rgba(74,58,140,.10);
    border-color: var(--rh-primary2);
}

.rh-avatar {
    width: 48px; height: 48px;
    background: var(--rh-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.1em;
    flex-shrink: 0;
}

.rh-salarié-name {
    font-weight: 700;
    color: #fff;
    background: var(--rh-primary2);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 1em;
}
.rh-salarié-sub {
    font-size: .82em;
    color: var(--rh-subtext);
    margin-top: 4px;
}

.rh-badge-count {
    margin-left: auto;
    background: var(--rh-light);
    border: 0.5px solid var(--rh-border);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .82em;
    color: var(--rh-primary);
    font-weight: 700;
}

/* ── Section header ── */
.rh-section-header {
    background: var(--rh-primary);
    border-radius: 12px;
    padding: 20px 24px;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.rh-section-title { font-size: 1.3em; font-weight: 800; color: #fff; }
.rh-section-sub   { font-size: .85em; color: rgba(255,255,255,.72); margin-top: 4px; }

/* ── Tableaux ── */
.rh-doc-table { width: 100%; border-collapse: collapse; }
.rh-doc-table th {
    background: var(--rh-light);
    color: var(--rh-primary);
    padding: 10px 14px;
    font-size: .82em;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--rh-border);
}
.rh-doc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--rh-light);
    font-size: .88em;
    vertical-align: middle;
    color: #2d1f6e;
}
.rh-doc-table tr:hover td { background: var(--rh-lighter); }

/* ── Badges catégorie ── */
.rh-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .75em;
    font-weight: 700;
    text-transform: uppercase;
}
.rh-cat-bulletin    { background: #ede8fb; color: #4a3a8c; }
.rh-cat-contrat     { background: #eafaf1; color: #1a7a45; }
.rh-cat-avenant     { background: #fef9e7; color: #9a6500; }
.rh-cat-attestation { background: #f3eeff; color: #6a3db5; }
.rh-cat-autre       { background: #f0eef8; color: #5a4d80; }
.rh-cat-tous        { background: var(--rh-light); color: var(--rh-primary); }
.rh-cat-badge.rh-cat-active {
    border: 2px solid currentColor;
    box-shadow: 0 0 0 1px currentColor inset;
}

/* ── Upload ── */
.rh-upload-zone {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed var(--rh-primary2);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    background: var(--rh-lighter);
    cursor: pointer;
    transition: background .2s;
}
.rh-upload-zone:hover { background: var(--rh-light); }

/* ── Boutons ── */
.rh-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    font-size: .88em; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none;
    transition: opacity .15s;
}
.rh-btn:hover { opacity: .85; }
.rh-btn-primary { background: var(--rh-primary); color: #fff; }
.rh-btn-outline { background: var(--rh-card); color: var(--rh-primary); border: 1.5px solid var(--rh-primary); }
.rh-btn-danger  { background: #fee2e2; color: #dc2626; }

/* ── Divers ── */
.rh-empty { text-align: center; padding: 48px 20px; color: #b0a8d0; }
.rh-empty-icon { font-size: 2.5em; margin-bottom: 12px; }

div.mainmenu.easyrh span::before {
    content: "\f0c0" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* © 2026 Jennifer PERROT-GAUTIER — Tous droits réservés */