/* ==========================================================================
   Intendances du 76 — feuille de style unique.

   Aucune dépendance externe : le logiciel Windows doit s'afficher à
   l'identique sans accès internet. Tout est donc servi localement.
   ========================================================================== */

/* --- Jetons --------------------------------------------------------------- */

:root {
  --navy-900: #0b2545;
  --navy-800: #0f2f5f;
  --navy-700: #16406f;
  --navy-600: #1e5aa8;
  --navy-500: #2f76cc;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  --white: #ffffff;
  --page:  #eef2f7;

  --emerald: #059669; --emerald-soft: #d1fae5; --emerald-ink: #065f46;
  --sky:     #0284c7; --sky-soft:     #e0f2fe; --sky-ink:     #075985;
  --indigo:  #4f46e5; --indigo-soft:  #e0e7ff; --indigo-ink:  #3730a3;
  --violet:  #7c3aed; --violet-soft:  #ede9fe; --violet-ink:  #5b21b6;
  --fuchsia: #c026d3; --fuchsia-soft: #fae8ff; --fuchsia-ink: #86198f;
  --amber:   #d97706; --amber-soft:   #fef3c7; --amber-ink:   #92400e;
  --orange:  #ea580c; --orange-soft:  #ffedd5; --orange-ink:  #9a3412;
  --rose:    #e11d48; --rose-soft:    #ffe4e6; --rose-ink:    #9f1239;
  --teal:    #0d9488; --teal-soft:    #ccfbf1; --teal-ink:    #115e59;
  --slate:   #64748b; --slate-soft:   #e2e8f0; --slate-ink:   #334155;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 2px 8px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

  --sidebar-width: 268px;
  --topbar-height: 62px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

/* --- Réinitialisation ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--page);
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Structure ------------------------------------------------------------ */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, #123a6e 100%);
  color: #dbe7f7;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 8px; }

.sidebar__brand {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar__mark {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, .45);
}
.sidebar__title { font-size: 15px; font-weight: 650; color: #fff; line-height: 1.25; }
.sidebar__subtitle { font-size: 11.5px; color: #9fbce4; margin-top: 2px; }

.sidebar__nav { padding: 14px 12px 20px; flex: 1; }
.sidebar__group + .sidebar__group { margin-top: 16px; }
.sidebar__group-title {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.1px;
  color: #7fa3d4; font-weight: 700; padding: 0 10px 7px;
}

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #cddcf1;
  font-size: 13.8px;
  font-weight: 500;
  transition: background .13s ease, color .13s ease;
}
.nav-link:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.nav-link.is-active { background: rgba(59,130,246,.25); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #60a5fa; }
.nav-link svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .92; }
.nav-link__badge {
  margin-left: auto;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
}

.sidebar__footer {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11.5px;
  color: #8fb0dc;
}

/* --- Zone principale ------------------------------------------------------ */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__toggle {
  display: none;
  background: none; border: 1px solid var(--ink-200);
  border-radius: 8px; width: 38px; height: 38px;
  cursor: pointer; place-items: center;
}
.topbar__crumb { font-size: 13px; color: var(--ink-500); }
.topbar__crumb strong { color: var(--ink-900); font-weight: 600; }
.topbar__spacer { flex: 1; }

.topbar__user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
}
.topbar__user-name { font-size: 13px; font-weight: 600; line-height: 1.15; }
.topbar__user-role { font-size: 11.5px; color: var(--ink-500); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800));
  color: #fff; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
}

.content { padding: 24px; flex: 1; max-width: 1560px; width: 100%; }

/* --- En-tête de page ------------------------------------------------------ */

