/* Emploi Mairie — styles for every server-rendered page (lib/site.mjs). The class names are concursos-pt's;
   the look is this site's own (11 Nov 2026): a dark gradient hero, glass header, a display typeface for headings,
   cards colour-coded by the kind of employer. Mobile first; light and dark; motion only when the visitor allows it.
   Nothing here borrows the State's design system (colours, Marianne type): the site must not look official. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque.woff2?v=1) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f5f4fb; --panel: #ffffff; --panel-2: #f4f2fc; --ink: #15122e; --ink-2: #443e66; --muted: #77719a;
  --line: #e5e1f3; --accent: #4b3fc9; --accent-ink: #ffffff; --accent-soft: #ebe9fb;
  --hot: #cf4a78; --sun: #d18a45; --night: #16122f; --band: #5a51bf; --band-2: #665dca; --band-3: #5148b4; --warm: #f6c177;
  /* the home figures' icons */
  --i-s-offers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E");
  --i-s-new: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l1.8 4.7 4.7 1.8-4.7 1.8L12 17l-1.8-4.7-4.7-1.8 4.7-1.8L12 4zM19 15v4M17 17h4M5.5 3.5v3M4 5h3'/%3E%3C/svg%3E");
  --i-s-soon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  /* (11 Nov 2026, "some of the colors are too bright": one hue, violet to plum, no neon pink or orange) */
  --grad: linear-gradient(100deg, #4b3fc9 0%, #6747cf 60%, #8650c9 100%);
  --grad-warm: linear-gradient(100deg, #c24a70 0%, #c9703f 100%);
  --good: #2a8562; --good-soft: #e0f3ea; --warn: #9a6410; --warn-soft: #faefd8; --bad: #b93a62; --bad-soft: #f9e6ec;
  --slate: #5c5878; --slate-soft: #eeecf6; --violet: #7a3df5; --violet-soft: #f1e9ff;
  --shadow: 0 1px 2px rgba(31, 22, 84, .05), 0 8px 24px rgba(31, 22, 84, .06); --radius: 18px;
  --pop-shadow: 0 22px 60px rgba(31, 22, 84, .2), 0 4px 14px rgba(31, 22, 84, .08);
  --lift: 0 14px 32px rgba(75, 63, 201, .13), 0 2px 6px rgba(31, 22, 84, .06);
  --glow: 0 6px 16px rgba(75, 63, 201, .2);
  --ring: 0 0 0 4px rgba(75, 63, 201, .16);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  /* share icons: the networks' own colours, a shade lighter in dark mode so they read on the dark panel */
  --wa: #1a9e4f; --wa-soft: #e5f6ec; --fb: #1877f2; --in: #0a66c2;
  /* one icon per kind of employer (the square on each card) */
  --i-commune: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10l7-5 7 5v11M9 21v-6h6v6'/%3E%3C/svg%3E");
  --i-intercommunalite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6.5' r='2.5'/%3E%3Ccircle cx='18' cy='6.5' r='2.5'/%3E%3Ccircle cx='12' cy='17.5' r='2.5'/%3E%3Cpath d='M8.5 6.5h7M7.3 8.7l3.4 6.6M16.7 8.7l-3.4 6.6'/%3E%3C/svg%3E");
  --i-departement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2zM9 4v14M15 6v14'/%3E%3C/svg%3E");
  --i-region: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.1 7-11a7 7 0 1 0-14 0c0 4.9 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --i-etablissement-local: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M3 21h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E");
  --i-etat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M12 3 3 8v2h18V8l-9-5zM6 10v8M10 10v8M14 10v8M18 10v8'/%3E%3C/svg%3E");
  --i-universite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5-10-5zM6 11.5V16c0 1.5 2.7 3 6 3s6-1.5 6-3v-4.5M22 9v6'/%3E%3C/svg%3E");
  --i-hopital: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zM12 8v8M8 12h8'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a1d; --panel: #16132c; --panel-2: #1d1938; --ink: #f2efff; --ink-2: #cbc5e8; --muted: #928bb8;
    --line: #2b2649; --accent: #a993ff; --accent-soft: #241d4a; --band: #352e7e; --band-2: #3f3790; --band-3: #2d276e;
    --good: #5fd3a2; --good-soft: #12301f; --warn: #f0b45a; --warn-soft: #33260f; --bad: #ff7da6; --bad-soft: #3a1524;
    --slate: #aaa4c8; --slate-soft: #231f3d; --violet: #c2a3ff; --violet-soft: #2a1d4d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3); color-scheme: dark;
    --pop-shadow: 0 22px 60px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .4);
    --lift: 0 16px 38px rgba(0, 0, 0, .5), 0 0 0 1px rgba(169, 147, 255, .25);
    --ring: 0 0 0 4px rgba(169, 147, 255, .25);
    --wa: #4fd683; --wa-soft: #16301f; --fb: #5a9bf5; --in: #4b9be0;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { position: relative; background: var(--bg); color: var(--ink); font: 15.5px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; overflow-x: clip; }
/* a wash of colour behind the top of every page */
body::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 560px; pointer-events: none;
  background: radial-gradient(52% 70% at 12% -12%, rgba(75, 63, 201, .1), transparent 62%), radial-gradient(46% 64% at 92% -18%, rgba(134, 80, 201, .07), transparent 60%); }
