:root {
  --green: #298d4d;
  --green-bright: #3e994a;
  --green-dark: #123f28;
  --green-deep: #06140d;
  --blue: #2ea8df;
  --white: #ffffff;
  --text: #f7fff9;
  --muted: rgba(247,255,249,0.72);
  --panel: rgba(255,255,255,0.085);
  --panel-strong: rgba(255,255,255,0.13);
  --line: rgba(255,255,255,0.16);
  --danger: #fecaca;
  --warning: #f59e0b;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(62,153,74,0.30), transparent 28rem),
    radial-gradient(circle at 86% 82%, rgba(46,168,223,0.18), transparent 32rem),
    linear-gradient(135deg, #06140d 0%, #0c2416 48%, #020806 100%);
}

a { color: inherit; }

.page {
  min-height: 100vh;
  width: 100%;
}

.login-center-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  overflow: hidden;
}

.login-center-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.login-center-shell::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -210px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,153,74,0.24), transparent 68%);
}

.login-panel-pro {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.login-logo-wrap {
  width: min(520px, 90vw);
  display: grid;
  place-items: center;
}

.login-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 26px 46px rgba(0,0,0,0.50));
}

.welcome-ribbon {
  width: min(660px, 100%);
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--green), var(--green-bright), var(--blue));
  box-shadow: 0 16px 44px rgba(41, 141, 77, 0.35);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.login-card-pro {
  width: min(660px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-heading,
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.secure-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #65e58b;
  box-shadow: 0 0 0 6px rgba(101, 229, 139, 0.14), 0 0 22px rgba(101,229,139,0.72);
}

.login-card-pro h1 {
  margin: 18px 0 10px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
}

.login-subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-align: center;
}

.login-form-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}

.field { margin: 0; }

label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 15px;
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  font-size: 17px;
  outline: none;
}

input::placeholder { color: rgba(255,255,255,0.54); }

input:focus {
  border-color: rgba(101,229,139,0.78);
  box-shadow: 0 0 0 4px rgba(101,229,139,0.14);
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 18px 38px rgba(41, 141, 77, 0.30);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus { filter: brightness(1.05); }

.button.full { width: 100%; }

.button.secondary {
  border: 1px solid rgba(255,255,255,0.16);
  color: #eaffef;
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

.login-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.quick-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(46,168,223,0.82), rgba(41,141,77,0.82));
  font-weight: 900;
  text-decoration: none;
}

.muted-action { opacity: 0.86; }

.login-info-box {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 17px;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.20);
  font-size: 15px;
  line-height: 1.55;
}

.message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.45;
}

.message.error {
  border: 1px solid rgba(254,202,202,0.60);
  color: var(--danger);
  background: rgba(185,28,28,0.16);
}

.message.success {
  border: 1px solid rgba(189,232,200,0.8);
  color: #dff7e7;
  background: rgba(41,141,77,0.18);
}

.access-button-fixed {
  margin-top: 8px;
  text-align: center;
}

.error-card {
  position: relative;
  z-index: 1;
}

/* Application interne */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% 8%, rgba(46,168,223,0.12), transparent 30rem),
    linear-gradient(135deg, #06140d 0%, #0b2115 42%, #020806 100%);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 22px;
  border-right: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}

.app-logo {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
}

.app-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a,
.app-nav span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  font-weight: 900;
}

.app-nav .active {
  color: #fff;
  background: linear-gradient(90deg, rgba(41,141,77,0.95), rgba(62,153,74,0.72));
  box-shadow: 0 16px 34px rgba(41,141,77,0.22);
}

.sidebar-help {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.05);
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-help strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
}

.app-main {
  min-width: 0;
  padding: clamp(22px, 4vw, 46px);
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.app-header h1 {
  margin: 16px 0 10px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.app-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(140px, 0.5fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-card,
.stat-card,
.content-panel,
.notice-card,
.quick-panels article,
.document-row,
.empty {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  box-shadow: 0 22px 58px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px);
}

.dashboard-card {
  padding: 24px;
}

.card-label {
  color: #9ef2b2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-card h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.dashboard-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.customer-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-mini span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(41,141,77,0.20);
  font-size: 13px;
  font-weight: 800;
}

.stat-card {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 20px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 900;
}

.stat-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: 44px;
  letter-spacing: -0.04em;
}

.notice-card {
  margin-bottom: 18px;
  padding: 18px 20px;
  color: #dff7e7;
  background: linear-gradient(90deg, rgba(46,168,223,0.13), rgba(41,141,77,0.17));
  line-height: 1.5;
}

.content-panel {
  padding: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.03em;
}

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

.document-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  box-shadow: none;
}

.document-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.document-title h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(41,141,77,0.26);
  font-size: 13px;
  font-weight: 900;
}

.pill.warning {
  color: #fde68a;
  background: rgba(245,158,11,0.18);
}

.empty {
  padding: 28px;
  box-shadow: none;
}

.empty h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}

