/* ============================================================================= Job·Ka — Groupe KA Auteur : Simon-Pierre Boucher Contact : contact@spboucher.ai Fichier : frontend/src/styles.css Rôle : CSS local Job·Ka — s'appuie sur le design system commun Groupe KA (ka/tokens.css, importé AVANT ce fichier dans main.tsx). Ici : seulement l'accent de la marque + les classes métier (offres, filtres, carte). Le socle (body, grain, sélection, .container, .btn, .card, .chip, ka-footer…) vit dans tokens.css. Créé : 2026-08-17 Modifié : 2026-08-17 ============================================================================= */ :root { /* ---- ACCENT Job·Ka (cyan officiel — voir ka/ecosystem.json) ---- */ --accent: #0c8599; --accent-soft: #def0f4; --accent-deep: #095c6b; --on-accent: #ffffff; --lime: var(--accent); --lime-soft: var(--accent-soft); /* ---- alias hérités du CSS v1 (classes métier ci-dessous) ---- */ --brand: var(--ink); --border: var(--line); --green-soft: #e7f2ec; --radius: var(--r-card); --shadow: var(--shadow-flat), 0 4px 14px rgb(20 24 20 / 6%); } a { color: var(--green); text-decoration: none; } a:hover { text-decoration: underline; } /* --- en-tête ---------------------------------------------------------------- */ header.site { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: var(--z-header, 500); } /* menu mobile ouvert : le header (et son panneau) passe au-dessus du backdrop */ header.site.menu-open { z-index: var(--z-modal, 900); } header.site .container { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 58px; padding-top: 8px; padding-bottom: 8px; } .logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.3px; white-space: nowrap; position: relative; } /* extension tactile : le logo (63×31) atteint >=44px de cible sans changer le rendu */ .logo::after { content: ""; position: absolute; inset: -8px; } .logo em { color: var(--accent-soft); font-style: normal; } header.site .gk-badge { flex-shrink: 0; } nav.main { display: flex; gap: 4px; margin-left: auto; } nav.main a { color: #d7ddda; padding: 7px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; } nav.main a:hover { color: #fff; background: rgb(255 255 255 / 8%); text-decoration: none; } nav.main a.active { color: var(--accent-soft); background: rgb(255 255 255 / 10%); } /* connexion KA ID (droite du header) */ .auth-box { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .btn-ka { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 13px; border: 1.5px solid rgb(245 243 238 / 45%); border-radius: var(--r-pill); background: transparent; color: #f5f3ee; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; text-decoration: none; } .btn-ka b { font-family: var(--font-display); font-size: 12px; text-transform: none; letter-spacing: -0.02em; background: var(--accent); color: var(--on-accent); border-radius: 5px; padding: 0 6px 1px; } .btn-ka:hover { border-color: var(--accent-soft); text-decoration: none; } .auth-user { display: inline-flex; align-items: center; gap: 8px; color: #d7ddda; font-size: 13px; white-space: nowrap; } .auth-user img { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgb(245 243 238 / 45%); } .auth-user button { border: 0; background: none; color: #9aa5a0; font: inherit; font-size: 12px; cursor: pointer; padding: 6px 0; min-height: 34px; } .auth-user button:hover { color: #fff; text-decoration: underline; } /* bascule mobile du header : sous 980 px la nav passe sur sa propre rangée (défilement horizontal contenu — jamais de débordement de page) */ @media (max-width: 979px) { nav.main { order: 10; flex-basis: 100%; margin-left: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; } nav.main::-webkit-scrollbar { display: none; } nav.main a { padding: 7px 9px; font-size: 13.5px; } .auth-box { margin-left: auto; } } @media (max-width: 560px) { header.site .gk-badge { padding: 2px 8px 3px; font-size: 9px; } header.site .gk-badge b { font-size: 11px; } .auth-user span.name { display: none; } } /* --- menu mobile (hamburger) ------------------------------------------------- Sous 700 px, la nav en flex-wrap (2-3 lignes) est remplacée par un bouton 44×44 + panneau déroulant sous le header ; backdrop fixe rendu HORS du header (frère dans App.tsx), verrou de scroll géré côté React. */ .menu-btn { display: none; width: 44px; height: 44px; margin-left: 4px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; padding: 0; } .menu-btn:hover { background: rgb(255 255 255 / 8%); } .menu-btn span { display: block; width: 22px; height: 2px; background: #f5f3ee; border-radius: 2px; transition: transform 0.2s ease, opacity 0.15s ease; } .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; } .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand); overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.25s ease, opacity 0.2s ease; } .mobile-menu.open { max-height: 480px; opacity: 1; border-bottom: 1.5px solid var(--ink); padding-bottom: calc(16px + env(safe-area-inset-bottom)); } .mobile-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 20px; color: #d7ddda; font-weight: 500; } .mobile-menu a:hover { color: #fff; text-decoration: none; background: rgb(255 255 255 / 8%); } .mobile-menu a.active { color: var(--accent-soft); background: rgb(255 255 255 / 10%); } .mm-backdrop { position: fixed; inset: 0; background: rgb(16 18 16 / 45%); z-index: var(--z-overlay, 800); } @media (max-width: 700px) { nav.main { display: none; } .menu-btn { display: flex; } .mobile-menu { display: block; } } /* --- héros ------------------------------------------------------------------ */ .hero { background: var(--brand); color: #fff; padding: 40px 0 34px; } .hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: #fff; } .hero h1 em { color: var(--accent-soft); font-style: normal; } .hero p { margin: 0 0 20px; color: #b9c2be; max-width: 640px; } /* --- filtres ------------------------------------------------------------------ */ .filters { display: flex; flex-wrap: wrap; gap: 10px; } .filters input[type="search"], .filters select { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: inherit; min-width: 130px; } .filters input[type="search"] { flex: 1 1 220px; } .filters label.check { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--ink); /* le héros est blanc sur encre — ne pas hériter */ border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; height: 42px; cursor: pointer; user-select: none; white-space: nowrap; } /* champs >=16px sur mobile : évite le zoom automatique d'iOS au focus */ @media (max-width: 700px) { .filters input[type="search"], .filters select, .filters label.check { font-size: 16px; } } /* --- cartes d'offres ------------------------------------------------------------ */ .job-list { display: grid; gap: 12px; margin: 22px 0; } .job-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; color: inherit; transition: border-color 0.12s, box-shadow 0.12s; } .job-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; } .job-card h3 { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: var(--ink); } .job-card .employer { color: var(--accent-deep); font-weight: 600; } .job-card .meta { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; } .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); } .badge.salary { background: var(--green-soft); color: var(--green); } .badge.mode { background: var(--accent-soft); color: var(--accent-deep); } .badge.direct { background: transparent; border: 1px solid var(--accent, #0c8599); color: var(--accent-deep, #0b7285); } /* --- fiche ------------------------------------------------------------------------- */ .sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin: 24px 0; } .sheet h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.3px; } .sheet .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; } .sheet .description { white-space: pre-line; color: var(--ink-2); } /* --- tuiles de statistiques (hero numbers) --------------------------------------- */ .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 22px 0; } .tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; } .tile .value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; } .tile .label { color: var(--ink-3); font-size: 13px; margin-top: 2px; } /* --- barres horizontales (magnitude, teinte unique) --------------------------------- */ .bars { display: grid; gap: 8px; margin: 10px 0 26px; } .bar-row { display: grid; grid-template-columns: 190px 1fr 52px; align-items: center; gap: 10px; } .bar-row .name { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bar-row .track { background: rgb(20 24 20 / 6%); border-radius: 4px; height: 14px; } .bar-row .fill { background: var(--accent); border-radius: 4px; height: 14px; min-width: 3px; } .bar-row .n { font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; } /* --- tableaux ----------------------------------------------------------------------- */ table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; } table.data th { background: var(--surface-2); color: var(--ink-2); font-weight: 600; } table.data tr:last-child td { border-bottom: none; } /* --- carte -------------------------------------------------------------------------- */ /* hauteur = viewport - hauteur RÉELLE du header (--header-h posée par App.tsx via ResizeObserver) ; dvh évite le saut quand la barre du navigateur se replie */ .map-wrap { height: calc(100vh - var(--header-h, 58px)); height: calc(100dvh - var(--header-h, 58px)); position: relative; } .map-wrap .maplibregl-map { height: 100%; } .map-count { position: absolute; top: 14px; left: 14px; z-index: 5; background: var(--brand); color: #fff; border-radius: 10px; padding: 8px 14px; font-size: 13.5px; box-shadow: var(--shadow); } .map-popup h4 { margin: 0 0 2px; font-size: 14px; } .map-popup { font: 13px "Inter", sans-serif; } /* --- pagination / divers ------------------------------------------------------------- */ .pager { display: flex; gap: 8px; justify-content: center; margin: 26px 0; } .pager button { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; cursor: pointer; font: inherit; min-height: var(--touch); } .pager button:disabled { opacity: 0.4; cursor: default; } .empty { text-align: center; color: var(--ink-3); padding: 60px 0; } .section-title { font-size: 19px; font-weight: 700; margin: 30px 0 4px; } .muted { color: var(--ink-3); font-size: 13px; } /* --- page Contact (commune Groupe KA) -------------------------------------------------- */ .contact-page { padding: 44px 0 90px; } .contact-page h1 { margin: 10px 0 8px; } .contact-page .lede { color: var(--ink-2); max-width: 640px; margin: 0 0 26px; } .contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 26px 0; } @media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } } .contact-card { padding: 18px 20px; } .contact-card .klabel { display: block; margin-bottom: 6px; } .contact-card a.mail { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; color: var(--accent-deep); word-break: break-all; text-decoration: underline; text-underline-offset: 3px; } .contact-note { border-left: 3px solid var(--accent); background: var(--surface); border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 14px 18px; max-width: 720px; color: var(--ink-2); font-size: 14px; } .contact-note b { color: var(--ink); } .contact-sites { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .contact-sites a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--surface); font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); transition: transform 0.12s, box-shadow 0.12s; } .contact-sites a:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-off-mid); text-decoration: none; } .contact-hub { margin-top: 26px; } /* --- rangée de navigation locale au-dessus du footer commun ----------------------------- */ .prefooter { border-top: 1.5px solid var(--ink); background: var(--surface-2); padding: 18px 0; margin-top: 60px; } .prefooter .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; } .prefooter a { color: var(--ink-2); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; min-height: var(--touch); display: inline-flex; align-items: center; } .prefooter a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; } .prefooter .baseline { width: 100%; font-size: 13px; color: var(--ink-2); } .ka-footer { margin-top: 0; } @media (max-width: 640px) { .bar-row { grid-template-columns: 120px 1fr 44px; } .sheet { padding: 20px; } }