:root {
  --paper: #f5f5f7;
  --panel: #ffffff;
  --panel-soft: #f9f9fa;
  --ink: #161616;
  --muted: #6f6a61;
  --faint: #9c9488;
  --line: #e4e2de;
  --line-dark: #ccc9c3;
  --signal: #a9582a;
  --signal-soft: #f2e2d6;
  --dark: #111111;
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow: 0 1px 3px rgba(17, 17, 17, 0.06), 0 4px 8px rgba(17, 17, 17, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans-app), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}

/* Titres & gros chiffres : police d'affichage à caractère (Bricolage Grotesque). */
h1, h2, h3, .eleve-global-ring strong, .eleve-summary-id h1, .eleve-hour-chip strong, .eleve-bar-head b, .brand-name {
  font-family: var(--font-display-app), var(--font-sans-app), system-ui, sans-serif;
  letter-spacing: -0.018em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
}

.mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark);
  border-radius: 22px;
  background: var(--dark);
  color: #ffffff;
  box-shadow: 8px 8px 0 #d8cfbf;
}

.mark span {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.mark strong {
  margin-top: -10px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rail-nav {
  display: grid;
  gap: 10px;
  margin-top: 42px;
}

.rail-link {
  width: 74px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 20px;
  color: var(--muted);
  transition: 150ms ease;
}

.rail-link span {
  font-size: 0.68rem;
  font-weight: 760;
}

.rail-link:hover,
.rail-link.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.rail-footer {
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stage {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 38px clamp(20px, 4vw, 56px) 56px;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  margin-bottom: 28px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.page-header p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.card,
.focus-card,
.notification-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.focus-card,
.card {
  padding: 24px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title span,
.quiet-label {
  display: block;
  margin-bottom: 7px;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.alert-row {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
}

.alert-row + .alert-row {
  margin-top: 10px;
}

.alert-row.compact {
  grid-template-columns: 8px minmax(0, 1fr);
}

.alert-row.compact .channels-text {
  display: none;
}

.alert-marker {
  width: 8px;
  min-height: 100%;
  border-radius: 999px;
  background: var(--line-dark);
}

.severity-critical .alert-marker,
.severity-urgent .alert-marker {
  background: var(--signal);
}

.severity-warning .alert-marker {
  background: repeating-linear-gradient(180deg, var(--signal) 0 7px, transparent 7px 12px);
  border: 1px solid var(--signal);
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.alert-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
}

.alert-main strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.02rem;
}

.alert-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.alert-main small {
  display: block;
  margin-top: 9px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 720;
}

.channels-text {
  align-self: start;
  max-width: 120px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1.45;
  text-align: right;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  border-bottom: 2px solid var(--ink);
}

.quiet-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clean-list,
.check-list,
.number-list {
  margin: 0;
  padding: 0;
}

.clean-list {
  list-style: none;
  display: grid;
  gap: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.clean-list li {
  padding-left: 18px;
  border-left: 2px solid var(--line-dark);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--line);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.metric-strip article {
  min-height: 112px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.metric-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-strip strong {
  display: block;
  margin-top: 13px;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.07em;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.align-start {
  align-items: start;
}

.spaced-card {
  margin-top: 18px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.family-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-soft);
}

.family-card span,
.family-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.family-card strong {
  display: block;
  margin: 14px 0;
  color: var(--ink);
  font-size: 3.2rem;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.fleet-list {
  display: grid;
  gap: 10px;
}

.fleet-list.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
  transition: 150ms ease;
}

.asset-line:hover,
.asset-line:focus-visible {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.asset-line strong,
.asset-line small,
.asset-code,
.asset-side span {
  display: block;
}

.asset-code {
  margin-bottom: 6px;
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.asset-line strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.asset-line small,
.asset-side span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.asset-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  white-space: nowrap;
}

.risk-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
}

.risk-clear {
  background: var(--panel);
}

.risk-info {
  background: var(--line-dark);
}

.risk-warning {
  background: linear-gradient(135deg, var(--signal) 50%, transparent 50%);
}

.risk-urgent,
.risk-critical {
  background: var(--signal);
  border-color: var(--signal);
}

.back-link {
  margin: -8px 0 18px;
}

.vehicle-sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.vehicle-identity dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.vehicle-identity dl div {
  min-height: 78px;
  padding: 15px;
  background: var(--panel-soft);
}

.vehicle-identity dl div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.vehicle-identity dt,
.vehicle-identity dd {
  margin: 0;
}

.vehicle-identity dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.vehicle-identity dd {
  margin-top: 9px;
  color: var(--ink);
  font-weight: 860;
}

.wash-focus {
  display: flex;
  flex-direction: column;
}

.wash-focus p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.wash-list,
.wash-history {
  display: grid;
  gap: 10px;
}

.wash-duty,
.wash-history article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
}

.wash-duty {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  transition: 150ms ease;
}

.wash-duty:hover,
.wash-duty:focus-visible {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.98);
}

.wash-duty strong,
.wash-duty small,
.wash-owner span,
.wash-owner small {
  display: block;
}

.wash-duty strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1rem;
}

.wash-duty small,
.wash-owner small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.wash-owner {
  min-width: 110px;
  text-align: right;
}

.wash-owner span {
  color: var(--ink);
  font-weight: 900;
}

.wash-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
}

.status-done {
  border-color: rgba(43, 111, 72, 0.24);
  color: #2b6f48;
}

.status-due {
  color: var(--signal);
}

.status-late {
  border-color: rgba(169, 88, 42, 0.5);
  background: var(--signal-soft);
  color: var(--ink);
}

.wash-history article {
  padding: 16px;
}

.wash-history span,
.wash-history strong,
.wash-history p {
  display: block;
}

.wash-history span {
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wash-history strong {
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.25;
}

.wash-history p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.alert-stack {
  display: grid;
  gap: 10px;
}

.empty-state,
.muted-note {
  color: var(--muted);
  line-height: 1.6;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-row span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 760;
}

.number-list {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 12px;
}

.number-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.number-list li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--signal);
  font-weight: 900;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--signal);
  border-radius: 999px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.decision-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
  color: var(--muted);
  line-height: 1.48;
}

blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.58;
  letter-spacing: -0.02em;
}

.notification-card {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notification-copy strong,
.notification-copy p {
  display: block;
}

.notification-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.notification-copy strong {
  color: var(--ink);
}

.notification-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  background: var(--dark);
  color: #ffffff;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 840;
}

.primary-button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.policy-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.policy-lines article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
}

.policy-lines strong,
.policy-lines span {
  display: block;
}

.policy-lines strong {
  color: var(--ink);
}

.policy-lines span {
  margin-top: 8px;
  color: var(--signal);
  font-weight: 900;
}

.policy-lines p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

  .rail {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px;
  }

  .rail-nav {
    display: flex;
    margin-top: 0;
    overflow-x: auto;
  }

  .rail-footer {
    display: none;
  }

  .page-header,
  .today-grid,
  .two-columns,
  .vehicle-sheet-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .decision-grid,
  .policy-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-list.full {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .stage {
    padding: 24px 14px 40px;
  }

  .mark {
    width: 56px;
    height: 56px;
  }

  .rail-link {
    width: auto;
    min-height: 44px;
    grid-auto-flow: column;
    padding: 9px 12px;
  }

  .page-header h1 {
    font-size: 2.75rem;
  }

  .metric-strip,
  .family-grid,
  .decision-grid,
  .policy-lines,
  .vehicle-identity dl {
    grid-template-columns: 1fr;
  }

  .alert-row {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .channels-text {
    text-align: left;
    max-width: none;
  }

  .notification-card {
    align-items: stretch;
    flex-direction: column;
  }

  .wash-duty {
    align-items: flex-start;
    flex-direction: column;
  }

  .wash-owner {
    text-align: left;
  }

  .primary-button {
    width: 100%;
  }
}


/* Client-facing presentation */
.landing-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.landing-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.landing-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--dark);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 5px 5px 0 #d8cfbf;
}

.landing-brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.landing-nav > div {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  background: var(--dark);
  color: #ffffff;
}

.landing-hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 44px 0 34px;
}

.landing-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.landing-copy > p:not(.landing-kicker) {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.landing-kicker {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.landing-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 999px;
  font-weight: 860;
}

.landing-button.primary {
  background: var(--dark);
  color: #ffffff;
}

.landing-button.secondary {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.presentation-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}


.presentation-topline,
.priority-note,
.mini-queue {
  position: relative;
}

.presentation-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 830;
}

.presentation-topline strong {
  color: var(--signal);
}

.priority-note {
  margin-top: 82px;
  padding: 20px;
  border-radius: 24px;
  background: var(--dark);
  color: #ffffff;
}

.priority-note span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2d3bd;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.priority-note h2 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.priority-note p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.mini-queue {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-queue div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 760;
}

.mini-queue svg {
  color: var(--signal);
}

.landing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.landing-strip article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.landing-strip strong,
.landing-strip span {
  display: block;
}

.landing-strip strong {
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.landing-strip span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 760;
}

.landing-section {
  padding: 86px 0 0;
}

.landing-section.compact {
  padding-top: 70px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.value-grid,
.start-plan,
.family-showcase {
  display: grid;
  gap: 14px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid article,
.start-plan article,
.family-showcase article,
.dev-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.value-grid article {
  min-height: 230px;
  padding: 24px;
}

.value-grid svg {
  color: var(--signal);
}

.value-grid h3 {
  margin: 46px 0 10px;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.start-plan {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.start-plan article {
  min-height: 160px;
  padding: 22px;
}

.start-plan span {
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.start-plan p {
  margin: 32px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 760;
  line-height: 1.38;
  letter-spacing: -0.03em;
}

.family-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 70px;
}

.family-showcase article {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
}

.family-showcase svg {
  color: var(--signal);
}

/* Internal developer page */
.dev-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.dev-header {
  margin-bottom: 22px;
}

.dev-header p,
.dev-card span {
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dev-header h1 {
  max-width: 820px;
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.dev-header a {
  display: inline-flex;
  border-bottom: 2px solid var(--ink);
  font-weight: 860;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dev-card {
  padding: 22px;
}

.dev-card ul,
.dev-card ol {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.dev-wide {
  margin-top: 14px;
}

.dev-card pre {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--dark);
  color: #ffffff;
}

@media (max-width: 900px) {
  .landing-nav,
  .landing-nav > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero,
  .section-intro,
  .value-grid,
  .start-plan,
  .family-showcase,
  .landing-strip,
  .dev-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 48px;
  }
}

@media (max-width: 620px) {
  .landing-copy h1 {
    font-size: 3.3rem;
  }

  .presentation-card {
    padding: 18px;
  }

  .priority-note {
    margin-top: 48px;
  }
}


/* Vehicle configuration */
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.52fr);
  gap: 18px;
  align-items: start;
}

.config-main {
  padding: 24px;
}

.family-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.family-option {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 150ms ease;
}

.family-option svg,
.family-option strong,
.family-option small {
  display: block;
}

.family-option svg {
  color: var(--signal);
  margin-bottom: 14px;
}

.family-option strong {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 5px;
}

.family-option small {
  line-height: 1.35;
}

.family-option.active {
  border-color: var(--dark);
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--line);
}

.form-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--ink);
}

.form-section-title svg {
  color: var(--signal);
}

.form-section-title h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.form-grid,
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.config-main label,
.notes-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.config-main input,
.config-main select,
.config-main textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0;
}