.empty p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.quick-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.quick-panels article {
  padding: 22px;
}

.quick-panels h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.quick-panels p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.logout-form { margin: 0; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: relative;
    height: auto;
  }
  .app-logo { max-width: 300px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .main-card { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .login-card-pro { border-radius: 24px; }
  .login-form-pro,
  .login-actions-grid,
  .quick-panels,
  .dashboard-grid { grid-template-columns: 1fr; }
  .welcome-ribbon { text-align: center; }
  .app-header { flex-direction: column; }
  .document-row { grid-template-columns: 1fr; }
  .document-row .button { width: 100%; }
}

@media (max-width: 520px) {
  .login-center-shell { padding: 16px; }
  .login-logo-wrap { width: min(360px, 88vw); }
  .welcome-ribbon { min-height: 42px; font-size: 13px; padding: 0 14px; }
  .login-card-pro { padding: 24px 20px; }
  .login-card-pro h1 { font-size: 32px; }
  .login-subtitle { font-size: 16px; }
  .app-main { padding: 18px; }
  .app-sidebar { padding: 18px; }
}


/* Connexion simplifiée Max Services */
.simple-login-shell {
  padding: clamp(22px, 4vw, 42px);
}

.simple-login-shell::before {
  opacity: 0.35;
}

.simple-login-panel {
  width: min(560px, 100%);
  gap: 20px;
}

.simple-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.simple-brand img {
  display: block;
  width: min(165px, 42vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.36));
}

.simple-brand h1 {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.simple-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.simple-login-card {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border-radius: 24px;
}

.simple-login-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
}

.simple-login-card .login-subtitle {
  margin-bottom: 22px;
  font-size: 16px;
}

.simple-login-form {
  grid-template-columns: 1fr;
  gap: 16px;
}

.simple-login-form .button {
  width: 100%;
}

.login-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(560px, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.14);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.login-footer strong {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.login-footer a {
  color: #dff7e7;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 520px) {
  .simple-brand img { width: min(135px, 42vw); }
  .simple-brand h1 { font-size: 32px; }
  .simple-brand p { font-size: 16px; }
  .simple-login-card { padding: 22px 18px; }
}

/* Chargement accès sécurisé */
.access-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 8, 6, 0.72);
  backdrop-filter: blur(10px);
}

.access-loading-modal.visible {
  display: flex;
}

.access-loading-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 30px 26px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 36, 22, 0.98), rgba(3, 15, 9, 0.98));
  box-shadow: 0 30px 90px rgba(0,0,0,0.48);
  text-align: center;
}

.access-spinner {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.16);
  border-top-color: #65e58b;
  animation: access-spin 0.9s linear infinite;
}

.access-loading-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.access-loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.access-steps {
  width: 100%;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.access-steps li {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 42px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.045);
  font-size: 15px;
  font-weight: 800;
}

.access-steps li::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.28);
}

.access-steps li.active {
  color: #ffffff;
  border-color: rgba(101,229,139,0.44);
  background: rgba(41,141,77,0.18);
}

.access-steps li.active::before {
  border-color: #65e58b;
  box-shadow: 0 0 0 5px rgba(101,229,139,0.12);
}

.access-steps li.done {
  color: #dff7e7;
}

.access-steps li.done::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: #65e58b;
  color: #06140d;
  background: #65e58b;
  font-size: 10px;
  font-weight: 900;
}

.simple-login-form .button:disabled {
  opacity: 0.72;
  cursor: wait;
}

@keyframes access-spin {
  to { transform: rotate(360deg); }
}

/* Page lien sécurisé prêt */
.access-success-panel {
  gap: 16px;
}

.access-success-brand p {
  color: rgba(255,255,255,0.78);
}

.access-success-card {
  text-align: center;
}

.success-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  box-shadow: 0 16px 34px rgba(41,141,77,0.32);
  font-size: 30px;
  font-weight: 900;
}

.access-success-card .login-subtitle {
  margin-bottom: 18px;
}

.access-email-confirmation {
  margin-bottom: 16px;
  text-align: center;
}

/* Activation du compte client */
.password-create-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  text-align: left;
}

.password-create-form .button {
  margin-top: 4px;
}

.dev-access-link {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.4;
}

.dev-access-link a {
  color: #dff7e7;
  font-weight: 800;
}

/* Sidebar compacte validée */
.app-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  color: #ffffff;
  background: rgba(255,255,255,0.055);
  text-align: center;
  text-decoration: none;
}

