/* SIB Mauritanie — charte : vert et orange du logo, motif géométrique saharien.
   Propriétés logiques (inline/block) : la mise en page s'inverse automatiquement en arabe.
   Mode sombre automatique selon le réglage de l'appareil. */
:root {
  --bg: #f3f6f5;
  --paper: #ffffff;
  --paper-2: #f8faf9;
  --ink: #0f1f1a;
  --muted: #5d6d66;
  --line: #dde5e1;
  --input: #c5d1cb;
  --emerald: #087c46;
  --emerald-hover: #066a3b;
  --emerald-deep: #054a2a;
  --emerald-tint: #e2f6eb;
  --on-emerald: #ffffff;
  --gold: #ee9223;
  --gold-hover: #f5a43f;
  --gold-tint: #fff1de;
  --gold-text: #8a4a00;
  --red: #c2362b;
  --red-tint: #fdecea;
  --closed: #eceff0;
  --header-bg: rgba(255, 255, 255, .86);
  --hero: #063e25;
  --hero-text: #d3ebdc;
  --footer: #08180f;
  --footer-text: #b6cbbd;
  --shadow-hover: 0 10px 28px -12px rgba(15, 31, 26, .28);
  --shadow-float: 0 18px 40px -16px rgba(15, 31, 26, .35);
  --focus: 0 0 0 4px rgba(8, 124, 70, .22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
  --bg: #0b1311;
  --paper: #121c19;
  --paper-2: #16221e;
  --ink: #e5eeea;
  --muted: #9aaba4;
  --line: #24322d;
  --input: #34443e;
  --emerald: #36c77e;
  --emerald-hover: #4ed690;
  --emerald-deep: #a6ebc4;
  --emerald-tint: #10301f;
  --on-emerald: #03200f;
  --gold: #f5a23c;
  --gold-hover: #f8b75f;
  --gold-tint: #3a2a12;
  --gold-text: #f7c27a;
  --red: #f0857a;
  --red-tint: #3a1a17;
  --closed: #1d2724;
  --header-bg: rgba(18, 28, 25, .86);
  --hero: #052a19;
  --hero-text: #bcd3c9;
  --footer: #070e0c;
  --footer-text: #a5b8b0;
  --shadow-hover: 0 10px 28px -12px rgba(0, 0, 0, .6);
  --shadow-float: 0 18px 40px -16px rgba(0, 0, 0, .7);
  --focus: 0 0 0 4px rgba(54, 199, 126, .28);
  color-scheme: dark;
  }
}
:root {
  --font: "Readex Pro", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --leading: 1.6;
  --r-xs: 6px; --r-s: 10px; --r-m: 16px; --r-l: 24px;
  --wrap: 1200px;
  --header-h: 68px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 3 53 28 28 53 3 28Z' fill='none' stroke='%23EE9223' stroke-opacity='.22' stroke-width='1.4'/%3E%3Cpath d='M28 17 39 28 28 39 17 28Z' fill='%23EE9223' fill-opacity='.12'/%3E%3C/svg%3E");
}
html[lang="ar"] { --leading: 1.8; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: var(--leading); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.35rem); font-weight: 700; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.03rem; }
p { margin: 0 0 .9em; }
a { color: var(--emerald); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--emerald-hover); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
img { max-width: 100%; }
code { font-size: .85em; }
::selection { background: var(--gold-tint); color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.page { padding-block: 2.25rem 4rem; }
.page-narrow { max-width: 500px; }
.page-medium { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.visually-hidden, .vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--gold); color: #0f1f1a; padding: .55rem 1rem; border-radius: var(--r-s); }
.skip-link:focus { top: .75rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-block-end: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; height: 44px; width: auto; }
.brand-footer img { height: 48px; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--r-s); padding: .6rem .8rem; margin-block-end: .9rem; }
.footer-logo img { display: block; height: 52px; width: auto; }
@media (max-width: 520px) { .brand img { height: 36px; } }
.site-nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.site-nav a, .nav-link-btn { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1.4; }
.site-nav a:hover, .nav-link-btn:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--emerald); background: var(--emerald-tint); }
.nav-spacer { flex: 1; }
.nav-form { margin: 0; }
.site-nav .nav-cta { background: var(--emerald); color: var(--on-emerald); padding-inline: 1.05rem; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--emerald-hover); color: var(--on-emerald); }
.site-nav .lang-switch { border: 1px solid var(--line); color: var(--ink); margin-inline-start: .35rem; }
.nav-toggle { display: none; margin-inline-start: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .header-row { flex-wrap: wrap; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .15rem; padding-block-end: 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a, .nav-link-btn { border-radius: var(--r-s); padding: .7rem .8rem; text-align: start; width: 100%; }
  .nav-spacer { display: none; }
  .site-nav .nav-cta, .site-nav .lang-switch { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; background: var(--emerald); color: var(--on-emerald); border: 1px solid transparent; padding: .6rem 1.15rem; border-radius: var(--r-s); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.25; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--emerald-hover); color: var(--on-emerald); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--input); }
.btn-gold { background: var(--gold); color: #0f1f1a; }
.btn-gold:hover { background: var(--gold-hover); color: #0f1f1a; }
.btn-danger { background: var(--paper); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn-row form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--emerald); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-danger { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.25rem; }
.stack { display: grid; gap: .85rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.35rem; margin: 0; background: var(--paper); display: grid; gap: 1rem; }
legend { font-weight: 600; padding-inline: .5rem; font-size: 1.02rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .93rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 44px; font: inherit; font-size: .97rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--input); border-radius: var(--r-s); padding: .6rem .8rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: var(--focus); }
textarea { resize: vertical; min-height: 96px; }
input[type="file"] { font: inherit; font-size: .9rem; padding: .6rem; border: 1px dashed var(--input); border-radius: var(--r-s); background: var(--paper-2); width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--emerald); width: 1.05rem; height: 1.05rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; margin: 0; }
.check { display: flex; gap: .55rem; align-items: flex-start; }
.check input { margin-top: .3em; flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.form-actions { justify-content: flex-end; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding-block: 1rem .25rem; }
.account-type { display: grid; gap: .6rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-s); padding: .9rem 1rem; cursor: pointer; background: var(--paper); transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--input); }
.choice:has(input:checked) { border-color: var(--emerald); background: var(--emerald-tint); }
.choice small { display: block; color: var(--muted); }
.choice input { margin-top: .3em; }
.org-fields { display: grid; gap: 1rem; }
.org-fields[hidden] { display: none; }

/* ---------- Messages ---------- */
.flashes { padding-block-start: 1.25rem; display: grid; gap: .5rem; }
.flash { padding: .8rem 1rem; border-radius: var(--r-s); border: 1px solid transparent; border-inline-start: 4px solid var(--emerald); background: var(--emerald-tint); margin: 0; }
.flash-error { border-inline-start-color: var(--red); background: var(--red-tint); }
.flash-info { border-inline-start-color: var(--gold); background: var(--gold-tint); }
.flash p { margin: 0; }
.flash p + p { margin-top: .3rem; }
.notice { padding: .95rem 1.1rem; border-radius: var(--r-s); background: var(--paper); border: 1px solid var(--line); margin-block-end: 1rem; }
.notice p:last-child { margin: 0; }
.notice-warn { background: var(--gold-tint); border-color: transparent; }

/* ---------- Étiquettes ---------- */
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 500; padding: .15rem .6rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.tag-gold { background: var(--gold-tint); border-color: transparent; color: var(--gold-text); }
.tag-red { background: var(--red-tint); border-color: transparent; color: var(--red); }
.verified { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--emerald); }
.verified::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--closed); color: var(--muted); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending, .status-amended { background: var(--gold-tint); color: var(--gold-text); }
.status-published { background: var(--emerald-tint); color: var(--emerald); }
.status-changes_requested, .status-suspended { background: var(--red-tint); color: var(--red); }
.app-status { font-weight: 600; font-size: .875rem; }
.app-shortlisted, .app-interview, .app-hired { color: var(--emerald); }
.app-rejected { color: var(--muted); }