.config-main input:focus,
.config-main select:focus,
.config-main textarea:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.config-main textarea {
  min-height: 104px;
  padding: 13px;
  resize: vertical;
}

.field-ok {
  border-color: rgba(43, 111, 72, 0.45) !important;
}

.field-warning {
  border-color: rgba(169, 88, 42, 0.85) !important;
  background: #fff7ed !important;
}

.field-danger {
  border-color: #9f2f24 !important;
  background: #fff1ee !important;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 780;
}

.save-state svg {
  color: var(--signal);
}

.config-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 22px;
}

.progress-card,
.preview-card,
.deadline-preview {
  padding: 20px;
}

.progress-card > span {
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-card > strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 3.4rem;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.progress-card p,
.helper-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--line);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
}

.preview-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.preview-card dl div,
.deadline-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.preview-card dl div:last-child,
.deadline-list div:last-child {
  border-bottom: 0;
}

.preview-card dt,
.deadline-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.preview-card dd,
.deadline-list strong {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.helper-card {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px dashed var(--line-dark);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.helper-card svg {
  flex: 0 0 auto;
  color: var(--signal);
  margin-top: 2px;
}

.secondary-link {
  margin-left: 16px;
  color: var(--muted);
  border-bottom-color: var(--line-dark);
}

@media (max-width: 980px) {
  .config-layout {
    grid-template-columns: 1fr;
  }

  .config-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .family-selector,
  .form-grid,
  .deadline-grid {
    grid-template-columns: 1fr;
  }

  .secondary-link {
    margin-left: 0;
    display: table;
  }
}


/* Mode simple terrain */
:root {
  --paper: #f5f5f7;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --ink: #171717;
  --muted: #6a6258;
  --line: #e4e2de;
  --signal: #b15a2a;
  --ok: #26734d;
  --ok-soft: #e7f3eb;
  --warn: #c9731e;
  --warn-soft: #fff0d9;
  --bad: #b7352d;
  --bad-soft: #ffe6e2;
  --radius-xl: 14px;
  --shadow: 0 1px 3px rgba(17, 17, 17, 0.06), 0 4px 8px rgba(17, 17, 17, 0.04);
}

body {
  background: var(--paper);
  font-size: 17px;
}

.shell {
  grid-template-columns: 126px minmax(0, 1fr);
}

.rail {
  background: #f3ecdf;
}

.rail-link {
  width: 94px;
  min-height: 82px;
  border: 1px solid transparent;
}

.rail-link span {
  font-size: 0.88rem;
  font-weight: 900;
}

.rail-link:hover,
.rail-link.active {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}

.stage {
  width: min(1320px, 100%);
  padding-top: 34px;
}

.page-header {
  align-items: center;
  margin-bottom: 22px;
}

.kicker,
.section-title span,
.quiet-label {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.page-header h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.page-header p {
  margin-top: 14px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.header-pill {
  min-height: 54px;
  padding: 0 22px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  background: var(--panel);
}

.card,
.focus-card,
.notification-card {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.focus-card,
.card {
  padding: 28px;
}

.section-title h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.metric-strip {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-strip article {
  min-height: 132px;
  padding: 24px;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.metric-strip strong {
  font-size: 3.3rem;
}

.metric-green {
  background: var(--ok-soft) !important;
}

.metric-orange {
  background: var(--warn-soft) !important;
}

.metric-red {
  background: var(--bad-soft) !important;
}

.big-actions,
.quick-actions,
.list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.big-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.big-button,
.quick-actions a,
.done-button,
.small-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

.big-button.light,
.small-link {
  background: var(--panel-soft);
  color: var(--ink);
  border-color: var(--line-dark);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.quick-actions a {
  min-height: 72px;
  justify-content: flex-start;
  font-size: 1.2rem;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.alert-row,
.alert-row.compact {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  background: var(--panel-soft);
}

.severity-critical {
  border-color: rgba(183, 53, 45, 0.35);
  background: var(--bad-soft);
}

.severity-urgent,
.severity-warning {
  border-color: rgba(201, 115, 30, 0.32);
  background: var(--warn-soft);
}

.severity-info {
  background: var(--panel-soft);
}

.severity-critical .alert-marker {
  background: var(--bad);
}

.severity-urgent .alert-marker,
.severity-warning .alert-marker {
  background: var(--warn);
  border: 0;
}

.alert-marker {
  width: 12px;
}

.alert-meta span,
.wash-status,
.simple-status {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 950;
  background: #fff;
}

.alert-main strong {
  font-size: 1.35rem;
}

.alert-main p,
.alert-main small,
.asset-line small,
.wash-duty small,
.wash-history p {
  font-size: 0.96rem;
}

.channels-text {
  display: none;
}

.asset-line {
  min-height: 132px;
  padding: 22px;
  border-radius: 22px;
}

.asset-line strong {
  font-size: 1.28rem;
}

.asset-code {
  font-size: 0.9rem;
}

.asset-side {
  min-width: 150px;
}

.simple-status {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.status-clear {
  border: 1px solid rgba(38, 115, 77, 0.25);
  background: var(--ok-soft);
  color: var(--ok);
}

.status-info {
  border: 1px solid var(--line);
}

.status-warning,
.status-urgent {
  border: 1px solid rgba(201, 115, 30, 0.28);
  background: var(--warn-soft);
  color: var(--warn);
}

.status-critical {
  border: 1px solid rgba(183, 53, 45, 0.25);
  background: var(--bad-soft);
  color: var(--bad);
}

.family-card {
  min-height: 112px;
  background: var(--panel);
}

.family-card strong {
  font-size: 3rem;
}

.vehicle-identity dt,
.preview-card dt,
.deadline-list span {
  font-size: 0.92rem;
}

.vehicle-identity dd,
.preview-card dd,
.deadline-list strong {
  font-size: 1.06rem;
}

.wash-duty {
  min-height: 124px;
  padding: 20px;
  align-items: stretch;
}

.wash-duty strong {
  font-size: 1.35rem;
}

.wash-actions {
  min-width: 170px;
  display: grid;
  gap: 10px;
  align-content: center;
}

.done-button {
  width: 100%;
  border-color: var(--ok);
  background: var(--ok);
}

.done-button.is-done {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-card-late {
  background: var(--bad-soft);
  border-color: rgba(183, 53, 45, 0.25);
}

.status-card-due {
  background: var(--warn-soft);
  border-color: rgba(201, 115, 30, 0.24);
}

.status-card-done {
  background: var(--ok-soft);
  border-color: rgba(38, 115, 77, 0.2);
}

.status-done {
  background: #fff;
  color: var(--ok);
}

.status-due {
  background: #fff;
  color: var(--warn);
}

.status-late {
  background: #fff;
  color: var(--bad);
}

.form-section-title h3 {
  font-size: 1.35rem;
}

.family-option {
  min-height: 138px;
  padding: 22px;
}

.family-option strong {
  font-size: 1.35rem;
}

.family-option small {
  font-size: 1rem;
}

.config-main label,
.notes-field {
  font-size: 1rem;
  color: var(--ink);
}

.config-main input,
.config-main select,
.config-main textarea {
  min-height: 58px;
  border-radius: 18px;
  font-size: 1.1rem;
}

.save-button {
  min-width: 220px;
  min-height: 66px;
  font-size: 1.15rem;
}

.progress-card > span {
  font-size: 0.95rem;
}

.progress-card > strong {
  font-size: 4rem;
}

.notification-card {
  padding: 22px;
}

.notification-copy strong {
  font-size: 1.2rem;
}

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

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

  .rail-link {
    width: auto;
    min-width: 98px;
  }
}

@media (max-width: 680px) {
  .stage {
    padding: 20px 12px 34px;
  }

  .page-header h1 {
    font-size: 2.45rem;
  }

  .asset-line,
  .wash-duty,
  .list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-side,
  .wash-actions,
  .big-button {
    width: 100%;
  }
}


/* Garage */
.rail-nav {
  gap: 8px;
  margin-top: 30px;
}

.rail-link {
  min-height: 72px;
}

.garage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.garage-form {
  padding: 28px;
}

.garage-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.garage-form input,
.garage-form select,
.garage-form textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.garage-form textarea {
  min-height: 104px;
  padding: 14px;
  resize: vertical;
}

.garage-form input:focus,
.garage-form select:focus,
.garage-form textarea:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.garage-lines {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
}

.garage-lines-head,
.garage-history-head,
.garage-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.garage-lines-head strong,
.garage-lines-head span,
.garage-history-head > strong,
.garage-visit-total > strong,
.money-pill {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
}

.money-pill {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
}

.garage-line-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 52px;
  gap: 10px;
  align-items: end;
}

.icon-button {
  min-height: 58px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--panel);
  color: var(--bad);
  cursor: pointer;
}

.add-line-button {
  width: fit-content;
}

.garage-side {
  position: sticky;
  top: 24px;
}

.garage-visit-list,
.garage-history {
  display: grid;
  gap: 12px;
}

.garage-visit,
.garage-history-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
}

.garage-visit strong,
.garage-visit small,
.garage-history-head strong,
.garage-history-head small {
  display: block;
}

.garage-visit small,
.garage-history-head small {
  margin-top: 7px;
  color: var(--muted);
}

.garage-visit-total {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.garage-lines-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.garage-lines-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  background: var(--panel);
}

.garage-lines-list span {
  color: var(--ink);
  font-weight: 780;
}

.garage-lines-list strong {
  color: var(--ink);
}

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

  .garage-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .garage-line-form,
  .garage-visit,
  .garage-history-head,
  .garage-lines-head {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .garage-visit-total,
  .add-line-button,
  .money-pill {
    width: 100%;
    justify-items: stretch;
  }
}

/* Configuration ultra simple */
.config-simple {
  max-width: 980px;
  display: grid;
  gap: 22px;
  padding: 28px;
}

.simple-family {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.config-simple .family-option {
  min-height: 104px;
  gap: 10px;
  display: grid;
  place-items: center;
}

.config-simple .family-option small {
  display: none;
}

.simple-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.config-simple label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 900;
}

.config-simple input,
.config-simple select {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  font-size: 1.12rem;
  font-weight: 780;
}

.config-simple input:focus,
.config-simple select:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.simple-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

@media (max-width: 720px) {
  .simple-family,
  .simple-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Véhicules par catégorie */
.fleet-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}

.fleet-category-list {
  display: grid;
  gap: 18px;
}

.fleet-category-card {
  --category-color: var(--ink);
  --category-soft: var(--panel-soft);
  --category-border: var(--line);
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: var(--category-border);
  background: var(--panel);
}

.fleet-category-card::before {
  display: none;
}

.fleet-category-voitures {
  --category-color: #2563eb;
  --category-soft: #eaf1ff;
  --category-border: rgba(37, 99, 235, 0.28);
}

.fleet-category-motos {
  --category-color: #e11d48;
  --category-soft: #fff1f5;
  --category-border: rgba(225, 29, 72, 0.28);
}

.fleet-category-camions {
  --category-color: #c56a16;
  --category-soft: #fff1dc;
  --category-border: rgba(197, 106, 22, 0.3);
}

.fleet-category-engins {
  --category-color: #2f7d4f;
  --category-soft: #e9f6ee;
  --category-border: rgba(47, 125, 79, 0.28);
}

.fleet-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.fleet-category-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fleet-category-head i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: var(--category-color);
  color: white;
  font-style: normal;
}

.fleet-category-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.fleet-category-head span {
  min-width: 52px;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--category-border);
  border-radius: 999px;
  background: white;
  color: var(--category-color);
  font-size: 1.15rem;
  font-weight: 950;
}

.fleet-category-card .asset-line {
  border-color: var(--category-border);
  background: rgba(255, 255, 255, 0.82);
}

.fleet-category-card .empty-state {
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--category-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--category-color);
  font-weight: 900;
}

@media (max-width: 680px) {
  .fleet-toolbar {
    justify-content: stretch;
  }

  .fleet-toolbar .big-button {
    width: 100%;
  }

  .fleet-category-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-category-head span {
    width: 100%;
  }
}

/* Accès */
.role-monitor {
  --role-color: #2563eb;
  --role-soft: #eaf1ff;
  --role-border: rgba(37, 99, 235, 0.28);
}

.role-secretary {
  --role-color: #00a7c8;
  --role-soft: #e0faff;
  --role-border: rgba(0, 167, 200, 0.28);
}

.role-mechanic {
  --role-color: #2f7d4f;
  --role-soft: #e9f6ee;
  --role-border: rgba(47, 125, 79, 0.28);
}

.role-gerant {
  --role-color: #7c3aed;
  --role-soft: #f1ebff;
  --role-border: rgba(124, 58, 237, 0.28);
}

.role-owner {
  --role-color: #c56a16;
  --role-soft: #fff1dc;
  --role-border: rgba(197, 106, 22, 0.3);
}

.role-dev {
  --role-color: #171717;
  --role-soft: #eee9df;
  --role-border: rgba(23, 23, 23, 0.18);
}

/* Palette cyclée pour les rôles personnalisés. */
.role-custom-1 { --role-color: #d6336c; --role-soft: #ffe8f0; --role-border: rgba(214, 51, 108, 0.28); }
.role-custom-2 { --role-color: #1098ad; --role-soft: #e0fbff; --role-border: rgba(16, 152, 173, 0.28); }
.role-custom-3 { --role-color: #e8590c; --role-soft: #fff0e6; --role-border: rgba(232, 89, 12, 0.28); }
.role-custom-4 { --role-color: #5f3dc4; --role-soft: #efeaff; --role-border: rgba(95, 61, 196, 0.28); }
.role-custom-5 { --role-color: #2b8a3e; --role-soft: #e7f7ec; --role-border: rgba(43, 138, 62, 0.28); }
.role-custom-6 { --role-color: #1864ab; --role-soft: #e6f0fb; --role-border: rgba(24, 100, 171, 0.28); }

.role-footer {
  color: var(--role-color, var(--faint));
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 26px;
  border-color: var(--role-border);
  background:
    linear-gradient(135deg, var(--role-soft), rgba(255, 255, 255, 0.96) 58%),
    var(--panel);
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: var(--role-color);
}

.access-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.access-card-head i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: var(--role-color);
  color: white;
  font-style: normal;
}

.access-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.access-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-actions-list span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--role-border);
  border-radius: 999px;
  background: white;
  color: var(--role-color);
  font-weight: 950;
}

.access-card .big-button {
  width: fit-content;
  border-color: var(--role-color);
  background: var(--role-color);
}

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

  .access-card .big-button {
    width: 100%;
  }
}

/* Navigation haute + harmonie globale */
.app-shell {
  --page-color: #171717;
  --page-soft: #f3efe6;
  --page-border: var(--line);
  min-height: 100vh;
}

.theme-app {
  --page-color: #0ea5e9;
  --page-soft: #e0f2fe;
  --page-border: rgba(14, 165, 233, 0.3);
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.22), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255, 214, 10, 0.2), transparent 28%),
    radial-gradient(circle at 74% 86%, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 100%);
}

.theme-fleet {
  --page-color: #2563eb;
  --page-soft: #eaf1ff;
  --page-border: rgba(37, 99, 235, 0.28);
}

.theme-alerts {
  --page-color: #b7352d;
  --page-soft: #ffe9e5;
  --page-border: rgba(183, 53, 45, 0.3);
}

.theme-washing {
  --page-color: #0f7a8a;
  --page-soft: #e4f7f9;
  --page-border: rgba(15, 122, 138, 0.28);
}

.theme-garage {
  --page-color: #2f7d4f;
  --page-soft: #e9f6ee;
  --page-border: rgba(47, 125, 79, 0.28);
}

.theme-configure {
  --page-color: #f59e0b;
  --page-soft: #fff7d6;
  --page-border: rgba(245, 158, 11, 0.32);
}

.theme-access {
  --page-color: #c56a16;
  --page-soft: #fff1dc;
  --page-border: rgba(197, 106, 22, 0.3);
}

.theme-employees {
  --page-color: #00a7c8;
  --page-soft: #e0faff;
  --page-border: rgba(0, 167, 200, 0.28);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px clamp(12px, 3vw, 34px);
}

.top-brand {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.12);
}

.top-brand span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.top-brand strong {
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  gap: 9px;
  align-items: center;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: thin;
}

.top-link {
  --nav-color: var(--ink);
  --nav-soft: var(--panel-soft);
  min-height: 58px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 950;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.top-link span {
  white-space: nowrap;
}

.top-link svg {
  color: var(--nav-color);
}

.top-link:hover,
.top-link.active {
  border-color: rgba(0, 0, 0, 0);
  background: var(--nav-soft);
  color: var(--nav-color);
  transform: translateY(-1px);
}

.top-link.active {
  box-shadow: inset 0 0 0 2px var(--nav-color);
}

.nav-app {
  --nav-color: #0ea5e9;
  --nav-soft: #e0f2fe;
}

.nav-fleet {
  --nav-color: #2563eb;
  --nav-soft: #eaf1ff;
}

.nav-alerts {
  --nav-color: #b7352d;
  --nav-soft: #ffe9e5;
}

.nav-washing {
  --nav-color: #0f7a8a;
  --nav-soft: #e4f7f9;
}

.nav-garage {
  --nav-color: #2f7d4f;
  --nav-soft: #e9f6ee;
}

.nav-configure {
  --nav-color: #f59e0b;
  --nav-soft: #fff7d6;
}

.nav-access {
  --nav-color: #c56a16;
  --nav-soft: #fff1dc;
}

.nav-employees {
  --nav-color: #00a7c8;
  --nav-soft: #e0faff;
}

.top-role {
  --role-color: var(--page-color);
  --role-soft: var(--page-soft);
  --role-border: var(--page-border);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--role-border);
  border-radius: 18px;
  background: var(--role-soft);
  color: var(--role-color);
  font-size: 0.95rem;
  font-weight: 950;
}

.app-shell .stage {
  width: min(1320px, 100%);
  padding: 26px clamp(14px, 3vw, 38px) 56px;
}

.app-shell .page-header {
  position: relative;
  overflow: hidden;
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--page-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--page-soft), rgba(255, 255, 255, 0.96) 62%),
    var(--panel);
  box-shadow: var(--shadow);
}

