/* ===========================================================
   Hub Clients — Horizon Humain
   Charte : Rubine #DD005A · Yellow Orange #F9B235 · Viridian #007F66
   Dégradé signature rose → orange → vert · Fond crème #FFFCF6
   =========================================================== */

:root {
    --hh-rose:   #DD005A;
    --hh-orange: #F9B235;
    --hh-vert:   #007F66;
    --hh-creme:  #FFFCF6;
    --hh-rose-clair:   #FFB8D5;
    --hh-orange-clair: #FFE7BD;
    --hh-vert-clair:   #D1F0DD;
    --hh-ink:    #1c1c22;
    --hh-muted:  #6b6b76;
    --hh-line:   #ece7de;
    --hh-grad: linear-gradient(90deg, #DD005A 0%, #F9B235 50%, #007F66 100%);
    --radius: 14px;
    --shadow: 0 12px 40px rgba(28, 28, 34, .10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--hh-ink);
    background: var(--hh-creme);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hh-rose); }

.brand-bar {
    height: 6px;
    background: var(--hh-grad);
}

/* ---------- Logo ---------- */
.logo-hh {
    font-weight: 800;
    letter-spacing: .2px;
    background: var(--hh-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.35rem;
}
.logo-hh.small { font-size: 1.1rem; }
.logo-wrap { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.logo-tag { font-size: .82rem; color: var(--hh-muted); }

/* ===========================================================
   PAGE CONNEXION
   =========================================================== */
.page-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1100px 500px at 12% -10%, var(--hh-rose-clair) 0%, transparent 55%),
        radial-gradient(1000px 520px at 110% 120%, var(--hh-vert-clair) 0%, transparent 55%),
        var(--hh-creme);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.login-body { padding: 34px 32px 28px; }

.login-body h1 { font-size: 1.5rem; margin: 0 0 4px; }
.lead { color: var(--hh-muted); margin: 0 0 22px; }

label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin: 14px 0 6px;
    color: var(--hh-ink);
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--hh-line);
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: var(--hh-rose);
    box-shadow: 0 0 0 3px rgba(221, 0, 90, .12);
}

.btn-cta {
    width: 100%;
    margin-top: 22px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--hh-grad);
    transition: transform .08s, filter .15s;
}
.btn-cta:hover { filter: brightness(1.05); }
.btn-cta:active { transform: translateY(1px); }

.alert {
    background: #fdecef;
    border: 1px solid #f6c9d5;
    color: #9b0f3c;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .9rem;
    margin-bottom: 6px;
}

.foot { margin: 22px 0 0; font-size: .84rem; color: var(--hh-muted); text-align: center; }

/* ===========================================================
   APPLICATION (tableau de bord)
   =========================================================== */
.topbar { background: #fff; border-bottom: 1px solid var(--hh-line); }
.topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.who { font-size: .9rem; color: var(--hh-muted); }
.who strong { color: var(--hh-ink); }

.btn-ghost {
    text-decoration: none;
    font-size: .86rem;
    font-weight: 600;
    color: var(--hh-rose);
    border: 1.5px solid var(--hh-rose);
    padding: 7px 14px;
    border-radius: 9px;
    transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--hh-rose); color: #fff; }

.app-main { max-width: 960px; margin: 0 auto; padding: 34px 22px 60px; }
.app-main h1 { font-size: 1.7rem; margin: 0 0 4px; }

.group { margin-top: 30px; }
.group h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--hh-vert);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hh-vert-clair);
}

.file-list { list-style: none; margin: 0; padding: 0; }
.file-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--hh-line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: box-shadow .15s, transform .08s;
}
.file-row:hover { box-shadow: var(--shadow); }

.file-icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--hh-orange-clair);
    position: relative;
}
.file-icon::after {
    content: "";
    position: absolute; inset: 10px;
    border-radius: 3px;
    background: var(--hh-orange);
}
.file-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.file-name { font-weight: 600; word-break: break-word; }
.file-sub { font-size: .8rem; color: var(--hh-muted); }

.btn-dl {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
    color: #fff;
    background: var(--hh-vert);
    padding: 9px 16px;
    border-radius: 9px;
    transition: filter .15s;
}
.btn-dl:hover { filter: brightness(1.08); }

.empty {
    background: #fff;
    border: 1px dashed var(--hh-line);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    margin-top: 24px;
}
.muted { color: var(--hh-muted); }

.app-foot {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 22px 40px;
    font-size: .82rem;
    color: var(--hh-muted);
    text-align: center;
}

@media (max-width: 600px) {
    .file-row { flex-wrap: wrap; }
    .btn-dl { width: 100%; text-align: center; margin-top: 6px; }
    .topbar-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
}