.page-head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.page-head__title { font-size: 23px; font-weight: 680; letter-spacing: -.3px; }
.page-head__subtitle { color: var(--ink-500); font-size: 13.8px; margin-top: 3px; }
.page-head__actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* --- Cartes --------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card__head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card__title { font-size: 15px; font-weight: 640; }
.card__hint { font-size: 12.5px; color: var(--ink-500); }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }
.card__foot {
  padding: 13px 18px; border-top: 1px solid var(--ink-200);
  background: var(--ink-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
}

/* --- Grilles -------------------------------------------------------------- */

.grid { display: grid; gap: 16px; }
.grid--apps  { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid--2     { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }

@media (max-width: 1100px) {
  .grid--split { grid-template-columns: 1fr; }
}

/* --- Tuiles d'applications ------------------------------------------------ */

.app-tile {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 17px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 13px; align-items: flex-start;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.app-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; border-color: var(--ink-300); }
.app-tile__icon { width: 42px; height: 42px; border-radius: 11px; flex: 0 0 42px; display: grid; place-items: center; }
.app-tile__icon svg { width: 20px; height: 20px; }
.app-tile__name { font-size: 14.5px; font-weight: 640; color: var(--ink-900); }
.app-tile__desc { font-size: 12.8px; color: var(--ink-500); margin-top: 3px; line-height: 1.45; }

/* --- Pastilles colorées --------------------------------------------------- */

.tone-emerald { background: var(--emerald-soft); color: var(--emerald-ink); }
.tone-sky     { background: var(--sky-soft);     color: var(--sky-ink); }
.tone-indigo  { background: var(--indigo-soft);  color: var(--indigo-ink); }
.tone-violet  { background: var(--violet-soft);  color: var(--violet-ink); }
.tone-fuchsia { background: var(--fuchsia-soft); color: var(--fuchsia-ink); }
.tone-amber   { background: var(--amber-soft);   color: var(--amber-ink); }
.tone-orange  { background: var(--orange-soft);  color: var(--orange-ink); }
.tone-rose    { background: var(--rose-soft);    color: var(--rose-ink); }
.tone-teal    { background: var(--teal-soft);    color: var(--teal-ink); }
.tone-slate   { background: var(--slate-soft);   color: var(--slate-ink); }

/* --- Badges --------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 640;
  white-space: nowrap;
  line-height: 1.5;
}
.badge--dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .75;
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8.5px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13.6px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--ink-700);
  border-color: var(--ink-200);
  transition: background .13s ease, border-color .13s ease, color .13s ease, box-shadow .13s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--ink-50); border-color: var(--ink-300); }
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--navy-600); border-color: var(--navy-600); color: #fff; box-shadow: 0 1px 3px rgba(30,90,168,.35); }
.btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn--success { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.btn--success:hover { background: var(--emerald-ink); border-color: var(--emerald-ink); color: #fff; }

.btn--danger { background: var(--white); border-color: #fca5a5; color: var(--rose-ink); }
.btn--danger:hover { background: #fef2f2; border-color: var(--rose); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-600); }
.btn--ghost:hover { background: var(--ink-100); }

.btn--sm { padding: 5.5px 11px; font-size: 12.6px; border-radius: 7px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { padding: 11px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row--tight { flex-wrap: nowrap; }

/* --- Formulaires ---------------------------------------------------------- */

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: block;
  font-size: 12.6px;
  font-weight: 620;
  color: var(--ink-700);
  margin-bottom: 5px;
}
.field__label .req { color: var(--rose); margin-left: 2px; }
.field__hint { font-size: 12px; color: var(--ink-500); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%;
  padding: 8.5px 11px;
  border: 1px solid var(--ink-300);
  border-radius: 9px;
  background: var(--white);
  font-size: 14px;
  transition: border-color .13s ease, box-shadow .13s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(47,118,204,.16);
}
.textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field--full { grid-column: 1 / -1; }

.check {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s ease;
}
.check:hover { background: var(--ink-50); }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 16px;
  accent-color: var(--navy-600); cursor: pointer;
}
.check__label { display: block; font-size: 13.4px; font-weight: 520; }
.check__desc { display: block; font-size: 12px; color: var(--ink-500); margin-top: 1px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-100);
}
.switch-row:last-child { border-bottom: 0; }

/* --- Barre de filtres ----------------------------------------------------- */

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
}
.filters .field { margin-bottom: 0; }
.filters__search { flex: 1 1 240px; min-width: 190px; }
.filters__item { flex: 0 1 172px; }