a { color: var(--accent); text-underline-offset: 2px; }
::selection { background: rgba(103, 71, 207, .24); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header: glass over the page */
.top { position: sticky; top: 0; z-index: 30; background: var(--panel); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top { background: color-mix(in srgb, var(--panel) 76%, transparent); -webkit-backdrop-filter: saturate(1.7) blur(16px); backdrop-filter: saturate(1.7) blur(16px); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand .logo { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: var(--glow); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }
.brand b { display: block; font: 800 18px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand b .tld { font-weight: 500; color: var(--muted); }
.brand small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.top nav a:hover { background: var(--accent-soft); color: var(--accent); }
.top nav a.btn { color: #fff; }
/* icon + label nav items (Rechercher, Favoris with its heart; Alertes as an icon only on phones) */
.top nav .nav-i { display: inline-flex; align-items: center; gap: 6px; }
.top nav .nav-i .ni { display: inline-flex; color: var(--muted); }
.top nav .nav-i .ni svg { width: 18px; height: 18px; }
.top nav .nav-i:hover .ni { color: var(--accent); }
.top nav .nav-fav .ni, .top nav .nav-fav:hover .ni { color: var(--hot); }
.top nav .nav-alert { display: none; }
.btn { position: relative; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 650; font-size: 14.5px; text-decoration: none; cursor: pointer; min-height: 44px; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { overflow: hidden; background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
/* a sheen that crosses the main buttons on hover */
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%); transform: translateX(-130%); transition: transform .7s; pointer-events: none; }
.btn.primary:hover::after { transform: translateX(130%); }
.btn.primary:hover { border-color: transparent; box-shadow: 0 10px 24px rgba(75, 63, 201, .3); }
.btn.small { min-height: 36px; padding: 6px 13px; font-size: 13.5px; border-radius: 11px; }

/* search box (home + header of lists) */
.search { display: flex; gap: 8px; margin: 14px 0 6px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.search input:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
.search .btn { min-height: 50px; padding-inline: 20px; }
/* the home search, the one of the sister sites: words, métier, département, button in one row wide; on phones the
   words, then the two filters side by side, then the button */
.search.has-filters { flex-wrap: wrap; }
.search select { flex: 0 1 210px; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.search select:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
@media (max-width: 719px) {
  .search.has-filters input { flex: 1 1 100%; }
  .search.has-filters select { flex: 1 1 calc(50% - 4px); }
  .search.has-filters .btn { flex: 1 1 100%; }
}
/* (the words field keeps the height and corners of the selects beside it; the general form rule would make it 46 px) */
form.search input[type="search"] { -webkit-appearance: none; appearance: none; min-height: 50px; padding: 11px 16px; border-radius: 14px; }

/* home hero: a short night band from edge to edge (headline, two lines of text, the search, the shortcuts), the
   figures riding its lower edge. 11 Nov 2026, "the header is too big": it filled the window (685 px of 846); it is
   now about half of that, with one quiet light instead of three */
/* (the band is a block of its own between the header and the centred column, lib/site.mjs page({ hero }): it spans
   the window by itself and clips its own light, so nothing can make the page scroll sideways) */
/* (12 Nov 2026, "it feels too metallic": the near-black band with its lights, the see-through chips, the silver
   button and the figures in a gradient read as chrome. Now matte: one flat colour, solid chips, a dark button,
   figures in one solid colour) */
/* (12 Nov 2026, later: flat and plain was "too dry". Still matte, now with something to look at: two flat cut-out
   circles in tints of the band, one warm colour (the search button), and an icon and a soft colour for each of the
   four figures. A small drawing of public buildings and a wavy line under the headline's key words were tried and
   removed the same day: "it should look good, just not in an almost childish way". No drawings, no doodles) */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 22px 0 58px; color: #fff; border-radius: 0 0 24px 24px;
  background:
    radial-gradient(circle at 100% 0, var(--band-2) 0 149px, transparent 150px),
    radial-gradient(circle at 0 100%, var(--band-3) 0 129px, transparent 130px),
    var(--band); }
/* the figures ride the band's lower edge */
.hero + main { position: relative; z-index: 1; margin-top: -40px; }
.hero + main > .stats:first-child { margin-top: 0; }
.hero h1 { font: 800 clamp(26px, 4.4vw, 40px)/1.1 var(--display); letter-spacing: -.028em; margin: 0 0 8px; text-wrap: balance; }
.hero h1 .hl { color: #dcd6ff; }
.hero .lead { color: rgba(255, 255, 255, .86); font-size: 15.5px; max-width: 760px; margin: 0; }
.hero .lead b { color: #fff; }
.hero .search { margin: 16px 0 10px; }
.hero .search input, .hero .search select { border-color: transparent; background: #fff; color: #15122e; }
.hero .search input::placeholder { color: #8a84a8; }
.hero .search input:focus, .hero .search select:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.hero .search .btn { background: var(--warm); color: #2b1c05; box-shadow: none; }
.hero .search .btn:hover { background: #fad59f; box-shadow: none; }
.hero .chips { margin: 0; }
.hero .chips > li > a { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; padding: 5px 12px; font-size: 13px; }
.hero .chips > li > a:hover { background: #fff; border-color: #fff; color: #2c2570; }
/* phones: the band stays short: the text loses its second half (the sources are named at the foot of the page) and
   the shortcuts are one row that scrolls sideways inside the band */
@media (max-width: 719px) {
  .hero .lead-x { display: none; }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .hero .chips::-webkit-scrollbar { display: none; }
  .hero .chips > li { flex: none; }
}
/* wider screens: bigger cut-out circles */
@media (min-width: 720px) {
  .hero { background:
    radial-gradient(circle at 100% 0, var(--band-2) 0 239px, transparent 240px),
    radial-gradient(circle at 0 100%, var(--band-3) 0 189px, transparent 190px),
    var(--band); }
}

.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
h1 { font: 800 clamp(26px, 5.2vw, 40px)/1.08 var(--display); letter-spacing: -.028em; margin: 6px 0 12px; text-wrap: balance; }
/* the offer page's h1 names the employer on a second, smaller line */
h1 .h1-org { display: block; margin-top: 8px; font: 600 .46em/1.3 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink-2); letter-spacing: 0; }
h2 { font: 750 21px/1.2 var(--display); letter-spacing: -.018em; margin: 34px 0 12px; }
/* section headings of a page carry a small bar of the brand's gradient */
main > h2 { display: flex; align-items: center; gap: 11px; font-size: 23px; }
main > h2::before { content: ''; flex: none; width: 9px; height: 22px; border-radius: 6px; background: var(--grad); }
h3 { line-height: 1.3; }
.lead { font-size: 16.5px; color: var(--ink-2); max-width: 800px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; padding: 0; list-style: none; }
.chips > li > a, .chips > span { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.chips a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chips .on { background: var(--grad); border-color: transparent; color: #fff; }
.empty { padding: 26px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.more { margin: 14px 0 0; font-weight: 650; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }
.cta { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* link tiles: métiers, places, employers */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tiles a { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 34px 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; text-decoration: none; color: var(--ink); height: 100%; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tiles a::after { content: '→'; position: absolute; right: 13px; top: 50%; font-weight: 700; color: var(--accent); opacity: 0; transform: translate(-7px, -50%); transition: opacity .18s, transform .18s; }
.tiles a:hover { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; transform: translateY(-2px); box-shadow: var(--lift); }
.tiles a:hover::after { opacity: 1; transform: translate(0, -50%); }
.tiles b { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.tiles span { font-size: 12.5px; color: var(--muted); }

/* job list: a card per offer, its square coloured by the kind of employer */
.jobs { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.job { --e: var(--accent); --e-soft: var(--accent-soft); --i: var(--i-etablissement-local);
  position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px 15px 68px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; height: 100%; min-height: 76px; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
.job::before { content: ''; position: absolute; left: 14px; top: 15px; width: 42px; height: 42px; border-radius: 14px; background: var(--e-soft); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.job::after { content: ''; position: absolute; left: 14px; top: 15px; width: 42px; height: 42px; background: var(--e); -webkit-mask: var(--i) center / 22px no-repeat; mask: var(--i) center / 22px no-repeat; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.job:hover { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; transform: translateY(-3px); box-shadow: var(--lift); }
.job:hover::before, .job:hover::after { transform: rotate(-6deg) scale(1.08); }
.job.e-commune { --e: #4b3fc9; --e-soft: #ebe9fb; --i: var(--i-commune); }
.job.e-intercommunalite { --e: #8b4bb5; --e-soft: #f3e9f8; --i: var(--i-intercommunalite); }
.job.e-departement { --e: #3566b8; --e-soft: #e6edf8; --i: var(--i-departement); }
.job.e-region { --e: #2a8079; --e-soft: #e2f1ef; --i: var(--i-region); }
.job.e-etablissement-local { --e: #a56a22; --e-soft: #f8eeda; --i: var(--i-etablissement-local); }
.job.e-etat { --e: #b04766; --e-soft: #f8e6ec; --i: var(--i-etat); }
.job.e-universite { --e: #2f7c96; --e-soft: #e2f0f5; --i: var(--i-universite); }
.job.e-hopital { --e: #2f8160; --e-soft: #e2f2ea; --i: var(--i-hopital); }
.job h3 { font: 700 17px/1.25 var(--display); letter-spacing: -.012em; margin: 0; }
.job .detail { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: -2px; }
.job .org { font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.job .org span { color: var(--muted); font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.meta .sal { font-weight: 750; color: var(--ink); }
.meta .est { font-weight: 600; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 3px 10px; background: var(--slate-soft); color: var(--slate); }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.t-concurso { background: var(--accent-soft); color: var(--accent); }
.tag.t-mobilidade { background: var(--violet-soft); color: var(--violet); }
.tag.t-dirigente, .tag.t-cit { background: var(--warn-soft); color: var(--warn); }
.tag.open { background: var(--good-soft); color: var(--good); }
.tag.closed { background: var(--slate-soft); color: var(--slate); }
.ends { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); align-self: flex-start; margin-top: 2px; }
.ends svg { flex: none; }
.ends.week { background: var(--warn-soft); color: var(--warn); }
.ends.soon { background: var(--grad-warm); color: #fff; box-shadow: 0 3px 10px rgba(194, 74, 112, .2); }
.ends.over { background: var(--slate-soft); color: var(--slate); }
/* the deadline pill's clock (endsPill), drawn here instead of an inline SVG in every card */
.ends.t::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.jobs[aria-busy="true"] { opacity: .55; transition: opacity .2s; }

/* offer page */
.offer { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 10px; font-size: 18.5px; }
.panel.resumo { margin: 14px 0; max-width: 760px; }
.panel.resumo .fine { margin: 8px 0 0; }
.summary { font-size: 16.5px; color: var(--ink-2); margin: 0; }
.statusline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.statusline .tag { font-size: 13px; padding: 5px 12px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.facts th { width: 36%; color: var(--muted); font-weight: 550; font-size: 13.5px; padding-right: 12px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
/* "Comment postuler": the card the page leads to, under a band of the gradient */
.apply { position: relative; overflow: hidden; display: grid; gap: 9px; padding-top: 24px; }
.apply::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.apply .btn { width: 100%; min-height: 48px; }
/* the employer's long texts, formatted by richText (lib/site.mjs): paragraphs and lists; long ones clipped until "Lire la suite" */
.longtext { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.longtext p { margin: 0 0 10px; }
.longtext ul, .longtext ol { display: grid; gap: 6px; margin: 2px 0 12px; padding-left: 22px; }
.longtext li { padding-left: 2px; }
.longtext li::marker { color: var(--accent); font-weight: 700; }
.longtext > :last-child { margin-bottom: 0; }
.longtext.clamp { max-height: 19em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.longtext.clamp.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.lt-more { margin: 10px 0 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font: inherit; font-size: 13.5px; font-weight: 650; color: var(--accent); cursor: pointer; }
.lt-more:hover { border-color: var(--accent); }
.closedbox { background: var(--slate-soft); color: var(--slate); border-radius: 14px; padding: 13px 16px; font-weight: 500; }
/* share (lib/share.mjs): "Partager ▾" (phone share sheet, or a menu) + a one-tap WhatsApp button */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.share .btn { gap: 7px; min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.share .btn svg { width: 16px; height: 16px; flex: none; }
.share-more { position: relative; }
.share-more > summary { list-style: none; }
.share-more > summary::-webkit-details-marker { display: none; }
.share-main { color: var(--accent); border-color: var(--accent); background: var(--panel); }
.share-main .chev { width: 14px; height: 14px; margin-left: -2px; opacity: .8; transition: transform .15s; }
.share-more[open] > .share-main { background: var(--accent-soft); }
.share-more[open] > .share-main .chev { transform: rotate(180deg); }
.share-sheet .share-main .chev { display: none; } /* phones: the button opens the system share sheet, no menu */
.share-wa { background: var(--wa-soft); border-color: transparent; color: var(--ink); }
.share-wa svg, .share-menu .i-wa { color: var(--wa); }
.share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 210px; max-width: calc(100vw - 32px);
  display: grid; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--pop-shadow); }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--panel-2); outline: none; }
.share-menu svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.share-menu .i-fb { color: var(--fb); }
.share-menu .i-in { color: var(--in); }
.share-native { display: none !important; }
.can-share .share-native { display: flex !important; border-top: 1px solid var(--line) !important; border-radius: 0 0 9px 9px !important; margin-top: 2px; }
.sharebar { margin: 18px 0 6px; }
/* offer page: "♡ Enregistrer" (favourites) + the share pair, in one row */
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.offer-actions .share { margin: 0; }
.fav-btn { gap: 7px; min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.fav-btn svg { width: 16px; height: 16px; flex: none; color: var(--hot); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.fav-btn:hover svg { transform: scale(1.18); }
.fav-btn.on { background: var(--bad-soft); border-color: transparent; }
.fav-btn.on svg { fill: currentColor; transform: scale(1.12); }
.fav-see { font-size: 13.5px; font-weight: 600; }
/* /favoris: the saved offers, each card with a "Retirer" under it */
.fav-item { display: grid; gap: 6px; }
.fav-item form { justify-self: end; }
.favs-gone { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.favs-gone li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.acct-links { display: flex; flex-wrap: wrap; gap: 8px; }
.devlogin input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--ink); min-height: 46px; }
.sharebar .fine { margin: 0 0 8px; }
/* closed-offer archive of an employer: one compact row per offer */
ul.archive { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 2px; }
ul.archive li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.archive li a { font-weight: 600; min-width: 0; }
/* "create an alert": a banner in the gradient where it is the page's call to action, a quiet card where it is a form */
.alertbox { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 24px; background: var(--grad); color: #fff; box-shadow: var(--glow); margin: 26px 0 0; }
.alertbox::after { content: ''; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 66%); pointer-events: none; }
.alertbox p { position: relative; margin: 0 0 14px; color: #fff; font: 650 18px/1.35 var(--display); letter-spacing: -.01em; max-width: 720px; }
.alertbox p svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 4px; }
.alertbox .btn.primary { position: relative; background: #fff; color: #2a1a8a; box-shadow: 0 8px 22px rgba(20, 8, 70, .28); }
/* the alert sign-up on département, commune, employer and offer pages (lib/site.mjs inlineAlertForm) */
form.alertbox { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; color: var(--ink); box-shadow: var(--shadow); }
form.alertbox::after { display: none; }
form.alertbox p { color: var(--ink); font: inherit; }
.inline-alert { display: grid; gap: 10px; max-width: 660px; margin: 22px 0; scroll-margin-top: 90px; } /* clears the sticky header on "#alerta" */
.inline-alert p { margin: 0; }
.inline-alert p:first-child { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15.5px; }
.inline-alert p:first-child svg { flex: none; color: var(--accent); }
.inline-alert .row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-alert .row input { flex: 1 1 160px; min-width: 0; width: auto; background: var(--panel); }
.inline-alert .row .btn { flex: none; min-height: 46px; }
ul.checks { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 2px; }
ul.checks label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 8px; border-radius: 11px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
ul.checks label:hover { background: var(--panel-2); }
ul.checks input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
ul.checks label b { color: var(--ink); font-weight: 600; }
ul.checks input:checked + span, ul.checks input:checked + span b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
ul.study { margin: 6px 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.alertbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; background: linear-gradient(100deg, var(--accent-soft), var(--bad-soft)); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 10px 16px; margin: 4px 0 16px; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.alertbar > span { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 220px; }
.alertbar svg { flex: none; color: var(--accent); }
.disclaimer { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 34px; padding-top: 14px; max-width: 820px; }

/* forms (alerts, search filters) */
form.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 13px; max-width: 640px; box-shadow: var(--shadow); }
form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; color: var(--ink-2); font-size: 14px; }
form label.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
form input[type=email], form input[type=text], form input[type=search], form select { font: inherit; font-size: 16px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--ink); min-height: 46px; width: 100%; transition: border-color .15s, box-shadow .15s; }
form textarea { font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--ink); width: 100%; min-height: 150px; resize: vertical; transition: border-color .15s, box-shadow .15s; }
form input:focus, form select:focus, form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
form small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.hp { position: absolute; left: -9999px; }
.signin { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 10px; max-width: 640px; box-shadow: var(--shadow); }
.signin label.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.signin label.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.or { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 18px 0; color: var(--muted); font-size: 13.5px; }
/* the signed-out alert form: 1 what to receive, 2 how (Google at once, or email with confirmation) */
.alertform h2.step { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 18px; }
.alertform h2.step span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 14px Inter, system-ui, sans-serif; }
.alertform h2.step ~ h2.step { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.alertform .or { margin: 4px 0; }
.signin-in { display: grid; gap: 10px; }
.signin-lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 10px 0 18px; box-shadow: var(--shadow); }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters label { font-size: 12.5px; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0; }
/* paged offer lists (lib/site.mjs pagedList): the pager hides the other pages' cards; at either end the button
   keeps its place but disappears */
.pager[hidden], .jobs > li[hidden] { display: none; }
.pager { align-items: center; }
.pager span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pager .btn[disabled] { visibility: hidden; }
/* list tools above a long offer list: two selects a row on phones, all in a row wider */
.list-tools { grid-template-columns: 1fr 1fr; align-items: end; padding: 14px 16px; }
.list-tools[hidden] { display: none; }
.list-tools label:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .list-tools { grid-template-columns: repeat(3, 1fr); } .list-tools label:last-of-type:nth-of-type(odd) { grid-column: auto; } }
.list-tools select { min-height: 42px; padding: 8px 10px; }
.list-tools .count, .list-tools .empty { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.list-tools .count { font-weight: 650; color: var(--ink-2); }
.list-tools .empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); }
.list-tools .empty[hidden] { display: none; }
.list-tools .check { display: flex; align-items: center; gap: 6px; }
.notice { padding: 13px 16px; border-radius: 14px; background: var(--good-soft); color: var(--good); font-weight: 550; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* prose pages (legal, about) */
.prose { max-width: 800px; }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 16.5px; margin: 18px 0 4px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 4px 0; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 2px; }
.src { font-size: 12px; color: var(--muted); }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li { position: relative; padding-left: 34px; counter-increment: step; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; }
/* figures in a row: the home page's four, the employers hub's */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
/* (matte: a plain card and a figure in one solid colour, no gradient text and no tinted disc in the corner) */
.stats div { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px 14px; box-shadow: var(--shadow); }
.stats b { display: block; font: 800 clamp(25px, 5.4vw, 38px)/1.08 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--accent); }
/* the home page's four: each figure has its own soft colour and an icon in the corner */
.hero + main > .stats div { --s: var(--accent); --s-soft: var(--accent-soft); --s-i: var(--i-s-offers); }
.hero + main > .stats div:nth-child(2) { --s: #2a8562; --s-soft: #e0f3ea; --s-i: var(--i-s-new); }
.hero + main > .stats div:nth-child(3) { --s: #a8641a; --s-soft: #fbefd9; --s-i: var(--i-s-soon); }
.hero + main > .stats div:nth-child(4) { --s: #3566b8; --s-soft: #e6edf8; --s-i: var(--i-etablissement-local); }
.hero + main > .stats div::before { content: ''; position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 12px; background: var(--s-soft); }
.hero + main > .stats div::after { content: ''; position: absolute; right: 20px; top: 20px; width: 20px; height: 20px; background: var(--s); -webkit-mask: var(--s-i) center / contain no-repeat; mask: var(--s-i) center / contain no-repeat; }
.hero + main > .stats b { color: var(--s); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero + main > .stats div { --s-soft: color-mix(in srgb, var(--s) 20%, transparent); }
  :root:not([data-theme="light"]) .hero + main > .stats div:nth-child(2) { --s: #5fd3a2; }
  :root:not([data-theme="light"]) .hero + main > .stats div:nth-child(3) { --s: #f0b45a; }
  :root:not([data-theme="light"]) .hero + main > .stats div:nth-child(4) { --s: #7fa8ec; }
}
.stats span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
table.data th, table.data td { padding: 8px 11px; border-bottom: 1px solid var(--line); text-align: left; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; margin: 8px 0 12px; }
.scroll table.data td, .scroll table.data th { white-space: nowrap; }

/* footer: the night again */
.foot { position: relative; margin-top: 64px; background: var(--night); color: #c9c2ea; padding: 44px 0 34px; font-size: 13.5px;
  background-image: radial-gradient(40% 90% at 0% 0%, rgba(75, 63, 201, .28), transparent 62%), radial-gradient(34% 80% at 100% 100%, rgba(134, 80, 201, .14), transparent 60%); }
.foot::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.foot .cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.foot h4 { margin: 0 0 9px; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .08em; color: #a79df0; }
.foot .links { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 0; }
.foot .links a { color: #d9d3f6; text-decoration: none; padding: 3px 0; transition: color .15s; }
.foot .links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 2px; }
.foot .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9f97c9; font-size: 12.5px; max-width: 860px; }

.ad-slot:empty { display: none; }

@media (min-width: 720px) {
  body { font-size: 15px; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 18px; }
  .offer aside { position: sticky; top: 80px; display: grid; gap: 16px; }
  .filters { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .filters .row { display: contents; }
  .filters .q { grid-column: span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .stats div { padding: 18px 20px 16px; }
  .foot .cols { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
  .hero { padding: 30px 0 72px; }
  .hero + main { margin-top: -48px; }
  .hero .lead { font-size: 16px; }
}
@media (min-width: 1000px) { .jobs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .top nav a.hide-m, .top nav .hide-m { display: none; }
  /* phones: no subtitle, and the nav becomes icons over small labels (Rechercher, Alertes, Favoris with its heart)
     instead of the "Alertes" button */
  .top .wrap { min-height: 56px; }
  .brand small { display: none; }
  .brand { gap: 8px; }
  .brand .logo { width: 32px; height: 32px; border-radius: 10px; }
  .brand b { font-size: 16px; }
  .top nav { gap: 2px; }
  .top nav .nav-i { flex-direction: column; gap: 2px; padding: 4px 5px; font-size: 10.5px; line-height: 1.1; font-weight: 600; border-radius: 10px; }
  .top nav .nav-i .ni svg { width: 21px; height: 21px; }
  .top nav .nav-alert { display: inline-flex; }
  .top nav .nav-alert, .top nav .nav-alert .ni { color: var(--accent); }
  .top nav .nav-cta { display: none; }
  .job { padding-left: 62px; }
  .job::before, .job::after { width: 38px; height: 38px; border-radius: 12px; }
  .job::after { -webkit-mask-size: 20px; mask-size: 20px; }
  .alertbox { padding: 18px; }
  .alertbox p { font-size: 16.5px; }
}
/* very narrow phones: icons only (each link keeps its aria-label) */
@media (max-width: 359px) { .top nav .nav-i > span:not(.ni) { display: none; } .top nav .nav-i { padding: 6px 7px; } }

/* motion, for visitors who haven't asked for less: cards and the band's content rise in, last-day deadlines pulse */
@media (prefers-reduced-motion: no-preference) {
  .jobs > li { animation: rise .55s cubic-bezier(.2, .75, .2, 1) both; }
  .jobs > li:nth-child(2) { animation-delay: .04s; } .jobs > li:nth-child(3) { animation-delay: .08s; } .jobs > li:nth-child(4) { animation-delay: .12s; }
  .jobs > li:nth-child(5) { animation-delay: .16s; } .jobs > li:nth-child(6) { animation-delay: .2s; } .jobs > li:nth-child(n+7) { animation-delay: .24s; }
  .hero h1, .hero .lead, .hero .search, .hero .chips { animation: rise .7s cubic-bezier(.2, .75, .2, 1) both; }
  .hero h1 { animation-delay: .05s; } .hero .lead { animation-delay: .12s; } .hero .search { animation-delay: .2s; } .hero .chips { animation-delay: .28s; }
  .hero + main > .stats div { animation: rise .7s cubic-bezier(.2, .75, .2, 1) both; animation-delay: .34s; }
  .hero + main > .stats div:nth-child(2) { animation-delay: .4s; } .hero + main > .stats div:nth-child(3) { animation-delay: .46s; } .hero + main > .stats div:nth-child(4) { animation-delay: .52s; }
  .ends.soon { animation: glowpulse 2.4s ease-in-out infinite; }
}
/* (starts legible, never invisible: a browser that holds animations back still shows the content) */
@keyframes rise { from { opacity: .4; transform: translateY(14px); } }
@keyframes glowpulse { 50% { box-shadow: 0 4px 14px rgba(194, 74, 112, .38); } }

/* widget for mairies' own sites: the configurator at /widget and the link on place pages (lib/site.mjs) */
.wg-cta { margin: 26px 0 6px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(100deg, var(--accent-soft), var(--bad-soft)); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.wg-cta a { font-weight: 650; }
.wg-hero { max-width: 800px; }
.wg-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; }
.wg-perks { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wg-perks li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.wg-perks .ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 9px; box-shadow: var(--glow); }
.wg-perks b { display: block; font: 700 16.5px var(--display); }
.wg-perks p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.wg-n { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 9px; border-radius: 50%; background: var(--grad); color: #fff; font: 750 14px Inter, system-ui, sans-serif; vertical-align: 2px; }
.wg-builder { display: grid; gap: 20px; margin: 22px 0 8px; }
.wg-controls { display: grid; gap: 12px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2px 18px 18px; box-shadow: var(--shadow); }
.wg-controls h2 { margin: 16px 0 0; font-size: 17.5px; }
.wg-controls label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.wg-controls input:not([type=radio]):not([type=color]):not([type=checkbox]), .wg-controls select { font: inherit; font-size: 16px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.wg-controls input:focus, .wg-controls select:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
.wg-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.wg-row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.wg-seg { border: 0; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wg-seg legend { font-size: 14px; font-weight: 600; margin-bottom: 5px; padding: 0; }
.wg-seg label { display: block; }
.wg-seg input { position: absolute; opacity: 0; }
.wg-seg span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--panel-2); }
.wg-seg input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.wg-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wg-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.wg-colors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wg-colors input[type=color] { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; }
.wg-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); background: var(--c); cursor: pointer; padding: 0; }
.wg-sw:hover { box-shadow: 0 0 0 2px var(--c); }
.wg-controls.is-selo .wg-list-only { display: none; }
.wg-preview { min-width: 0; }
.wg-browser { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); box-shadow: var(--pop-shadow); }
.wg-bar { display: flex; align-items: center; gap: 6px; padding: 10px 13px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.wg-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wg-bar i:nth-child(1) { background: #ff6b6b; } .wg-bar i:nth-child(2) { background: #ffc94d; } .wg-bar i:nth-child(3) { background: #3dd68c; }
.wg-bar span { flex: 1; margin-left: 8px; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-page { padding: 18px; background: #fff; color: #1b1d20; transition: background .2s; }
.wg-page.dark { background: #121315; }
.wg-fake { margin-bottom: 16px; }
.wg-fake b, .wg-fake i { display: block; height: 12px; border-radius: 6px; background: #ecebe6; margin-bottom: 8px; }
.wg-fake b { width: 42%; height: 18px; background: #dfddd6; }
.wg-fake i:last-child { width: 72%; }
.wg-page.dark .wg-fake b { background: #2c2f33; }
.wg-page.dark .wg-fake i { background: #222528; }
.wg-code { background: #15102e; border-radius: var(--radius); padding: 16px; color: #ddd6ff; }
.wg-code pre { margin: 0 0 12px; white-space: pre-wrap; word-break: break-all; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wg-code-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg-ok { font-size: 14px; color: #7ff0c0; font-weight: 600; }
.wg-fold { margin: 8px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.wg-fold summary { cursor: pointer; font-weight: 650; }
.wg-fold p { margin: 8px 0 2px; }
.wg-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 30px 0 8px; padding: 6px 18px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel-2); }
.wg-help h2 { margin-top: 12px; }
.wg-help p { margin: 0; max-width: 620px; color: var(--ink-2); }
@media (min-width: 560px) { .wg-row { grid-template-columns: auto 1fr 1fr; align-items: end; } }
@media (min-width: 980px) {
  .wg-builder { grid-template-columns: 380px 1fr; align-items: start; }
  .wg-preview { position: sticky; top: 82px; }
  .wg-row { grid-template-columns: 1fr 1fr; }
  .wg-row label:first-child { grid-column: 1 / -1; }
}

/* /admin/email: write to the councils from the site's address, read and answer their replies (lib/provider-mail.mjs) */
.mail-form { max-width: 820px; display: grid; gap: 12px; }
.mail-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.mail-form input, .mail-form textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.mail-form textarea { font: 14.5px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
.mail-note { max-width: 820px; border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); margin: 12px 0; }
.mail-note.ok { border-color: var(--good); }
.mail-note.ok b { color: var(--good); }
.mail-note.no { border-color: var(--bad); }
.mail-note.no b, .mail-note.no li { color: var(--bad); }
.mail-note p { margin: 4px 0; color: var(--ink-2); font-size: 14.5px; }
.mail-setup { max-width: 820px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 14px 0; }
.mail-setup summary { cursor: pointer; font-weight: 650; }
.warn-txt { color: var(--bad); }
.ok-txt { color: var(--good); }
.mail-events { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.mail-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; max-width: 820px; }
.mail-list > li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.mail-list > li.mail-in { border-left: 4px solid var(--accent); }
.mail-list > li.mail-out { border-left: 4px solid var(--line); background: var(--panel-2); }
.mail-list > li.spam { opacity: .6; }
.mail-meta { font-size: 13px; color: var(--muted); }
.mail-subj { font-weight: 650; margin: 2px 0 4px; }
.mail-snip { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; }
.mail-body { white-space: pre-wrap; font: 13.5px/1.5 system-ui, sans-serif; margin: 6px 0 0; color: var(--ink-2); }
.mail-scroll { overflow-x: auto; }
.mail-log td { font-size: 13.5px; }

/* closed offers of an employer, folded */
.closed-list summary { cursor: pointer; list-style: none; }
.closed-list summary h2 { display: inline; font-size: 17px; }
.closed-list summary::before { content: '▸ '; color: var(--muted); }
.closed-list[open] summary::before { content: '▾ '; }
.hist { margin: 0; padding-left: 18px; }
.hist li { margin: 4px 0; }

/* /employeurs (lib/site.mjs entitiesHub): one card per region with its biggest employers; the name search's hits */
.regs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.regs > li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.regs > li:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.regs h3 { margin: 0; font: 750 17px var(--display); letter-spacing: -.01em; }
.regs > li > p { margin: 2px 0 9px; font-size: 12.5px; color: var(--muted); }
.regs ul { margin: 0; padding: 0; list-style: none; }
.regs ul li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.regs ul a { text-decoration: none; font-weight: 550; }
.regs ul a:hover { text-decoration: underline; }
.regs ul span { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.ent-count { margin: 4px 0 8px; }
.ent-hits { margin-bottom: 8px; }
.stats.ent-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 860px) { .stats.ent-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* a type's directory (lib/site.mjs entitiesIndex): plain links in columns, mairies in one folded row per département */
.dir { display: grid; gap: 7px; margin: 4px 0 12px; }
.dir details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.dir details[open] { box-shadow: var(--shadow); }
.dir summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary b::before { content: '▸ '; color: var(--accent); }
.dir details[open] summary b::before { content: '▾ '; }
.dir summary span { font-size: 12.5px; color: var(--muted); text-align: right; }
.dir details .dir-list { padding: 0 16px 14px; }
.dir-list { columns: 3 220px; column-gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.dir-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.dir-list a { text-decoration: none; }
.dir-list a:hover { text-decoration: underline; }
.dir-list span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
/* (phones: the guide's "top" lists show 6, not 12, so the directory isn't three screens down) */
@media (max-width: 639px) { .ent-top > li:nth-child(n+7) { display: none; } }

/* dark mode: the employer squares glow instead of sitting on a pastel */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .job[class*="e-"] { --e-soft: color-mix(in srgb, var(--e) 26%, transparent); }
  :root:not([data-theme="light"]) .job::after { filter: brightness(1.7) saturate(.85); }
  :root:not([data-theme="light"]) .alertbox .btn.primary { color: #2a1a8a; }
}

/* footer layout: the 101 départements run across the full width under the two short columns */
.foot .cols > div:nth-child(2) { order: 3; }
.foot .cols > div:nth-child(2) .links { gap: 2px 13px; font-size: 13px; }
@media (min-width: 720px) {
  .foot .cols { grid-template-columns: 1.5fr 1fr; }
  .foot .cols > div:nth-child(2) { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
}
.tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 479px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: the two tags of a card stay on one line */
@media (max-width: 719px) {
  .job { padding-left: 58px; }
  .job::before, .job::after { left: 12px; width: 36px; height: 36px; }
  .job .tag { font-size: 10.8px; padding: 2px 8px; gap: 4px; }
  .job .tags { gap: 4px; }
}

/* métier tiles (lib/site.mjs metierTiles): a card per métier with its family's icon and colour, the count, and a bar
   of its size against the biggest one in the set */
.mtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mt { --f: #5c5878; --f-soft: #eeecf6; --i: var(--m-file);
  position: relative; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: 1fr auto auto; column-gap: 13px; height: 100%; padding: 15px 16px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
.mt-i { position: relative; grid-row: 1 / span 2; align-self: center; width: 46px; height: 46px; border-radius: 15px; background: var(--f-soft); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.mt-i::after { content: ''; position: absolute; inset: 0; background: var(--f); -webkit-mask: var(--i) center / 24px no-repeat; mask: var(--i) center / 24px no-repeat; }
.mt b { grid-column: 2; align-self: end; font: 700 15.5px/1.22 var(--display); letter-spacing: -.012em; }
.mt-n { grid-column: 2; align-self: start; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--f); }
.mt-bar { position: relative; grid-column: 1 / -1; margin-top: 13px; height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.mt-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, var(--f), color-mix(in srgb, var(--f) 45%, #fff)); }
.mt:hover { transform: translateY(-3px); border-color: var(--f); box-shadow: var(--lift); }
.mt:hover .mt-i { transform: rotate(-6deg) scale(1.08); }
.mt.f-admin { --f: #4b3fc9; --f-soft: #ebe9fb; --i: var(--m-file); }
.mt.f-direction { --f: #7a4bbd; --f-soft: #f0e9f9; --i: var(--m-briefcase); }
.mt.f-technique { --f: #a56a22; --f-soft: #f8eeda; --i: var(--m-wrench); }
.mt.f-nature { --f: #2f8160; --f-soft: #e2f2ea; --i: var(--m-leaf); }
.mt.f-services { --f: #b5633a; --f-soft: #f8ebe2; --i: var(--m-utensils); }
.mt.f-enfance { --f: #b04766; --f-soft: #f8e6ec; --i: var(--m-smile); }
.mt.f-education { --f: #3566b8; --f-soft: #e6edf8; --i: var(--m-book); }
.mt.f-sante { --f: #2a8079; --f-soft: #e2f1ef; --i: var(--m-pulse); }
.mt.f-social { --f: #8b4bb5; --f-soft: #f3e9f8; --i: var(--m-users); }
.mt.f-securite { --f: #a94a44; --f-soft: #f7e7e5; --i: var(--m-shield); }
.mt.f-culture { --f: #2f7c96; --f-soft: #e2f0f5; --i: var(--m-music); }
.mt.f-numerique { --f: #4a5fb8; --f-soft: #e8ebf7; --i: var(--m-monitor); }
:root {
  --m-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E");
  --m-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a1 1 0 0 1 1-1zM9 8V6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E");
  --m-wrench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.3 5.3L3 18v3h3l6.4-6.4a4 4 0 0 0 5.3-5.3l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E");
  --m-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 10 10 5 20 4c-1 10-6 15-15 15zM4 20l8-8'/%3E%3C/svg%3E");
  --m-utensils: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v6a3 3 0 0 0 6 0V3M9 3v18M18 21V3c-2.2 1.8-3.5 4.5-3.5 8H18'/%3E%3C/svg%3E");
  --m-smile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.5c1 1.3 2.2 1.9 3.5 1.9s2.5-.6 3.5-1.9M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E");
  --m-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h13v14H6a2 2 0 0 0-2 2zm0 0a2 2 0 0 0 2 2h13M9 7h6'/%3E%3C/svg%3E");
  --m-pulse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 5.6a5 5 0 0 0-7.1 0L12 7.3l-1.7-1.7a5 5 0 0 0-7.1 7.1L12 21l8.8-8.3a5 5 0 0 0 0-7.1z'/%3E%3Cpath d='M5 12h3.5l1.5-2.5 3 5 1.5-2.5H19'/%3E%3C/svg%3E");
  --m-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.7a3.5 3.5 0 0 1 0 6.6M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E");
  --m-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.2 8-8 9-4.8-1-8-4.5-8-9V6zM9 12l2 2 4-4'/%3E%3C/svg%3E");
  --m-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E");
  --m-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zM8 20h8M12 16v4'/%3E%3C/svg%3E");
}

/* départements grouped by region (lib/site.mjs deptBlocks): a card per region, a row per département with its number */
.rgs { columns: 3 280px; column-gap: 14px; }
.rg { break-inside: avoid; margin: 0 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.rg h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 13px 14px 12px 16px; font: 750 16.5px/1.2 var(--display); letter-spacing: -.012em; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, var(--accent-soft), transparent 78%); }
.rg h3 span { flex: none; font: 650 12px/1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; color: #fff; background: var(--grad); border-radius: 999px; padding: 5px 10px; }
.rg ul { list-style: none; margin: 0; padding: 6px; }
.rg a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 11px; color: var(--ink); text-decoration: none; font-size: 14px; transition: background .15s; }
.rg a:hover { background: var(--accent-soft); }
.rg a i { font: 700 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-style: normal; text-align: center; padding: 6px 0; border-radius: 8px; background: var(--panel-2); color: var(--ink-2); transition: background .15s, color .15s; }
.rg a:hover i { background: var(--accent); color: #fff; }
.rg a b { font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg a span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.rg a.none, .rg a.none span { color: var(--muted); font-weight: 400; }

@media (max-width: 719px) {
  .mtiles { grid-template-columns: 1fr 1fr; gap: 9px; }
  .mt { grid-template-columns: 1fr; padding: 12px 13px; }
  .mt-i { grid-row: auto; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 8px; }
  .mt-i::after { -webkit-mask-size: 20px; mask-size: 20px; }
  .mt b { grid-column: 1; font-size: 14.5px; }
  .mt-n { grid-column: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .mt-bar::after { animation: grow .9s cubic-bezier(.2, .75, .2, 1) both; animation-delay: .15s; }
}
@keyframes grow { from { width: 0; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mt[class*="f-"] { --f-soft: color-mix(in srgb, var(--f) 26%, transparent); }
  :root:not([data-theme="light"]) .mt-i::after { filter: brightness(1.7) saturate(.85); }
  :root:not([data-theme="light"]) .mt-n { filter: brightness(1.6) saturate(.85); }
}
