* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #152536;
}

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

.sidebar {
  width: 250px;
  background: #0d2235;
  color: #ffffff;
  padding: 24px 18px;
}

.sidebar h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.sidebar .subtitle {
  color: #9db1c2;
  font-size: 12px;
  margin-bottom: 30px;
}

.sidebar a {
  display: block;
  padding: 11px 12px;
  margin-bottom: 6px;
  color: #dce7ef;
  text-decoration: none;
  border-radius: 7px;
}

.sidebar a:hover,
.sidebar a.active {
  background: #173b59;
  color: #ffffff;
}

.main {
  flex: 1;
  padding: 28px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.header h2 {
  margin: 0;
  font-size: 26px;
}

.user {
  font-size: 14px;
  color: #5b6874;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e3e8ec;
}

.card .label {
  font-size: 12px;
  color: #758390;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card .value {
  font-size: 30px;
  font-weight: 700;
}

.panel {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e3e8ec;
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e8edf1;
  text-align: left;
  font-size: 14px;
}

th {
  color: #5e6d78;
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #e8eef3;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    width: 210px;
  }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d2235;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.login-brand {
  font-size: 28px;
  font-weight: 700;
  color: #0d2235;
}

.login-subtitle {
  color: #71808d;
  margin-top: 4px;
  margin-bottom: 30px;
}

.login-card h1 {
  margin-bottom: 24px;
}

.login-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  padding: 12px 13px;
  margin-bottom: 18px;
  border: 1px solid #ccd5dc;
  border-radius: 7px;
  font-size: 15px;
}

.login-card button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 13px;
  background: #173b59;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.login-error {
  background: #fff0f0;
  border: 1px solid #e2b7b7;
  color: #8b2424;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 18px;
}

/* ATLAS OFFICE - DASHBOARD */

.dashboard-card-note {
  margin-top: 8px;
  color: #81909d;
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 20px;
}

.dashboard-main-panel,
.dashboard-side-panel {
  margin-top: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading h3 {
  margin: 0 0 5px;
}

.panel-heading p {
  margin: 0;
  color: #71808d;
  font-size: 13px;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7f1;
  color: #31704b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

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

.module-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid #e1e7ec;
  border-radius: 10px;
  background: #ffffff;
  color: #15283a;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a.module-card:hover {
  transform: translateY(-2px);
  border-color: #adc2d3;
  box-shadow: 0 8px 20px rgba(20, 45, 68, .08);
}

.module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 9px;
  background: #102b42;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.module-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.module-card span {
  display: block;
  color: #748390;
  font-size: 12px;
  line-height: 1.4;
}

.module-disabled {
  background: #fafbfc;
}

.module-disabled .module-icon {
  background: #71808d;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f2;
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #2f6d98;
}

.activity-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.activity-item span {
  display: block;
  color: #7a8995;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-separator {
  height: 1px;
  margin: 22px 0 16px;
  background: #e7ebee;
}

.dashboard-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  font-size: 12px;
}

.dashboard-info-label {
  color: #8794a0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

.dashboard-info strong {
  color: #1d3042;
}

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

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

  .panel-heading {
    flex-direction: column;
  }
}

/* CRM ACTIONS */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  background: #173f5f;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #0f314b;
}

/* CRM FORM */

.client-form {
  margin-top: 10px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-wide {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 7px;
  color: #536678;
  font-size: 12px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d6dfe6;
  border-radius: 7px;
  background: #ffffff;
  color: #15283a;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6d93af;
  box-shadow: 0 0 0 3px rgba(37, 89, 126, .08);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e5eaee;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d4dde4;
  border-radius: 7px;
  background: #ffffff;
  color: #425769;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.form-error {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #e1b7b7;
  border-radius: 7px;
  background: #fff2f2;
  color: #8b2424;
  font-size: 13px;
}

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

  .form-wide {
    grid-column: span 1;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }
}

/* CRM CLIENT LINKS */

.client-link {
  color: #163f5f;
  text-decoration: none;
}

.client-link:hover {
  text-decoration: underline;
}

/* CRM CLIENT DETAIL */

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

.client-detail-item {
  padding: 15px;
  border: 1px solid #e2e8ed;
  border-radius: 8px;
  background: #fbfcfd;
}

.client-detail-item span {
  display: block;
  margin-bottom: 6px;
  color: #758594;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.client-detail-item strong {
  color: #172b3d;
  font-size: 14px;
}