.app-shell .page-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--page-color);
}

.app-shell .page-header h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(2.15rem, 4.4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.app-shell .kicker {
  color: var(--page-color);
}

.app-shell .header-pill {
  border-color: var(--page-border);
  background: white;
  color: var(--page-color);
}

.app-shell .card,
.app-shell .focus-card,
.app-shell .notification-card {
  border-color: color-mix(in srgb, var(--page-border) 65%, var(--line));
}

.config-simple {
  border-color: var(--page-border);
  background:
    linear-gradient(135deg, var(--page-soft), rgba(255, 255, 255, 0.95) 54%),
    var(--panel);
}

.family-voiture {
  --family-color: #2563eb;
  --family-soft: #eaf1ff;
}

.family-moto {
  --family-color: #e11d48;
  --family-soft: #fff1f5;
}

.family-camion {
  --family-color: #c56a16;
  --family-soft: #fff1dc;
}

.family-engin {
  --family-color: #2f7d4f;
  --family-soft: #e9f6ee;
}

.config-simple .family-option {
  border-color: color-mix(in srgb, var(--family-color, var(--line-dark)) 28%, var(--line));
  background: var(--family-soft, var(--panel-soft));
}

.config-simple .family-option svg {
  color: var(--family-color, var(--signal));
}

.config-simple .family-option.active {
  border-color: var(--family-color);
  box-shadow: inset 0 0 0 2px var(--family-color);
}

@media (max-width: 1060px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    gap: 10px;
    padding: 10px;
  }

  .top-brand {
    min-height: 52px;
  }

  .top-role {
    min-height: 52px;
    padding: 0 12px;
  }

  .top-link {
    min-height: 54px;
    padding: 0 14px;
  }

  .app-shell .stage {
    padding: 16px 10px 36px;
  }

  .app-shell .page-header {
    padding: 20px 20px 20px 24px;
  }

  .app-shell .page-header h1 {
    font-size: 2.25rem;
  }
}