.app-brand img {
  display: block;
  width: 76px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

.app-brand strong {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 900;
}

/* Mon compte */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.account-panel {
  min-height: 100%;
}

.account-section-title {
  margin-bottom: 20px;
}

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

.account-info-list div {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.account-info-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-info-list strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  word-break: break-word;
}

.account-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.account-password-form {
  display: grid;
  gap: 15px;
}

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

@media (max-width: 1100px) {
  .app-brand {
    max-width: 220px;
  }
}

/* Choix connexion / première connexion */
.login-choice-panel {
  width: min(980px, 100%);
}

.login-choice-error {
  width: min(760px, 100%);
  margin: 0;
  text-align: center;
}

.login-choice-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.login-choice-card {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.login-choice-card:hover,
.login-choice-card:focus-within,
.login-choice-card.active-choice {
  transform: translateY(-2px);
  border-color: rgba(101,229,139,0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
}

.choice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(41,141,77,0.18);
  font-size: 27px;
}

.login-choice-card h2 {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-choice-card .login-subtitle {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-choice-card .simple-login-form {
  margin-top: auto;
}

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

  .login-choice-card h2,
  .login-choice-card .login-subtitle {
    min-height: 0;
  }
}

/* Actions documents : aperçu + téléchargement */
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.document-actions .button {
  min-height: 48px;
  padding: 12px 16px;
  white-space: nowrap;
}

.customer-details-list strong {
  white-space: pre-line;
}

@media (max-width: 760px) {
  .document-actions {
    width: 100%;
    justify-content: stretch;
  }

  .document-actions .button {
    width: 100%;
  }
}

/* Administration et documents utiles */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% 8%, rgba(46,168,223,0.12), transparent 30rem),
    linear-gradient(135deg, #06140d 0%, #0b2115 42%, #020806 100%);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-form {
  display: grid;
  gap: 15px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
}

textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 15px;
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

select option {
  color: #102116;
}

input[type="file"] {
  padding: 13px 15px;
}

.admin-documents-panel {
  margin-top: 18px;
}

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

.admin-document-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
}

.admin-document-row h3 {
  margin: 7px 0 6px;
  color: #ffffff;
  font-size: 20px;
}

.admin-document-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.document-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(41,141,77,0.24);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.danger-button {
  background: rgba(185,28,28,0.50);
  box-shadow: none;
}

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

.useful-document-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  box-shadow: 0 22px 58px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px);
}

.useful-document-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(41,141,77,0.18);
  font-size: 30px;
}

.useful-document-content h2 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.useful-document-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.useful-document-actions {
  justify-content: flex-start;
}

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

.client-info-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
}

.client-info-card span {
  font-size: 28px;
}

.client-info-card h3 {
  margin: 10px 0 7px;
  color: #ffffff;
  font-size: 19px;
}

.client-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
}

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-grid,
  .useful-documents-grid,
  .client-info-grid { grid-template-columns: 1fr; }
}

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

/* Aperçu PDF en pop-up */
.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 8, 6, 0.78);
  backdrop-filter: blur(12px);
}

.pdf-preview-modal.visible {
  display: flex;
}

.pdf-preview-dialog {
  width: min(1120px, 100%);
  height: min(88vh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,36,22,0.98), rgba(3,15,9,0.98));
  box-shadow: 0 35px 100px rgba(0,0,0,0.58);
}

.pdf-preview-header,
.pdf-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.pdf-preview-footer {
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 0;
  justify-content: flex-end;
}

.pdf-preview-header h2 {
  margin: 9px 0 0;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.pdf-preview-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.pdf-preview-body {
  min-height: 0;
  background: rgba(0,0,0,0.20);
}

.pdf-preview-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.missing-file-note {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 14px;
  color: #fecaca;
  background: rgba(185,28,28,0.16);
  font-weight: 900;
}

@media (max-width: 760px) {
  .pdf-preview-modal {
    padding: 0;
  }

  .pdf-preview-dialog {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .pdf-preview-header,
  .pdf-preview-footer {
    padding: 14px;
  }

  .pdf-preview-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pdf-preview-footer .button {
    width: 100%;
  }
}

/* Modification des documents utiles dans l'administration */
.admin-document-row-editable {
  align-items: start;
}

.admin-document-summary {
  display: grid;
  gap: 6px;
}

.admin-document-actions {
  align-items: flex-start;
}

.file-status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.file-status-ok {
  color: #dff7e7;
  background: rgba(41,141,77,0.22);
}

.file-status-missing {
  color: #fecaca;
  background: rgba(185,28,28,0.16);
}

.admin-edit-details {
  min-width: min(520px, 90vw);
}

.admin-edit-details > summary {
  list-style: none;
  cursor: pointer;
}

.admin-edit-details > summary::-webkit-details-marker {
  display: none;
}

.admin-edit-form {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .admin-document-actions,
  .admin-edit-details {
    width: 100%;
  }
}


/* Bulle Avis Google */
.google-review-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.google-review-toggle {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  box-shadow: 0 18px 44px rgba(0,0,0,0.36);
  font-size: 28px;
  cursor: pointer;
}

.google-review-card {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  display: none;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(10,36,22,0.98), rgba(3,15,9,0.98));
  box-shadow: 0 28px 78px rgba(0,0,0,0.48);
}

.google-review-bubble.open .google-review-card {
  display: grid;
  gap: 12px;
}

.google-review-card strong {
  padding-right: 32px;
  font-size: 19px;
  line-height: 1.25;
}

.google-review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.google-review-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .google-review-bubble {
    right: 14px;
    bottom: 14px;
  }

  .google-review-toggle {
    width: 56px;
    height: 56px;
    font-size: 25px;
  }

  .google-review-card {
    width: calc(100vw - 28px);
  }
}