.client-detail-wide {
  grid-column: span 2;
}

.client-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed #d7e0e7;
  border-radius: 8px;
  color: #7c8995;
  text-align: center;
  font-size: 13px;
}

.interaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interaction-card {
  padding: 14px;
  border: 1px solid #e1e7ec;
  border-radius: 8px;
  background: #fbfcfd;
}

.interaction-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.interaction-top strong {
  font-size: 12px;
}

.interaction-top span {
  color: #87939e;
  font-size: 11px;
}

.interaction-subject {
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 13px;
}

.interaction-details {
  color: #627382;
  font-size: 12px;
  line-height: 1.5;
}

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

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

  .client-detail-wide {
    grid-column: span 1;
  }
}

/* CRM INLINE CONTACT FORM */

.inline-form-panel {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #dbe4ea;
  border-radius: 9px;
  background: #f8fafb;
}

.inline-form-panel .form-actions {
  margin-top: 20px;
}

button.btn-primary,
button.btn-secondary {
  border-style: solid;
  cursor: pointer;
  font-family: inherit;
}

/* CRM - METADONNEES INTERACTIONS */

.interaction-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #e3e9ef;
  border-bottom: 1px solid #e3e9ef;
}

.interaction-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.interaction-meta span {
  color: #718397;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.interaction-meta strong {
  color: #15283a;
  font-size: 13px;
}

@media (max-width: 800px) {
  .interaction-meta {
    grid-template-columns: 1fr;
  }
}

/* PROJETS & MISSIONS */

.atlas-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  background: #102c46;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.atlas-action:hover {
  opacity: .92;
}

.panel-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #718096;
}

.empty-state {
  padding: 45px 20px;
  text-align: center;
  color: #718096;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #24384a;
  font-size: 15px;
}

.table-secondary {
  margin-top: 3px;
  font-size: 11px;
  color: #718096;
}

/* FORMULAIRES ATLAS OFFICE */

.atlas-form {
  margin-top: 22px;
}

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

.form-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6dee6;
  border-radius: 7px;
  background: #ffffff;
  padding: 11px 12px;
  font: inherit;
  color: #182b3d;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #315f83;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d2dbe3;
  border-radius: 7px;
  background: #ffffff;
  color: #33495d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.form-message {
  margin-top: 15px;
  font-size: 13px;
}

.form-message-error {
  color: #a82d2d;
}

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

  .form-span-2 {
    grid-column: span 1;
  }
}

/* FICHE PROJET */

.project-card-text {
  font-size: 17px;
  line-height: 1.25;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.project-info-item {
  padding: 16px;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
  background: #fafcfd;
}

.project-info-item span,
.project-description span {
  display: block;
  margin-bottom: 5px;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-info-item strong {
  color: #1d3347;
  font-size: 14px;
}

.project-description {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5e9ed;
}

.project-description p {
  margin: 7px 0 0;
  line-height: 1.6;
  color: #34495e;
}

@media (max-width: 1000px) {
  .project-info-grid {
    grid-template-columns: 1fr;
  }
}

.member-form {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
  background: #fafcfd;
}

/* =========================================================
   ATLAS OFFICE — FICHE DOCUMENT
   ========================================================= */

#document-detail .panel {
  overflow: hidden;
}

#document-detail .panel-heading {
  gap: 24px;
}

#document-detail .panel-heading .form-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Métadonnées principales */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border: 1px solid #dce4eb;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.detail-item {
  min-width: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #e5ebf0;
}

.detail-item:nth-child(odd) {
  border-right: 1px solid #e5ebf0;
}

.detail-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-label {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096;
}

.detail-value {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #10283d;
  overflow-wrap: anywhere;
}

.detail-value a {
  color: #174c73;
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

/* Description / contenu large */

.detail-item.detail-wide,
.detail-wide {
  grid-column: 1 / -1;
  border-right: 0;
}

/* Cartes supérieures */

#document-detail .cards {
  margin-bottom: 24px;
}

#document-detail .card {
  min-width: 0;
}

#document-detail .value-small {
  overflow-wrap: anywhere;
}

/* Actions */

#document-detail .form-actions a,
#document-detail .form-actions button {
  white-space: nowrap;
}

/* Responsive */

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

  .detail-item,
  .detail-item:nth-child(odd),
  .detail-item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e5ebf0;
  }

  .detail-item:last-child {
    border-bottom: 0;
  }

  #document-detail .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  #document-detail .panel-heading .form-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}


