/* Vigie — feuille de style, variante C
   Moderne et clair : couleurs forêt et lac, cartes, icônes de métiers, une seule famille (Plus Jakarta Sans).
   Le moment fort est l'en-tête sombre de l'accueil, avec ses courbes de niveau et la grande barre de recherche. */

:root {
  --bg: #F3F6F4;
  --surface: #FFFFFF;
  --mist: #E8EFEB;
  --ink: #10201A;
  --ink-2: #3E5148;
  --ink-3: #586A62;
  --rule: #DDE5E0;
  --field: #C5D2CB;
  --forest: #1D6B4C;
  --forest-deep: #134D36;
  --forest-tint: #E2EFE8;
  --lake: #2C6E91;
  --lake-tint: #E0EDF4;
  --night: #0E2219;
  --red: #B42B3A;
  --red-tint: #FBEBEC;
  --green: #1E7A4C;
  --green-tint: #E3F2EA;
  --amber: #C98A12;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .05);
  --shadow-hover: 0 12px 28px -14px rgba(16, 32, 26, .28);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--forest); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.inline { display: inline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 30; }
.skip:focus { left: 1rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mt { margin-top: 1.75rem; }
.inline-checks { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.break { word-break: break-all; }

/* ------------------------------------------------------------ En-tête */
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead-inner { max-width: var(--wrap); margin: 0 auto; padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; fill: var(--forest); }
.brand-mark circle { fill: var(--lake); }
.mainnav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.mainnav a, .linklike { color: var(--ink-2); text-decoration: none; font: inherit; }
.mainnav a:hover, .linklike:hover { color: var(--forest); }
.mainnav a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.mainnav .btn, .mainnav .btn:hover { color: #fff; text-decoration: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }
.notice-bar { background: var(--forest); color: #fff; text-align: center; padding: .5rem 1rem; font-size: .875rem; }

/* ------------------------------------------------------------ Boutons et champs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--forest); color: #fff; border: 1px solid var(--forest); border-radius: 999px;
  padding: .7rem 1.3rem; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; text-decoration: none; }
.btn-ink { background: var(--night); border-color: var(--night); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--forest-deep); border-color: #fff; }
.btn-light:hover { background: var(--forest-tint); color: var(--forest-deep); border-color: var(--forest-tint); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8F1F2D; border-color: #8F1F2D; }
.btn-small { padding: .45rem .9rem; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

label, .field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; margin-top: .15rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: 10px; padding: .65rem .8rem;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29, 107, 76, .18); outline: none; }
textarea { min-height: 9rem; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; margin-bottom: .3rem; }
.check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--forest); flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.taux { display: flex; align-items: center; gap: .5rem; }
.taux select { width: auto; flex: 1; }

/* ------------------------------------------------------------ Accueil : en-tête sombre */
.hero {
  background-color: var(--night); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520' fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.3'%3E%3Cpath d='M620 250c0-80 70-140 150-138s128 66 120 138-76 124-148 120-122-40-122-120z'/%3E%3Cpath d='M572 252c-4-110 88-184 198-180s172 92 166 186-106 172-202 168-158-64-162-174z'/%3E%3Cpath d='M522 254c-6-140 106-236 248-230s224 120 216 242-138 222-262 216-196-88-202-228z'/%3E%3Cpath d='M470 258c-8-172 130-290 302-282s276 146 264 298-174 274-324 266-234-108-242-282z'/%3E%3Cpath d='M418 262c-10-202 152-346 356-334s326 174 312 352-208 324-382 312-276-128-286-330z'/%3E%3Cpath d='M30 470c80-50 160-56 240-24s150 36 220-2'/%3E%3Cpath d='M0 510c90-60 190-70 280-30s170 42 250 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right -140px center;
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.25rem 3.75rem; }
.headline { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin: 0 0 1rem; color: #fff; }
.hero-lead { color: #C3D6CC; font-size: 1.1rem; max-width: 56ch; margin-bottom: 2rem; }
.searchbar {
  display: flex; align-items: center; gap: .25rem; background: var(--surface); border-radius: 999px;
  padding: .4rem; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); max-width: 860px;
}
.sb-field { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0 1rem; flex: 1; min-width: 0; color: var(--ink-3); font-weight: 400; }
.sb-field + .sb-field { border-left: 1px solid var(--rule); }
.sb-q { flex: 1.6; }
.sb-field input, .sb-field select { border: 0; padding: .7rem 0; background: transparent; font-size: 1rem; box-shadow: none; }
.sb-field input:focus, .sb-field select:focus { box-shadow: none; }
.sb-field:focus-within { color: var(--forest); }
.searchbar:focus-within { box-shadow: 0 0 0 3px rgba(29, 107, 76, .35), 0 18px 40px -20px rgba(0, 0, 0, .55); }
.sb-submit { padding: .85rem 1.6rem; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 0; color: #A9C1B5; font-size: .9rem; }
.hero-popular span { margin-right: .25rem; }
.hero-popular a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .3rem .8rem; }
.hero-popular a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.hero :focus-visible { outline-color: #8FD3B2; }

/* ------------------------------------------------------------ Accueil : sections */
.main { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.main-bleed { display: block; }
.flash-wrap { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1.25rem 0; }
.block { margin-bottom: 3rem; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.block-head h2 { margin: 0; font-size: 1.45rem; }
.block-head a { font-weight: 600; font-size: .95rem; }
.cat-grid, .canton-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.canton-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.main > .ad-slot { margin: -1.5rem 0 1.75rem; }
.cat-card, .canton-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .85rem; align-items: center;
  height: 100%; padding: .95rem 1.05rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  color: var(--ink); text-decoration: none; transition: border-color .12s, box-shadow .12s;
}
.cat-card:hover, .canton-card:hover { border-color: var(--forest); box-shadow: var(--shadow-hover); color: var(--ink); text-decoration: none; }
.cat-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--forest-tint); color: var(--forest); }
.cat-icon .icon { width: 22px; height: 22px; }
.cat-name, .canton-name { font-weight: 700; line-height: 1.25; }
.cat-count { color: var(--ink-3); font-size: .85rem; }
.canton-code { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lake-tint); color: var(--lake); font-weight: 800; letter-spacing: .02em; }
.employer-band {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--forest); color: #fff; border-radius: var(--r-lg); padding: 2rem 2.25rem;
}
.employer-band h2 { margin: 0 0 .35rem; font-size: 1.5rem; }
.employer-band p { margin: 0; color: #D3EADF; max-width: 56ch; }

/* ------------------------------------------------------------ Cartes d'offres */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: .85rem; }
.job-list { display: flex; flex-direction: column; gap: .75rem; }
.job {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0 1rem;
  padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  transition: border-color .12s, box-shadow .12s;
}
.job:hover { border-color: #B9CCC2; box-shadow: var(--shadow-hover); }
.job-avatar {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  font-weight: 800; font-size: 1rem; letter-spacing: .02em;
}
.av-0 { background: var(--forest-tint); color: var(--forest-deep); }
.av-1 { background: var(--lake-tint); color: var(--lake); }
.av-2 { background: var(--mist); color: var(--ink-2); }
.job-main { min-width: 0; }
.job-title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .2rem; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.job:hover .job-title a { color: var(--forest); }
.job-title a:focus-visible { outline: none; }
.job-title a:focus-visible::after { outline: 3px solid var(--forest); outline-offset: 2px; }
.job-org { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; margin: 0 0 .45rem; color: var(--ink-2); font-size: .92rem; }
.job-org strong { font-weight: 600; color: var(--ink); }
.job-place { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-3); }
.job-place .icon { width: 15px; height: 15px; }
.job-excerpt { margin: 0 0 .6rem; color: var(--ink-2); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 75ch; }
.job-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 500; background: #EEF3F0; color: var(--ink-2); border-radius: 999px; padding: .2rem .65rem; }
.tag .icon { width: 14px; height: 14px; }
.tag-strong { background: var(--forest-tint); color: var(--forest-deep); font-weight: 700; }
.tag-cat { background: var(--lake-tint); color: var(--lake); }
.tag-new { background: var(--forest); color: #fff; font-weight: 600; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; text-align: right; }
.job-date { margin: 0; font-size: .85rem; color: var(--ink-3); font-weight: 500; }
.job-source { margin: 0; font-size: .78rem; color: var(--ink-3); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-side form { position: relative; z-index: 1; margin-top: auto; }
.save-btn {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  padding: .3rem .7rem; color: var(--ink-2); font: 600 .8rem/1.2 var(--font); cursor: pointer;
}
.save-btn .icon { width: 15px; height: 15px; }
.save-btn:hover { border-color: var(--forest); color: var(--forest); }
.save-btn[aria-pressed="true"] { background: var(--forest-tint); border-color: var(--forest-tint); color: var(--forest-deep); }
.save-btn[aria-pressed="true"] .icon { fill: currentColor; }
/* Cartes en grille (accueil, offres semblables) : la colonne de droite passe dessous */
.job-grid .job { grid-template-columns: 48px minmax(0, 1fr); }
.job-grid .job-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: .9rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--rule); text-align: left; }
.job-grid .job-source { max-width: none; }
.job-grid .job-side form { margin: 0 0 0 auto; }
.job-partner { grid-template-columns: minmax(0, 1fr) auto; }

/* Barre de taux (fiche d'offre) */
.meter { display: inline-flex; flex-direction: column; gap: .35rem; }
.meter-label { font-weight: 700; color: var(--ink); }
.meter-track { position: relative; display: block; width: 150px; height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.meter-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--forest); }
.meter-empty .meter-track { background: repeating-linear-gradient(135deg, var(--mist) 0 4px, transparent 4px 8px); }
.meter-empty .meter-label { font-weight: 400; font-size: .875rem; color: var(--ink-3); }

/* ------------------------------------------------------------ Résultats */
.searchband { background: var(--surface); border-bottom: 1px solid var(--rule); }
.searchband-inner { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem; }
.searchbar-compact { box-shadow: none; border: 1px solid var(--field); max-width: 760px; padding: .3rem; }
.searchbar-compact:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29, 107, 76, .18); }
.searchbar-compact .sb-submit { padding: .65rem 1.3rem; }
.results-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; }
.filters { position: static; }
.filters-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.2rem 1.2rem .4rem; }
.filters fieldset { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { font-size: .95rem; }
.check-count { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; }
.check-count small { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.check-count.is-empty { color: var(--ink-3); }
.filters-toggle { display: none; }
.js .filters-apply { display: none; }
.filters-apply { margin-bottom: 1rem; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.results-head h1 { font-size: 1.6rem; margin: 0; }
.sort { display: flex; gap: .3rem; font-size: .875rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .2rem; }
.sort a { padding: .25rem .75rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.sort a[aria-current="true"] { background: var(--forest); color: #fff; font-weight: 600; }
.active-filters { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.active-filters a { display: inline-flex; align-items: center; gap: .35rem; background: var(--forest-tint); color: var(--forest-deep); border-radius: 999px; padding: .3rem .55rem .3rem .8rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.active-filters a:hover { background: #CFE5DA; }
.active-filters .icon { width: 14px; height: 14px; }
.active-filters a.clear { background: none; color: var(--ink-3); text-decoration: underline; padding-left: .4rem; }
.alert-cta { margin-top: 1.5rem; text-align: center; }
.empty { background: var(--surface); border: 1px dashed var(--field); border-radius: var(--r); padding: 2rem; color: var(--ink-2); }
.empty h2 { font-size: 1.2rem; }
.pager { display: flex; gap: 1.25rem; align-items: center; justify-content: center; padding: 1.75rem 0 0; font-size: .95rem; }
.pager a { font-weight: 600; }
.ad-slot { margin: .25rem 0; padding: .75rem; border: 1px dashed var(--field); border-radius: var(--r); text-align: center; background: var(--surface); }
.ad-label { display: block; font-size: .72rem; color: var(--ink-3); margin-bottom: .3rem; }
.partner { margin-top: 2.5rem; }
.partner h2 { font-size: 1.1rem; }
.partner .job + .job { margin-top: .75rem; }

/* ------------------------------------------------------------ Fiche d'offre */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .875rem; margin-bottom: 1.1rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.offer-title { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.job-avatar-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.3rem; flex: none; }
.offer-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; max-width: 24ch; margin-bottom: .35rem; }
.offer-org { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: center; font-size: 1.05rem; color: var(--ink-2); margin: 0; }
.offer-org strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.75rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.facts dt { font-size: .8rem; color: var(--ink-3); margin-bottom: .2rem; }
.facts dd { margin: 0; font-weight: 700; }
.offer-body { max-width: 70ch; }
.offer-body .lead { font-size: 1.12rem; line-height: 1.65; }
.offer-desc { white-space: pre-line; }
.provenance { background: var(--lake-tint); border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: .9rem; color: var(--ink-2); }
.provenance p:last-child { margin: 0; }
.apply-box { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.apply-box h2 { font-size: 1.05rem; }
.apply-box .btn { width: 100%; margin-bottom: .55rem; }
.apply-box p { font-size: .875rem; color: var(--ink-2); }
.apply-box .save-btn { margin-bottom: .5rem; }
.apply-inline { display: none; }
.status-banner { background: var(--red-tint); color: var(--red); border-radius: var(--r); padding: .85rem 1.1rem; margin-bottom: 1.5rem; font-weight: 600; }
.similar { margin-top: 3rem; }
.similar h2 { font-size: 1.3rem; }

/* ------------------------------------------------------------ Pages de texte et formulaires */
.page-narrow { max-width: 760px; }
.page-narrow h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.page-narrow h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose { max-width: 70ch; }
.prose li { margin-bottom: .45rem; }
.callout { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--forest); border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.6rem; max-width: 560px; box-shadow: var(--shadow-sm); }
.form-wide { max-width: 780px; }
.flash { max-width: var(--wrap); margin: 0 0 1.25rem; padding: .85rem 1.1rem; border-radius: var(--r); background: var(--lake-tint); color: var(--ink); }
.flash-ok { background: var(--green-tint); color: #145537; }
.flash-error { background: var(--red-tint); color: #7A1724; }
.errors { color: var(--red); margin: 0 0 1rem; padding: .85rem 1.1rem .85rem 2.2rem; background: var(--red-tint); border-radius: var(--r); }
.preview-mail { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 1rem; white-space: pre-wrap; font-size: .85rem; }

/* ------------------------------------------------------------ Connexion, inscription, mot de passe */
.auth {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  max-width: 1080px; margin: 2.75rem auto 3.75rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -36px rgba(16, 32, 26, .45);
}
.auth-aside {
  order: -1; display: flex; flex-direction: column; gap: 1.5rem; padding: 3rem 2.75rem; color: #fff;
  background-color: var(--night);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.3'%3E%3Cpath d='M380 430c0-70 60-120 130-118s110 58 104 120-66 108-128 104-106-36-106-106z'/%3E%3Cpath d='M336 432c-4-100 80-168 180-164s156 84 150 170-96 156-184 152-142-58-146-158z'/%3E%3Cpath d='M290 436c-6-130 98-218 228-212s206 110 198 222-128 204-240 198-180-80-186-208z'/%3E%3Cpath d='M244 440c-8-160 120-268 280-260s256 136 246 276-162 252-302 244-216-100-224-260z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right -160px bottom -200px;
}
.auth-aside h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.025em; max-width: 19ch; margin: 0; color: #fff; }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.auth-benefits li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .9rem; align-items: start; color: #B9CBC2; font-size: .92rem; line-height: 1.5; }
.auth-benefits strong { display: block; color: #fff; font-weight: 700; font-size: .98rem; margin-bottom: .1rem; }
.auth-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #8FD3B2; }
.auth-ic .icon { width: 20px; height: 20px; }
.auth-count { margin: auto 0 0; color: #B9CBC2; font-size: .92rem; }
.auth-count b { display: block; color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.auth-note { margin: 0; font-size: .82rem; color: #93A99E; }
.auth-card { padding: 3rem 3.25rem; display: flex; flex-direction: column; justify-content: center; }
.auth-card > * { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
.auth-card h1 { font-size: 1.95rem; margin-bottom: .4rem; }
.auth-sub { color: var(--ink-2); margin-bottom: 1.75rem; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] { padding: .78rem .9rem; }
.auth-forgot { text-align: right; margin: -.55rem 0 1.25rem; font-size: .875rem; }
.auth-switch { margin-top: 1.75rem; padding-top: 1.35rem; border-top: 1px solid var(--rule); text-align: center; font-size: .95rem; color: var(--ink-2); }
.auth-switch a { font-weight: 700; }
.auth-employer { margin-top: .5rem; text-align: center; font-size: .85rem; color: var(--ink-3); }
.auth-done { display: flex; gap: 1rem; align-items: flex-start; background: var(--forest-tint); border-radius: var(--r); padding: 1.1rem 1.2rem; color: var(--forest-deep); }
.auth-done .auth-ic { background: #fff; color: var(--forest); flex: none; }
.auth-done p { margin: 0; }
.auth .check a { font-weight: 600; }
.btn-block { width: 100%; padding: .85rem 1.3rem; font-size: 1rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 7rem !important; }
.pw-toggle {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; border-radius: 8px;
  padding: .4rem .6rem; color: var(--ink-2); font: 600 .82rem/1 var(--font); cursor: pointer;
}
.pw-toggle:hover { background: var(--mist); color: var(--ink); }
.pw-toggle .icon { width: 17px; height: 17px; }
.pw-rule { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; }
.pw-rule .icon { width: 15px; height: 15px; opacity: .35; }
.pw-rule.is-ok { color: var(--green); font-weight: 600; }
.pw-rule.is-ok .icon { opacity: 1; }

/* ------------------------------------------------------------ Espace candidat et admin */
.main-app { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.app-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0; }
.subnav { display: inline-flex; gap: .2rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .3rem; margin: 1.1rem 0 1.75rem; }
.subnav a { padding: .45rem .95rem; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.subnav a:hover { background: var(--mist); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--forest); color: #fff; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.35rem 1.5rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.1rem; margin-bottom: .8rem; }
details.panel summary { cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; margin-bottom: 1.75rem; }
.kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.kpi b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: .4rem; }
.kpi span { color: var(--ink-2); font-size: .875rem; }
.kpi a { color: inherit; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .7rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
tbody tr:hover { background: #F7FAF8; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; white-space: nowrap; font-size: .875rem; }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink-3); }
.status-ok::before { background: var(--green); }
.status-wait::before { background: var(--amber); }
.status-bad::before { background: var(--red); }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.toolbar .field { margin: 0; }
.toolbar input, .toolbar select { width: auto; min-width: 11rem; }
.cat-form select { min-width: 12rem; padding: .35rem .5rem; font-size: .85rem; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 3.5rem; gap: .75rem; align-items: center; margin-bottom: .5rem; font-size: .875rem; }
.bars .bar { height: 10px; background: var(--mist); border-radius: 999px; position: relative; overflow: hidden; }
.bars .bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--lake); }
.bars .num { text-align: right; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { margin-bottom: .45rem; }
.checklist .status { min-width: 7.5rem; }

/* ------------------------------------------------------------ Assistant d'installation */
.wizard { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 2.5rem; }
.wizard-steps { position: sticky; top: 1.5rem; }
.wizard-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.wizard-steps li { counter-increment: step; display: flex; align-items: center; gap: .75rem; padding: .5rem 0; color: var(--ink-3); font-weight: 500; }
.wizard-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--field); font-weight: 700; font-size: .9rem; background: var(--surface); color: var(--ink-3); }
.wizard-steps li a { color: var(--ink); }
.wizard-steps .ws-done::before { content: "✓"; background: var(--forest); border-color: var(--forest); color: #fff; }
.wizard-steps .ws-done, .wizard-steps .ws-open { color: var(--ink); }
.wizard-steps .ws-current { color: var(--ink); font-weight: 700; }
.wizard-steps .ws-current::before { background: var(--forest-tint); border: 2px solid var(--forest); color: var(--forest-deep); }
.wizard-progress { display: none; margin: 0; font-weight: 700; }
.wizard-body h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.wizard-body > p { max-width: 62ch; }
.wizard-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }
.checklist-wide { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: .25rem 1.1rem; }
.checklist-wide li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.checklist-wide li:last-child { border-bottom: 0; }
.summary { margin: 1.25rem 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 0 1.2rem; }
.summary > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.summary dd a { font-weight: 500; font-size: .85rem; }
.callout textarea { font-size: .8rem; margin: .5rem 0; }

/* ------------------------------------------------------------ Pied de page, centré */
.colophon { background: var(--night); color: #B9CBC2; margin-top: 1rem; }
.colophon-inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-mark { fill: #6FC59C; }
.brand-footer .brand-mark circle { fill: #8EC3E0; }
.colophon-disclaimer { max-width: 68ch; margin: 0; font-size: .92rem; }
.colophon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .92rem; }
.colophon a { color: #E7F2EC; }
.colophon a:hover { color: #fff; }
.colophon-small { font-size: .82rem; color: #93A99E; margin: 0; }

/* ------------------------------------------------------------ Adaptation mobile */
@media (max-width: 980px) {
  .results-layout, .offer, .grid-2 { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; margin-bottom: .75rem; }
  .filters-panel { display: none; max-height: none; }
  .filters.is-open .filters-panel { display: block; }
  .apply-box { position: static; }
  .apply-inline { display: block; margin: 0 0 1.5rem; }
  .apply-inline .btn { width: 100%; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; margin: 1.25rem 1rem 2.5rem; border-radius: var(--r-lg); }
  .auth-aside { order: 0; padding: 2rem 1.5rem; }
  .auth-aside h2 { font-size: 1.35rem; }
  .auth-card { padding: 2rem 1.5rem; }
}
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  .hero-inner { padding: 2.75rem 1.1rem 2.5rem; }
  .hero { background-position: right -420px top -40px; }
  .searchbar { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: .5rem; gap: 0; }
  .sb-field { padding: 0 .75rem; }
  .sb-field + .sb-field { border-left: 0; border-top: 1px solid var(--rule); }
  .sb-submit { margin-top: .4rem; }
  .searchbar-compact { flex-direction: row; border-radius: 999px; }
  .searchbar-compact .sb-submit { margin: 0; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cat-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: .55rem; padding: .9rem; }
  .cat-icon { grid-row: auto; }
  .canton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .employer-band { padding: 1.5rem; }
  .job { grid-template-columns: 44px minmax(0, 1fr); padding: 1rem; }
  .job-avatar { width: 44px; height: 44px; font-size: .92rem; }
  .job-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: .9rem; margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--rule); text-align: left; }
  .job-source { max-width: none; }
  .job-side form { margin: 0 0 0 auto; }
  .row-2 { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 7rem minmax(0, 1fr) 3rem; }
  .masthead-inner { padding: .7rem 1rem; }
  .mainnav { gap: .9rem; font-size: .9rem; }
  .mainnav .btn { display: none; }
  .offer-title { gap: .85rem; }
  .job-avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
  .subnav { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: var(--r); }
  .subnav a { white-space: nowrap; }
  .wizard { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.5rem; }
  .wizard-steps { position: static; }
  .wizard-steps ol { display: none; }
  .wizard-progress { display: block; }
  .summary > div { grid-template-columns: 1fr; gap: .2rem; }
  .checklist-wide li { grid-template-columns: 1fr; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .meter-fill, .bars .bar span { background: CanvasText; }
  .job { border: 1px solid CanvasText; }
}
@media print {
  .masthead, .colophon, .apply-box, .filters, .ad-slot, .searchband { display: none; }
}