/* Demandes / Contact */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.contact-info-card a {
  color: #dff7e7;
  font-weight: 900;
  text-decoration: none;
}

.contact-panel {
  max-width: 980px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-success-actions {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(41,141,77,0.12);
}

.contact-success-actions .account-note {
  margin-top: 0;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .contact-cards-grid,
  .contact-files-grid {
    grid-template-columns: 1fr;
  }
}

/* Demandes : identification client et document lié */
.contact-client-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-client-summary div {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.contact-client-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-client-summary strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.contact-document-reference {
  display: none;
}

.contact-document-reference.visible {
  display: block;
}

@media (max-width: 760px) {
  .contact-client-summary {
    grid-template-columns: 1fr;
  }
}


/* Demandes : historique client */
.contact-history-panel {
  margin-top: 18px;
  max-width: 980px;
}

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

.contact-history-row {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
}

.contact-history-title h2 {
  font-size: 20px;
}

.contact-history-main p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
}

.contact-history-empty {
  box-shadow: none;
}

/* Menu mobile compact et plus professionnel */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 760px) {
  .app-shell,
  .admin-shell {
    display: block;
  }

  .app-sidebar {
    position: relative;
    height: auto;
    min-height: 112px;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 16px 64px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background:
      radial-gradient(circle at 50% 0%, rgba(62,153,74,0.14), transparent 18rem),
      rgba(0,0,0,0.18);
  }

  .app-brand {
    width: min(220px, 100%);
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .app-brand img {
    width: 56px;
    margin: 0 auto;
  }

  .app-brand strong {
    font-size: 13px;
    letter-spacing: 0.10em;
  }

  .mobile-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 95;
    width: 48px;
    height: 46px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(8, 28, 17, 0.92);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform .18s ease, opacity .18s ease;
  }

  .app-sidebar.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .app-sidebar.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .app-sidebar.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .app-sidebar .app-nav {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    z-index: 90;
    display: none;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10,36,22,0.98), rgba(3,15,9,0.98));
    box-shadow: 0 28px 78px rgba(0,0,0,0.48);
    backdrop-filter: blur(18px);
  }

  .app-sidebar.mobile-menu-open .app-nav {
    display: grid;
  }

  .app-sidebar .app-nav a,
  .app-sidebar .app-nav span {
    justify-content: center;
    min-height: 46px;
  }

  .sidebar-help {
    display: none;
  }

  .app-main {
    padding-top: 22px;
  }

  .app-header h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .contact-history-title {
    align-items: flex-start;
  }

  .contact-history-title h2 {
    width: 100%;
  }
}

/* Administration : réception et réponses aux demandes clients */
.admin-requests-panel {
  margin-bottom: 18px;
}

.admin-requests-title {
  align-items: flex-start;
}

.admin-counter-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(41,141,77,0.22);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-requests-list {
  display: grid;
  gap: 14px;
}

.admin-request-row {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
}

.admin-request-title-line h3 {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.admin-request-meta {
  margin-top: 8px;
}

.admin-request-message,
.admin-request-attachments,
.admin-request-reply-current,
.contact-history-reply {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(0,0,0,0.16);
}

.admin-request-message strong,
.admin-request-attachments strong,
.admin-request-reply-current strong,
.contact-history-reply strong {
  display: block;
  margin-bottom: 8px;
  color: #dff7e7;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-request-message p,
.admin-request-attachments p,
.admin-request-reply-current p,
.contact-history-reply p {
  margin: 0;
  color: rgba(247,255,249,0.82);
  line-height: 1.5;
  white-space: pre-line;
}

.admin-request-reply-current,
.contact-history-reply {
  border-color: rgba(101,229,139,0.24);
  background: rgba(41,141,77,0.13);
}

.admin-request-reply-current span,
.contact-history-reply span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-request-reply-form {
  display: grid;
  gap: 12px;
}

.admin-request-actions {
  justify-content: flex-start;
}

.admin-request-actions .button {
  width: 100%;
}

.contact-history-reply {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .admin-requests-title {
    display: grid;
  }

  .admin-counter-pill {
    width: fit-content;
  }

  .admin-request-title-line {
    align-items: flex-start;
  }

  .admin-request-title-line h3 {
    width: 100%;
  }
}

/* Control Center réorganisé */
.admin-main-clean {
  padding-top: clamp(22px, 4vw, 42px);
}

.admin-nav-count {
  margin-left: auto;
  min-width: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245,158,11,0.82);
  font-size: 12px;
  font-weight: 900;
}

.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-home-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  box-shadow: 0 22px 58px rgba(0,0,0,0.24);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.admin-home-card:hover,
.admin-home-card:focus {
  transform: translateY(-2px);
  border-color: rgba(101,229,139,0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
}

.admin-home-card span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(41,141,77,0.18);
  font-size: 28px;
}

.admin-home-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.admin-home-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-section-grid-single {
  grid-template-columns: minmax(0, 760px);
}

.admin-messages-panel {
  max-width: 900px;
}

.admin-dashboard-panel {
  margin-top: 18px;
}

.compact-admin-requests .admin-request-row {
  padding: 16px;
}

@media (max-width: 1200px) {
  .admin-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-home-grid,
  .admin-section-grid-single {
    grid-template-columns: 1fr;
  }

  .admin-home-card {
    min-height: auto;
  }

  .admin-nav-count {
    margin-left: 8px;
  }
}

/* Notifications demandes : surbrillance discrète sans pastille */
.app-nav a.nav-link-alert {
  position: relative;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.16);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.30);
  animation: request-nav-pulse 1.8s ease-in-out infinite;
}