/* FINANCE - DETAIL FACTURE */

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

.finance-amount-card {
  padding: 20px;
  border: 1px solid #dbe3e9;
  border-radius: 9px;
  background: #ffffff;
}

.finance-amount-card span {
  display: block;
  margin-bottom: 8px;
  color: #607487;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.finance-amount-card strong {
  display: block;
  color: #14283a;
  font-size: 24px;
  line-height: 1.2;
}

.finance-amount-card small {
  display: block;
  margin-top: 5px;
  color: #607487;
  font-size: 12px;
  font-weight: 700;
}

#invoice-detail .panel-heading .form-actions {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 900px) {
  .finance-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .finance-amount-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ATLAS OFFICE — AGENDA CALENDRIER
   ========================================================= */

#agenda-planning .agenda-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.agenda-view-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  background: #f6f8fa;
}

.agenda-view-button {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: #5b6573;
}

.agenda-view-button.active {
  background: #ffffff;
  color: #172033;
  box-shadow: 0 1px 4px rgba(20, 31, 50, 0.12);
}

.agenda-calendar-navigation {
  display: flex;
  align-items: center;
  gap: 9px;
}

.agenda-nav-button,
.agenda-today-button {
  border: 1px solid #dfe5ec;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: #283445;
}

.agenda-nav-button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.agenda-today-button {
  height: 38px;
  padding: 0 14px;
  font-weight: 600;
}

.agenda-nav-button:hover,
.agenda-today-button:hover {
  background: #f5f7fa;
}

.agenda-month-title {
  min-width: 150px;
  text-align: center;
  font-size: 16px;
  text-transform: capitalize;
  color: #172033;
}

.agenda-calendar {
  width: 100%;
  overflow-x: auto;
}

.agenda-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
  border: 1px solid #e2e7ed;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.agenda-weekdays > div {
  padding: 11px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #687385;
  background: #f7f9fb;
  border-right: 1px solid #e2e7ed;
}

.agenda-weekdays > div:last-child {
  border-right: 0;
}

.agenda-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
  border-left: 1px solid #e2e7ed;
  border-top: 1px solid #e2e7ed;
}

.agenda-calendar-day {
  position: relative;
  min-height: 125px;
  padding: 9px;
  background: #ffffff;
  border-right: 1px solid #e2e7ed;
  border-bottom: 1px solid #e2e7ed;
}

.agenda-calendar-day.outside-month {
  background: #f8f9fb;
}

.agenda-calendar-day.outside-month
.agenda-day-number {
  color: #aab1bc;
}

.agenda-calendar-day.today {
  box-shadow: inset 0 0 0 2px #243b63;
}

.agenda-day-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 7px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #3b4657;
}

.agenda-calendar-day.today
.agenda-day-number {
  background: #243b63;
  color: #ffffff;
}

.agenda-calendar-event {
  display: block;
  margin-top: 5px;
  padding: 7px 8px;
  border-left: 3px solid #52657d;
  border-radius: 6px;
  background: #f3f6f9;
  text-decoration: none;
  color: #253247;
  overflow: hidden;
}

.agenda-calendar-event:hover {
  background: #eaf0f6;
}

.agenda-calendar-event.priority-low {
  border-left-color: #7b8794;
}

.agenda-calendar-event.priority-normal {
  border-left-color: #52657d;
}

.agenda-calendar-event.priority-high {
  border-left-color: #b7791f;
}

.agenda-calendar-event.priority-urgent {
  border-left-color: #a33a3a;
}

.agenda-event-time {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #697587;
}

.agenda-event-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-list-view[hidden],
.agenda-calendar[hidden],
.agenda-calendar-navigation[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  #agenda-planning .agenda-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .agenda-calendar-navigation {
    width: 100%;
    flex-wrap: wrap;
  }

  .agenda-month-title {
    order: -1;
    width: 100%;
    min-width: 0;
    text-align: left;
    margin-bottom: 4px;
  }
}


/* =========================================================
   ATLAS OFFICE — THEME PROFESSIONNEL DES MODULES
   ========================================================= */

body.atlas-module-page {
  margin: 0;
  background: #f5faff;
  color: #102a43;
  font-family: Arial, Helvetica, sans-serif;
}

/* Structure générale */

