/* --------------------------------------------------------------------------
   Design system — interface admin Pemsa group
   -------------------------------------------------------------------------- */

:root {
  --font: "Istok Web", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #f1f3f7;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-text: #3730a3;
  --ok-bg: #ecfdf5;
  --ok-text: #047857;
  --ok-border: rgba(16, 185, 129, 0.25);
  --err-bg: #fef2f2;
  --err-text: #b91c1c;
  --err-border: rgba(239, 68, 68, 0.22);
  --sidebar-w: 260px;
  --color-primary: #1e293b;
  --color-secondary: #4f46e5;
  --bg: var(--surface-2);
  --card: var(--surface);
}

/* Charte Pemsa group — administration uniquement */
body.admin-app {
  --pemsa-primary: #9ea2a2;
  --pemsa-accent: #00a7a7;
  --color-primary: var(--pemsa-primary);
  --color-secondary: var(--pemsa-accent);
  --accent: var(--pemsa-accent);
  --accent-hover: #008f8f;
  --accent-soft: rgba(0, 167, 167, 0.12);
  --accent-text: #006e6e;
  --surface-2: color-mix(in srgb, var(--pemsa-primary) 6%, #f8f9fb);
  --surface-3: color-mix(in srgb, var(--pemsa-primary) 10%, #f1f3f7);
  --border: color-mix(in srgb, var(--pemsa-primary) 18%, transparent);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface-2);
  min-height: 100vh;
}

/* --- Layout dashboard --------------------------------------------------- */

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

.admin-app--guest {
  display: block;
}

.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.75rem;
}