/* Dashboard waouw */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, 0.86fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(14, 165, 233, 0.95) 49%, rgba(34, 197, 94, 0.94) 100%);
  color: white;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
}

.dashboard-hero::before,
.dashboard-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.dashboard-hero::before {
  width: 360px;
  height: 360px;
  top: -132px;
  right: -82px;
  background: rgba(255, 214, 10, 0.46);
  filter: blur(4px);
}

.dashboard-hero::after {
  width: 260px;
  height: 260px;
  left: 38%;
  bottom: -154px;
  background: rgba(255, 59, 48, 0.34);
  filter: blur(10px);
}

.dashboard-hero-copy,
.dashboard-metrics {
  position: relative;
  z-index: 1;
}

.dashboard-eyebrow {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.dashboard-hero h1 {
  max-width: 780px;
  margin: 26px 0 18px;
  font-size: clamp(3.1rem, 7.2vw, 7.25rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}

.dashboard-hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.45;
  font-weight: 720;
}

.dashboard-priority {
  --priority-color: #0ea5e9;
  max-width: 660px;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.dashboard-priority i {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--priority-color);
  color: white;
  font-style: normal;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
}

.dashboard-priority div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-priority span,
.dashboard-priority small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
}

.dashboard-priority span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-priority strong {
  overflow: hidden;
  color: white;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-priority a {
  min-height: 48px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 16px;
  background: white;
  color: #0f172a;
  font-weight: 950;
}

.priority-critical,
.priority-urgent {
  --priority-color: #ff3b30;
}

.priority-warning {
  --priority-color: #ff9f0a;
}

.priority-info {
  --priority-color: #0ea5e9;
}

.priority-clear {
  --priority-color: #22c55e;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 950;
}

.hero-button.primary {
  background: #ffd60a;
  color: #1b1b1b;
  box-shadow: 0 14px 34px rgba(255, 214, 10, 0.24);
}

.hero-button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(12px);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-metric {
  --tile-color: #0ea5e9;
  position: relative;
  overflow: hidden;
  min-height: 158px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--tile-color), color-mix(in srgb, var(--tile-color) 72%, #0f172a));
  color: white;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

.dashboard-metric::after {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  right: -34px;
  bottom: -42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.dashboard-metric div,
.dashboard-metric i {
  position: relative;
  z-index: 1;
}

.dashboard-metric span,
.dashboard-metric small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.dashboard-metric span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric strong {
  display: block;
  margin: 12px 0 6px;
  font-size: clamp(2.7rem, 5vw, 4.15rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.dashboard-metric i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  font-style: normal;
}

.metric-vivid-red {
  --tile-color: #ff3b30;
}

.metric-vivid-orange {
  --tile-color: #ff9f0a;
}

.metric-vivid-blue {
  --tile-color: #2563eb;
}

.metric-vivid-green {
  --tile-color: #22c55e;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.dashboard-action-card {
  --action-color: #0ea5e9;
  --action-soft: #e0f2fe;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--action-color) 30%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--action-soft), rgba(255, 255, 255, 0.98));
  color: var(--action-color);
  box-shadow: 0 18px 52px rgba(36, 30, 20, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.dashboard-action-card:hover {
  border-color: var(--action-color);
  box-shadow: 0 24px 62px rgba(36, 30, 20, 0.13);
  transform: translateY(-2px);
}

.dashboard-action-card i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--action-color);
  color: white;
  font-style: normal;
}

.dashboard-action-card span {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  font-weight: 950;
}

.action-cyan {
  --action-color: #00a7c8;
  --action-soft: #e0faff;
}

.action-green {
  --action-color: #22c55e;
  --action-soft: #e9f9ee;
}

.action-blue {
  --action-color: #2563eb;
  --action-soft: #eaf1ff;
}

.action-yellow {
  --action-color: #f59e0b;
  --action-soft: #fff7d6;
}

.action-orange {
  --action-color: #ff6b00;
  --action-soft: #fff0df;
}

.dashboard-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.dashboard-panel {
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--page-border) 70%, var(--line));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.dashboard-panel-main {
  background:
    linear-gradient(135deg, #fff7d6, rgba(255, 255, 255, 0.94) 54%),
    var(--panel);
}

.dashboard-panel .section-title span {
  color: var(--page-color);
}

.dashboard-panel .big-actions {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .dashboard-hero,
  .dashboard-section-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics,
  .dashboard-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 680px) {
  .dashboard-hero {
    padding: 22px;
    border-radius: 14px;
  }

  .dashboard-hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.1rem);
  }

  .dashboard-priority {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-priority a,
  .hero-button,
  .dashboard-action-card {
    width: 100%;
  }

  .dashboard-metrics,
  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-action-card {
    min-height: 92px;
  }

  .dashboard-panel {
    padding: 22px;
    border-radius: 26px;
  }
}

/* Employés */
.employees-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.employee-form-card,
.employee-list-card {
  border-color: var(--page-border);
  background:
    linear-gradient(135deg, var(--page-soft), rgba(255, 255, 255, 0.96) 58%),
    var(--panel);
}

.employee-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.employee-form-head.compact {
  margin-bottom: 14px;
}

.employee-form-head i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: var(--page-color);
  color: white;
  font-style: normal;
}

.employee-form-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
}

.employee-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.employee-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 900;
}

.employee-form-grid input,
.employee-form-grid select {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--page-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  font-size: 1.1rem;
  font-weight: 780;
}

.employee-form-grid input:focus,
.employee-form-grid select:focus {
  border-color: var(--page-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-color) 12%, transparent);
}

.employee-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.employee-list {
  display: grid;
  gap: 12px;
}

.employee-row {
  --role-color: var(--page-color);
  --role-soft: var(--page-soft);
  --role-border: var(--page-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--role-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.employee-row strong,
.employee-row span,
.employee-row small {
  display: block;
}

.employee-row strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.employee-row span,
.employee-row small {
  margin-top: 4px;
  color: var(--muted);
}

.employee-row b {
  height: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--role-soft);
  color: var(--role-color);
  font-size: 0.92rem;
}

.state-error {
  color: var(--bad);
}

.state-success {
  color: var(--ok);
}

@media (max-width: 980px) {
  .employees-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .employee-form-grid,
  .employee-row {
    grid-template-columns: 1fr;
  }

  .employee-row {
    flex-direction: column;
  }
}

/* Radical minimal UI - 2026-05-19 */
:root {
  --paper: #f5f5f7;
  --panel: #ffffff;
  --panel-soft: #f9f9fa;
  --ink: #111111;
  --muted: #6b665d;
  --faint: #aaa398;
  --line: #e4e2de;
  --line-dark: #ccc9c3;
  --signal: #ff4d00;
  --signal-soft: #fff0e7;
  --dark: #111111;
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow: 0 1px 3px rgba(17, 17, 17, 0.06), 0 4px 8px rgba(17, 17, 17, 0.04);
}

body {
  background: var(--paper);
}

::selection {
  background: #111111;
  color: #ffffff;
}

.custom-icon {
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  flex: 0 0 var(--icon-size, 20px);
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.landing-minimal {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 77, 0, 0.12), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(14, 165, 233, 0.09), transparent 30%),
    var(--paper);
}

.landing-minimal .landing-nav {
  width: min(1280px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.landing-minimal .landing-nav > div,
.landing-minimal .landing-nav a:not(.landing-brand):not(.nav-cta) {
  display: none;
}

.landing-minimal .landing-brand,
.top-brand {
  border-radius: 999px;
  background: #111111;
  box-shadow: none;
}

.landing-minimal .nav-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font-weight: 950;
}

.landing-minimal-hero {
  position: relative;
  width: min(1280px, 100%);
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 94px) 0;
}

