/* ============================================
   WIREFRAME LOW-FIDELITY — DirectAssurance x eProgram
   Ref: YMH-2026-DA-001
   Couleurs: #000, #FFF, #F5F5F5 uniquement
   Bordures: 2px noir
   Aucun emoji, aucune couleur, aucun gradient
   ============================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Courier New', Courier, monospace;
  background: #FFF;
  color: #000;
  line-height: 1.5;
  font-size: 14px;
}

a { color: #000; }

/* LAYOUT GLOBAL */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
}

/* Layout avec sidebar */
.layout-with-sidebar {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  border-right: 2px solid #000;
  padding: 16px;
  background: #F5F5F5;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li {
  padding: 10px 12px;
  border-bottom: 1px solid #000;
  cursor: pointer;
  font-size: 13px;
}

.sidebar-nav li.active {
  background: #000;
  color: #FFF;
  font-weight: bold;
}

.sidebar-nav li:hover:not(.active) { background: #e0e0e0; }

.sidebar-separator {
  border-top: 2px solid #000;
  margin: 8px 0;
}

.main-content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

/* HEADER DIRECTASSURANCE (rouge) */
.header {
  border-bottom: 2px solid #c0001f;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c0001f;
  color: #FFF;
}

.header a { color: #FFF; }

.header-logo {
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #FFF;
  padding: 6px 12px;
  color: #FFF;
}

.header-badge {
  border: 1px solid #FFF;
  padding: 4px 10px;
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  color: #FFF;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #FFF;
}

.header-logo-eprogram {
  border: 1px solid #FFF;
  padding: 4px 8px;
  font-size: 11px;
  color: #FFF;
}

/* HEADER EPROGRAM (bleu) */
.header-eprogram {
  border-bottom: 2px solid #5a9ab5;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #7EB8D6;
  color: #FFF;
}

.header-eprogram .header-logo {
  border-color: #FFF;
  color: #FFF;
}

/* HEADER BACKOFFICE */
.header-backoffice {
  border-bottom: 2px solid #c0001f;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c0001f;
  color: #FFF;
}

.header-backoffice a { color: #FFF; }

.header-backoffice .header-logo {
  border-color: #FFF;
  color: #FFF;
}

.header-backoffice .header-right { color: #FFF; }

.header-backoffice-title {
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFF;
}

/* FOOTER */
.footer {
  border-top: 2px solid #000;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  background: #F5F5F5;
}

.footer-links {
  margin: 8px 0;
}

.footer-links a {
  margin: 0 8px;
  text-decoration: underline;
}

/* BARRE DE PROGRESSION */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid #000;
  margin-bottom: 24px;
  background: #F5F5F5;
  gap: 8px;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 12px;
}

.progress-step.active {
  border: 2px solid #000;
  background: #000;
  color: #FFF;
  font-weight: bold;
}

.progress-step.done {
  border: 2px solid #000;
  background: #FFF;
  text-decoration: line-through;
}

.progress-step.inactive {
  color: #999;
}

.progress-separator {
  font-size: 16px;
  color: #000;
}

/* SECTIONS */
.section {
  border: 2px solid #000;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
}

.section-subtitle {
  font-size: 13px;
  margin-bottom: 16px;
  color: #333;
}

/* PAGE TITLE */
.page-title {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 13px;
  margin-bottom: 24px;
}

/* CARDS */
.card {
  border: 2px solid #000;
  padding: 16px;
  margin-bottom: 12px;
  background: #FFF;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.card-selectable {
  border: 2px solid #000;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #FFF;
  transition: background 0.15s;
}

.card-selectable:hover { background: #F5F5F5; }

.card-selectable.selected {
  background: #000;
  color: #FFF;
}

.card-selectable .card-icon {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  margin: 0 auto 8px;
  line-height: 40px;
  font-size: 10px;
  text-align: center;
}

.card-selectable.selected .card-icon {
  border-color: #FFF;
}

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  border: 2px solid #000;
  padding: 16px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: bold;
}

.stat-card .stat-label {
  font-size: 12px;
  margin-top: 4px;
}

/* FORMULAIRES */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #000;
  background: #FFF;
  font-family: inherit;
  font-size: 13px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

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

.form-readonly input {
  background: #F5F5F5;
  color: #666;
  cursor: not-allowed;
}

/* CHECKBOXES */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #000;
  margin-top: 2px;
}

/* BOUTONS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: #000;
  color: #FFF;
}

.btn-secondary {
  background: #FFF;
  color: #000;
}

.btn-disabled {
  background: #F5F5F5;
  color: #999;
  border-color: #999;
  cursor: not-allowed;
}

.btn-full { width: 100%; }

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #000;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-dark { background: #000; color: #FFF; }
.badge-light { background: #F5F5F5; color: #000; }
.badge-outline { background: #FFF; color: #000; border: 2px solid #000; }

/* TABLEAUX */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  border: 1px solid #000;
  padding: 8px 10px;
  text-align: left;
}

th {
  background: #000;
  color: #FFF;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
}

tr:nth-child(even) { background: #F5F5F5; }

/* UPLOAD ZONE */
.upload-zone {
  border: 2px dashed #000;
  padding: 24px;
  text-align: center;
  margin: 8px 0;
  background: #F5F5F5;
  cursor: pointer;
}

.upload-zone:hover { background: #e8e8e8; }

.upload-zone .upload-text {
  font-size: 13px;
}

.upload-zone .upload-link {
  text-decoration: underline;
  cursor: pointer;
}

.upload-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid #000;
  margin: 8px 0;
  font-size: 13px;
  background: #FFF;
}

/* ICON PLACEHOLDER */
.icon {
  display: inline-block;
  font-size: 11px;
  font-style: italic;
}

.icon-large {
  display: block;
  width: 60px;
  height: 60px;
  border: 2px solid #000;
  margin: 0 auto 12px;
  line-height: 60px;
  text-align: center;
  font-size: 10px;
  font-style: italic;
}

/* INFO BOX */
.info-box {
  border: 1px solid #000;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 12px;
  background: #F5F5F5;
}

/* RECAP ROW */
.recap-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted #000;
  font-size: 13px;
}

.recap-row:last-child { border-bottom: none; }

.recap-label { font-weight: bold; }

/* AMOUNT LARGE */
.amount-large {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  padding: 16px 0;
  letter-spacing: 1px;
}

/* TIMELINE */
.timeline { margin: 16px 0; }

.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  font-size: 13px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #FFF;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 2px;
  height: calc(100% + 4px);
  background: #000;
}