.sidebar__head {
  padding: 0.5rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.sidebar__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.sidebar__logo:hover {
  opacity: 0.88;
}

.sidebar__logo-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.sidebar__app-label {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pemsa-primary, var(--text-soft));
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sidebar__link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar__link:hover {
  background: var(--surface-3);
  color: var(--text);
}

.sidebar__link.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar__foot {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar__logout {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.sidebar__logout:hover {
  color: var(--err-text);
  background: var(--err-bg);
}

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

.main-content {
  flex: 1;
  padding: 1.75rem 2rem 3rem;
  width: 100%;
  margin: 0 auto;
}

.main-content--guest {
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--surface-2);
}

/* --- Typo & sections ---------------------------------------------------- */

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-header p,
.page-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  /* max-width: 52ch; */
}

h1:not(.page-header h1) {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

/* --- Cards & forms ------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

.card label,
.card input:not([type="checkbox"]):not([type="radio"]),
.card textarea,
.card select {
  display: block;
  width: 100%;
  margin-bottom: 0.85rem;
  font-family: inherit;
}

.card label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card input:not([type="checkbox"]):not([type="radio"]),
.card textarea,
.card select {
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card input:focus,
.card textarea:focus,
.card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.row label {
  flex: 1;
  min-width: 160px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

button:hover,
.button:hover {
  background: var(--accent-hover);
}

button:active,
.button:active {
  transform: scale(0.98);
}

a.button--ghost,
.button--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

a.button--ghost:hover,
.button--ghost:hover {
  background: var(--surface-3);
  color: var(--text);
}

/* --- KPI dashboard ------------------------------------------------------ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.kpi-card__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.kpi-card__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Legacy grid.stats */
.grid.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.grid.stats .card {
  text-align: left;
  padding: 1.25rem 1.35rem;
}

.grid.stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.grid.stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Pills / filtres ---------------------------------------------------- */

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.nav-pills li {
  list-style: none;
}

.nav-pills a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--surface);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-pills a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.nav-pills a.is-active {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: rgba(79, 70, 229, 0.2);
}

/* --- Tables ------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  background: var(--surface-2);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}

.table a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

.table .inline-form select,
.table .inline-form button {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: inherit;
}

.table .inline-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.table .inline-form button:hover {
  background: var(--accent-hover);
}

a.button {
  text-decoration: none;
}

/* --- Flash -------------------------------------------------------------- */

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.flash.ok,
.flash--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.flash.err,
.flash--err {
  background: var(--err-bg);
  color: var(--err-text);
  border: 1px solid var(--err-border);
}

/* --- Misc --------------------------------------------------------------- */

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.inline-form select {
  width: auto;
  min-width: 140px;
}

.badge {
  display: inline-block;
  background: var(--surface-3);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}

.big {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0.25rem 0 1rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.84em;
  background: var(--surface-3);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.section-title {
  margin: 2rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title:first-child {
  margin-top: 0;
}

/* --- Auth (login) ------------------------------------------------------- */

/* --- Page de connexion (layout corporate split) ------------------------- */

.main-content--login {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-page__hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  background: #4b4f54;
}

.auth-page__hero-inner {
  max-width: 26rem;
}

.auth-page__hero-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1.75rem;
  text-decoration: none;
}

/*
 * Logo blanc sur fond sombre : le SVG sert de masque (pas d’<img> — filter peu fiable).
 * Le fond du bloc = couleur affichée ; les zones opaques du SVG laissent voir le blanc.
 */
.auth-page__hero-logo-mark {
  display: block;
  width: min(220px, 72vw);
  height: 52px;
  background-color: #fff;
  -webkit-mask-image: url("logos/pemsagroup-logo-fr.svg");
  mask-image: url("logos/pemsagroup-logo-fr.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.auth-page__hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.auth-page__hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.auth-page__hero-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.auth-page__hero-foot {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.auth-page__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
}

.auth-page__main-inner {
  width: 100%;
  max-width: 400px;
}

.auth-page__header {
  margin-bottom: 1.75rem;
}

.auth-page__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
}

.auth-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-page__subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.auth-page__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.auth-page__alert-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-page__card {
  padding: 0.35rem 0 1.5rem;
}

.auth-page__sso {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.auth-page__sso:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.auth-page__sso:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.auth-page__sso-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.auth-page__sso-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.auth-page__sso-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-page__sso-provider {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.auth-page__sso-arrow {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.15s;
}

.auth-page__sso:hover .auth-page__sso-arrow {
  transform: translateX(3px);
}

.auth-page__help {
  margin-top: 0.5rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-page__help-title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.auth-page__help p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.auth-page__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.auth-page__footer-sep {
  opacity: 0.5;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-page__hero {
    min-height: auto;
    padding: 2rem 1.5rem 1.75rem;
  }

  .auth-page__hero-logo {
    margin-bottom: 1.25rem;
  }

  .auth-page__hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .auth-page__hero-lead {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .auth-page__hero-foot {
    margin-top: 1.25rem;
  }

  .auth-page__main {
    padding: 2rem 1.25rem 2.5rem;
    align-items: flex-start;
  }
}

/* --- Page évaluation client -------------------------------------------- */

.eval-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  color: var(--text);
}

.eval-site-header {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.eval-site-header__bar {
  height: 4px;
  background: var(--color-secondary);
}

.eval-site-header__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.35rem;
}

.eval-site-header__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.eval-site-header__logo-wrap {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 180px;
  height: auto;
  max-height: 70px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2); */
}

.eval-site-header__logo {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.eval-site-header__mark {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.eval-site-header__titles {
  margin-left: 1rem;
  min-width: 0;
  flex: 1;
}

.eval-site-header__eyebrow {
  display: none;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.eval-site-header__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.eval-site-header__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
}

.eval-site-header__duration-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--text-soft);
}

.eval-site-header__duration-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eval-site-header__sub {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.eval-page__shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.eval-page__inner {
  flex: 1;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

.eval-intro {
  margin: 0 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.eval-intro strong {
  color: var(--text);
  font-weight: 600;
}

.eval-intro--mission {
  display: none;
  margin: -0.35rem 0 1.25rem;
  font-size: 0.98rem;
}

.eval-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.45rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.eval-card--success {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.eval-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.eval-card__title--sm {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

.eval-success-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.eval-lead {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.eval-muted {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.eval-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--err-border);
  background: var(--err-bg);
  color: var(--err-text);
}

.eval-form .eval-card {
  margin-bottom: 1.25rem;
}

.eval-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-strong);
}

.eval-scope-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  color: #fff;
  background: color-mix(in srgb, var(--color-primary) 72%, #1a1a1a);
}

.eval-scope-icon--succursale {
  background: color-mix(in srgb, var(--color-secondary) 55%, var(--color-primary));
}

.eval-scope-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.eval-section-head__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text);
}

.eval-section-hint {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.eval-section-hint p:last-child {
  margin-bottom: 0;
}

.eval-fieldset {
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.eval-fieldset:last-of-type {
  margin-bottom: 0;
}

.eval-fieldset__legend {
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
}

.eval-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
  width: 100%;
}

.eval-rate__opt {
  position: relative;
  flex: 1 1 calc(20% - 0.36rem);
  min-width: 3rem;
  max-width: 5.75rem;
}

.eval-rate__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.eval-rate__face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.eval-rate__opt:hover .eval-rate__face {
  border-color: var(--color-primary);
  color: var(--text);
  background: var(--surface);
}

.eval-rate__opt input:checked + .eval-rate__face {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 14%, var(--surface));
  color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.eval-rate__opt input:checked + .eval-rate__face::after {
  display: none;
}

.eval-rate--stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.eval-rate__opt--stars {
  flex: unset;
  min-width: 0;
  max-width: none;
  width: auto;
}

.eval-rate__face--stars {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.4rem;
  min-height: 2.35rem;
  font-weight: 600;
}

.eval-rate__stars-glyph {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.eval-rate__face--stars .eval-rate__glyph {
  font-size: 0.72rem;
  line-height: 1;
  color: var(--text);
}

.eval-rate__stars-label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(0.62rem, 0.55rem + 0.35vw, 0.76rem);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eval-rate__opt:not(:hover):not(:has(input:checked)) .eval-rate__face--stars .eval-rate__glyph {
  opacity: 0.85;
}

.eval-rate__opt:hover .eval-rate__face--stars .eval-rate__glyph,
.eval-rate__opt:has(input:checked) .eval-rate__face--stars .eval-rate__glyph {
  opacity: 1;
  color: var(--color-primary);
}

.eval-rate--ternary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.eval-rate__opt--ternary {
  flex: unset;
  min-width: 0;
  max-width: none;
  grid-column: auto;
}

.eval-rate__face--ternary {
  width: 100%;
  height: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  font-size: clamp(0.68rem, 0.6rem + 0.3vw, 0.82rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  border-radius: 999px;
}

.eval-rate__opt--ternary:hover .eval-rate__face--ternary {
  border-color: var(--color-primary);
  color: var(--text);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--surface));
}

.eval-rate__opt--ternary input:checked + .eval-rate__face--ternary {
  border-color: var(--color-primary);
  color: var(--text);
  background: color-mix(in srgb, var(--color-primary) 14%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.eval-submit-wrap {
  margin-top: 0.25rem;
  padding: 0 0.1rem;
}

.eval-card--comment {
  margin-top: 0.25rem;
}

.eval-comment__label {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.eval-comment__input {
  display: block;
  width: 100%;
  min-height: 6.5rem;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.eval-comment__input::placeholder {
  color: var(--text-soft);
}

.eval-comment__input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 18%, transparent);
}

.eval-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  color: #fff;
  background: var(--color-secondary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  transition: filter 0.15s, transform 0.1s;
}

.eval-submit:hover {
  filter: brightness(1.06);
}

.eval-submit:active {
  transform: scale(0.99);
}

.eval-submit-note {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.eval-site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.eval-site-footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.75rem;
}

.eval-site-footer__block {
  margin-left: 1rem;
  margin-bottom: 0.75rem;
}

.eval-site-footer__name {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.eval-site-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
}

.eval-site-footer__item {
  display: flex;
  align-items: self-end;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  min-width: 0;
}

.eval-site-footer__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: var(--color-secondary);
  opacity: 0.85;
}

.eval-site-footer__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.eval-site-footer__text {
  flex: 1;
  min-width: 0;
}

.eval-site-footer__link {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-word;
}

.eval-site-footer__link:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

.eval-site-footer__item:hover .eval-site-footer__icon {
  opacity: 1;
}

.eval-site-footer__line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.eval-site-footer__marque {
  display: none;
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.eval-site-footer__legal {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 640px) {
  .eval-site-footer__contacts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

@media (max-width: 767px) {
  .eval-rate--stars {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .eval-rate__stars-label {
    display: none;
  }

  .eval-rate__face {
    overflow: visible;
    height: auto;
  }

  .eval-rate__face--stars {
    justify-content: center;
    align-items: center;
    padding: 0.45rem 0.2rem;
    min-height: 2.25rem;
  }

  .eval-rate__stars-glyph {
    justify-content: center;
  }

  .eval-rate__face--stars .eval-rate__glyph {
    font-size: clamp(0.62rem, 2.4vw, 0.82rem);
  }

  .eval-rate--ternary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .eval-rate__face--ternary {
    height: auto;
    min-height: 2.5rem;
    padding: 0.5rem 0.35rem;
    font-size: clamp(0.62rem, 2.8vw, 0.82rem);
    line-height: 1.3;
  }
}

@media (max-width: 520px) {
  .eval-page__inner {
    padding: 1.25rem 0.5rem 2rem;
  }

  .eval-card {
    padding: 1rem 0.65rem 1.1rem;
    border-radius: var(--radius);
  }

  .eval-rate {
    gap: 0.35rem;
  }

  .eval-rate__opt {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .eval-rate__face {
    min-height: 2.4rem;
    border-width: 1px;
    border-radius: 999px;
  }

  .eval-fieldset {
    margin-bottom: 1rem;
  }

  .eval-fieldset__legend {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .eval-rate__stars-label {
    font-size: 0.68rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .eval-rate__face--stars {
    flex-wrap: wrap;
    row-gap: 0.15rem;
    padding-block: 0.5rem;
  }
}

/* Anciennes classes (rétrocompat) */
.eval-header {
  display: none;
}

.eval-section-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.eval-q {
  display: block;
  margin-bottom: 1.1rem;
}

.eval-q__text {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.eval-actions {
  margin-top: 1.25rem;
}

.eval-actions button {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--color-secondary);
}

.eval-actions button:hover {
  filter: brightness(1.05);
}

.stars {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.stars input {
  position: absolute;
  opacity: 0;
  width: 0;
}

.stars label {
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.stars input:checked + label {
  border-color: var(--color-secondary);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-text);
  font-weight: 600;
}

/* --- Dashboard marques -------------------------------------------------- */

.marques-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.marques-toolbar__stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.marques-toolbar__stat--muted .marques-toolbar__stat-value {
  color: var(--text-muted);
}

.marques-toolbar__stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.marques-toolbar__stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.marques-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.marque-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.marque-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(79, 70, 229, 0.18);
}

.marque-card--new {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--surface);
}

.marque-card__hero {
  height: 56px;
  width: 100%;
}

.marque-card__new-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.75rem;
}

.marque-card__new-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.marque-card__new-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.marque-card__new-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.marque-card__form {
  padding: 0 1.35rem 1.35rem;
}

.marque-card--new .marque-card__form {
  padding-top: 0;
}

.marque-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem 0.75rem;
}

.marque-card__logo-wrap {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marque-card__logo {
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0.35rem;
}

.marque-card__logo-placeholder {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 1.75rem;
  font-weight: 700;
  border: 1px dashed var(--border-strong);
}

.marque-card__top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.marque-card__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.marque-card__badge--id {
  background: var(--surface-3);
  color: var(--text-muted);
}

.marque-card__badge--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.marque-card__badge--off {
  background: var(--surface-3);
  color: var(--text-soft);
}

.marque-card__badge--tpl {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.marque-card__swatches {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.35rem 0.75rem;
}

.marque-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px var(--border);
}

.marque-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.marque-field--full {
  grid-column: 1 / -1;
}

.marque-field-hint {
  margin: -0.35rem 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.marque-field-hint--grid {
  grid-column: 1 / -1;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.marque-field-hint strong {
  font-weight: 600;
  color: var(--text);
}

.marque-field--checkbox {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.15rem;
}

.marque-field__checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.marque-field__checkbox-wrap input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.marque-card .marque-field {
  margin-bottom: 0;
}

.marque-card .marque-field label,
.marque-card label.marque-field {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.marque-card .marque-field input:not([type="checkbox"]),
.marque-card .marque-field input[type="url"],
.marque-card .marque-field input[type="text"],
.marque-card .marque-field input[type="number"] {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
}

.marque-card .marque-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.marque-color-input {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem !important;
}

.marque-card__actions {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
  margin: 0 -1.35rem -1.35rem;
  padding: 1rem 1.35rem 1.25rem;
  background: var(--surface-2);
}

.marque-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.marque-btn--primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
}

.marque-btn--primary:hover {
  background: var(--accent-hover);
}

.marque-btn--primary:active {
  transform: scale(0.99);
}

.marque-btn--secondary {
  width: auto !important;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.marque-btn--secondary:hover {
  background: var(--surface-3);
}

.succursales-form {
  margin-bottom: 2rem;
}

.succursales-ref-cell {
  white-space: nowrap;
}

.succ-ref {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.succ-ref-zvoove {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.succursales-marque-cell {
  min-width: 220px;
}

.succursales-marque-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.succursales-marque-wrap select {
  flex: 1;
  min-width: 160px;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface);
}

.succ-marque-status {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 5.5rem;
}

.succ-marque-status--pending {
  color: var(--text-muted);
}

.succ-marque-status--ok {
  color: var(--ok-text);
}

.succ-marque-status--err {
  color: var(--err-text);
}

.succursales-display-name-cell {
  min-width: 180px;
}

.succursales-display-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.succ-display-name-input {
  flex: 1;
  min-width: 120px;
  padding: 0.4rem 0.55rem;
  font-size: 0.88rem;
}

.succ-display-name-input::placeholder {
  color: var(--text-soft);
  font-style: italic;
}

.succ-display-name-status {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 5.5rem;
}

.succ-save-status--pending {
  color: var(--text-muted);
}

.succ-save-status--ok {
  color: var(--ok-text);
}

.succ-save-status--err {
  color: var(--err-text);
}

.succursales-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.succursales-footer__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .marque-card__grid {
    grid-template-columns: 1fr;
  }

  .marque-field--checkbox {
    grid-column: 1 / -1;
  }
}

/* --- Legacy ------------------------------------------------------------- */

.admin-body {
  /* conservé si référencé ailleurs */
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
}

.topbar {
  display: none;
}

/* --- Burger button (mobile only) ---------------------------------------- */

.burger {
  display: none;
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1100;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.burger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open .burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger__bar:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Sidebar overlay ---------------------------------------------------- */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* --- Mobile sidebar (slide-in from left, 75% width) --------------------- */

@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .admin-app:not(.admin-app--guest) {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: none;
    overflow-y: auto;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  .sidebar__head {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem 1.5rem;
  }

  .sidebar__nav {
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
  }

  .sidebar__foot {
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding-top: 1rem;
  }

  .sidebar__link {
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
  }

  .admin-canvas {
    padding-top: 3.5rem;
  }

  .main-content {
    padding: 1.25rem 1rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibilité — titre de colonne masqué visuellement
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Harmonisation pages admin (squelette type « Clients »)
   -------------------------------------------------------------------------- */
.admin-page {
  margin-bottom: 1rem;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-alert {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 70, 229, 0.28);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-text);
}

.admin-alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-section-title {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.admin-section-title:first-child {
  margin-top: 0;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.admin-subsection-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stats-ternary-pill {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--surface-2);
}

.stats-ternary-pill--oui {
  color: #166534;
  background: #ecfdf5;
}

.stats-ternary-pill--maybe {
  color: #92400e;
  background: #fffbeb;
}

.stats-ternary-pill--non {
  color: #991b1b;
  background: #fef2f2;
}

.stats-ternary-cell__pct {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.stats-ternary-cell__cnt {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.stats-ternary-cell--oui .stats-ternary-cell__pct {
  color: #166534;
}

.stats-ternary-cell--maybe .stats-ternary-cell__pct {
  color: #92400e;
}

.stats-ternary-cell--non .stats-ternary-cell__pct {
  color: #991b1b;
}

.admin-table--stats-rec .stats-rec-group-head {
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-table--stats-rec .stats-rec-subhead {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 0.35rem;
  padding-bottom: 0.45rem;
}

.admin-table--stats-rec .stats-ternary-cell {
  text-align: center;
  vertical-align: middle;
}

.admin-table--stats-rec .stats-ternary-cell__pct,
.admin-table--stats-rec .stats-ternary-cell__cnt {
  display: inline;
}

.missions-import {
  margin-bottom: 1.25rem;
}

.missions-import__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.missions-import__summary::-webkit-details-marker {
  display: none;
}

.missions-import__summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.missions-import[open] .missions-import__summary::before {
  transform: rotate(90deg);
}

.missions-import__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.missions-import__summary-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.missions-import__body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.missions-import__hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.missions-import__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.missions-import__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.missions-import__input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border, #cbd5e0);
  border-radius: 6px;
  resize: vertical;
}

.missions-import__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-toolbar--filters {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.admin-toolbar--filters .nav-pills {
  margin: 0;
}

.admin-toolbar--dates {
  margin-bottom: 1.25rem;
}

.admin-toolbar--dates .admin-toolbar__form {
  align-items: center;
}

/* --------------------------------------------------------------------------
   Liste admin — tableau & barres d’outils (responsive)
   -------------------------------------------------------------------------- */
.admin-page__hero {
  margin-bottom: 1.25rem;
}

.admin-page__title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.admin-page__intro {
  margin: 0;
  /* max-width: 42rem; */
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}

.admin-toolbar__search {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-toolbar__field {
  flex: 0 1 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-toolbar__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.admin-toolbar__input,
.admin-toolbar__select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface);
}

.admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Page Clients : grille par colonne (label + contrôle) — contrôles alignés sur une même ligne */
.admin-toolbar__form.admin-toolbar__form--clients {
  display: block;
}

.admin-clients-filter-grid {
  display: grid;
  column-gap: 0.75rem;
  align-items: stretch;
}

.admin-clients-filter-grid--c4 {
  grid-template-columns: minmax(0, 1.55fr) minmax(9.5rem, 0.52fr) minmax(9.5rem, 0.52fr) auto;
}

.admin-clients-filter-grid--c3 {
  grid-template-columns: minmax(0, 1.65fr) minmax(9.5rem, 0.58fr) auto;
}

.admin-clients-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-clients-filter-field > .admin-toolbar__input,
.admin-clients-filter-field > .admin-toolbar__select,
.admin-clients-filter-field > .admin-toolbar__actions {
  margin-top: auto;
}

.admin-clients-filter-field--actions {
  justify-self: end;
  width: max-content;
}

.admin-toolbar__label--ghost {
  visibility: hidden;
  user-select: none;
  white-space: nowrap;
}

.admin-toolbar__form--clients .admin-toolbar__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.55rem 0.75rem 0;
  margin-bottom: 0.85rem;
}

.admin-toolbar__form--clients .admin-toolbar__actions .marque-btn--primary {
  width: auto;
}

.admin-toolbar__form--clients .admin-toolbar__actions .button--ghost {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .admin-clients-filter-grid--c4,
  .admin-clients-filter-grid--c3 {
    grid-template-columns: 1fr;
  }

  .admin-clients-filter-field--actions {
    justify-self: stretch;
    width: auto;
  }

  .admin-toolbar__form--clients .admin-toolbar__actions {
    justify-content: flex-start;
  }
}

.admin-list-meta {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-list-meta__sep {
  color: var(--text-soft);
  margin: 0 0.15rem;
}

.admin-list-meta__link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.admin-list-meta__link:hover {
  text-decoration: underline;
}

.admin-toolbar__hint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-table-wrap {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead {
  background: var(--surface-3);
}

.admin-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.admin-table__th--sort {
  padding: 0;
  vertical-align: bottom;
}

.admin-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 1rem;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: color 0.12s, background 0.12s;
}

.admin-th-sort:hover {
  color: var(--accent-text);
  text-decoration: underline;
  background: rgba(79, 70, 229, 0.06);
}

.admin-th-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.admin-th-sort.is-active {
  color: var(--accent-text);
}

.admin-th-sort__hint {
  font-size: 0.68rem;
  opacity: 0.9;
  font-weight: 700;
}

.admin-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.03);
}

.admin-table__row:hover {
  background: rgba(79, 70, 229, 0.03);
}

.admin-table__num {
  font-weight: 600;
  color: var(--text);
}

.admin-table__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-table__email {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.client-badge--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-border);
}

.client-badge--wait {
  background: rgba(251, 191, 36, 0.12);
  color: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.admin-table__dates {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Flex uniquement sur le div interne — jamais sur le <td> (casse la hauteur de ligne du tableau) */
td.clients-actions,
.admin-table__action-cell.clients-actions {
  display: table-cell !important;
}

.admin-table__action-cell {
  white-space: nowrap;
  vertical-align: middle;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.admin-table__action-cell .clients-actions {
  width: 100%;
}

.admin-table__empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  color: var(--text-muted);
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}

.admin-pagination__info {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.admin-pagination__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-pagination__disabled {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 0.35rem 0.5rem;
  user-select: none;
}

.button--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody tr {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-table tbody tr:last-child {
    border-bottom: 0;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.35rem 1rem;
    padding: 0.45rem 1rem;
    border: 0;
    align-items: start;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
  }

  .admin-table td.admin-table__action-cell {
    grid-template-columns: minmax(7rem, 38%) 1fr;
    padding-top: 0.75rem;
  }

  .admin-table__email {
    max-width: none;
    white-space: normal;
    word-break: break-word;
  }
}

/* SweetAlert — fiche client */
.clients-detail-popup {
  border-radius: var(--radius-lg) !important;
}

.clients-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.clients-detail__pill {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.clients-detail__pill--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.clients-detail__pill--muted {
  background: var(--surface-3);
  color: var(--text-muted);
}

.clients-detail__dl {
  display: grid;
  grid-template-columns: minmax(7rem, 32%) 1fr;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.clients-detail__dl dt {
  margin: 0;
  color: var(--text-soft);
  font-weight: 500;
}

.clients-detail__dl dd {
  margin: 0;
  color: var(--text);
}

.clients-detail__h {
  margin: 1rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.clients-detail__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.clients-detail__tags {
  margin: 0;
}

.clients-detail__tag {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  font-size: 0.82rem;
}

.clients-detail__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.clients-detail__meta {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Missions : actions icônes */
.missions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.clients-actions {
  --client-action-h: 2.35rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

td.missions-actions,
.admin-table__action-cell.missions-actions {
  display: table-cell !important;
}

.admin-table__action-cell .missions-actions {
  width: 100%;
}

.clients-actions .icon-btn-client,
.clients-actions .marque-btn {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  box-sizing: border-box;
  height: var(--client-action-h);
  min-height: var(--client-action-h);
  max-height: var(--client-action-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.clients-actions .icon-btn-client {
  width: var(--client-action-h);
  min-width: var(--client-action-h);
  padding: 0;
  border: 1px solid var(--border, #cbd5e0);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  color: var(--color-primary, #1a365d);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.clients-actions .marque-btn.marque-btn--secondary {
  width: auto !important;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.clients-actions .icon-btn-client svg {
  display: block;
  flex-shrink: 0;
}

.icon-btn-client:hover:not(:disabled) {
  background: var(--color-primary-soft, #ebf4ff);
  border-color: var(--color-primary, #1a365d);
}

.icon-btn-client:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-btn-mission {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-2, #fff);
  color: var(--text, #1e293b);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn-mission:hover:not(:disabled) {
  background: var(--surface-3, #f1f5f9);
  border-color: var(--text-soft, #94a3b8);
  color: var(--color-primary, #2563eb);
}

.icon-btn-mission:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.icon-btn-mission--danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.swal-mission-detail__h {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft, #64748b);
}

.swal-mission-detail__h:first-child {
  margin-top: 0;
}

.swal-mission-detail__dl {
  display: grid;
  grid-template-columns: minmax(7.5rem, 70%) 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  text-align: left;
}

.swal-mission-detail__dl dt {
  margin: 0;
  color: var(--text-soft, #64748b);
  font-weight: 500;
}

.swal-mission-detail__dl dd {
  margin: 0;
  color: var(--text, #0f172a);
  word-break: break-word;
}

.swal-mission-detail__empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  font-style: italic;
}

/* SweetAlert — résultats d’évaluation (notes en étoiles) */
.swal-eval-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  vertical-align: middle;
}

.swal-eval-stars__glyph {
  font-size: 1.2rem;
  line-height: 1;
  color: #cbd5e1;
  user-select: none;
}

.swal-eval-stars__glyph--on {
  color: #e8a317;
}

.swal-eval-stars--na {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.swal-eval-ternary {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.swal-mission-detail__dl dd .swal-eval-stars {
  margin-top: 0.1rem;
}

.swal-mission-comment {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border, rgba(15, 23, 42, 0.08));
}

.swal-mission-comment__title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft, #94a3b8);
}

.swal-mission-comment__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   Mobile — page statistiques & composants partagés
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .admin-page__title {
    font-size: 1.3rem;
  }

  .admin-page__intro {
    font-size: 0.85rem;
  }

  .admin-stat-value {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .admin-section-title {
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }

  .page-lead {
    font-size: 0.82rem;
  }

  /* Toolbar filtres — empilage vertical */
  .admin-toolbar__form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .admin-toolbar__field {
    flex: 1 1 auto;
    width: 100%;
  }

  .admin-toolbar__search {
    flex: 1 1 auto;
  }

  .admin-toolbar__actions {
    width: 100%;
  }

  .admin-toolbar__actions .marque-btn {
    width: 100%;
    justify-content: center;
  }

  /* Toolbar dates — ajustement */
  .admin-toolbar--dates {
    margin-bottom: 1rem;
  }

  .admin-toolbar--dates .admin-toolbar__form {
    align-items: stretch;
  }

  /* Tableaux — suppression du scroll forcé, cards serrées */
  .admin-table-wrap {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
  }

  .admin-table td {
    grid-template-columns: minmax(5.5rem, 35%) 1fr;
    gap: 0.2rem 0.75rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }

  .admin-table td::before {
    font-size: 0.68rem;
  }

  .admin-table tbody tr {
    padding: 0.75rem 0;
  }

  /* Card toolbar : padding réduit */
  .card.admin-toolbar {
    padding: 0.85rem 0.75rem;
  }
}