/* --- Tableaux ------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.table { width: 100%; border-collapse: collapse; font-size: 13.6px; }
.table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
  font-size: 11.6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--ink-500);
  font-weight: 700;
  white-space: nowrap;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--ink-50); }
.table__actions { text-align: right; white-space: nowrap; }
.table__main { font-weight: 600; color: var(--ink-900); }
.table__sub { font-size: 12.2px; color: var(--ink-500); margin-top: 1px; }
.table--fixed { table-layout: fixed; }
.nowrap { white-space: nowrap; }
.numeric { font-variant-numeric: tabular-nums; }

/* --- État vide ------------------------------------------------------------ */

.empty { padding: 44px 22px; text-align: center; color: var(--ink-500); }
.empty svg { width: 38px; height: 38px; color: var(--ink-300); margin: 0 auto 12px; }
.empty__title { font-size: 15px; font-weight: 620; color: var(--ink-700); margin-bottom: 4px; }
.empty__text { font-size: 13.2px; max-width: 420px; margin: 0 auto; }

/* --- Messages ------------------------------------------------------------- */

.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 15px;
  border-radius: var(--radius);
  font-size: 13.6px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.alert--success { background: var(--emerald-soft); color: var(--emerald-ink); border-color: #6ee7b7; }
.alert--error   { background: var(--rose-soft);    color: var(--rose-ink);    border-color: #fda4af; }
.alert--info    { background: var(--sky-soft);     color: var(--sky-ink);     border-color: #7dd3fc; }
.alert--warning { background: var(--amber-soft);   color: var(--amber-ink);   border-color: #fcd34d; }

/* --- Fil d'activité ------------------------------------------------------- */

.feed { display: flex; flex-direction: column; }
.feed__item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--ink-100); }
.feed__item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed__item:first-child { padding-top: 0; }
.feed__dot { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px; display: grid; place-items: center; }
.feed__dot svg { width: 14px; height: 14px; }
.feed__label { font-size: 13.2px; line-height: 1.45; }
.feed__meta { font-size: 11.8px; color: var(--ink-400); margin-top: 1px; }

/* --- Listes d'alertes ----------------------------------------------------- */

.alert-list__item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
  background: var(--white);
  font-size: 13.4px;
  margin-bottom: 8px;
  transition: border-color .13s ease, box-shadow .13s ease;
}
.alert-list__item:hover { border-color: var(--ink-300); box-shadow: var(--shadow-sm); text-decoration: none; }
.alert-list__item:last-child { margin-bottom: 0; }
.alert-list__pin { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: currentColor; }

/* --- Matrice des droits --------------------------------------------------- */

.perm-app {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  margin-bottom: 11px;
  overflow: hidden;
}
.perm-app__head {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
}
.perm-app__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 30px; }
.perm-app__icon svg { width: 15px; height: 15px; }
.perm-app__name { font-size: 13.8px; font-weight: 640; }
.perm-app__desc { font-size: 11.8px; color: var(--ink-500); }
.perm-app__toggle { margin-left: auto; }
.perm-app__body {
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.perm-flag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ink-400); margin-left: 6px;
}

/* --- Code digicode -------------------------------------------------------- */