.timeline-item:last-child::after { display: none; }

.timeline-date { font-weight: bold; min-width: 100px; }

/* MESSAGING / CHAT */
.message-thread {
  border: 2px solid #000;
  padding: 16px;
  margin: 12px 0;
  max-height: 400px;
  overflow-y: auto;
}

.message {
  border: 1px solid #000;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13px;
}

.message-agent {
  background: #F5F5F5;
  margin-right: 40px;
}

.message-client {
  background: #FFF;
  margin-left: 40px;
}

.message-header {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 4px;
}

.message-attachment {
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid #000;
  font-size: 11px;
  display: inline-block;
}

.message-reply {
  margin-top: 12px;
}

/* PDF VIEWER PLACEHOLDER */
.pdf-viewer {
  border: 2px solid #000;
  background: #F5F5F5;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  margin: 12px 0;
  font-size: 12px;
  font-style: italic;
}

/* STEPS HORIZONTAL */
.steps-horizontal {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 11px;
}

.step-item {
  padding: 4px 10px;
  border: 1px solid #000;
  background: #FFF;
}

.step-item.active {
  background: #000;
  color: #FFF;
  font-weight: bold;
}

.step-item.done {
  background: #F5F5F5;
  text-decoration: line-through;
}

.step-arrow { font-size: 14px; }

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 16px 0;
}

.pagination span,
.pagination a {
  padding: 6px 10px;
  border: 1px solid #000;
  font-size: 12px;
  text-decoration: none;
}

.pagination .active {
  background: #000;
  color: #FFF;
}

/* NOTIFICATION */
.notification {
  border: 2px solid #000;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* WHATSAPP BUTTON (flottant) */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  border: 2px solid #000;
  padding: 10px 16px;
  background: #FFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
  color: #000;
}