.minimal-color-field {
  width: min(610px, 48vw);
  height: clamp(12px, 2.4vw, 26px);
  margin-bottom: clamp(34px, 7vw, 84px);
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d00 0 52%, #0ea5e9 52% 100%);
  box-shadow: 0 22px 80px rgba(255, 77, 0, 0.18);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--page-color, #ff4d00);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-minimal-hero h1,
.home-minimal h1 {
  max-width: 980px;
  margin: 0;
  color: #111111;
  font-size: clamp(4.8rem, 14.5vw, 13rem);
  line-height: 0.76;
  letter-spacing: -0.04em;
}

.landing-minimal-hero > p:not(.landing-kicker),
.home-minimal > p:not(.landing-kicker) {
  max-width: 590px;
  margin: clamp(24px, 4vw, 38px) 0 0;
  color: #5d574f;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.45;
  font-weight: 640;
}

.minimal-cta {
  width: fit-content;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 0 24px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.minimal-cta:hover,
.minimal-cta:focus-visible {
  background: var(--page-color, #ff4d00);
  border-color: var(--page-color, #ff4d00);
  color: #ffffff;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--page-color, #ff4d00) 28%, transparent);
  transform: translateY(-2px) scale(1.015);
}

.app-shell {
  min-height: 100vh;
  background: var(--paper);
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--page-color);
  z-index: 40;
}

.topbar {
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
}

.topbar-inner {
  width: min(1440px, 100%);
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px clamp(16px, 4vw, 46px);
}

.top-brand {
  min-height: 52px;
  padding: 0 14px;
  color: #ffffff;
}

.top-brand span {
  background: #ffffff;
  color: #111111;
}

.top-nav {
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.top-link {
  min-height: 52px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #37332e;
  font-size: 0.96rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.top-link:hover,
.top-link.active {
  border-color: color-mix(in srgb, var(--nav-color) 28%, transparent);
  background: color-mix(in srgb, var(--nav-color) 11%, transparent);
  color: var(--nav-color);
  transform: translateY(-1px);
}

.top-link.active {
  box-shadow: inset 0 -3px 0 var(--nav-color);
}

.top-role {
  min-height: 52px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--page-border);
}

.app-shell .stage {
  width: min(1440px, 100%);
  padding: clamp(26px, 4vw, 56px) clamp(18px, 4vw, 54px) 72px;
}

.page-header {
  position: relative;
  overflow: visible;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  margin-bottom: clamp(24px, 4vw, 42px);
  padding: clamp(8px, 1.4vw, 18px) 0 clamp(26px, 4vw, 52px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .page-header {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .page-header::before {
  width: min(380px, 42vw);
  height: 9px;
  inset: auto auto 0 0;
  border-radius: 999px;
  background: var(--page-color);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--page-color);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app-shell .page-header h1,
.page-header h1 {
  max-width: 1040px;
  color: #111111;
  font-size: clamp(4.1rem, 10vw, 10.4rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.page-header p:not(.kicker) {
  max-width: 610px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

.header-pill {
  min-height: 48px;
  padding: 0 18px;
  border-color: var(--page-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--page-color);
  font-size: 1rem;
  font-weight: 950;
}

.home-minimal {
  position: relative;
  min-height: calc(100vh - 174px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 92px) 0;
}

.home-minimal-line {
  width: min(520px, 52vw);
  height: clamp(10px, 1.7vw, 20px);
  margin-bottom: clamp(34px, 7vw, 82px);
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9 0 55%, #22c55e 55% 100%);
  box-shadow: 0 18px 70px rgba(14, 165, 233, 0.16);
}

.home-minimal.has-urgency .home-minimal-line {
  background: linear-gradient(90deg, #ff3b30 0 58%, #ff9f0a 58% 100%);
  box-shadow: 0 18px 70px rgba(255, 59, 48, 0.16);
}

.card,
.focus-card,
.notification-card,
.dashboard-panel,
.employee-form-card,
.employee-list-card,
.config-simple,
.garage-form,
.fleet-category-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.card,
.focus-card,
.notification-card,
.asset-line,
.wash-duty,
.garage-visit,
.garage-history-card,
.employee-row,
.dashboard-action-card,
.family-option {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.asset-line:hover,
.wash-duty:hover,
.garage-visit:hover,
.garage-history-card:hover,
.employee-row:hover,
.fleet-category-card:hover {
  border-color: color-mix(in srgb, var(--page-color) 32%, var(--line));
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.08), 0 6px 16px rgba(17, 17, 17, 0.05);
  transform: translateY(-2px);
}

.section-title span,
.quiet-label,
.asset-code,
.wash-history span {
  color: var(--page-color);
}

.section-title h2,
.employee-form-head h2,
.garage-lines-head strong {
  font-size: clamp(1.38rem, 2.2vw, 2.05rem);
  letter-spacing: -0.04em;
}

.metric-strip {
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.metric-strip article {
  min-height: 132px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: #ffffff;
}

.metric-strip article::before {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--page-color);
}

.metric-strip strong {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  letter-spacing: -0.095em;
}

.task-board,
.two-columns,
.garage-layout,
.employees-layout,
.vehicle-sheet-grid,
.fleet-category-list {
  gap: clamp(16px, 2vw, 24px);
}

.task-column,
.garage-side,
.employee-list-card {
  min-height: 320px;
}

.alert-row,
.asset-line,
.wash-duty,
.garage-visit,
.garage-history-card,
.employee-row,
.vehicle-identity dl div,
.wash-history article,
.garage-lines-list div {
  border-color: rgba(17, 17, 17, 0.075);
  background: #ffffff;
}

.alert-marker {
  background: var(--page-color);
}

.severity-critical .alert-marker,
.severity-urgent .alert-marker {
  background: #ff3b30;
}

.severity-warning .alert-marker {
  background: #ff9f0a;
  border-color: #ff9f0a;
}

.big-button,
.quick-actions a,
.done-button,
.small-link,
.primary-button,
.save-button {
  border-radius: 999px;
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-weight: 950;
}

.big-button:hover,
.quick-actions a:hover,
.done-button:hover,
.small-link:hover,
.primary-button:hover,
.save-button:hover {
  border-color: var(--page-color);
  background: var(--page-color);
  transform: translateY(-1px);
}

.big-button.light,
.small-link {
  border-color: rgba(17, 17, 17, 0.12);
  background: #ffffff;
  color: #111111;
}

.big-button.danger {
  border-color: rgba(193, 30, 53, 0.25);
  background: #fff;
  color: #c11e35;
}
.big-button.danger:hover {
  border-color: #c11e35;
  background: #c11e35;
  color: #fff;
}

.simple-status,
.wash-status,
.money-pill,
.employee-row b,
.token-row span {
  border-radius: 999px;
}

.form-grid input,
.form-grid select,
.garage-form input,
.garage-form select,
.garage-form textarea,
.config-simple input,
.config-simple select,
.employee-form-grid input,
.employee-form-grid select {
  border-radius: 999px;
  background: #ffffff;
}

.garage-form textarea,
.notes-field textarea {
  border-radius: 24px;
}

.config-simple,
.employee-form-card,
.garage-form {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--page-color) 8%, transparent), transparent 42%),
    #ffffff;
}

.family-option.active,
.config-simple .family-option.active {
  box-shadow: inset 0 0 0 2px var(--family-color), 0 18px 42px color-mix(in srgb, var(--family-color) 14%, transparent);
}

.fleet-category-card::before {
  width: 100%;
  height: 8px;
  inset: 0 0 auto 0;
}

.fleet-category-head i,
.employee-form-head i {
  border-radius: 999px;
}

.dev-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 77, 0, 0.12), transparent 25%),
    var(--paper);
}

.dev-card {
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .landing-minimal-hero,
  .home-minimal {
    min-height: auto;
    padding-top: 90px;
  }

  .landing-minimal-hero h1,
  .home-minimal h1,
  .app-shell .page-header h1,
  .page-header h1 {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }
}

@media (max-width: 680px) {
  .app-shell::before {
    width: 5px;
  }

  .landing-minimal {
    padding: 14px;
  }

  .minimal-color-field,
  .home-minimal-line {
    width: 76vw;
  }

  .minimal-cta {
    width: 100%;
  }

  .top-link span {
    font-size: 0.9rem;
  }

  .top-role span {
    display: none;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .header-pill {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Minimal brand correction */
.landing-minimal .landing-brand {
  min-height: 52px;
  padding: 0 14px;
  color: #ffffff;
}

.landing-minimal .landing-brand span {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
}

.landing-minimal .landing-brand strong {
  color: #ffffff;
}

.dev-header p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* 2026-05-19 - Titres sobres */
.app-shell .page-header,
.page-header {
  margin-bottom: 26px;
  padding: 8px 0 24px;
}

.app-shell .page-header::before {
  width: min(220px, 38vw);
  height: 6px;
}

.app-shell .page-header h1,
.page-header h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.kicker,
.landing-kicker {
  margin-bottom: 12px;
  font-size: 0.74rem;
}

.landing-minimal-hero h1,
.home-minimal h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}

.landing-minimal-hero,
.home-minimal {
  justify-content: center;
}

.minimal-color-field,
.home-minimal-line {
  margin-bottom: clamp(28px, 5vw, 58px);
}

@media (max-width: 980px) {
  .landing-minimal-hero h1,
  .home-minimal h1,
  .app-shell .page-header h1,
  .page-header h1 {
    font-size: clamp(2.45rem, 12vw, 4.8rem);
  }
}

@media (max-width: 680px) {
  .app-shell .page-header,
  .page-header {
    padding-bottom: 20px;
  }

  .landing-minimal-hero h1,
  .home-minimal h1,
  .app-shell .page-header h1,
  .page-header h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }
}

/* 2026-05-19 - Suppression complete des titres de page */
.page-header-no-title,
.app-shell .page-header-no-title {
  min-height: 52px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 0 14px;
}

.app-shell .page-header-no-title::before,
.page-header-no-title::before {
  width: min(150px, 28vw);
  height: 4px;
}

.page-header-no-title .kicker {
  margin: 0;
}

.page-header-no-title .page-header-description {
  margin: 8px 0 0;
  max-width: 560px;
  color: var(--muted);
}

/* 2026-05-20 - Lavages par moniteur + primes */
.wash-prime-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.wash-prime-hero article,
.garage-simple-stats article {
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.wash-prime-hero article:first-child {
  background: linear-gradient(135deg, #e4f7f9, #ffffff 62%);
}

.wash-prime-hero article:nth-child(2) {
  background: linear-gradient(135deg, #fff7d6, #ffffff 62%);
}

.wash-prime-hero span,
.garage-simple-stats span {
  display: block;
  color: var(--page-color);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wash-prime-hero strong,
.garage-simple-stats strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.wash-prime-hero small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.wash-monitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.wash-monitor-main,
.wash-prime-side {
  padding: 26px;
}

.wash-monitor-list,
.wash-monitor-duties {
  display: grid;
  gap: 12px;
}

.wash-monitor-card {
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: var(--panel);
}

.wash-monitor-head,
.wash-monitor-duty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wash-monitor-head {
  margin-bottom: 14px;
}

.wash-monitor-head strong,
.wash-monitor-head span,
.wash-monitor-head b,
.wash-monitor-duty strong {
  display: block;
}

.wash-monitor-head strong {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.06em;
}

.wash-monitor-head span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 820;
}

.wash-monitor-head b {
  min-width: 94px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--page-color);
  color: white;
  text-align: center;
  font-size: 1.08rem;
}

.wash-monitor-duty {
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: white;
}

.wash-monitor-duty strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.wash-prime-side .muted-note {
  margin: -4px 0 18px;
}

.garage-layout-simple {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
}

.garage-simple-stats {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.garage-simple-stats article {
  min-height: 108px;
  padding: 18px;
}

.garage-simple-stats strong {
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 980px) {
  .wash-monitor-layout,
  .garage-layout-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .wash-prime-hero {
    grid-template-columns: 1fr;
  }

  .wash-monitor-head,
  .wash-monitor-duty {
    align-items: stretch;
    flex-direction: column;
  }

  .wash-monitor-head b,
  .wash-actions,
  .wash-actions .done-button,
  .wash-actions .small-link {
    width: 100%;
  }
}

/* 2026-05-20 - Fonctionnalites persistantes */
.wash-monitor-layout.single {
  grid-template-columns: 1fr;
}

.wash-monitor-layout.single .wash-monitor-main {
  max-width: 980px;
}

.done-button-wrap {
  display: grid;
  gap: 6px;
}

.done-button:disabled {
  cursor: default;
  opacity: 0.82;
}

.garage-layout-simple .garage-form {
  min-width: 0;
}

.theme-settings,
.nav-settings {
  --page-color: #0f766e;
  --page-soft: #e6fffb;
  --page-border: rgba(15, 118, 110, 0.28);
  --nav-color: #0f766e;
  --nav-soft: #e6fffb;
}

.theme-fuel,
.nav-fuel {
  --page-color: #f97316;
  --page-soft: #fff4df;
  --page-border: rgba(249, 115, 22, 0.28);
  --nav-color: #f97316;
  --nav-soft: #fff4df;
}

.theme-validation,
.nav-validation {
  --page-color: #16a34a;
  --page-soft: #ecfdf3;
  --page-border: rgba(22, 163, 74, 0.28);
  --nav-color: #16a34a;
  --nav-soft: #ecfdf3;
}

.theme-monitor,
.nav-monitor {
  --page-color: #0ea5e9;
  --page-soft: #e0f6ff;
  --page-border: rgba(14, 165, 233, 0.28);
  --nav-color: #0ea5e9;
  --nav-soft: #e0f6ff;
}

.theme-pilotage,
.nav-pilotage {
  --page-color: #111827;
  --page-soft: #f3f4f6;
  --page-border: rgba(17, 24, 39, 0.22);
  --nav-color: #111827;
  --nav-soft: #f3f4f6;
}

.logout-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(249, 115, 22, 0.14), transparent 30%),
    var(--paper);
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: #2563eb;
  font-weight: 950;
}

.login-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2563eb;
  color: white;
}

.login-title span {
  color: #2563eb;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-title h1 {
  margin: 8px 0 24px;
  color: var(--ink);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-weight: 950;
}

.login-form input {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.9));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 34px rgba(37, 99, 235, 0.055);
  outline: none;
  padding: 0 18px;
  font-size: 1.06rem;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.login-form input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow:
    0 0 0 5px rgba(37, 99, 235, 0.13),
    0 18px 46px rgba(37, 99, 235, 0.11);
  transform: translateY(-1px);
}

.login-button {
  min-height: 58px;
  width: 100%;
  margin-top: 4px;
  font-size: 1rem;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.danger-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 950;
  cursor: pointer;
}

.danger-button.full {
  width: 100%;
}

.danger-button:disabled {
  cursor: default;
  opacity: 0.68;
}

/* 2026-05-26 - Lavages avec preuve photo */
.wash-proof-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.wash-submit-card,
.settings-card {
  padding: clamp(20px, 3vw, 30px);
}

.wash-submit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.wash-submit-head strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.wash-submit-head span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--page-soft);
  color: var(--page-color);
  font-weight: 950;
}

.wash-submit-grid,
.wash-photo-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wash-photo-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.wash-photo-ready {
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px dashed rgba(17, 17, 17, 0.15);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 850;
}

.wash-photo-ready.is-ready {
  border-color: rgba(22, 163, 74, 0.35);
  background: #f0fdf4;
  color: #15803d;
}

.wash-proof-metrics {
  display: grid;
  gap: 12px;
}

.wash-proof-metrics article {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--page-color) 16%, white), #fff 70%);
}

