:root {
  --blue: #0072CE;
  --blue-deep: #003D7A;
  --red: #C8102E;
  --gold: #F2B705;
  --ink: #1A1A1A;
  --paper: #FAF9F6;
  --slate: #5B6472;
  --line: #E4E0D8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Public Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
header { background: var(--blue-deep); color: #fff; position: sticky; top: 0; z-index: 30; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; max-width: 1120px; margin: 0 auto; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 40px; height: 40px; }
.nav-brand span { font-family: Fraunces, serif; font-weight: 600; font-size: 16px; line-height: 1.15; }
.nav-brand small { display: block; font-family: "Public Sans", sans-serif; font-size: 11px; font-weight: 500; opacity: 0.78; letter-spacing: 0.02em; margin-top: 2px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; font-size: 13.5px; font-weight: 500; }
.nav-links a { opacity: 0.88; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.hero { color: #fff; position: relative; overflow: hidden; background: linear-gradient(155deg, rgba(0,114,206,.94) 0%, rgba(0,61,122,.96) 78%); }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 22px 32px 24px; }
.hero-eyebrow { font-size: 14.5px; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; max-width: 18ch; }
.hero-lead { margin-top: 12px; font-size: 17px; color: rgba(255,255,255,.88); max-width: 52ch; }
.btn { display: inline-block; padding: 12px 22px; font-size: 15px; font-weight: 600; border-radius: 3px; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-navy { background: var(--blue-deep); color: #fff; }
.btn-muted { background: #e8eff6; color: var(--blue-deep); }
.btn-logout { background: var(--red); color: #fff; }
.staff-bar {
  position: sticky;
  top: 72px;
  z-index: 25;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0, 40, 90, .08);
}
.staff-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ribbon { background: var(--red); color: #fff; }
.ribbon-inner { max-width: 1120px; margin: 0 auto; padding: 18px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.ribbon-inner strong { font-family: Fraunces, serif; }
section { padding: 56px 0 80px; }
.list-only { padding-top: 28px; }
.pillars-section { padding-bottom: 12px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { background: #fff; border: 1px solid var(--line); padding: 24px 22px; border-radius: 3px; }
.pillar .num { font-family: Fraunces, serif; color: var(--blue); font-weight: 600; font-size: 15px; }
.pillar h3 { color: var(--blue-deep); margin: 10px 0 8px; font-size: 22px; }
.pillar p { color: var(--slate); font-size: 15px; }
.pillar:hover { border-color: var(--blue); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.kicker { color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.filters { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin-bottom: 28px; }
.filters input, .filters select { width: auto; flex: 1 1 0; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff; }
.filters input { flex: 1.6 1 0; }
.filters button { flex: 0 0 auto; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-photo { display: block; height: 168px; overflow: hidden; background: var(--blue-deep); }
.card-photo img { width: 100%; height: 168px; object-fit: cover; }
.card-photo-pro { height: 280px; background: #e8eff6; }
.card-photo-pro img { height: 280px; object-fit: contain; object-position: center center; }
.card .meta { font-size: 12px; color: var(--slate); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.card h3 { font-size: 21px; color: var(--blue-deep); margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; }
.card .read { margin-top: auto; }
.read { display: inline-block; margin-top: 14px; color: #005aa3; font-weight: 600; font-size: 14px; }
.badge { display: inline-block; border-radius: 20px; padding: 3px 10px; background: #edf3f9; font-size: 12px; }
.article { max-width: 760px; margin: 0 auto; padding: 48px 32px 80px; }
.article .eyebrow, .fiche .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; }
.article h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.fiche-cover { position: relative; min-height: 340px; background: linear-gradient(155deg, #0072CE, #003D7A); color: #fff; overflow: hidden; }
.fiche-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-pro .fiche-cover { min-height: 280px; }
.fiche-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,30,70,.18) 0%, rgba(0,40,90,.55) 48%, rgba(0,28,62,.88) 100%); }
.fiche-cover-copy { position: relative; max-width: 1120px; margin: 0 auto; padding: 120px 32px 40px; }
.fiche-cover-copy h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; max-width: 22ch; }
.fiche-layout { display: grid; grid-template-columns: 1.7fr .9fr; gap: 36px; padding: 40px 32px 80px; align-items: start; }
.fiche-lead { font-size: 19px; line-height: 1.55; color: var(--blue-deep); font-weight: 500; margin-bottom: 22px; }
.fiche-side { position: sticky; top: 88px; }
.fiche-portrait { width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: center top; background: #e8eff6; border-radius: 4px; margin-bottom: 16px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,40,90,.12); }
.fiche-card { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: 4px; }
.fiche-card dl { margin-top: 12px; }
.fiche-card dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-top: 14px; }
.fiche-card dd { font-size: 15px; font-weight: 600; color: var(--blue-deep); margin-top: 4px; }
.prose { font-size: 17px; line-height: 1.8; color: #334155; }
.prose p { margin-bottom: 1rem; }
footer { background: var(--blue-deep); color: rgba(255,255,255,.85); padding: 40px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; max-width: 1120px; margin: 0 auto; padding: 0 32px 24px; }
.footer-links { list-style: none; margin-top: 12px; }
.footer-links li { margin: 7px 0; }
.footer-links a, footer a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 14px; }
.footer-links a:hover, footer a:hover { color: var(--gold); }
.footer-copy { max-width: 1120px; margin: 0 auto; padding: 16px 32px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: rgba(255,255,255,.7); }
.login-panel, .panel { max-width: 720px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.login-panel { max-width: 460px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
textarea { min-height: 120px; }
.notice { padding: 12px 16px; border-radius: 6px; margin: 12px 0; background: #edf9f2; border: 1px solid #96cbb4; }
.notice.error { background: #fff0ed; border-color: #dfaea7; color: #8b2626; }
.hint { font-size: 12px; font-weight: 400; color: var(--slate); }
.advanced { margin: 8px 0 24px; }
.advanced summary { cursor: pointer; font-weight: 600; color: var(--blue-deep); margin-bottom: 10px; }
.fiche-album-title, .fiche-page-title { font-size: 26px; color: var(--blue-deep); margin: 28px 0 14px; }
.fiche-menu { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0 0 28px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.fiche-menu a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--blue-deep); border-bottom: 2px solid transparent; }
.fiche-menu a:hover { color: var(--blue); }
.fiche-menu a.is-on { border-bottom-color: var(--gold); color: var(--blue-deep); }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.album img { width: 100%; height: 180px; object-fit: cover; object-position: center; border-radius: 4px; border: 1px solid var(--line); }
.entry { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e2e8f0; align-items: center; flex-wrap: wrap; }
.pager { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pager a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 20px 0 32px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 28px; }
.chart-card { background: #fff; border: 1px solid var(--line); padding: 18px 18px 10px; }
.chart-card h2 { font-size: 18px; color: var(--blue-deep); margin-bottom: 8px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 18px; }
.stat .figure { font-family: Fraunces, serif; font-size: 28px; color: var(--blue-deep); }
form.inline { display: inline; }
form.money { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
form.money input, form.money select { width: auto; max-width: 220px; }
.table-wrap { overflow-x: auto; margin: 16px 0 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f4f7fb; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .check { width: 42px; text-align: center; }
.data-table input[type="checkbox"] { width: auto; margin: 0; }
.data-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.data-table th.sortable::after { content: " ▾"; font-size: 10px; opacity: 0.35; }
.data-table th[aria-sort="ascending"]::after { content: " ▲"; opacity: 1; color: var(--blue); }
.data-table th[aria-sort="descending"]::after { content: " ▼"; opacity: 1; color: var(--blue); }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 8px 0 10px; }
.table-tools input[type="search"] { max-width: 280px; margin: 0; }
.table-tools .table-meta { margin: 0; }
.table-wrap[data-zoom="25"] { zoom: 0.25; }
.table-wrap[data-zoom="50"] { zoom: 0.5; }
.table-wrap[data-zoom="75"] { zoom: 0.75; }
.table-wrap[data-zoom="100"] { zoom: 1; }
.zoom-ctl {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-deep);
}
.zoom-ctl > span { opacity: 0.7; margin-right: 2px; }
.zoom-btn {
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.zoom-btn:hover, .zoom-btn.is-on { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.table-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.page-btn { padding: 6px 10px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue-deep); }
.page-btn.is-on { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.st {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}
.st-publie { color: #0f7a45; background: #e7f6ee; }
.st-expire { color: #5b6472; background: #eef0f3; }
.st-brouillon { color: #3d4a5c; background: #e8edf3; }
.st-en_attente_comptable { color: #9a6b00; background: #fff4d6; }
.st-en_attente_directeur { color: #003d7a; background: #e4eef9; }
.st-refuse_comptable { color: #c8102e; background: #fde8eb; }
.st-refuse_directeur { color: #8b2626; background: #f8e4e4; }
.st-pay-en_attente { color: #9a6b00; background: #fff4d6; }
.st-pay-approuve { color: #0f7a45; background: #e7f6ee; }
.st-pay-refuse { color: #c8102e; background: #fde8eb; }
.st-maint-impaye { color: #c8102e; background: #fde8eb; }
.st-maint-envoye { color: #0072ce; background: #e4eef9; }
.st-maint-paye { color: #0f7a45; background: #e7f6ee; }
.st-maint-refuse { color: #8b2626; background: #f8e4e4; }
.cat-field { position: relative; margin: 14px 0 6px; }
.cat-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cat-toggle {
  width: 100%;
  text-align: left;
  padding: 11px 40px 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23003D7A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: inherit;
  color: var(--blue-deep);
  font-weight: 600;
  cursor: pointer;
}
.cat-toggle[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,114,206,.12); }
.cat-menu {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0,40,90,.12);
  overflow: hidden;
}
.cat-new { display: flex; gap: 8px; padding: 10px; background: #f4f7fb; border-bottom: 1px solid var(--line); }
.cat-new input { margin: 0; }
.cat-new .btn { padding: 10px 14px; white-space: nowrap; }
.cat-err { margin: 0; padding: 8px 12px; color: #8b2626; font-size: 13px; background: #fff0ed; }
.cat-list { list-style: none; max-height: 240px; overflow: auto; }
.cat-list li { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid #f1eee8; }
.cat-list li.is-on { background: #e8eff6; }
.cat-pick {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
  padding: 8px 6px;
}
.cat-pick:hover { color: var(--blue); }
.cat-rename, .cat-del {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  padding: 6px 8px;
  cursor: pointer;
}
.cat-rename:hover { color: var(--blue-deep); border-color: var(--blue); }
.cat-del:hover:not(:disabled) { color: #8b2626; border-color: #dfaea7; }
.cat-del:disabled { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 700px) {
  .wrap, .hero-inner, .article, .footer-grid, .fiche-cover-copy, .fiche-layout { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { flex-wrap: wrap; }
  .filters input, .filters select { flex: 1 1 100%; width: 100%; }
  .fiche-layout { grid-template-columns: 1fr; }
  .fiche-side { position: static; }
  .fiche-cover { min-height: 260px; }
  .fiche-cover-copy { padding-top: 80px; }
  .chart-grid { grid-template-columns: 1fr; }
  .staff-bar-inner { padding-left: 20px; padding-right: 20px; }
}