.app-nav a.nav-link-alert::after {
  content: "Ouvert";
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #06140d;
  background: #f59e0b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.app-nav a.active.nav-link-alert::after {
  background: #ffffff;
}

.admin-nav-count {
  display: none;
}

@keyframes request-nav-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25), 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.50), 0 0 18px rgba(245, 158, 11, 0.22); }
}

/* Sélecteur de fichiers propre */
.smart-file-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.smart-file-inputs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.smart-file-button {
  width: fit-content;
  min-height: 48px;
}

.smart-file-button:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.smart-file-list {
  color: rgba(247,255,249,0.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}

/* Conversation demandes */
.request-conversation {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.request-message-bubble {
  max-width: 86%;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(0,0,0,0.16);
}

.message-bubble-client {
  justify-self: start;
}

.message-bubble-admin {
  justify-self: end;
  border-color: rgba(101,229,139,0.24);
  background: rgba(41,141,77,0.14);
}

.request-message-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.request-message-head strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.request-message-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.request-message-bubble p {
  margin: 0;
  color: rgba(247,255,249,0.84);
  line-height: 1.55;
  white-space: pre-line;
}

.request-message-files {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.request-message-files strong {
  color: #dff7e7;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.request-message-files span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.client-request-reply-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(0,0,0,0.14);
}

.request-unread {
  border-color: rgba(245, 158, 11, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.12), 0 22px 58px rgba(0,0,0,0.24);
}

.contact-history-panel-closed {
  opacity: .86;
}

@media (max-width: 760px) {
  .app-nav a.nav-link-alert::after {
    margin-left: 8px;
  }

  .request-message-bubble {
    max-width: 100%;
  }

  .smart-file-button {
    width: 100%;
  }
}

/* Control Center : sous-menu demandes clôturées */
.app-nav a.admin-sub-nav-link {
  min-height: 40px;
  margin-left: 14px;
  padding-left: 18px;
  color: rgba(255,255,255,0.64);
  font-size: 14px;
  background: rgba(255,255,255,0.035);
}

.app-nav a.admin-sub-nav-link::before {
  content: "↳";
  margin-right: 8px;
  color: rgba(255,255,255,0.52);
}

.app-nav a.admin-sub-nav-link.active {
  color: #ffffff;
  background: rgba(41,141,77,0.42);
  box-shadow: none;
}

@media (max-width: 760px) {
  .app-nav a.admin-sub-nav-link {
    margin-left: 0;
    padding-left: 14px;
    justify-content: center;
  }
}

/* Control Center : demandes clôturées rangées par dossier client */
.admin-closed-groups {
  display: grid;
  gap: 18px;
}

.admin-closed-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  background: rgba(0,0,0,0.14);
}

.admin-closed-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(41,141,77,0.18), rgba(46,168,223,0.10));
}