.wash-proof-metrics span {
  display: block;
  color: var(--page-color);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wash-proof-metrics strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.wash-proof-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.wash-proof-column {
  display: grid;
  gap: 12px;
}

.wash-proof-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.wash-proof-column > header strong,
.wash-proof-column > header span {
  display: block;
  color: var(--ink);
  font-weight: 950;
}

.wash-proof-column > header span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--page-color);
  color: white;
}

.wash-proof-stack {
  display: grid;
  gap: 12px;
}

.wash-proof-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
}

.wash-proof-pending {
  background: #fffbeb;
}

.wash-proof-validated {
  background: #f0fdf4;
}

.wash-proof-rejected {
  background: #fff1f2;
}

.wash-proof-link,
.vehicle-wash-thumb,
.wash-proof-empty {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--soft);
}

.wash-proof-link img,
.vehicle-wash-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wash-proof-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.wash-proof-main,
.wash-proof-stack,
.wash-review-actions,
.reject-box {
  min-width: 0;
}

.wash-proof-head,
.wash-review-buttons,
.wash-proof-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wash-proof-head strong,
.wash-proof-head span {
  display: block;
}

.wash-proof-head strong {
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.wash-proof-head span {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.wash-proof-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.wash-proof-facts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.wash-proof-card p,
.reject-reason {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 760;
}

.reject-reason {
  color: #be123c;
}

.wash-review-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.wash-review-actions label,
.wash-submit-grid label {
  font-size: 0.85rem;
}

.wash-review-buttons .primary-button,
.wash-review-buttons .danger-button {
  flex: 1;
}

.reject-box {
  display: grid;
  gap: 10px;
}

.reject-box textarea {
  min-height: 88px;
}

.vehicle-wash-thumb {
  width: 96px;
  margin-bottom: 10px;
}

@media (max-width: 1180px) {
  .wash-proof-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .wash-proof-top,
  .wash-submit-grid,
  .wash-photo-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-26 - Champs sobres, lisibles, sans effet navigateur par defaut */
.app-shell label {
  color: var(--muted);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.app-shell input:not([type="file"]),
.app-shell select,
.app-shell textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--page-color) 18%, rgba(17, 17, 17, 0.12));
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 26px rgba(17, 17, 17, 0.035);
  outline: none;
  padding: 0 18px;
  font-size: 1.02rem;
  font-weight: 850;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.app-shell select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--page-color) 50%),
    linear-gradient(135deg, var(--page-color) 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 16px) 50%,
    0 0;
  background-size:
    7px 7px,
    7px 7px,
    100% 100%;
  background-repeat: no-repeat;
}

.app-shell textarea {
  min-height: 112px;
  padding: 16px 18px;
  resize: vertical;
  border-radius: 22px;
}

.app-shell input:not([type="file"]):focus,
.app-shell select:focus,
.app-shell textarea:focus {
  border-color: var(--page-color);
  background: #ffffff;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--page-color) 14%, transparent),
    0 18px 44px rgba(17, 17, 17, 0.07);
  transform: translateY(-1px);
}

.app-shell input::placeholder,
.app-shell textarea::placeholder {
  color: transparent;
}

.wash-submit-grid label,
.wash-review-actions label,
.settings-card label,
.notes-field {
  display: grid;
  gap: 9px;
}

.wash-submit-grid input,
.wash-submit-grid select,
.wash-review-actions input,
.reject-box textarea,
.settings-card input,
.notes-field textarea {
  margin-top: 2px;
}

/* 2026-05-26 - Essence avec ticket photo */
.fuel-submit-card {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.92);
}

.fuel-submit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fuel-save-button {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111111;
}

.fuel-proof-top {
  align-items: stretch;
}

.fuel-proof-metrics article:nth-child(2) {
  background: linear-gradient(135deg, #fff0bd, #fff 70%);
}

.fuel-proof-metrics article:nth-child(3) {
  background: linear-gradient(135deg, #ffedd5, #fff 70%);
}

.fuel-proof-card {
  border-color: rgba(249, 115, 22, 0.16);
}

.fuel-proof-card.wash-proof-pending {
  background: #fff7ed;
}

.fuel-proof-link {
  background: #ffedd5;
}

.fuel-proof-facts span {
  color: #9a3412;
}

.fuel-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fuel-chart-card {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--panel);
}

.simple-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.simple-card-head strong {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
}

.simple-card-head span {
  color: var(--page-color);
  font-weight: 950;
}

.fuel-bars {
  display: grid;
  gap: 10px;
}

.fuel-bar-row {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 13px 16px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-decoration: none;
}

.fuel-bar-row b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-width);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.24), rgba(250, 204, 21, 0.2));
}

.fuel-bar-row span,
.fuel-bar-row strong {
  position: relative;
  z-index: 1;
  font-weight: 950;
}

.fuel-bar-row strong {
  justify-self: end;
}

@media (max-width: 860px) {
  .fuel-submit-grid,
  .fuel-review-grid {
    grid-template-columns: 1fr;
  }

  .fuel-bar-row {
    grid-template-columns: 1fr;
  }

  .simple-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026-05-27 - Validation centrale + mode moniteur */
.validation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.validation-hero article,
.validation-locked {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 20%, rgba(22, 163, 74, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.validation-hero article span,
.validation-locked strong {
  display: block;
  color: var(--page-color);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.validation-hero article strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.12em;
}

.validation-hero > div {
  min-width: 240px;
  display: grid;
  gap: 12px;
}

.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.validation-column {
  display: grid;
  gap: 12px;
}

.validation-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.validation-column > header strong,
.validation-column > header span {
  color: var(--ink);
  font-weight: 950;
}

.validation-column > header span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--page-color);
  color: white;
}

.validation-stack {
  display: grid;
  gap: 12px;
}

.validation-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.validation-fuel {
  background: linear-gradient(135deg, #fff7ed, rgba(255, 255, 255, 0.94));
}

.validation-wash {
  background: linear-gradient(135deg, #ecfeff, rgba(255, 255, 255, 0.94));
}

.validation-proof {
  min-height: 112px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--page-soft);
}

.validation-proof img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.empty-proof {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.validation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.validation-head span,
.validation-head strong,
.validation-head a,
.validation-facts span,
.validation-card p {
  display: block;
}

.validation-head span {
  color: var(--page-color);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.validation-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.26rem;
  letter-spacing: -0.05em;
}

.validation-head a {
  color: var(--ink);
  font-weight: 950;
  text-align: right;
}

.validation-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.validation-facts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-weight: 850;
}

.validation-card p,
.validation-locked p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 780;
}

.monitor-home {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.monitor-action {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.monitor-action:hover,
.monitor-action:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08), 0 8px 20px rgba(17, 17, 17, 0.06);
}

.monitor-action span {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(17, 17, 17, 0.1);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.13em;
}

.monitor-action strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.86;
  letter-spacing: -0.1em;
}

.monitor-action small {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 1.15rem;
  font-weight: 900;
}

.monitor-action-fuel {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.monitor-action-wash {
  background: linear-gradient(135deg, #06b6d4, #ccfbf1);
}

.monitor-action-feedback {
  background: linear-gradient(135deg, #f43f5e, #ffe4e6);
}

/* 2026-05-27 - Fiche véhicule centre de contrôle */
.vehicle-command-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 22%, color-mix(in srgb, var(--page-color) 18%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.vehicle-command-main span,
.vehicle-command-main strong,
.vehicle-command-main small {
  display: block;
}

.vehicle-command-main span {
  color: var(--page-color);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.vehicle-command-main strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.86;
  letter-spacing: -0.1em;
}

.vehicle-command-main small {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
}

.vehicle-command-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-command-stats article {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
}

.vehicle-command-stats span,
.vehicle-command-stats strong {
  display: block;
}

.vehicle-command-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.vehicle-command-stats strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  letter-spacing: -0.07em;
}

.vehicle-command-actions {
  min-width: 150px;
  display: grid;
  gap: 10px;
}

/* 2026-05-27 - Pilotage patron */
.pilotage-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.86;
  letter-spacing: -0.1em;
}

.metric-fuel {
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.metric-success {
  background: linear-gradient(135deg, #ecfdf3, #fff);
}

.metric-danger {
  background: linear-gradient(135deg, #fff1f2, #fff);
}

.pilotage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.pilotage-card {
  padding: clamp(18px, 3vw, 26px);
}

.pilotage-list {
  display: grid;
  gap: 10px;
}

.pilotage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 15px 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-decoration: none;
}

.pilotage-row span,
.pilotage-row b,
.pilotage-row small {
  display: block;
}

.pilotage-row span,
.pilotage-row b {
  font-weight: 950;
}

.pilotage-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 850;
}

/* 2026-05-28 - Fiche véhicule premium */
.vehicle-command-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.35fr) minmax(170px, 0.38fr);
  gap: clamp(18px, 2.4vw, 34px);
  padding: clamp(18px, 2.8vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--page-color) 13%, transparent) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.98) 100%),
    radial-gradient(circle at 7% 10%, rgba(37, 99, 235, 0.18), transparent 34%),
    #fff;
  box-shadow: var(--shadow);
}

