html {
  min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; }

.body-container {
  flex: 1 0 auto;
  margin-top: 60px;
  padding-bottom: 40px; }

.app-footer {
  margin-top: auto; }

.app-version {
  font-size: 0.8rem;
  color: #495057; }

.app-footer.text-muted {
  color: #495057 !important; }

/* Menu utilisateur : bouton stylé comme un lien de navigation (pas de lien href="#") */
.nav-user-menu {
  background: none;
  border: 0;
  cursor: pointer; }


.welcome-page li {
  list-style: none;
  padding: 4px; }

.home-dashboard {
  max-width: 1080px; }

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #103a5c 0%, #1e6f8f 100%);
  color: #fff; }

.home-hero > * + * {
  margin-left: 24px; }

.home-eyebrow {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  opacity: 0.8; }

.home-description {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.05rem;
  opacity: 0.92; }

.home-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px; }

.home-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 58, 92, 0.12); }

.home-card-title {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 700; }

.home-details {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-gap: 8px 16px;
  gap: 8px 16px;
  margin: 0; }

.home-details dt {
  margin: 0;
  color: #5f6b7a;
  font-weight: 600; }

.home-details dd {
  margin: 0;
  font-weight: 500;
  word-break: break-word; }

.home-claims td {
  word-break: break-all;
  font-size: 0.9rem; }

.home-claims td:first-child {
  white-space: nowrap;
  color: #5f6b7a; }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px -12px; }

.home-actions .btn {
  margin: 0 6px 12px;
  border-radius: 999px;
  padding: 10px 18px; }

.home-actions .btn-primary {
  background-color: #103a5c;
  border-color: #103a5c; }

.home-actions .btn-outline-secondary {
  color: #103a5c;
  border-color: #103a5c; }

.home-actions .btn-outline-secondary:hover {
  background-color: #103a5c;
  border-color: #103a5c; }

.users-page .table th,
.users-page .table td {
  vertical-align: middle; }

.users-page .table thead th {
  border-top: 0;
  color: #5f6b7a;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em; }

.user-list-dropdown thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  box-shadow: inset 0 -1px 0 #dee2e6; }

.user-list-search {
  max-width: 360px; }

.user-list-search .form-control {
  min-height: 42px; }

.user-sort-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer; }

.user-sort-button:hover,
.user-sort-button:focus {
  color: #103a5c;
  text-decoration: underline; }

.user-sort-button::after {
  content: "\2195";
  margin-left: .35rem;
  color: #6c757d;
  font-size: .75rem; }

.user-sort-button.sort-asc::after {
  content: "\25B2";
  color: #1b6ec2; }

.user-sort-button.sort-desc::after {
  content: "\25BC";
  color: #1b6ec2; }

.users-actions-col {
  width: 1%;
  white-space: nowrap;
  text-align: right; }

.users-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0 -4px -6px; }

.users-row-actions > * {
  margin: 0 4px 6px; }

.users-row-actions form {
  margin: 0 4px 6px; }

.users-row-actions > .btn,
.users-row-actions > form {
  width: 92px; }

.users-row-actions form .btn {
  width: 100%; }

.users-row-actions .btn {
  white-space: nowrap; }

.detail-list {
  margin: 0;
  padding-left: 18px; }

.detail-list li {
  margin-bottom: 10px;
  word-break: break-word; }

.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px -12px; }

.users-toolbar > * {
  margin: 0 6px 12px; }

.users-toolbar form {
  margin: 0 6px 12px; }

.user-details-page .home-details dd {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem; }

.login-mobile-page {
  max-width: 980px;
  margin: 0 auto; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: stretch; }

.login-intro,
.login-card {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(21, 45, 70, 0.08); }

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 34px;
  background: #103a5c;
  color: #fff; }

.login-intro h1 {
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 800; }

.login-intro p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.55; }

.login-card {
  padding: 34px; }

.login-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: center; }

.login-form .alert {
  margin-bottom: 8px;
  padding: 10px 12px; }

.login-form .validation-summary-valid {
  display: none; }

.login-form .alert div,
.login-form .alert ul {
  margin-bottom: 0; }

.login-form .alert ul {
  padding-left: 18px; }

.login-field {
  margin-bottom: 12px; }

.login-field label {
  color: #45566b;
  font-weight: 700; }

.login-field .form-control {
  min-height: 48px;
  border-color: #c9d4df;
  font-size: 1rem; }

.login-field .form-control:focus {
  border-color: #1b6ec2;
  box-shadow: 0 0 0 0.16rem rgba(27, 110, 194, 0.18); }

.login-remember {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  color: #45566b;
  font-weight: 600; }

.login-remember .form-check-input {
  position: static;
  margin: 0 8px 0 0; }

.login-remember .form-check-label {
  margin: 0; }

.login-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center; }

.login-actions .btn {
  min-height: 46px;
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 4px;
  font-weight: 700; }

.login-actions .btn-primary {
  background-color: #103a5c;
  border-color: #103a5c; }

.login-actions .btn-primary:hover,
.login-actions .btn-primary:focus {
  background-color: #0c2d47;
  border-color: #0c2d47; }

.login-actions .btn-outline-secondary {
  color: #536273;
  border-color: #b7c4d0;
  background-color: #fff; }

.login-actions .btn-outline-secondary:hover,
.login-actions .btn-outline-secondary:focus {
  color: #103a5c;
  border-color: #103a5c;
  background-color: #eef5f8; }

.login-advanced-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 20px;
  color: #0f6f63;
  font-weight: 700;
  text-decoration: none; }

.login-advanced-link:hover,
.login-advanced-link:focus {
  color: #0a5149;
  text-decoration: underline; }

.register-page {
  max-width: 1040px;
  margin: 0 auto; }

.register-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: stretch; }

.register-panel {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(21, 45, 70, 0.08); }

.register-intro {
  padding: 28px;
  background: #103a5c;
  color: #fff; }

.register-intro h2 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  font-weight: 700; }

.register-intro p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84); }

.register-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em; }