.admin-closed-group-header h3 {
  margin: 10px 0 4px;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.admin-closed-group-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-closed-group-list {
  gap: 12px;
}

.admin-closed-group-list .admin-request-row {
  background: rgba(255,255,255,0.045);
  box-shadow: none;
}

@media (max-width: 760px) {
  .admin-closed-group {
    padding: 12px;
  }

  .admin-closed-group-header {
    display: grid;
  }
}

/* Control Center : demandes repliées et suppression propre */
.admin-request-details {
  display: block;
  padding: 0;
  overflow: hidden;
}

.admin-request-details > summary {
  list-style: none;
  cursor: pointer;
}

.admin-request-details > summary::-webkit-details-marker,
.admin-closed-group > summary::-webkit-details-marker {
  display: none;
}

.admin-request-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.admin-request-summary-main {
  min-width: 0;
  flex: 1;
}

.admin-request-open-indicator {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(41,141,77,0.22);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-request-details[open] .admin-request-open-indicator {
  color: #ffffff;
  background: rgba(46,168,223,0.26);
}

.admin-request-details[open] .admin-request-open-indicator::after {
  content: " Fermer";
}

.admin-request-details[open] .admin-request-open-indicator {
  font-size: 0;
}

.admin-request-details[open] .admin-request-open-indicator::after {
  font-size: 13px;
}

.admin-request-details-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.admin-request-full-meta {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(0,0,0,0.12);
}

.admin-request-delete-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.admin-request-delete-form .button {
  min-height: 44px;
}

.admin-closed-group {
  display: block;
  padding: 0;
  overflow: hidden;
}

.admin-closed-group-header {
  cursor: pointer;
  margin: 18px;
}

.admin-closed-group-list {
  padding: 0 18px 18px;
}

.admin-closed-group:not([open]) .admin-closed-group-list {
  display: none;
}

.admin-closed-group[open] .admin-closed-group-header {
  border-color: rgba(101,229,139,0.26);
}

@media (max-width: 760px) {
  .admin-request-summary {
    display: grid;
  }

  .admin-request-open-indicator,
  .admin-request-delete-form .button {
    width: 100%;
    justify-content: center;
  }

  .admin-request-delete-form {
    justify-content: stretch;
  }

  .admin-closed-group-header {
    margin: 12px;
  }

  .admin-closed-group-list {
    padding: 0 12px 12px;
  }
}


/* Ajustements demandes : archives repliées et actions plus lisibles */
.contact-history-list-closed {
  gap: 10px;
}

.contact-history-details {
  padding: 0;
  overflow: hidden;
}

.contact-history-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
}

.contact-history-details > summary::-webkit-details-marker {
  display: none;
}

.contact-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-history-summary-main {
  min-width: 0;
  flex: 1;
}

.contact-history-details-body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.contact-history-details[open] .admin-request-open-indicator {
  background: rgba(41,141,77,0.28);
}

.admin-request-bottom-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.admin-request-bottom-actions .button {
  width: 100%;
  min-height: 56px;
  white-space: normal;
  text-align: center;
}

.admin-request-delete-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.admin-request-delete-form .button {
  width: 100%;
}

@media (max-width: 760px) {
  .contact-history-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-request-bottom-actions {
    grid-template-columns: 1fr;
  }
}

/* Accueil connexion plus compact + mot de passe oublié en pop-up */
.login-choice-panel {
  width: min(900px, 100%);
  gap: 14px;
}

.login-choice-grid {
  gap: 14px;
}

.login-choice-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 24px;
}

.choice-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 15px;
  font-size: 23px;
}

.login-choice-card h2 {
  min-height: 52px;
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 32px);
}

.login-choice-card .login-subtitle {
  min-height: 58px;
  margin-bottom: 18px;
  font-size: 15px;
}

.simple-brand img {
  width: min(125px, 34vw);
}

.simple-brand h1 {
  font-size: clamp(30px, 5vw, 42px);
}

.simple-brand p {
  font-size: 16px;
}

.forgot-password-link {
  width: fit-content;
  margin: 10px auto 0;
  padding: 0;
  border: 0;
  color: #dff7e7;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.forgot-password-link:hover,
.forgot-password-link:focus {
  color: #ffffff;
}

.forgot-password-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 8, 6, 0.76);
  backdrop-filter: blur(12px);
}

.forgot-password-modal.visible {
  display: flex;
}

.forgot-password-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 54, 33, 0.98), rgba(4, 18, 11, 0.98));
  box-shadow: 0 32px 90px rgba(0,0,0,0.56);
  text-align: center;
}

.forgot-password-dialog h2 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.forgot-password-dialog .login-subtitle {
  margin-bottom: 18px;
  font-size: 15px;
}

.forgot-password-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.forgot-password-form {
  margin-top: 0;
}