.code-display {
  background: linear-gradient(135deg, var(--emerald-ink) 0%, var(--emerald) 100%);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  color: #fff;
}
.code-display__label {
  font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase;
  font-weight: 700; opacity: .88;
}
.code-display__value {
  background: #fff;
  color: var(--emerald-ink);
  font-family: var(--mono);
  font-size: clamp(38px, 8vw, 58px);
  font-weight: 700;
  letter-spacing: clamp(6px, 2vw, 12px);
  padding: 16px 10px 16px 22px;
  border-radius: var(--radius);
  margin: 13px auto 0;
  max-width: 430px;
  line-height: 1.1;
}
.code-display__hint { font-size: 12.5px; margin-top: 11px; opacity: .88; }
.code-display--muted { background: linear-gradient(135deg, #475569, #64748b); }
.code-display--muted .code-display__value { color: var(--ink-700); }

.code-chip {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  padding: 3px 9px 3px 11px;
  display: inline-block;
}

/* --- Résultats de sondage ------------------------------------------------- */

.result { margin-bottom: 13px; }
.result:last-child { margin-bottom: 0; }
.result__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.4px; margin-bottom: 5px; }
.result__label { font-weight: 560; }
.result__count { color: var(--ink-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__track { height: 9px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.result__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-500), var(--navy-600)); transition: width .3s ease; }
.result--winner .result__fill { background: linear-gradient(90deg, #34d399, var(--emerald)); }

/* --- Atelier de placement du tampon (devis) -------------------------------- */

.stamp-workspace { position: relative; }

.stamp-status {
  font-size: 12.8px;
  color: var(--ink-500);
  padding: 8px 11px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.stamp-status--error { background: var(--rose-soft); color: var(--rose-ink); border-color: #fda4af; }

/* Le cadre défile : un devis de dix pages ne doit pas allonger la page entière. */
.stamp-stage {
  position: relative;
  max-height: 74vh;
  min-height: 420px;
  overflow: auto;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 16px;
  overscroll-behavior: contain;
}

.stamp-pages {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
}

.pdf-page {
  position: relative;
  width: max-content;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .16);
  line-height: 0;
}
.pdf-page__label {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(15, 23, 42, .7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 20px;
  pointer-events: none;
}

/* Vignettes déplaçables : le contour n'apparaît qu'au survol, pour ne pas
   masquer le rendu réel du tampon et de la signature. */
.stamp-item {
  position: absolute;
  top: 0; left: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: 1.5px dashed transparent;
  outline-offset: 3px;
  border-radius: 2px;
  z-index: 5;
  line-height: 1.25;
}
.stamp-item img { width: 100%; height: auto; display: block; pointer-events: none; }
.stamp-item:hover,
.stamp-item:focus-visible { outline-color: var(--navy-500); }
.stamp-item.is-dragging {
  cursor: grabbing;
  outline-color: var(--navy-600);
  outline-style: solid;
  z-index: 6;
}
.stamp-item[hidden] { display: none; }

.stamp-item--text {
  white-space: pre-line;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--emerald-ink);
  padding: 1px 2px;
}

/* Le bloc « réglage numérique » est un <details> : on lui redonne une flèche,
   que `display:flex` sur le résumé fait disparaître. */
details > summary.card__head { list-style: none; }
details > summary.card__head::-webkit-details-marker { display: none; }
details > summary.card__head::after {
  content: '';
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-400);
  border-bottom: 2px solid var(--ink-400);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
details[open] > summary.card__head::after { transform: rotate(-135deg) translateY(-2px); }

/* --- Tableaux : consultation ---------------------------------------------- */

.table--data td { vertical-align: top; }
.data-table__index {
  width: 44px;
  text-align: right;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  font-size: 12.2px;
  user-select: none;
}
/* Les répertoires contiennent des cellules multilignes (plusieurs numéros de
   téléphone) : les retours à la ligne saisis doivent rester visibles. */
.data-table__cell { white-space: pre-line; max-width: 420px; }

.data-table__sort {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-transform: inherit;
  letter-spacing: inherit; cursor: pointer; text-align: left;
  width: 100%;
}
.data-table__sort:hover { color: var(--navy-600); }
.data-table__arrow {
  width: 0; height: 0; flex: 0 0 auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-300);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
}
.data-table__sort:hover .data-table__arrow { opacity: .5; }
.data-table__sort.is-asc .data-table__arrow,
.data-table__sort.is-desc .data-table__arrow { opacity: 1; border-top-color: var(--navy-600); }
.data-table__sort.is-asc .data-table__arrow { transform: rotate(180deg); }

/* --- Tableaux : éditeur --------------------------------------------------- */

.grid-editor {
  overflow: auto;
  max-height: 68vh;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.grid-editor__table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 13.4px;
}

/* En-tête et colonne des numéros restent visibles pendant le défilement :
   sur trente lignes, on perd sinon de vue à quelle colonne on saisit. */
.grid-editor__table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
  padding: 0;
}
.grid-editor__corner {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 46px;
  background: var(--ink-100);
  border-right: 1px solid var(--ink-200);
}
.grid-editor__head { min-width: 180px; position: relative; }
.grid-editor__title {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 26px 10px 11px;
  font-weight: 640;
  font-size: 12.6px;
  color: var(--ink-700);
}
.grid-editor__title:focus { outline: 2px solid var(--navy-500); outline-offset: -2px; background: #fff; }

.grid-editor__rownum {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 46px;
  background: var(--ink-50);
  border-right: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-400);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  vertical-align: top;
  padding: 9px 4px;
}

.grid-editor__drop {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  border: 0; border-radius: 4px;
  background: transparent;
  color: var(--ink-400);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s ease, background .12s ease;
}
.grid-editor__head:hover .grid-editor__drop,
.grid-editor__rownum:hover .grid-editor__drop,
.grid-editor__drop:focus-visible { opacity: 1; }
.grid-editor__drop:hover { background: var(--rose-soft); color: var(--rose-ink); }

.grid-editor__cell {
  padding: 0;
  vertical-align: top;
  border-bottom: 1px solid var(--ink-100);
  border-right: 1px solid var(--ink-100);
  min-width: 180px;
}
.grid-editor__cell textarea {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  resize: none;
  overflow: hidden;
  font: inherit;
  line-height: 1.45;
  display: block;
}
.grid-editor__cell textarea:focus {
  outline: 2px solid var(--navy-500);
  outline-offset: -2px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.grid-editor__table tbody tr:nth-child(even) .grid-editor__cell { background: var(--ink-50); }
.grid-editor__table tbody tr:hover .grid-editor__cell { background: #f4f8ff; }

@media print {
  .data-table__index, .data-table__arrow { display: none; }
  .table--data { font-size: 11px; }
  .table--data th { background: #e8edf5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Divers --------------------------------------------------------------- */

.muted { color: var(--ink-500); }
.small { font-size: 12.4px; }
.strong { font-weight: 640; }
.mono { font-family: var(--mono); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

.divider { height: 1px; background: var(--ink-200); margin: 18px 0; border: 0; }

.inline-form { display: inline; }

.nav-scrim { display: none; }

.rich-text { font-size: 13.8px; line-height: 1.65; color: var(--ink-700); }
.rich-text p { margin: 0 0 9px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 9px; padding-left: 20px; list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 3px; }
.rich-text strong { font-weight: 660; color: var(--ink-900); }
.rich-text a { color: var(--navy-600); text-decoration: underline; }
.rich-text table { border-collapse: collapse; width: 100%; margin-bottom: 9px; }
.rich-text th, .rich-text td { border: 1px solid var(--ink-200); padding: 6px 9px; }

/* --- Accordéon (FAQ) ------------------------------------------------------ */

.accordion__item { border-bottom: 1px solid var(--ink-200); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__head {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: none; border: 0; cursor: pointer;
  text-align: left;
}
.accordion__head:hover { background: var(--ink-50); }
.accordion__question { font-size: 14px; font-weight: 600; flex: 1; }
.accordion__chevron { transition: transform .18s ease; color: var(--ink-400); flex: 0 0 auto; }
.accordion__item.is-open .accordion__chevron { transform: rotate(180deg); }
.accordion__panel { padding: 0 18px 16px 18px; display: none; }
.accordion__item.is-open .accordion__panel { display: block; }

/* --- Page de connexion ---------------------------------------------------- */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  background: var(--page);
}
/* Photo de la façade du 76, reprise de l'ancien site. Le dégradé posé
   par-dessus n'est pas décoratif : sans lui, le texte blanc devient illisible
   sur la pierre claire du bâtiment. */
.login__hero {
  /* Le dégradé est orienté vers la droite : dense là où se trouve le texte,
     transparent vers le bord où la façade peut se lire. */
  background:
    linear-gradient(103deg,
      rgba(9,32,61,.95) 0%,
      rgba(12,40,76,.88) 38%,
      rgba(17,52,99,.66) 72%,
      rgba(23,66,124,.48) 100%),
    url('/static/img/facade-76.jpg') center 55% / cover no-repeat;
  background-color: var(--navy-900);
  color: #fff;
  padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login__hero-title { font-size: 34px; font-weight: 700; line-height: 1.18; letter-spacing: -.6px; max-width: 540px; }
.login__hero-text { color: #b9d0ef; font-size: 15px; margin-top: 14px; max-width: 470px; line-height: 1.65; }
.login__features { display: grid; gap: 10px; margin-top: 30px; max-width: 470px; }
.login__feature { display: flex; gap: 11px; align-items: center; font-size: 13.8px; color: #d6e5f8; }
.login__feature svg { width: 17px; height: 17px; color: #7dd3fc; flex: 0 0 17px; }

.login__panel {
  background: var(--white);
  padding: 52px 46px;
  display: flex; flex-direction: column; justify-content: center;
}
.login__form { width: 100%; max-width: 360px; margin: 0 auto; }
.login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.login__title { font-size: 21px; font-weight: 680; margin-bottom: 5px; }
.login__subtitle { color: var(--ink-500); font-size: 13.6px; margin-bottom: 26px; }

@media (max-width: 980px) {
  /* Sur téléphone, la colonne de présentation devient un bandeau : la façade
     reste visible, mais ne pousse pas le formulaire hors de l'écran. */
  .login { grid-template-columns: 1fr; align-content: start; }
  .login__hero {
    padding: 26px 22px;
    min-height: 168px;
    justify-content: flex-end;
    background-position: center 62%;
  }
  .login__hero-title { font-size: 22px; }
  .login__hero-text,
  .login__features,
  .login__hero > .small { display: none; }
  .login__panel { padding: 30px 22px 44px; }
}

/* --- Page publique (sondage) ---------------------------------------------- */

.public-page { max-width: 660px; margin: 0 auto; padding: 32px 18px 56px; }
.public-head {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 26px 26px 22px;
}
.public-head__site { font-size: 12.5px; opacity: .85; }
.public-head__title { font-size: 22px; font-weight: 680; margin-top: 6px; line-height: 1.3; }

.option-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color .13s ease, background .13s ease;
}
.option-card:hover { border-color: var(--navy-500); background: #f6faff; }
.option-card input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy-600); cursor: pointer; }
.option-card__text { font-size: 14.2px; font-weight: 560; }
.option-card__sub { font-size: 12.4px; color: var(--ink-500); margin-top: 1px; }

/* --- Impression ----------------------------------------------------------- */

@media print {
  .sidebar, .topbar, .page-head__actions, .btn, .filters, .card__foot { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-scrim {
    display: block;
    position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 50;
  }
  .topbar__toggle { display: grid; }
  .content { padding: 16px; }
}

@media (max-width: 640px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head__actions .btn { flex: 1; }
  .topbar { padding: 0 14px; }
  .topbar__user-text { display: none; }
  .card__body { padding: 14px; }
}

/* --- Envoi d'une tâche : type de message et planification ----------------- */
.mail-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mail-kinds .option-card { margin: 0; }
.mail-when { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mail-schedule { margin-top: 10px; max-width: 320px; }
@media (max-width: 640px) { .mail-kinds { grid-template-columns: 1fr; } }

/* --- Annuaire téléphonique ------------------------------------------------ */

.annuaire-table .annuaire-num { text-align: center; width: 92px; font-variant-numeric: tabular-nums; }
.annuaire-table__section th {
  background: var(--sky-soft); color: var(--sky-ink);
  font-size: 13.4px; text-transform: none; letter-spacing: 0;
  border-top: 1px solid var(--ink-200);
}
.annuaire-table tbody[hidden] { display: none; }
.annuaire-sigle { background: var(--ink-100); color: var(--ink-600); margin-left: 6px; font-size: 10.8px; }

.annuaire-sous-titre { font-size: 14px; font-weight: 640; margin: 22px 0 6px; }

.annuaire-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-top: 18px;
}

.annuaire-section { margin-top: 12px; }
.card + .annuaire-section, .annuaire-section + .annuaire-section { margin-top: 12px; }
.annuaire-section__head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 6px;
}
.annuaire-section__toggle {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 6px; text-align: left; cursor: pointer;
  border-radius: 8px; color: inherit; font: inherit;
}
.annuaire-section__toggle:hover { background: var(--ink-50); }
.annuaire-section__toggle svg { width: 16px; height: 16px; flex: none; color: var(--ink-400); transition: transform .15s ease; }
.annuaire-section.is-open .annuaire-section__toggle svg { transform: rotate(90deg); }
.annuaire-section__title { font-weight: 640; font-size: 14.6px; margin-right: 10px; }
.annuaire-section__meta { font-size: 12.4px; color: var(--ink-500); }
.annuaire-section__body { display: none; border-top: 1px solid var(--ink-200); }
.annuaire-section.is-open .annuaire-section__body { display: block; }
.annuaire-section__fields { padding: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.annuaire-section__fields .field { margin: 0; }
.annuaire-section__note { grid-column: span 2; }
.annuaire-section__foot { padding: 10px 16px 14px; }

.annuaire-check { display: flex; align-items: center; gap: 8px; font-size: 13.2px; padding-bottom: 9px; cursor: pointer; }

.annuaire-grid-wrap { overflow-x: auto; border-top: 1px solid var(--ink-200); }
.annuaire-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.annuaire-grid th {
  text-align: left; font-size: 11.4px; font-weight: 640; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .3px;
  padding: 8px 4px; background: var(--ink-50); white-space: nowrap;
}
.annuaire-grid th:first-child, .annuaire-grid td:first-child { padding-left: 14px; }
.annuaire-grid td { padding: 3px 3px; border-bottom: 1px solid var(--ink-100); }
.annuaire-grid tr[hidden] { display: none; }
.annuaire-grid .input, .annuaire-grid .select { padding: 6px 8px; font-size: 13px; border-radius: 7px; min-width: 120px; }
.annuaire-grid .select { padding-right: 26px; background-position: right 7px center; }
.annuaire-grid .annuaire-input--nom { min-width: 180px; }
.annuaire-grid .annuaire-input--fonction { min-width: 220px; }
.annuaire-grid .annuaire-input--num { min-width: 64px; width: 72px; text-align: center; }
.annuaire-grid .annuaire-input--court { min-width: 70px; width: 90px; }
.annuaire-grid .annuaire-input--tel { min-width: 110px; width: 124px; }
.annuaire-grid__actions { white-space: nowrap; text-align: right; padding-right: 10px !important; }
.annuaire-grid .annuaire-move { min-width: 0; width: 46px; padding: 5px 4px; display: inline-block; vertical-align: middle; color: var(--ink-500); }
.annuaire-grid--etages { max-width: 560px; }
.annuaire-grid--etages td:first-child { width: 60%; }
.annuaire-grid--etages .select { min-width: 170px; }

.annuaire-icon-btn { padding: 5px 6px; }
.annuaire-icon-btn svg { width: 14px; height: 14px; }
.annuaire-icon-btn--danger:hover { background: var(--rose-soft); color: var(--rose-ink); }

.annuaire-add { margin: 14px 0; }

.annuaire-savebar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 16px; margin-top: 8px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(4px);
  border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  box-shadow: 0 -4px 16px rgba(15,23,42,.06);
}

@media (max-width: 640px) {
  .annuaire-section__note { grid-column: auto; }
}

/* Assistant de rédaction (envoi de l'annuaire) */
.annuaire-ia {
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--sky-soft); border: 1px solid #bae6fd; border-radius: var(--radius);
}
.annuaire-ia[hidden], .annuaire-ia__etat[hidden], [data-ia-annuler][hidden] { display: none; }
.annuaire-ia__etat {
  margin-bottom: 12px; padding: 8px 12px; border-radius: 8px;
  background: var(--emerald-soft); color: var(--emerald-ink);
}
.annuaire-ia__etat.is-error { background: var(--rose-soft); color: var(--rose-ink); }

/* --- Mise à jour de l'annuaire par les responsables ------------------------- */

.public-page--large { max-width: 880px; }

.maj-service { margin-top: 22px; }
.maj-service__titre { font-size: 16px; font-weight: 660; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--navy-600); }

.maj-liste { display: flex; flex-direction: column; gap: 10px; }
.maj-fiche { border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 10px 12px 12px; background: #fff; }
.maj-fiche.is-nouvelle { border-color: #6ee7b7; background: #f3fdf8; }
.maj-fiche.is-retiree { background: var(--ink-50); border-style: dashed; }
.maj-fiche.is-retiree .maj-fiche__champs { opacity: .55; }
.maj-fiche.is-retiree .maj-fiche__nom { text-decoration: line-through; color: var(--ink-500); }
.maj-fiche__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.maj-fiche__nom { font-weight: 640; font-size: 14.4px; }
.maj-fiche__etat { font-size: 11.8px; font-weight: 600; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--emerald-soft); color: var(--emerald-ink); }
.maj-fiche.is-retiree .maj-fiche__etat { background: var(--rose-soft); color: var(--rose-ink); }
.maj-fiche__actions { display: flex; gap: 4px; flex-wrap: wrap; }
.maj-fiche__actions .btn { padding: 4px 9px; }
.maj-retirer:hover { background: var(--rose-soft); color: var(--rose-ink); }
.maj-fiche__champs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; }
.maj-champ { margin: 0; grid-column: span 2; }
.maj-champ--large { grid-column: span 3; }
.maj-champ--num { grid-column: span 1; }
.maj-champ .input { padding: 7px 9px; font-size: 13.6px; }
.maj-champ.is-modifie .input { border-color: var(--amber); background: #fffbeb; }
.maj-avant { display: block; font-size: 11.6px; color: var(--amber-ink); margin-top: 2px; overflow-wrap: anywhere; }
.maj-ajout { margin-top: 10px; }
.maj-indice { color: var(--amber-ink); margin: 6px 0 0; }
.maj-indice[hidden] { display: none; }
.maj-boutons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.maj-lecture { margin: 0; padding-left: 18px; font-size: 13.6px; line-height: 1.8; }
.maj-lecture .muted { margin-left: 6px; font-size: 12.4px; }

@media (max-width: 640px) {
  .maj-fiche__champs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maj-champ, .maj-champ--large { grid-column: span 2; }
  .maj-champ--num { grid-column: span 1; }
  .maj-boutons .btn { width: 100%; }
}

.maj-destinataires { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.maj-destinataires li { padding-bottom: 8px; border-bottom: 1px solid var(--ink-100); }
.maj-destinataires .muted { margin-left: 6px; }

.maj-bilan { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.maj-bilan__case { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 10px 12px; font-size: 12.6px; color: var(--ink-600); }
.maj-bilan__nombre { display: block; font-size: 22px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.maj-bilan__case--alerte { border-color: #fcd34d; background: var(--amber-soft); }
@media (max-width: 760px) { .maj-bilan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.maj-echec { color: var(--rose-ink); font-weight: 600; }
[data-copier].is-copie { background: var(--emerald-soft); border-color: #6ee7b7; }

.maj-examen { margin-top: 14px; }
.maj-diff td { vertical-align: top; font-size: 13px; }
.maj-diff del { color: var(--rose-ink); background: var(--rose-soft); text-decoration: line-through; padding: 0 3px; border-radius: 3px; }
.maj-diff ins { color: var(--emerald-ink); background: var(--emerald-soft); text-decoration: none; padding: 0 3px; border-radius: 3px; }
.maj-ligne--ajout { background: #f3fdf8; }
.maj-ligne--retrait { background: #fff5f6; }
.maj-type { font-weight: 640; font-size: 11.8px; }
.maj-ligne--ajout .maj-type { color: var(--emerald-ink); }
.maj-ligne--retrait .maj-type { color: var(--rose-ink); }
.maj-ligne--modif .maj-type { color: var(--amber-ink); }
.maj-correction { padding: 14px 16px 0; border-top: 1px solid var(--ink-200); }
.maj-correction[hidden], [data-maj-ouvrir][hidden] { display: none; }

/* Synchronisation des campagnes avec le serveur (logiciel Windows) */
.maj-sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 6px 12px; border-radius: var(--radius); background: var(--sky-soft); color: var(--sky-ink); }
.maj-sync[hidden] { display: none; }
.maj-sync.is-erreur { background: var(--amber-soft); color: var(--amber-ink); }
.maj-sync .btn { margin-left: auto; }