.atlas-module-page .layout {
  display: grid;
  grid-template-columns: 302px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */

.atlas-module-page .sidebar {
  width: 302px;
  min-height: 100vh;
  padding: 28px 20px 22px;
  background:
    linear-gradient(
      180deg,
      #087dcc 0%,
      #086db8 45%,
      #07568f 100%
    );
  color: #ffffff;
}

.atlas-module-page .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 0 10px;
}

.atlas-module-page .sidebar-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background:
    linear-gradient(145deg, #31c6f3, #078ee5);
  box-shadow: 0 10px 25px rgba(0, 68, 130, .18);
  color: #ffffff;
  font-size: 27px;
  font-weight: 800;
}

.atlas-module-page .sidebar-brand-name {
  font-size: 23px;
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
}

.atlas-module-page .sidebar-company {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #e7f6ff;
}

.atlas-module-page .sidebar-tagline {
  margin-top: 2px;
  font-size: 10px;
  color: #c8eaff;
}

/* Navigation */

.atlas-module-page .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.atlas-module-page .sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 0;
  padding: 0 18px;
  border-radius: 11px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition:
    background .15s ease,
    transform .15s ease;
}

.atlas-module-page .sidebar-nav a:hover {
  background: rgba(255,255,255,.11);
  color: #ffffff;
}

.atlas-module-page .sidebar-nav a.active {
  background:
    linear-gradient(
      135deg,
      #13a9ea,
      #20b7ec
    );
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 78, 148, .16);
}

/* Zone principale */

.atlas-module-page .main {
  min-width: 0;
  padding: 0;
  background: #f5faff;
}

/* En-tête */

.atlas-module-page .module-topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  background: #ffffff;
  border-bottom: 1px solid #d8e8f4;
}

.atlas-module-page .module-search {
  width: min(530px, 55vw);
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid #cfe3f2;
  border-radius: 11px;
  background: #fbfdff;
  color: #7890a5;
  font-size: 13px;
}

.atlas-module-page .module-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.atlas-module-page .module-avatar {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0879ce;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.atlas-module-page .module-user-name {
  font-size: 13px;
  font-weight: 800;
  color: #102a43;
}

.atlas-module-page .module-user-role {
  margin-top: 2px;
  font-size: 11px;
  color: #66829a;
}

/* Titre du module */

.atlas-module-page .module-hero {
  padding: 25px 34px 22px;
  background:
    linear-gradient(
      110deg,
      #ffffff 0%,
      #eef9ff 65%,
      #f8fcff 100%
    );
  border-bottom: 1px solid #d8e8f4;
}

.atlas-module-page .module-hero h2 {
  margin: 0;
  color: #102a43;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 800;
}

.atlas-module-page .module-hero p {
  margin: 5px 0 0;
  color: #39749f;
  font-size: 14px;
}

/* Contenu */

.atlas-module-page .module-content {
  padding: 18px 22px 34px;
}

/* Cartes indicateurs */

.atlas-module-page .cards {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.atlas-module-page .card {
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #cfe3f2;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(35, 92, 132, .04);
}

.atlas-module-page .card .label {
  margin-bottom: 8px;
  color: #3c6380;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .25px;
}

.atlas-module-page .card .value {
  color: #102a43;
  font-size: 30px;
  font-weight: 800;
}

/* Panneaux */

.atlas-module-page .panel {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #cfe3f2;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(35, 92, 132, .04);
}

.atlas-module-page .panel h3 {
  margin-top: 0;
  color: #102a43;
  font-size: 18px;
}

/* Tableaux */

.atlas-module-page table {
  width: 100%;
  border-collapse: collapse;
}

.atlas-module-page th {
  padding: 12px;
  border-bottom: 1px solid #dceaf4;
  color: #54728a;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.atlas-module-page td {
  padding: 13px 12px;
  border-bottom: 1px solid #e6eff6;
  color: #29485f;
  font-size: 13px;
  text-align: left;
}

.atlas-module-page tbody tr:hover {
  background: #f7fbfe;
}

.atlas-module-page .client-link,
.atlas-module-page .project-link,
.atlas-module-page .task-link {
  color: #0879ce;
  text-decoration: none;
}

.atlas-module-page .badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f6ff;
  color: #0874bd;
  font-size: 10px;
  font-weight: 800;
}

/* Responsive */

@media (max-width: 1100px) {
  .atlas-module-page .layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .atlas-module-page .sidebar {
    width: 230px;
  }

  .atlas-module-page .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