.vehicle-command-card::before {
  display: none;
}

.vehicle-command-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), transparent 68%);
  pointer-events: none;
}

.vehicle-command-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
}

.vehicle-command-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vehicle-command-kicker span,
.vehicle-command-kicker b {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vehicle-command-kicker span {
  color: #fff;
  background: var(--page-color);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--page-color) 28%, transparent);
}

.vehicle-command-kicker b {
  color: color-mix(in srgb, var(--page-color) 80%, #111);
  background: color-mix(in srgb, var(--page-color) 10%, #fff);
}

.vehicle-command-main strong {
  max-width: 7.8ch;
  margin-top: 16px;
  font-size: clamp(3.1rem, 6.4vw, 6.2rem);
  line-height: 0.82;
  letter-spacing: -0.105em;
  text-wrap: balance;
}

.vehicle-command-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.vehicle-command-subline small {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.vehicle-command-stats {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-command-stats .command-stat {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 38px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(14px);
}

.vehicle-command-stats .command-stat span,
.vehicle-command-stats .command-stat strong,
.vehicle-command-stats .command-stat small {
  position: relative;
  z-index: 1;
}

.vehicle-command-stats .command-stat span {
  color: #475569;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.vehicle-command-stats .command-stat strong {
  margin-top: auto;
  overflow-wrap: anywhere;
  color: #020617;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.vehicle-command-stats .command-stat small {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.command-stat.stat-alert {
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.command-stat.stat-alert.is-hot {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(135deg, #fff1f2, #fff);
}

.command-stat.stat-fuel {
  background: linear-gradient(135deg, #ecfeff, #fff);
}

.command-stat.stat-garage {
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.command-stat.stat-total {
  background: linear-gradient(135deg, #ecfdf3, #fff);
}

.vehicle-command-actions {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.vehicle-action {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.vehicle-action:hover,
.vehicle-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.11);
}

.vehicle-action.action-fuel {
  color: #075985;
  background: linear-gradient(135deg, #cffafe, #fff);
}

.vehicle-action.action-garage {
  color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe, #fff);
}

.vehicle-action.action-report {
  color: #be123c;
  background: linear-gradient(135deg, #ffe4e6, #fff);
}

.vehicle-action.action-wash {
  color: #047857;
  background: linear-gradient(135deg, #dcfce7, #fff);
}

.vehicle-action.action-edit {
  color: #334155;
  background: linear-gradient(135deg, #f8fafc, #fff);
}

/* 2026-05-28 - Fiche véhicule plus sobre : peu de couleurs, lecture immédiate */
.vehicle-command-card {
  background: #fff;
  box-shadow: var(--shadow);
}

.vehicle-command-card::after {
  display: none;
}

.vehicle-command-card::before {
  background: var(--page-color);
  box-shadow: none;
}

.vehicle-command-kicker span {
  color: var(--page-color);
  background: color-mix(in srgb, var(--page-color) 9%, #fff);
  box-shadow: none;
}

.vehicle-command-kicker b,
.vehicle-command-subline small {
  color: #64748b;
  background: #f8fafc;
}

.vehicle-command-stats .command-stat {
  background: #fff;
  box-shadow: none;
}

.command-stat.stat-alert,
.command-stat.stat-fuel,
.command-stat.stat-garage {
  background: #fff;
}

.command-stat.stat-alert.is-hot {
  border-color: rgba(239, 68, 68, 0.26);
  background: #fffafa;
}

.vehicle-command-stats .command-stat span {
  color: #64748b;
}

.vehicle-command-stats .command-stat small {
  color: #94a3b8;
}

.vehicle-command-stats .command-stat.stat-total {
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.vehicle-command-stats .command-stat.stat-total span,
.vehicle-command-stats .command-stat.stat-total strong,
.vehicle-command-stats .command-stat.stat-total small {
  color: #fff;
}

.vehicle-command-stats .command-stat.stat-total small {
  color: rgba(255, 255, 255, 0.68);
}

.vehicle-action,
.vehicle-action.action-fuel,
.vehicle-action.action-garage,
.vehicle-action.action-report,
.vehicle-action.action-wash,
.vehicle-action.action-edit {
  color: #0f172a;
  background: #fff;
  box-shadow: none;
}

.vehicle-action:hover,
.vehicle-action:focus-visible {
  background: #f8fafc;
}

.vehicle-action.action-report {
  border-color: rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

.vehicle-action.action-wash {
  border-color: rgba(34, 197, 94, 0.26);
  color: #15803d;
}

@media (max-width: 1180px) {
  .vehicle-command-card {
    grid-template-columns: 1fr;
  }

  .vehicle-command-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vehicle-command-main strong {
    max-width: none;
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .vehicle-command-stats,
  .vehicle-command-actions {
    grid-template-columns: 1fr;
  }
}

.warning-row {
  background: #fff7ed;
}

@media (max-width: 1180px) {
  .validation-grid,
  .vehicle-command-card,
  .monitor-home,
  .pilotage-grid,
  .pilotage-hero {
    grid-template-columns: 1fr;
  }

  .vehicle-command-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .validation-hero,
  .validation-card,
  .vehicle-command-stats,
  .vehicle-command-actions {
    grid-template-columns: 1fr;
  }

  .validation-hero > div {
    min-width: 0;
  }

  .monitor-action {
    min-height: 240px;
  }
}

/* 2026-05-20 - Lavages ultra simples */
.wash-simple-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.wash-simple-top article {
  min-height: 148px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--page-color) 20%, white), #fff 68%);
  box-shadow: var(--shadow);
}

.wash-simple-top article:nth-child(2) {
  background:
    linear-gradient(135deg, #fff0bd, #fff 68%);
}

.wash-simple-top span,
.wash-simple-meta span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 950;
}

.wash-simple-top span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--page-color);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wash-simple-top strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.82;
  letter-spacing: -0.1em;
}

.wash-simple-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.wash-simple-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.045);
}

.wash-simple-card header,
.wash-simple-row,
.wash-simple-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wash-simple-card header strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.wash-simple-card header b {
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--page-color);
  color: white;
  white-space: nowrap;
}

.wash-simple-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wash-simple-meta span {
  padding: 8px 11px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.wash-simple-meta .needs-work {
  background: #fff2c2;
  color: #8a5a00;
}

.wash-simple-meta .is-clear {
  background: #dcfce7;
  color: #15803d;
}

.wash-simple-rows {
  display: grid;
  gap: 10px;
}

.wash-simple-row {
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 10px;
  background: var(--panel);
}

.wash-simple-row strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.04rem;
}

@media (max-width: 680px) {
  .wash-simple-top,
  .wash-simple-list {
    grid-template-columns: 1fr;
  }

  .wash-simple-row,
  .wash-simple-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wash-simple-actions .done-button,
  .wash-simple-actions .small-link {
    width: 100%;
  }
}

/* 2026-05-27 - Réglages modulables + édition véhicule */
.settings-board {
  display: grid;
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.clean-settings-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  min-height: 190px;
  border-color: rgba(17, 17, 17, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.clean-settings-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--page-color);
}

.clean-settings-card > strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.settings-accent-wash::before { background: #06b6d4; }
.settings-accent-alert::before { background: #ef4444; }
.settings-accent-money::before { background: #22c55e; }
.settings-accent-data::before { background: linear-gradient(180deg, #0ea5e9, #f97316, #ef4444); }

.settings-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.vehicle-edit-card {
  display: grid;
  gap: 18px;
}

.vehicle-notes-field {
  display: grid;
  gap: 9px;
}

.vehicle-edit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.edit-vehicle-link {
  border-color: rgba(34, 197, 94, 0.32);
  background: linear-gradient(135deg, #ecfdf3, #ffffff);
}

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

  .settings-save-bar,
  .vehicle-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* 2026-05-27 - Choix des canaux d'alertes */
.settings-accent-channels::before {
  background: linear-gradient(180deg, #ef4444, #f97316, #22c55e);
}

.channel-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.channel-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
}

.channel-row > span {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.channel-row-danger { background: linear-gradient(135deg, #fff1f2, rgba(255, 255, 255, 0.86)); }
.channel-row-urgent { background: linear-gradient(135deg, #fff7ed, rgba(255, 255, 255, 0.86)); }
.channel-row-warning { background: linear-gradient(135deg, #fefce8, rgba(255, 255, 255, 0.86)); }
.channel-row-info { background: linear-gradient(135deg, #eff6ff, rgba(255, 255, 255, 0.86)); }

.channel-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.channel-toggle {
  min-height: 48px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  cursor: pointer;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.channel-toggle:hover {
  transform: translateY(-1px);
}

.channel-toggle.active {
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12);
}

.channel-toggle.channel-push.active { background: #2563eb; }
.channel-toggle.channel-email.active { background: #16a34a; }
.channel-toggle.channel-sms.active { background: #f97316; }

/* 2026-05-27 - Outils démo et reset données */
.data-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-tool-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
}

.sample-tool-card {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 40%),
    linear-gradient(135deg, #eff6ff, #ffffff);
}

.reset-tool-card {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 40%),
    linear-gradient(135deg, #fff1f2, #ffffff);
}

.data-tool-card svg {
  color: var(--page-color);
}

.reset-tool-card svg {
  color: #dc2626;
}

.data-tool-card b {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.data-tool-card p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.data-tool-card label {
  margin-top: 4px;
}

.data-tool-button {
  width: fit-content;
  min-width: 210px;
  min-height: 58px;
  margin-top: auto;
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .channel-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .channel-settings-grid,
  .channel-toggle-group,
  .data-tools-grid {
    grid-template-columns: 1fr;
  }

  .data-tool-button {
    width: 100%;
  }
}

/* 2026-05-27 - Signalements et immobilisations */
.monitor-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monitor-action-problem {
  background: linear-gradient(135deg, #ef4444, #fed7aa);
}

.problem-submit-card {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.92);
}

.problem-save-button {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.garage-main-stack {
  display: grid;
  gap: 18px;
}

.downtime-form-card {
  padding: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.92);
}

.spaced-section-title {
  margin-top: 24px;
}

.compact-action-list .garage-visit {
  align-items: start;
}

.problem-card p,
.downtime-card p,
.problem-history-card p,
.downtime-history-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.mini-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  padding: 0 12px;
}

.mini-actions button:hover {
  background: var(--ink);
  color: #fff;
}

.mini-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mini-actions small {
  color: #dc2626;
  font-weight: 900;
}

.vehicle-ops-grid {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .monitor-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .monitor-home {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-27 - Barre haute pleine largeur et lisible */
.app-shell::before {
  display: none;
}

.topbar {
  width: 100%;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(20px, 2.4vw, 42px);
}

.top-brand {
  min-height: 66px;
  gap: 12px;
  padding: 0 22px 0 14px;
  border-radius: 999px;
}

.top-brand span {
  width: 38px;
  height: 38px;
  font-size: 1.08rem;
}

.top-brand strong {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.top-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible;
  padding: 0;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-link {
  min-height: 62px;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 1.06rem;
  line-height: 1;
}

.top-link span {
  font-size: 1.06rem;
  white-space: nowrap;
}

.top-link svg {
  flex: 0 0 auto;
}

.top-link.active {
  box-shadow: inset 0 0 0 2px var(--nav-color), 0 12px 28px color-mix(in srgb, var(--nav-color) 14%, transparent);
}

.top-role,
.logout-button {
  min-height: 62px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 950;
}

.top-role {
  padding: 0 20px;
  gap: 10px;
}

.logout-button {
  padding: 0 24px;
  background: #ffffff;
}

.app-shell .stage {
  width: min(1480px, 100%);
  padding-top: 34px;
}

@media (max-width: 1320px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .logout-button {
    grid-column: 3;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
  }

  .top-brand {
    min-height: 60px;
  }

  .top-nav {
    grid-column: 1 / -1;
  }

  .top-link {
    min-height: 58px;
    padding: 0 15px;
    font-size: 1rem;
  }

  .top-role {
    display: none;
  }

  .logout-button {
    min-height: 58px;
    padding: 0 18px;
  }
}

/* 2026-05-27 - Navigation toujours sur une seule ligne */
.topbar {
  overflow-x: hidden;
}

.topbar-inner {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: clamp(10px, 1.2vw, 18px);
  min-height: 96px;
  padding: 16px clamp(20px, 2.2vw, 42px);
}

.top-nav {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.top-link {
  min-height: 58px;
  flex: 0 0 auto;
  padding: 0 clamp(12px, 0.8vw, 18px);
  font-size: clamp(0.94rem, 0.78vw, 1.04rem);
}

.top-link span {
  font-size: clamp(0.94rem, 0.78vw, 1.04rem);
}

.top-brand {
  min-height: 62px;
  padding-right: clamp(16px, 1.1vw, 22px);
}

.top-role,
.logout-button {
  min-height: 58px;
  padding-inline: clamp(16px, 1.1vw, 22px);
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .top-nav {
    grid-column: auto;
    order: initial;
  }

  .logout-button {
    grid-column: auto;
  }
}

@media (max-width: 920px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .top-role {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .top-nav {
    grid-column: auto;
  }
}

/* 2026-05-27 - Graphiques utiles coûts et anomalies */
.smart-cost-grid {
  margin-bottom: 18px;
}

.smart-chart-card {
  overflow: hidden;
}

.cost-bars {
  display: grid;
  gap: 12px;
}

.cost-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.6fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
}

.cost-bar-row:hover {
  border-color: rgba(17, 17, 17, 0.16);
  transform: translateY(-1px);
}

.cost-bar-label {
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.cost-bar-row strong {
  justify-self: end;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 950;
}

.cost-bar-row small {
  grid-column: 2 / -1;
  margin-top: -8px;
  color: var(--muted);
  font-weight: 850;
}

.cost-bar-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  overflow: hidden;
}

.cost-bar-fill {
  display: flex;
  width: var(--bar-width);
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  transition: width 240ms ease;
}

.cost-bar-segment {
  width: var(--segment-width);
  min-width: 0;
  height: 100%;
}

.segment-total { background: linear-gradient(90deg, #111827, #38bdf8); }
.segment-fuel { background: linear-gradient(90deg, #f97316, #facc15); }
.segment-garage { background: linear-gradient(90deg, #22c55e, #15803d); }
.segment-wash { background: linear-gradient(90deg, #06b6d4, #67e8f9); }

.anomaly-list {
  display: grid;
  gap: 10px;
}

.anomaly-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: #fff7ed;
}

.anomaly-row b {
  color: var(--ink);
  font-weight: 950;
}

.anomaly-row span {
  color: var(--muted);
  font-weight: 850;
}

.anomaly-danger {
  background: #fff1f2;
  border-color: rgba(220, 38, 38, 0.18);
}

@media (max-width: 760px) {
  .cost-bar-row {
    grid-template-columns: 1fr;
  }

  .cost-bar-row strong,
  .cost-bar-row small {
    justify-self: start;
    grid-column: auto;
    margin-top: 0;
  }
}

/* 2026-05-28 - Design system minimal */
.ds-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.055);
}

.ds-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.ds-button-primary {
  border-color: #0f172a;
  color: #fff;
  background: #0f172a;
}

.ds-button-light {
  color: #334155;
  background: #f8fafc;
}

.ds-button.disabled,
.ds-button[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
}

.history-filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 18px 0;
  padding: clamp(16px, 2vw, 22px);
}

.history-filter-form {
  display: grid;
  /* 4 champs en colonnes égales + cellule « actions » dimensionnée à son contenu (Afficher + Effacer) :
     évite que les boutons débordent de leur cellule et collent le champ « État » (constaté à 1366px). */
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.history-filter-form label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-filter-form input,
.history-filter-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0 13px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  text-transform: none;
  letter-spacing: normal;
}

.history-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.history-filter-total {
  min-width: 112px;
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #64748b;
  font-weight: 900;
}

.history-filter-total strong {
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.07em;
}

.history-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px 0 4px;
}

.history-pagination span {
  color: #64748b;
  font-weight: 900;
}

.garage-side .history-filter-card {
  grid-template-columns: 1fr;
  box-shadow: none;
}

.garage-side .history-filter-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.garage-side .history-filter-actions {
  grid-column: 1 / -1;
}

.garage-side .history-filter-total {
  justify-items: start;
}

@media (max-width: 1100px) {
  .history-filter-card,
  .history-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .history-filter-actions,
  .history-filter-total {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .history-filter-card,
  .history-filter-form,
  .garage-side .history-filter-form,
  .history-pagination {
    grid-template-columns: 1fr;
  }

  .history-filter-actions,
  .history-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 2026-05-28 - Page "A accepter" plus lisible */
.decision-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.decision-hero div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.decision-hero span {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.decision-hero strong {
  min-width: 72px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #16a34a;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.09em;
}

.decision-hero p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.45;
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.decision-queue,
.decision-history,
.decision-mini-section {
  min-width: 0;
}

.decision-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.decision-section-head strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.decision-section-head span {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111111;
  color: #fff;
  font-weight: 950;
}

.decision-section-head.compact span {
  background: #f1f5f9;
  color: var(--ink);
}

.decision-stack,
.done-stack,
.decision-history {
  display: grid;
  gap: 12px;
}

.decision-history {
  gap: 18px;
}

.decision-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 0.5px solid #e6e6e6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03);
}

.decision-card-fuel {
  background: rgba(249, 115, 22, 0.04);
  border-color: rgba(249, 115, 22, 0.22);
}

.decision-card-wash {
  background: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.22);
}

.decision-photo {
  width: 64px;
  height: 64px;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f6;
}

.decision-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.decision-photo.empty-proof {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.decision-main {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.decision-topline,
.decision-title-row,
.review-main-buttons,
.done-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.decision-kind {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
}

.fuel-kind {
  background: #f97316;
}

.wash-kind {
  background: #06b6d4;
}

.decision-date {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.decision-title-row {
  align-items: center;
}

.decision-title-row strong,
.decision-title-row a {
  display: block;
}

.done-card strong,
.done-card p,
.done-card span,
.done-card small {
  display: block;
}

.decision-title-row strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.decision-title-row a {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.decision-value {
  flex: 0 0 auto;
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.decision-simple-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.decision-simple-facts span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f6f3ee;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.decision-note {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.decision-count-badge.decision-count-badge {
  display: inline-block;
  margin: 0 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e7f5ec;
  color: #15803d;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

.review-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.review-main-buttons {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.review-accept,
.review-refuse {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.review-accept svg,
.review-refuse svg {
  width: 15px;
  height: 15px;
}

.review-accept:disabled,
.review-refuse:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.review-accept {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.review-accept:hover {
  background: #15803d;
}

.review-refuse {
  background: #fff;
  border-color: #fca5a5;
  color: #dc2626;
}

.review-refuse:hover {
  background: #fef2f2;
}

.review-refuse.full {
  width: 100%;
}

.review-edit-box {
  padding: 0;
  border: 0;
  background: none;
}

.review-edit-box summary {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  list-style-position: inside;
}

.review-edit-box label,
.simple-reject-box label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.simple-reject-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 0.5px solid #fecaca;
  background: #fff7f7;
}

.done-card {
  align-items: flex-start;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
}

.done-card-accepted {
  background: rgba(22, 163, 74, 0.05);
  border-color: rgba(22, 163, 74, 0.22);
}

.done-card-refused {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.22);
}

.done-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.done-card strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.done-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.done-card-side {
  text-align: right;
  white-space: nowrap;
}

.done-card-side b {
  display: block;
  color: var(--ink);
  font-weight: 950;
}

.done-card-side small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}

.done-reason {
  flex-basis: 100%;
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff1f2;
  color: #be123c !important;
  font-weight: 850;
}

.done-plate {
  padding: 1px 6px;
  border-radius: 6px;
  background: #eef2f7;
  color: #334155;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .decision-layout,
  .decision-hero {
    grid-template-columns: 1fr;
  }

  .decision-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .decision-history {
    grid-template-columns: 1fr;
  }

  .decision-topline,
  .decision-hero div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026-05-28 - Lavages/essence en suivi uniquement */
.wash-history-list,
.fuel-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.compact-metrics {
  align-content: start;
}

.compact-metrics article {
  min-height: 104px;
}

@media (max-width: 980px) {
  .wash-history-list,
  .fuel-history-list {
    grid-template-columns: 1fr;
  }
}