@media (max-width: 860px) {
  .login-choice-panel {
    width: min(520px, 100%);
  }

  .login-choice-card {
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .simple-login-shell {
    padding: 14px;
  }

  .simple-brand img {
    width: min(96px, 30vw);
  }

  .simple-brand h1 {
    font-size: 28px;
  }

  .simple-brand p {
    font-size: 14px;
  }

  .login-choice-card h2 {
    font-size: 25px;
  }

  .login-choice-card .login-subtitle {
    font-size: 14px;
  }
}


/* Finition accueil connexion : logo premium, cartes plus compactes et alignées */
.simple-login-shell .simple-brand {
  gap: 5px;
}

.simple-login-shell .simple-brand img {
  width: min(108px, 28vw);
  filter:
    drop-shadow(0 0 12px rgba(62,153,74,0.42))
    drop-shadow(0 0 24px rgba(46,168,223,0.22))
    drop-shadow(0 12px 24px rgba(0,0,0,0.32));
  animation: max-logo-glow 3.4s ease-in-out infinite;
}

.simple-login-shell .simple-brand h1 {
  margin-top: 2px;
  font-size: clamp(28px, 4.4vw, 38px);
  letter-spacing: 0.055em;
}

.simple-login-shell .simple-brand p {
  font-size: 15px;
}

.login-choice-panel {
  width: min(850px, 100%);
  gap: 12px;
}

.login-choice-grid {
  gap: 12px;
  align-items: stretch;
}

.login-choice-card {
  min-height: 430px;
  padding: clamp(18px, 2.6vw, 24px);
  justify-content: center;
}

.login-choice-card .simple-login-form {
  margin-top: 0;
}

.login-choice-card h2 {
  min-height: 0;
  margin: 6px 0 12px;
  font-size: clamp(24px, 2.8vw, 30px);
}

.login-choice-card .login-subtitle {
  min-height: 0;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.login-choice-card .choice-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

.login-choice-card .field {
  margin-bottom: 0;
}

.login-choice-card input {
  min-height: 52px;
}

.login-choice-card .button {
  min-height: 52px;
}

@keyframes max-logo-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter:
      drop-shadow(0 0 10px rgba(62,153,74,0.34))
      drop-shadow(0 0 18px rgba(46,168,223,0.18))
      drop-shadow(0 12px 24px rgba(0,0,0,0.32));
  }
  50% {
    transform: translateY(-1px) scale(1.018);
    filter:
      drop-shadow(0 0 18px rgba(101,229,139,0.58))
      drop-shadow(0 0 32px rgba(46,168,223,0.34))
      drop-shadow(0 14px 28px rgba(0,0,0,0.36));
  }
}

@media (prefers-reduced-motion: reduce) {
  .simple-login-shell .simple-brand img {
    animation: none;
  }
}

@media (max-width: 860px) {
  .login-choice-panel {
    width: min(500px, 100%);
  }

  .login-choice-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .login-choice-card .login-subtitle {
    margin-bottom: 14px;
  }
}

@media (max-width: 520px) {
  .simple-login-shell {
    padding: 12px;
  }

  .simple-login-shell .simple-brand img {
    width: min(78px, 24vw);
  }

  .simple-login-shell .simple-brand h1 {
    font-size: 26px;
  }

  .simple-login-shell .simple-brand p {
    font-size: 13px;
  }

  .login-choice-panel {
    gap: 10px;
  }

  .login-choice-card {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .login-choice-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .login-choice-card .login-subtitle {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .login-choice-card .choice-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .login-choice-card input,
  .login-choice-card .button {
    min-height: 50px;
  }
}

/* Alignement final de la page de connexion + pagination documents */
.login-choice-grid {
  align-items: stretch;
}

.login-choice-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  min-height: 418px;
}

.login-choice-card .choice-icon {
  justify-self: center;
}

.login-choice-card h2 {
  align-self: start;
}

.login-choice-card .login-subtitle {
  align-self: start;
}

.login-choice-card .simple-login-form {
  width: 100%;
  align-self: end;
}

.login-choice-card .forgot-password-link {
  align-self: end;
}

.login-form-spacer {
  min-height: 76px;
  visibility: hidden;
  pointer-events: none;
}

.documents-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.documents-pagination-info {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.documents-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pagination-button {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255,255,255,0.075);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.pagination-button.active {
  border-color: rgba(101,229,139,0.46);
  background: linear-gradient(90deg, rgba(41,141,77,0.92), rgba(62,153,74,0.78));
  box-shadow: 0 12px 28px rgba(41,141,77,0.22);
}

.pagination-button.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .login-choice-card {
    min-height: auto;
  }

  .login-form-spacer {
    min-height: 0;
    display: none;
  }
}

@media (max-width: 760px) {
  .documents-pagination {
    display: grid;
  }

  .documents-pagination-actions {
    justify-content: stretch;
  }

  .pagination-button {
    flex: 1 1 auto;
  }
}

/* Tableau de bord : tuiles compactes + bandeau d'information */
.dashboard-header-pro {
  align-items: center;
}

.dashboard-top-notice {
  flex: 1 1 420px;
  max-width: 620px;
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
}

.dashboard-top-notice-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(158,242,178,0.24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(41,141,77,0.22), rgba(46,168,223,0.10)),
    rgba(255,255,255,0.055);
  box-shadow: 0 16px 38px rgba(0,0,0,0.18);
}

.dashboard-top-notice-item > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(41,141,77,0.22);
  font-size: 20px;
}

.dashboard-top-notice-item strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.dashboard-top-notice-item p {
  margin: 0;
  color: rgba(247,255,249,0.82);
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-line;
}

.dashboard-grid-compact {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(120px, 0.42fr));
  gap: 14px;
}

.dashboard-grid-compact .dashboard-card {
  padding: 18px 20px;
}

.dashboard-grid-compact .dashboard-card h2 {
  margin: 8px 0 8px;
  font-size: 25px;
}

.dashboard-grid-compact .customer-mini {
  gap: 7px;
}

.dashboard-grid-compact .customer-mini span {
  min-height: 29px;
  padding: 6px 9px;
  font-size: 12px;
}

