1/*2=============================================================================3Job·Ka — Groupe KA4Auteur : Simon-Pierre Boucher5Contact : contact@spboucher.ai6Fichier : frontend/src/styles.css7Rôle : CSS local Job·Ka — s'appuie sur le design system commun Groupe KA8 (ka/tokens.css, importé AVANT ce fichier dans main.tsx). Ici :9 seulement l'accent de la marque + les classes métier (offres,10 filtres, carte). Le socle (body, grain, sélection, .container,11 .btn, .card, .chip, ka-footer…) vit dans tokens.css.12Créé : 2026-08-17 Modifié : 2026-08-1713=============================================================================14*/1516:root {17 /* ---- ACCENT Job·Ka (cyan officiel — voir ka/ecosystem.json) ---- */18 --accent: #0c8599;19 --accent-soft: #def0f4;20 --accent-deep: #095c6b;21 --on-accent: #ffffff;22 --lime: var(--accent);23 --lime-soft: var(--accent-soft);2425 /* ---- alias hérités du CSS v1 (classes métier ci-dessous) ---- */26 --brand: var(--ink);27 --border: var(--line);28 --green-soft: #e7f2ec;29 --radius: var(--r-card);30 --shadow: var(--shadow-flat), 0 4px 14px rgb(20 24 20 / 6%);31}3233a { color: var(--green); text-decoration: none; }34a:hover { text-decoration: underline; }3536/* --- en-tête ---------------------------------------------------------------- */37header.site {38 background: var(--brand);39 color: #fff;40 position: sticky; top: 0; z-index: var(--z-header, 500);41}42/* menu mobile ouvert : le header (et son panneau) passe au-dessus du backdrop */43header.site.menu-open { z-index: var(--z-modal, 900); }44header.site .container {45 display: flex; align-items: center; flex-wrap: wrap;46 gap: 4px 14px; min-height: 58px; padding-top: 8px; padding-bottom: 8px;47}48.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.3px; white-space: nowrap; position: relative; }49/* extension tactile : le logo (63×31) atteint >=44px de cible sans changer le rendu */50.logo::after { content: ""; position: absolute; inset: -8px; }51.logo em { color: var(--accent-soft); font-style: normal; }52header.site .gk-badge { flex-shrink: 0; }53nav.main { display: flex; gap: 4px; margin-left: auto; }54nav.main a {55 color: #d7ddda; padding: 7px 12px; border-radius: 8px; font-weight: 500;56 white-space: nowrap;57}58nav.main a:hover { color: #fff; background: rgb(255 255 255 / 8%); text-decoration: none; }59nav.main a.active { color: var(--accent-soft); background: rgb(255 255 255 / 10%); }6061/* connexion KA ID (droite du header) */62.auth-box { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }63.btn-ka {64 display: inline-flex; align-items: center; gap: 7px; min-height: 34px;65 padding: 4px 13px; border: 1.5px solid rgb(245 243 238 / 45%);66 border-radius: var(--r-pill); background: transparent; color: #f5f3ee;67 font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;68 letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer;69 white-space: nowrap; text-decoration: none;70}71.btn-ka b {72 font-family: var(--font-display); font-size: 12px; text-transform: none;73 letter-spacing: -0.02em; background: var(--accent); color: var(--on-accent);74 border-radius: 5px; padding: 0 6px 1px;75}76.btn-ka:hover { border-color: var(--accent-soft); text-decoration: none; }77.auth-user { display: inline-flex; align-items: center; gap: 8px; color: #d7ddda; font-size: 13px; white-space: nowrap; }78.auth-user img { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgb(245 243 238 / 45%); }79.auth-user button {80 border: 0; background: none; color: #9aa5a0; font: inherit; font-size: 12px;81 cursor: pointer; padding: 6px 0; min-height: 34px;82}83.auth-user button:hover { color: #fff; text-decoration: underline; }8485/* bascule mobile du header : sous 980 px la nav passe sur sa propre rangée86 (défilement horizontal contenu — jamais de débordement de page) */87@media (max-width: 979px) {88 nav.main {89 order: 10; flex-basis: 100%; margin-left: 0;90 overflow-x: auto; -webkit-overflow-scrolling: touch;91 scrollbar-width: none; padding-bottom: 2px;92 }93 nav.main::-webkit-scrollbar { display: none; }94 nav.main a { padding: 7px 9px; font-size: 13.5px; }95 .auth-box { margin-left: auto; }96}97@media (max-width: 560px) {98 header.site .gk-badge { padding: 2px 8px 3px; font-size: 9px; }99 header.site .gk-badge b { font-size: 11px; }100 .auth-user span.name { display: none; }101}102103/* --- menu mobile (hamburger) -------------------------------------------------104 Sous 700 px, la nav en flex-wrap (2-3 lignes) est remplacée par un bouton105 44×44 + panneau déroulant sous le header ; backdrop fixe rendu HORS du106 header (frère dans App.tsx), verrou de scroll géré côté React. */107.menu-btn {108 display: none; width: 44px; height: 44px; margin-left: 4px;109 flex-direction: column; align-items: center; justify-content: center; gap: 5px;110 flex-shrink: 0; background: none; border: 0; border-radius: 8px;111 cursor: pointer; padding: 0;112}113.menu-btn:hover { background: rgb(255 255 255 / 8%); }114.menu-btn span {115 display: block; width: 22px; height: 2px; background: #f5f3ee; border-radius: 2px;116 transition: transform 0.2s ease, opacity 0.15s ease;117}118.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }119.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }120.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }121.mobile-menu {122 display: none; position: absolute; top: 100%; left: 0; right: 0;123 background: var(--brand); overflow: hidden;124 max-height: 0; opacity: 0;125 transition: max-height 0.25s ease, opacity 0.2s ease;126}127.mobile-menu.open {128 max-height: 480px; opacity: 1;129 border-bottom: 1.5px solid var(--ink);130 padding-bottom: calc(16px + env(safe-area-inset-bottom));131}132.mobile-menu a {133 display: flex; align-items: center; min-height: 44px;134 padding: 10px 20px; color: #d7ddda; font-weight: 500;135}136.mobile-menu a:hover { color: #fff; text-decoration: none; background: rgb(255 255 255 / 8%); }137.mobile-menu a.active { color: var(--accent-soft); background: rgb(255 255 255 / 10%); }138.mm-backdrop {139 position: fixed; inset: 0; background: rgb(16 18 16 / 45%);140 z-index: var(--z-overlay, 800);141}142@media (max-width: 700px) {143 nav.main { display: none; }144 .menu-btn { display: flex; }145 .mobile-menu { display: block; }146}147148/* --- héros ------------------------------------------------------------------ */149.hero { background: var(--brand); color: #fff; padding: 40px 0 34px; }150.hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: #fff; }151.hero h1 em { color: var(--accent-soft); font-style: normal; }152.hero p { margin: 0 0 20px; color: #b9c2be; max-width: 640px; }153154/* --- filtres ------------------------------------------------------------------ */155.filters { display: flex; flex-wrap: wrap; gap: 10px; }156.filters input[type="search"], .filters select {157 height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);158 background: #fff; color: var(--ink); font: inherit; min-width: 130px;159}160.filters input[type="search"] { flex: 1 1 220px; }161.filters label.check {162 display: inline-flex; align-items: center; gap: 7px; background: #fff;163 color: var(--ink); /* le héros est blanc sur encre — ne pas hériter */164 border: 1px solid var(--border); border-radius: 10px; padding: 0 14px;165 height: 42px; cursor: pointer; user-select: none; white-space: nowrap;166}167/* champs >=16px sur mobile : évite le zoom automatique d'iOS au focus */168@media (max-width: 700px) {169 .filters input[type="search"], .filters select, .filters label.check { font-size: 16px; }170}171172/* --- cartes d'offres ------------------------------------------------------------ */173.job-list { display: grid; gap: 12px; margin: 22px 0; }174.job-card {175 display: block; background: var(--surface); border: 1px solid var(--border);176 border-radius: var(--radius); padding: 18px 20px; color: inherit;177 transition: border-color 0.12s, box-shadow 0.12s;178}179.job-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }180.job-card h3 { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: var(--ink); }181.job-card .employer { color: var(--accent-deep); font-weight: 600; }182.job-card .meta { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; }183184.badge {185 display: inline-block; padding: 2px 9px; border-radius: 999px;186 font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2);187}188.badge.salary { background: var(--green-soft); color: var(--green); }189.badge.mode { background: var(--accent-soft); color: var(--accent-deep); }190.badge.direct {191 background: transparent;192 border: 1px solid var(--accent, #0c8599);193 color: var(--accent-deep, #0b7285);194}195196/* --- fiche ------------------------------------------------------------------------- */197.sheet {198 background: var(--surface); border: 1px solid var(--border);199 border-radius: var(--radius); padding: 28px 32px; margin: 24px 0;200}201.sheet h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.3px; }202.sheet .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }203.sheet .description { white-space: pre-line; color: var(--ink-2); }204205/* --- tuiles de statistiques (hero numbers) --------------------------------------- */206.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 22px 0; }207.tile {208 background: var(--surface); border: 1px solid var(--border);209 border-radius: var(--radius); padding: 18px 20px;210}211.tile .value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }212.tile .label { color: var(--ink-3); font-size: 13px; margin-top: 2px; }213214/* --- barres horizontales (magnitude, teinte unique) --------------------------------- */215.bars { display: grid; gap: 8px; margin: 10px 0 26px; }216.bar-row { display: grid; grid-template-columns: 190px 1fr 52px; align-items: center; gap: 10px; }217.bar-row .name { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }218.bar-row .track { background: rgb(20 24 20 / 6%); border-radius: 4px; height: 14px; }219.bar-row .fill { background: var(--accent); border-radius: 4px; height: 14px; min-width: 3px; }220.bar-row .n { font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }221222/* --- tableaux ----------------------------------------------------------------------- */223table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }224table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }225table.data th { background: var(--surface-2); color: var(--ink-2); font-weight: 600; }226table.data tr:last-child td { border-bottom: none; }227228/* --- carte -------------------------------------------------------------------------- */229/* hauteur = viewport - hauteur RÉELLE du header (--header-h posée par App.tsx230 via ResizeObserver) ; dvh évite le saut quand la barre du navigateur se replie */231.map-wrap {232 height: calc(100vh - var(--header-h, 58px));233 height: calc(100dvh - var(--header-h, 58px));234 position: relative;235}236.map-wrap .maplibregl-map { height: 100%; }237.map-count {238 position: absolute; top: 14px; left: 14px; z-index: 5;239 background: var(--brand); color: #fff; border-radius: 10px;240 padding: 8px 14px; font-size: 13.5px; box-shadow: var(--shadow);241}242.map-popup h4 { margin: 0 0 2px; font-size: 14px; }243.map-popup { font: 13px "Inter", sans-serif; }244245/* --- pagination / divers ------------------------------------------------------------- */246.pager { display: flex; gap: 8px; justify-content: center; margin: 26px 0; }247.pager button {248 background: var(--surface); border: 1px solid var(--border); border-radius: 8px;249 padding: 8px 16px; cursor: pointer; font: inherit; min-height: var(--touch);250}251.pager button:disabled { opacity: 0.4; cursor: default; }252.empty { text-align: center; color: var(--ink-3); padding: 60px 0; }253.section-title { font-size: 19px; font-weight: 700; margin: 30px 0 4px; }254.muted { color: var(--ink-3); font-size: 13px; }255256/* --- page Contact (commune Groupe KA) -------------------------------------------------- */257.contact-page { padding: 44px 0 90px; }258.contact-page h1 { margin: 10px 0 8px; }259.contact-page .lede { color: var(--ink-2); max-width: 640px; margin: 0 0 26px; }260.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 26px 0; }261@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }262.contact-card { padding: 18px 20px; }263.contact-card .klabel { display: block; margin-bottom: 6px; }264.contact-card a.mail {265 font-family: var(--font-mono); font-weight: 700; font-size: 13.5px;266 color: var(--accent-deep); word-break: break-all;267 text-decoration: underline; text-underline-offset: 3px;268}269.contact-note {270 border-left: 3px solid var(--accent); background: var(--surface);271 border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink);272 border-bottom: 1.5px solid var(--ink); border-radius: 0 var(--r-card) var(--r-card) 0;273 padding: 14px 18px; max-width: 720px; color: var(--ink-2); font-size: 14px;274}275.contact-note b { color: var(--ink); }276.contact-sites { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }277.contact-sites a {278 display: inline-flex; align-items: center; min-height: 34px;279 padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: var(--r-pill);280 background: var(--surface); font-family: var(--font-mono); font-size: 11px;281 font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;282 color: var(--ink); transition: transform 0.12s, box-shadow 0.12s;283}284.contact-sites a:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-off-mid); text-decoration: none; }285.contact-hub { margin-top: 26px; }286287/* --- rangée de navigation locale au-dessus du footer commun ----------------------------- */288.prefooter { border-top: 1.5px solid var(--ink); background: var(--surface-2); padding: 18px 0; margin-top: 60px; }289.prefooter .container {290 display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;291}292.prefooter a {293 color: var(--ink-2); text-decoration: none; text-transform: uppercase;294 letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 700; font-size: 11.5px;295 min-height: var(--touch); display: inline-flex; align-items: center;296}297.prefooter a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; }298.prefooter .baseline { width: 100%; font-size: 13px; color: var(--ink-2); }299.ka-footer { margin-top: 0; }300301@media (max-width: 640px) {302 .bar-row { grid-template-columns: 120px 1fr 44px; }303 .sheet { padding: 20px; }304}305