@charset "UTF-8";
:root {
  --ink: #202321;
  --muted: #6c736d;
  --line: #e4e7e1;
  --bg: #f6f7f4;
  --gold: #f3b12c;
  --gold-soft: #fff8e8;
  --white: #fff;
  --green: #276a49;
  --radius: 16px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
/* L'en-tête et la navigation sont fixés en haut ; les ancres (#calendrier,
   #resume…) se placent sous eux plutôt que dessous, cachées. */
html {
  scroll-padding-top: 150px;
}
.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #956216;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 680;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 620;
}
.muted {
  color: var(--muted);
}
.preserve {
  white-space: pre-wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus-visible {
  top: 12px;
}
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  /* Compact, puisque l'en-tête reste à l'écran en permanence. */
  padding: 6px 42px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 56px;
  height: auto;
  display: block;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brand-copy strong {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.brand-copy > span {
  color: var(--muted);
  font-size: 12px;
}
.brand-dot,
.heading-dot {
  color: #b67800;
}
.brand-dot {
  font-size: 32px;
}
.global-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  max-width: 340px;
  flex: 1;
  padding: 0 6px 0 12px;
  gap: 6px;
}
.global-search > span {
  font-size: 24px;
  color: var(--muted);
}
.global-search input {
  background: transparent;
  border: 0;
  min-width: 80px;
  width: 100%;
  padding: 10px 4px;
  font-size: 12px;
  box-shadow: none;
}
.icon-btn {
  border: 0;
  background: transparent;
  min-width: 36px;
  min-height: 38px;
  font-size: 20px;
  color: var(--muted);
  border-radius: 6px;
}
.icon-btn:hover {
  background: var(--line);
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.account > span:not(.avatar) {
  display: flex;
  flex-direction: column;
}
.account small {
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9ece5;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.private-label {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.main-nav {
  background: white;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1356px;
  margin: auto;
  display: flex;
  align-items: stretch;
  gap: 7px;
  padding: 10px 0;
}
.nav-item {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}
.nav-item > span {
  font-size: 18px;
}
.nav-item.selected {
  background: var(--gold);
  color: #201b10;
}
.nav-item:not(.unavailable):hover {
  background: #f7dfaa;
}
.nav-item small {
  font-size: 9px;
  padding: 2px 5px;
  background: #f0f2ed;
  border-radius: 4px;
  color: #757a73;
}
.unavailable {
  color: #7c827b;
  cursor: default;
}
.main {
  max-width: 1356px;
  margin: 0 auto;
  padding: 40px 0 56px;
  min-height: 60vh;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.page-heading p {
  color: var(--muted);
  margin-bottom: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 1.7px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.45;
  cursor: pointer;
  border: 1px solid transparent;
}
.primary {
  background: var(--gold);
  color: #251c0a;
  border-color: #e8a625;
}
.primary:hover {
  background: #eaa51d;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: #d8ddd4;
}
.secondary:hover {
  background: #f4f5f1;
  border-color: #aeb7aa;
}
.danger {
  background: #a92e30;
  color: white;
}
.small {
  font-size: 12px;
  padding: 8px 13px;
  min-height: 36px;
}
.full {
  width: 100%;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px #202b1b03;
  overflow: hidden;
}
.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.pills {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  flex-wrap: wrap;
}
/* Sous-navigation de « Recherches & validation » : même composant visuel et
   même comportement au clavier que les pastilles de filtre (des liens), mais
   posée seule en tête de page, avant le titre, sur toutes les pages. */
.pills.subnav {
  margin: 0 0 26px;
}
.pills.filter-pills {
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 24px;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: #636c61;
}
.pill span {
  font-size: 10px;
  background: #e9ece6;
  padding: 1px 6px;
  border-radius: 10px;
}
.pill.active {
  background: #202621;
  color: white;
}
.pill.active span {
  background: #41483f;
  color: white;
}
.mode-switch {
  display: flex;
  gap: 3px;
  border-radius: 8px;
  padding: 4px;
  background: #eaece6;
}
.mode-switch a {
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 11px;
  text-decoration: none;
  color: #65705f;
}
.mode-switch a.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #0000000b;
}
.work-notice {
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--gold-soft);
  border: 1px solid #f0dfb6;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 12px;
  color: #6b5630;
  margin: 0 0 24px;
}
.work-notice > span:first-child {
  font-size: 20px;
}
.work-notice > span:nth-child(2) {
  flex: 1;
}
.work-notice a {
  font-weight: 600;
  white-space: nowrap;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filters > label {
  font-size: 11px;
  min-width: 130px;
  font-weight: 550;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5a6357;
}
.filters > .search-field {
  flex: 1;
  min-width: 200px;
}
.filters input:not([type="checkbox"]),
.filters select {
  font-size: 12px;
  min-height: 40px;
}
/* Une rangée de filtres s'aligne en bas : les champs ont la même hauteur. */
.filters > label {
  align-self: stretch;
  justify-content: flex-end;
}
.filters .text-link {
  margin-bottom: 0;
  font-size: 11px;
}
/* Une rangée de filtres garde des champs de même hauteur : les pastilles de
   tag et les actions passent sur leur propre ligne, en pleine largeur. */
.filters > .tag-choices,
.filters > .filter-note,
.filters > .filter-actions {
  flex: 1 0 100%;
}
.filters > .filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 18px;
  gap: 15px;
}
.list-heading h2 {
  margin: 0;
  font-size: 16px;
}
.list-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 550;
  font-size: 11px;
  color: var(--muted);
  background: #fafbf8;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #eef0ea;
  vertical-align: middle;
}
.catalogue-table tbody tr:hover {
  background: #fdfbf5;
}
.catalogue-table td:first-child {
  width: 46%;
}
.catalogue-table td:nth-child(2) {
  width: 11%;
}
.catalogue-table td:nth-child(3) {
  width: 16%;
}
.catalogue-table td:last-child {
  padding-left: 0;
  width: 42px;
}
.row-title {
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  display: block;
  max-width: 520px;
  line-height: 1.6;
}
.row-title:hover {
  text-decoration: underline;
}
.catalogue-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  display: inline-block;
  border: 1px solid #e4e8df;
  border-radius: 5px;
  padding: 3px 7px;
  background: #f7f9f4;
  color: #4e5a46;
}
.origin {
  font-size: 11px;
  color: var(--muted);
}
.open-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e4e8df;
  border-radius: 7px;
  color: #5d6b55;
  text-decoration: none;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}