.dashboard-grid-compact .stat-card {
  min-height: 118px;
  padding: 16px 18px;
}

.dashboard-grid-compact .stat-card strong {
  margin-top: 5px;
  font-size: 34px;
}

.dashboard-grid-compact .stat-card span {
  font-size: 15px;
}

@media (max-width: 1100px) {
  .dashboard-header-pro {
    align-items: flex-start;
  }

  .dashboard-top-notice {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
    order: 3;
  }

  .dashboard-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-grid-compact {
    grid-template-columns: 1fr;
  }

  .dashboard-grid-compact .dashboard-card,
  .dashboard-grid-compact .stat-card {
    padding: 16px;
    min-height: auto;
  }

  .dashboard-grid-compact .stat-card strong {
    font-size: 30px;
  }

  .dashboard-top-notice-item {
    padding: 10px 12px;
    border-radius: 16px;
  }
}

/* Déconnexion dans la sidebar */
.sidebar-logout-form {
  margin-top: 12px;
}

.sidebar-logout-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.065);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.sidebar-logout-button:hover,
.sidebar-logout-button:focus {
  color: #ffffff;
  border-color: rgba(254,202,202,0.34);
  background: rgba(185,28,28,0.22);
}

/* Mon compte : fiche client modifiable */
.account-grid-pro {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.account-profile-panel {
  grid-row: span 2;
}

.account-profile-form {
  display: grid;
  gap: 15px;
}

.account-update-warning {
  margin-bottom: 18px;
  color: #eafbf0;
  background: linear-gradient(90deg, rgba(46,168,223,0.16), rgba(41,141,77,0.18));
}

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

.login-history-row {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.login-history-row strong {
  color: #ffffff;
  font-size: 16px;
}

.login-history-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-history-empty {
  padding: 18px;
}

.account-history-empty h2 {
  font-size: 19px;
}

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

  .account-profile-panel {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .sidebar-logout-form {
    width: 100%;
    max-width: 260px;
    margin: 12px auto 0;
  }

  .account-profile-form .admin-form-row,
  .account-address-row {
    grid-template-columns: 1fr;
  }
}

/* Correctif sidebar mobile : déconnexion dans le menu hamburger */
.sidebar-logout-mobile {
  display: none;
}

@media (max-width: 760px) {
  .app-sidebar > .sidebar-logout-form:not(.sidebar-logout-mobile) {
    display: none;
  }

  .app-sidebar .app-nav .sidebar-logout-mobile {
    display: block;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.10);
  }

  .app-sidebar .app-nav .sidebar-logout-mobile .sidebar-logout-button {
    min-height: 46px;
  }
}

/* Mon compte : formulaire en une ligne par information */
.account-profile-form > .field {
  width: 100%;
}

.account-profile-form input {
  width: 100%;
}

.account-postal-field .field-help {
  margin-bottom: 0;
}

.city-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.city-suggestions[hidden] {
  display: none;
}

.city-suggestions button,
.city-suggestions span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #dff7e7;
  background: rgba(41,141,77,0.20);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.city-suggestions button {
  cursor: pointer;
}

.city-suggestions button:hover,
.city-suggestions button:focus {
  border-color: rgba(101,229,139,0.45);
  background: rgba(41,141,77,0.34);
}

/* Demandes : mise en page plus légère avec informations à droite */
.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 18px;
  align-items: start;
}

.contact-main-column {
  min-width: 0;
}

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

.contact-side-column .contact-cards-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.contact-side-column .client-info-card {
  padding: 15px;
  border-radius: 18px;
}

.contact-side-column .client-info-card span {
  font-size: 22px;
}

.contact-side-column .client-info-card h3 {
  margin: 7px 0 5px;
  font-size: 16px;
}

.contact-side-column .client-info-card p {
  font-size: 14px;
  line-height: 1.35;
}

.contact-panel,
.contact-history-panel {
  max-width: none;
}

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

  .contact-side-column {
    position: static;
    order: -1;
  }

  .contact-side-column .contact-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .contact-page-layout {
    gap: 12px;
  }

  .contact-side-column {
    order: -1;
  }

  .contact-side-column .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-side-column .client-info-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 15px;
  }

  .contact-side-column .client-info-card span {
    grid-row: 1 / span 2;
    font-size: 20px;
  }

  .contact-side-column .client-info-card h3 {
    margin: 0;
    font-size: 14px;
  }

  .contact-side-column .client-info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .contact-history-panel .empty {
    padding: 16px;
  }

  .contact-history-panel .empty h2 {
    font-size: 18px;
  }

  .contact-history-panel .empty p {
    font-size: 14px;
  }
}

/* Correctif final : afficher la déconnexion dans le menu hamburger mobile */
@media (max-width: 760px) {
  .app-sidebar .app-nav > .sidebar-logout-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 10px 0 0 !important;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .app-sidebar .app-nav > .sidebar-logout-mobile .sidebar-logout-button {
    display: flex !important;
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
}