.register-summary {
  margin: 0; }

.register-summary div {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18); }

.register-summary dt {
  margin-bottom: 4px;
  font-weight: 700; }

.register-summary dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78); }

.register-form-panel {
  padding: 28px; }

.register-form label {
  color: #45566b;
  font-weight: 700; }

.register-form .form-control {
  min-height: 44px;
  border-color: #c9d4df; }

.register-form .form-control:focus {
  border-color: #1b6ec2;
  box-shadow: 0 0 0 0.16rem rgba(27, 110, 194, 0.18); }

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px; }

.register-password {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0; }

.register-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 10px; }

.register-actions .btn {
  min-height: 42px;
  padding-right: 18px;
  padding-left: 18px;
  border-radius: 4px;
  font-weight: 700; }

.register-validation.validation-summary-valid {
  display: none; }

@media (max-width: 767.98px) {
  .body-container {
    margin-top: 24px; }

  .users-header {
    align-items: flex-start !important;
    flex-direction: column; }

  .users-header > * + * {
    margin-top: 12px; }

  .home-hero {
    flex-direction: column;
    align-items: flex-start; }

  .home-hero > * + * {
    margin-top: 24px;
    margin-left: 0; }

  .home-details {
    grid-template-columns: 1fr; }

  .login-shell {
    grid-template-columns: 1fr;
    grid-gap: 0;
    gap: 0; }

  .login-intro {
    min-height: auto;
    padding: 24px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0; }

  .login-intro h1 {
    font-size: 1.7rem; }

  .login-card {
    padding: 24px;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 14px 28px rgba(21, 45, 70, 0.08); }

  .login-actions {
    grid-template-columns: 1fr; }

  .login-actions .btn {
    width: 100%; }

  .login-advanced-link {
    align-self: stretch;
    justify-content: center;
    padding: 12px 6px;
    text-align: center; }

  .register-shell,
  .register-grid {
    grid-template-columns: 1fr; }

  .register-intro,
  .register-form-panel {
    padding: 22px; }
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0; }

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray; }
  .grants-page .card .card-title {
    font-size: 120%;
    font-weight: bold; }
    .grants-page .card .card-title img {
      width: 100px;
      height: 100px; }
  .grants-page .card label {
    font-weight: bold; }

/* Page de statut commune (Shared/StatusPage.cs) : / et /status, page d'erreur. Pas de style en ligne. */
.status-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 16px; background: #f3f5f8; color: #1c2733; font-family: "Segoe UI", Arial, sans-serif; }
.status-page * { box-sizing: border-box; }
.status-card { width: 100%; max-width: 640px; background: #fff; border: 1px solid #dde2e8; border-radius: 10px; padding: 40px 32px; text-align: center; }
.status-card h1 { margin: 0 0 8px; font-size: 28px; overflow-wrap: anywhere; }
.status-version { margin: 0 0 28px; color: #5b6876; font-size: 15px; }
.status-notification { margin: 0 0 28px; padding: 16px; border-radius: 8px; border: 1px solid; text-align: left; }
.status-notification.ok { background: #eaf6ee; border-color: #9fd3b0; color: #1d5a33; text-align: center; }
.status-notification.ko { background: #fdecec; border-color: #eba6a6; color: #7c1d1d; }
.status-notification strong { display: block; font-size: 17px; margin-bottom: 6px; }
.status-notification p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.status-copyright { margin: 0; color: #5b6876; font-size: 13px; }
.status-page a { color: #1b5fae; }