/* ---------- Accueil ---------- */
.hero { position: relative; background: var(--hero); color: #fff; padding-block: 4rem 3rem; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 56px; -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 75%); mask-image: linear-gradient(to left, #000 15%, transparent 75%); }
[dir="rtl"] .hero::before { -webkit-mask-image: linear-gradient(to right, #000 15%, transparent 75%); mask-image: linear-gradient(to right, #000 15%, transparent 75%); }
.hero-inner > * { max-width: 920px; }
.hero-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.35rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin-block-end: .45em; max-width: 20ch; }
html[lang="ar"] .hero-title { line-height: 1.35; letter-spacing: 0; }
.hero-lead { color: var(--hero-text); font-size: 1.12rem; max-width: 58ch; }
.hero-search { margin-block-start: 2rem; }
.segmented { border: 0; padding: 4px; margin: 0 0 .7rem; display: inline-flex; gap: 4px; background: rgba(255, 255, 255, .1); border-radius: 999px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: .4rem 1.05rem; border-radius: 999px; color: var(--hero-text); cursor: pointer; font-weight: 500; font-size: .93rem; transition: background-color .15s, color .15s; }
.segmented input:checked + label { background: #fff; color: #063e25; }
.segmented input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.search-bar { display: flex; gap: .5rem; background: #fff; padding: .45rem; border-radius: var(--r-m); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .55); }
.search-bar input { border: 0 !important; box-shadow: none !important; font-size: 1.08rem !important; color: #0f1f1a !important; background: #fff !important; min-height: 52px !important; }
.search-bar .btn { min-height: 52px; padding-inline: 1.5rem; flex-shrink: 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: .75rem 2.75rem; margin: 2.25rem 0 0; }
.hero-stats div { display: flex; align-items: baseline; gap: .55rem; }
.hero-stats dd { margin: 0; font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; order: -1; }
.hero-stats dt { color: var(--hero-text); font-size: .93rem; }

.home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; padding-block: 3rem 2.5rem; }
@media (max-width: 980px) { .home-grid { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-block-end: 1rem; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.section-head a { font-weight: 500; font-size: .93rem; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.home-sectors, .home-orgs { padding-block-end: 2.75rem; }
.home-sectors h2 { font-size: 1.3rem; margin-block-end: 1rem; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .93rem; transition: border-color .15s, color .15s, background-color .15s; }
.chip:hover { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-tint); }
.org-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.org-strip a, .org-strip a.org-tile { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); font-weight: 500; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.org-strip a:hover { border-color: var(--emerald); box-shadow: var(--shadow-hover); color: var(--ink); }
.publish-band { position: relative; background: var(--footer); color: #fff; padding-block: 2.75rem; overflow: hidden; isolation: isolate; }
.publish-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 56px; opacity: .6; -webkit-mask-image: linear-gradient(to right, #000, transparent 60%); mask-image: linear-gradient(to right, #000, transparent 60%); }
.publish-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.publish-inner h2 { font-size: 1.45rem; }
.publish-inner p { color: var(--footer-text); margin: 0; max-width: 60ch; }

/* ---------- Appels d'offres ---------- */
.tender-list { display: grid; gap: .7rem; }
@media (max-width: 520px) { .tender-row { grid-template-columns: 72px minmax(0, 1fr) !important; } .deadline-day { font-size: 1.6rem !important; } .search-bar .btn { padding-inline: 1rem; } }
.tender-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: border-color .15s, box-shadow .15s; position: relative; }
.tender-row:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); box-shadow: var(--shadow-hover); }
.deadline { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .1rem; padding: .9rem .4rem; background: var(--emerald-tint); color: var(--emerald); }
.deadline-day { font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.deadline-month { font-size: .8rem; font-weight: 500; }
.deadline-left { margin-block-start: .4rem; font-size: .7rem; font-weight: 600; line-height: 1.25; padding: .12rem .45rem; border-radius: 999px; background: var(--paper); color: var(--muted); }
.tender-row.is-urgent .deadline { background: var(--red-tint); color: var(--red); }
.tender-row.is-urgent .deadline-left { color: var(--red); }
.tender-row.is-closed .deadline { background: var(--closed); color: var(--muted); }
.tender-body { padding: .95rem 1.15rem; min-width: 0; }
.tender-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .35rem; font-size: .8rem; }
.ref { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tender-title, .job-title { margin: 0 0 .4rem; font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
.tender-title a, .job-title a { color: var(--ink); text-decoration: none; }
.tender-title a::after, .job-item .job-title a::after { content: ""; position: absolute; inset: 0; }
.tender-title a:hover, .job-title a:hover { color: var(--emerald); }
.tender-org { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0; font-size: .9rem; color: var(--muted); }
.tender-org > span:first-child { color: var(--ink); }

.deadline-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.15rem 1.35rem; border-radius: var(--r-m); background: var(--emerald-tint); margin-block: 1.25rem; }
.deadline-banner p { margin: 0; }
.deadline-banner-label { font-size: .85rem; color: var(--muted); }
.deadline-banner-date { font-size: 1.35rem; font-weight: 700; }
.deadline-banner-left { font-weight: 700; color: var(--emerald); background: var(--paper); padding: .35rem .9rem; border-radius: 999px; }
.deadline-banner.is-urgent { background: var(--red-tint); }
.deadline-banner.is-urgent .deadline-banner-left { color: var(--red); }
.deadline-banner.is-closed { background: var(--closed); }
.deadline-banner.is-closed .deadline-banner-left { color: var(--muted); }

/* ---------- Emplois ---------- */
.job-list { display: grid; gap: .7rem; }
.job-item { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.15rem; transition: border-color .15s, box-shadow .15s; }
.job-item:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); box-shadow: var(--shadow-hover); }
.job-org { margin: 0 0 .6rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.facts li { font-size: .8rem; padding: .15rem .6rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Listes avec filtres ---------- */
.page-head { margin-block-end: 1.75rem; }
.page-head p { margin: 0; }
.page-head h1 { margin-block-end: .3rem; }
.with-filters { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 920px) { .with-filters { grid-template-columns: 1fr; } }
.filters { display: grid; gap: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 920px) { .filters { position: static; } }
.inline-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-block-end: 1.5rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.inline-filters .field { min-width: 220px; flex: 1; }
.filter-chip { display: inline-flex; gap: .6rem; background: var(--gold-tint); padding: .3rem .8rem; border-radius: 999px; margin-block-start: .6rem !important; font-size: .9rem; }
.empty { padding: 2.5rem 1.5rem; text-align: center; background: var(--paper); border: 1px dashed var(--input); border-radius: var(--r-m); color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-block-start: 1.75rem; }
.pagination a { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; }

/* ---------- Pages de détail ---------- */
.crumbs { margin-block-end: 1.1rem; font-size: .9rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a::before { content: "← "; }
[dir="rtl"] .crumbs a::before { content: "→ "; }
.crumbs a:hover { color: var(--emerald); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2rem; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-head h1 { margin-block: .35rem .5rem; }
.detail-org { display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center; color: var(--muted); }
.detail-org a { color: var(--ink); font-weight: 500; text-decoration: none; }
.detail-org a:hover { color: var(--emerald); }
.detail-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 980px) { .detail-aside { position: static; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.35rem; margin-block-end: 1rem; }
.detail-aside .panel { margin: 0; }
.panel h2 { font-size: 1.08rem; }
.panel-mod { border-color: var(--gold); }
.fav-form { margin: 0; }
.fav-form .btn, .detail-aside > .btn { width: 100%; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem 1.25rem; margin: 1.25rem 0; padding: 1.15rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.facts-grid dt { font-size: .8rem; color: var(--muted); }
.facts-grid dd { margin: .1rem 0 0; font-weight: 600; }
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.35rem; margin-block-end: 1rem; overflow-wrap: anywhere; }
.prose h2 { font-size: 1rem; color: var(--emerald); margin-block-end: .6rem; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.timeline { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .7rem; }
.timeline p { margin: .2rem 0 0; }
.doc-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.doc { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper-2); }
.doc a, .doc .link-btn { font-weight: 600; overflow-wrap: anywhere; text-decoration: none; text-align: start; }
.doc a::before, .doc .link-btn::before { content: "↓ "; color: var(--muted); }
.doc-avis_modificatif, .doc-prorogation { background: var(--gold-tint); border-color: transparent; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .78rem; color: var(--muted); margin-block-start: .2rem; }
.doc-delete { margin-block-start: .35rem; }
.upload-form { border-block-start: 1px solid var(--line); padding-block-start: 1.1rem; }
.contact-list { display: grid; gap: .2rem; margin: 0; }
.contact-list dt { font-size: .8rem; color: var(--muted); margin-block-start: .55rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Organismes et logos ---------- */
.org-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.org-list li { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; padding: .85rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.org-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.org-name:hover { color: var(--emerald); }
.org-counts { margin-inline-start: auto; font-size: .875rem; color: var(--muted); }
.org-logo { flex-shrink: 0; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs); object-fit: contain; vertical-align: middle; }
.org-logo-sm { width: 26px; height: 26px; padding: 2px; }
.org-logo-md { width: 44px; height: 44px; padding: 4px; border-radius: var(--r-s); }
.org-logo-lg { width: 88px; height: 88px; padding: 8px; border-radius: var(--r-m); }
.org-logo-initials { background: var(--emerald-tint); color: var(--emerald); border-color: transparent; font-weight: 700; padding: 0; direction: ltr; }
.org-logo-sm.org-logo-initials { font-size: .66rem; }
.org-logo-md.org-logo-initials { font-size: .95rem; }
.org-logo-lg.org-logo-initials { font-size: 1.65rem; }
.org-inline { display: inline-flex; align-items: center; gap: .5rem; }
.org-head { display: flex; align-items: center; gap: 1.1rem; }
.org-head h1 { margin-block-end: .2rem; }
.logo-edit { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.logo-edit .field { flex: 1; min-width: 220px; }

/* ---------- Espaces et administration ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.dash-grid > .panel:first-child { grid-row: span 4; }
@media (max-width: 920px) { .dash-grid { grid-template-columns: 1fr; } .dash-grid > .panel:first-child { grid-row: auto; } }
.dash-actions { margin-block-end: 1.5rem; }
.table-wrap { overflow-x: auto; margin-inline: -.35rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: start; padding: .7rem .6rem; border-block-end: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.table tbody tr:hover td { background: var(--paper-2); }
.table tbody tr:last-child td { border-block-end: 0; }
.table-compact td { padding-block: .4rem; }
.table .field-error { margin-block-start: .3rem; }
.simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.simple-list li + li { border-block-start: 1px solid var(--line); padding-block-start: .7rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row-between form { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-block-end: 1.5rem; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs a { padding: .4rem .95rem; text-decoration: none; color: var(--muted); border-radius: 999px; font-size: .92rem; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--on-emerald); background: var(--emerald); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: 0 0 1.5rem; }
.stat-row div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: .95rem 1.1rem; display: flex; flex-direction: column-reverse; }
.stat-row dd { margin: 0; font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.15; }
.stat-row dt { font-size: .8rem; color: var(--muted); }
.applicant-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.applicant { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; }
.applicant h2, .applicant h3 { font-size: 1.05rem; margin: 0; }
.applicant-head p, .applicant p { margin: .15rem 0; }
.applicant details { margin-block: .6rem; }
.applicant summary { cursor: pointer; color: var(--emerald); font-weight: 500; }
.applicant-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-block-start: .7rem; }
.inline-form { display: flex; gap: .45rem; align-items: center; margin: 0; }
.inline-form select { width: auto; }
.steps { list-style: none; counter-reset: step; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.steps li { counter-increment: step; color: var(--muted); display: flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .4rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--paper-2); font-size: .8rem; font-weight: 600; }
.steps li.is-current, .steps li.on { color: var(--ink); font-weight: 600; border-color: var(--emerald); }
.steps li.is-current::before, .steps li.on::before { background: var(--emerald); color: var(--on-emerald); }

/* ---------- CVthèque ---------- */
.cv-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; align-items: start; transition: border-color .15s, box-shadow .15s; }
.job-list > .cv-card:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); box-shadow: var(--shadow-hover); }
.cv-card.plain { border: 0; padding: 0; background: none; margin-block-end: .5rem; }
.cv-card.plain:hover { box-shadow: none; }
.cv-card p { margin: 0 0 .45rem; }
.cv-card .facts { margin-block-end: .6rem; }
.cv-card h3 a { color: var(--ink); text-decoration: none; }
.cv-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cv-card h3 a:hover { color: var(--emerald); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), #054a2a); color: #fff; display: grid; place-items: center; font-weight: 700; direction: ltr; }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.skills li { font-size: .8rem; padding: .15rem .65rem; border-radius: 999px; background: var(--emerald-tint); color: var(--emerald); }
.req-msg { font-size: .9rem; margin: .35rem 0 .6rem; padding: .6rem .8rem; background: var(--paper-2); border-radius: var(--r-s); }

/* ---------- Intelligence artificielle ---------- */
.ai-label { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; color: var(--gold-text); background: var(--gold-tint); padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.ai-label::before { content: "✦"; font-size: .8em; }
.ai-panel { border-color: transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--emerald) 60%, var(--gold))) border-box; border: 1.5px solid transparent; }
.ai-panel h3 { font-size: .9rem; margin: .9rem 0 .3rem; }
.ai-panel [data-ai-out] { margin-block-start: .7rem; }
.ai-list { margin: 0 0 .4rem; padding-inline-start: 1.2rem; }
.ai-list li { margin-block: .15rem; }
.ai-filled input, .ai-filled textarea, .ai-filled select { border-color: var(--gold); background: var(--gold-tint); }
.ai-match-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; margin-block-start: .7rem; }
.ai-match-row .field { flex: 1; min-width: 200px; }
.match { border: 1px solid var(--line); border-radius: var(--r-s); padding: .85rem .95rem; background: var(--paper-2); }
.match p { margin: .1rem 0; }
.score { font-weight: 700; color: var(--emerald); background: var(--emerald-tint); padding: .1rem .6rem; border-radius: 999px; font-size: .85rem; }

.chat-fab { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 45; border-radius: 999px; padding: .75rem 1.25rem; box-shadow: var(--shadow-float); }
.chat-fab::before { content: "✦"; }
.chat-box { position: fixed; inset-inline-end: 1.25rem; bottom: 5rem; z-index: 45; width: min(400px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 7.5rem)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-float); display: flex; flex-direction: column; overflow: hidden; }
.chat-box[hidden] { display: none; }
.chat-head { padding: .85rem 1rem; border-block-end: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--paper-2); }
.chat-head h2 { margin: 0; font-size: 1rem; }
.chat-head .link-btn { font-size: .9rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { padding: .6rem .85rem; border-radius: 16px; max-width: 88%; white-space: pre-line; overflow-wrap: anywhere; font-size: .93rem; }
.msg-user { background: var(--emerald); color: var(--on-emerald); align-self: flex-end; border-end-end-radius: 4px; }
.msg-ai { background: var(--paper-2); border: 1px solid var(--line); align-self: flex-start; border-end-start-radius: 4px; }
.msg-user a { color: inherit; }
.chat-form { display: flex; gap: .45rem; padding: .7rem; border-block-start: 1px solid var(--line); }
.chat-form input { border-radius: 999px !important; }
.chat-form .btn { border-radius: 999px; }
.chat-note { font-size: .74rem; color: var(--muted); margin: 0; padding: 0 1rem .65rem; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-suggest button { font: inherit; font-size: .82rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; color: var(--ink); cursor: pointer; }
.chat-suggest button:hover { border-color: var(--emerald); color: var(--emerald); }

/* ---------- Erreurs ---------- */
.error-page { text-align: center; }
.error-code { font-size: 5rem; font-weight: 700; color: var(--gold); margin: 0; line-height: 1; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--footer); color: var(--footer-text); padding-block: 3rem 1.25rem; margin-block-start: 3rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--pattern) 0 -21px / 28px; opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .95rem; color: #fff; }
.site-footer nav { display: grid; gap: .45rem; align-content: start; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand, .brand-footer { color: #fff; margin-block-end: .6rem; }
.footer-text { max-width: 46ch; }
.footer-bottom { border-block-start: 1px solid rgba(255, 255, 255, .1); margin-block-start: 2.25rem; padding-block-start: 1rem; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .detail-aside, .filters, .chat-fab, .chat-box { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ---------- Boutons de téléchargement ---------- */
.file-list { display: grid; gap: .6rem; }
.file-btn { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: .8rem; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
button.file-btn { width: 100%; font: inherit; text-align: start; cursor: pointer; }
.file-btn:hover { border-color: var(--emerald); box-shadow: var(--shadow-hover); color: var(--ink); }
.file-btn:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--emerald); }
.file-type { width: 40px; height: 48px; display: grid; align-items: end; justify-items: center; padding-block-end: 7px; border-radius: 5px; font-size: .6rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: #6b7a74; clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); direction: ltr; }
.file-pdf .file-type { background: #d23a2c; }
.file-doc .file-type { background: #2a62c9; }
.file-xls .file-type { background: #1d7f45; }
.file-img .file-type { background: #8452c7; }
.file-text { min-width: 0; }
.file-title { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.file-meta { display: block; font-size: .76rem; color: var(--muted); margin-block-start: .15rem; }
.file-dl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--on-emerald); transition: background-color .15s, transform .15s; }
.file-btn:hover .file-dl { background: var(--emerald-hover); transform: translateY(1px); }
.file-btn.is-amend { background: var(--gold-tint); border-color: transparent; }
.file-btn.is-amend:hover { border-color: var(--gold); }

/* ---------- Avis & Infos ---------- */
.notice-list { display: grid; gap: .75rem; margin-block-start: .75rem; }
.notice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.home-notices { padding-block-end: 2.75rem; }
.notice-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; transition: border-color .15s, box-shadow .15s; }
.notice-card:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); box-shadow: var(--shadow-hover); }
.notice-card.is-pinned { border-color: var(--gold); }
.notice-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; }
.notice-title { font-size: 1.04rem; font-weight: 600; line-height: 1.35; margin: 0 0 .4rem; }
.notice-title a { color: var(--ink); text-decoration: none; }
.notice-title a::after { content: ""; position: absolute; inset: 0; }
.notice-title a:hover { color: var(--emerald); }
.notice-excerpt { color: var(--muted); font-size: .93rem; margin: 0 0 .7rem; }
.notice-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .8rem; margin: auto 0 0; padding-block-start: .5rem; font-size: .85rem; color: var(--muted); }
.notice-files { display: inline-flex; align-items: center; gap: .3rem; color: var(--emerald); font-weight: 500; }
.notice-files svg { width: 16px; height: 16px; }
.cat { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 600; padding: .12rem .6rem; border-radius: 999px; background: var(--emerald-tint); color: var(--emerald); }
.cat-communique { background: #e6effc; color: #1f55b5; }
.cat-resultat { background: var(--gold-tint); color: var(--gold-text); }
.cat-concours { background: #f1e9fb; color: #6a3fb0; }
.cat-info { background: var(--closed); color: var(--muted); }
.other-lang summary { cursor: pointer; color: var(--emerald); font-weight: 500; }
.other-lang h2 { margin-block-start: .8rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cat-communique { background: #142a4d; color: #9cc0ff; }
  :root:not([data-theme="light"]) .cat-concours { background: #2c1d45; color: #cfb2ff; }
}
:root[data-theme="dark"] .cat-communique { background: #142a4d; color: #9cc0ff; }
:root[data-theme="dark"] .cat-concours { background: #2c1d45; color: #cfb2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-actu_emploi { background: #142a4d; color: #9cc0ff; } }
:root[data-theme="dark"] .cat-actu_emploi { background: #142a4d; color: #9cc0ff; }

/* ---------- Publication par l'équipe ---------- */
.publish-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-block-end: 1.5rem; }
.publish-tile { display: grid; gap: .2rem; padding: 1rem 1.1rem; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.publish-tile strong { display: flex; align-items: center; gap: .5rem; color: var(--emerald); }
.publish-tile strong::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); color: var(--on-emerald); font-size: 1.1rem; line-height: 1; }
.publish-tile span { font-size: .85rem; color: var(--muted); }
.publish-tile:hover { border-color: var(--emerald); box-shadow: var(--shadow-hover); color: var(--ink); }
.notice-info { background: var(--emerald-tint); border-color: transparent; }
.org-picker .org-new { border-block-start: 1px solid var(--line); padding-block-start: .8rem; }
.org-picker .org-new summary { cursor: pointer; color: var(--emerald); font-weight: 500; margin-block-end: .6rem; }
.org-picker .org-new[open] { display: grid; gap: .8rem; }
.org-picker.has-error { border-color: var(--red); }
.list-tools { margin-block-end: 1rem; }
.list-tools .inline-form input { width: auto; min-width: 220px; }
.attach input[type="file"] { padding: 1.1rem; text-align: center; }
.org-logo-field { border-block-start: 1px solid var(--line); padding-block-start: .8rem; }
.grow-1 { flex: 1; min-width: 0; }

/* ---------- Annonces regroupées (plusieurs postes, un organisme) ---------- */
.job-group { background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--emerald); border-radius: var(--r-m); padding: 1rem 1.15rem; transition: border-color .15s, box-shadow .15s; }
.job-group:hover { box-shadow: var(--shadow-hover); }
.job-group-head { display: flex; align-items: center; gap: .8rem; margin-block-end: .7rem; }
.job-group-id { display: grid; gap: .25rem; justify-items: start; }
.job-group-org { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-weight: 600; }
.job-group-org a { color: var(--ink); text-decoration: none; }
.job-group-org a:hover { color: var(--emerald); text-decoration: underline; }
.job-group-list { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .1rem; }
.job-group-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .35rem .5rem; border-radius: var(--r-xs); }
.job-group-list li:hover { background: var(--emerald-tint); }
.job-group-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; align-self: center; }
.job-group-list a { font-weight: 600; color: var(--emerald); text-decoration: none; }
.job-group-list a:hover { text-decoration: underline; }
.job-group-contract { font-size: .78rem; color: var(--muted); }
.job-group-foot { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; font-size: .85rem; color: var(--muted); }
.job-group-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.job-group-foot .date-icon { color: var(--red); }
.row-actions { white-space: nowrap; }
.row-actions > * { margin-inline-end: .6rem; }
.delete-form { display: inline; margin: 0; }

/* ---------- Partage ---------- */
.share-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.share-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s; }
.share-btn:hover { border-color: var(--input); background: var(--paper-2); color: var(--ink); }
.share-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.share-whatsapp .share-dot { background: #25d366; }
.share-facebook .share-dot { background: #1877f2; }
.share-linkedin .share-dot { background: #0a66c2; }
.share-telegram .share-dot { background: #27a7e7; }
.share-x .share-dot { background: var(--ink); }
.share-whatsapp { border-color: #25d366; }
.footer-social { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-block-start: .8rem; }

/* Organismes vérifiés : tuiles de taille identique, nom sur trois lignes au plus */
.org-strip { grid-auto-rows: 1fr; }
.org-strip li { display: flex; min-width: 0; }
.org-strip a, .org-strip a.org-tile { flex: 1; min-width: 0; min-height: 84px; height: 100%; }
.org-strip a span:not(.org-logo) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; overflow-wrap: anywhere; }

/* ---------- Icônes des réseaux sociaux ---------- */
.soc-icon { flex-shrink: 0; }
.footer-social { gap: .5rem 1.2rem; }
.soc-link { display: inline-flex; align-items: center; gap: .5rem; }
.soc-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); transition: transform .15s; }
.soc-link:hover .soc-badge { transform: translateY(-1px); }
.soc-facebook .soc-badge { background: #1877f2; }
.soc-linkedin .soc-badge { background: #0a66c2; }
.soc-telegram .soc-badge { background: #27a7e7; }
.soc-whatsapp .soc-badge { background: #25d366; }
.soc-x .soc-badge { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.soc-youtube .soc-badge { background: #ff0000; }
.soc-instagram .soc-badge { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.share-btn .soc-icon { width: 17px; height: 17px; }
.share-whatsapp .soc-icon { color: #25d366; }
.share-facebook .soc-icon { color: #1877f2; }
.share-linkedin .soc-icon { color: #0a66c2; }
.share-telegram .soc-icon { color: #27a7e7; }
.share-x .soc-icon, .share-copy .soc-icon { color: var(--ink); }

/* ---------- Recherche d'organisme ---------- */
.org-select { min-height: auto; padding: .3rem; }
.org-select option { padding: .45rem .55rem; border-radius: 6px; }
.org-select option:checked { background: var(--emerald-tint); color: var(--ink); }
.org-search-status:empty { display: none; }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.home-news { padding-block-end: 2.75rem; }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.news-card:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); box-shadow: var(--shadow-hover); }
.news-media { aspect-ratio: 1200 / 630; background: var(--hero); overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-card:hover .news-media img { transform: scale(1.03); }
.news-media-empty { display: block; width: 100%; height: 100%; background: var(--pattern) 0 0 / 56px, var(--hero); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.1rem; }
.news-body .notice-title a::after { content: ""; position: absolute; inset: 0; }
.news-hero { margin: 1rem 0; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.news-hero img { display: block; width: 100%; height: auto; }
.news-source { font-size: .9rem; color: var(--muted); }
.news-thumb { width: 160px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); }
.cat-actu_emploi { background: #e6effc; color: #1f55b5; }
.cat-actu_economie { background: var(--gold-tint); color: var(--gold-text); }

/* ---------- Nombre de vues ---------- */
.views { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.views svg { flex-shrink: 0; }
.item-views { margin: .5rem 0 0; }
.item-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.job-group-list li .views { margin-inline-start: auto; }

/* ---------- Mode de candidature ---------- */
.apply-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.apply-field[hidden] { display: none; }
.apply-contact { font-weight: 600; font-size: 1.02rem; padding: .7rem .85rem; border-radius: var(--r-s); background: var(--emerald-tint); color: var(--ink); overflow-wrap: anywhere; margin-block: .2rem .8rem; }
.apply-address { font-weight: 500; line-height: 1.5; }
.btn-block + .hint { margin-block-start: .6rem; }
.apply-badge { font-weight: 600; }
li.apply-badge, span.apply-badge { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 35%, var(--line)); }
.apply-email { color: #1f55b5 !important; }
.apply-local { color: var(--gold-text) !important; }

/* ---------- Organismes vérifiés : défilement en boucle sur une ligne ---------- */
.org-marquee { overflow: hidden; padding-block: .4rem; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.org-track { display: flex; width: max-content; animation: org-marquee var(--marquee-duration, 40s) linear infinite; }
.org-marquee:hover .org-track, .org-marquee:focus-within .org-track { animation-play-state: paused; }
.org-marquee .org-strip.org-group { display: flex; gap: .75rem; padding-inline-end: .75rem; grid-template-columns: none; grid-auto-rows: auto; }
.org-marquee .org-group li { flex: 0 0 270px; }
.org-marquee .org-group a, .org-marquee .org-group a.org-tile { height: 84px; min-height: 84px; }
.org-marquee .org-group a:hover { box-shadow: none; }
@keyframes org-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes org-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .org-track { animation-name: org-marquee-rtl; }
@media (max-width: 600px) { .org-marquee .org-group li { flex-basis: 230px; } }
/* Mouvement réduit demandé par l'utilisateur : pas d'animation, défilement manuel */
@media (prefers-reduced-motion: reduce) {
  .org-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .org-track { animation: none; }
  .org-group[aria-hidden="true"] { display: none !important; }
}

/* ---------- Menu : les libellés restent sur une ligne ---------- */
.site-nav a, .nav-link-btn { white-space: nowrap; }
@media (max-width: 1340px) and (min-width: 1101px) {
  .header-row { gap: 1rem; }
  .site-nav { gap: 0; }
  .site-nav a, .nav-link-btn { padding-inline: .55rem; font-size: .9rem; }
  .brand img { height: 38px; }
}

/* ---------- Section « Publiez avec nous » (accueil) ---------- */
.site-footer { margin-block-start: 0; }
.page + .site-footer, main > :last-child { margin-block-end: 0; }
.org-pitch { position: relative; background: var(--hero); color: #fff; padding-block: 3.5rem 3rem; overflow: hidden; isolation: isolate; margin-block-start: 1rem; }
.org-pitch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 56px; opacity: .55; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 70%); mask-image: linear-gradient(to left, #000 10%, transparent 70%); }
[dir="rtl"] .org-pitch::before { -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 70%); mask-image: linear-gradient(to right, #000 10%, transparent 70%); }
.pitch-head { max-width: 760px; }
.pitch-kicker { display: inline-block; color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .04em; margin-block-end: .6rem; }
html[lang="fr"] .pitch-kicker { text-transform: uppercase; }
.org-pitch h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.2; margin-block-end: .6rem; }
.pitch-lead { color: var(--hero-text); font-size: 1.08rem; max-width: 60ch; }
.pitch-figures { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.8rem 0 2rem; padding-block: 1.2rem; border-block: 1px solid rgba(255,255,255,.14); }
.pitch-figures div { display: flex; flex-direction: column-reverse; }
.pitch-figures dd { margin: 0; font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1.05; font-variant-numeric: tabular-nums; }
.pitch-figures dt { color: var(--hero-text); font-size: .9rem; }
.pitch-benefits { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pitch-benefits li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-m); padding: 1.2rem; backdrop-filter: blur(2px); }
.pitch-benefits h3 { font-size: 1.05rem; margin: .7rem 0 .35rem; color: #fff; }
.pitch-benefits p { margin: 0; color: var(--hero-text); font-size: .93rem; }
.pitch-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #102018; }
.pitch-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; background: #fff; color: var(--ink); border-radius: var(--r-l); padding: 1.3rem 1.5rem; }
@media (max-width: 860px) { .pitch-cta { grid-template-columns: 1fr; } }
.pitch-steps { list-style: none; counter-reset: ps; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.pitch-steps li { counter-increment: ps; display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; color: #0f1f1a; }
.pitch-steps li::before { content: counter(ps); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #087c46; color: #fff; font-size: .85rem; }
.pitch-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-light { background: #fff; color: #0f1f1a; border-color: #d5ddd9; }
.btn-light:hover { background: #f3f6f5; color: #0f1f1a; }
.btn-light .soc-icon { color: #25d366; }
.pitch-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: #5d6d66; }

/* ---------- Remplissage par l'IA (téléversement) ---------- */
.ai-drop { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.4rem 1rem; margin-block: .8rem; border: 2px dashed var(--gold); border-radius: var(--r-m); background: var(--gold-tint); color: var(--gold-text); text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.ai-drop:hover, .ai-drop.is-over { border-color: var(--emerald); background: var(--emerald-tint); color: var(--emerald); }
.ai-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ai-drop-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ai-paste { margin-block-end: .7rem; }
.ai-paste summary { cursor: pointer; color: var(--emerald); font-weight: 500; margin-block-end: .5rem; }
.ai-import .check { margin-block-end: .8rem; }
.ai-working::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: .5rem; border: 2px solid var(--gold); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sub-teaser .btn { margin-block-start: .6rem; }
.field-label { font-weight: 500; font-size: .93rem; }

/* ---------- Abonnement ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; }
.plan-premium { border: 2px solid var(--gold); box-shadow: var(--shadow-hover); }
.plan h2 { font-size: 1.4rem; }
.plan-list { list-style: none; margin: 1rem 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.plan-list li { position: relative; padding-inline-start: 1.6rem; }
.plan-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--emerald); font-weight: 700; }
.plan-badge { margin: 0 0 .3rem; }
.plan-form { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0; }
.plan-form select, .plan-form input[type="date"] { width: auto; min-height: 36px; padding: .3rem .5rem; font-size: .85rem; }

/* ---------- Dépôt des offres ---------- */
.bid-panel h3 { font-size: 1rem; margin-block: 1rem .5rem; }
.bid-mode { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.bid-receipt { border: 1px solid var(--emerald); background: var(--emerald-tint); border-radius: var(--r-m); padding: 1rem 1.1rem; margin-block: .8rem; }
.bid-receipt-title { font-weight: 700; color: var(--emerald); margin: 0 0 .4rem; }
.bid-receipt .facts-grid { margin: .4rem 0 .8rem; }
.bid-form { border-block-start: 1px solid var(--line); padding-block-start: .8rem; margin-block-start: .8rem; }
.bid-withdraw { margin-block-start: .6rem; }
.bid-received .simple-list li { display: grid; gap: .35rem; }

/* ---------- Demande d'abonnement ---------- */
.subreq { margin-block-start: 1.5rem; border: 2px solid var(--gold); }
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; margin-inline-start: .3rem; }
.subreq-list { display: grid; gap: 1rem; }
.subreq-item .facts-grid { margin-block: .8rem; }
.subreq-org { font-size: 1.1rem; margin: 0; }
.subreq-new { border-inline-start: 4px solid var(--red); }
.subreq-processing { border-inline-start: 4px solid var(--gold); }
.subreq-done { opacity: .75; }
.subreq-msg { background: var(--paper-2); border-radius: var(--r-s); padding: .7rem .9rem; margin-block: 0 .8rem; }
.subreq-item .btn-row form { margin: 0; }
.subreq-done-box { text-align: center; border-color: var(--emerald); background: var(--emerald-tint); }
.subreq-done-box h2 { margin-block: .6rem .4rem; color: var(--emerald); }
.subreq-done-box > p { max-width: 60ch; margin-inline: auto; }
.subreq-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--emerald); color: #fff; animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.subreq-recap { text-align: start; background: var(--paper); border-radius: var(--r-m); padding: .9rem 1rem; margin: 1rem auto; max-width: 720px; }
@media (prefers-reduced-motion: reduce) { .subreq-check { animation: none; } }

/* ---------- Espace candidat : menu latéral + contenu ---------- */
.cand-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .cand-layout { grid-template-columns: 1fr; } }
.cand-side { position: sticky; top: calc(var(--header-h, 72px) + 1rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.3rem 1.1rem; }
@media (max-width: 860px) { .cand-side { position: static; } }
.cand-id { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.cand-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--emerald); color: #fff; font-size: 1.6rem; font-weight: 700; box-shadow: 0 0 0 5px var(--emerald-tint); }
.cand-name { font-weight: 700; font-size: 1.08rem; margin: 0; }
.cand-progress { margin-block: 1rem; padding-block: .9rem; border-block: 1px solid var(--line); }
.cand-percent { margin: 0 0 .4rem; font-size: .9rem; color: var(--muted); }
.cand-percent strong { color: var(--emerald); font-size: 1.35rem; margin-inline-end: .2rem; }
progress.progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
progress.progress::-webkit-progress-bar { background: var(--paper-2); border-radius: 99px; }
progress.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 99px; }
progress.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 99px; }
.cand-next { margin: .5rem 0 0; font-size: .86rem; }
.cand-next a { color: var(--gold-text); font-weight: 600; }
.cand-menu { display: grid; gap: .15rem; }
.cand-menu a, .cand-logout { display: block; width: 100%; text-align: start; padding: .55rem .75rem; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font: inherit; font-size: .93rem; font-weight: 500; background: none; border: 0; cursor: pointer; }
.cand-menu a:hover, .cand-logout:hover { background: var(--paper-2); }
.cand-menu a[aria-current="page"] { background: var(--emerald); color: #fff; }
.cand-menu form { margin: 0; border-block-start: 1px solid var(--line); margin-block-start: .4rem; padding-block-start: .4rem; }
.cand-logout { color: var(--red); }
.cand-main { display: grid; gap: 1.2rem; min-width: 0; }
.cand-title { font-size: 1.5rem; margin-block-end: .4rem; }
.cand-head { align-items: center; }
.cand-narrow { max-width: 520px; }
.cand-visibility { background: var(--emerald-tint); border-radius: var(--r-s); padding: .8rem 1rem; }
.cand-visibility .hint { margin: .3rem 0 0; }
.cand-notify { display: grid; gap: .4rem; }

/* CV structuré */
.cv-section h2 { margin: 0; }
.cv-items { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .6rem; }
.cv-items > li { border: 1px solid var(--line); border-radius: var(--r-m); padding: .8rem 1rem; background: var(--paper); }
.cv-item-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cv-item-head p { margin: .15rem 0 0; }
.cv-item-head form { margin: 0; }
.cv-item-details { margin: .5rem 0 0; color: var(--ink-2, var(--ink)); font-size: .94rem; }
.cv-edit summary { cursor: pointer; color: var(--emerald); font-size: .88rem; margin-block-start: .4rem; }
.cv-add { margin-block-start: .8rem; }
.cv-add > summary { list-style: none; display: inline-flex; }
.cv-add > summary::-webkit-details-marker { display: none; }
.cv-add[open] > summary { margin-block-end: .8rem; }
.cv-item-form { border-block-start: 1px dashed var(--line); padding-block-start: .8rem; margin-block-start: .6rem; }
.doc-drop { margin-block-start: 0; }

/* CV imprimable */
.cv-print-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; max-width: 820px; margin: 0 auto 1rem; }
.cv-sheet { max-width: 820px; margin: 0 auto; background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--r-m); padding: 2.4rem 2.6rem; box-shadow: var(--shadow-hover); }
.cv-sheet-head { border-block-end: 3px solid #087c46; padding-block-end: 1rem; margin-block-end: 1.2rem; }
.cv-sheet h1 { font-size: 2rem; margin: 0; color: #063e25; }
.cv-sheet-headline { font-size: 1.15rem; color: #c56d0a; font-weight: 600; margin: .2rem 0 .5rem; }
.cv-sheet-contact, .cv-sheet-meta { margin: .2rem 0; font-size: .92rem; color: #333; }
.cv-sheet section { margin-block-end: 1.2rem; break-inside: avoid; }
.cv-sheet h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: #087c46; border-block-end: 1px solid #d5ddd9; padding-block-end: .3rem; margin-block-end: .6rem; }
html[lang="ar"] .cv-sheet h2 { text-transform: none; letter-spacing: 0; }
.cv-sheet-item { margin-block-end: .7rem; }
.cv-sheet-item p { margin: 0; }
.cv-sheet-dates { float: inline-end; color: #555; font-size: .88rem; }
.cv-sheet-details { color: #333; font-size: .93rem; margin-block-start: .2rem !important; }
.cv-sheet-foot { margin-block-start: 1.6rem; font-size: .75rem; color: #888; text-align: center; }
.cv-public .cv-sheet-dates { color: var(--muted); }
@media print {
  .site-header, .site-footer, .no-print, .chat-fab, .chat-box, .flash { display: none !important; }
  body { background: #fff !important; }
  .page { padding: 0 !important; }
  .cv-sheet { border: 0; box-shadow: none; padding: 0; max-width: none; }
}
[hidden] { display: none !important; }
.cv-item-head .tag { margin-inline-start: .4rem; }

/* ---------- Actions en cours (envoi, téléversement, téléchargement) ---------- */
.is-busy { position: relative; cursor: progress !important; opacity: .85; pointer-events: none; }
button.is-busy, .btn.is-busy { padding-inline-start: 2.4rem; }
button.is-busy::before, .btn.is-busy::before { content: ""; position: absolute; inset-inline-start: .9rem; top: 50%; width: 15px; height: 15px; margin-top: -8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
a.file-btn.is-busy .file-dl { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.busy-note { flex-basis: 100%; margin: .5rem 0 0; font-size: .9rem; color: var(--gold-text); font-weight: 600; }
.busy-note::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-inline-end: .45rem; vertical-align: -1px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { button.is-busy::before, .btn.is-busy::before, .busy-note::before, a.file-btn.is-busy .file-dl { animation-duration: 2.4s; } }

/* ---------- Photos ---------- */
img.avatar { object-fit: cover; background: var(--paper-2); }
.avatar-md { width: 44px; height: 44px; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 112px; height: 112px; font-size: 1.8rem; flex-shrink: 0; }
img.cand-avatar { object-fit: cover; }
.cand-photo-link { font-size: .82rem; color: var(--emerald); }
.photo-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.photo-row h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.photo-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block: .6rem .3rem; }
.photo-form input[type="file"] { width: auto; max-width: 100%; }
.applicant-id { display: flex; align-items: center; gap: .7rem; }
.applicant-id h2 { margin: 0; }
.cv-sheet-head { position: relative; }
.cv-sheet-photo { float: inline-end; width: 110px; height: 110px; border-radius: 10px; object-fit: cover; margin-inline-start: 1rem; border: 3px solid #e1efe7; }

/* ---------- Statistiques ---------- */
.stats-toolbar { display: grid; gap: .8rem; margin-block-end: 1.2rem; }
.stats-period { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stats-period input[type="date"] { width: auto; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 0 0 1.4rem; }
.stats-kpis div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.1rem; display: flex; flex-direction: column-reverse; gap: .2rem; }
.stats-kpis dd { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--emerald); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats-kpis dt { color: var(--muted); font-size: .88rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-table h2 { font-size: 1.05rem; }
.stats-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-bar { display: inline-block; vertical-align: middle; width: 70px; height: 8px; margin-inline-end: .5rem; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.stats-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 99px; }
.stats-print-head { display: flex; align-items: center; gap: 1.2rem; border-block-end: 3px solid #087c46; padding-block-end: .8rem; margin-block-end: 1.2rem; }
.stats-print-head h1 { font-size: 1.4rem; margin: 0; }
.stats-print-head p { margin: .2rem 0 0; color: #555; }
.stats-foot { margin-block-start: 1.2rem; font-size: .8rem; color: #777; text-align: center; }
.stats-print .stats-bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-table { break-inside: avoid; box-shadow: none; }
  .stats-kpis div { break-inside: avoid; }
  .stats-print-head img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.stats-period { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.stats-period label { margin: 0; font-weight: 500; }
.stats-period input[type="date"] { width: auto !important; flex: 0 0 auto; min-width: 160px; }
.stats-kpis div { justify-content: flex-end; }
.stats-filter-form { display: grid; gap: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.1rem; }
.stats-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem .9rem; align-items: end; }
.stats-filters .field { margin: 0; }
.stats-visible { align-self: center; }
.stats-active { margin: 0; color: var(--muted); }
.stats-active strong { color: var(--emerald); }
li.edu-tag { background: var(--emerald-tint); color: var(--emerald); border-color: transparent; font-weight: 600; }

/* ---------- Sécurité ---------- */
.sec-checks { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .6rem; }
.sec-checks li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--r-s); border: 1px solid var(--line); }
.sec-checks li.is-ok { background: var(--emerald-tint); border-color: transparent; }
.sec-checks li.is-ko { background: var(--gold-tint); border-color: transparent; }
.sec-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; font-weight: 700; color: #fff; background: var(--emerald); }
.is-ko .sec-dot { background: var(--gold-text); }
.sec-files { margin: .4rem 0; padding-inline-start: 1.2rem; font-size: .85rem; max-height: 220px; overflow: auto; }
.small-dd { font-size: 1.05rem !important; }
.otp-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: 0; color: var(--emerald); text-decoration: underline; cursor: pointer; font: inherit; padding: .5rem; }
.ai-progress { display: block; width: 100%; margin-block: .3rem .6rem; }

/* ---------- Espaces publicitaires (« partenaires ») ---------- */
.partner { position: relative; display: block; margin: 0 auto; text-align: center; }
.partner a { display: block; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--paper); line-height: 0; transition: box-shadow .15s; }
.partner a:hover { box-shadow: var(--shadow-hover); }
.partner img { display: block; width: 100%; height: auto; }
.partner-label { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; z-index: 1; padding: 1px 7px; border-radius: 4px; font-size: .68rem; letter-spacing: .02em; background: rgba(0,0,0,.55); color: #fff; line-height: 1.6; pointer-events: none; }
.partner-wrap { padding-block: 1.2rem 0; }
.partner-home_top, .partner-home_middle { max-width: 1200px; }
.partner-list_inline { max-width: 800px; margin-block: .4rem; }
.news-grid > .partner-list_inline { grid-column: 1 / -1; }
.partner-detail_sidebar { max-width: 300px; }
@media (max-width: 860px) { .partner-detail_sidebar { max-width: 360px; } }
/* Administration */
.ads-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.ads-slot { display: grid; gap: .2rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r-m); }
.ads-thumb { width: 110px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ads-preview { display: block; max-width: 100%; max-height: 180px; margin-block-end: .6rem; border-radius: var(--r-s); border: 1px solid var(--line); }
.tag-green { background: var(--emerald-tint); color: var(--emerald); border-color: transparent; }
@media print { .partner { display: none !important; } }

/* ---------- Page « Annoncer sur SIB Mauritanie » ---------- */
.adv-hero { position: relative; background: var(--hero); color: #fff; padding-block: 3rem 2.6rem; overflow: hidden; isolation: isolate; }
.adv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 56px; opacity: .5; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%); mask-image: linear-gradient(to left, #000 10%, transparent 75%); }
.adv-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-block-end: .5rem; }
.adv-lead { color: var(--hero-text); font-size: 1.1rem; max-width: 62ch; }
.adv-hero .pitch-figures { margin-block: 1.4rem 1.6rem; }
.adv-why { margin-block-end: 2rem; }
.adv-benefits li { background: var(--paper); border-color: var(--line); }
.adv-benefits h3 { color: var(--ink); margin-block-start: 0; }
.adv-benefits p { color: var(--muted); }
.adv-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-block-end: .6rem; }
.adv-slot h3 { font-size: 1.05rem; margin: .8rem 0 .2rem; }
.adv-size { font-weight: 600; color: var(--emerald); margin: .3rem 0; }
/* Schéma de page */
.mock { display: grid; gap: 5px; padding: 8px; height: 150px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); align-content: start; }
.mock span, .mock i, .mock b { display: block; }
.mock-header { height: 10px; border-radius: 3px; background: #c9d4cf; }
.mock-hero { height: 28px; border-radius: 4px; background: #0b4a2d; opacity: .75; }
.mock-list { display: grid; gap: 4px; }
.mock-list i, .mock-main i { height: 10px; border-radius: 3px; background: #dde5e1; }
.mock-ad { height: 18px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 0 2px rgba(238,146,35,.35); animation: mockpulse 2s ease-in-out infinite; }
.mock-list_inline .mock-ad { height: 14px; margin-inline: 12%; }
.mock-cols { display: grid; grid-template-columns: 1fr 34%; gap: 6px; }
.mock-main, .mock-side { display: grid; gap: 4px; align-content: start; }
.mock-side i { height: 16px; border-radius: 3px; background: #dde5e1; }
.mock-side .mock-ad { height: 52px; }
@keyframes mockpulse { 50% { box-shadow: 0 0 0 5px rgba(238,146,35,.15); } }
@media (prefers-reduced-motion: reduce) { .mock-ad { animation: none; } }
.adreq { border: 1px solid var(--line); border-radius: var(--r-m); padding: .9rem 1rem; }
.mock .mock-cols { display: grid; }
.mock .mock-list, .mock .mock-main, .mock .mock-side { display: grid; }
.mock .mock-list i { height: 9px; }
.ai-test-form { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin-block: .4rem .8rem; }

/* ---------- Invitations ---------- */
.inv-map .grid-2 { margin-block-end: .4rem; }
.inv-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-block: .6rem 1rem; }
.inv-actions form { margin: 0; }
.inv-actions select { width: auto; }

/* ---------- Veille ---------- */
.vei-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 1rem; }
.vei-filters select, .vei-filters input { width: auto; min-width: 160px; }
.vei-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.vei-item { padding: 1rem 1.1rem; }
.vei-item.vei-ignored { opacity: .6; }
.vei-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.vei-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.vei-meta { margin: .35rem 0; color: var(--muted); }
.vei-soon { color: var(--red); font-weight: 600; }
.vei-summary { margin: .3rem 0 .6rem; font-size: .93rem; }
.vei-item form { margin: 0; }
.vei-kind-tender { background: var(--emerald-tint); color: var(--emerald); border-color: transparent; }
.vei-kind-job { background: var(--gold-tint); color: var(--gold-text); border-color: transparent; }
.vei-edit summary { cursor: pointer; color: var(--emerald); display: inline; }
.vei-edit[open] { display: block; margin-block: .6rem; }
.vei-add { margin-block: .8rem; }
.vei-add > summary { list-style: none; display: inline-flex; }

/* Offre d'emploi : quatre modes de candidature */
.apply-options-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.apply-contact { margin: .4rem 0 .8rem; padding: .7rem .9rem; border-radius: var(--r-s); background: var(--paper-2); word-break: break-word; }
.vei-running { display: flex; align-items: center; gap: .5rem; } .vei-running .busy-note { margin: 0; }
.inv-cron { margin: .5rem 0; padding: .6rem .8rem; border-radius: var(--r-s); background: var(--paper); border: 1px solid var(--line); font-size: .82rem; white-space: pre-wrap; word-break: break-all; }

/* Texte des annonces mis en forme (rich_text) : lecture confortable */
.rich { line-height: 1.75; font-size: 1.02rem; max-width: 75ch; }
.rich > * + * { margin-block-start: .85rem; }
.rich p { margin: 0; }
.rich h3 { font-size: 1.12rem; color: var(--emerald-deep); margin-block-start: 1.4rem; padding-block-end: .35rem; border-block-end: 2px solid var(--emerald-tint); }
.rich h4 { font-size: 1rem; color: var(--emerald); margin-block-start: 1.25rem; margin-block-end: -.35rem; }
.rich h3:first-child, .rich h4:first-child { margin-block-start: 0; }
.rich ul, .rich ol { margin: 0; padding-inline-start: 1.35rem; }
.rich li { margin-block: .35rem; padding-inline-start: .2rem; }
.rich ul li::marker { color: var(--emerald); }
.rich ol li::marker { color: var(--emerald); font-weight: 600; }
.rich strong { color: var(--ink); font-weight: 650; }
.rich a { overflow-wrap: anywhere; }
.prose h2 + .rich { margin-block-start: .25rem; }
@media (prefers-color-scheme: dark) { .rich h3 { border-block-end-color: var(--line); } }

/* Encart « Alerte appels d'offres » (page d'accueil, liste des appels d'offres) */
.ta-promo { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: center;
  margin-block: 2rem 0; padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, #0b6b3f 0%, var(--hero) 55%); color: #fff; box-shadow: var(--shadow-float); }
.ta-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 56px; opacity: .35;
  -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 75%); mask-image: linear-gradient(to left, #000 15%, transparent 75%); }
[dir="rtl"] .ta-promo::before { -webkit-mask-image: linear-gradient(to right, #000 15%, transparent 75%); mask-image: linear-gradient(to right, #000 15%, transparent 75%); }
.ta-promo-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin: 0 0 .7rem; }
html[lang="fr"] .ta-promo-kicker { text-transform: uppercase; }
.ta-promo-bell { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(238, 146, 35, .16); color: var(--gold); }
.ta-promo h2 { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.15rem); line-height: 1.2; margin: 0 0 .6rem; color: #fff; }
.ta-promo-lead { color: var(--hero-text); margin: 0 0 1rem; max-width: 56ch; line-height: 1.6; }
.ta-promo-plans { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; color: var(--hero-text); }
.ta-promo-plans li { padding-inline-start: 1.6rem; position: relative; }
.ta-promo-plans li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }
.ta-promo-plans strong { color: #fff; }
.ta-promo-plans .ta-gold { color: var(--gold); }
.ta-promo-form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 520px; }
.ta-promo-form input { flex: 1 1 220px; min-height: 48px; padding: .7rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .96); color: #0f1f1a; font: inherit; }
.ta-promo-form input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ta-promo-form .btn { min-height: 48px; }
.ta-promo-note { font-size: .85rem; color: var(--hero-text); opacity: .85; margin: .6rem 0 0; }
.ta-promo-visual { display: flex; justify-content: center; }
.ta-mail { width: 100%; max-width: 420px; background: #fff; color: #0f1f1a; border-radius: 16px; padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55); transform: rotate(-2deg); }
[dir="rtl"] .ta-mail { transform: rotate(2deg); }
.ta-mail-head { display: flex; align-items: center; gap: .7rem; padding-block-end: .7rem; border-block-end: 1px solid #e6ece9; }
.ta-mail-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #087c46, #0b6b3f);
  box-shadow: inset 0 0 0 3px #e2f6eb; }
.ta-mail-head div { flex: 1; min-width: 0; }
.ta-mail-from { margin: 0; font-weight: 700; font-size: .9rem; }
.ta-mail-subject { margin: 0; font-size: .82rem; color: #5d6d66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-mail-time { font-size: .75rem; color: #5d6d66; }
.ta-mail-list { list-style: none; padding: 0; margin: .4rem 0 .6rem; }
.ta-mail-list li { display: grid; gap: .1rem; padding: .55rem 0 .55rem .8rem; border-inline-start: 3px solid #ee9223; margin-block: .45rem; background: #fbfcfb; border-radius: 0 8px 8px 0; }
[dir="rtl"] .ta-mail-list li { border-radius: 8px 0 0 8px; padding: .55rem .8rem .55rem 0; }
.ta-mail-title { font-weight: 600; font-size: .88rem; line-height: 1.35; }
.ta-mail-meta { font-size: .76rem; color: #5d6d66; }
.ta-mail-sectors { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.ta-mail-sectors span { font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; background: #e2f6eb; color: #054a2a; font-weight: 600; }
@media (max-width: 860px) {
  .ta-promo { grid-template-columns: 1fr; }
  .ta-mail { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ta-mail { transition: transform .4s ease; }
  .ta-promo:hover .ta-mail { transform: rotate(0deg) translateY(-4px); }
}
