/* ============================================================================= 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) au style « éditorial sharp » du groupe (bordures encre 1,5 px + ombres décalées dures, étiquettes mono). Le socle (body, grain, sélection, .container, .btn, .card, .chip, ka-footer…) vit dans tokens.css. Créé : 2026-08-17 Modifié : 2026-08-25 ============================================================================= */ :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 { /* pilules font-display 700 (standard header/menu KA 2026-08-22), thème encre conservé */ color: #d7ddda; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif); font-size: 13.5px; letter-spacing: -0.01em; 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); } /* KA Nav v2 (2026-08-25) : panneau PLEIN ÉCRAN en position:fixed inset:0 — visible peu importe la position de scroll (l'ancien dropdown absolute 480px se dessinait sous le header). Le rang du header (marque + burger→✕) reste au-dessus du panneau via .menu-open .container. */ .mobile-menu { display: none; position: fixed; inset: 0; background: var(--brand); padding: calc(var(--header-h, 58px) + 14px) 22px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; counter-reset: mnav; } .mobile-menu.open { animation: mm-in 0.16s ease; } @keyframes mm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } /* burger masqué à l'ouverture : la fermeture passe par le ✕ fixe du panneau (le burger vit dans le header — hors écran si le header n'est pas épinglé) */ header.site.menu-open .menu-btn { visibility: hidden; } /* bouton de fermeture du panneau : fixe en haut à droite du viewport */ .mm-close { position: fixed; top: 10px; right: 14px; z-index: 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1.5px solid #f5f3ee; border-radius: 999px; background: #f5f3ee; color: var(--brand); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; } .mobile-menu a { display: flex; align-items: baseline; gap: 13px; padding: 16px 2px; color: #f5f3ee; font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1.1; border-bottom: 1.5px dashed rgb(255 255 255 / 18%); } .mobile-menu a::before { counter-increment: mnav; content: "0" counter(mnav); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; color: var(--accent-soft); } .mobile-menu a:last-child { border-bottom: 0; } .mobile-menu a:hover { color: #fff; text-decoration: none; } .mobile-menu a.active { color: var(--accent-soft); } .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.open { display: flex; } } /* --- héros (encre — identité Job·Ka) ---------------------------------------- */ .hero { background: var(--brand); color: #fff; padding: 42px 0 36px; } .hero .kicker { color: var(--accent-soft); } .hero .kicker::before { background: var(--accent); } .hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 2.6vw + 16px, 42px); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.08; } .hero h1 em { /* surligné d'accent incliné — signature du groupe (.hl), déclinaison encre */ display: inline-block; font-style: normal; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 0 10px 2px; transform: rotate(-1deg); } .hero p { margin: 0 0 22px; color: #b9c2be; max-width: 640px; } /* --- filtres (champs sharp : bordure encre + focus accent décalé) ------------ */ .filters { display: flex; flex-wrap: wrap; gap: 10px; } .filters input[type="search"], .filters select { height: 44px; padding: 0 12px; border-radius: var(--r-ctl); border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; min-width: 130px; } .filters input[type="search"]:focus, .filters select:focus { outline: none; box-shadow: 3px 3px 0 var(--accent); } .filters input[type="search"] { flex: 1 1 220px; } .filters input[type="search"]::placeholder { color: var(--ink-3); } .filters label.check { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); color: var(--ink); /* le héros est blanc sur encre — ne pas hériter */ border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 0 14px; height: 44px; cursor: pointer; user-select: none; white-space: nowrap; } .filters label.check:has(input:checked) { background: var(--accent-soft); box-shadow: 3px 3px 0 var(--accent); } /* 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 (sharp : bordure encre + ombre décalée) --------------------- */ .job-list { display: grid; gap: 14px; margin: 22px 0; } .job-card { display: block; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 18px 20px; color: inherit; transition: transform 0.15s, box-shadow 0.15s; } .job-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-off-mid); text-decoration: none; } .job-card h3 { margin: 0 0 2px; font-family: var(--font-display); font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; } .job-card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; } .job-card .employer { color: var(--accent-deep); font-weight: 600; } .job-card .meta { color: var(--ink-3); font-size: 13px; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } /* étiquettes façon .chip du groupe : mono, uppercase, pilule bordée */ .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2); color: var(--ink-2); border: 1.5px solid var(--line); } .badge.salary { background: var(--green-soft); color: var(--green); border-color: var(--green); } .badge.mode { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--line); } .badge.direct { background: transparent; border-color: var(--accent); color: var(--accent-deep); } .badge.new { background: var(--accent); color: var(--on-accent); border-color: var(--accent-deep); } .badge.seniority { background: var(--surface-2); color: var(--ink); border-color: var(--ink); } .badge.salary .approx { font-style: normal; font-weight: 600; opacity: 0.75; margin-left: 5px; text-transform: none; letter-spacing: 0; } /* pied de carte : fraîcheur · avantages · plateforme source */ .jc-foot { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; } .jc-foot .ats { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; } /* --- métriques « En un coup d'œil » (fiche d'offre) -------------------------- */ .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 12px 0 22px; } .metric { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 13px 15px; } .metric .m-value { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; } .metric .m-label { color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; } .metric .m-sub { color: var(--ink-3); font-size: 12px; margin-top: 6px; line-height: 1.45; } .delta-up { color: var(--green); } .delta-down { color: #a05a22; } /* position du salaire dans la fenêtre interquartile de sa catégorie */ .market-bar { position: relative; height: 12px; margin: 2px 0 7px; } .market-bar .mb-track { position: absolute; inset: 4px 0; background: rgb(20 24 20 / 8%); border-radius: 4px; } .market-bar .mb-window { position: absolute; top: 4px; bottom: 4px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 4px; } .market-bar .mb-marker { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; } /* historique du salaire affiché */ .salary-history { margin: 8px 0 0; padding-left: 18px; } .salary-history li { margin: 3px 0; font-size: 14px; } /* --- fiche ------------------------------------------------------------------------- */ .sheet { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); 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: 14px; margin: 22px 0; } .tile { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 18px 20px; position: relative; overflow: hidden; } .tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); } .tile .value { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.5px; } .tile .label { color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; } /* --- 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: separate; border-spacing: 0; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-off-soft); } 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-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1.5px solid var(--ink); } 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: var(--r-card); border: 1.5px solid var(--ink); box-shadow: var(--shadow-off-mid); padding: 8px 14px; font-size: 13px; font-family: var(--font-display); font-weight: 700; } .map-popup h4 { margin: 0 0 2px; font-size: 14px; } .map-popup { font: 13px "Inter", sans-serif; } /* --- pagination / divers ------------------------------------------------------------- */ .pager { display: flex; gap: 10px; justify-content: center; margin: 26px 0; } .pager button { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 8px 16px; cursor: pointer; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 14px; min-height: var(--touch); transition: transform 0.15s, box-shadow 0.15s; } .pager button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--shadow-off-mid); } .pager button:active { transform: none; box-shadow: none; } .pager button:disabled { opacity: 0.4; cursor: default; } .empty { text-align: center; color: var(--ink-3); padding: 60px 0; } .section-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 30px 0 4px; } .muted { color: var(--ink-3); font-size: 13px; } /* --- formulaire de dépôt direct (page Publier) ------------------------------------------ */ .depot-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; } @media (max-width: 700px) { .depot-grid { grid-template-columns: 1fr; } } .depot-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2); } .depot-form input:not([name="website"]), .depot-form select, .depot-form textarea { font: 15px/1.4 var(--font-body); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-ctl); background: var(--surface); padding: 10px 12px; min-height: var(--touch); } .depot-form textarea { resize: vertical; } .depot-form input:focus, .depot-form select:focus, .depot-form textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--accent); } .depot-form input::placeholder, .depot-form textarea::placeholder { color: var(--ink-3); } /* --- 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; } } /* --- favoris ♥ « Mon univers Ka » (hub Groupe KA) ---------------------------------- */ .job-card { position: relative; } .job-card h3 { padding-right: 48px; } .fav-btn { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.95); color: var(--ink); transition: transform 0.12s ease, background 0.12s ease; } .fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; } .fav-btn:hover { transform: scale(1.08); background: var(--accent-soft); } .fav-btn.on { background: var(--accent); border-color: var(--accent-deep); color: var(--on-accent); } .fav-btn.on svg { fill: currentColor; } /* fiche d'offre : le cœur à droite du titre */ .fav-btn.big { position: static; flex-shrink: 0; width: 44px; height: 44px; } .fav-btn.big svg { width: 21px; height: 21px; } /* page /favoris */ .fav-card { padding-right: 64px; }