/* Variante compacte : le seul signe, même fond et même couleur que la pastille
   longue. Le mot complet reste au survol et pour les lecteurs d'écran. */
.badge-compact {
  padding: 3px 6px;
  font-size: 11px;
}
.a_verifier {
  background: #edf0fa;
  color: #4e5e96;
}
.valide {
  background: #eaf4ee;
  color: #2e704b;
}
.rejete {
  background: #fcebed;
  color: #a33447;
}
.conflit {
  background: #fff0db;
  color: #8d5810;
}
.archive,
.neutral {
  background: #eef0ec;
  color: #606858;
}
.bottom-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #737b6d;
  margin: 20px 0 0;
}
.bottom-note > span {
  font-size: 15px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  font-size: 11px;
  color: var(--muted);
  gap: 15px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.footer {
  max-width: 1356px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
.separator {
  color: #c3c9bd;
  margin: 0 9px;
}
.empty {
  text-align: center;
  padding: 65px 24px;
  color: var(--muted);
}
.empty p {
  max-width: 530px;
  margin: 0 auto 20px;
  font-size: 13px;
}
.empty h3 {
  color: var(--ink);
}
.empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 25px;
  color: #839075;
  background: #f9faf7;
}
.compact {
  padding: 24px 0;
}
.compact p {
  margin: 0;
  text-align: left;
}
.notice {
  padding: 17px 20px;
  border-radius: 10px;
  border: 1px solid #dbe1d6;
  background: #f1f5ee;
  margin-bottom: 24px;
  font-size: 13px;
}
.notice.error {
  border-color: #ecc7cd;
  background: #fff1f2;
  color: #9c283b;
}
.notice.success {
  border-color: #c6e1ce;
  background: #eff9f1;
  color: #2e6a40;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #dce1d7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #92998c;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex-shrink: 0;
  accent-color: #252d20;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack > label,
.form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
}
.check,
.stack > .check {
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
}
.text-link {
  font-weight: 600;
  font-size: 12px;
}
.back-link {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
}
.back-link:hover {
  text-decoration: underline;
}
.form-panel {
  padding: 30px;
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.section-heading h2 {
  margin: 0 0 4px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.step {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--gold-soft);
  color: #866527;
  border: 1px solid #f1e3c5;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.wide {
  grid-column: 1/-1;
}
.field-label {
  display: block;
}
.required {
  color: #986316;
}
.form-help {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 0;
}
.form-grid > .form-help {
  margin: 0;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.form-actions > div {
  display: flex;
  gap: 12px;
}
.editor {
  max-width: 970px;
}
/* Saisie courte d'une période : la liste « saison ou mois » d'abord, puis les
   seuls champs du mode choisi (data-mode). Un <noscript> du gabarit remontre
   tout quand le script manque. */
.periode-quand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.periode-quand .quand-saison,
.periode-quand .quand-mois,
.periode-quand .quand-dates {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.periode-quand[data-mode="saison"] .quand-saison,
.periode-quand[data-mode="mois"] .quand-mois,
.periode-quand[data-mode="dates"] .quand-dates {
  display: flex;
}
.periode-quand .quand-dates label {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* L'aide sous « Quand ? » suit le mode : habituelle ou datée. */
.periode-quand[data-mode="dates"] + .quand-aide .aide-habituelle,
.periode-quand:not([data-mode="dates"]) + .quand-aide .aide-datee {
  display: none;
}
/* Rattachement court : une liste de fiches validées ; depuis un risque, la
   liste « secteur ou activité » ne montre que la liste de son choix. */
.rattachement-cible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.rattachement-cible legend {
  padding: 0;
  margin-bottom: 8px;
}
.rattachement-cible .cible-choix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  max-width: 100%;
}
.rattachement-cible .cible-choix select {
  max-width: 100%;
}
.rattachement-cible[data-mode] .cible-choix {
  display: none;
}
.rattachement-cible[data-mode="secteur"] [data-cible="secteur"],
.rattachement-cible[data-mode="activite"] [data-cible="activite"] {
  display: flex;
}
.narrow {
  max-width: 820px;
}
.detail-heading {
  align-items: flex-start;
}
.detail-heading h1 {
  max-width: 950px;
  font-size: 30px;
}
.inline-info {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.detail-main,
.detail-aside {
  min-width: 0;
}
.detail-panel {
  padding: 26px;
  margin-bottom: 22px;
}
.detail-panel h2 {
  font-size: 16px;
}
.fact {
  margin-top: 20px;
}
.fact > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact p {
  margin: 0;
  font-size: 13px;
}
.fact small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.fact a {
  font-size: 13px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title h2 {
  margin: 0;
}
.count {
  background: #edf0e8;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
}
/* Pastille de cible d'un lien : l'activité dans sa teinte, le secteur en or pâle. */
.puce-cible,
.puce-activite {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 550;
  background: #e3f0f1;
  color: #2f6b72;
  white-space: nowrap;
}
a.puce-cible {
  text-decoration: none;
}
a.puce-cible:hover {
  text-decoration: underline;
}
.puce-cible.secteur {
  background: #fcf3e3;
  color: #8a5e14;
}
.relation-source {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.relation-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.relation-row > span:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.relation-row strong {
  font-size: 13px;
}
.relation-row small {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.relation-row .muted {
  font-size: 11px;
}
.relation-row:hover strong {
  text-decoration: underline;
}
.relation-row .arrow {
  color: var(--muted);
}
/* État d'une fiche publiée : le badge « Validé », et à côté la proposition
   qui attend, en petit texte ; le sens tient au mot, pas à la couleur. */
.etat-fiche {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.etat-attente {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.related-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.naf-reference {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 20px;
}
.naf-reference > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 11px;
}
.naf-reference > strong {
  font-size: 13px;
}
.naf-reference > p {
  font-size: 11px;
  margin-top: 10px;
}
.inline-decision {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}
.inline-decision input:not([type="checkbox"]) {
  font-size: 12px;
}
/* Décision d'une ligne « En attente de validation » : valider d'un geste, le
   rejet déplié avec son motif, puis le lien vers la file. */
.pending-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 14px;
}
.pending-actions form {
  margin: 0;
}
.pending-actions .decide-reject > summary {
  padding: 5px 0;
}
.pending-actions .text-link {
  padding: 5px 0;
}
.source-card {
  padding: 16px;
  background: #f7f9f3;
  border: 1px solid #e5e9de;
  border-radius: 9px;
  margin-top: 20px;
  font-size: 12px;
}
.source-card a {
  overflow-wrap: anywhere;
}
.source-card p {
  margin: 8px 0 0;
}
.source-card blockquote {
  font-size: 12px;
  margin: 15px 0 0;
  padding-left: 12px;
  border-left: 2px solid #c8d0be;
  color: #59664e;
}
.mini-timeline {
  margin: 24px 0 0;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.mini-timeline > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.mini-timeline strong {
  font-size: 12px;
}
.mini-timeline span,
.mini-timeline small {
  font-size: 10px;
  color: var(--muted);
}
details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  padding: 14px 0;
  color: #4f6043;
}
details .stack {
  margin-top: 16px;
}
.comparison table td,
.comparison table th,
.review-comparison table td,
.review-comparison table th {
  padding: 12px;
  vertical-align: top;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comparison table th:first-child,
.review-comparison table th:first-child {
  width: 24%;
}
.comparison table td,
.review-comparison table td {
  width: 38%;
}
.decision-form {
  margin-top: 26px;
}
.lifecycle-panel {
  background: #fcfcfa;
}
.total-badge {
  text-align: right;
}
.total-badge strong {
  font-size: 36px;
  display: block;
  letter-spacing: -1px;
}
.total-badge span {
  font-size: 11px;
  color: var(--muted);
}
.review-row {
  padding: 22px 26px;
  border-top: 1px solid var(--line);
}
.review-row-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.review-title {
  flex: 1;
}
.review-title a {
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
}
.review-title a:hover {
  text-decoration: underline;
}
.review-title .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
/* Précision d'une carte de revue (code NAF, territoire et région) : une ligne
   à elle, jamais collée à la flèche du titre. */
.review-title small {
  display: block;
  margin-top: 3px;
}
.review-comparison {
  margin: 8px 0 0 33px;
}
.review-comparison > p {
  font-size: 12px;
}
.batch-panel {
  background: #f8f9f5;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 28px;
}
.batch-panel h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.batch-panel p {
  font-size: 12px;
  color: var(--muted);
}
.selection-summary {
  font-size: 11px;
  color: var(--muted);
  padding-left: 18px;
  max-height: 150px;
  overflow: auto;
}
.filter-note {
  padding: 16px 26px;
  font-size: 12px;
  color: var(--muted);
}
.timeline {
  padding: 10px 30px 10px 46px;
}
.timeline-event {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 26px 0 26px 30px;
}
.timeline-point {
  position: absolute;
  width: 11px;
  height: 11px;
  top: 34px;
  left: -6px;
  border: 3px solid white;
  outline: 1px solid #d9ddce;
  background: var(--gold);
  border-radius: 50%;
}
.event-heading {
  display: flex;
  justify-content: space-between;
}
.event-heading h2 {
  font-size: 15px;
  margin-bottom: 6px;
}
.event-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.event-heading p {
  font-size: 11px;
  margin-bottom: 0;
  color: var(--muted);
}
.event-number {
  font-size: 10px;
  color: #9ca291;
}
.event-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.event-diff > div {
  min-width: 0;
}
.event-diff h3 {
  font-size: 11px;
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f9f3;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  font-size: 11px;
  max-height: 420px;
  overflow: auto;
}
.error-page {
  margin: 30px auto;
}
.error-page h1 {
  font-size: 26px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 110px;
  align-items: center;
  padding-top: 75px;
  padding-bottom: 90px;
  max-width: 1150px;
  min-height: 70vh;
}
.login-intro h1 {
  font-size: 42px;
  line-height: 1.24;
  letter-spacing: -1.5px;
  margin: 22px 0;
}
.login-intro h1 > span {
  color: #86917b;
}
.login-intro > p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.intro-bottom {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.intro-mark {
  font-size: 52px;
  color: #d99513;
  line-height: 1;
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 12px 40px #23361606;
}
.login-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.login-card > .muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-card .button {
  margin-top: 8px;
}
.login-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 26px 0 0;
}
/* Tags : étiquettes libres et cumulables des fiches secteur, hors révision. */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 2px;
}
.tag-list.compact {
  gap: 6px;
  margin-top: 7px;
  padding: 0;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #efdcb2;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a12;
  font-size: 11px;
  font-weight: 550;
  padding: 5px 12px;
  text-decoration: none;
  white-space: nowrap;
}
.tag-chip > a {
  color: inherit;
  text-decoration: none;
}
/* Famille du tag, en préfixe discret : « Fonction · Transformation ». Le sens
   est écrit, jamais porté par la seule couleur. */
.tag-famille {
  color: var(--muted);
  font-weight: 400;
}
/* Une famille de tags sur une fiche ou sur la page des tags : son titre, puis
   ses pastilles. */
.tag-famille-bloc,
.tag-famille-section {
  margin-top: 10px;
}
.tag-famille-bloc > .tag-choices-label,
.tag-famille-section > .list-heading {
  display: block;
}
.tag-chip:hover,
.tag-chip > a:hover {
  border-color: var(--gold);
  text-decoration: underline;
}
.tag-chip > span {
  color: var(--muted);
  font-weight: 400;
}
.tag-chip form {
  display: flex;
  margin: 0;
}
.tag-remove {
  border: 0;
  background: none;
  cursor: pointer;
  color: #8d6a18;
  font-size: 15px;
  line-height: 1;
  padding: 0 0 0 2px;
}
.tag-remove:hover {
  color: #a33447;
}
/* Pastille-case : la même pastille, rendue cochable. Un seul rendu sur le
   catalogue, la fiche, l'assistant, l'Overview, la revue et les campagnes. */
.tag-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tag-choices-label {
  font-size: 11px;
  font-weight: 550;
  color: #5a6357;
}
label.tag-chip {
  cursor: pointer;
}
.tag-chip > input[type="checkbox"] {
  width: 14px;
  height: 14px;
}
.tag-chip.active {
  border-color: var(--gold);
  background: #fdefcf;
  font-weight: 620;
}
/* Pastille ou famille masquée par un compte à zéro : l'attribut hidden doit
   l'emporter sur le display de la pastille et de la rangée. */
.tag-chip[hidden],
.tag-choices[hidden],
.tag-rule[hidden] {
  display: none;
}
.tag-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.tag-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
  font-size: 11px;
  font-weight: 550;
  color: #5a6357;
}
.tag-form input {
  min-height: 40px;
}
/* Page Tags : le renommage reste en ligne, la suppression se déplie. La ligne
   ne montre donc plus de motif ni de bouton rouge tant qu'on ne l'a pas demandé. */
.tags-table td:first-child {
  width: 26%;
}
.tags-table td:nth-child(2),
.tags-table td:nth-child(3),
.tags-table td:nth-child(4) {
  width: 9%;
}
.tags-table td:last-child {
  width: auto;
  padding-left: 24px;
}
.tags-table .tag-form {
  margin: 0;
  gap: 8px;
  align-items: center;
}
.tags-table .tag-form input {
  min-width: 130px;
  flex: 1 1 160px;
  max-width: 260px;
}
/* Le nom et la famille se décident ensemble, sur une seule ligne tant qu'elle
   tient ; la liste reste plus étroite que le nom, qu'elle ne doit pas écraser. */
.tags-table .tag-form select {
  flex: 0 1 180px;
  min-width: 140px;
}
.tag-delete > summary {
  padding: 10px 0 2px;
  color: #a33447;
}
.tag-delete .stack {
  gap: 10px;
  max-width: 330px;
  margin: 8px 0 10px;
}
/* Sous-titre discret d'un groupe de fiches liées, par nature. */
.relation-group {
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 0;
}
.relation-group:first-of-type {
  margin-top: 8px;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 48px;
  }
  .header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
@media (max-width: 1440px) {
  .main,
  .nav-inner,
  .footer {
    margin-left: 42px;
    margin-right: 42px;
  }
  .header-inner {
    padding-left: 42px;
    padding-right: 42px;
  }
  .login-layout {
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    gap: 70px;
  }
  .nav-item {
    padding: 11px 14px;
  }
  .header-inner {
    gap: 24px;
  }
  .brand {
    gap: 18px;
  }
  .brand-copy strong {
    font-size: 23px;
  }
}
@media (max-width: 1100px) {
  .global-search {
    display: none;
  }
  .account {
    margin-left: auto;
  }
  .main,
  .nav-inner,
  .footer {
    margin-left: 28px;
    margin-right: 28px;
  }
  .header-inner {
    padding-left: 28px;
    padding-right: 28px;
  }
  .nav-item {
    font-size: 11px;
    gap: 7px;
    padding: 11px 12px;
  }
  .nav-item small {
    display: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .detail-panel {
    padding: 20px;
  }
  .catalogue-table td,
  .catalogue-table th {
    padding: 15px;
  }
  .catalogue-toolbar {
    flex-wrap: wrap;
  }
  .login-layout {
    gap: 45px;
  }
  .login-intro h1 {
    font-size: 34px;
  }
  .login-card {
    padding: 30px;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 28px;
  }
  /* Sur téléphone, l'en-tête défile avec la page et seule la navigation reste
     fixée : les deux ensemble prendraient un quart de l'écran. Le bloc colle
     donc avec un décalage égal à la hauteur de l'en-tête, mesurée par app.js. */
  html {
    scroll-padding-top: 120px;
  }
  .top-bar {
    top: calc(-1 * var(--header-height, 100px));
  }
  .header-inner {
    padding: 8px 20px;
    gap: 12px;
  }
  .brand {
    gap: 14px;
  }
  .brand img {
    width: 56px;
  }
  .brand-copy strong {
    font-size: 19px;
  }
  .brand-copy > span {
    font-size: 9px;
    max-width: 160px;
  }
  .brand-dot {
    font-size: 24px;
  }
  .account > span:not(.avatar) {
    display: none;
  }
  .account {
    gap: 4px;
  }
  .avatar {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
  .main-nav {
    overflow-x: auto;
  }
  .nav-inner {
    margin: 0;
    padding: 8px 16px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .nav-item {
    font-size: 11px;
    padding: 9px 12px;
  }
  .nav-item > span {
    font-size: 14px;
  }
  .main {
    margin: 0;
    padding: 26px 18px 38px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading > .button {
    padding: 9px 12px;
    font-size: 11px;
    min-width: 95px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .pills {
    padding: 4px;
    gap: 2px;
  }
  .pill {
    font-size: 12px;
    padding: 7px 14px;
  }
  .catalogue-toolbar {
    gap: 14px;
    margin-bottom: 18px;
  }
  .mode-switch {
    font-size: 10px;
  }
  .work-notice {
    font-size: 11px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 13px;
  }
  .work-notice > span:nth-child(2) {
    min-width: 220px;
  }
  .work-notice a {
    margin-left: 26px;
  }
  .filters {
    padding: 18px;
    gap: 12px;
  }
  .filters > .search-field {
    flex-basis: 100%;
  }
  .filters > label {
    min-width: 0;
    flex: 1 0 100%;
  }
  .filters > .filter-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .filters .button {
    font-size: 12px;
  }
  .list-heading {
    padding: 20px 18px 16px;
  }
  .list-heading h2 {
    font-size: 14px;
  }
  .catalogue-table thead {
    display: none;
  }
  .catalogue-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 10px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .catalogue-table td {
    padding: 0 !important;
    border: 0;
    width: auto !important;
  }
  .catalogue-table td:first-child {
    grid-column: 1/-1;
    padding-right: 22px !important;
  }
  .catalogue-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .catalogue-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .catalogue-table td:nth-child(4) {
    grid-column: 1/-1;
  }
  .catalogue-table td:last-child {
    display: none;
  }
  /* Les en-têtes disparaissent à l'empilement : chaque cellule dit sa colonne. */
  .catalogue-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 2px;
  }
  /* La page Tags porte des formulaires en dernière colonne : rien n'y est masqué. */
  .tags-table tbody tr {
    grid-template-columns: repeat(3, 1fr);
  }
  .tags-table td:first-child,
  .tags-table td:last-child {
    display: block;
    grid-column: 1/-1;
    grid-row: auto;
  }
  .tags-table td:nth-child(2),
  .tags-table td:nth-child(3),
  .tags-table td:nth-child(4) {
    display: block;
    grid-column: auto;
    grid-row: auto;
  }
  .row-title {
    font-size: 13px;
  }
  .pagination {
    padding: 16px;
    flex-wrap: wrap;
  }
  .footer {
    margin: 0 18px;
    flex-direction: column;
    gap: 8px;
    font-size: 9px;
    padding: 20px 0;
  }
  .bottom-note {
    font-size: 10px;
    align-items: flex-start;
  }
  .detail-grid {
    display: block;
  }
  .detail-heading {
    flex-direction: column;
  }
  .detail-heading h1 {
    font-size: 26px;
  }
  .detail-panel {
    padding: 20px;
  }
  .inline-info {
    flex-wrap: wrap;
    gap: 10px;
  }
  .form-panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-actions {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  .form-actions > div {
    width: 100%;
    justify-content: space-between;
  }
  .section-heading {
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .relation-row {
    gap: 10px;
  }
  .relation-row strong {
    font-size: 12px;
  }
  .relation-row .badge {
    font-size: 9px;
  }
  .review-row {
    padding: 18px;
  }
  .review-row-heading {
    gap: 10px;
    align-items: flex-start;
    /* Les badges passent à la ligne plutôt que de sortir de l'écran. */
    flex-wrap: wrap;
  }
  .review-title a {
    font-size: 12px;
  }
  .review-row-heading > .badge {
    font-size: 9px;
  }
  .review-comparison {
    margin-left: 0;
  }
  .batch-panel {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }
  .total-badge {
    min-width: 75px;
  }
  .total-badge strong {
    font-size: 27px;
  }
  .total-badge span {
    font-size: 10px;
    display: block;
    max-width: 90px;
  }
  .timeline {
    padding: 5px 18px 5px 26px;
  }
  .timeline-event {
    padding-left: 20px;
  }
  .event-diff {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 22px;
    max-width: 500px;
    margin: auto;
  }
  .login-intro h1 {
    font-size: 30px;
    margin: 14px 0;
  }
  .login-intro > p {
    font-size: 12px;
    line-height: 1.7;
  }
  .intro-bottom {
    display: none;
  }
  .login-card {
    padding: 28px 24px;
  }
  .login-card h2 {
    font-size: 21px;
  }
  .private-label {
    font-size: 10px;
  }
  .comparison table {
    min-width: 480px;
  }
  .error-page {
    margin: 0;
  }
  .error-page h1 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}

/* --- Zones repliables (macro `fold`) ------------------------------------- */
/* Un seul rendu partout : le titre de section est le `<summary>`, la flèche est
   dessinée en CSS (aucune image) et pivote à l'ouverture. */
details.fold {
  margin: 0;
}
details.fold > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
details.fold > summary::-webkit-details-marker {
  display: none;
}
details.fold > summary::before {
  content: '';
  flex: none;
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
details.fold[open] > summary::before {
  transform: rotate(90deg);
}
details.fold > summary:hover::before {
  opacity: 1;
}
.fold-title {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 16px;
}
h3.fold-title,
h4.fold-title {
  font-size: 13px;
}
.fold-title .muted {
  font-size: 11px;
  font-weight: 400;
}
.fold-body {
  padding-top: 14px;
}
/* Panneau de filtres replié en tête d'une liste : le bandeau garde sa place et
   sa ligne de séparation ; les champs ne s'affichent que déplié. */
details.fold.filters-fold {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
details.fold.filters-fold > .fold-body {
  padding-top: 0;
}
details.fold.filters-fold .filters {
  padding: 14px 0 4px;
  border-bottom: 0;
}
/* Section repliable qui remplit un panneau : elle porte elle-même sa marge. */
details.fold.panel-fold {
  padding: 16px 24px 20px;
}

/* Menu déroulant natif (details) : un bouton, une liste de liens en dessous.
   Se referme au clic hors du menu ou à Échap (app.js). */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 180px;
  display: grid; padding: 6px; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.menu-list a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: inherit; font-size: 13px; }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--bg); }

/* Bandeau des recherches : une ligne par recherche suivie, entre la navigation
   et le contenu. Reprend la boîte `.notice` (et `.notice.success` pour une
   recherche finie) : le sens est porté par le mot « en cours » ou « terminée »
   de la phrase, jamais par la seule couleur. Rempli par bandeau.js ; vide, il
   reste masqué, d'où la règle [hidden] que `display: flex` effacerait. */
.research-banner {
  max-width: 1356px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.research-banner[hidden] {
  display: none;
}
.research-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 0;
  padding: 11px 16px;
}
.research-mark {
  margin-right: 8px;
  font-size: 15px;
  line-height: 1;
}
/* Un titre de secteur très long passe à la ligne plutôt que de déborder. */
.research-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.research-line a {
  font-weight: 600;
  white-space: nowrap;
}
.research-close {
  margin-left: auto;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.research-close:hover {
  color: var(--ink);
}
@media (max-width: 1440px) {
  .research-banner {
    margin-left: 42px;
    margin-right: 42px;
  }
}
@media (max-width: 1100px) {
  .research-banner {
    margin-left: 28px;
    margin-right: 28px;
  }
}
@media (max-width: 760px) {
  /* Gouttières de 16 px sur téléphone : la ligne se replie, rien ne déborde. */
  .research-banner {
    margin: 12px 16px 0;
  }
  /* Sur téléphone, la ligne redevient du texte qui coule : l'icône, la phrase,
     le lien et la croix se suivent et passent à la ligne comme une phrase. */
  .research-line {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
  }
  .research-arrow {
    margin: 0 5px;
  }
  .research-close {
    margin-left: 8px;
    vertical-align: middle;
  }
}

/* Fenêtres « Nouveautés » : ce qu'une recherche vient de proposer, en bas à
   droite, empilées et à 16 px des bords. Elles ne remplacent pas la page de la
   recherche : elles disent qu'il y a quelque chose à décider, et le décident
   d'un clic. Remplies par bandeau.js ; sans JavaScript, la pile reste vide. */
.finding-toasts {
  /* En bas : jamais sur la navigation ni sur le bouton principal d'une page. */
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(330px, calc(100vw - 32px));
  /* La pile ne capte aucun clic : seules les fenêtres en reçoivent, jamais
     l'espace qui les sépare. */
  pointer-events: none;
}
.finding-toasts[hidden] {
  display: none;
}
.finding-toast {
  pointer-events: auto;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 38px 12px 14px;
  box-shadow: 0 8px 24px rgb(32 35 33 / 12%);
  display: grid;
  gap: 8px;
}
.finding-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.finding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.finding-actions form {
  margin: 0;
}
.finding-close {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.finding-close:hover {
  color: var(--ink);
}
/* Barre du temps restant avant la fermeture automatique : elle se remplit de
   gauche à droite dans le jaune de la charte, et se fige au survol comme au
   focus clavier. */
.finding-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold-soft);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.finding-timer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left;
  background: var(--gold);
  animation: finding-timer linear forwards;
  animation-duration: inherit;
}
@keyframes finding-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.finding-toast:hover .finding-timer::after,
.finding-toast:focus-within .finding-timer::after {
  animation-play-state: paused;
}
@media (max-width: 760px) {
  /* Sur téléphone, pleine largeur moins les gouttières de 16 px. */
  .finding-toasts {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

/* Page Prompts : le texte fixe tel qu'envoyé, les variables en évidence. */
.prompt-texte {
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font: 12.5px/1.65 ui-monospace, Menlo, monospace;
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 10px 0 0;
}
.prompt-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
}
.prompt-vars var,
.prompt-gabarit var {
  font-style: normal;
  background: #fcf3e3;
  color: #8a5e14;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 12px;
}
.prompt-gabarit {
  display: inline-block;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  margin: 2px 0;
}

/* Modale de modification : le formulaire du serveur, ouvert sur place. */
dialog.modale {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px 24px;
  background: var(--bg, #faf9f6);
}
dialog.modale::backdrop {
  background: rgba(28, 28, 26, 0.45);
}
.modale-fermer {
  position: sticky;
  top: 0;
  float: right;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
}
dialog.modale .page-heading {
  margin-top: 0;
}

/* Une ligne marquée data-ligne-lien s'ouvre d'un clic n'importe où. */
[data-ligne-lien] {
  cursor: pointer;
}