/* ONGLETS / TABS */
.tabs {
  display: flex;
  border-bottom: 2px solid #000;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  border: 2px solid #000;
  border-bottom: none;
  margin-right: -2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  background: #F5F5F5;
}

.tab.active {
  background: #FFF;
  border-bottom: 2px solid #FFF;
  margin-bottom: -2px;
}

/* FILTER BAR */
.filter-bar {
  border: 2px solid #000;
  padding: 16px;
  margin-bottom: 16px;
  background: #F5F5F5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #000;
  font-family: inherit;
  font-size: 12px;
}

/* DEV NOTE */
.dev-note {
  border: 2px dashed #000;
  padding: 12px;
  margin: 12px 0;
  font-size: 11px;
  font-style: italic;
  background: #F5F5F5;
}

.dev-note::before {
  content: 'NOTE DEV : ';
  font-weight: bold;
  font-style: normal;
}

/* SIMULATED PAGE */
.simulated-banner {
  background: #000;
  color: #FFF;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* EMAIL TEMPLATE */
.email-template {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #000;
}

.email-header {
  background: #F5F5F5;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #000;
}

.email-body {
  padding: 24px;
}

.email-footer {
  padding: 16px;
  text-align: center;
  font-size: 11px;
  border-top: 1px solid #000;
  background: #F5F5F5;
}

.email-cta {
  display: block;
  text-align: center;
  margin: 20px auto;
  padding: 12px 32px;
  border: 2px solid #000;
  background: #000;
  color: #FFF;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  max-width: 300px;
}

/* HAMBURGER MENU (mobile) */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #000;
  width: 100%;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.sidebar.mobile-open {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
}

.close-sidebar {
  display: none;
  text-align: right;
  padding: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: 768px - 1439px */
@media (max-width: 1439px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 200px; min-width: 200px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  .header {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    text-align: center;
  }

  .header-right {
    flex-direction: column;
    gap: 6px;
  }

  .header-backoffice {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Sidebar => hidden, hamburger visible */
  .sidebar {
    display: none;
    width: 260px;
  }

  .hamburger { display: flex; }

  .close-sidebar { display: block; }

  .layout-with-sidebar {
    flex-direction: column;
  }

  .main-content {
    padding: 16px;
  }

  /* Cards */
  .card-grid { grid-template-columns: repeat(2, 1fr); }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Buttons full width */
  .btn { width: 100%; text-align: center; }

  /* Tables => card layout */
  .table-responsive-cards table,
  .table-responsive-cards thead,
  .table-responsive-cards tbody,
  .table-responsive-cards th,
  .table-responsive-cards tr,
  .table-responsive-cards td {
    display: block;
  }

  .table-responsive-cards thead { display: none; }

  .table-responsive-cards tr {
    border: 2px solid #000;
    margin-bottom: 12px;
    padding: 8px;
  }

  .table-responsive-cards td {
    border: none;
    padding: 4px 8px;
    text-align: left;
    font-size: 13px;
  }

  .table-responsive-cards td::before {
    content: attr(data-label) ': ';
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
  }

  /* Progress bar */
  .progress-bar {
    padding: 10px 8px;
    gap: 4px;
  }

  .progress-step {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* PDF viewer mobile */
  .pdf-viewer {
    min-height: 60px;
  }

  .pdf-viewer-mobile-btn {
    display: block;
  }

  /* Stats */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .stat-card { padding: 12px; }
  .stat-card .stat-value { font-size: 22px; }

  /* Messages */
  .message-agent,
  .message-client {
    margin-left: 0;
    margin-right: 0;
  }

  /* Filter */
  .filter-bar {
    flex-direction: column;
  }

  .filter-group { min-width: 100%; }

  /* Tabs */
  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1;
    text-align: center;
    font-size: 11px;
    padding: 8px 10px;
  }

  /* Footer */
  .footer {
    padding: 16px;
  }

  /* WhatsApp */
  .whatsapp-btn {
    bottom: 16px;
    left: 16px;
    font-size: 11px;
    padding: 8px 12px;
  }

  /* Amount */
  .amount-large { font-size: 24px; }
}
