/* Jobs — Design System partage entre les pages "top nav" (Accueil, Offres,
   et les suivantes). Tokens, structure, et composants communs : topnav,
   title-block, KPI, section-panel, footer, etats de chargement/vide.
   Ce que UNE SEULE page utilise (Hero, tableau, score-circle...) reste dans
   le <style> de cette page, pas ici. */

:root {
    --bg: #090909;
    --card-bg: #131315;
    --card-bg-soft: #17171a;
    --card-border: #232326;
    --card-border-hover: #2e2e33;
    --text: #f2f2f3;
    --text-dim: #94949c;
    --text-faint: #5c5c63;
    --green: #22c55e;
    --blue: #3b82f6;
    --orange: #f59e0b;
    --red: #ef4444;
    --purple: #a78bfa;
    --teal: #22d3ee;
    --grey: #6b7280;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -14px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- topnav ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--card-border); }
.topnav-inner { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }
.topnav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.topnav-brand img { display: block; }
.topnav-brand span { font-size: 14px; letter-spacing: .09em; font-weight: 400; }
.topnav-brand span b { font-weight: 700; }
.topnav-links { display: flex; align-items: center; gap: 30px; }
.topnav-link { color: var(--text-dim); font-size: 14px; font-weight: 500; padding-bottom: 21px; margin-bottom: -21px; border-bottom: 2px solid transparent; }
.topnav-link:hover { color: var(--text); }
.topnav-link.active { color: var(--blue); border-bottom-color: var(--blue); }
.topnav-burger { display: none; background: none; border: 1px solid var(--card-border); border-radius: 8px; width: 38px; height: 38px; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- conteneur de contenu ---------- */
.topnav-main { max-width: 1360px; margin: 0 auto; padding: 36px 32px 0; }

/* ---------- titre de page ---------- */
.title-block { margin-bottom: 26px; }
.title-block h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.01em; }
.title-block h1 .light { font-weight: 400; color: var(--text); }
.title-block p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- KPI ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); position: relative;
}
.kpi-card.clickable { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; transition: border-color .12s ease, background .12s ease; }
.kpi-card.clickable:hover { border-color: var(--card-border-hover); }
.kpi-card.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card-bg)); }
.kpi-icon { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.kpi-icon svg { width: 21px; height: 21px; }
.kpi-value { font-size: 24px; font-weight: 700; line-height: 1.1; }
.kpi-label { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.kpi-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.kpi-arrow svg { width: 15px; height: 15px; }

/* ---------- panneaux de section ---------- */
.section-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.section-head p { margin: 0; font-size: 13px; color: var(--text-dim); }
.section-link { font-size: 13px; color: var(--blue); font-weight: 600; white-space: nowrap; flex-shrink: 0; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.section-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--card-border); margin-top: 12px; padding: 22px 32px 30px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-faint); font-size: 12.5px; }
.site-footer img { display: block; }

/* ---------- etats de chargement / vide ---------- */
.state-msg { padding: 26px 10px; text-align: center; color: var(--text-faint); font-size: 13.5px; line-height: 1.6; grid-column: 1 / -1; }
.state-msg.loading::before {
    content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px;
    border: 2px solid var(--card-border); border-top-color: var(--blue); border-radius: 50%;
    vertical-align: -2px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive : topnav + KPI (communs a toutes les pages) ---------- */
@media (max-width: 900px) {
    .topnav-inner { padding: 12px 18px; }
    .topnav-links {
        position: fixed; top: 61px; left: 0; right: 0; z-index: 49;
        background: var(--card-bg); border-bottom: 1px solid var(--card-border);
        flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 18px;
        max-height: 0; overflow: hidden; transition: max-height .2s ease;
    }
    .topnav-links.open { max-height: 400px; }
    .topnav-link { width: 100%; padding: 13px 0 13px; margin-bottom: 0; border-bottom: 1px solid var(--card-border); }
    .topnav-link.active { border-bottom: 1px solid var(--card-border); }
    .topnav-burger { display: flex; }
    .topnav-main { padding: 26px 18px 0; }
    .kpi-row { grid-template-columns: 1fr 1fr; }
    .section-panel { padding: 20px 18px; }
}
@media (max-width: 480px) {
    .kpi-row { grid-template-columns: 1fr; }
}
